Thanks Matt... but i have more problems,

i have deleted clickstream feature and the exceptions are there yet:

All exceptions are relationship with     at
org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)

why? any idea? what is slf4j?

2009-08-07 17:26:29,171 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.ExceptionInInitializerError
    at
org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)
-
Caused by: java.lang.ClassCastException:
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
    at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
...
2009-08-07 17:26:29,203 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/psd_awd_af2-1.0-SNAPSHOT]]
Error configurando escuchador de aplicación de clase
es.sacyl.psd.awd.webapp.listener.StartupListener
java.lang.NoClassDefFoundError
    at
org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)
...
2009-08-07 17:26:29,218 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/psd_awd_af2-1.0-SNAPSHOT]]
Error configurando escuchador de aplicación de clase
net.sf.navigator.menu.MenuContextListener
java.lang.NoClassDefFoundError
    at
org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)


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

Now i have configured jboss-web.xml, we have to remember i started appfuse
in jboss with jboss-web.xml but deleted UserRoleAuthorizationIntercept

why now i have so much problems?


jboss 4.2.2. GA grrrrrrrr :)

Matt very thanks for linstening me



On Fri, Aug 7, 2009 at 4:47 PM, Matt Raible <m...@raibledesigns.com> wrote:

> NoClassDefFound error usually implies duplicate classes. You might look for
> these classes in the JARs that ship with JBoss.
>
>
> On Fri, Aug 7, 2009 at 10:08 AM, Miguel Romero <individu...@gmail.com>wrote:
>
>> 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!!!
>>>>>
>>>>
>>>>
>>>
>>
>

Reply via email to