0 Replies Latest reply on Oct 20, 2006 7:03 AM by mitchelln

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

    mitchelln

      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.BeanCreationException: 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.(WSDDConstants.java:75)
      at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
      at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
      at org.apache.axis.AxisEngine.(AxisEngine.java:156)
      at org.apache.axis.client.AxisClient.(AxisClient.java:52)
      at org.apache.axis.client.Service.getAxisClient(Service.java:104)
      at org.apache.axis.client.Service.(Service.java:157)
      at org.apache.axis.client.ServiceFactory.createService(ServiceFactory.java:198)
      at org.springframework.remoting.jaxrpc.LocalJaxRpcServiceFactory.createService(LocalJaxRpcServiceFactory.java:273)
      at org.springframework.remoting.jaxrpc.LocalJaxRpcServiceFactory.createJaxRpcService(LocalJaxRpcServiceFactory.java:209)
      at org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.prepare(JaxRpcPortClientInterceptor.java:358)
      at org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.afterPropertiesSet(JaxRpcPortClientInterceptor.java:331)
      at org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean.afterPropertiesSet(JaxRpcPortProxyFactoryBean.java:63)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory
      .java:957)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.ja
      va:924)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:4
      15)
      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:246)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:12
      8)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFacto
      ry.java:850)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java
      :624)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.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