geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lasantha Ranaweera" <lasantha.ranawe...@gmail.com>
Subject Re: AppFuse Application doesn't work in Geronimo
Date Sat, 23 Jun 2007 17:27:46 GMT
 Hi David & Don,

Thanks for your guys help managed to run the application still with one
error.

1. GERONIMO_OPTS healed the most nasties of errors (I had to restart my
machine each time due to this error).

2.  This error is still there in the application log as given below. Don't
know whether I understood David Jenck's explanation on it. So attached the
web.xml for an expert to deal with it.

3. Error occurred due to an additional file  was (persistence.xml) in
framework. The given file was bundled in to the WAR/classes/META-INF folder.
At that time Geronimo searches hibernate persistence provider class which is
not necessary to this application. So it looks G is bit smarter than other
App servers here ;-) .

Thanks,
Lasantha

Geronimo Application Server started
22:35:06,677 WARN  [TomcatModuleBuilder] Web application . does not contain
a WEB-INF/geronimo-web.xml deployment plan.  This may or may not be a
problem, depending on whether you have things like resource references that
need to be resolved.  You can also give the deployer a separate deployment
plan file on the command line.
22:35:10,615 WARN  [JspModuleBuilderExtension] Invalid transformed taglib
org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors:

jar:file:/home/lasantha/installation/geronimo/geronimo-tomcat6/repository/default/opencrm-1.0-SNAPSHOT/1182618306548/opencrm-1.0-SNAPSHOT-1182618306548.war/WEB-INF/lib/struts-menu-2.4.2.jar!/META-INF/struts-menu-el.tld:10:3:<jar:file:/home/lasantha/installation/geronimo/geronimo-tomcat6/repository/default/opencrm-1.0-SNAPSHOT/1182618306548/opencrm-1.0-SNAPSHOT-1182618306548.war/WEB-INF/lib/struts-menu-2.4.2.jar%21/META-INF/struts-menu-el.tld:10:3:>error:
cvc-datatype-valid.1.1: string value '2.2-dev' does not match pattern for
dewey-versionType in namespace http://java.sun.com/xml/ns/javaee

Descriptor:
<taglib xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd" version="2.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<http://www.w3.org/2001/XMLSchema-instance>xmlns=
"http://java.sun.com/xml/ns/javaee" <http://java.sun.com/xml/ns/javaee>>
 <!--============== Tag Library Description Elements =============-->
 <description>The struts-menu provides a XML configurable menu-ing system
for your
       Struts applications. This TLD is for the Expression Language enabled
       version.  Also, this is a JSP 1.2 TLD whereas the regular tld is JSP
1.1.</description>
 <tlib-version>2.2-dev</tlib-version>
 <short-name>menu</short-name>
 <uri>http://struts-menu.sf.net/tag-el</uri>
 <tag>
   <name>useMenuDisplayer</name>
   <tag-class>net.sf.navigator.taglib.el.UseMenuDisplayerTag</tag-class>
   <body-content>JSP</body-content>
   <attribute>
     <name>id</name>
     <required>false</required>
     <rtexprvalue>true</rtexprvalue>
   </attribute>
   <attribute>
     <name>name</name>
     <required>true</required>
     <rtexprvalue>true</rtexprvalue>
   </attribute>
   <attribute>
     <name>bundle</name>
     <required>false</required>
     <rtexprvalue>true</rtexprvalue>
   </attribute>
   <attribute>
     <name>config</name>
     <required>false</required>
     <rtexprvalue>true</rtexprvalue>
   </attribute>
   <attribute>
     <name>locale</name>
     <required>false</required>
     <rtexprvalue>true</rtexprvalue>
   </attribute>
   <attribute>
     <name>permissions</name>
     <required>false</required>
     <rtexprvalue>true</rtexprvalue>
   </attribute>
   <attribute>
     <name>repository</name>
     <required>false</required>
     <rtexprvalue>true</rtexprvalue>
   </attribute>
 </tag>
 <tag>
   <name>displayMenu</name>
   <tag-class>net.sf.navigator.taglib.el.DisplayMenuTag</tag-class>
   <body-content>scriptless</body-content>
   <attribute>
     <name>name</name>
     <required>true</required>
     <rtexprvalue>true</rtexprvalue>
   </attribute>
   <attribute>
     <name>target</name>
     <required>false</required>
     <rtexprvalue>false</rtexprvalue>
   </attribute>
 </tag>
</taglib>

       at org.apache.geronimo.deployment.xmlbeans.XmlBeansUtil.validateDD(
XmlBeansUtil.java:219)
       at
org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.convertToTaglibSchema
(JspModuleBuilderExtension.java:675)
       at
org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.parseTldFile
(JspModuleBuilderExtension.java:433)
       at
org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.getListenerClasses
(JspModuleBuilderExtension.java:420)
       at
org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.createJspClassFinder
(JspModuleBuilderExtension.java:180)
       at
org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.addGBeans(
JspModuleBuilderExtension.java:149)
       at
org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension$$FastClassByCGLIB$$1f60ab3b.invoke(<generated>)

       at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
       at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
FastMethodInvoker.java:38)
       at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
GBeanOperation.java:127)
       at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(
GBeanInstance.java:828)
       at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(
RawInvoker.java:57)
       at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(
RawOperationInvoker.java:35)
       at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(
ProxyMethodInterceptor.java:96)
       at
org.apache.geronimo.j2ee.deployment.ModuleBuilderExtension$$EnhancerByCGLIB$$48830c61.addGBeans(<generated>)

       at
org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(
TomcatModuleBuilder.java:441)
       at
org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder$$FastClassByCGLIB$$6f85ec2c.invoke(<generated>)

       at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
       at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
FastMethodInvoker.java:38)
       at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
GBeanOperation.java:127)
       at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(
GBeanInstance.java:828)
       at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(
RawInvoker.java:57)
       at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(
RawOperationInvoker.java:35)
       at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(
ProxyMethodInterceptor.java:96)
       at
org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$d2a1ea22.addGBeans(<generated>)

       at
org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(
SwitchingModuleBuilder.java:165)
       at
org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder$$FastClassByCGLIB$$d0c31844.invoke(<generated>)

       at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
       at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
FastMethodInvoker.java:38)
       at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
GBeanOperation.java:127)
       at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(
GBeanInstance.java:828)
       at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(
RawInvoker.java:57)
       at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(
RawOperationInvoker.java:35)
       at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(
ProxyMethodInterceptor.java:96)
       at
org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$d2a1ea22.addGBeans(<generated>)

       at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(
EARConfigBuilder.java:620)
       at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(<generated>)

       at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
       at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
FastMethodInvoker.java:38)
       at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
GBeanOperation.java:127)
       at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(
GBeanInstance.java:828)
       at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(
RawInvoker.java:57)
       at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(
RawOperationInvoker.java:35)
       at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(
ProxyMethodInterceptor.java:96)
       at
org.apache.geronimo.j2ee.deployment.CorbaGBeanNameSource$$EnhancerByCGLIB$$9cf6437.buildConfiguration(<generated>)

       at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:302)
       at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:124)
       at
org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)

       at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
       at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
FastMethodInvoker.java:38)
       at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
GBeanOperation.java:127)
       at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(
GBeanInstance.java:863)
       at org.apache.geronimo.kernel.basic.BasicKernel.invoke(
BasicKernel.java:239)
       at
org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(
AbstractDeployCommand.java:116)
       at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(
DistributeCommand.java:61)
       at java.lang.Thread.run(Thread.java:595)
22:35:10,629 WARN  [JspModuleBuilderExtension] Invalid transformed taglib
org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors:

jar:file:/home/lasantha/installation/geronimo/geronimo-tomcat6/repository/default/opencrm-1.0-SNAPSHOT/1182618306548/opencrm-1.0-SNAPSHOT-1182618306548.war/WEB-INF/lib/struts-menu-2.4.2.jar!/META-INF/struts-menu.tld:9:3:<jar:file:/home/lasantha/installation/geronimo/geronimo-tomcat6/repository/default/opencrm-1.0-SNAPSHOT/1182618306548/opencrm-1.0-SNAPSHOT-1182618306548.war/WEB-INF/lib/struts-menu-2.4.2.jar%21/META-INF/struts-menu.tld:9:3:>error:
cvc-datatype-valid.1.1: string value '2.2-dev' does not match pattern for
dewey-versionType in namespace http://java.sun.com/xml/ns/javaee

Descriptor:
<taglib xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd" version="2.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<http://www.w3.org/2001/XMLSchema-instance>xmlns=
"http://java.sun.com/xml/ns/javaee" <http://java.sun.com/xml/ns/javaee>>
 <!--============== Tag Library Description Elements =============-->
 <tlib-version>2.2-dev</tlib-version>
 <short-name>menu</short-name>
 <uri>http://struts-menu.sf.net/tag</uri>
 <tag>
   <name>useMenuDisplayer</name>
   <tag-class>net.sf.navigator.taglib.UseMenuDisplayerTag</tag-class>
   <body-content>JSP</body-content>
   <attribute>
     <name>id</name>
     <required>false</required>
     <rtexprvalue>true</rtexprvalue>
   </attribute>
   <attribute>
     <name>name</name>
     <required>true</required>
     <rtexprvalue>true</rtexprvalue>
   </attribute>
   <attribute>
     <name>bundle</name>
     <required>false</required>
     <rtexprvalue>true</rtexprvalue>
   </attribute>
   <attribute>
     <name>config</name>
     <required>false</required>
     <rtexprvalue>true</rtexprvalue>
   </attribute>
   <attribute>
     <name>locale</name>
     <required>false</required>
     <rtexprvalue>true</rtexprvalue>
   </attribute>
   <attribute>
     <name>permissions</name>
     <required>false</required>
     <rtexprvalue>true</rtexprvalue>
   </attribute>
   <attribute>
     <name>repository</name>
     <required>false</required>
     <rtexprvalue>true</rtexprvalue>
   </attribute>
 </tag>
 <tag>
   <name>displayMenu</name>
   <tag-class>net.sf.navigator.taglib.DisplayMenuTag</tag-class>
   <body-content>scriptless</body-content>
   <attribute>
     <name>name</name>
     <required>true</required>
     <rtexprvalue>true</rtexprvalue>
   </attribute>
   <attribute>
     <name>target</name>
     <required>false</required>
     <rtexprvalue>false</rtexprvalue>
   </attribute>
 </tag>
</taglib>

       at org.apache.geronimo.deployment.xmlbeans.XmlBeansUtil.validateDD(
XmlBeansUtil.java:219)
       at
org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.convertToTaglibSchema
(JspModuleBuilderExtension.java:675)
       at
org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.parseTldFile
(JspModuleBuilderExtension.java:433)
       at
org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.getListenerClasses
(JspModuleBuilderExtension.java:420)
       at
org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.createJspClassFinder
(JspModuleBuilderExtension.java:180)
       at
org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.addGBeans(
JspModuleBuilderExtension.java:149)
       at
org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension$$FastClassByCGLIB$$1f60ab3b.invoke(<generated>)

       at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
       at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
FastMethodInvoker.java:38)
       at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
GBeanOperation.java:127)
       at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(
GBeanInstance.java:828)
       at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(
RawInvoker.java:57)
       at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(
RawOperationInvoker.java:35)
       at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(
ProxyMethodInterceptor.java:96)
       at
org.apache.geronimo.j2ee.deployment.ModuleBuilderExtension$$EnhancerByCGLIB$$48830c61.addGBeans(<generated>)

       at
org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(
TomcatModuleBuilder.java:441)
       at
org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder$$FastClassByCGLIB$$6f85ec2c.invoke(<generated>)

       at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
       at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
FastMethodInvoker.java:38)
       at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
GBeanOperation.java:127)
       at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(
GBeanInstance.java:828)
       at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(
RawInvoker.java:57)
       at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(
RawOperationInvoker.java:35)
       at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(
ProxyMethodInterceptor.java:96)
       at
org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$d2a1ea22.addGBeans(<generated>)

       at
org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(
SwitchingModuleBuilder.java:165)
       at
org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder$$FastClassByCGLIB$$d0c31844.invoke(<generated>)

       at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
       at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
FastMethodInvoker.java:38)
       at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
GBeanOperation.java:127)
       at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(
GBeanInstance.java:828)
       at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(
RawInvoker.java:57)
       at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(
RawOperationInvoker.java:35)
       at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(
ProxyMethodInterceptor.java:96)
       at
org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$d2a1ea22.addGBeans(<generated>)

       at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(
EARConfigBuilder.java:620)
       at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(<generated>)

       at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
       at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
FastMethodInvoker.java:38)
       at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
GBeanOperation.java:127)
       at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(
GBeanInstance.java:828)
       at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(
RawInvoker.java:57)
       at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(
RawOperationInvoker.java:35)
       at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(
ProxyMethodInterceptor.java:96)
       at
org.apache.geronimo.j2ee.deployment.CorbaGBeanNameSource$$EnhancerByCGLIB$$9cf6437.buildConfiguration(<generated>)

       at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:302)
       at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:124)
       at
org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)

       at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
       at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
FastMethodInvoker.java:38)
       at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
GBeanOperation.java:127)
       at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(
GBeanInstance.java:863)
       at org.apache.geronimo.kernel.basic.BasicKernel.invoke(
BasicKernel.java:239)
       at
org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(
AbstractDeployCommand.java:116)
       at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(
DistributeCommand.java:61)
       at java.lang.Thread.run(Thread.java:595)
AbandonedObjectPool is used (
org.apache.commons.dbcp.AbandonedObjectPool@e55d75)
  LogAbandoned: false
  RemoveAbandoned: true
  RemoveAbandonedTimeout: 60


<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"<http://java.sun.com/xml/ns/j2ee>
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<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>appfuse</display-name>
   <distributable/>

   <!-- precompiled jsp mappings -->

   <!-- Define the default CSS Theme -->
   <context-param>
       <param-name>csstheme</param-name>
       <param-value>simplicity</param-value>
   </context-param>
   <!-- Define the basename for a resource bundle for I18N -->
   <context-param>
       <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>

       <param-value>ApplicationResources</param-value>
   </context-param>
   <!-- Fallback locale if no bundles found for browser's preferred locale
-->
   <!-- Force a single locale using param-name '
javax.servlet.jsp.jstl.fmt.locale' -->
   <context-param>
       <param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name>
       <param-value>en</param-value>
   </context-param>
   <!-- Context Configuration locations for Spring XML files -->
   <context-param>
       <param-name>contextConfigLocation</param-name>
       <param-value>
           classpath*:/applicationContext-resources.xml
           classpath*:/applicationContext-dao.xml
           classpath*:/applicationContext-service.xml
           classpath*:/applicationContext.xml
           /WEB-INF/applicationContext*.xml
           /WEB-INF/xfire-servlet.xml
           /WEB-INF/security.xml
       </param-value>
   </context-param>

   <filter>
       <filter-name>cacheFilter</filter-name>
       <filter-class>com.opensymphony.oscache.web.filter.CacheFilter</filter-class>

   </filter>
   <filter>
       <filter-name>clickstreamFilter</filter-name>
       <filter-class>com.opensymphony.clickstream.ClickstreamFilter</filter-class>

   </filter>
   <filter>
       <filter-name>encodingFilter</filter-name>
       <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>

       <init-param>
           <param-name>encoding</param-name>
           <param-value>UTF-8</param-value>
       </init-param>
       <init-param>
           <param-name>forceEncoding</param-name>
           <param-value>true</param-value>
       </init-param>
   </filter>
   <filter>
       <filter-name>exportFilter</filter-name>
       <filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class>

   </filter>
   <!--<filter>-->
       <!--<filter-name>gzipFilter</filter-name>-->
       <!--<filter-class>net.sf.ehcache.constructs.web.filter.GzipFilter</filter-class>-->

   <!--</filter>-->
   <!--<filter>
       <filter-name>lazyLoadingFilter</filter-name>
       <filter-class>
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>

   </filter>-->
   <!-- Use "
org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter" if you're
using JPA -->
   <filter>
       <filter-name>localeFilter</filter-name>
       <filter-class>org.appfuse.webapp.filter.LocaleFilter</filter-class>
   </filter>
   <filter>
       <filter-name>rewriteFilter</filter-name>
       <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>

       <init-param>
           <param-name>logLevel</param-name>
           <param-value>log4j</param-value>
       </init-param>
   </filter>
   <filter>
       <filter-name>securityFilter</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>
       <filter-name>sitemesh</filter-name>
       <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>

   </filter>
   <filter>
       <filter-name>staticFilter</filter-name>
       <filter-class>org.appfuse.webapp.filter.StaticFilter</filter-class>
       <init-param>
           <param-name>includes</param-name>
           <param-value>*/scripts/dojo/**</param-value>
       </init-param>
   </filter>
   <filter>
       <filter-name>struts-cleanup</filter-name>
       <filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>

   </filter>
   <filter>
       <filter-name>struts</filter-name>
       <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>

       <init-param>
           <param-name>actionPackages</param-name>
           <param-value>org.ucsc.opencrm.webapp.action</param-value>
       </init-param>
   </filter>

   <filter-mapping>
       <filter-name>encodingFilter</filter-name>
       <url-pattern>/*</url-pattern>
   </filter-mapping>
   <filter-mapping>
       <filter-name>securityFilter</filter-name>
       <url-pattern>/*</url-pattern>
   </filter-mapping>
   <!-- Commented out for 2 reasons: 1) it's a pain when developing JSPs,
and
                                     2) it causes the Signup webtest to fail
-->
   <!--filter-mapping>
       <filter-name>cacheFilter</filter-name>
       <url-pattern>*.jsp</url-pattern>
   </filter-mapping-->
   <!--<filter-mapping>
       <filter-name>lazyLoadingFilter</filter-name>
       <url-pattern>/*</url-pattern>
   </filter-mapping>-->
   <filter-mapping>
       <filter-name>clickstreamFilter</filter-name>
       <url-pattern>/*</url-pattern>
   </filter-mapping>
   <filter-mapping>
       <filter-name>localeFilter</filter-name>
       <url-pattern>/*</url-pattern>
   </filter-mapping>
   <!--<filter-mapping>-->
       <!--<filter-name>gzipFilter</filter-name>-->
       <!--<url-pattern>/*</url-pattern>-->
   <!--</filter-mapping>-->
   <filter-mapping>
       <filter-name>exportFilter</filter-name>
       <url-pattern>*.html</url-pattern>
   </filter-mapping>
   <filter-mapping>
       <filter-name>rewriteFilter</filter-name>
       <url-pattern>/*</url-pattern>
       <dispatcher>REQUEST</dispatcher>
       <dispatcher>FORWARD</dispatcher>
   </filter-mapping>
   <filter-mapping>
       <filter-name>struts-cleanup</filter-name>
       <url-pattern>/*</url-pattern>
       <dispatcher>REQUEST</dispatcher>
       <dispatcher>FORWARD</dispatcher>
   </filter-mapping>
   <filter-mapping>
       <filter-name>sitemesh</filter-name>
       <url-pattern>/*</url-pattern>
       <dispatcher>REQUEST</dispatcher>
       <dispatcher>FORWARD</dispatcher>
       <dispatcher>INCLUDE</dispatcher>
   </filter-mapping>
   <filter-mapping>
       <filter-name>staticFilter</filter-name>
       <url-pattern>/*</url-pattern>
       <dispatcher>REQUEST</dispatcher>
       <dispatcher>FORWARD</dispatcher>
   </filter-mapping>
   <filter-mapping>
       <filter-name>struts</filter-name>
       <url-pattern>/*</url-pattern>
       <dispatcher>REQUEST</dispatcher>
       <dispatcher>FORWARD</dispatcher>
   </filter-mapping>
     <listener>
       <listener-class>com.opensymphony.clickstream.ClickstreamListener</listener-class>

   </listener>
   <listener>
       <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>

   </listener>
   <listener>
       <listener-class>
org.springframework.web.util.IntrospectorCleanupListener</listener-class>
   </listener>
   <listener>
       <listener-class>
org.springframework.web.context.request.RequestContextListener</listener-class>

   </listener>
   <listener>
       <listener-class>org.appfuse.webapp.listener.StartupListener</listener-class>

   </listener>
   <listener>
       <listener-class>org.appfuse.webapp.listener.UserCounterListener</listener-class>

   </listener>
   <listener>
       <listener-class>net.sf.navigator.menu.MenuContextListener</listener-class>

   </listener>

   <servlet>
       <servlet-name>dwr-invoker</servlet-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>
       <servlet-name>xfire</servlet-name>
       <servlet-class>org.codehaus.xfire.spring.XFireSpringServlet</servlet-class>

   </servlet>

   <servlet-mapping>
       <servlet-name>dwr-invoker</servlet-name>
       <url-pattern>*/dwr/**</url-pattern>
   </servlet-mapping>
     <servlet-mapping>
       <servlet-name>xfire</servlet-name>
       <url-pattern>*/services/**</url-pattern>
   </servlet-mapping>

   <session-config>
       <session-timeout>10</session-timeout>
   </session-config>

   <welcome-file-list>
       <welcome-file>index.jsp</welcome-file>
   </welcome-file-list>

   <error-page>
       <error-code>500</error-code>
       <location>/error.jsp</location>
   </error-page>
   <error-page>
       <error-code>400</error-code>
       <location>/index.jsp</location>
   </error-page>
   <error-page>
       <error-code>403</error-code>
       <location>/403.jsp</location>
   </error-page>
   <error-page>
       <error-code>404</error-code>
       <location>/404.jsp</location>
   </error-page>
</web-app>

Mime
View raw message