[ http://jira.codehaus.org/browse/XFIRE-732?page=comments#action_85174 ] Robert Brown commented on XFIRE-732: ------------------------------------
I was having the exact same issue in WebLogic 9.1 (Windows 2003 Server). I installed a COTS product and everything worked great when it was ran on the command line using startWebLogic.cmd, startManagedWebLogic.cmd etc... However, when it was turned into a Windows service both the Admin and App server came up but when I tried to get the WSDL back from the application I got the same error. After going through the AppServer logs I found that the order of the JARs in the CLASSPATH were different... -=>>Ran On Console<<=- java.class.path = D:\bea\WEBLOG~1\server\ext\xfire-jsr181-api-1.0-M1.jar;D:\bea\WEBLOG~1\server\ext\mfcontext.jar;D:\bea\WEBLOG~1\server\ext\sonic_Client.jar;D:\bea\WEBLOG~1\server\ext\sonic_Crypto.jar;D:\bea\WEBLOG~1\server\ext\sonic_XA.jar;D:\bea\WEBLOG~1\server\ext\sonic_XMessage.jar;;D:\bea\patch_weblogic910\profiles\default\sys_manifest_classpath\weblogic_patch.jar;D:\bea\JDK150~1\lib\tools.jar;D:\bea\WEBLOG~1\server\lib\weblogic_sp.jar;D:\bea\WEBLOG~1\server\lib\weblogic.jar;D:\bea\WEBLOG~1\server\lib\webservices.jar;;D:\bea\WEBLOG~1\common\eval\pointbase\lib\pbclient51.jar;D:\bea\WEBLOG~1\server\lib\xqrl.jar;;D:\bea\WEBLOG~1\integration\lib\util.jar; -=>>Ran As A Service<<=- java.class.path = D:\bea\patch_weblogic910\profiles\default\sys_manifest_classpath\weblogic_patch.jar;D:\bea\jdk150_04\lib\tools.jar;D:\bea\WEBLOG~1\server\lib\weblogic_sp.jar;D:\bea\WEBLOG~1\server\lib\weblogic.jar;D:\bea\WEBLOG~1\server\lib\webservices.jar;d:\bea\weblog~1\server\ext\xfire-jsr181-api-1.0-M1.jar;d:\bea\weblog~1\server\ext\mfcontext.jar;d:\bea\weblog~1\server\ext\sonic_Client.jar;d:\bea\weblog~1\server\ext\sonic_Crypto.jar;d:\bea\weblog~1\server\ext\sonic_XA.jar;d:\bea\weblog~1\server\ext\sonic_XMessage.jar; I went into the registry and changed up the order of the JARs in CLASSPATH of the service startup parameters for the App Server, fired it up and was able to get a WSDL back and everything appears to be working as normal. I suspet that there may be a conflict with one of the weblogic jars [weblogic.jar maybe?] and because weblogic.jar was listed first on the CLASSPATH that was used first for the method call in question instead of using the method in the xfire-jsr181-xxx JAR. Let me know if this helps. -=Robert > Sample applications jaxb2-example-1.2.2 fails to run > ------------------------------------------------------ > > Key: XFIRE-732 > URL: http://jira.codehaus.org/browse/XFIRE-732 > Project: XFire > Issue Type: Bug > Components: JAXB 2.0 > Affects Versions: 1.2.2 > Environment: bea weblogic 9.2 > Reporter: ran zilber > Assigned To: Dan Diephouse > > Error 500--Internal Server Error > org.springframework.beans.factory.BeanCreationException: Error creating bean > with name 'org.codehaus.xfire.spring.ServiceBean' defined in class path > resource [META-INF/xfire/services.xml]: Initialization of bean failed; nested > exception is java.lang.NoSuchMethodError: > javax.jws.WebService.portName()Ljava/lang/String; > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:370) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147) > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275) > at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:320) > at > org.codehaus.xfire.spring.XFireConfigLoader.getXFireApplicationContext(XFireConfigLoader.java:107) > at > org.codehaus.xfire.spring.XFireConfigLoader.loadContext(XFireConfigLoader.java:41) > at > org.codehaus.xfire.transport.http.XFireConfigurableServlet.loadConfig(XFireConfigurableServlet.java:86) > at > org.codehaus.xfire.transport.http.XFireConfigurableServlet.createXFire(XFireConfigurableServlet.java:54) > at > org.codehaus.xfire.transport.http.XFireServlet.init(XFireServlet.java:45) > at javax.servlet.GenericServlet.init(GenericServlet.java:256) > at > weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:276) > at > weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) > at > weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) > at > weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:68) > at > weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58) > at > weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHelper.java:48) > at > weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:504) > at > weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235) > at > weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175) > at > weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3214) > at > weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) > at > weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) > at > weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983) > at > weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890) > at > weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344) > at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) > at weblogic.work.ExecuteThread.run(ExecuteThread.java:181) > Caused by: java.lang.NoSuchMethodError: > javax.jws.WebService.portName()Ljava/lang/String; > at > org.codehaus.xfire.annotations.jsr181.Jsr181WebAnnotations.getWebServiceAnnotation(Jsr181WebAnnotations.java:50) > at > org.codehaus.xfire.annotations.AnnotationServiceFactory.create(AnnotationServiceFactory.java:170) > at > org.codehaus.xfire.spring.ServiceBean.afterPropertiesSet(ServiceBean.java:176) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1059) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363) > ... 27 more -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email