On 03/02/2012, at 4:42 AM, Daivish Shah wrote:

> Hi Wayne,
> 
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'TestEjbHandlerImpl': Invocation of init
> method failed; nested exception is java.lang.LinkageError: loader
> constraint violation: loader (instance of
> org/jboss/web/tomcat/service/WebCtxLoader$ENCLoader) previously
> initiated loading for a different type with name
> "javax/xml/namespace/QName"
> 
> 

The whole JBoss 5 deployment descriptor is almost a red herring. In fact it 
exposes a clue as to what the real problem is.

The problem you have here is that your application has included at least one of 
the (many) XML utilities out there that contains it's own version of 
javax.xml.namespace.QName. The reason for this is largely historical as it's 
generally a result of forward migration of code from Java 1.3/1.4 environments.

Early xmlbeans is one such example. Old releases of Apache Axis is another 
source of these kinds of problems.

Cheers,

Steve C


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to