Hello Mattias,

Any reason why the <taglib> element is in web.xml ?  If your app is living in a 
2.4 servlet world, the <taglib> elements are not necessary.  The spec says to 
load all TLDs from both /META-INF/ and /META-INF/tlds .  Hope this helps.

Dennis Byrne

>-----Original Message-----
>From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, March 1, 2006 11:15 AM
>To: 'MyFaces Discussion'
>Subject: [OC4J] tld files inside of a jar
>
>Hi,
>
>I noticed a problem, with OC4J 9.0.4.1.0 and .tld files, which are
>located in a jar under "META-INF". MyFaces, Tiles (core / standalone)
>and Shale stores all files there.
>
>Works fine for me in Tomcat (standalone and included into JBoss)
>
>However, a co-workers JAR file contains the .tld under
>"META-INF/tlds/" that works in OC4J fine too. (no jsf components
>contained, just *regular* jsp custom actions)
>
>When I try something like this inside my web.xml
>  <taglib>
>    <taglib-uri>http://java.sun.com/jsf/core</taglib-uri>
>    <taglib-location>/WEB-INF/core.tld</taglib-location>
>  </taglib>
>
>
>I got the (interesting) stack trace.
>
>Any ideas? (under tomcat/jboss it works out of the box)
>-Matthias
>
><snip>
>Exception:
>
>java.lang.NullPointerException
>       at 
> oracle.jsp.parse.JspDirectiveTaglib.validateAttributes(JspDirectiveTaglib.java:183)
>       at 
> oracle.jsp.parse.JspParseTagDirective.validateTagAttributes(JspParseTagDirective.java:179)
>       at oracle.jsp.parse.JspParseTag.parse(JspParseTag.java:921)
>       at 
> oracle.jsp.parse.JspParseTagDirective.parse(JspParseTagDirective.java:318)
>       at oracle.jsp.parse.JspParseTag.parseNextTag(JspParseTag.java:705)
>       at oracle.jsp.parse.JspParseTagFile.parse(JspParseTagFile.java:184)
>       at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java:154)
>       at 
> oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:427)
>       at 
> oracle.jsp.runtimev2.JspPageCompiler.compilePage(JspPageCompiler.java:283)
>       at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:438)
>       at 
> oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:542)
>       at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:304)
>       at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
>       at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>       at 
> com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
>       at 
> com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
>       at 
> com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:251)
>       at 
> org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416)
>       at 
> org.apache.shale.tiles.TilesViewHandler.dispatchToTile(TilesViewHandler.java:318)
>       at 
> org.apache.shale.tiles.TilesViewHandler.renderView(TilesViewHandler.java:159)
>       at 
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:372)
>       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
>       at 
> com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
>       at 
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:124)
>       at 
> com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
>       at 
> org.apache.shale.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilter.java:278)
>       at 
> com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
>       at 
> com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
>       at 
> com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
>       at 
> com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
>       at 
> com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
>       at 
> com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
>       at java.lang.Thread.run(Thread.java:534)
>
>
></snip>
>
>--
>Matthias Wessendorf
>Zülpicher Wall 12, 239
>50674 Köln
>http://www.wessendorf.net
>mwessendorf-at-gmail-dot-com
>


Reply via email to