Solved

How can I run Apache Tomcat 6 as a Windows Service - little more complicated than just running the prepackaged Windows Service package?

Posted on 2011-09-07
2
775 Views
Last Modified: 2013-12-02
We have Vertex (a Java based tax calculation software) installed on a Windows 2008 Std (non-R2) server. We installed Tomcat 6 and Axis2 on the webserver to run a soap service for our website to be able to communicate with and get tax quotes.
When I run Tomcat from the bin directory via the startup.bat everything is fine, but we need Tomcat to be started as a Windows Service, and not tied to any individual user account.
When the precompiled "Tomcat as a Service" package is installed to a different instance, and all the pieces used in the other instance (Axis2, Vertex) are installed to it, Axis2 works fine and their sample soap service works, but the Vertex service does not. It is throwing a bunch of class not defined errors. The Vertex service does need one classpath variable defined so it can find the Vertex software. I tried setting it in the bin and I can echo it with no probolem, but I still can't get the Vertex service to work.
Where should I declare this classpath for the service to work (it is already in the environment variables)?
Please let me know if you need more info
Below is the beginning of the explicit error messages:

Error: java.lang.NoClassDefFoundError: com/vertexinc/equantum/qsut/exception/VertexRuntimeException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.(DefaultSchemaGenerator.java:136) at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:499) at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:386) at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:101) at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:143) at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:81) at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:659) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:337) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:241) at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:331) at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:64) at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:71) at org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:90) at java.util.TimerThread.mainLoop(Unknown Source) at java.util.TimerThread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: Class Not found : com.vertexinc.equantum.qsut.exception.VertexRuntimeException at org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:86) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 19 more
0
Comment
Question by:callis610
2 Comments
 
LVL 33

Accepted Solution

by:
shalomc earned 500 total points
ID: 36511853
Copy the Vertex jar files to the Tomcat "lib" folder. Everything in it is automatically available to all user applications.
0
 

Author Closing Comment

by:callis610
ID: 36522824
Great answer, thanks for the feedback.
0

Featured Post

Don't miss ATEN at NAB Show April 24-27!

Visit ATEN at NAB Show to learn how our "Seamlessly Entertaining" solutions deliver fast, precise video streaming without delays for the broadcasting and media environment. ATEN will showcase its 16x16 Modular Matrix Switch (VM1600) and KVM Over IP Solution (KE6900 series).

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question