Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Installing Web Application
Installing Web Application [message #146014] Thu, 03 November 2005 02:56 Go to next message
Ben Sisson is currently offline Ben SissonFriend
Messages: 202
Registered: July 2009
Senior Member
When I startup the Apache server in Eclipse by either clicking on the
server start button or by right clicking on the client and selecting run
on server, the console receives a series of startup messages. The full
message is below, but what I can't figure out is why not all the services
were deployed. In the message there is a list of applications that are
deployed (ex: INFO: Installing web application at context path / axis
from URL file:c:\Program Files\Apache Software Foundation\Tomcat
5.0\webapps\BASS_WebServicesClientMod"

I have a number of Web Services that are in this directory path but they
are not deployed I have one called BASS_WebServicesMod that is the Web
Service that this client calls. It is not amongst the list of
applications deployed.

Why isn't it deployed?

What do I need to do to get it deployed?

Nov 2, 2005 9:03:31 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Nov 2, 2005 9:03:31 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2094 ms
Nov 2, 2005 9:03:31 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Nov 2, 2005 9:03:31 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
Nov 2, 2005 9:03:31 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Nov 2, 2005 9:03:33 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Nov 2, 2005 9:03:33 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:C:\Program
Files\Apache Software Foundation\Tomcat
5.0\conf\Catalina\localhost\admin.xml
Nov 2, 2005 9:03:34 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Nov 2, 2005 9:03:34 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Nov 2, 2005 9:03:34 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
returnNull=true
Nov 2, 2005 9:03:37 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:C:\Program
Files\Apache Software Foundation\Tomcat
5.0\conf\Catalina\localhost\balancer.xml
Nov 2, 2005 9:03:37 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:C:\Program
Files\Apache Software Foundation\Tomcat
5.0\conf\Catalina\localhost\manager.xml
Nov 2, 2005 9:03:37 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /axis from URL
file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\axis
Nov 2, 2005 9:03:39 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path
/BASS_WebServicesClientMod from URL file:C:\Program Files\Apache Software
Foundation\Tomcat 5.0\webapps\BASS_WebServicesClientMod
Nov 2, 2005 9:03:40 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /jsp-examples from URL
file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\webapps\jsp-examples
Nov 2, 2005 9:03:41 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path from URL file:C:\Program
Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT
Nov 2, 2005 9:03:41 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /servlets-examples from
URL file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\webapps\servlets-examples
Nov 2, 2005 9:03:41 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /tomcat-docs from URL
file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\webapps\tomcat-docs
Nov 2, 2005 9:03:41 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /webdav from URL
file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\webdav
Nov 2, 2005 9:03:42 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Nov 2, 2005 9:03:42 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Nov 2, 2005 9:03:42 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=32/31 config=C:\Program Files\Apache Software
Foundation\Tomcat 5.0\conf\jk2.properties
Nov 2, 2005 9:03:42 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 10843 ms
Re: Installing Web Application [message #146070 is a reply to message #146014] Thu, 03 November 2005 09:06 Go to previous messageGo to next message
André Dobell is currently offline André DobellFriend
Messages: 2
Registered: July 2009
Junior Member
Hello Ben:

When you start Apache, you have to set the parameters and apps you want
to deploy to. If you have assigned just one application, this is the
only application that will be run. You have to set all the server
configuration (all the apps, services you want to run) and then it would
run properly. I've seen tha if you use the tomcat plugin intead, it
manteins all the configuration of the server.

Ben wrote:
> When I startup the Apache server in Eclipse by either clicking on the
> server start button or by right clicking on the client and selecting run
> on server, the console receives a series of startup messages. The full
> message is below, but what I can't figure out is why not all the
> services were deployed. In the message there is a list of applications
> that are deployed (ex: INFO: Installing web application at context
> path / axis from URL file:c:\Program Files\Apache Software
> Foundation\Tomcat 5.0\webapps\BASS_WebServicesClientMod"
>
> I have a number of Web Services that are in this directory path but they
> are not deployed I have one called BASS_WebServicesMod that is the Web
> Service that this client calls. It is not amongst the list of
> applications deployed.
> Why isn't it deployed?
> What do I need to do to get it deployed?
>
> Nov 2, 2005 9:03:31 PM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Nov 2, 2005 9:03:31 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 2094 ms
> Nov 2, 2005 9:03:31 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Nov 2, 2005 9:03:31 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
> Nov 2, 2005 9:03:31 PM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Nov 2, 2005 9:03:33 PM org.apache.catalina.core.StandardHost getDeployer
> INFO: Create Host deployer for direct deployment ( non-jmx ) Nov 2, 2005
> 9:03:33 PM org.apache.catalina.core.StandardHostDeployer install
> INFO: Processing Context configuration file URL file:C:\Program
> Files\Apache Software Foundation\Tomcat
> 5.0\conf\Catalina\localhost\admin.xml
> Nov 2, 2005 9:03:34 PM org.apache.struts.util.PropertyMessageResources
> <init>
> INFO: Initializing, config='org.apache.struts.util.LocalStrings',
> returnNull=true
> Nov 2, 2005 9:03:34 PM org.apache.struts.util.PropertyMessageResources
> <init>
> INFO: Initializing, config='org.apache.struts.action.ActionResources',
> returnNull=true
> Nov 2, 2005 9:03:34 PM org.apache.struts.util.PropertyMessageResources
> <init>
> INFO: Initializing,
> config='org.apache.webapp.admin.ApplicationResources', returnNull=true
> Nov 2, 2005 9:03:37 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Processing Context configuration file URL file:C:\Program
> Files\Apache Software Foundation\Tomcat
> 5.0\conf\Catalina\localhost\balancer.xml
> Nov 2, 2005 9:03:37 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Processing Context configuration file URL file:C:\Program
> Files\Apache Software Foundation\Tomcat
> 5.0\conf\Catalina\localhost\manager.xml
> Nov 2, 2005 9:03:37 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path /axis from URL
> file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\axis
> Nov 2, 2005 9:03:39 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path
> /BASS_WebServicesClientMod from URL file:C:\Program Files\Apache
> Software Foundation\Tomcat 5.0\webapps\BASS_WebServicesClientMod
> Nov 2, 2005 9:03:40 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path /jsp-examples from URL
> file:C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\webapps\jsp-examples
> Nov 2, 2005 9:03:41 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path from URL
> file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT
> Nov 2, 2005 9:03:41 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path /servlets-examples from
> URL file:C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\webapps\servlets-examples
> Nov 2, 2005 9:03:41 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path /tomcat-docs from URL
> file:C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\webapps\tomcat-docs
> Nov 2, 2005 9:03:41 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path /webdav from URL
> file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\webdav
> Nov 2, 2005 9:03:42 PM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> Nov 2, 2005 9:03:42 PM org.apache.jk.common.ChannelSocket init
> INFO: JK2: ajp13 listening on /0.0.0.0:8009
> Nov 2, 2005 9:03:42 PM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=32/31 config=C:\Program Files\Apache
> Software Foundation\Tomcat 5.0\conf\jk2.properties
> Nov 2, 2005 9:03:42 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 10843 ms
>
>
Re: Installing Web Application [message #146168 is a reply to message #146014] Thu, 03 November 2005 16:24 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Because the WTP contexts are added directly in the servers.xml, you
don't get the usual logging you would with contexts declared in other
ways. A quick scan of some Tomcat source don't show much is logged in
this situation at the informational level for a context declared in
server.xml. Logging at the debug level will probably give you more than
you want.

When running with the "Run modules directly from the workspace"
unchecked, the module should be copied to the Tomcat installation's
webapps directory. If it is there, check for the existence of an
appropriate directory under the installation's "work" directory once
Tomcat is running. That would indicate it is being served.

Cheers,
Larry

Ben wrote:
> When I startup the Apache server in Eclipse by either clicking on the
> server start button or by right clicking on the client and selecting run
> on server, the console receives a series of startup messages. The full
> message is below, but what I can't figure out is why not all the
> services were deployed. In the message there is a list of applications
> that are deployed (ex: INFO: Installing web application at context
> path / axis from URL file:c:\Program Files\Apache Software
> Foundation\Tomcat 5.0\webapps\BASS_WebServicesClientMod"
>
> I have a number of Web Services that are in this directory path but they
> are not deployed I have one called BASS_WebServicesMod that is the Web
> Service that this client calls. It is not amongst the list of
> applications deployed.
> Why isn't it deployed?
> What do I need to do to get it deployed?
>
> Nov 2, 2005 9:03:31 PM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Nov 2, 2005 9:03:31 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 2094 ms
> Nov 2, 2005 9:03:31 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Nov 2, 2005 9:03:31 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
> Nov 2, 2005 9:03:31 PM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Nov 2, 2005 9:03:33 PM org.apache.catalina.core.StandardHost getDeployer
> INFO: Create Host deployer for direct deployment ( non-jmx ) Nov 2, 2005
> 9:03:33 PM org.apache.catalina.core.StandardHostDeployer install
> INFO: Processing Context configuration file URL file:C:\Program
> Files\Apache Software Foundation\Tomcat
> 5.0\conf\Catalina\localhost\admin.xml
> Nov 2, 2005 9:03:34 PM org.apache.struts.util.PropertyMessageResources
> <init>
> INFO: Initializing, config='org.apache.struts.util.LocalStrings',
> returnNull=true
> Nov 2, 2005 9:03:34 PM org.apache.struts.util.PropertyMessageResources
> <init>
> INFO: Initializing, config='org.apache.struts.action.ActionResources',
> returnNull=true
> Nov 2, 2005 9:03:34 PM org.apache.struts.util.PropertyMessageResources
> <init>
> INFO: Initializing,
> config='org.apache.webapp.admin.ApplicationResources', returnNull=true
> Nov 2, 2005 9:03:37 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Processing Context configuration file URL file:C:\Program
> Files\Apache Software Foundation\Tomcat
> 5.0\conf\Catalina\localhost\balancer.xml
> Nov 2, 2005 9:03:37 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Processing Context configuration file URL file:C:\Program
> Files\Apache Software Foundation\Tomcat
> 5.0\conf\Catalina\localhost\manager.xml
> Nov 2, 2005 9:03:37 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path /axis from URL
> file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\axis
> Nov 2, 2005 9:03:39 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path
> /BASS_WebServicesClientMod from URL file:C:\Program Files\Apache
> Software Foundation\Tomcat 5.0\webapps\BASS_WebServicesClientMod
> Nov 2, 2005 9:03:40 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path /jsp-examples from URL
> file:C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\webapps\jsp-examples
> Nov 2, 2005 9:03:41 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path from URL
> file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT
> Nov 2, 2005 9:03:41 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path /servlets-examples from
> URL file:C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\webapps\servlets-examples
> Nov 2, 2005 9:03:41 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path /tomcat-docs from URL
> file:C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\webapps\tomcat-docs
> Nov 2, 2005 9:03:41 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path /webdav from URL
> file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\webdav
> Nov 2, 2005 9:03:42 PM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> Nov 2, 2005 9:03:42 PM org.apache.jk.common.ChannelSocket init
> INFO: JK2: ajp13 listening on /0.0.0.0:8009
> Nov 2, 2005 9:03:42 PM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=32/31 config=C:\Program Files\Apache
> Software Foundation\Tomcat 5.0\conf\jk2.properties
> Nov 2, 2005 9:03:42 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 10843 ms
>
>
Re: Installing Web Application [message #146257 is a reply to message #146168] Thu, 03 November 2005 21:41 Go to previous messageGo to next message
Ben Sisson is currently offline Ben SissonFriend
Messages: 202
Registered: July 2009
Senior Member
Larry,

Thanks for your help. I verified the server.xml file and it contains
three context statements for each of the three services that I want to
deploy.

I do not have the "Run modules directly from the workspace" checked as you
suspected. In my Tomcat directory structure I have a folder \work with a
sub folder for Catalina\localhost that contains the ...Mod directories for
the Web Services that I want to deploy. I can verify that these have
always been updated and shown up in the past.

When I check the entries in the console after starting up the server, I
still do not see any of my Web Services listed but as you stated, if they
appear in the work directory then they are being served.

Here is the problem that I can't figure out though and that I thought was
related to the installing of the Web applicaitons message.

At this point, if I start up the server using Eclipse and then launch the
Web Service Explorer to run my Web Service (using WSDL), the web service
runs fine. However, if I start up the server (Tomcat) from the Tomcat
directory (outside Eclipse) and then launch the Web Service Explorer
(WSDL) from Eclipse to run my Web Services I get an error message:

fault code: soapenv:Server.userException
falutstring: java.lang.reflect.InvocationTargetException

I Export each of my projects to JAR files and place them in the \Tomcat
5.0\webapps\axis\WEB-INF\lib directory. It also appears that the same
project ...Mode directories that were placed in the
\work\Catalina\localhost directory structure were placed in the Tomcat
\5.0\webapps\ directory as well. According to all the documentation that
I can find, these are the steps required to deploy a service.

I would greatly appreciate any help regarding this error and how to deploy
the service. I deployed one similar to this, in this fashion, a few
months ago but I'm completely lost why it isn't working this time.

Thanks,
Ben
Re: Installing Web Application [message #146275 is a reply to message #146257] Thu, 03 November 2005 22:30 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Ben,

It there a more complete stack trace somewhere for the exception that is
occurring? Also, how are you starting Tomcat outside of Eclipse? Are
they using the same JDK and JVM arguments? Those would be things to check.

Larry

Ben wrote:
> Larry,
>
> Thanks for your help. I verified the server.xml file and it contains
> three context statements for each of the three services that I want to
> deploy.
> I do not have the "Run modules directly from the workspace" checked as
> you suspected. In my Tomcat directory structure I have a folder \work
> with a sub folder for Catalina\localhost that contains the ...Mod
> directories for the Web Services that I want to deploy. I can verify
> that these have always been updated and shown up in the past.
>
> When I check the entries in the console after starting up the server, I
> still do not see any of my Web Services listed but as you stated, if
> they appear in the work directory then they are being served.
> Here is the problem that I can't figure out though and that I thought
> was related to the installing of the Web applicaitons message.
>
> At this point, if I start up the server using Eclipse and then launch
> the Web Service Explorer to run my Web Service (using WSDL), the web
> service runs fine. However, if I start up the server (Tomcat) from the
> Tomcat directory (outside Eclipse) and then launch the Web Service
> Explorer (WSDL) from Eclipse to run my Web Services I get an error message:
> fault code: soapenv:Server.userException
> falutstring: java.lang.reflect.InvocationTargetException
>
> I Export each of my projects to JAR files and place them in the \Tomcat
> 5.0\webapps\axis\WEB-INF\lib directory. It also appears that the same
> project ...Mode directories that were placed in the
> \work\Catalina\localhost directory structure were placed in the Tomcat
> \5.0\webapps\ directory as well. According to all the documentation
> that I can find, these are the steps required to deploy a service.
> I would greatly appreciate any help regarding this error and how to
> deploy the service. I deployed one similar to this, in this fashion, a
> few months ago but I'm completely lost why it isn't working this time.
>
> Thanks,
> Ben
>
Previous Topic:What can I use Integration Build (Declared Weekly) for ???
Next Topic:Building a School Web Application problem
Goto Forum:
  


Current Time: Wed Apr 24 23:24:56 GMT 2024

Powered by FUDForum. Page generated in 0.03290 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top