You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by BugRat Mail System <to...@cortexity.com> on 2000/09/22 03:38:37 UTC

BugRat Report #153 has been filed.

Bug report #153 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com:8888/BugRatViewer/ShowReport/153>

REPORT #153 Details.

Project: Tomcat
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: high
Severity: critical
Confidence: public
Environment: 
   Release: nightly build
   JVM Release: 1.2
   Operating System: window
   OS Release: nt
   Platform: intel

Synopsis: 
tomcat.bat fails with the -f switch and no path

Description:
this works: tomcat run -f c:\some\path\my_server.xml

this doesn't: tomcat run -f my_server.xml

In the method ServerXmlHelper.getUserConfigFiles
File dir = new File(master.getParent());
has null parent if no path is specified

2000-09-21 06:55:27 - StartTomcat: Loaded config file my_server.xml
FATAL:
java.lang.NullPointerException
        at java.io.File.<init>(File.java:185)
        at org.apache.tomcat.helper.ServerXmlHelper.getUserConfigFiles(ServerXml
Helper.java, Compiled Code)
        at org.apache.tomcat.task.StartTomcat.prepareContextManager(StartTomcat.
java, Compiled Code)
        at org.apache.tomcat.task.StartTomcat.execute(StartTomcat.java:111)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:65)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:71)