tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Chermette" <Cherme...@exoffice.com>
Subject Start/Stop Tomcat
Date Thu, 08 Jun 2000 22:17:55 GMT
Hi

I'm trying to start and stop tomcat from my own app.
To do so, I'm calling the main method by :

       String[] tomcatParams = { "-h", "/home/Guillaume/Work/Tomcat/" };
       Tomcat.main (tomcatParams);

But it keeps trying to launch tomcat from my own app's directory, and so
everything crashes with :
FATAL: configuration error
java.lang.Exception: Can't open config file:
D:\Work@Home\Work\TomcatConfig\conf\server.xml due to:
java.io.FileNotFoundException:
D:\Work@Home\Work\TomcatConfig\conf\server.xml (The system cannot find the
path specified)
        at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:214)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:110)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:130)
        at
configtool.tomcat.LogPane$StartTomcatButtonListener.actionPerformed(LogPane.
java:245)
        at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1066)
        at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButto
n.java:1101)
        at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:3
78)
        at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
        at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener
.java:204)
        at
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
        at java.awt.Component.processMouseEvent(Component.java:3166)
        at java.awt.Component.processEvent(Component.java, Compiled Code)
        at java.awt.Container.processEvent(Container.java, Compiled Code)
        at java.awt.Component.dispatchEventImpl(Component.java, Compiled
Code)
        at java.awt.Container.dispatchEventImpl(Container.java, Compiled
Code)
        at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java,
Compiled Code)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java,
Compiled Code)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java,
Compiled Code)
        at java.awt.Container.dispatchEventImpl(Container.java, Compiled
Code)
        at java.awt.Window.dispatchEventImpl(Window.java, Compiled Code)
        at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code)
        at
java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java, Compiled
Code)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)


My classpath should be well-configured since I can start tomcat with the
startup.bat file.

Does anyone have a clue about what is happening ?

Thanks all
Guillaume Chermette


Mime
View raw message