Announcement Announcement Module
Collapse
No announcement yet.
NoClassDefFoundError: javax/xml/namespace/QName on EAR start Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • NoClassDefFoundError: javax/xml/namespace/QName on EAR start

    Hi

    We are having issues deploying an app that uses axis and spring in Jboss to query a SOAP service.

    We are using

    JBoss 4.0.4.GA
    Java 1.5.0_08-b03
    Axis 1.4
    Spring 2.0rc4

    Here is part of the stacktrace we get:

    NoClassDefFoundError: javax/xml/namespace/QName
    Caused by:
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'gamexBrokerWebService' defined in class path resourc
    e [broker-webservice-applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xm
    l/namespace/QName
    Caused by:
    java.lang.NoClassDefFoundError: javax/xml/namespace/QName
    at org.apache.axis.deployment.wsdd.WSDDConstants.(WSD DConstants.java:75)
    at org.apache.axis.configuration.FileProvider.configu reEngine(FileProvider.java:179)
    at org.apache.axis.AxisEngine.init(AxisEngine.java:17 2)
    at org.apache.axis.AxisEngine.(AxisEngine.java:156)
    at org.apache.axis.client.AxisClient.(AxisClient.java :52)
    at org.apache.axis.client.Service.getAxisClient(Servi ce.java:104)
    at org.apache.axis.client.Service.(Service.java:157)
    at org.apache.axis.client.ServiceFactory.createServic e(ServiceFactory.java:198)
    at org.springframework.remoting.jaxrpc.LocalJaxRpcSer viceFactory.createService(LocalJaxRpcServiceFactor y.java:273)
    at org.springframework.remoting.jaxrpc.LocalJaxRpcSer viceFactory.createJaxRpcService(LocalJaxRpcService Factory.java:209)
    at org.springframework.remoting.jaxrpc.JaxRpcPortClie ntInterceptor.prepare(JaxRpcPortClientInterceptor. java:358)
    at org.springframework.remoting.jaxrpc.JaxRpcPortClie ntInterceptor.afterPropertiesSet(JaxRpcPortClientI nterceptor.java:331)
    at org.springframework.remoting.jaxrpc.JaxRpcPortProx yFactoryBean.afterPropertiesSet(JaxRpcPortProxyFac toryBean.java:63)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory
    .java:957)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.ja
    va:924)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:4
    15)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 45)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:141)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:242)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:156)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:246)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveValueIfNecessary(BeanDe finitionValueResolver.java:12
    8)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFacto
    ry.java:850)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java
    :624)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:4
    11)

    We can run unit tests outside of JBoss and everything is fine, its only when we try and deploy in JBoss we get the error on startup.

    Any help would be greatly received.


    Cheers



    Neil
Working...
X