Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Author Message
sarafashish
Post subject: Error while deploying HelloWorld xfire webservice on jboss  PostPosted: Jul 28, 2008 - 04:10 PM



Joined: Jul 28, 2008
Posts: 8

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
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Error while deploying HelloWorld xfire webservice on jbo  PostPosted: Jul 28, 2008 - 10:59 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 5657

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.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
sarafashish
Post subject: RE: Error while deploying HelloWorld xfire webservice on jbo  PostPosted: Jul 30, 2008 - 04:01 AM



Joined: Jul 28, 2008
Posts: 8

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
 
 View user's profile Send private message  
Reply with quote Back to top
sarafashish
Post subject: RE: Error while deploying HelloWorld xfire webservice on jbo  PostPosted: Jul 30, 2008 - 04:02 AM



Joined: Jul 28, 2008
Posts: 8

Forgot to metion jbos is 3.2.5
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Error while deploying HelloWorld xfire webservice on jbo  PostPosted: Jul 30, 2008 - 06:56 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 5657

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

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
sarafashish
Post subject: RE: Error while deploying HelloWorld xfire webservice on jbo  PostPosted: Jul 31, 2008 - 07:01 AM



Joined: Jul 28, 2008
Posts: 8

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
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Error while deploying HelloWorld xfire webservice on jbo  PostPosted: Jul 31, 2008 - 09:52 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 5657

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

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
sarafashish
Post subject: RE: Error while deploying HelloWorld xfire webservice on jbo  PostPosted: Aug 01, 2008 - 09:20 AM



Joined: Jul 28, 2008
Posts: 8

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
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Error while deploying HelloWorld xfire webservice on jbo  PostPosted: Aug 11, 2008 - 07:51 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 5657

Glad it worked.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits