You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dean Hiller <de...@alvazan.com> on 2009/11/02 06:16:51 UTC
starting tomcat from ant not working
I have tried from ant and programmed up a main class to start tomcat via
"catalina.bat start" and tried "catalina.bat start" from ant as well.
Lastly, I finally tried directly running the exact command that catalina.bat
start tries to run and then ended up with classnotfound which makes no sense
since I thought the bootstrap class is supposed to put that
together.....(any ideas?)
[echo] os=Windows Vista
[java] Executing 'C:\AAROOT\Java\jdk1.6.0_16\jre\bin\java.exe' with
arguments:
[java] '-classpath'
[java] 'D:\workarea\tomcat\bin\bootstrap.jar;D:\workarea\tomcat\bin'
[java] 'org.apache.catalina.startup.Bootstrap'
[java]
'-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager'
[java]
'-Djava.util.logging.config.file=d:\workarea\tomcat/conf/logging.properties'
[java] '-Djava.endorsed.dirs=d:\workarea\tomcat/endorsed'
[java] '-Dcatalina.base=d:\workarea\tomcat'
[java] '-Dcatalina.home=d:\workarea\tomcat'
[java] '-Djava.io.tmpdir=d:\workarea\tomcat/temp'
[java] 'start'
[java]
[java] The ' characters around the executable and arguments are
[java] not part of the command.
[java] java.lang.ClassNotFoundException:
org.apache.catalina.startup.Catalina
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[java] at java.security.AccessController.doPrivileged(Native
Method)
[java] at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
[java] at
org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:215)
[java] at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390)
[sleep] sleeping for 60000 milliseconds
Re: starting tomcat from ant not working
Posted by Konstantin Kolinko <kn...@gmail.com>.
2009/11/2 Dean Hiller <de...@alvazan.com>:
> [java] java.lang.ClassNotFoundException:
> org.apache.catalina.startup.Catalina
Probably your conf/catalina.properties file is broken. Maybe you
copied it from an earlier TC 5.5 installation.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: starting tomcat from ant not working
Posted by André Warnier <aw...@ice-sa.com>.
Dean Hiller wrote:
> I have tried from ant and programmed up a main class to start tomcat via
> "catalina.bat start" and tried "catalina.bat start" from ant as well.
> Lastly, I finally tried directly running the exact command that catalina.bat
> start tries to run and then ended up with classnotfound which makes no sense
> since I thought the bootstrap class is supposed to put that
> together.....(any ideas?)
Have you tried "startup.bat" ?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: starting tomcat from ant not working
Posted by Elli Albek <el...@sustainlane.com>.
Hi,
This is how we start tomcat from ant. ${server} is your tomcat installation
directory. Then we have a condition on a URL, so we know tomcat actually
starts and handling HTTP requests.
<java jar="${server}/bin/bootstrap.jar" fork="true" spawn="true"
dir="${server}/bin">
<jvmarg value="-Dcatalina.home=${server}" />
<arg line="start" />
</java>
Notice the startup folder and catalina home argument. This is to avoid
conflicts with other tomcat installations that may be on the system.
E
On Sun, Nov 1, 2009 at 9:16 PM, Dean Hiller <de...@alvazan.com> wrote:
> I have tried from ant and programmed up a main class to start tomcat via
> "catalina.bat start" and tried "catalina.bat start" from ant as well.
> Lastly, I finally tried directly running the exact command that
> catalina.bat
> start tries to run and then ended up with classnotfound which makes no
> sense
> since I thought the bootstrap class is supposed to put that
> together.....(any ideas?)
>
>