[jboss-user] [JBoss Seam] - Re: Easiest way to disable UrlRewrite in Seam examples?

david.spark do-not-reply at jboss.com
Thu Jan 10 05:41:34 EST 2008


For the Wiki example there's no UrlRewriteFilter section in web.xml, but there was something in Components.xml. I tried removing the following code from Components.xml:
    <component name="wikiUrlRewriteFilter" class="org.jboss.seam.wiki.core.ui.WikiUrlRewriteFilter" precedence="30">
  |         <property name="initParameters">
  |             <key>logLevel</key><value>WARN</value>
  |             <key>statusEnabled</key><value>false</value>
  |         </property>
  |     </component>

But then when I tried to deploy it I get the following error:
10:30:20,628 INFO  [SeamFilter] Initializing filter: org.jboss.seam.web.contextFilter
  | 10:30:20,628 INFO  [SeamFilter] Initializing filter: wikiUrlRewriteFilter
  | 10:30:20,644 ERROR [[/wiki]] Exception starting filter Seam Filter
  | java.lang.NullPointerException: 
  | 	at org.jboss.seam.wiki.core.ui.WikiUrlRewriteFilter$FilterConfigWrapper.getInitParameter(WikiUrlRewriteFilter.java:72)
  | 	at org.tuckey.web.filters.urlrewrite.utils.Log.setConfiguration(Log.java:563)
  | 	at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.init(UrlRewriteFilter.java:214)
  | 	at org.jboss.seam.wiki.core.ui.WikiUrlRewriteFilter.init(WikiUrlRewriteFilter.java:40)
  | 	at org.jboss.seam.servlet.SeamFilter.init(SeamFilter.java:97)
  | 	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
  | 	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
  | 	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
  | 	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3720)
  | 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4365)
  | 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
  | 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
  | 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:585)
  | 	at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
  | 	at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 	at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:585)
  | 	at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
  | 	at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 10:30:20,644 ERROR [StandardContext] Error filterStart
Which I guess makes sense now I've removed that data it's looking for but doesn't really help me :-)

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

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



More information about the jboss-user mailing list