Unable to deploy in Jboss5.1.0

Mar 16, 2011 at 9:55 AM

I get ClassNotFoundException when i try to deploy the war using jboss

1. i am using waffle-filter

2. Placed waffle-jna.jar in $jboss-5.1.0.GA\server\default\deploy\waffle-filter\WEB-INF\lib

3. Other 3 jars in $jboss-5.1.0.GA\lib

4. When i start the server, i get the following exception.

org.jboss.deployers.spi.DeploymentException: URL file:/C:/PB/Build1/jboss-5.1.0.GA/server/default/deploy/waffle-filter/WEB-INF/web.xml deployment failed 

at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:331)    

   at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)    

   at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)    

   at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)    

   at org.jboss.web.deployers.WebModule.start(WebModule.java:97)      

 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)  

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

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

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

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

at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)  

at $Proxy38.start(Unknown Source)

 

May i know what am i doing wrong here? 

Thanks in advance. 

Coordinator
Mar 16, 2011 at 12:15 PM

It doesn't say which class is missing - can you bring up the ClassNotFoundException please? The class that is in it is what you want to track.

Mar 17, 2011 at 10:11 AM

here is the stack trace

10:08:07,710 ERROR [SecurityFilterProviderCollection] error loading 'waffle.servlet.spi.BasicSecurityFilterProvider waffle.servlet.spi.NegotiateSecurityFilterProvider': waffle.servlet.spi10:08:07,711 ERROR [[/waffle-filter]] Exception starting filter SecurityFilterjava.lang.RuntimeException: java.lang.ClassNotFoundException: waffle.servlet.spi.BasicSecurityFilterProvider waffle.servlet.spi.NegotiateSecurityFilterProvider from BaseClassLoader@e4de50    

   at waffle.servlet.spi.SecurityFilterProviderCollection.<init>(Unknown Source)      

 at waffle.servlet.NegotiateSecurityFilter.init(Unknown Source)      

 at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:234)      

 at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:332)    

   at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:90)

        at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3783)  

     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4413)  

     at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)        

at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142) 

       at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)        

at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)      

 at org.jboss.web.deployers.WebModule.start(WebModule.java:97)  

     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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)    

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

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

Coordinator
Mar 17, 2011 at 11:45 AM

It basically says that the Waffle JARs are in the wrong place. This was already in the FAQ, read this. Let us know if it fixes your problem.