facebook

Error while deploying HelloWorld xfire webservice on jboss

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #287632 Reply

    Ashish Saraf
    Member

    Hi,
    I could successfully deploy HelloWorld xfire webservice on Tomcat 5.0 (JDK 1.4_13). However when the same webservice depolyed to jboss 3.2.5 (JDK 1.4_13) throws the following exception on the jboss console.:
    java.lang.NoSuchMethodError: javax.xml.namespace.QName.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    at org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.<clinit>(DefaultTypeMappingRegistry.java:66)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:219)
    at org.springframework.util.ClassUtils.forName(ClassUtils.java:108)
    at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:65)
    at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:426)
    at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:392)
    at org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionParser.parseBeanDefinitionElement(XBeanXmlBeanDefinitionParser.java:835)
    va.lang.NoSuchMethodError: javax.xml.namespace.QName.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    at org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.<clinit>(DefaultTypeMappingRegistry.java:66)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:219)
    at org.springframework.util.ClassUtils.forName(ClassUtils.java:108)
    at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:65)
    at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:426)
    at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:392)
    at org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionParser.parseBeanDefinitionElement(XBeanXmlBeanDefinitionParser.java:835)
    at org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionParser.parseBeanDefinitions(XBeanXmlBeanDefinitionParser.java:802)
    at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.registerBeanDefinitions(DefaultXmlBeanDefinitionParser.java:191)
    at org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionReader.registerBeanDefinitions(XBeanXmlBeanDefinitionReader.java:78)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:223)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:173)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:148)
    at org.codehaus.xfire.spring.XFireConfigLoader.getXFireApplicationContext(XFireConfigLoader.java:79)
    at org.codehaus.xfire.spring.XFireConfigLoader.loadContext(XFireConfigLoader.java:41)
    at org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionParser.parseBeanDefinitions(XBeanXmlBeanDefinitionParser.java:802)

    Could you help me in resolving this issue please

    Thanks and regards,
    Ashish Saraf

    #287673 Reply

    Loyal Water
    Member

    What version of JBoss are you working with? Were you able to start the JBoss server without errors before deploying the web service?

    Can you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.

    #287738 Reply

    Ashish Saraf
    Member

    Hi,
    Thanks for your reply. JBoss does start without error if webservice is not deployed. This jboss also runs adobe livecycle forms, reader extension applications along with some other ears and wars.
    Following is the installation details of myeclipse:

    *** Date:
    Wednesday, July 30, 2008 8:30:23 AM IST

    ** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_11

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 6.5.1 GA
    Build id: 6.5.1-GA-20080715

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 6.5.1 GA
    Build id: 6.5.1-GA-20080715

    Eclipse Platform

    Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft
    Build id: M20080221-1800

    Eclipse RCP

    Version: 3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc
    Build id: M20080221-1800

    Eclipse Java Development Tools

    Version: 3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7
    Build id: M20080221-1800

    Eclipse Plug-in Development Environment

    Version: 3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL
    Build id: M20080221-1800

    Eclipse Project SDK

    Version: 3.3.3.r33x_r20080129-7M7J7LB-u3aphGW6o3_VmiVfGXWO
    Build id: M20080221-1800

    Eclipse Graphical Editing Framework

    Version: 3.3.2.v20080129
    Build id: 20080221-1602

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Program Files\MyEclipse 6.5\eclipse\eclipse.exe
    -name
    Eclipse
    –launcher.library
    C:\Program Files\MyEclipse 6.5\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118\eclipse_1023.dll
    -startup
    C:\Program Files\MyEclipse 6.5\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
    -exitdata
    137c_80
    -clean
    -vm
    C:\Program Files\MyEclipse 6.5\jre\bin\javaw.exe

    Thanks and regards,
    Ashish Saraf

    #287739 Reply

    Ashish Saraf
    Member

    Forgot to metion jbos is 3.2.5

    #287781 Reply

    Loyal Water
    Member

    Can you try another version of Jboss (JBoss 4) to make sure this is not a version related issue.

    #287793 Reply

    Ashish Saraf
    Member

    It works with jboss 4, but I must implement this webservice on the same jboss for operational reasons.(other applications are also on the same jboss). the tomcat used by this version of jboss is 5.0.28. the same webservice when deployed on this tomcat running standalone does work. I think issue is with some library which cause this error. I am not able to figure out which library is the root cause for these exceptions, from the exception dump.

    Regards,
    Ashish Saraf

    #287833 Reply

    Loyal Water
    Member

    Ashish,
    It could be that JBoss 3.x uses an older version of javax/xml/namespace/QName.class than XFire requires. The fix is to include the new version of QName.class in a jar by itself and then prepend that to the servers classpath.

    You can refer to this link for more info. Even though this issue was reported on weblogic, you seem to be facing a similar issue with JBoss:-
    http://forum.springframework.org/archive/index.php/t-16571.html

    #287847 Reply

    Ashish Saraf
    Member

    Hi,
    Thanks a lot. you were bang on target. I copied stax1.1.jar file in jboss endorsed folder and it worked.

    Regards,
    Ashish Saraf

    #288112 Reply

    Loyal Water
    Member

    Glad it worked.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Error while deploying HelloWorld xfire webservice on jboss

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in