Sorry for this post. There are many many posts about jsr181, but it can't resolve my problem..
>From these old JSR181 post, i knew ServiceMix3.1 had a bug to of maven archetype to create JSR181-su skeleton. I saw it from Bruse's post > Remove the section above. There is no need to generate WSDL for an > annotated POJO. This is a bug in the archetype that I've fixed. That > will allow the SU to build. > and i found the servicemix3.1.1 fixed this bug to use this from gnodet > mvn archetype:create \ > -DarchetypeGroupId=org.apache.servicemix.tooling \ > -DarchetypeArtifactId=servicemix-jsr181-annotated-service-unit \ > -DarchetypeVersion=3.1.1-incubating > -DgroupId=com.company \ > -DartifactId=wstest-SU \ > > -DremoteRepositories=http://people.apache.org/~gnodet/servicemix-3.1.1-incubating > > Then, just edit the generated pom.xml to change back to ServiceMix 3.1 > instead of 3.1.1. > I use 3.1.1 to create my jsr181-su skeleton , but i still has "Failed to generate jbi.xml" error.. and i knew use <generateJbiDescriptor>false</generateJbiDescriptor> can make su build. But after i build su, sa, i deploy it to servicemix deploy directory, i get this error: > ERROR - AutoDeploymentService - Failed to update Service > Assembly: prototype-sa > java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?> > <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" > version="1.0"> > <jbi-task-result> > <frmwk-task-result> > <frmwk-task-result-details> > <task-result-details> > <task-id>deploy</task-id> > <task-result>FAILED</task-result> > <message-type>ERROR</message-type> > </task-result-details> > </frmwk-task-result-details> > </frmwk-task-result> > <component-task-result > xmlns="http://java.sun.com/xml/ns/jbi/management-message"> > <component-name>servicemix-lwcontainer</component-name> > <component-task-result-details> > <task-result-details> > <task-id>deploy</task-id> > <task-result>SUCCESS</task-result> > </task-result-details> > </component-task-result-details> > </component-task-result> > <component-task-result > xmlns="http://java.sun.com/xml/ns/jbi/management-message"> > <component-name>servicemix-http</component-name> > <component-task-result-details> > <task-result-details> > <task-id>deploy</task-id> > <task-result>SUCCESS</task-result> > </task-result-details> > </component-task-result-details> > </component-task-result> > <component-task-result > xmlns="http://java.sun.com/xml/ns/jbi/management-message"> > <component-name>servicemix-jsr181</component-name> > <component-task-result-details> > <task-result-details> > <task-id>deploy</task-id> > <task-result>FAILED</task-result> > <message-type>ERROR</message-type> > <task-status-msg> > <msg-loc-info> > <loc-token/> > <loc-message>java.lang.IllegalArgumentException: Invalid name > []</loc-message> > </msg-loc-info> > </task-status-msg> > <exception-info> > <nesting-level>1</nesting-level> > <msg-loc-info> > <loc-token/> > <loc-message>Invalid name > []</loc-message> > > <stack-trace><![CDATA[java.lang.IllegalArgumentException: Invalid name [] > at > org.codehaus.xfire.service.ServiceInfo.addOperation(ServiceInfo.java:71) > at > org.codehaus.xfire.service.binding.ObjectServiceFactory.addOperation(ObjectServiceFactory.java:760) > at > org.apache.servicemix.jsr181.xfire.ServiceFactoryHelper$FixedJAXWSServiceFactory.addOperation(ServiceFactoryHelper.java:210) > at > org.codehaus.xfire.service.binding.ObjectServiceFactory.initializeOperations(ObjectServiceFactory.java:720) > And i use the jsr181-su skeleton (no change) to build...hope it can work... If you have any ideas please let me know. thanks. regards. -- View this message in context: http://www.nabble.com/Problem-about-JSR181-SU...-tf3906987s12049.html#a11077021 Sent from the ServiceMix - User mailing list archive at Nabble.com.
