tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 22258] New: - Hardcoded / while looking into a ExpandWar.java
Date Fri, 08 Aug 2003 16:54:32 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22258>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22258

Hardcoded / while looking into a ExpandWar.java

           Summary: Hardcoded / while looking into a ExpandWar.java
           Product: Tomcat 5
           Version: 5.0.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: marni@sbcglobal.net


In the following file:
/*
 * $Header: /home/cvs/jakarta-tomcat-
catalina/catalina/src/share/org/apache/catalina/startup/ExpandWar.java,v 1.4 
2003/07/26 14:24:52 remm Exp $
 * $Revision: 1.4 $
 * $Date: 2003/07/26 14:24:52 $

Line #216, For a directory enrtry it is looking for '/', instead it should 
look for both '/' and '\'.

I am creating a WAR file using java.util.jar.JarEntry( and its related 
files ), I am getting a WEB-INF/web.xml not found error;

Here is the log from Tomcat:
2003-08-08 11:36:31   Have created expansion directory C:\Program Files\Apache 
Software Foundation\Tomcat 5.0\webapps\test3
2003-08-08 11:36:31   Have opened JAR file successfully
2003-08-08 11:36:31   Have retrieved entries enumeration
2003-08-08 11:36:31   Am processing entry META-INF/MANIFEST.MF
2003-08-08 11:36:31   Creating parent directory C:\Program Files\Apache 
Software Foundation\Tomcat 5.0\webapps\test3\META-INF
2003-08-08 11:36:31   Creating expanded file META-INF/MANIFEST.MF
2003-08-08 11:36:31   Am processing entry META-INF/
2003-08-08 11:36:31   Creating parent directory C:\Program Files\Apache 
Software Foundation\Tomcat 5.0\webapps\test3\META-INF
2003-08-08 11:36:31   Am processing entry WEB-INF\
2003-08-08 11:36:31   Creating expanded file WEB-INF\
2003-08-08 11:36:31   Am processing entry WEB-INF\web.xml
2003-08-08 11:36:31   Creating expanded file WEB-INF\web.xml
2003-08-08 11:36:31 HTMLManager: ManagerServlet.install[/test3]
java.io.FileNotFoundException: C:\Program Files\Apache Software 
Foundation\Tomcat 5.0\webapps\test3\WEB-INF\web.xml (The system cannot find 
the path specified)
	at java.io.FileOutputStream.open(Native Method)
	at java.io.FileOutputStream.<init>(Unknown Source)
	at java.io.FileOutputStream.<init>(Unknown Source)
	at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:307)
	at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:232)
	at org.apache.catalina.core.StandardHostDeployer.install
(StandardHostDeployer.java:303)
	at org.apache.catalina.core.StandardHost.install(StandardHost.java:835)
	at org.apache.catalina.manager.ManagerServlet.deploy
(ManagerServlet.java:857)
	at org.apache.catalina.manager.HTMLManagerServlet.deployInternal
(HTMLManagerServlet.java:327)
	at org.apache.catalina.manager.HTMLManagerServlet.doPost
(HTMLManagerServlet.java:307)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:286)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:253)
	at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:151)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardContextValve.invokeInternal
(StandardContextValve.java:256)
	at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:210)
	at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:151)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke
(AuthenticatorBase.java:565)
	at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:149)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:190)
	at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:151)
	at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:174)
	at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:149)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:156)
	at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:151)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:564)
	at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:974)
	at org.apache.coyote.tomcat5.CoyoteAdapter.service
(CoyoteAdapter.java:207)
	at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:647)
	at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnecti
on(Http11Protocol.java:489)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:575)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:649)
	at java.lang.Thread.run(Unknown Source)

Mime
View raw message