Its possible to send an archive with a simple WS inside (hello world) to test in my machine There is too much paramter to consider and its always bug ...
thank you gnodet wrote: > > The 3.1.1 is not official yet, so you will have to add the following > repo to your pom: > http://people.apache.org/~gnodet/servicemix-3.1.1-incubating/ > Look at the main servicemix pom.xml for an example > (http://svn.apache.org/repos/asf/incubator/servicemix/trunk/pom.xml) > > On 6/28/07, Erik Allais <[EMAIL PROTECTED]> wrote: >> >> ~/testService$ ls >> pom.xml README test-http-su test-jsr181-su test-sa >> >> ~/testService$ mvn install >> [INFO] Scanning for projects... >> [INFO] Reactor build order: >> [INFO] A HTTP Service Unit >> [INFO] A custom project >> [INFO] A Service Assembly >> [INFO] Unnamed - org.test.samples:testService:pom:1.0-SNAPSHOT >> Downloading: >> http://people.apache.org/repo/m2-incubating-repository/org/apache/servicemix/tooling/jbi-maven-plugin/3.1.1-incubating/jbi-maven-plugin-3.1.1-incubating.pom >> Downloading: >> http://repo1.maven.org/maven2/org/apache/servicemix/tooling/jbi-maven-plugin/3.1.1-incubating/jbi-maven-plugin-3.1.1-incubating.pom >> Downloading: >> http://people.apache.org/repo/m2-incubating-repository/org/apache/servicemix/tooling/jbi-maven-plugin/3.1.1-incubating/jbi-maven-plugin-3.1.1-incubating.pom >> Downloading: >> http://repo1.maven.org/maven2/org/apache/servicemix/tooling/jbi-maven-plugin/3.1.1-incubating/jbi-maven-plugin-3.1.1-incubating.pom >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] BUILD ERROR >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Failed to resolve artifact. >> >> GroupId: org.apache.servicemix.tooling >> ArtifactId: jbi-maven-plugin >> Version: 3.1.1-incubating >> >> Reason: Unable to download the artifact from any repository >> >> org.apache.servicemix.tooling:jbi-maven-plugin:pom:3.1.1-incubating >> >> from the specified remote repositories: >> central (http://repo1.maven.org/maven2), >> apache.snapshots >> (http://people.apache.org/repo/m2-snapshot-repository), >> apache.incubating >> (http://people.apache.org/repo/m2-incubating-repository) >> >> >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] For more information, run Maven with the -e switch >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 3 seconds >> [INFO] Finished at: Thu Jun 28 16:19:19 GMT+01:00 2007 >> [INFO] Final Memory: 3M/6M >> [INFO] >> ------------------------------------------------------------------------ >> >> >> gnodet wrote: >> > >> > Can you try with ServiceMix 3.1.1 (non official yet). I'm quite sure >> this >> > is >> > a bug from xfire that is fixed in the 3.1.1 distribution. >> > >> > On 6/28/07, Erik Allais <[EMAIL PROTECTED]> wrote: >> >> >> >> i try and i try to make my web service with http+jsr181 component >> >> i make all my maven archetype like that : >> >> >> >> 1. Create HTTP SU using servicemix-http-consumer-service-unit >> archetype >> >> ------------ >> >> mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling >> \ >> >> -DarchetypeArtifactId=servicemix-http-consumer-service-unit \ >> >> -DarchetypeVersion=3.1-incubating \ >> >> -DgroupId=org.test.samples \ >> >> -DartifactId=test-http-su \ >> >> >> -DremoteRepositories=http://people.apache.org/repo/m2-incubating-repository >> >> >> >> 2.create JSR181 SU using using >> servicemix-jsr181-annotated-service-unit >> >> archetype >> >> ---------- >> >> mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling >> \ >> >> -DarchetypeArtifactId=servicemix-jsr181-annotated-service-unit \ >> >> -DarchetypeVersion=3.1-incubating \ >> >> -DgroupId=org.test.samples \ >> >> -DartifactId=test-jsr181-su \ >> >> >> -DremoteRepositories=http://people.apache.org/repo/m2-incubating-repository >> >> >> >> >> >> 3.create SA >> >> ----- >> >> mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling >> \ >> >> -DarchetypeArtifactId=servicemix-service-assembly \ >> >> -DarchetypeVersion=3.1-incubating \ >> >> -DgroupId=org.test.samples \ >> >> -DartifactId=test-sa \ >> >> >> -DremoteRepositories=http://people.apache.org/repo/m2-incubating-repository >> >> >> >> Then i modify my xbean.xml for my jsr181-su : >> >> >> >> <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0" >> >> xmlns:test="http://test"> >> >> >> >> <classpath> >> >> <location>.</location> >> >> </classpath> >> >> >> >> <jsr181:endpoint >> >> pojoClass="org.test.samples.ExampleService" >> >> annotations="none" >> >> service="test:Hello" >> >> endpoint="testService"/> >> >> >> >> </beans> >> >> >> >> After that i create my pom.xml on the root directory : >> >> >> >> <project> >> >> <modelVersion>4.0.0</modelVersion> >> >> <groupId>org.test.samples</groupId> >> >> <artifactId>testService</artifactId> >> >> <version>1.0-SNAPSHOT</version> >> >> <packaging>pom</packaging> >> >> <modules> >> >> <module>test-http-su</module> >> >> <module>test-jsr181-su</module> >> >> <module>test-sa</module> >> >> </modules> >> >> </project> >> >> >> >> I modify the pom.xml file on the test-sa folder >> >> >> >> <dependency> >> >> <groupId>org.test.samples</groupId> >> >> <artifactId>test-http-su</artifactId> >> >> <version>1.0-SNAPSHOT</version> >> >> </dependency> >> >> <dependency> >> >> <groupId>org.test.samples</groupId> >> >> <artifactId>test-jsr181-su</artifactId> >> >> <version>1.0-SNAPSHOT</version> >> >> </dependency> >> >> >> >> >> >> I can compile the http-su (mvn install) >> >> i cant compile the jsr181-su : >> >> >> >> ~/testService/test-jsr181-su$ mvn install >> >> [INFO] Scanning for projects... >> >> [INFO] >> >> >> ---------------------------------------------------------------------------- >> >> [INFO] Building A JSR181 Service Unit >> >> [INFO] task-segment: [install] >> >> [INFO] >> >> >> ---------------------------------------------------------------------------- >> >> [INFO] [resources:resources] >> >> [INFO] Using default encoding to copy filtered resources. >> >> Downloading: >> >> >> http://people.apache.org/repo/m2-incubating-repository/xfire/saaj-impl/1.3/saaj-impl-1.3.pom >> >> Downloading: >> >> http://repo1.maven.org/maven2/xfire/saaj-impl/1.3/saaj-impl-1.3.pom >> >> Downloading: >> >> >> http://people.apache.org/repo/m2-incubating-repository/wss4j/wss4j/1.5.0/wss4j-1.5.0.pom >> >> Downloading: >> >> http://repo1.maven.org/maven2/wss4j/wss4j/1.5.0/wss4j-1.5.0.pom >> >> Downloading: >> >> >> http://people.apache.org/repo/m2-incubating-repository/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom >> >> Downloading: >> >> >> http://repo1.maven.org/maven2/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom >> >> [INFO] [compiler:compile] >> >> [INFO] Nothing to compile - all classes are up to date >> >> [INFO] [jbi:generate-jbi-service-unit-descriptor] >> >> [INFO] Generating jbi.xml >> >> [INFO] Created Service Unit Analyzer >> >> >> [EMAIL PROTECTED] >> >> 2007-06-28 15:18:14,653 [main ] INFO CollectionFactory >> >> - JDK 1.4+ collections available >> >> 2007-06-28 15:18:14,670 [main ] INFO CollectionFactory >> >> - Commons Collections 3.x available >> >> 2007-06-28 15:18:14,753 [main ] INFO >> >> XBeanXmlBeanDefinitionReader >> >> - Loading XML bean definitions from URL >> >> >> [file://home/servicemix/testService/test-jsr181-su/src/main/resources/xbean.xml] >> >> 2007-06-28 15:18:15,177 [main ] INFO >> >> ileSystemXmlApplicationContext - Bean factory for application context >> >> >> [org.apache.xbean.spring.context.FileSystemXmlApplicationContext;hashCode=32739270]: >> >> org.springframework.beans.factory.support.DefaultListableBeanFactory >> >> defining beans [org.apache.servicemix.jsr181.Jsr181Endpoint]; root of >> >> BeanFactory hierarchy >> >> 2007-06-28 15:18:15,182 [main ] INFO >> >> ileSystemXmlApplicationContext - 1 beans defined in application >> context >> >> >> [org.apache.xbean.spring.context.FileSystemXmlApplicationContext;hashCode=32739270] >> >> 2007-06-28 15:18:15,192 [main ] INFO >> >> ileSystemXmlApplicationContext - Unable to locate MessageSource with >> name >> >> 'messageSource': using default >> >> [EMAIL PROTECTED] >> >> 2007-06-28 15:18:15,194 [main ] INFO >> >> ileSystemXmlApplicationContext - Unable to locate >> >> ApplicationEventMulticaster with name 'applicationEventMulticaster': >> >> using >> >> default >> >> >> [EMAIL PROTECTED] >> >> 2007-06-28 15:18:15,195 [main ] INFO >> >> DefaultListableBeanFactory >> >> - Pre-instantiating singletons in factory >> >> [org.springframework.beans.factory.support.DefaultListableBeanFactory >> >> defining beans [org.apache.servicemix.jsr181.Jsr181Endpoint]; parent: >> >> [EMAIL PROTECTED] >> >> [INFO] >> >> >> ------------------------------------------------------------------------ >> >> [ERROR] BUILD ERROR >> >> [INFO] >> >> >> ------------------------------------------------------------------------ >> >> [INFO] Failed to generate jbi.xml >> >> >> >> Embedded error: Unable to generate service unit descriptor! >> >> <component-task-result >> >> xmlns="http://java.sun.com/xml/ns/jbi/management-message"> >> >> <component-name>null</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:73) >> >> at >> >> >> org.codehaus.xfire.service.binding.ObjectServiceFactory.addOperation(ObjectServiceFactory.java:801) >> >> at >> >> >> org.apache.servicemix.jsr181.xfire.ServiceFactoryHelper$FixedJAXWSServiceFactory.addOperation(ServiceFactoryHelper.java:210) >> >> at >> >> >> org.codehaus.xfire.service.binding.ObjectServiceFactory.initializeOperations(ObjectServiceFactory.java:761) >> >> at >> >> >> org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java:444) >> >> at >> >> >> org.codehaus.xfire.annotations.AnnotationServiceFactory.create(AnnotationServiceFactory.java:277) >> >> at >> >> >> org.apache.servicemix.jsr181.Jsr181Endpoint.registerService(Jsr181Endpoint.java:301) >> >> at >> >> >> org.apache.servicemix.jsr181.Jsr181Endpoint.validate(Jsr181Endpoint.java:216) >> >> at >> >> >> org.apache.servicemix.common.DefaultComponent.addEndpoint(DefaultComponent.java:300) >> >> at >> >> >> org.apache.servicemix.common.DefaultComponent.doInit(DefaultComponent.java:287) >> >> at >> >> >> org.apache.servicemix.jsr181.Jsr181Component.doInit(Jsr181Component.java:81) >> >> at >> >> >> org.apache.servicemix.common.AsyncBaseLifeCycle.init(AsyncBaseLifeCycle.java:142) >> >> at >> >> >> org.apache.servicemix.jsr181.packaging.Jsr181ServiceUnitAnalyzer.getProvides(Jsr181ServiceUnitAnalyzer.java:57) >> >> at >> >> >> org.apache.servicemix.common.xbean.AbstractXBeanServiceUnitAnalyzer.init(AbstractXBeanServiceUnitAnalyzer.java:96) >> >> at >> >> >> org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.generateJbiDescriptor(GenerateServiceUnitDescriptorMojo.java:166) >> >> at >> >> >> org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.execute(GenerateServiceUnitDescriptorMojo.java:129) >> >> at >> >> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) >> >> at >> >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) >> >> at >> >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) >> >> at >> >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) >> >> at >> >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) >> >> at >> >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) >> >> at >> >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) >> >> at >> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) >> >> at >> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) >> >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) >> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> >> at >> >> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> >> at >> >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> >> at java.lang.reflect.Method.invoke(Method.java:585) >> >> at >> >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) >> >> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) >> >> at >> >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) >> >> at org.codehaus.classworlds.Launcher.main(Launcher.java:375) >> >> ]]></stack-trace> >> >> </msg-loc-info> >> >> </exception-info> >> >> </task-result-details> >> >> </component-task-result-details> >> >> </component-task-result> >> >> [INFO] >> >> >> ------------------------------------------------------------------------ >> >> [INFO] For more information, run Maven with the -e switch >> >> [INFO] >> >> >> ------------------------------------------------------------------------ >> >> [INFO] Total time: 27 seconds >> >> [INFO] Finished at: Thu Jun 28 15:18:15 GMT+01:00 2007 >> >> [INFO] Final Memory: 15M/31M >> >> [INFO] >> >> >> ------------------------------------------------------------------------ >> >> >> >> >> >> im deseperated with that... >> >> Where is the error??? >> >> >> >> Someone could u help to give the instruction (step by step) to make a >> >> trivial WS component inside the JBI bus >> >> hello wold for example >> >> >> >> thanks >> >> Erik >> >> >> >> >> >> >> >> >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Can-i-have-a-correct-instruction-to-deploy-a-service-plz-tf3994453s12049.html#a11343324 >> >> Sent from the ServiceMix - User mailing list archive at Nabble.com. >> >> >> >> >> > >> > >> > -- >> > Cheers, >> > Guillaume Nodet >> > ------------------------ >> > Principal Engineer, IONA >> > Blog: http://gnodet.blogspot.com/ >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Can-i-have-a-correct-instruction-to-deploy-a-service-plz-tf3994453s12049.html#a11345156 >> Sent from the ServiceMix - User mailing list archive at Nabble.com. >> >> > > > -- > Cheers, > Guillaume Nodet > ------------------------ > Principal Engineer, IONA > Blog: http://gnodet.blogspot.com/ > > -- View this message in context: http://www.nabble.com/Can-i-have-a-correct-instruction-to-deploy-a-service-plz-tf3994453s12049.html#a11345910 Sent from the ServiceMix - User mailing list archive at Nabble.com.
