struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phillips, George H." <...@miami.edu>
Subject RE: tld found, then lost?
Date Tue, 03 Oct 2000 14:10:30 GMT
Thanks, Kevin, for your sharp eyes.  I misspelled WEB-INF in the directive
on the offending page.  I know its hard to believe, but I must have looked
at that bit of code 20 times and didn't see the error. Duh!
George Phillips

> -----Original Message-----
> From: Kevin Wang [mailto:KWANG@Partnerware.com]
> Sent: Monday, October 02, 2000 4:47 PM
> To: 'struts-user@jakarta.apache.org'
> Subject: RE: tld found, then lost?
> 
> 
> Did you set up your WEB-INF dir as WEBINF (with out - )? 
> Looks like your jsp
> page might have specified WEBINF with missing "-".
> 
> 
> -----Original Message-----
> From: Phillips, George H. [mailto:ghp@miami.edu]
> Sent: Monday, October 02, 2000 2:11 PM
> To: 'struts-user@jakarta.apache.org'
> Subject: tld found, then lost?
> 
> 
> I have the beginnings of an app using Struts (0.5 with Tomcat 
> 3.2), with 2
> jsp pages - a logon page and a mainmenu page pointed to by an action
> mapping.  The logon page finds the tld pointed to in the 
> taglib directive
> (struts.tld) with no problem.  The menu page uses the identical taglib
> directive, and fails with the error below (tld path not found).  This
> confuses me for two reasons:
> 
>  - if I understand correctly, the tld should be loaded by the 
> first page to
> execute (logon page) and    	there should be no need for the 
> second page
> to attempt to reload it.
>  - the path named in the error message is in fact the correct 
> path to the
> struts tld (!?)
> 
> The taglib entry in web.xml is correct, or at least it works 
> for the first
> jsp.  Taglib directives in both pages are identical.  The only thing
> relevant I saw in the archives I checked - i.e. the order of tags in
> web.xml.  What am I missing here?  Has anyone else 
> encountered this problem?
> Any input would be much appreciated.
> 
> George Phillips
>   
> ---- error messages follow -----
> 
> org.apache.jasper.compiler.CompileException:
> C:\jakarta-tomcat\webapps\dmas\jsp\mainMenu.jsp(1,0) Unable to open
> taglibrary /WEBINF/struts.tld :
> C:\jakarta-tomcat\webapps\dmas\WEBINF\struts.tld (The system 
> cannot find the
> path specified)
> 	at
> org.apache.jasper.compiler.JspParseEventListener.handleDirecti
> ve(JspParseEve
> ntListener.java:713)
> 	at
> org.apache.jasper.compiler.DelegatingListener.handleDirective(
> DelegatingList
> ener.java:116)
> 	at
> org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
> 	at org.apache.jasper.compiler.Parser.parse(Parser.java:1070)
> 	at org.apache.jasper.compiler.Parser.parse(Parser.java:1035)
> 	at org.apache.jasper.compiler.Parser.parse(Parser.java:1031)
> 	at 
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:182)
> 	at
> org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:453)
> 	at
> org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader1
> 2.java:146)
> 	at 
> org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:424)
> 	at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
> ecessary(JspSe
> rvlet.java:152)
> 	at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
> (JspServlet.ja
> va:164)
> 	at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:309)
> 	at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:382)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper
> .java:387)
> 	at org.apache.tomcat.core.Handler.service(Handler.java:263)
> 	at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
> 	at
> org.apache.tomcat.facade.RequestDispatcherImpl.forward(Request
> DispatcherImpl
> .java:191)
> 	at
> org.apache.struts.action.ActionServlet.processActionInstance(A
> ctionServlet.j
> ava:803)
> 	at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:702)
> 	at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:332)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper
> .java:387)
> 	at org.apache.tomcat.core.Handler.service(Handler.java:263)
> 	at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
> 	at
> org.apache.tomcat.core.ContextManager.internalService(ContextM
> anager.java:74
> 9)
> 	at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:695)
> 	at
> org.apache.tomcat.service.http.HttpConnectionHandler.processCo
> nnection(HttpC
> onnectionHandler.java:207)
> 	at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
> t.java:403)
> 	at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
> ol.java:498)
> 	at java.lang.Thread.run(Thread.java:484)
> 
>  
> 

Mime
View raw message