I'm trying to get the sample web service to run in Tomcat. I'm able
to run the SVN snapshop CLI version fine, but the web app fails to
start with no information given in the catalina logs aside from
"SEVERE: Error listenerStart".
I checked out both jodconverter-core and jodconverter-sample-webapp
from SVN, then built jodconverter-core as per the instructions on the
BuildingFromSource wiki page.
I then installed the jodconverter-3.0-SNAPSHOT.jar, using
mvn install:install-file -DgroupId=org.artofsolving.jodconverter -
DartifactId=jodconverter-core -Dversion=3.0-SNAPSHOT -Dpackaging=jar -
Dfile=../jodconverter-core/target/jodconverter-core-3.0-SNAPSHOT.jar
After this, I build the jodconverter-sample-webapp with "mvn package",
installed the .war as tomcat6/webapps/converter.war and restarted
tomcat.
At this point, however, the application is listed as stopped and
attempts to start it fail. Log information is minimal
INFO: Server startup in 7401 ms
20/02/2010 4:02:52 PM
org.artofsolving.jodconverter.sample.web.WebappContext <init>
INFO: max file upload size set to 5242880
20/02/2010 4:02:52 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
20/02/2010 4:02:52 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/converter] startup failed due to previous errors
Any assistance or suggestions would be much appreciated; I'm not a
java developer, or particularly familiar with Tomcat, but if I could
somehow force more info about whatever the error is to be logged I
could probably figure out the problem.
(BTW you can simply do mvn install in jodconverter-core/ without
having to do mvn install:install-file.)
Kind regards
Mirko
Yes, I realised that most of the debugging info from tomcat goes into
the localhost.* logs, rather than catalina.out.
I eventually figured out that copying the libs from the assembly into
WEB-INF seems to be necessary. I added some info to the
BuildingFromSource page in case others have the same problem.
Liam
You can even do mvn jetty:run and start the webapp in an embedded
Jetty web server (meant for development, not for production).
Kind regards
Mirko