ClassNotFoundException is a lot different from NoClassDefFound - the latter usually implies you have multiple instances of the same class in your classpath. If you "jar tvf" your JAR in WEB-INF/lib, is this class in there? If so, you might look at trying to reconfigure JBoss's UniversalClassLoader to load your classes before it's classes. I don't know if they still use this classloader, but they used to.
Matt On Fri, Aug 7, 2009 at 8:49 AM, Miguel Romero < miguel.romero.remi...@gmail.com> wrote: > hi again, > > i don“t know why jboss throws a ClassNotFoundException due to > UserRoleAuthorizationIntercept, but that is the problem, because i have > commented: > > in applicationContext-struts.xml: > > <bean id="adminInterceptor" > class="es.sacyl.psd.awd.webapp.interceptor.UserRoleAuthorizationInterceptor"> > <property name="authorizedRoles" value="ROLE_ADMIN"/> > </bean> > > in struts.xml > > <interceptor-ref name="adminOnly"/> > > <interceptor name="adminOnly" class="adminInterceptor"/> > > > And application works fine! > > why jboss throws a ClassNotFoundException with > UserRoleAuthorizationIntercept?? > > any idea? > > > > On Fri, Aug 7, 2009 at 2:22 PM, Miguel Romero < > miguel.romero.remi...@gmail.com> wrote: > >> hi people, >> >> my appfuse fails in jboss-4.2.2.GA server not in jetty and tomcat that >> works fine! any idea? >> >> org.springframework.beans.factory.BeanCreationException: Error creating >> bean with name '_filterChainProxy': Initialization of bean failed; nested >> exception is org.springframework.beans.factory.BeanCreationException: Error >> creating bean with name '_filterChainList': Cannot resolve reference to bean >> '_basicAuthenticationFilter' while setting bean property 'filters' with key >> [8]; nested exception is >> org.springframework.beans.factory.BeanCreationException: Error creating bean >> with name '_basicAuthenticationFilter': Initialization of bean failed; >> nested exception is >> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find >> class [es.sac.psac.webapp.interceptor.UserRoleAuthorizationInterceptor] for >> bean with name 'adminInterceptor' defined in ServletContext resource >> [/WEB-INF/applicationContext-struts.xml]; nested exception is >> java.lang.ClassNotFoundException: >> es.sac.psac.webapp.interceptor.UserRoleAuthorizationInterceptor >> >> thanks!!! >> > >