Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Eclipse 3.3.0 M5 web.xml namespace issue with Tomcat 6
Eclipse 3.3.0 M5 web.xml namespace issue with Tomcat 6 [message #193227] Sat, 26 May 2007 22:10 Go to next message
Eclipse UserFriend
Originally posted by: mikevoxcap.hotmail.com

If I perform an action with a dynamic web project in eclipse that results in
a deployment descriptor change, such as adding a servlet, eclipse will
convert my web.xml to use a namespace as shown below. When the project is
deployed to Tomcat 6, the servlet resource is not recognized. If I manually
change the web.xml back to not use the web namespace, the servlet is
recognized. Might be a dumb question, but is there a way to make Tomcat 6
namespace aware OR change eclipse to not convert my web.xml to use a
namespace?

-- before --
<servlet>
<description></description>
<display-name>TestServ</display-name>
<web:servlet-name>TestServ</web:servlet-name>
<web:servlet-class>com.llamabuy.servlet.TestServ</web:servlet-class >
</servlet>

-- after --
<web:servlet>
<description></description>
<display-name>TestServ</display-name>
<web:servlet-name>TestServ</web:servlet-name>
<web:servlet-class>com.llamabuy.servlet.TestServ</web:servlet-class >
</web:servlet>

Thanks!

Michael Hoffman
mikevoxcap@hotmail.com
Re: Eclipse 3.3.0 M5 web.xml namespace issue with Tomcat 6 [message #193364 is a reply to message #193227] Mon, 28 May 2007 16:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikevoxcap.hotmail.com

As a follow-up to the post below, this is the error I get when I try to
publish the web app to Tomcat 6 and run a basic servlet. It seems this is
related to project facets, but I cannot see why this does not work out of
the box. Please help!
May 28, 2007 11:07:29 AM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Error configuring application listener of class
|CONFIG_LISTEN_CLASS|
java.lang.ClassNotFoundException: |CONFIG_LISTEN_CLASS|
at
org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1358)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1204)
at
org.apache.catalina.core.StandardContext.listenerStart(Stand ardContext.java:3770)
at org.apache.catalina.core.StandardContext.start(StandardConte xt.java:4334)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.jav a:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine .java:443)
at org.apache.catalina.core.StandardService.start(StandardServi ce.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer .java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566 )
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:2 88)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:41 3)
May 28, 2007 11:07:29 AM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)

May 28, 2007 11:07:29 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart

May 28, 2007 11:07:29 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/LlamaBestBuy] startup failed due to previous errors


"Mike Hoffman" <mikevoxcap@hotmail.com> wrote in message
news:f3ab91$875$1@build.eclipse.org...
> If I perform an action with a dynamic web project in eclipse that results
> in a deployment descriptor change, such as adding a servlet, eclipse will
> convert my web.xml to use a namespace as shown below. When the project is
> deployed to Tomcat 6, the servlet resource is not recognized. If I
> manually change the web.xml back to not use the web namespace, the servlet
> is recognized. Might be a dumb question, but is there a way to make Tomcat
> 6 namespace aware OR change eclipse to not convert my web.xml to use a
> namespace?
>
> -- before --
> <servlet>
> <description></description>
> <display-name>TestServ</display-name>
> <web:servlet-name>TestServ</web:servlet-name>
> <web:servlet-class>com.llamabuy.servlet.TestServ</web:servlet-class >
> </servlet>
>
> -- after --
> <web:servlet>
> <description></description>
> <display-name>TestServ</display-name>
> <web:servlet-name>TestServ</web:servlet-name>
> <web:servlet-class>com.llamabuy.servlet.TestServ</web:servlet-class >
> </web:servlet>
>
> Thanks!
>
> Michael Hoffman
> mikevoxcap@hotmail.com
>
Re: Eclipse 3.3.0 M5 web.xml namespace issue with Tomcat 6 [message #193380 is a reply to message #193364] Mon, 28 May 2007 20:12 Go to previous message
Eclipse UserFriend
Originally posted by: mikevoxcap.hotmail.com

Re-installed and it fixed the problem.

"Mike Hoffman" <mikevoxcap@hotmail.com> wrote in message
news:f3euv4$9vu$1@build.eclipse.org...
> As a follow-up to the post below, this is the error I get when I try to
> publish the web app to Tomcat 6 and run a basic servlet. It seems this is
> related to project facets, but I cannot see why this does not work out of
> the box. Please help!
> May 28, 2007 11:07:29 AM org.apache.catalina.core.StandardContext
> listenerStart
> SEVERE: Error configuring application listener of class
> |CONFIG_LISTEN_CLASS|
> java.lang.ClassNotFoundException: |CONFIG_LISTEN_CLASS|
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1358)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1204)
> at
> org.apache.catalina.core.StandardContext.listenerStart(Stand ardContext.java:3770)
> at
> org.apache.catalina.core.StandardContext.start(StandardConte xt.java:4334)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1045)
> at org.apache.catalina.core.StandardHost.start(StandardHost.jav a:719)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1045)
> at org.apache.catalina.core.StandardEngine.start(StandardEngine .java:443)
> at
> org.apache.catalina.core.StandardService.start(StandardServi ce.java:516)
> at org.apache.catalina.core.StandardServer.start(StandardServer .java:710)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:566 )
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:2 88)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:41 3)
> May 28, 2007 11:07:29 AM org.apache.catalina.core.StandardContext
> listenerStart
> SEVERE: Skipped installing application listeners due to previous error(s)
>
> May 28, 2007 11:07:29 AM org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
>
> May 28, 2007 11:07:29 AM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/LlamaBestBuy] startup failed due to previous errors
>
>
> "Mike Hoffman" <mikevoxcap@hotmail.com> wrote in message
> news:f3ab91$875$1@build.eclipse.org...
>> If I perform an action with a dynamic web project in eclipse that results
>> in a deployment descriptor change, such as adding a servlet, eclipse will
>> convert my web.xml to use a namespace as shown below. When the project is
>> deployed to Tomcat 6, the servlet resource is not recognized. If I
>> manually change the web.xml back to not use the web namespace, the
>> servlet is recognized. Might be a dumb question, but is there a way to
>> make Tomcat 6 namespace aware OR change eclipse to not convert my web.xml
>> to use a namespace?
>>
>> -- before --
>> <servlet>
>> <description></description>
>> <display-name>TestServ</display-name>
>> <web:servlet-name>TestServ</web:servlet-name>
>> <web:servlet-class>com.llamabuy.servlet.TestServ</web:servlet-class >
>> </servlet>
>>
>> -- after --
>> <web:servlet>
>> <description></description>
>> <display-name>TestServ</display-name>
>> <web:servlet-name>TestServ</web:servlet-name>
>> <web:servlet-class>com.llamabuy.servlet.TestServ</web:servlet-class >
>> </web:servlet>
>>
>> Thanks!
>>
>> Michael Hoffman
>> mikevoxcap@hotmail.com
>>
>
>
Previous Topic:Error while creating EJB project and doubt about EJB Client project location
Next Topic:improved JavaScript editor?
Goto Forum:
  


Current Time: Fri Apr 19 20:19:32 GMT 2024

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

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

Back to the top