Running the Spring Web Services Application
The easiest way to run the web service and see the log output is to run Tomcat not as a service but from Windows Explorer. To do this, locate the folder in which Tomcat is installed, and look for the file tomcat6.exe. On my system, this file is located in the following folder:
C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin
To start Tomcat, just double-click the file tomcat6.exe. You should see program output similar to that in Listing 3. (I've deleted some additional log output just for simplicity.)
Listing 3 Log output from Tomcat starting up.
May 24, 2008 12:15:28 PM org.apache.catalina.core.AprLifecycleListener init May 24, 2008 12:15:28 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 May 24, 2008 12:15:28 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 999 ms May 24, 2008 12:15:29 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina May 24, 2008 12:15:29 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.16 May 24, 2008 12:15:29 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive echo.war May 24, 2008 12:15:30 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive tutorial.war May 24, 2008 12:15:32 PM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener "listeners.ContextListener" is already configured for this context. The duplicate definition has been ignored. May 24, 2008 12:15:32 PM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener "listeners.SessionListener" is already configured for this context. The duplicate definition has been ignored. May 24, 2008 12:15:35 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 May 24, 2008 12:15:35 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 May 24, 2008 12:15:35 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/47 config=null May 24, 2008 12:15:35 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 6773 ms
The Tomcat log output item of interest to us is the following line (shown in bold in Listing 3):
INFO: Deploying web application archive tutorial.war
This line indicates that Tomcat has deployed our web service successfully. Once Tomcat is up and running, you're ready to interact with the web service. You'll do this using SOAPUI, so let's look at this useful toolkit.