Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Project not showing to add to tomcat server(Project not showing in list of project to add to tomcat server)
Project not showing to add to tomcat server [message #500081] Tue, 24 November 2009 21:24 Go to next message
No real name is currently offline No real name
Messages: 4
Registered: November 2009
Junior Member
I have upgraded from Eclipse 3.1 to 3.5.1 and when I right click on server to add my project to the server. None of my projects show up. I get the message "there are no resources that can be added or removed from the server. What type of projects can be added to a server? All of my projects are Java Projects. FYI, all of my projects are deployed by ant, external to Eclipse.
Thanks,
Angela
Re: Project not showing to add to tomcat server [message #500095 is a reply to message #500081] Tue, 24 November 2009 23:17 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 4
Registered: November 2009
Junior Member
I found out I needed to convert my project to a dynamic web project by copying over the .project file and .settings directory for a temporary dynamic web project that I created for that purpose. Then go through the files and fix the project name. Then you can add your project to the server.

It still doesn't run my project, though. On to the next step. Tomcat is running successfully from what the console says, but the logs show no activity. Tomcat run from the command line does put info into the logs, but I cannot run my project.

2009-11-24 17:10:27 WebappLoader[/alligator]: Reloading checks are enabled for this Context
2009-11-24 17:10:28 StandardManager[/alligator]: Seeding random number generator class java.security.SecureRandom
2009-11-24 17:10:28 StandardManager[/alligator]: Seeding of random number generator has been completed
2009-11-24 17:10:31 StandardContext[/alligator]: Servlet /alligator threw load() exception
javax.servlet.ServletException: Servlet.init() for servlet dispatcher threw exception
at org.apache.catalina.core.StandardWrapper.loadServlet(Standar dWrapper.java:963)
at org.apache.catalina.core.StandardWrapper.load(StandardWrappe r.java:823)
at org.apache.catalina.core.StandardContext.loadOnStartup(Stand ardContext.java:3420)
at org.apache.catalina.core.StandardContext.start(StandardConte xt.java:3608)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1188)
at org.apache.catalina.core.StandardHost.start(StandardHost.jav a:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine .java:347)
at org.apache.catalina.core.StandardService.start(StandardServi ce.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer .java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512 )
at org.apache.catalina.startup.Catalina.execute(Catalina.java:4 00)
at org.apache.catalina.startup.Catalina.process(Catalina.java:1 80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:20 3)
----- Root Cause -----
java.lang.NoSuchMethodError: org.jdom.output.XMLOutputter.setTextNormalize(Z)V
at org.infohazard.maverick.util.XML.<clinit>(XML.java:34)
at org.infohazard.maverick.flow.Loader.loadDocument(Loader.java :140)
at org.infohazard.maverick.flow.Loader.<init>(Loader.java:88)
at org.infohazard.maverick.Dispatcher.reloadConfig(Dispatcher.j ava:239)
at tdhca.maverick.Dispatcher.reloadConfig(Dispatcher.java:286)
at org.infohazard.maverick.Dispatcher.init(Dispatcher.java:159)
at tdhca.maverick.Dispatcher.init(Dispatcher.java:308)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at org.apache.catalina.core.StandardWrapper.loadServlet(Standar dWrapper.java:935)
at org.apache.catalina.core.StandardWrapper.load(StandardWrappe r.java:823)
at org.apache.catalina.core.StandardContext.loadOnStartup(Stand ardContext.java:3420)
at org.apache.catalina.core.StandardContext.start(StandardConte xt.java:3608)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1188)
at org.apache.catalina.core.StandardHost.start(StandardHost.jav a:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine .java:347)
at org.apache.catalina.core.StandardService.start(StandardServi ce.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer .java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512 )
at org.apache.catalina.startup.Catalina.execute(Catalina.java:4 00)
at org.apache.catalina.startup.Catalina.process(Catalina.java:1 80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:20 3)

2009-11-24 17:10:31 StandardWrapper[/alligator:default]: Loading container servlet default
2009-11-24 17:10:31 Use of the properties initialization parameter 'properties' has been deprecated by 'org.apache.velocity.properties'
2009-11-24 17:10:32 StandardWrapper[/alligator:invoker]: Loading container servlet invoker
2009-11-24 17:10:32 WebappLoader[/aims2]: Deploying class repositories to work directory C:\jakarta-tomcat-4.1.24\work\Standalone\localhost\aims2
2009-11-24 17:10:32 WebappLoader[/aims2]: Reloading checks are enabled for this Context
2009-11-24 17:10:32 ContextConfig[/aims2]: Missing application web.xml, using defaults only
2009-11-24 17:10:32 StandardManager[/aims2]: Seeding random number generator class java.security.SecureRandom
2009-11-24 17:10:32 StandardManager[/aims2]: Seeding of random number generator has been completed
2009-11-24 17:10:32 StandardWrapper[/aims2:default]: Loading container servlet default
2009-11-24 17:10:32 StandardWrapper[/aims2:invoker]: Loading container servlet invoker
2009-11-24 17:10:32 HostConfig[localhost]: Deploying configuration descriptor admin.xml
2009-11-24 17:10:34 HostConfig[localhost]: Deploying configuration descriptor manager.xml
2009-11-24 17:10:34 WebappLoader[/manager]: Deploying class repositories to work directory C:\jakarta-tomcat-4.1.24\work\Standalone\localhost\manager
2009-11-24 17:10:34 ContextConfig[/manager]: Configured an authenticator for method BASIC
2009-11-24 17:10:34 StandardManager[/manager]: Seeding random number generator class java.security.SecureRandom
2009-11-24 17:10:34 StandardManager[/manager]: Seeding of random number generator has been completed
2009-11-24 17:10:34 StandardWrapper[/manager:default]: Loading container servlet default
2009-11-24 17:10:34 StandardWrapper[/manager:invoker]: Loading container servlet invoker
2009-11-24 17:10:34 HostConfig[localhost]: Deploying web application directory examples
2009-11-24 17:10:34 StandardHost[localhost]: Installing web application at context path /examples from URL file:C:\jakarta-tomcat-4.1.24\webapps\examples
2009-11-24 17:10:34 WebappLoader[/examples]: Deploying class repositories to work directory C:\jakarta-tomcat-4.1.24\work\Standalone\localhost\examples
2009-11-24 17:10:34 WebappLoader[/examples]: Deploy class files /WEB-INF/classes to C:\jakarta-tomcat-4.1.24\webapps\examples\WEB-INF\classes
2009-11-24 17:10:34 ContextConfig[/examples]: Configured an authenticator for method FORM
2009-11-24 17:10:34 StandardManager[/examples]: Seeding random number generator class java.security.SecureRandom
2009-11-24 17:10:34 StandardManager[/examples]: Seeding of random number generator has been completed
2009-11-24 17:10:34 ContextListener: contextInitialized()
2009-11-24 17:10:34 SessionListener: contextInitialized()
2009-11-24 17:10:34 StandardWrapper[/examples:default]: Loading container servlet default
2009-11-24 17:10:34 StandardWrapper[/examples:invoker]: Loading container servlet invoker
2009-11-24 17:10:34 HostConfig[localhost]: Deploying web application directory ROOT
2009-11-24 17:10:34 StandardHost[localhost]: Installing web application at context path from URL file:C:\jakarta-tomcat-4.1.24\webapps\ROOT
2009-11-24 17:10:34 WebappLoader[]: Deploying class repositories to work directory C:\jakarta-tomcat-4.1.24\work\Standalone\localhost\_
2009-11-24 17:10:34 StandardManager[]: Seeding random number generator class java.security.SecureRandom
2009-11-24 17:10:34 StandardManager[]: Seeding of random number generator has been completed
2009-11-24 17:10:34 StandardWrapper[:default]: Loading container servlet default
2009-11-24 17:10:34 StandardWrapper[:invoker]: Loading container servlet invoker
2009-11-24 17:10:34 HostConfig[localhost]: Deploying web application directory tomcat-docs
2009-11-24 17:10:34 StandardHost[localhost]: Installing web application at context path /tomcat-docs from URL file:C:\jakarta-tomcat-4.1.24\webapps\tomcat-docs
2009-11-24 17:10:34 WebappLoader[/tomcat-docs]: Deploying class repositories to work directory C:\jakarta-tomcat-4.1.24\work\Standalone\localhost\tomcat-do cs
2009-11-24 17:10:34 StandardManager[/tomcat-docs]: Seeding random number generator class java.security.SecureRandom
2009-11-24 17:10:34 StandardManager[/tomcat-docs]: Seeding of random number generator has been completed
2009-11-24 17:10:34 StandardWrapper[/tomcat-docs:default]: Loading container servlet default
2009-11-24 17:10:34 StandardWrapper[/tomcat-docs:invoker]: Loading container servlet invoker
2009-11-24 17:10:34 HostConfig[localhost]: Deploying web application directory webdav
2009-11-24 17:10:34 StandardHost[localhost]: Installing web application at context path /webdav from URL file:C:\jakarta-tomcat-4.1.24\webapps\webdav
2009-11-24 17:10:34 WebappLoader[/webdav]: Deploying class repositories to work directory C:\jakarta-tomcat-4.1.24\work\Standalone\localhost\webdav
2009-11-24 17:10:34 StandardManager[/webdav]: Seeding random number generator class java.security.SecureRandom
2009-11-24 17:10:34 StandardManager[/webdav]: Seeding of random number generator has been completed
2009-11-24 17:10:34 StandardWrapper[/webdav:default]: Loading container servlet default
2009-11-24 17:10:34 StandardWrapper[/webdav:invoker]: Loading container servlet invoker

Any help would be appreciated.

Thanks,
Angela
Re: Project not showing to add to tomcat server [message #500607 is a reply to message #500095] Fri, 27 November 2009 06:01 Go to previous message
Philippe Marschall is currently offline Philippe Marschall
Messages: 120
Registered: July 2009
Senior Member
akcday@yahoo.com wrote:
> I found out I needed to convert my project to a dynamic web project by
> copying over the .project file and .settings directory for a temporary
> dynamic web project that I created for that purpose. Then go through
> the files and fix the project name. Then you can add your project to
> the server.

There are easier ways to do this, like Maven.

> It still doesn't run my project, though. On to the next step. Tomcat
> is running successfully from what the console says, but the logs show no
> activity. Tomcat run from the command line does put info into the logs,
> but I cannot run my project.
> 2009-11-24 17:10:27 WebappLoader[/alligator]: Reloading checks are
> enabled for this Context
> 2009-11-24 17:10:28 StandardManager[/alligator]: Seeding random number
> generator class java.security.SecureRandom
> 2009-11-24 17:10:28 StandardManager[/alligator]: Seeding of random
> number generator has been completed
> 2009-11-24 17:10:31 StandardContext[/alligator]: Servlet /alligator
> threw load() exception
> javax.servlet.ServletException: Servlet.init() for servlet dispatcher
> threw exception
> at org.apache.catalina.core.StandardWrapper.loadServlet(Standar
> dWrapper.java:963)
> at org.apache.catalina.core.StandardWrapper.load(StandardWrappe
> r.java:823)
> at org.apache.catalina.core.StandardContext.loadOnStartup(Stand
> ardContext.java:3420)
> at org.apache.catalina.core.StandardContext.start(StandardConte
> xt.java:3608)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.j
> ava:1188)
> at org.apache.catalina.core.StandardHost.start(StandardHost.jav a:738)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.j
> ava:1188)
> at org.apache.catalina.core.StandardEngine.start(StandardEngine
> .java:347)
> at org.apache.catalina.core.StandardService.start(StandardServi
> ce.java:497)
> at org.apache.catalina.core.StandardServer.start(StandardServer
> .java:2190)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:512 )
> at org.apache.catalina.startup.Catalina.execute(Catalina.java:4 00)
> at org.apache.catalina.startup.Catalina.process(Catalina.java:1 80)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
> ssorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:592)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:20 3)
> ----- Root Cause -----
> java.lang.NoSuchMethodError:
> org.jdom.output.XMLOutputter.setTextNormalize(Z)V

Our JDOM Version doesn't match. Judging from the current Javadoc [1] I'd
guess it's too new.

The problem is in the static initializer of the class
org.infohazard.maverick.util.XML on line 34.

[1] http://www.jdom.org/docs/apidocs/org/jdom/output/XMLOutputte r.html

Cheers
Philippe
Previous Topic:how to enable javascript code completion?
Next Topic:What are Smoke Tests ?
Goto Forum:
  


Current Time: Thu Oct 30 13:13:19 GMT 2014

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

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