The class UserRoleAuthorizationIntercept is in directory WEB-INF/classes Is the first time that i´m gointo to deploy it in Jboss and i don´t know what is the policy file configuration rigth:
<jboss-web> <class-loading java2ClassLoadingCompliance="false"> <loader-repository>com.example.loaderrepository:loader=somename-webapp.war <loader-repository-config>java2ParentDelegation=false</loader-repository-config> </loader-repository> </class-loading> </jboss-web> If i add to WEB-INF default jboss-web.xml (up), next exceptions are thrown, what is a normal configuration? 2009-08-07 16:06:25,187 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/psd_awd_af2-1.0-SNAPSHOT]] Error configurando escuchador de aplicación de clase com.opensymphony.clickstream.ClickstreamListener > 009-08-07 16:06:25,203 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/psd_awd_af2-1.0-SNAPSHOT]] Error configurando escuchador de aplicación de clase org.springframework.web.context.request.RequestContextListener java.lang.NoClassDefFoundError thanks Matt! On Fri, Aug 7, 2009 at 3:10 PM, Matt Raible <m...@raibledesigns.com> wrote: > 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!!! >>> >> >> >