tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <...@pidster.com>
Subject Re: servlet unavailable
Date Sun, 04 Sep 2011 20:48:46 GMT
On 03/09/2011 22:36, Adam Posner wrote:
>  Posner to users
> show details 8:16 PM (2 minutes ago)
>=20
> Hello all:
>=20
>=20
> I am hoping someone can help with this.  Tomcat 6.0.28 keeps giving me,=

> saying 'Servlet Front Controller is not available'
> I am using struts 1, the jar file is struts-core-1.3.10 located in
> install_dir/myapp/WEB-INF/lib
>=20
> Please help
>=20
>=20
>=20
> ?xml version=3D"1.0" encoding=3D"UTF-8"?>
> <web-app version=3D"2.5" xmlns=3D"http://java.sun.com/xml/ns/javaee"
>     xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
>     xsi:schemaLocation=3D"http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
>=20
>     <listener>
>     <listener-class>com.listeners.TrailsContextListener</listener-class=
>
>     </listener>
>=20
>      <context-param>
>             <param-name>
>             trailsDBConnName
>         </param-name>
>         <param-value>
>           jdbc:mysql://localhost:3306/trailsDB
>         </param-value>
>     </context-param>
>=20
>=20
>     <!--Define the controller servlet -->
>=20
>      <servlet>
>         <servlet-name>FrontController</servlet-name>
>=20
> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
>=20
>=20
>         <!-- Name the Struts configuration file -->
>=20
>         <init-param>
>             <param-name>config</param-name>
>             <param-value>/WEB-INF/struts-config.xml</param-value>
>         </init-param>
>=20
>         <!-- Guarantees that this servlet is loaded on startup  I'm hop=
ing
> that this won't interfere with my -->
>         <!--    listener declaration above since that also needs to be
> initialized first before anything runs -->
>=20
>        <load-on-startup>2</load-on-startup>
>    </servlet>
>=20
>     <servlet-mapping>
>         <servlet-name>FrontController</servlet-name>
>         <url-pattern>*.do</url-pattern>
>    </servlet-mapping>
>=20
>     <!-- These other servlets will become Actions, and go in
> struts-config.xml file -->
>     <!-- I'll leave them here but commented out for now in case you nee=
d to
> see them
>=20
>     <servlet>
>     <servlet-name>Show Bikes</servlet-name>
>     <servlet-class>com.bikes.controller.BikeModelsServlet</servlet-clas=
s>
>     </servlet>
>    <servlet-mapping>
>     <servlet-name>Show Bikes</servlet-name>
>     <url-pattern>/getBikes.do</url-pattern>
>    </servlet-mapping>
>=20
>=20
>     <servlet>
>     <servlet-name>Display Characteristics</servlet-name>
>=20
> <servlet-class>com.bikes.controller.DisplayModelRatingsServlet</servlet=
-class>
>     </servlet>
>    <servlet-mapping>
>     <servlet-name>Display Characteristics</servlet-name>
>     <url-pattern>/getModelInfo.do</url-pattern>
>    </servlet-mapping>
>=20
>    -->
>=20
>    <!-- Leaving this as is for now -->
>=20
>       <welcome-file-list>
>         <welcome-file>index.jsp</welcome-file>
>     </welcome-file-list>
>=20
> </web-app>

Are there any messages in the Tomcat logs which occur during application
startup?


p


Mime
View raw message