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 44520] New: Tomcat as Windows Service v.s. start manually
Date Mon, 03 Mar 2008 17:22:34 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44520

           Summary: Tomcat as Windows Service v.s. start manually
           Product: Tomcat 6
           Version: 6.0.16
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: nassera@xilinx.com


Platform Windows.

I have an application that tries to read and write some files outside of the
application context.
When I start the tomcat as Windows Service, I get FileNotFoundException:
Stack trace + debug info:
parse got: h:/web/user-stories/ 
Checking file: h:\web\user-stories isDirectory false
java.io.FileNotFoundException: h:\web\user-stories (The system cannot find the
path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(Unknown Source)
        at java.io.FileReader.<init>(Unknown Source)
        at
com.xilinx.userstories.UserStoriesParser.getLatestFile(UserStoriesParser.java:52)
        at
com.xilinx.userstories.UserStoriesParser.parse(UserStoriesParser.java:105)
        at
org.apache.jsp.user_002dstories_jsp._jspService(user_002dstories_jsp.java:324)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Unknown Source)

But same application works fine when the tomcat is started manually from
command line (<TOMCAT_INSTALL_DIR>/bin/tomcat6.exe)
parse got: h:/web/user-stories/
Checking file: h:\web\user-stories isDirectory true 

As you can see from the Stack Trace + debug Info above, somehow the same
directory (h:/web/user-stories) is not a directory :) when the tomcat is
started as Windows service


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message