Thanks! Now I'm really puzzled. Even when I remove everything in web.xml except <listener> it gives me the same error. i.e.:
<? xml version="1.0" encoding="ISO-8859-1"?> < web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" > <!-- spring configs --> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</ listener-class> </listener> </ web-app> Anyway I attach my original web.xml in question. Hope someone can help me. Thanks alot!! :) IMHO Tomcat should give more error info. Regards Will On Thu, Nov 4, 2010 at 5:15 AM, Pid <p...@pidster.com> wrote: > On 03/11/2010 12:57, Thad Humphries wrote: > > Is <listener> in the proper place? I think order matters in web.xml. I > load > > 2 listeners after my app's <description> and before my <servlet> tags. > > Yep, after <description> but before <filter> definitions. > > > p > > > On Wed, Nov 3, 2010 at 12:14 AM, Will Sumekar <will.sume...@gmail.com > >wrote: > > > >> Hi > >> > >> When I put these lines: > >> > >> <listener> > >> <listener-class> > >> > >> org.springframework.web.context.ContextLoaderListener > >> </listener-class> > >> </listener> > >> > >> my appln can't load at all. When I go to http://localhost:8080/app it's > >> not > >> loaded. But when I remove those lines it loads correctly. I've put the > >> necessary lib containing > >> org.springframework.web.context.ContextLoaderListener in > ./app/WEB-INF/lib. > >> > >> My setup is Tomcat 5.5.31. Context-param is set: > >> > >> <context-param> > >> <param-name>contextConfigLocation</param-name> > >> > >> > >> <param-value>classpath:springContext.xml</param-value> > >> </context-param> > >> > >> No stack trace is shown. The error message in log is: > >> > >> 03-Nov-2010 10:21:48 INFO HostConfig:863 - Deploying web application > >> archive > >> wma.war > >> 03-Nov-2010 10:21:49 ERROR StandardContext:4253 - Error listenerStart > >> 03-Nov-2010 10:21:49 ERROR StandardContext:4280 - Context [/wma] startup > >> failed > >> due to previous errors > >> When I set the logging to DEBUG level, I don't see anything extra > ordinary. > >> > >> > >> Thanks > >> > >> Will > >> > > > > > > > >
<?xml version="1.0" encoding="ISO-8859-1"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" > <!-- spring configs --> <listener> <listener-class> org.springframework.web.context.ContextLoaderListener </listener-class> </listener> <!-- Uncomment and cofigure properly, the following lines, if you want use a resource defined in the J2EE container <resource-ref> <description>Oracle Datasource example</description> <res-ref-name>jdbc/myoracledb</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> --> <!-- YALE client CAS Filter configuration. CAS Servlet Filter - Uncomment and configure properly, the folling lines if you want use the CAS filter for the application. This require the casclient.jar library <filter> <filter-name>CAS Filter</filter-name> <filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class> <init-param> <param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name> <param-value>https://ctcsf04.ct6.st.com:8443/cas/login</param-value> </init-param> <init-param> <param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name> <param-value>https://ctcsf04.ct6.st.com:8443/cas/serviceValidate</param-value> </init-param> <init-param> <param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name> <param-value>applicationServerName:8080</param-value> </init-param> <init-param> <param-name>edu.yale.its.tp.cas.client.filter.renew</param-name> <param-value>false</param-value> </init-param> <init-param> <param-name>edu.yale.its.tp.cas.client.filter.wrapRequest</param-name> <param-value>true</param-value> </init-param> </filter> <filter-mapping> <filter-name>CAS Filter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> --> <!-- end YALE client CAS filter Configuration --> <!-- Axis Filter --> <filter> <filter-name>WRequestBuilderFilter</filter-name> <filter-class>st.liotrox.servlet.LXWRequestBuilderServletFilter</filter-class> </filter> <filter-mapping> <filter-name>WRequestBuilderFilter</filter-name> <url-pattern>/ws/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>WRequestBuilderFilter</filter-name> <url-pattern>/jsfs/*</url-pattern> </filter-mapping> <!-- LIOTRO-X Servlet Definitions --> <servlet> <servlet-name>app</servlet-name> <servlet-class>st.liotrox.servlet.ApplicationServlet</servlet-class> <init-param> <param-name>trace-on-startup</param-name> <param-value>false</param-value> </init-param> <!-- <init-param> <param-name>dump-allowed</param-name> <param-value>false</param-value> </init-param> --> <load-on-startup>1</load-on-startup> </servlet> <!-- JavaScript File Servlet --> <servlet> <servlet-name>JSFileServlet</servlet-name> <display-name>JavaScriptFile Servlet</display-name> <servlet-class>st.liotrox.servlet.JavaScriptFileServlet</servlet-class> <load-on-startup>2</load-on-startup> </servlet> <!-- Apache-Axis Servlet --> <servlet> <servlet-name>AxisServlet</servlet-name> <display-name>Apache-Axis Servlet</display-name> <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class> <!-- <load-on-startup>3</load-on-startup> --> </servlet> <!-- Axis Liotro Servlet --> <servlet> <servlet-name>AxisLiotroServlet</servlet-name> <display-name>Axis Liotro Servlet bridge</display-name> <servlet-class>st.liotrox.ws.AxisLiotroServlet</servlet-class> <!-- <load-on-startup>4</load-on-startup> --> </servlet> <!-- LIOTRO-X Servlet Mapping --> <servlet-mapping> <servlet-name>app</servlet-name> <url-pattern>/app/*</url-pattern> <!-- For OC4J deployement use the following instead of the previuos one <url-pattern>/app</url-pattern> --> </servlet-mapping> <servlet-mapping> <servlet-name>JSFileServlet</servlet-name> <url-pattern>/jsfs/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>AxisLiotroServlet</servlet-name> <url-pattern>/wslx/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>AxisServlet</servlet-name> <url-pattern>/ws/*</url-pattern> </servlet-mapping> <!-- currently the W3C havent settled on a media type for WSDL; http://www.w3.org/TR/2003/WD-wsdl12-20030303/#ietf-draft for now we go with the basic 'it's XML' response --> <mime-mapping> <extension>wsdl</extension> <mime-type>text/xml</mime-type> </mime-mapping> <mime-mapping> <extension>xsd</extension> <mime-type>text/xml</mime-type> </mime-mapping> <mime-mapping> <extension>jscript</extension> <mime-type>text/javascript</mime-type> </mime-mapping> <mime-mapping> <extension>gjs</extension> <mime-type>text/javascript</mime-type> </mime-mapping> <!-- Define a security constraint on this application --> <security-constraint> <display-name>LIOTRO-X Configuration Security Constraint</display-name> <web-resource-collection> <web-resource-name>LIOTRO-X</web-resource-name> <!-- Define the context-relative URL(s) to be protected --> <url-pattern>/bundles/*</url-pattern> <url-pattern>/dataviews/*</url-pattern> <url-pattern>/layouts/*</url-pattern> <url-pattern>/logs/*</url-pattern> <url-pattern>/menu/*</url-pattern> <url-pattern>/namespaces/*</url-pattern> <url-pattern>/profiles/*</url-pattern> <url-pattern>/reports/*</url-pattern> <url-pattern>/templates/*</url-pattern> <url-pattern>/uploads/*</url-pattern> <url-pattern>*.xml</url-pattern> <url-pattern>*.txt</url-pattern> <url-pattern>*.properties</url-pattern> <url-pattern>*.ini</url-pattern> </web-resource-collection> <auth-constraint> <role-name>_lx_not_accessible_role_</role-name> </auth-constraint> </security-constraint> <!-- Define the login configuration for this application --> <login-config> <auth-method>FORM</auth-method> <realm-name>LIOTRO-X</realm-name> <form-login-config> <form-login-page>/html/accessError.html</form-login-page> <form-error-page>/html/accessError.html</form-error-page> </form-login-config> </login-config> <!-- Security roles referenced by this web application --> <security-role> <description> The role that is required to log in to the LIOTRO-X application </description> <role-name>_lx_not_accessible_role_</role-name> </security-role> </web-app>
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org