tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: deploying a war file and starting the application
Date Sun, 30 Jan 2011 19:29:09 GMT
Hash: SHA1


On 1/28/2011 6:05 PM, wrote:
> Well after playing with web.xml I got my app up and partly working in Tomcat 7.

Good that it's working... sorry only partly.

> When I go to http://localhost:7080/allMATCHWeb the default page is
> loaded. My properties file is loaded and language based webpages
> generated, etc.

Good. What about your log statements? Where did you eventually find
them? Also, what did you have to do to get your InitServlet to run?

> Now my issue seems to be with web services. Again the web.xml
> contains the following for each webservice.
>   <servlet>
>     <servlet-name>MessageServiceServlethttp</servlet-name>
>     <servlet-class>com.surecomp.allMATCH.client.webservices.MessageService</servlet-class>
>     <load-on-startup>0</load-on-startup>

Note that <load-on-startup>0</load-on-startup> is the default, so you
don't actually need that.

>   </servlet>
>   <servlet-mapping>
>     <servlet-name>MessageServiceServlethttp</servlet-name>
>     <url-pattern>MessageService</url-pattern>

URL patterns are required to start with "/". Didn't we cover this?

>   </servlet-mapping>
> Now, these work for webshpere and weblogic, so I am assuming (bad
> thing I know) that the same would work for Tomcat.

Anything that is written and deployed to specification should work in
all containers. If you are having a problem with a spec-compliant webapp
I assure you it will be fixed ASAP.

> The log file is producing the following when deploying the services.
> INFO: Marking servlet MessageServiceServlethttp as unavailable
> Jan 28, 2011 5:59:40 PM org.apache.catalina.core.StandardContext loadOnStartup
> SEVERE: Servlet /allMATCHWeb threw load() exception
> java.lang.ClassCastException: com.surecomp.allMATCH.client.webservices.MessageService
cannot be cast to javax.servlet.Servlet

I'll bet you have all kinds of inappropriate libraries deployed in
various places.

What libraries have you added to CATALINA_BASE/lib?
What changes (if any) have you made to CATALINA_BASE/
What libraries do you have in WEB-INF/lib?

- -chris
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message