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 6408] New: - Starting tomcat from a cygwin bash shell using 'startup.sh' no longer works
Date Tue, 12 Feb 2002 22:03:59 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=6408>.
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=6408

Starting tomcat from a cygwin bash shell using 'startup.sh' no longer works

           Summary: Starting tomcat from a cygwin bash shell using
                    'startup.sh' no longer works
           Product: Tomcat 4
           Version: 4.0.2 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: tjhart@thoughtworks.com


... although I don't think the problem is in the startup script itself.

in Tomcat 4.0.1, I can issue the command
bin/startup.sh from a cygwin shell, and everything works fine and dandy.

In Tomcat 4.0.2, I get the following: output in catalina.out:

java.io.FileNotFoundException: 
d:\cygdrive\d\jakarta-tomcat-4.0.2\conf\server.xml (The system cannot find the 
path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:64)
        at 
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:69)
        at 
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.jav
a:133)
        at java.net.URL.openStream(URL.java:798)
        at 
org.apache.xerces.readers.DefaultReaderFactory.createReader(DefaultReaderFactory
.java:149)
        at 
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(DefaultE
ntityHandler.java:493)
        at 
org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:314)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1097)
        at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:362)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:301)
        at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
Catalina.start: java.lang.Exception: Can't open config file: 
d:\cygdrive\d\jakarta-tomcat-4.0.2\conf\server.xml due to: java.io.File
NotFoundException: d:\cygdrive\d\jakarta-tomcat-4.0.2\conf\server.xml (The 
system cannot find the path specified)
java.lang.Exception: Can't open config file: 
d:\cygdrive\d\jakarta-tomcat-4.0.2\conf\server.xml due to: 
java.io.FileNotFoundExceptio
n: d:\cygdrive\d\jakarta-tomcat-4.0.2\conf\server.xml (The system cannot find 
the path specified)
        at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:238)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

Under cygwin, the path should look like: 
/cygdrive/d/jakarta-tomcat-4.0.2/conf/server.xml
and the Windows path would be:
D:\jakarta-tomcat-4.0.2\conf\server.xml

Somewhere along the way the two systems are being confused.

Here's the output to the command line:

Tim_Hart@HART /cygdrive/d/jakarta-tomcat-4.0.2
$ uname -a
CYGWIN_NT-5.0 HART 1.3.9(0.51/3/2) 2002-01-21 12:48 i686 unknown

Tim_Hart@HART /cygdrive/d/jakarta-tomcat-4.0.2
$ bin/startup.sh
Using CATALINA_BASE:   /cygdrive/d/jakarta-tomcat-4.0.2
Using CATALINA_HOME:   d:\jakarta-tomcat-4.0.2
Using CATALINA_TMPDIR: /cygdrive/d/jakarta-tomcat-4.0.2/temp
Using JAVA_HOME:       d:\jdk1.3.1_01

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


Mime
View raw message