add in your web.xml: <context-param>
<param-name>org.apache.myfaces.STRICT_JSF_2_ALLOW_SLASH_LIBRARY_NAME</param-name> <param-value>true</param-value> </context-param> However please see https://issues.apache.org/jira/browse/MYFACES-3454 for the reason why it changed - Romain 2012/5/16 Romain Manni-Bucau <rmannibu...@gmail.com> > can you share your app. > > IMO xhtml shouldnt be in the url > > - Romain > > > > 2012/5/16 marcin <tomiak.mar...@gmail.com> > >> After all I think that there is some bug with resources. >> >> The following URL properly loads image: >> >> /MyApplication/javax.faces.resource/welcome.png.xhtml?ln=imgs >> >> and the following URL doesn't: >> >> /MyApplication/javax.faces.resource/okBtn.png.xhtml?ln=imgs/buttons >> >> It looks like there is some bug when a resource is in subdirectory. >> >> Note that both URLs worked fine on beta-2. >> >> -- >> View this message in context: >> http://openejb.979440.n4.nabble.com/EJB-Injection-in-JSF-Managed-Bean-tp4634407p4641169.html >> Sent from the OpenEJB User mailing list archive at Nabble.com. >> > >