0 Replies Latest reply on Oct 3, 2011 7:54 PM by Jon Austen

    JBoss 4.0.3GA - enable the Valve Rewrite throws Classloader exception?

    Jon Austen Newbie

      When I enable the Rewrite Valve  in JBoss 4.0.3GA,  I get an exception that I am unable to figure out the cause of.   I found a few pages on the internet describing the configuraiton of the rewrite and I am pretty sure I have it correct but for some reason I still get this error:

       

      Server.xml config

      --------------------------------

      <Host name="localhost" autoDeploy="false" deployOnStartup="false" deployXML="false">

            <Valve className="org.jboss.web.rewrite.RewriteValve" />

       

      And here is the exception that is causes while the JBoss server starts up:

       

      16:39:53,199 ERROR [STDERR] Oct 3, 2011 4:39:53 PM org.apache.tomcat.util.digester.Digester startElement

      SEVERE: Begin event threw exception

      java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.web.rewrite.RewriteValve

              at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198)

              at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:475)

              at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:377)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

              at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:204)

              at org.apache.tomcat.util.digester.Rule.begin(Rule.java:152)

              at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1275)

              at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)

              at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)

              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)

              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

              at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

              at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

              at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

              at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)

              at org.apache.catalina.startup.Catalina.load(Catalina.java:473)

              at org.apache.catalina.startup.Catalina.start(Catalina.java:529)

              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:597)

              at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)

              at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

              at org.jboss.web.tomcat.tc5.Tomcat5.startService(Tomcat5.java:366)

              at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)

              at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)

              at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)

              at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)

              at $Proxy0.start(Unknown Source)

              at org.jboss.system.ServiceController.start(ServiceController.java:428)

              at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)

              at $Proxy4.start(Unknown Source)

              at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)

              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)

              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:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)

              at $Proxy9.deploy(Unknown Source)