[jbosstools-issues] [JBoss JIRA] (JBIDE-9831) Unable to select JBossWS CXF as the WS Runtime

Len DiMaggio (Commented) (JIRA) jira-events at lists.jboss.org
Tue Oct 18 13:49:46 EDT 2011


    [ https://issues.jboss.org/browse/JBIDE-9831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635545#comment-12635545 ] 

Len DiMaggio commented on JBIDE-9831:
-------------------------------------

There are multiple issues discussed in this JIRA - I think it's best to cover them in separate JIRAs:

A) The original issue is partially resolved - Brian's information on creating a CXF runtime is correct and working with JBDS 4.1.1.CR1 and SOA-P 5.2.0.ER5
{color:blue} 
1) There is no explicit "JBoss WS CXF" option in the UI. This is by design. When you flip the switch in the runtime to go to a CXF WS implementation, we know based on the runtime you choose for the project that it's a CXF runtime. We make the same calls regardless to wsconsume, wsdl2java, etc. under the covers. So that's a non-issue at this point.

2) There's a simple workaround. When you use the Web Service Client wizard, make sure you click Next. On the second page of the wizard, there's a "Service" dropdown list that needs to be populated for this wizard to run correctly. If you do that, the WS Client should be generated ok. 
{color} 

B) There is a documentation task - we need to ensure that users understand that it is not necessary - and that it is not possible to define a new SOA-P based CXF run time. I'll log a separate JIRA for this.

C) I was able to create a web service with JBDS 4.1.1.CR1 and SOA-P 5.2.0.ER5 - creating the client fails in the JBDS 4.1.1 UI with no error. The wizard appears to be running - but it returns with no client created and no error written to the .log or screen.

D) Creating the client with wsconsume fails with this exception:

sh ./wsconsume.sh /home/ldimaggi/workspace_JBDS_411_CR1_Oct18/DynamicSample/wsdl/HelloWorldService.wsdl
Oct 18, 2011 1:26:21 PM org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
INFO: Replaced default databinding jaxb
Oct 18, 2011 1:26:22 PM org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
INFO: Replaced default frontend jaxws
Loading FrontEnd jaxws ...
Loading DataBinding jaxb ...
wsdl2java -compile -verbose -classdir /jboss/local/52_ER5/jboss-soa-p-5/jboss-as/bin/output file:/home/ldimaggi/workspace_JBDS_411_CR1_Oct18/DynamicSample/wsdl/HelloWorldService.wsdl
wsdl2java - Apache CXF 2.2.12-patch-02

log4j:WARN No appenders could be found for logger (org.apache.cxf.bus.spring.BusApplicationContext).
log4j:WARN Please initialize the log4j system properly.
Failed to invoke WSDLToJava
java.lang.NoClassDefFoundError: org/springframework/asm/ClassVisitor
	at org.springframework.context.support.AbstractRefreshableApplicationContext.customizeBeanFactory(AbstractRefreshableApplicationContext.java:218)
	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)
	at org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:91)
	at org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:102)
	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:93)
	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:86)
	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:64)
	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:53)
	at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:90)
	at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:79)
	at org.apache.cxf.tools.common.toolspec.AbstractToolContainer.getBus(AbstractToolContainer.java:189)
	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:158)
	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:128)
	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:271)
	at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
	at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
	at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
	at org.jboss.wsf.stack.cxf.tools.CXFConsumerImpl.consume(CXFConsumerImpl.java:232)
	at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:230)
	at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:81)
Caused by: java.lang.ClassNotFoundException: org.springframework.asm.ClassVisitor
	at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
	... 22 more

                
> Unable to select JBossWS CXF as the WS Runtime
> ----------------------------------------------
>
>                 Key: JBIDE-9831
>                 URL: https://issues.jboss.org/browse/JBIDE-9831
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Webservices
>    Affects Versions: 3.2.1.Final
>         Environment: JBoss Developer Studio 4.1
> JBoss Enterprise Platform (EAP) 5.1 with JBossWS CXF installed
>            Reporter: Mustafa Musaji
>            Assignee: Brian Fitzpatrick
>             Fix For: 3.2.2.M2, 3.3.0.M4
>
>         Attachments: noClassException.txt, PhoneBook.wsdl
>
>
> When you want to create a CXF Client there is no way to select JBossWS CXF as the WS Runtime.
> I have a CXF Web Service deployed to JBoss. The wsdl is published to a URL.
> I go to File->New->Web Services->Web Service Client.
> At this dialogue box I get to choose my configuration to create the client stubs. When selecting Web Service Runtime, I cannot select JBossWS CXF that is within JBoss. It only gives me options for Apache Axis, Apache CXF and JbossWS.
> So I then think I need to add a CXF runtime from Window->Preferences->Web Services->CXF.2x Preferences. Once again, this doesn't let me choose a JBossWS CXF runtime other than an Apache CXF runtime. How can I select JBossWS CXF as the CXF runtime of choice?
> Selecting JBossWS and a JBoss Server With CXF installed does not work either. I choose the CXF JBoss Server Runtime and JBossWS as the Web Service Runtime. The generated classes have the following header.
> /**
>  * This class was generated by the JAX-WS RI.
>  * JAX-WS RI 2.1.7-09/10/2010 09:17 PM(mockbuild)-
>  * Generated source version: 2.1
>  *
>  */
> Using wsconsume.sh from the same JBoss instance the generated classes have the following header
> /**
>  * This class was generated by Apache CXF 2.2.6-patch-01
>  * Tue Oct 04 14:16:01 BST 2011
>  * Generated source version: 2.2.6-patch-01
>  *
>  */
> As you can see the JBDS still uses JBossWS Native as the stack to build the client stubs from.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list