I found the error its the following code to paste 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.apache.servicemix.samples.sample-jsr181 \ -DartifactId=sample-jsr181-jsr181-su \ -DremoteRepositories=http://people.apache.org/repo/m2-incubating-repository
Erik Allais wrote: > > Thanks, it's this kind of tuto that i need > but i have maven error with the creation of jsr181 > > [EMAIL PROTECTED]:~/MyFirstService$ mvn archetype:create > -DarchetypeGroupId=org.apache.servicemix.tooling \ >> -DarchetypeArtifactId=servicemix-jsr181-annonated-service-unit \ >> -DarchetypeVersion=3.1-incubating \ >> -DgroupId=org.apache.servicemix.samples.sample-jsr181 \ >> -DartifactId=sample-jsr181-jsr181-su > > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'archetype'. > [INFO] > ---------------------------------------------------------------------------- > [INFO] Building Maven Default Project > [INFO] task-segment: [archetype:create] (aggregator-style) > [INFO] > ---------------------------------------------------------------------------- > [INFO] Setting property: classpath.resource.loader.class => > 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. > [INFO] Setting property: velocimacro.messages.on => 'false'. > [INFO] Setting property: resource.loader => 'classpath'. > [INFO] Setting property: resource.manager.logwhenfound => 'false'. > [INFO] ************************************************************** > [INFO] Starting Jakarta Velocity v1.4 > [INFO] RuntimeInstance initializing. > [INFO] Default Properties File: > org/apache/velocity/runtime/defaults/velocity.properties > [INFO] Default ResourceManager initializing. (class > org.apache.velocity.runtime.resource.ResourceManagerImpl) > [INFO] Resource Loader Instantiated: > org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader > [INFO] ClasspathResourceLoader : initialization starting. > [INFO] ClasspathResourceLoader : initialization complete. > [INFO] ResourceCache : initialized. (class > org.apache.velocity.runtime.resource.ResourceCacheImpl) > [INFO] Default ResourceManager initialization complete. > [INFO] Loaded System Directive: > org.apache.velocity.runtime.directive.Literal > [INFO] Loaded System Directive: > org.apache.velocity.runtime.directive.Macro > [INFO] Loaded System Directive: > org.apache.velocity.runtime.directive.Parse > [INFO] Loaded System Directive: > org.apache.velocity.runtime.directive.Include > [INFO] Loaded System Directive: > org.apache.velocity.runtime.directive.Foreach > [INFO] Created: 20 parsers. > [INFO] Velocimacro : initialization starting. > [INFO] Velocimacro : adding VMs from VM library template : > VM_global_library.vm > [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' > in any resource loader. > [INFO] Velocimacro : error using VM library template VM_global_library.vm > : org.apache.velocity.exception.ResourceNotFoundException: Unable to find > resource 'VM_global_library.vm' > [INFO] Velocimacro : VM library template macro registration complete. > [INFO] Velocimacro : allowInline = true : VMs can be defined inline in > templates > [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline > may NOT replace previous VM definitions > [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be > global in scope if allowed. > [INFO] Velocimacro : initialization complete. > [INFO] Velocity successfully started. > [INFO] [archetype:create] > [INFO] Defaulting package to group ID: > org.apache.servicemix.samples.sample-jsr181 > Downloading: > http://repo1.maven.org/maven2/org/apache/servicemix/tooling/servicemix-jsr181-annonated-service-unit/3.1-incubating/servicemix-jsr181-annonated-service-unit-3.1-incubating.jar > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Failed to resolve artifact. > > GroupId: org.apache.servicemix.tooling > ArtifactId: servicemix-jsr181-annonated-service-unit > Version: 3.1-incubating > > Reason: Unable to download the artifact from any repository > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=org.apache.servicemix.tooling > -DartifactId=servicemix-jsr181-annonated-service-unit \ > -Dversion=3.1-incubating -Dpackaging=jar -Dfile=/path/to/file > > > > org.apache.servicemix.tooling:servicemix-jsr181-annonated-service-unit:jar:3.1-incubating > > from the specified remote repositories: > central (http://repo1.maven.org/maven2) > > > [INFO] > ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 2 seconds > [INFO] Finished at: Wed Jun 27 13:57:14 GMT+01:00 2007 > [INFO] Final Memory: 4M/8M > [INFO] > ------------------------------------------------------------------------ > > i tried to add this line in my command but no success >> -DremoteRepositories=http://people.apache.org/repo/m2-incubating-repository > > Erik > > rabi wrote: >> >> >> Erik, >> >> If you are yet looking for an answer... >> >> 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.apache.servicemix.samples.sample-jsr181 >> -DartifactId=sample-jsr181-http-su >> >> 2.create JSR181 SU using using servicemix-jsr181-annonated-service-unit >> archetype >> ---------- >> mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling >> -DarchetypeArtifactId=servicemix-jsr181-annonated-service-unit >> -DarchetypeVersion=3.1-incubating >> -DgroupId=org.apache.servicemix.samples.sample-jsr181 >> -DartifactId=sample-jsr181-jsr181-su >> >> 3.create SA >> ----- >> mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling >> -DarchetypeArtifactId=servicemix-service-assembly >> -DarchetypeVersion=3.1-incubating >> -DgroupId=org.apache.servicemix.samples.sample-jsr181 >> -DartifactId=sample-jsr181-sa >> >> 4.Then replace the >> $PROJECT_HOME\sample-jsr181-jsr181-su\src\main\java\org\apache\servicemi >> x\samples\sample-jsr181\ExampleService.java with your own annotated >> pojo.. >> >> 5. Modify the >> $PROJECT_HOME\sample-jsr181-jsr181-su\src\main\resources\service.xml and >> xbean.xml accordingly. >> >> Hope this helps.... >> >> >> Regards, >> Rabi Mishra, >> http://rabisblog.blogspot.com/ >> c++; /* this makes c bigger but returns the old value */ >> -----Original Message----- >> From: Erik Allais [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, June 27, 2007 3:42 PM >> To: [email protected] >> Subject: RE: Conception Problem about Service Consumer >> >> >> i try to make this tuto but there no information about >> >> - how to make a maven archetype >> - where i must store my POJO on the new archetype >> >> i really need help or an archive of this example to understand really >> how to use it >> >> Thanks, >> Erik >> >> >> rabi wrote: >>> >>> >>> OK .. Let us know your usecase and someone from the usergroup can >>> help you.. >>> >>> Else you have a look at the wsdl-first sample that comes with >>> servicemix. This is a contarct first wsdl sample using jsr181. >>> >>> If you have a pojo(annotated) that you want to expose as a WS using >>> JSR181 and ServiceMix then you can look at >>> >>> http://incubator.apache.org/servicemix/servicemix-jsr181.html >>> >>> >>> >>> Regards, >>> Rabi Mishra, >>> http://rabisblog.blogspot.com/ >>> c++; /* this makes c bigger but returns the old value */ >>> -----Original Message----- >>> From: Erik Allais [mailto:[EMAIL PROTECTED] >>> Sent: Wednesday, June 27, 2007 3:23 PM >>> To: [email protected] >>> Subject: RE: Conception Problem about Service Consumer >>> >>> >>> to say the truth i dont know where are all the maven archetype i use >>> this because i saw it in a tutorial... >>> >>> im lost >>> >>> >>> rabi wrote: >>>> >>>> >>>> Erik, >>>> >>>> You have taken the wsdl-first maven archetype to create your SU. >>>> FYI, >>> >>>> this assumes that you have the wsdl(contract) with you to create >>>> implementation from it using <wsgen>. >>>> >>>> Btw, what are you trying to do? contract first or code first.. Do you >> >>>> have a POJO (annotated) that you want to expose it using servicemix. >>>> >>>> Regards, >>>> Rabi Mishra >>>> http://rabisblog.blogspot.com/ >>>> >>>> ________________________________ >>>> >>>> From: Erik Allais [mailto:[EMAIL PROTECTED] >>>> Sent: Tue 6/26/2007 10:41 PM >>>> To: [email protected] >>>> Subject: Re: Conception Problem about Service Consumer >>>> >>>> >>>> >>>> >>>> i try to implement the example on this page : >>>> http://incubator.apache.org/servicemix/servicemix-jsr181.html >>>> >>>> but i have a lot of interrogation about some step for example the >>>> generation of the xbean.xml... >>>> i need to reference a POJO class but where i must put this pojo on my >> >>>> archive >>>> >>>> i use maven to create the archetype like this : >>>> mvn archetype:create \ >>>> -DarchetypeGroupId=org.apache.servicemix.tooling \ >>>> >>> -DarchetypeArtifactId=servicemix-jsr181-wsdl-first-service-unit \ >>>> -DarchetypeVersion=3.1-incubating \ >>>> -DgroupId=com.examples.MyFirstService \ >>>> -DartifactId=my-first-service-su \ >>>> >>>> -DremoteRepositories=http://people.apache.org/repo/m2-incubating-repo >>>> s >>>> itory >>>> >>>> i got the followind directory: >>>> pom.xml >>>> src >>>> \ main >>>> \ ressources >>>> \ service.wsdl >>>> \ xbean.xml >>>> \ target >>>> \ generated-sources >>>> >>>> i change the xbean.xml but where i must put my pojo class? >>>> note: dont understand why i dont have my package (com.examples) >>>> created >>>> >>>> >>>> thanks for help >>>> Erik, >>>> >>>> >>>> Erik Allais wrote: >>>>> >>>>> hi, >>>>> i must make a service provider that consume WS on an external >>>>> Application >>>>> (SugarCRM) >>>>> >>>>> the illustration: >>>>> >>>>> >>>>> ESB<===>[WS: Service provider]------>consume WS------->[Application: >>>>> SugarCRM] >>>>> >>>>> <------return result----------- >>>>> >>>>> >>>>> my service provider inside servicemix must use a SOAP client to >>>>> invoke the WS of my external application There is a component which >>>>> can do that or i must use a SOAP client like XFire or Axis? >>>>> >>>>> note : All the WS i must invoke (sugarCRM) need complex type >>>>> parameter >>>>> >>>>> Why this implementation?? >>>>> Because i need to make an abstract layer over the WS of my >>>>> application (bufferised some process for example) >>>>> >>>>> thanks, >>>>> >>>>> Erik >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/Conception-Problem-about-Service-Consumer-tf397 >>>> 7 >>>> 822s12049.html#a11309858 Sent from the ServiceMix - User mailing list >> >>>> archive at Nabble.com. >>>> >>>> >>>> >>>> >>>> >>>> >>>> The information contained in this electronic message and any >>>> attachments to this message are intended for the exclusive use of the >>>> addressee(s) and may contain proprietary, confidential or privileged >>>> information. If you are not the intended recipient, you should not >>>> disseminate, distribute or copy this e-mail. Please notify the sender >> >>>> immediately and destroy all copies of this message and any >>> attachments. >>>> >>>> WARNING: Computer viruses can be transmitted via email. The recipient >> >>>> should check this email and any attachments for the presence of >>> viruses. >>>> The company accepts no liability for any damage caused by any virus >>>> transmitted by this email. >>>> >>>> www.wipro.com >>>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Conception-Problem-about-Service-Consumer-tf3977 >>> 82 >>> 2s12049.html#a11321489 >>> Sent from the ServiceMix - User mailing list archive at Nabble.com. >>> >>> >>> >>> The information contained in this electronic message and any >>> attachments to this message are intended for the exclusive use of the >>> addressee(s) and may contain proprietary, confidential or privileged >>> information. If you are not the intended recipient, you should not >>> disseminate, distribute or copy this e-mail. Please notify the sender >>> immediately and destroy all copies of this message and any >> attachments. >>> >>> WARNING: Computer viruses can be transmitted via email. The recipient >>> should check this email and any attachments for the presence of >> viruses. >>> The company accepts no liability for any damage caused by any virus >>> transmitted by this email. >>> >>> www.wipro.com >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Conception-Problem-about-Service-Consumer-tf397782 >> 2s12049.html#a11321720 >> Sent from the ServiceMix - User mailing list archive at Nabble.com. >> >> >> >> The information contained in this electronic message and any attachments >> to this message are intended for the exclusive use of the addressee(s) >> and may contain proprietary, confidential or privileged information. If >> you are not the intended recipient, you should not disseminate, >> distribute or copy this e-mail. Please notify the sender immediately and >> destroy all copies of this message and any attachments. >> >> WARNING: Computer viruses can be transmitted via email. The recipient >> should check this email and any attachments for the presence of viruses. >> The company accepts no liability for any damage caused by any virus >> transmitted by this email. >> >> www.wipro.com >> >> > > -- View this message in context: http://www.nabble.com/Conception-Problem-about-Service-Consumer-tf3977822s12049.html#a11324111 Sent from the ServiceMix - User mailing list archive at Nabble.com.
