[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: both deployment methods fail - WAR and exploded in J5GA

mattzyzy do-not-reply at jboss.com
Thu Jan 22 04:00:31 EST 2009


to jaikiran ,
here is the web.xml codes , a bit long   - FYI , the WAR file (and web.xml file) works fine in tomcat6+jdk6 and packaged using eclipse ,Export > J2EE WAR file




  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <web-app version="2.4" 
  | 
  | 	xmlns="http://java.sun.com/xml/ns/j2ee http://java.sun.com/j2ee/dtds/web-app_2_2.dtd" 
  | 
  | 	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">
  | 
  |   
  |   <display-name>Application Zulu</display-name>
  | 
  | 	<description>Application Zulu (AppZ)</description>
  | 
  | 	
  | 
  | 	<!--
  | 
  | 	  - Key of the system property that should specify the root directory of this
  | 
  | 	  - web app. Applied by WebAppRootListener or Log4jConfigListener.
  | 
  | 	  -->	
  | 
  | 	<context-param>
  | 
  | 		<param-name>webAppRootKey</param-name>
  | 
  | 		<param-value>appzApp.root</param-value>
  | 
  | 	</context-param>
  | 
  | 	
  | 
  | 	<!--
  | 
  | 	  - Location of the XML file that defines the root application context
  | 
  | 	  - Applied by ContextLoaderListener.
  | 
  | 	  -->
  | 
  | 	<context-param>
  | 
  | 		<param-name>contextConfigLocation</param-name>
  | 
  | 		<param-value>
  | 
  | 			/WEB-INF/applicationContext*.xml
  | 
  | 		</param-value>
  | 
  | 	</context-param>	
  | 
  | 	<!--
  | 
  | 	  - Location of the Log4J config file, for initialization and refresh checks.
  | 
  | 	  - Applied by Log4jConfigListener.
  | 
  | 	  -->
  | 
  | 	<context-param>
  | 
  | 		<param-name>log4jConfigLocation</param-name>
  | 
  | 		<param-value>/WEB-INF/log4j.properties</param-value>
  | 
  | 	</context-param>
  | 	<listener>
  | 
  | 		<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>		
  | 
  | 	</listener>
  | 
  | 	
  | 
  | 	<listener>
  | 
  | 		<listener-class>org.springframework.web.util.WebAppRootListener</listener-class>
  | 
  | 	</listener>
  | 
  | 	
  | 
  | 	<filter>
  | 
  |         <filter-name>Acegi Filter Chain Proxy</filter-name>
  | 
  |         <filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class>
  | 
  |         <init-param>
  | 
  |             <param-name>targetClass</param-name>
  | 
  |             <param-value>org.acegisecurity.util.FilterChainProxy</param-value>
  | 
  |         </init-param>
  | 
  |     </filter>
  | 
  | 	
  | 
  | 	<filter-mapping>
  | 
  |       	<filter-name>Acegi Filter Chain Proxy</filter-name>
  | 
  |       	<url-pattern>/*</url-pattern>
  | 
  |     </filter-mapping>
  | 
  |     
  | 
  |     <filter>
  | 
  |     	<filter-name>ResponseOverrideFilter</filter-name>
  | 
  |     	<filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class>
  | 
  |   	</filter>
  | 
  |   	
  | 
  |   	<filter-mapping>
  | 
  | 		<filter-name>ResponseOverrideFilter</filter-name>
  | 
  | 	    <url-pattern>*.page</url-pattern>
  | 
  | 	</filter-mapping>
  | 
  | 	<filter-mapping>
  | 
  | 	    <filter-name>ResponseOverrideFilter</filter-name>
  | 
  | 	    <url-pattern>*.form</url-pattern>
  | 
  | 	</filter-mapping>
  | 
  | 	<filter-mapping>
  | 
  | 	    <filter-name>ResponseOverrideFilter</filter-name>
  | 
  | 	    <url-pattern>*.process</url-pattern>
  | 
  | 	</filter-mapping>
  | 
  |     <!--
  | 
  | 	  - Loads the root application context of this web app at startup.
  | 
  | 	  - The application context is then available via 
  | 
  | 	  - WebApplicationContextUtils.getWebApplicationContext(servletContext).
  | 
  |     -->
  | 
  | 	<listener>
  | 
  | 		<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  | 
  | 	</listener>
  | 
  | 	
  | 
  | 	<listener>
  | 
  |   		<listener-class>org.acegisecurity.ui.session.HttpSessionEventPublisher</listener-class>
  | 
  | 	</listener>
  | 
  | 	<welcome-file-list>
  | 
  | 		<welcome-file>index.jsp</welcome-file>
  | 
  | 	</welcome-file-list>
  | 
  | 	<session-config>
  | 
  |         <session-timeout>30</session-timeout>
  | 
  |     </session-config>
  | 
  | 	<taglib>
  | 
  | 		<taglib-uri>/spring</taglib-uri>
  | 
  | 		<taglib-location>/WEB-INF/tld/spring.tld</taglib-location>
  | 
  | 	</taglib>
  | 
  | 	
  | 
  | 	<taglib>
  | 
  | 		<taglib-uri>http://www.springframework.org/tags/form</taglib-uri>
  | 
  | 		<taglib-location>/WEB-INF/tld/spring-form.tld</taglib-location>
  | 
  | 	</taglib>
  | 
  | 	
  | 
  | 	<taglib>
  | 
  | 	  <taglib-uri>http://acegisecurity.org/authz</taglib-uri>
  | 
  | 	  <taglib-location>/WEB-INF/tld/authz.tld</taglib-location>
  | 
  | 	</taglib> 
  | 
  | 	
  | 
  | 	<taglib>
  | 
  | 	  <taglib-uri>http://displaytag.sf.net/el</taglib-uri>
  | 
  | 	  <taglib-location>/WEB-INF/tld/displaytag-el.tld</taglib-location>
  | 
  | 	</taglib>
  | 
  | 	
  | 
  | 	<taglib>
  | 
  | 		<taglib-uri>http://jakarta.apache.org/taglibs/datetime-1.0</taglib-uri>
  | 
  | 		<taglib-location>/WEB-INF/tld/taglibs-datetime.tld</taglib-location>
  | 
  | 	</taglib>
  | 
  | 	
  | 
  | 	<taglib>
  | 
  | 		<taglib-uri>http://www.servletsuite.com/servlets/wraptag</taglib-uri>
  | 
  | 		<taglib-location>/WEB-INF/tld/wraptag.tld</taglib-location>
  | 
  | 	</taglib>
  | 
  | 	
  | 
  | 	<taglib>
  | 
  | 		<taglib-uri>http://www.servletsuite.com/servlets/hiddenpaneltag</taglib-uri>
  | 
  | 		<taglib-location>/WEB-INF/tld/hiddenpaneltag.tld</taglib-location>
  | 
  | 	</taglib>
  | 
  | 
  | 
  | 	<taglib>
  | 
  | 		<taglib-uri>http://www.servletsuite.com/servlets/scrolltag</taglib-uri>
  | 
  | 		<taglib-location>/WEB-INF/tld/scrolltag.tld</taglib-location>
  | 
  | 	</taglib>
  | 
  | 
  | 
  | 	<taglib>
  | 
  | 		<taglib-uri>http://jakarta.apache.org/taglibs/string-1.1</taglib-uri>
  | 
  | 		<taglib-location>/WEB-INF/tld/taglibs-string.tld</taglib-location>
  | 
  | 	</taglib>
  | 
  | 	
  | 
  | 	<taglib>
  | 
  | 		<taglib-uri>http://www.servletsuite.com/servlets/numtag</taglib-uri>
  | 
  | 		<taglib-location>/WEB-INF/tld/taglibs-number.tld</taglib-location>
  | 
  | 	</taglib>
  | 
  | 	
  | 
  | 	<servlet>
  | 
  | 		<servlet-name>appz</servlet-name>
  | 
  | 		<servlet-class> 					 		
  | 
  | 			org.springframework.web.servlet.DispatcherServlet
  | 
  | 		</servlet-class>
  | 
  | 		<load-on-startup>2</load-on-startup>
  | 
  | 	</servlet>
  | 
  | 	
  | 
  | 	<servlet>
  | 
  | 	  <servlet-name>dwr-invoker</servlet-name>
  | 
  | 	  <display-name>DWR Servlet</display-name>
  | 
  | 	  <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
  | 
  | 	  <init-param>
  | 
  | 	     <param-name>debug</param-name>
  | 
  | 	     <param-value>true</param-value>
  | 
  | 	  </init-param>
  | 
  | 	</servlet>
  | 
  | 
  | 
  | 	<servlet-mapping>
  | 
  | 	  <servlet-name>dwr-invoker</servlet-name>
  | 
  | 	  <url-pattern>/dwr/*</url-pattern>
  | 
  | 	</servlet-mapping>
  | 
  | 	
  | 
  | 	<servlet-mapping>
  | 
  | 		<servlet-name>appz</servlet-name>
  | 
  | 		<url-pattern>*.page</url-pattern>
  | 
  | 	</servlet-mapping>
  | 
  | 	<servlet-mapping>
  | 
  | 		<servlet-name>appz</servlet-name>
  | 
  | 		<url-pattern>*.info</url-pattern>
  | 
  | 	</servlet-mapping>
  | 
  |   	<servlet-mapping>
  | 
  | 		<servlet-name>appz</servlet-name>
  | 
  | 		<url-pattern>*.htm</url-pattern>
  | 
  | 	</servlet-mapping>
  | 
  | 	<servlet-mapping>
  | 
  | 		<servlet-name>appz</servlet-name>
  | 
  | 		<url-pattern>*.html</url-pattern>
  | 
  | 	</servlet-mapping>
  | 
  | </web-app>

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4203900#4203900

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4203900



More information about the jboss-user mailing list