struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Wang <KW...@Partnerware.com>
Subject RE: tld found, then lost?
Date Mon, 02 Oct 2000 20:46:53 GMT
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.handleDirective(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(JasperLoader12.java:146)
	at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:424)
	at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(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(RequestDispatcherImpl
.java:191)
	at
org.apache.struts.action.ActionServlet.processActionInstance(ActionServlet.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(ContextManager.java:74
9)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:695)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:207)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)

 

Mime
View raw message