Problems with the sample web service

103 views
Skip to first unread message

El Yobo

unread,
Feb 20, 2010, 12:14:33 AM2/20/10
to JODConverter
Hi,

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.

Mirko Nasato

unread,
Feb 20, 2010, 9:45:05 AM2/20/10
to JODConverter
There should be some more info in the Tomcat logs about why the webapp
couldn't be started. In any case, check that the configuration in WEB-
INF/web.xml, especially office.home.

(BTW you can simply do mvn install in jodconverter-core/ without
having to do mvn install:install-file.)

Kind regards

Mirko

El Yobo

unread,
Feb 20, 2010, 5:18:48 PM2/20/10
to JODConverter
Hi,

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

Mirko Nasato

unread,
Feb 21, 2010, 11:25:26 AM2/21/10
to JODConverter
You only need to do mvn install in jodconverter-core, then mvn package
in jodconverter-sample-webapp. The generated .war should contain all
required jars in its WEB-INF/lib.

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

El Yobo

unread,
Feb 22, 2010, 6:12:46 PM2/22/10
to JODConverter
Thanks, that seems to work fine.
Reply all
Reply to author
Forward
0 new messages