You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Max Pimm <ma...@alwayssunny.com> on 2007/04/12 09:19:57 UTC

[s2] Using struts-tags and "Exception initializing TldLocationsCache"

Hi,

I'm trying to set up the Struts 2.0.6 example blank application using the J4 
distribution and i'm having problems using struts-tags.

Any jsp that uses this tag library (that is all jsp's that include the 
line <%@ taglib prefix="s" uri="/struts-tags" %>) give compilation 
errors (see below). I can't find any tld files in the struts blank 
application. Is this normal? Could anyone explain to me how the tag
libraries are loaded in Struts 2.0 where the tld files are (i have'nt found them in the struts core jar either)
and whether they should continue working with the j4 distribution.

I'm running the application on Tomcat 4.1 with jdk 1.4.2. When 
compilation fails i get the message "Exception initializing 
TldLocationsCache:" in the Tomcat logs but no further information is given.

Here's the compilation error:

javax.servlet.ServletException: Archivo JSP "/struts-tags" no encontrado
	at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:518)
	at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:421)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:138)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954)
	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2459)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:132)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:593)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:593)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:126)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:534)


Thanks,

Max





---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [s2] Using struts-tags and "Exception initializing TldLocationsCache"

Posted by Musachy Barroso <mu...@gmail.com>.
I'm getting this error on jetty from time to time, and cleaning up and
re-running seems to work

musachy

On 4/12/07, Alexis Pigeon <pi...@gmail.com> wrote:
>
> Hi Max
>
> On 12/04/07, Max Pimm <ma...@alwayssunny.com> wrote:
> > Hi,
> >
> > I'm trying to set up the Struts 2.0.6 example blank application using
> the J4
> > distribution and i'm having problems using struts-tags.
> >
> > Any jsp that uses this tag library (that is all jsp's that include the
> > line <%@ taglib prefix="s" uri="/struts-tags" %>) give compilation
> > errors (see below). I can't find any tld files in the struts blank
> > application. Is this normal? Could anyone explain to me how the tag
> > libraries are loaded in Struts 2.0 where the tld files are (i have'nt
> found them in the struts
> > core jar either)
>
> The TLD file you're looking for (struts-tags.tld) is located in the
> struts core jar, under the META-INF folder.
>
> HTH,
> alexis
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

Re: [s2] Using struts-tags and "Exception initializing TldLocationsCache"

Posted by Alexis Pigeon <pi...@gmail.com>.
Hi Max

On 12/04/07, Max Pimm <ma...@alwayssunny.com> wrote:
> Hi,
>
> I'm trying to set up the Struts 2.0.6 example blank application using the J4
> distribution and i'm having problems using struts-tags.
>
> Any jsp that uses this tag library (that is all jsp's that include the
> line <%@ taglib prefix="s" uri="/struts-tags" %>) give compilation
> errors (see below). I can't find any tld files in the struts blank
> application. Is this normal? Could anyone explain to me how the tag
> libraries are loaded in Struts 2.0 where the tld files are (i have'nt found them in the struts
> core jar either)

The TLD file you're looking for (struts-tags.tld) is located in the
struts core jar, under the META-INF folder.

HTH,
alexis

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org