Hi,
Even when I dont do a appLoader.stopTomcat();, it goes down and is no
longer accessible.
Thanks,
Mohamed Rafi S
Hi,
Just my silly guess,
Did you do this:
tomcat.startTomcat();
...
Thread.sleep(1);
tomcat.stopTomcat();
That is you call stopTomcat() right
Hi All,
I need to run a Embedded Tomcat server in my application. For this, I
checked the sample code and docs, and did the needful.
My application's main class is ApplicationLoader.java, and in the
main() method of my ApplicationLoader.java, I am doing a
appLoader.startTomcat(). However,
?
Thanks,
Mohamed Rafi S
Mohamed Rafi S wrote:
Hi All,
I need to run a Embedded Tomcat server in my application. For this, I
checked the sample code and docs, and did the needful.
My application's main class is ApplicationLoader.java, and in the
main() method of my ApplicationLoader.java, I am
the required jars in the classpath, and verified
this too. Also, when I start the Tomcat server through
~/bin/startserver.sh, it comes up without any issue.
Any idea on why the error gets thrown while starting through Embedded ?
Thanks and Regards
Mohamed Rafi S
)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3363)
I have attached the Embedded Tomcat java source file as well.
What am I missing in this ? Any solution or pointers to why this is
occurring are most welcome.
Thanks and Regards,
Mohamed Rafi S
//package com.apple.pos;
import
)
at
org.apache.catalina.servlets.DefaultServlet.clinit(DefaultServlet.java
:186)
... 17 more
Thanks,
Mohamed Rafi S
Hi,
org.apache.catalina.servlets.DefaultServlet
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.j
a
v
a:865)
at
org.apache.catalina.core.StandardWrapper.load