You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Mukesh Mediratta <me...@mail.nih.gov> on 2006/08/14 21:37:20 UTC

Maven Archetypes

I am trying to build my first application on ServiceMix.

I would like to know what maven archetypes are available for servicemix and
how to use them.

Thanks
Mukesh Mediratta
-- 
View this message in context: http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5802812
Sent from the ServiceMix - User forum at Nabble.com.


Re: Maven Archetypes

Posted by Mukesh Mediratta <me...@mail.nih.gov>.
Hi Philip,

I have created a Service Assembly using this tutorial.

It creates problems when I try to install it within Eclipse Tooling..
However it is OK and shows running when I install it directly in Fuse
HotDeploy folder. The console shows assembly deployed and running.

Any ideas why is this happening ? Are there any knows bugs in the Eclipse
tooling and patches etc.


Thanks
Mukesh Mediratta



Mukesh Mediratta wrote:
> 
> This has solved the problem.
> 
> Thanks a lot Philip.
> 
> Mukesh Mediratta
> 
> 
> Philip Dodds-2 wrote:
>> 
>> I blieve the problem is the service name trying changing it to
>> 
>> <wsdl:service name="RoutingAndWorkFlowService">
>> 		<wsdl:port name="RoutingAndWorkflowServiceSoapPort"
>> 			binding="ws:RoutingAndWorkflowServiceSoapBinding">
>> 			<soap:address
>> 				location="http://localhost:8080/caxchange/routingandworkflow" />
>> 		</wsdl:port>
>> 	</wsdl:service>
>> 
>> P
>> 
>> On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>>>
>>> http://rifers.org/paste/show/1522
>>>
>>> No probs
>>>
>>>
>>>
>>> Philip Dodds-2 wrote:
>>> >
>>> > It appears that the pastebin is down :(
>>> >
>>> > Can you try http://rifers.org/paste/
>>> >
>>> > Sorry
>>> >
>>> > P
>>> >
>>> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>>> >>
>>> >> http://pastebin.com/771396
>>> >>
>>> >> or http://nci.pastebin.com/771401
>>> >>
>>> >>
>>> >>
>>> >> Philip Dodds-2 wrote:
>>> >> >
>>> >> > You could just pastebin the wsdl and send the link
>>> >> >
>>> >> > http://pastebin.com/
>>> >> >
>>> >> > P
>>> >> >
>>> >> >
>>> >> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>>> >> >>
>>> >> >> I tried uploading the file and get an exception
>>> >> >>
>>> >> >> /home/nabble/nabble/user-files/111792/service.wsdl ( no such file
>>> or
>>> >> >> directory)..
>>> >> >>
>>> >> >> Is there any other way I can send the file.
>>> >> >>
>>> >> >> Thanks
>>> >> >> Mukesh Mediratta
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >> Philip Dodds-2 wrote:
>>> >> >> >
>>> >> >> > Can you send the wsdl that you are trying to generate?
>>> >> >> >
>>> >> >> > P
>>> >> >> >
>>> >> >> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>>> >> >> >>
>>> >> >> >> I had gone ahead and deleted entire project from my workspace
>>> and
>>> >> >> >> recreated..
>>> >> >> >> This time I just copied contents of my wsdl file to
>>> service.wsdl.
>>> >> >> >>
>>> >> >> >> Generated sources and got exceptions..
>>> >> >> >>
>>> >> >> >> Based on your suggestion I did mvn clean and then generated
>>> sources
>>> >> >> >> again..
>>> >> >> >> and got exceptions again as follows:
>>> >> >> >>
>>> >> >> >> I see some classes generated under /ws/common and
>>> >> /ws/routingandflow
>>> >> >> but
>>> >> >> >> not
>>> >> >> >> the classes under /ws
>>> >> >> >>
>>> >> >> >> Thanks
>>> >> >> >> Mukesh
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> [INFO]
>>> >> >> >>
>>> >> >>
>>> >>
>>> ----------------------------------------------------------------------------
>>> >> >> >> [INFO] Building An example JSR-181 Service Unit
>>> >> >> >> [INFO]    task-segment: [generate-sources]
>>> >> >> >> [INFO]
>>> >> >> >>
>>> >> >>
>>> >>
>>> ----------------------------------------------------------------------------
>>> >> >> >> [WARN] Unable to get resource from repository apache.snapshots
>>> >> >> >> (http://cvs.apache.org/maven-snapshot-repository)
>>> >> >> >> [WARN] Unable to get resource from repository
>>> logicblaze.snapshots
>>> >> >> >> (http://repo.logicblaze.com/maven2-all)
>>> >> >> >> [WARN] Unable to get resource from repository central
>>> >> >> >> (http://repo1.maven.org/maven2)
>>> >> >> >> [WARN] Unable to get resource from repository apache.snapshots
>>> >> >> >> (http://cvs.apache.org/maven-snapshot-repository)
>>> >> >> >> [WARN] Unable to get resource from repository
>>> logicblaze.snapshots
>>> >> >> >> (http://repo.logicblaze.com/maven2-all)
>>> >> >> >> [WARN] Unable to get resource from repository central
>>> >> >> >> (http://repo1.maven.org/maven2)
>>> >> >> >> [WARN] Unable to get resource from repository apache.snapshots
>>> >> >> >> (http://cvs.apache.org/maven-snapshot-repository)
>>> >> >> >> [WARN] Unable to get resource from repository
>>> logicblaze.snapshots
>>> >> >> >> (http://repo.logicblaze.com/maven2-all)
>>> >> >> >> [WARN] Unable to get resource from repository central
>>> >> >> >> (http://repo1.maven.org/maven2)
>>> >> >> >> [WARN]
>>> >> >> >>         Artifact ant:ant:jar:1.6.5:runtime retains local scope
>>> >> >> 'runtime'
>>> >> >> >> overriding
>>> >> >> >> broader scope 'compile'
>>> >> >> >>         given by a dependency. If this is not intended, modify
>>> or
>>> >> >> remove
>>> >> >> >> the local
>>> >> >> >> scope.
>>> >> >> >>
>>> >> >> >> Aug 18, 2006 1:14:11 PM org.codehaus.xfire.gen.Wsdl11Generator
>>> >> >> generate
>>> >> >> >> INFO: Generating code for WSDL at
>>> >> >> >> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl with a base
>>> URI
>>> >> of
>>> >> >> >> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl
>>> >> >> >> Aug 18, 2006 1:14:13 PM
>>> >> org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl
>>> >> >> >> warning
>>> >> >> >> SEVERE: Error generating JAXB classes: src-resolve.4.2: Error
>>> >> >> resolving
>>> >> >> >> component 'common:Credentials'. It was detected that
>>> >> >> 'common:Credentials'
>>> >> >> >> is
>>> >> >> >> in namespace 'http://caxchange.nci.nih.gov/ws/common', but
>>> >> components
>>> >> >> >> from
>>> >> >> >> this namespace are not referenceable from schema document
>>> >> >> >>
>>> >> 'file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2'.
>>> >> >> If
>>> >> >> >> this
>>> >> >> >> is the incorrect namespace, perhaps the prefix of
>>> >> 'common:Credentials'
>>> >> >> >> needs
>>> >> >> >> to be changed. If this is the correct namespace, then an
>>> >> appropriate
>>> >> >> >> 'import' tag should be added to
>>> >> >> >>
>>> >> 'file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2'.
>>> >> >> at
>>> >> >> >> -1,-1 in
>>> >> >> >>
>>> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2
>>> >> >> >> [INFO] antrun:run {execution: default}
>>> >> >> >> [INFO] Executing tasks
>>> >> >> >> gov\nih\nci\caxchange\ws\common\Credentials.java
>>> >> >> >> gov\nih\nci\caxchange\ws\common\ErrorCodes.java
>>> >> >> >> gov\nih\nci\caxchange\ws\common\ErrorDetails.java
>>> >> >> >> gov\nih\nci\caxchange\ws\common\ObjectFactory.java
>>> >> >> >> gov\nih\nci\caxchange\ws\common\package-info.java
>>> >> >> >>
>>> gov\nih\nci\caxchange\ws\routingandworkflow\Acknowledgement.java
>>> >> >> >>
>>> >> >>
>>> >>
>>> gov\nih\nci\caxchange\ws\routingandworkflow\AcknowledgementStatuses.java
>>> >> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\KnownTypes.java
>>> >> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\MessagePayload.java
>>> >> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\ObjectFactory.java
>>> >> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\PayloadTypes.java
>>> >> >> >>
>>> >> >>
>>> >>
>>> gov\nih\nci\caxchange\ws\routingandworkflow\ProcessingInstructions.java
>>> >> >> >>
>>> >> >>
>>> >>
>>> gov\nih\nci\caxchange\ws\routingandworkflow\RoutingAndWorkflowRequest.java
>>> >> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\Workflow.java
>>> >> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\package-info.java
>>> >> >> >> Aug 18, 2006 1:14:16 PM
>>> >> >> >> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
>>> >> >> >> INFO: Creating class
>>> >> >> gov.nih.nci.caxchange.ws.RoutingAndWorkflowService
>>> >> >> >> Aug 18, 2006 1:14:16 PM
>>> >> >> >> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
>>> >> >> >> INFO: Creating class
>>> >> gov.nih.nci.caxchange.ws.RoutingAndWorkFlowImpl
>>> >> >> >> [ERROR] mojo-execute : antrun:run {execution: default}
>>> >> >> >> Diagnosis: Error executing ant tasks
>>> >> >> >> FATAL ERROR: Error executing Maven for a project
>>> >> >> >> [ERROR] project-execute :
>>> >> >> >> com.mycompany:caxsvc:jbi-service-unit:1.0-SNAPSHOT
>>> >> >> >> (  task-segment: [generate-sources] )
>>> >> >> >> Diagnosis: Error executing ant tasks
>>> >> >> >> FATAL ERROR: Error executing Maven for a project
>>> >> >> >> org.apache.maven.lifecycle.LifecycleExecutionException: Error
>>> >> >> executing
>>> >> >> >> ant
>>> >> >> >> tasks
>>> >> >> >>         at
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
>>> >> >> >>         at
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
>>> >> >> >>         at
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
>>> >> >> >>         at
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
>>> >> >> >>         at
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>>> >> >> >>         at
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
>>> >> >> >>         at
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
>>> >> >> >>         at
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
>>> >> >> >>         at
>>> >> >> >>
>>> org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
>>> >> >> >> Caused by: org.apache.maven.plugin.MojoExecutionException:
>>> Error
>>> >> >> >> executing
>>> >> >> >> ant tasks
>>> >> >> >>         at
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:109)
>>> >> >> >>         at
>>> >> >> >>
>>> >> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
>>> >> >> >>         at
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
>>> >> >> >>         at
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>>> >> >> >>         ... 8 more
>>> >> >> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>>> >> >> >>         at
>>> >> org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:44)
>>> >> >> >>         at
>>> >> >> >>
>>> >> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>> >> >> >>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>> >> >> >>         at org.apache.tools.ant.Target.execute(Target.java:341)
>>> >> >> >>         at
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:99)
>>> >> >> >>         ... 11 more
>>> >> >> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>>> >> >> >>         at com.sun.codemodel.JPackage._class(JPackage.java:188)
>>> >> >> >>         at
>>> com.sun.codemodel.JCodeModel._class(JCodeModel.java:178)
>>> >> >> >>         at
>>> com.sun.codemodel.JCodeModel._class(JCodeModel.java:154)
>>> >> >> >>         at
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:68)
>>> >> >> >>         at
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:53)
>>> >> >> >>         at
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:126)
>>> >> >> >>         at
>>> >> org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:40)
>>> >> >> >>         ... 15 more
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> Philip Dodds-2 wrote:
>>> >> >> >> >
>>> >> >> >> > Can you try and mvn clean on the project and then try again?
>>> >> >> >> >
>>> >> >> >> > Thanks
>>> >> >> >> >
>>> >> >> >> > Philip
>>> >> >> >> >
>>> >> >> >> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>>> >> >> >> >>
>>> >> >> >> >> Thanks Philip,
>>> >> >> >> >>
>>> >> >> >> >> I made the change and got exceptions this time.. If you
>>> would
>>> >> like
>>> >> >> to
>>> >> >> >> try
>>> >> >> >> >> this at your end may be I can send you the wsdl itself.
>>> >> >> >> >>
>>> >> >> >> >> [ERROR] mojo-execute : antrun:run {execution: default}
>>> >> >> >> >> Diagnosis: Error executing ant tasks
>>> >> >> >> >> FATAL ERROR: Error executing Maven for a project
>>> >> >> >> >> [ERROR] project-execute :
>>> >> >> >> >> com.mycompany:caxsvc:jbi-service-unit:1.0-SNAPSHOT
>>> >> >> >> >> (  task-segment: [generate-sources] )
>>> >> >> >> >> Diagnosis: Error executing ant tasks
>>> >> >> >> >> FATAL ERROR: Error executing Maven for a project
>>> >> >> >> >> org.apache.maven.lifecycle.LifecycleExecutionException:
>>> Error
>>> >> >> >> executing
>>> >> >> >> >> ant
>>> >> >> >> >> tasks
>>> >> >> >> >>         at
>>> >> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
>>> >> >> >> >>         at
>>> >> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
>>> >> >> >> >>         at
>>> >> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
>>> >> >> >> >>         at
>>> >> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
>>> >> >> >> >>         at
>>> >> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>>> >> >> >> >>         at
>>> >> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
>>> >> >> >> >>         at
>>> >> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
>>> >> >> >> >>         at
>>> >> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
>>> >> >> >> >>         at
>>> >> >> >> >>
>>> >> org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
>>> >> >> >> >> Caused by: org.apache.maven.plugin.MojoExecutionException:
>>> Error
>>> >> >> >> >> executing
>>> >> >> >> >> ant tasks
>>> >> >> >> >>         at
>>> >> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:109)
>>> >> >> >> >>         at
>>> >> >> >> >>
>>> >> >>
>>> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
>>> >> >> >> >>         at
>>> >> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
>>> >> >> >> >>         at
>>> >> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>>> >> >> >> >>         ... 8 more
>>> >> >> >> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>>> >> >> >> >>         at
>>> >> >> org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:44)
>>> >> >> >> >>         at
>>> >> >> >> >>
>>> >> >>
>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>> >> >> >> >>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>> >> >> >> >>         at
>>> org.apache.tools.ant.Target.execute(Target.java:341)
>>> >> >> >> >>         at
>>> >> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:99)
>>> >> >> >> >>         ... 11 more
>>> >> >> >> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>>> >> >> >> >>         at
>>> com.sun.codemodel.JPackage._class(JPackage.java:188)
>>> >> >> >> >>         at
>>> >> com.sun.codemodel.JCodeModel._class(JCodeModel.java:178)
>>> >> >> >> >>         at
>>> >> com.sun.codemodel.JCodeModel._class(JCodeModel.java:154)
>>> >> >> >> >>         at
>>> >> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:68)
>>> >> >> >> >>         at
>>> >> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:53)
>>> >> >> >> >>         at
>>> >> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:126)
>>> >> >> >> >>         at
>>> >> >> org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:40)
>>> >> >> >> >>         ... 15 more
>>> >> >> >> >>
>>> >> >> >> >>
>>> >> >> >> >>
>>> >> >> >> >> Philip Dodds-2 wrote:
>>> >> >> >> >> >
>>> >> >> >> >> > In the pom.xml I believe it explicitly names the
>>> service.wsdl
>>> >> in
>>> >> >> teh
>>> >> >> >> >> > plugin section you might want to change this to be your
>>> new
>>> >> WSDL
>>> >> >> >> file.
>>> >> >> >> >> >
>>> >> >> >> >> > P
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov>
>>> wrote:
>>> >> >> >> >> >>
>>> >> >> >> >> >> Hi Bruce,
>>> >> >> >> >> >>
>>> >> >> >> >> >> Thanks for the response..
>>> >> >> >> >> >>
>>> >> >> >> >> >> I had already tried the tutorial we went thru in LA.. it
>>> >> works
>>> >> >> as
>>> >> >> >> it
>>> >> >> >> >> is..
>>> >> >> >> >> >> however when I tried to follow steps using our own wsdl..
>>> it
>>> >> >> went
>>> >> >> >> thru
>>> >> >> >> >> >> and
>>> >> >> >> >> >> gave me build successful.. however did not generate any
>>> >> >> classes..
>>> >> >> >> >> >>
>>> >> >> >> >> >> I had gone and changed the /src/main/resources/xbean.xml
>>> >> >> >> wsdlResource
>>> >> >> >> >> to
>>> >> >> >> >> >> have my file name rather than the standard service.wsdl.
>>> >> >> >> >> >>
>>> >> >> >> >> >> Not sure where is the issue.. This WSDL has been tested
>>> OK
>>> >> and I
>>> >> >> >> have
>>> >> >> >> >> >> been
>>> >> >> >> >> >> able to generate client and server stus using Eclipse
>>> plugin
>>> >> for
>>> >> >> >> Xfire
>>> >> >> >> >> I
>>> >> >> >> >> >> got
>>> >> >> >> >> >> from Xfire website..
>>> >> >> >> >> >>
>>> >> >> >> >> >>
>>> >> >> >> >> >> Please help.
>>> >> >> >> >> >>
>>> >> >> >> >> >> Thanks
>>> >> >> >> >> >> Mukesh
>>> >> >> >> >> >>
>>> >> >> >> >> >> bsnyder wrote:
>>> >> >> >> >> >> >
>>> >> >> >> >> >> > On 8/17/06, Mukesh Mediratta <me...@mail.nih.gov>
>>> wrote:
>>> >> >> >> >> >> >>
>>> >> >> >> >> >> >> I want to develop a Webservice based on WSDL and host
>>> it
>>> >> on
>>> >> >> >> >> >> Servicemix.
>>> >> >> >> >> >> >>
>>> >> >> >> >> >> >> I understand there is JSR 181 Archetype in Maven.. How
>>> >> could
>>> >> >> we
>>> >> >> >> use
>>> >> >> >> >> it
>>> >> >> >> >> >> >> for
>>> >> >> >> >> >> >> the same.
>>> >> >> >> >> >> >
>>> >> >> >> >> >> > Mukesh, there's some docs on the servicemix-jsr181
>>> >> component
>>> >> >> >> here:
>>> >> >> >> >> >> >
>>> >> >> >> >> >> > http://servicemix.org/site/servicemix-jsr181.html
>>> >> >> >> >> >> >
>>> >> >> >> >> >> > Also, this is actually what we went over in L.A.
>>> together
>>> >> WRT
>>> >> >> >> FUSE.
>>> >> >> >> >> >> > There is a walkthrough of this using the ServiceMix
>>> tooling
>>> >> >> here:
>>> >> >> >> >> >> >
>>> >> >> >> >> >> > http://devzone.logicblaze.com/site/how-tos.html
>>> >> >> >> >> >> >
>>> >> >> >> >> >> > It's titled, 'Creating Contract First Web Services in
>>> >> FUSE'.
>>> >> >> >> >> >> >
>>> >> >> >> >> >> > Bruce
>>> >> >> >> >> >> > --
>>> >> >> >> >> >> > perl -e 'print
>>> >> >> >> >> >> >
>>> >> >> >>
>>> >> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>>> >> >> >> >> >> > );'
>>> >> >> >> >> >> >
>>> >> >> >> >> >> > Apache Geronimo - http://geronimo.apache.org/
>>> >> >> >> >> >> > Apache ActiveMQ - http://incubator.apache.org/activemq/
>>> >> >> >> >> >> > Apache ServiceMix -
>>> http://incubator.apache.org/servicemix/
>>> >> >> >> >> >> > Castor - http://castor.org/
>>> >> >> >> >> >> >
>>> >> >> >> >> >> >
>>> >> >> >> >> >>
>>> >> >> >> >> >> --
>>> >> >> >> >> >> View this message in context:
>>> >> >> >> >> >>
>>> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873283
>>> >> >> >> >> >> Sent from the ServiceMix - User forum at Nabble.com.
>>> >> >> >> >> >>
>>> >> >> >> >> >>
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >>
>>> >> >> >> >> --
>>> >> >> >> >> View this message in context:
>>> >> >> >> >>
>>> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873536
>>> >> >> >> >> Sent from the ServiceMix - User forum at Nabble.com.
>>> >> >> >> >>
>>> >> >> >> >>
>>> >> >> >> >
>>> >> >> >> >
>>> >> >> >>
>>> >> >> >> --
>>> >> >> >> View this message in context:
>>> >> >> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873941
>>> >> >> >> Sent from the ServiceMix - User forum at Nabble.com.
>>> >> >> >>
>>> >> >> >>
>>> >> >> >
>>> >> >> >
>>> >> >>
>>> >> >> --
>>> >> >> View this message in context:
>>> >> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5874092
>>> >> >> Sent from the ServiceMix - User forum at Nabble.com.
>>> >> >>
>>> >> >>
>>> >> >
>>> >> >
>>> >>
>>> >> --
>>> >> View this message in context:
>>> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5874482
>>> >> Sent from the ServiceMix - User forum at Nabble.com.
>>> >>
>>> >>
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5874901
>>> Sent from the ServiceMix - User forum at Nabble.com.
>>>
>>>
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5927580
Sent from the ServiceMix - User forum at Nabble.com.


Re: Maven Archetypes

Posted by Mukesh Mediratta <me...@mail.nih.gov>.
This has solved the problem.

Thanks a lot Philip.

Mukesh Mediratta


Philip Dodds-2 wrote:
> 
> I blieve the problem is the service name trying changing it to
> 
> <wsdl:service name="RoutingAndWorkFlowService">
> 		<wsdl:port name="RoutingAndWorkflowServiceSoapPort"
> 			binding="ws:RoutingAndWorkflowServiceSoapBinding">
> 			<soap:address
> 				location="http://localhost:8080/caxchange/routingandworkflow" />
> 		</wsdl:port>
> 	</wsdl:service>
> 
> P
> 
> On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>>
>> http://rifers.org/paste/show/1522
>>
>> No probs
>>
>>
>>
>> Philip Dodds-2 wrote:
>> >
>> > It appears that the pastebin is down :(
>> >
>> > Can you try http://rifers.org/paste/
>> >
>> > Sorry
>> >
>> > P
>> >
>> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>> >>
>> >> http://pastebin.com/771396
>> >>
>> >> or http://nci.pastebin.com/771401
>> >>
>> >>
>> >>
>> >> Philip Dodds-2 wrote:
>> >> >
>> >> > You could just pastebin the wsdl and send the link
>> >> >
>> >> > http://pastebin.com/
>> >> >
>> >> > P
>> >> >
>> >> >
>> >> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>> >> >>
>> >> >> I tried uploading the file and get an exception
>> >> >>
>> >> >> /home/nabble/nabble/user-files/111792/service.wsdl ( no such file
>> or
>> >> >> directory)..
>> >> >>
>> >> >> Is there any other way I can send the file.
>> >> >>
>> >> >> Thanks
>> >> >> Mukesh Mediratta
>> >> >>
>> >> >>
>> >> >>
>> >> >> Philip Dodds-2 wrote:
>> >> >> >
>> >> >> > Can you send the wsdl that you are trying to generate?
>> >> >> >
>> >> >> > P
>> >> >> >
>> >> >> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>> >> >> >>
>> >> >> >> I had gone ahead and deleted entire project from my workspace
>> and
>> >> >> >> recreated..
>> >> >> >> This time I just copied contents of my wsdl file to
>> service.wsdl.
>> >> >> >>
>> >> >> >> Generated sources and got exceptions..
>> >> >> >>
>> >> >> >> Based on your suggestion I did mvn clean and then generated
>> sources
>> >> >> >> again..
>> >> >> >> and got exceptions again as follows:
>> >> >> >>
>> >> >> >> I see some classes generated under /ws/common and
>> >> /ws/routingandflow
>> >> >> but
>> >> >> >> not
>> >> >> >> the classes under /ws
>> >> >> >>
>> >> >> >> Thanks
>> >> >> >> Mukesh
>> >> >> >>
>> >> >> >>
>> >> >> >> [INFO]
>> >> >> >>
>> >> >>
>> >>
>> ----------------------------------------------------------------------------
>> >> >> >> [INFO] Building An example JSR-181 Service Unit
>> >> >> >> [INFO]    task-segment: [generate-sources]
>> >> >> >> [INFO]
>> >> >> >>
>> >> >>
>> >>
>> ----------------------------------------------------------------------------
>> >> >> >> [WARN] Unable to get resource from repository apache.snapshots
>> >> >> >> (http://cvs.apache.org/maven-snapshot-repository)
>> >> >> >> [WARN] Unable to get resource from repository
>> logicblaze.snapshots
>> >> >> >> (http://repo.logicblaze.com/maven2-all)
>> >> >> >> [WARN] Unable to get resource from repository central
>> >> >> >> (http://repo1.maven.org/maven2)
>> >> >> >> [WARN] Unable to get resource from repository apache.snapshots
>> >> >> >> (http://cvs.apache.org/maven-snapshot-repository)
>> >> >> >> [WARN] Unable to get resource from repository
>> logicblaze.snapshots
>> >> >> >> (http://repo.logicblaze.com/maven2-all)
>> >> >> >> [WARN] Unable to get resource from repository central
>> >> >> >> (http://repo1.maven.org/maven2)
>> >> >> >> [WARN] Unable to get resource from repository apache.snapshots
>> >> >> >> (http://cvs.apache.org/maven-snapshot-repository)
>> >> >> >> [WARN] Unable to get resource from repository
>> logicblaze.snapshots
>> >> >> >> (http://repo.logicblaze.com/maven2-all)
>> >> >> >> [WARN] Unable to get resource from repository central
>> >> >> >> (http://repo1.maven.org/maven2)
>> >> >> >> [WARN]
>> >> >> >>         Artifact ant:ant:jar:1.6.5:runtime retains local scope
>> >> >> 'runtime'
>> >> >> >> overriding
>> >> >> >> broader scope 'compile'
>> >> >> >>         given by a dependency. If this is not intended, modify
>> or
>> >> >> remove
>> >> >> >> the local
>> >> >> >> scope.
>> >> >> >>
>> >> >> >> Aug 18, 2006 1:14:11 PM org.codehaus.xfire.gen.Wsdl11Generator
>> >> >> generate
>> >> >> >> INFO: Generating code for WSDL at
>> >> >> >> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl with a base
>> URI
>> >> of
>> >> >> >> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl
>> >> >> >> Aug 18, 2006 1:14:13 PM
>> >> org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl
>> >> >> >> warning
>> >> >> >> SEVERE: Error generating JAXB classes: src-resolve.4.2: Error
>> >> >> resolving
>> >> >> >> component 'common:Credentials'. It was detected that
>> >> >> 'common:Credentials'
>> >> >> >> is
>> >> >> >> in namespace 'http://caxchange.nci.nih.gov/ws/common', but
>> >> components
>> >> >> >> from
>> >> >> >> this namespace are not referenceable from schema document
>> >> >> >>
>> >> 'file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2'.
>> >> >> If
>> >> >> >> this
>> >> >> >> is the incorrect namespace, perhaps the prefix of
>> >> 'common:Credentials'
>> >> >> >> needs
>> >> >> >> to be changed. If this is the correct namespace, then an
>> >> appropriate
>> >> >> >> 'import' tag should be added to
>> >> >> >>
>> >> 'file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2'.
>> >> >> at
>> >> >> >> -1,-1 in
>> >> >> >>
>> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2
>> >> >> >> [INFO] antrun:run {execution: default}
>> >> >> >> [INFO] Executing tasks
>> >> >> >> gov\nih\nci\caxchange\ws\common\Credentials.java
>> >> >> >> gov\nih\nci\caxchange\ws\common\ErrorCodes.java
>> >> >> >> gov\nih\nci\caxchange\ws\common\ErrorDetails.java
>> >> >> >> gov\nih\nci\caxchange\ws\common\ObjectFactory.java
>> >> >> >> gov\nih\nci\caxchange\ws\common\package-info.java
>> >> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\Acknowledgement.java
>> >> >> >>
>> >> >>
>> >>
>> gov\nih\nci\caxchange\ws\routingandworkflow\AcknowledgementStatuses.java
>> >> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\KnownTypes.java
>> >> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\MessagePayload.java
>> >> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\ObjectFactory.java
>> >> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\PayloadTypes.java
>> >> >> >>
>> >> >>
>> >>
>> gov\nih\nci\caxchange\ws\routingandworkflow\ProcessingInstructions.java
>> >> >> >>
>> >> >>
>> >>
>> gov\nih\nci\caxchange\ws\routingandworkflow\RoutingAndWorkflowRequest.java
>> >> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\Workflow.java
>> >> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\package-info.java
>> >> >> >> Aug 18, 2006 1:14:16 PM
>> >> >> >> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
>> >> >> >> INFO: Creating class
>> >> >> gov.nih.nci.caxchange.ws.RoutingAndWorkflowService
>> >> >> >> Aug 18, 2006 1:14:16 PM
>> >> >> >> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
>> >> >> >> INFO: Creating class
>> >> gov.nih.nci.caxchange.ws.RoutingAndWorkFlowImpl
>> >> >> >> [ERROR] mojo-execute : antrun:run {execution: default}
>> >> >> >> Diagnosis: Error executing ant tasks
>> >> >> >> FATAL ERROR: Error executing Maven for a project
>> >> >> >> [ERROR] project-execute :
>> >> >> >> com.mycompany:caxsvc:jbi-service-unit:1.0-SNAPSHOT
>> >> >> >> (  task-segment: [generate-sources] )
>> >> >> >> Diagnosis: Error executing ant tasks
>> >> >> >> FATAL ERROR: Error executing Maven for a project
>> >> >> >> org.apache.maven.lifecycle.LifecycleExecutionException: Error
>> >> >> executing
>> >> >> >> ant
>> >> >> >> tasks
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
>> >> >> >>         at
>> >> >> >>
>> org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
>> >> >> >> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
>> >> >> >> executing
>> >> >> >> ant tasks
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:109)
>> >> >> >>         at
>> >> >> >>
>> >> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>> >> >> >>         ... 8 more
>> >> >> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>> >> >> >>         at
>> >> org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:44)
>> >> >> >>         at
>> >> >> >>
>> >> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>> >> >> >>         at org.apache.tools.ant.Task.perform(Task.java:364)
>> >> >> >>         at org.apache.tools.ant.Target.execute(Target.java:341)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:99)
>> >> >> >>         ... 11 more
>> >> >> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>> >> >> >>         at com.sun.codemodel.JPackage._class(JPackage.java:188)
>> >> >> >>         at
>> com.sun.codemodel.JCodeModel._class(JCodeModel.java:178)
>> >> >> >>         at
>> com.sun.codemodel.JCodeModel._class(JCodeModel.java:154)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:68)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:53)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:126)
>> >> >> >>         at
>> >> org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:40)
>> >> >> >>         ... 15 more
>> >> >> >>
>> >> >> >>
>> >> >> >> Philip Dodds-2 wrote:
>> >> >> >> >
>> >> >> >> > Can you try and mvn clean on the project and then try again?
>> >> >> >> >
>> >> >> >> > Thanks
>> >> >> >> >
>> >> >> >> > Philip
>> >> >> >> >
>> >> >> >> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>> >> >> >> >>
>> >> >> >> >> Thanks Philip,
>> >> >> >> >>
>> >> >> >> >> I made the change and got exceptions this time.. If you would
>> >> like
>> >> >> to
>> >> >> >> try
>> >> >> >> >> this at your end may be I can send you the wsdl itself.
>> >> >> >> >>
>> >> >> >> >> [ERROR] mojo-execute : antrun:run {execution: default}
>> >> >> >> >> Diagnosis: Error executing ant tasks
>> >> >> >> >> FATAL ERROR: Error executing Maven for a project
>> >> >> >> >> [ERROR] project-execute :
>> >> >> >> >> com.mycompany:caxsvc:jbi-service-unit:1.0-SNAPSHOT
>> >> >> >> >> (  task-segment: [generate-sources] )
>> >> >> >> >> Diagnosis: Error executing ant tasks
>> >> >> >> >> FATAL ERROR: Error executing Maven for a project
>> >> >> >> >> org.apache.maven.lifecycle.LifecycleExecutionException: Error
>> >> >> >> executing
>> >> >> >> >> ant
>> >> >> >> >> tasks
>> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
>> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
>> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
>> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
>> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
>> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
>> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
>> >> >> >> >>         at
>> >> >> >> >>
>> >> org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
>> >> >> >> >> Caused by: org.apache.maven.plugin.MojoExecutionException:
>> Error
>> >> >> >> >> executing
>> >> >> >> >> ant tasks
>> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:109)
>> >> >> >> >>         at
>> >> >> >> >>
>> >> >>
>> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
>> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
>> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>> >> >> >> >>         ... 8 more
>> >> >> >> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>> >> >> >> >>         at
>> >> >> org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:44)
>> >> >> >> >>         at
>> >> >> >> >>
>> >> >>
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>> >> >> >> >>         at org.apache.tools.ant.Task.perform(Task.java:364)
>> >> >> >> >>         at
>> org.apache.tools.ant.Target.execute(Target.java:341)
>> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:99)
>> >> >> >> >>         ... 11 more
>> >> >> >> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>> >> >> >> >>         at
>> com.sun.codemodel.JPackage._class(JPackage.java:188)
>> >> >> >> >>         at
>> >> com.sun.codemodel.JCodeModel._class(JCodeModel.java:178)
>> >> >> >> >>         at
>> >> com.sun.codemodel.JCodeModel._class(JCodeModel.java:154)
>> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:68)
>> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:53)
>> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:126)
>> >> >> >> >>         at
>> >> >> org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:40)
>> >> >> >> >>         ... 15 more
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> Philip Dodds-2 wrote:
>> >> >> >> >> >
>> >> >> >> >> > In the pom.xml I believe it explicitly names the
>> service.wsdl
>> >> in
>> >> >> teh
>> >> >> >> >> > plugin section you might want to change this to be your new
>> >> WSDL
>> >> >> >> file.
>> >> >> >> >> >
>> >> >> >> >> > P
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>> >> >> >> >> >>
>> >> >> >> >> >> Hi Bruce,
>> >> >> >> >> >>
>> >> >> >> >> >> Thanks for the response..
>> >> >> >> >> >>
>> >> >> >> >> >> I had already tried the tutorial we went thru in LA.. it
>> >> works
>> >> >> as
>> >> >> >> it
>> >> >> >> >> is..
>> >> >> >> >> >> however when I tried to follow steps using our own wsdl..
>> it
>> >> >> went
>> >> >> >> thru
>> >> >> >> >> >> and
>> >> >> >> >> >> gave me build successful.. however did not generate any
>> >> >> classes..
>> >> >> >> >> >>
>> >> >> >> >> >> I had gone and changed the /src/main/resources/xbean.xml
>> >> >> >> wsdlResource
>> >> >> >> >> to
>> >> >> >> >> >> have my file name rather than the standard service.wsdl.
>> >> >> >> >> >>
>> >> >> >> >> >> Not sure where is the issue.. This WSDL has been tested OK
>> >> and I
>> >> >> >> have
>> >> >> >> >> >> been
>> >> >> >> >> >> able to generate client and server stus using Eclipse
>> plugin
>> >> for
>> >> >> >> Xfire
>> >> >> >> >> I
>> >> >> >> >> >> got
>> >> >> >> >> >> from Xfire website..
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >> Please help.
>> >> >> >> >> >>
>> >> >> >> >> >> Thanks
>> >> >> >> >> >> Mukesh
>> >> >> >> >> >>
>> >> >> >> >> >> bsnyder wrote:
>> >> >> >> >> >> >
>> >> >> >> >> >> > On 8/17/06, Mukesh Mediratta <me...@mail.nih.gov>
>> wrote:
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> I want to develop a Webservice based on WSDL and host
>> it
>> >> on
>> >> >> >> >> >> Servicemix.
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> I understand there is JSR 181 Archetype in Maven.. How
>> >> could
>> >> >> we
>> >> >> >> use
>> >> >> >> >> it
>> >> >> >> >> >> >> for
>> >> >> >> >> >> >> the same.
>> >> >> >> >> >> >
>> >> >> >> >> >> > Mukesh, there's some docs on the servicemix-jsr181
>> >> component
>> >> >> >> here:
>> >> >> >> >> >> >
>> >> >> >> >> >> > http://servicemix.org/site/servicemix-jsr181.html
>> >> >> >> >> >> >
>> >> >> >> >> >> > Also, this is actually what we went over in L.A.
>> together
>> >> WRT
>> >> >> >> FUSE.
>> >> >> >> >> >> > There is a walkthrough of this using the ServiceMix
>> tooling
>> >> >> here:
>> >> >> >> >> >> >
>> >> >> >> >> >> > http://devzone.logicblaze.com/site/how-tos.html
>> >> >> >> >> >> >
>> >> >> >> >> >> > It's titled, 'Creating Contract First Web Services in
>> >> FUSE'.
>> >> >> >> >> >> >
>> >> >> >> >> >> > Bruce
>> >> >> >> >> >> > --
>> >> >> >> >> >> > perl -e 'print
>> >> >> >> >> >> >
>> >> >> >>
>> >> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>> >> >> >> >> >> > );'
>> >> >> >> >> >> >
>> >> >> >> >> >> > Apache Geronimo - http://geronimo.apache.org/
>> >> >> >> >> >> > Apache ActiveMQ - http://incubator.apache.org/activemq/
>> >> >> >> >> >> > Apache ServiceMix -
>> http://incubator.apache.org/servicemix/
>> >> >> >> >> >> > Castor - http://castor.org/
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >>
>> >> >> >> >> >> --
>> >> >> >> >> >> View this message in context:
>> >> >> >> >> >>
>> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873283
>> >> >> >> >> >> Sent from the ServiceMix - User forum at Nabble.com.
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >>
>> >> >> >> >> --
>> >> >> >> >> View this message in context:
>> >> >> >> >>
>> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873536
>> >> >> >> >> Sent from the ServiceMix - User forum at Nabble.com.
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >> --
>> >> >> >> View this message in context:
>> >> >> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873941
>> >> >> >> Sent from the ServiceMix - User forum at Nabble.com.
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5874092
>> >> >> Sent from the ServiceMix - User forum at Nabble.com.
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5874482
>> >> Sent from the ServiceMix - User forum at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5874901
>> Sent from the ServiceMix - User forum at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5876401
Sent from the ServiceMix - User forum at Nabble.com.


Re: Maven Archetypes

Posted by Philip Dodds <ph...@gmail.com>.
I blieve the problem is the service name trying changing it to

<wsdl:service name="RoutingAndWorkFlowService">
		<wsdl:port name="RoutingAndWorkflowServiceSoapPort"
			binding="ws:RoutingAndWorkflowServiceSoapBinding">
			<soap:address
				location="http://localhost:8080/caxchange/routingandworkflow" />
		</wsdl:port>
	</wsdl:service>

P

On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>
> http://rifers.org/paste/show/1522
>
> No probs
>
>
>
> Philip Dodds-2 wrote:
> >
> > It appears that the pastebin is down :(
> >
> > Can you try http://rifers.org/paste/
> >
> > Sorry
> >
> > P
> >
> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
> >>
> >> http://pastebin.com/771396
> >>
> >> or http://nci.pastebin.com/771401
> >>
> >>
> >>
> >> Philip Dodds-2 wrote:
> >> >
> >> > You could just pastebin the wsdl and send the link
> >> >
> >> > http://pastebin.com/
> >> >
> >> > P
> >> >
> >> >
> >> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
> >> >>
> >> >> I tried uploading the file and get an exception
> >> >>
> >> >> /home/nabble/nabble/user-files/111792/service.wsdl ( no such file or
> >> >> directory)..
> >> >>
> >> >> Is there any other way I can send the file.
> >> >>
> >> >> Thanks
> >> >> Mukesh Mediratta
> >> >>
> >> >>
> >> >>
> >> >> Philip Dodds-2 wrote:
> >> >> >
> >> >> > Can you send the wsdl that you are trying to generate?
> >> >> >
> >> >> > P
> >> >> >
> >> >> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
> >> >> >>
> >> >> >> I had gone ahead and deleted entire project from my workspace and
> >> >> >> recreated..
> >> >> >> This time I just copied contents of my wsdl file to service.wsdl.
> >> >> >>
> >> >> >> Generated sources and got exceptions..
> >> >> >>
> >> >> >> Based on your suggestion I did mvn clean and then generated sources
> >> >> >> again..
> >> >> >> and got exceptions again as follows:
> >> >> >>
> >> >> >> I see some classes generated under /ws/common and
> >> /ws/routingandflow
> >> >> but
> >> >> >> not
> >> >> >> the classes under /ws
> >> >> >>
> >> >> >> Thanks
> >> >> >> Mukesh
> >> >> >>
> >> >> >>
> >> >> >> [INFO]
> >> >> >>
> >> >>
> >> ----------------------------------------------------------------------------
> >> >> >> [INFO] Building An example JSR-181 Service Unit
> >> >> >> [INFO]    task-segment: [generate-sources]
> >> >> >> [INFO]
> >> >> >>
> >> >>
> >> ----------------------------------------------------------------------------
> >> >> >> [WARN] Unable to get resource from repository apache.snapshots
> >> >> >> (http://cvs.apache.org/maven-snapshot-repository)
> >> >> >> [WARN] Unable to get resource from repository logicblaze.snapshots
> >> >> >> (http://repo.logicblaze.com/maven2-all)
> >> >> >> [WARN] Unable to get resource from repository central
> >> >> >> (http://repo1.maven.org/maven2)
> >> >> >> [WARN] Unable to get resource from repository apache.snapshots
> >> >> >> (http://cvs.apache.org/maven-snapshot-repository)
> >> >> >> [WARN] Unable to get resource from repository logicblaze.snapshots
> >> >> >> (http://repo.logicblaze.com/maven2-all)
> >> >> >> [WARN] Unable to get resource from repository central
> >> >> >> (http://repo1.maven.org/maven2)
> >> >> >> [WARN] Unable to get resource from repository apache.snapshots
> >> >> >> (http://cvs.apache.org/maven-snapshot-repository)
> >> >> >> [WARN] Unable to get resource from repository logicblaze.snapshots
> >> >> >> (http://repo.logicblaze.com/maven2-all)
> >> >> >> [WARN] Unable to get resource from repository central
> >> >> >> (http://repo1.maven.org/maven2)
> >> >> >> [WARN]
> >> >> >>         Artifact ant:ant:jar:1.6.5:runtime retains local scope
> >> >> 'runtime'
> >> >> >> overriding
> >> >> >> broader scope 'compile'
> >> >> >>         given by a dependency. If this is not intended, modify or
> >> >> remove
> >> >> >> the local
> >> >> >> scope.
> >> >> >>
> >> >> >> Aug 18, 2006 1:14:11 PM org.codehaus.xfire.gen.Wsdl11Generator
> >> >> generate
> >> >> >> INFO: Generating code for WSDL at
> >> >> >> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl with a base URI
> >> of
> >> >> >> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl
> >> >> >> Aug 18, 2006 1:14:13 PM
> >> org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl
> >> >> >> warning
> >> >> >> SEVERE: Error generating JAXB classes: src-resolve.4.2: Error
> >> >> resolving
> >> >> >> component 'common:Credentials'. It was detected that
> >> >> 'common:Credentials'
> >> >> >> is
> >> >> >> in namespace 'http://caxchange.nci.nih.gov/ws/common', but
> >> components
> >> >> >> from
> >> >> >> this namespace are not referenceable from schema document
> >> >> >>
> >> 'file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2'.
> >> >> If
> >> >> >> this
> >> >> >> is the incorrect namespace, perhaps the prefix of
> >> 'common:Credentials'
> >> >> >> needs
> >> >> >> to be changed. If this is the correct namespace, then an
> >> appropriate
> >> >> >> 'import' tag should be added to
> >> >> >>
> >> 'file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2'.
> >> >> at
> >> >> >> -1,-1 in
> >> >> >> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2
> >> >> >> [INFO] antrun:run {execution: default}
> >> >> >> [INFO] Executing tasks
> >> >> >> gov\nih\nci\caxchange\ws\common\Credentials.java
> >> >> >> gov\nih\nci\caxchange\ws\common\ErrorCodes.java
> >> >> >> gov\nih\nci\caxchange\ws\common\ErrorDetails.java
> >> >> >> gov\nih\nci\caxchange\ws\common\ObjectFactory.java
> >> >> >> gov\nih\nci\caxchange\ws\common\package-info.java
> >> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\Acknowledgement.java
> >> >> >>
> >> >>
> >> gov\nih\nci\caxchange\ws\routingandworkflow\AcknowledgementStatuses.java
> >> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\KnownTypes.java
> >> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\MessagePayload.java
> >> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\ObjectFactory.java
> >> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\PayloadTypes.java
> >> >> >>
> >> >>
> >> gov\nih\nci\caxchange\ws\routingandworkflow\ProcessingInstructions.java
> >> >> >>
> >> >>
> >> gov\nih\nci\caxchange\ws\routingandworkflow\RoutingAndWorkflowRequest.java
> >> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\Workflow.java
> >> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\package-info.java
> >> >> >> Aug 18, 2006 1:14:16 PM
> >> >> >> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
> >> >> >> INFO: Creating class
> >> >> gov.nih.nci.caxchange.ws.RoutingAndWorkflowService
> >> >> >> Aug 18, 2006 1:14:16 PM
> >> >> >> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
> >> >> >> INFO: Creating class
> >> gov.nih.nci.caxchange.ws.RoutingAndWorkFlowImpl
> >> >> >> [ERROR] mojo-execute : antrun:run {execution: default}
> >> >> >> Diagnosis: Error executing ant tasks
> >> >> >> FATAL ERROR: Error executing Maven for a project
> >> >> >> [ERROR] project-execute :
> >> >> >> com.mycompany:caxsvc:jbi-service-unit:1.0-SNAPSHOT
> >> >> >> (  task-segment: [generate-sources] )
> >> >> >> Diagnosis: Error executing ant tasks
> >> >> >> FATAL ERROR: Error executing Maven for a project
> >> >> >> org.apache.maven.lifecycle.LifecycleExecutionException: Error
> >> >> executing
> >> >> >> ant
> >> >> >> tasks
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
> >> >> >>         at
> >> >> >> org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
> >> >> >> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
> >> >> >> executing
> >> >> >> ant tasks
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:109)
> >> >> >>         at
> >> >> >>
> >> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
> >> >> >>         ... 8 more
> >> >> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
> >> >> >>         at
> >> org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:44)
> >> >> >>         at
> >> >> >>
> >> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >> >> >>         at org.apache.tools.ant.Task.perform(Task.java:364)
> >> >> >>         at org.apache.tools.ant.Target.execute(Target.java:341)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:99)
> >> >> >>         ... 11 more
> >> >> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
> >> >> >>         at com.sun.codemodel.JPackage._class(JPackage.java:188)
> >> >> >>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:178)
> >> >> >>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:154)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:68)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:53)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:126)
> >> >> >>         at
> >> org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:40)
> >> >> >>         ... 15 more
> >> >> >>
> >> >> >>
> >> >> >> Philip Dodds-2 wrote:
> >> >> >> >
> >> >> >> > Can you try and mvn clean on the project and then try again?
> >> >> >> >
> >> >> >> > Thanks
> >> >> >> >
> >> >> >> > Philip
> >> >> >> >
> >> >> >> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
> >> >> >> >>
> >> >> >> >> Thanks Philip,
> >> >> >> >>
> >> >> >> >> I made the change and got exceptions this time.. If you would
> >> like
> >> >> to
> >> >> >> try
> >> >> >> >> this at your end may be I can send you the wsdl itself.
> >> >> >> >>
> >> >> >> >> [ERROR] mojo-execute : antrun:run {execution: default}
> >> >> >> >> Diagnosis: Error executing ant tasks
> >> >> >> >> FATAL ERROR: Error executing Maven for a project
> >> >> >> >> [ERROR] project-execute :
> >> >> >> >> com.mycompany:caxsvc:jbi-service-unit:1.0-SNAPSHOT
> >> >> >> >> (  task-segment: [generate-sources] )
> >> >> >> >> Diagnosis: Error executing ant tasks
> >> >> >> >> FATAL ERROR: Error executing Maven for a project
> >> >> >> >> org.apache.maven.lifecycle.LifecycleExecutionException: Error
> >> >> >> executing
> >> >> >> >> ant
> >> >> >> >> tasks
> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
> >> >> >> >>         at
> >> >> >> >>
> >> org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
> >> >> >> >> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
> >> >> >> >> executing
> >> >> >> >> ant tasks
> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:109)
> >> >> >> >>         at
> >> >> >> >>
> >> >> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
> >> >> >> >>         ... 8 more
> >> >> >> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
> >> >> >> >>         at
> >> >> org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:44)
> >> >> >> >>         at
> >> >> >> >>
> >> >> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >> >> >> >>         at org.apache.tools.ant.Task.perform(Task.java:364)
> >> >> >> >>         at org.apache.tools.ant.Target.execute(Target.java:341)
> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:99)
> >> >> >> >>         ... 11 more
> >> >> >> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
> >> >> >> >>         at com.sun.codemodel.JPackage._class(JPackage.java:188)
> >> >> >> >>         at
> >> com.sun.codemodel.JCodeModel._class(JCodeModel.java:178)
> >> >> >> >>         at
> >> com.sun.codemodel.JCodeModel._class(JCodeModel.java:154)
> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:68)
> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:53)
> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:126)
> >> >> >> >>         at
> >> >> org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:40)
> >> >> >> >>         ... 15 more
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> Philip Dodds-2 wrote:
> >> >> >> >> >
> >> >> >> >> > In the pom.xml I believe it explicitly names the service.wsdl
> >> in
> >> >> teh
> >> >> >> >> > plugin section you might want to change this to be your new
> >> WSDL
> >> >> >> file.
> >> >> >> >> >
> >> >> >> >> > P
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
> >> >> >> >> >>
> >> >> >> >> >> Hi Bruce,
> >> >> >> >> >>
> >> >> >> >> >> Thanks for the response..
> >> >> >> >> >>
> >> >> >> >> >> I had already tried the tutorial we went thru in LA.. it
> >> works
> >> >> as
> >> >> >> it
> >> >> >> >> is..
> >> >> >> >> >> however when I tried to follow steps using our own wsdl.. it
> >> >> went
> >> >> >> thru
> >> >> >> >> >> and
> >> >> >> >> >> gave me build successful.. however did not generate any
> >> >> classes..
> >> >> >> >> >>
> >> >> >> >> >> I had gone and changed the /src/main/resources/xbean.xml
> >> >> >> wsdlResource
> >> >> >> >> to
> >> >> >> >> >> have my file name rather than the standard service.wsdl.
> >> >> >> >> >>
> >> >> >> >> >> Not sure where is the issue.. This WSDL has been tested OK
> >> and I
> >> >> >> have
> >> >> >> >> >> been
> >> >> >> >> >> able to generate client and server stus using Eclipse plugin
> >> for
> >> >> >> Xfire
> >> >> >> >> I
> >> >> >> >> >> got
> >> >> >> >> >> from Xfire website..
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >> Please help.
> >> >> >> >> >>
> >> >> >> >> >> Thanks
> >> >> >> >> >> Mukesh
> >> >> >> >> >>
> >> >> >> >> >> bsnyder wrote:
> >> >> >> >> >> >
> >> >> >> >> >> > On 8/17/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
> >> >> >> >> >> >>
> >> >> >> >> >> >> I want to develop a Webservice based on WSDL and host it
> >> on
> >> >> >> >> >> Servicemix.
> >> >> >> >> >> >>
> >> >> >> >> >> >> I understand there is JSR 181 Archetype in Maven.. How
> >> could
> >> >> we
> >> >> >> use
> >> >> >> >> it
> >> >> >> >> >> >> for
> >> >> >> >> >> >> the same.
> >> >> >> >> >> >
> >> >> >> >> >> > Mukesh, there's some docs on the servicemix-jsr181
> >> component
> >> >> >> here:
> >> >> >> >> >> >
> >> >> >> >> >> > http://servicemix.org/site/servicemix-jsr181.html
> >> >> >> >> >> >
> >> >> >> >> >> > Also, this is actually what we went over in L.A. together
> >> WRT
> >> >> >> FUSE.
> >> >> >> >> >> > There is a walkthrough of this using the ServiceMix tooling
> >> >> here:
> >> >> >> >> >> >
> >> >> >> >> >> > http://devzone.logicblaze.com/site/how-tos.html
> >> >> >> >> >> >
> >> >> >> >> >> > It's titled, 'Creating Contract First Web Services in
> >> FUSE'.
> >> >> >> >> >> >
> >> >> >> >> >> > Bruce
> >> >> >> >> >> > --
> >> >> >> >> >> > perl -e 'print
> >> >> >> >> >> >
> >> >> >>
> >> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> >> >> >> >> >> > );'
> >> >> >> >> >> >
> >> >> >> >> >> > Apache Geronimo - http://geronimo.apache.org/
> >> >> >> >> >> > Apache ActiveMQ - http://incubator.apache.org/activemq/
> >> >> >> >> >> > Apache ServiceMix - http://incubator.apache.org/servicemix/
> >> >> >> >> >> > Castor - http://castor.org/
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >>
> >> >> >> >> >> --
> >> >> >> >> >> View this message in context:
> >> >> >> >> >>
> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873283
> >> >> >> >> >> Sent from the ServiceMix - User forum at Nabble.com.
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >> View this message in context:
> >> >> >> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873536
> >> >> >> >> Sent from the ServiceMix - User forum at Nabble.com.
> >> >> >> >>
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873941
> >> >> >> Sent from the ServiceMix - User forum at Nabble.com.
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5874092
> >> >> Sent from the ServiceMix - User forum at Nabble.com.
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5874482
> >> Sent from the ServiceMix - User forum at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5874901
> Sent from the ServiceMix - User forum at Nabble.com.
>
>

Re: Maven Archetypes

Posted by Mukesh Mediratta <me...@mail.nih.gov>.
http://rifers.org/paste/show/1522

No probs



Philip Dodds-2 wrote:
> 
> It appears that the pastebin is down :(
> 
> Can you try http://rifers.org/paste/
> 
> Sorry
> 
> P
> 
> On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>>
>> http://pastebin.com/771396
>>
>> or http://nci.pastebin.com/771401
>>
>>
>>
>> Philip Dodds-2 wrote:
>> >
>> > You could just pastebin the wsdl and send the link
>> >
>> > http://pastebin.com/
>> >
>> > P
>> >
>> >
>> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>> >>
>> >> I tried uploading the file and get an exception
>> >>
>> >> /home/nabble/nabble/user-files/111792/service.wsdl ( no such file or
>> >> directory)..
>> >>
>> >> Is there any other way I can send the file.
>> >>
>> >> Thanks
>> >> Mukesh Mediratta
>> >>
>> >>
>> >>
>> >> Philip Dodds-2 wrote:
>> >> >
>> >> > Can you send the wsdl that you are trying to generate?
>> >> >
>> >> > P
>> >> >
>> >> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>> >> >>
>> >> >> I had gone ahead and deleted entire project from my workspace and
>> >> >> recreated..
>> >> >> This time I just copied contents of my wsdl file to service.wsdl.
>> >> >>
>> >> >> Generated sources and got exceptions..
>> >> >>
>> >> >> Based on your suggestion I did mvn clean and then generated sources
>> >> >> again..
>> >> >> and got exceptions again as follows:
>> >> >>
>> >> >> I see some classes generated under /ws/common and
>> /ws/routingandflow
>> >> but
>> >> >> not
>> >> >> the classes under /ws
>> >> >>
>> >> >> Thanks
>> >> >> Mukesh
>> >> >>
>> >> >>
>> >> >> [INFO]
>> >> >>
>> >>
>> ----------------------------------------------------------------------------
>> >> >> [INFO] Building An example JSR-181 Service Unit
>> >> >> [INFO]    task-segment: [generate-sources]
>> >> >> [INFO]
>> >> >>
>> >>
>> ----------------------------------------------------------------------------
>> >> >> [WARN] Unable to get resource from repository apache.snapshots
>> >> >> (http://cvs.apache.org/maven-snapshot-repository)
>> >> >> [WARN] Unable to get resource from repository logicblaze.snapshots
>> >> >> (http://repo.logicblaze.com/maven2-all)
>> >> >> [WARN] Unable to get resource from repository central
>> >> >> (http://repo1.maven.org/maven2)
>> >> >> [WARN] Unable to get resource from repository apache.snapshots
>> >> >> (http://cvs.apache.org/maven-snapshot-repository)
>> >> >> [WARN] Unable to get resource from repository logicblaze.snapshots
>> >> >> (http://repo.logicblaze.com/maven2-all)
>> >> >> [WARN] Unable to get resource from repository central
>> >> >> (http://repo1.maven.org/maven2)
>> >> >> [WARN] Unable to get resource from repository apache.snapshots
>> >> >> (http://cvs.apache.org/maven-snapshot-repository)
>> >> >> [WARN] Unable to get resource from repository logicblaze.snapshots
>> >> >> (http://repo.logicblaze.com/maven2-all)
>> >> >> [WARN] Unable to get resource from repository central
>> >> >> (http://repo1.maven.org/maven2)
>> >> >> [WARN]
>> >> >>         Artifact ant:ant:jar:1.6.5:runtime retains local scope
>> >> 'runtime'
>> >> >> overriding
>> >> >> broader scope 'compile'
>> >> >>         given by a dependency. If this is not intended, modify or
>> >> remove
>> >> >> the local
>> >> >> scope.
>> >> >>
>> >> >> Aug 18, 2006 1:14:11 PM org.codehaus.xfire.gen.Wsdl11Generator
>> >> generate
>> >> >> INFO: Generating code for WSDL at
>> >> >> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl with a base URI
>> of
>> >> >> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl
>> >> >> Aug 18, 2006 1:14:13 PM
>> org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl
>> >> >> warning
>> >> >> SEVERE: Error generating JAXB classes: src-resolve.4.2: Error
>> >> resolving
>> >> >> component 'common:Credentials'. It was detected that
>> >> 'common:Credentials'
>> >> >> is
>> >> >> in namespace 'http://caxchange.nci.nih.gov/ws/common', but
>> components
>> >> >> from
>> >> >> this namespace are not referenceable from schema document
>> >> >>
>> 'file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2'.
>> >> If
>> >> >> this
>> >> >> is the incorrect namespace, perhaps the prefix of
>> 'common:Credentials'
>> >> >> needs
>> >> >> to be changed. If this is the correct namespace, then an
>> appropriate
>> >> >> 'import' tag should be added to
>> >> >>
>> 'file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2'.
>> >> at
>> >> >> -1,-1 in
>> >> >> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2
>> >> >> [INFO] antrun:run {execution: default}
>> >> >> [INFO] Executing tasks
>> >> >> gov\nih\nci\caxchange\ws\common\Credentials.java
>> >> >> gov\nih\nci\caxchange\ws\common\ErrorCodes.java
>> >> >> gov\nih\nci\caxchange\ws\common\ErrorDetails.java
>> >> >> gov\nih\nci\caxchange\ws\common\ObjectFactory.java
>> >> >> gov\nih\nci\caxchange\ws\common\package-info.java
>> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\Acknowledgement.java
>> >> >>
>> >>
>> gov\nih\nci\caxchange\ws\routingandworkflow\AcknowledgementStatuses.java
>> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\KnownTypes.java
>> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\MessagePayload.java
>> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\ObjectFactory.java
>> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\PayloadTypes.java
>> >> >>
>> >>
>> gov\nih\nci\caxchange\ws\routingandworkflow\ProcessingInstructions.java
>> >> >>
>> >>
>> gov\nih\nci\caxchange\ws\routingandworkflow\RoutingAndWorkflowRequest.java
>> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\Workflow.java
>> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\package-info.java
>> >> >> Aug 18, 2006 1:14:16 PM
>> >> >> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
>> >> >> INFO: Creating class
>> >> gov.nih.nci.caxchange.ws.RoutingAndWorkflowService
>> >> >> Aug 18, 2006 1:14:16 PM
>> >> >> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
>> >> >> INFO: Creating class
>> gov.nih.nci.caxchange.ws.RoutingAndWorkFlowImpl
>> >> >> [ERROR] mojo-execute : antrun:run {execution: default}
>> >> >> Diagnosis: Error executing ant tasks
>> >> >> FATAL ERROR: Error executing Maven for a project
>> >> >> [ERROR] project-execute :
>> >> >> com.mycompany:caxsvc:jbi-service-unit:1.0-SNAPSHOT
>> >> >> (  task-segment: [generate-sources] )
>> >> >> Diagnosis: Error executing ant tasks
>> >> >> FATAL ERROR: Error executing Maven for a project
>> >> >> org.apache.maven.lifecycle.LifecycleExecutionException: Error
>> >> executing
>> >> >> ant
>> >> >> tasks
>> >> >>         at
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
>> >> >>         at
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
>> >> >>         at
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
>> >> >>         at
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
>> >> >>         at
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>> >> >>         at
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
>> >> >>         at
>> >> >>
>> >>
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
>> >> >>         at
>> >> >>
>> >>
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
>> >> >>         at
>> >> >> org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
>> >> >> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
>> >> >> executing
>> >> >> ant tasks
>> >> >>         at
>> >> >>
>> >>
>> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:109)
>> >> >>         at
>> >> >>
>> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
>> >> >>         at
>> >> >>
>> >>
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
>> >> >>         at
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>> >> >>         ... 8 more
>> >> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>> >> >>         at
>> org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:44)
>> >> >>         at
>> >> >>
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>> >> >>         at org.apache.tools.ant.Task.perform(Task.java:364)
>> >> >>         at org.apache.tools.ant.Target.execute(Target.java:341)
>> >> >>         at
>> >> >>
>> >>
>> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:99)
>> >> >>         ... 11 more
>> >> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>> >> >>         at com.sun.codemodel.JPackage._class(JPackage.java:188)
>> >> >>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:178)
>> >> >>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:154)
>> >> >>         at
>> >> >>
>> >>
>> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:68)
>> >> >>         at
>> >> >>
>> >>
>> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:53)
>> >> >>         at
>> >> >>
>> >>
>> org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:126)
>> >> >>         at
>> org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:40)
>> >> >>         ... 15 more
>> >> >>
>> >> >>
>> >> >> Philip Dodds-2 wrote:
>> >> >> >
>> >> >> > Can you try and mvn clean on the project and then try again?
>> >> >> >
>> >> >> > Thanks
>> >> >> >
>> >> >> > Philip
>> >> >> >
>> >> >> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>> >> >> >>
>> >> >> >> Thanks Philip,
>> >> >> >>
>> >> >> >> I made the change and got exceptions this time.. If you would
>> like
>> >> to
>> >> >> try
>> >> >> >> this at your end may be I can send you the wsdl itself.
>> >> >> >>
>> >> >> >> [ERROR] mojo-execute : antrun:run {execution: default}
>> >> >> >> Diagnosis: Error executing ant tasks
>> >> >> >> FATAL ERROR: Error executing Maven for a project
>> >> >> >> [ERROR] project-execute :
>> >> >> >> com.mycompany:caxsvc:jbi-service-unit:1.0-SNAPSHOT
>> >> >> >> (  task-segment: [generate-sources] )
>> >> >> >> Diagnosis: Error executing ant tasks
>> >> >> >> FATAL ERROR: Error executing Maven for a project
>> >> >> >> org.apache.maven.lifecycle.LifecycleExecutionException: Error
>> >> >> executing
>> >> >> >> ant
>> >> >> >> tasks
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
>> >> >> >>         at
>> >> >> >>
>> org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
>> >> >> >> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
>> >> >> >> executing
>> >> >> >> ant tasks
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:109)
>> >> >> >>         at
>> >> >> >>
>> >> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>> >> >> >>         ... 8 more
>> >> >> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>> >> >> >>         at
>> >> org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:44)
>> >> >> >>         at
>> >> >> >>
>> >> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>> >> >> >>         at org.apache.tools.ant.Task.perform(Task.java:364)
>> >> >> >>         at org.apache.tools.ant.Target.execute(Target.java:341)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:99)
>> >> >> >>         ... 11 more
>> >> >> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>> >> >> >>         at com.sun.codemodel.JPackage._class(JPackage.java:188)
>> >> >> >>         at
>> com.sun.codemodel.JCodeModel._class(JCodeModel.java:178)
>> >> >> >>         at
>> com.sun.codemodel.JCodeModel._class(JCodeModel.java:154)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:68)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:53)
>> >> >> >>         at
>> >> >> >>
>> >> >>
>> >>
>> org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:126)
>> >> >> >>         at
>> >> org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:40)
>> >> >> >>         ... 15 more
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> Philip Dodds-2 wrote:
>> >> >> >> >
>> >> >> >> > In the pom.xml I believe it explicitly names the service.wsdl
>> in
>> >> teh
>> >> >> >> > plugin section you might want to change this to be your new
>> WSDL
>> >> >> file.
>> >> >> >> >
>> >> >> >> > P
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>> >> >> >> >>
>> >> >> >> >> Hi Bruce,
>> >> >> >> >>
>> >> >> >> >> Thanks for the response..
>> >> >> >> >>
>> >> >> >> >> I had already tried the tutorial we went thru in LA.. it
>> works
>> >> as
>> >> >> it
>> >> >> >> is..
>> >> >> >> >> however when I tried to follow steps using our own wsdl.. it
>> >> went
>> >> >> thru
>> >> >> >> >> and
>> >> >> >> >> gave me build successful.. however did not generate any
>> >> classes..
>> >> >> >> >>
>> >> >> >> >> I had gone and changed the /src/main/resources/xbean.xml
>> >> >> wsdlResource
>> >> >> >> to
>> >> >> >> >> have my file name rather than the standard service.wsdl.
>> >> >> >> >>
>> >> >> >> >> Not sure where is the issue.. This WSDL has been tested OK
>> and I
>> >> >> have
>> >> >> >> >> been
>> >> >> >> >> able to generate client and server stus using Eclipse plugin
>> for
>> >> >> Xfire
>> >> >> >> I
>> >> >> >> >> got
>> >> >> >> >> from Xfire website..
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> Please help.
>> >> >> >> >>
>> >> >> >> >> Thanks
>> >> >> >> >> Mukesh
>> >> >> >> >>
>> >> >> >> >> bsnyder wrote:
>> >> >> >> >> >
>> >> >> >> >> > On 8/17/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>> >> >> >> >> >>
>> >> >> >> >> >> I want to develop a Webservice based on WSDL and host it
>> on
>> >> >> >> >> Servicemix.
>> >> >> >> >> >>
>> >> >> >> >> >> I understand there is JSR 181 Archetype in Maven.. How
>> could
>> >> we
>> >> >> use
>> >> >> >> it
>> >> >> >> >> >> for
>> >> >> >> >> >> the same.
>> >> >> >> >> >
>> >> >> >> >> > Mukesh, there's some docs on the servicemix-jsr181
>> component
>> >> >> here:
>> >> >> >> >> >
>> >> >> >> >> > http://servicemix.org/site/servicemix-jsr181.html
>> >> >> >> >> >
>> >> >> >> >> > Also, this is actually what we went over in L.A. together
>> WRT
>> >> >> FUSE.
>> >> >> >> >> > There is a walkthrough of this using the ServiceMix tooling
>> >> here:
>> >> >> >> >> >
>> >> >> >> >> > http://devzone.logicblaze.com/site/how-tos.html
>> >> >> >> >> >
>> >> >> >> >> > It's titled, 'Creating Contract First Web Services in
>> FUSE'.
>> >> >> >> >> >
>> >> >> >> >> > Bruce
>> >> >> >> >> > --
>> >> >> >> >> > perl -e 'print
>> >> >> >> >> >
>> >> >>
>> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>> >> >> >> >> > );'
>> >> >> >> >> >
>> >> >> >> >> > Apache Geronimo - http://geronimo.apache.org/
>> >> >> >> >> > Apache ActiveMQ - http://incubator.apache.org/activemq/
>> >> >> >> >> > Apache ServiceMix - http://incubator.apache.org/servicemix/
>> >> >> >> >> > Castor - http://castor.org/
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >>
>> >> >> >> >> --
>> >> >> >> >> View this message in context:
>> >> >> >> >>
>> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873283
>> >> >> >> >> Sent from the ServiceMix - User forum at Nabble.com.
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >> --
>> >> >> >> View this message in context:
>> >> >> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873536
>> >> >> >> Sent from the ServiceMix - User forum at Nabble.com.
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873941
>> >> >> Sent from the ServiceMix - User forum at Nabble.com.
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5874092
>> >> Sent from the ServiceMix - User forum at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5874482
>> Sent from the ServiceMix - User forum at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5874901
Sent from the ServiceMix - User forum at Nabble.com.


Re: Maven Archetypes

Posted by Philip Dodds <ph...@gmail.com>.
It appears that the pastebin is down :(

Can you try http://rifers.org/paste/

Sorry

P

On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>
> http://pastebin.com/771396
>
> or http://nci.pastebin.com/771401
>
>
>
> Philip Dodds-2 wrote:
> >
> > You could just pastebin the wsdl and send the link
> >
> > http://pastebin.com/
> >
> > P
> >
> >
> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
> >>
> >> I tried uploading the file and get an exception
> >>
> >> /home/nabble/nabble/user-files/111792/service.wsdl ( no such file or
> >> directory)..
> >>
> >> Is there any other way I can send the file.
> >>
> >> Thanks
> >> Mukesh Mediratta
> >>
> >>
> >>
> >> Philip Dodds-2 wrote:
> >> >
> >> > Can you send the wsdl that you are trying to generate?
> >> >
> >> > P
> >> >
> >> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
> >> >>
> >> >> I had gone ahead and deleted entire project from my workspace and
> >> >> recreated..
> >> >> This time I just copied contents of my wsdl file to service.wsdl.
> >> >>
> >> >> Generated sources and got exceptions..
> >> >>
> >> >> Based on your suggestion I did mvn clean and then generated sources
> >> >> again..
> >> >> and got exceptions again as follows:
> >> >>
> >> >> I see some classes generated under /ws/common and /ws/routingandflow
> >> but
> >> >> not
> >> >> the classes under /ws
> >> >>
> >> >> Thanks
> >> >> Mukesh
> >> >>
> >> >>
> >> >> [INFO]
> >> >>
> >> ----------------------------------------------------------------------------
> >> >> [INFO] Building An example JSR-181 Service Unit
> >> >> [INFO]    task-segment: [generate-sources]
> >> >> [INFO]
> >> >>
> >> ----------------------------------------------------------------------------
> >> >> [WARN] Unable to get resource from repository apache.snapshots
> >> >> (http://cvs.apache.org/maven-snapshot-repository)
> >> >> [WARN] Unable to get resource from repository logicblaze.snapshots
> >> >> (http://repo.logicblaze.com/maven2-all)
> >> >> [WARN] Unable to get resource from repository central
> >> >> (http://repo1.maven.org/maven2)
> >> >> [WARN] Unable to get resource from repository apache.snapshots
> >> >> (http://cvs.apache.org/maven-snapshot-repository)
> >> >> [WARN] Unable to get resource from repository logicblaze.snapshots
> >> >> (http://repo.logicblaze.com/maven2-all)
> >> >> [WARN] Unable to get resource from repository central
> >> >> (http://repo1.maven.org/maven2)
> >> >> [WARN] Unable to get resource from repository apache.snapshots
> >> >> (http://cvs.apache.org/maven-snapshot-repository)
> >> >> [WARN] Unable to get resource from repository logicblaze.snapshots
> >> >> (http://repo.logicblaze.com/maven2-all)
> >> >> [WARN] Unable to get resource from repository central
> >> >> (http://repo1.maven.org/maven2)
> >> >> [WARN]
> >> >>         Artifact ant:ant:jar:1.6.5:runtime retains local scope
> >> 'runtime'
> >> >> overriding
> >> >> broader scope 'compile'
> >> >>         given by a dependency. If this is not intended, modify or
> >> remove
> >> >> the local
> >> >> scope.
> >> >>
> >> >> Aug 18, 2006 1:14:11 PM org.codehaus.xfire.gen.Wsdl11Generator
> >> generate
> >> >> INFO: Generating code for WSDL at
> >> >> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl with a base URI of
> >> >> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl
> >> >> Aug 18, 2006 1:14:13 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl
> >> >> warning
> >> >> SEVERE: Error generating JAXB classes: src-resolve.4.2: Error
> >> resolving
> >> >> component 'common:Credentials'. It was detected that
> >> 'common:Credentials'
> >> >> is
> >> >> in namespace 'http://caxchange.nci.nih.gov/ws/common', but components
> >> >> from
> >> >> this namespace are not referenceable from schema document
> >> >> 'file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2'.
> >> If
> >> >> this
> >> >> is the incorrect namespace, perhaps the prefix of 'common:Credentials'
> >> >> needs
> >> >> to be changed. If this is the correct namespace, then an appropriate
> >> >> 'import' tag should be added to
> >> >> 'file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2'.
> >> at
> >> >> -1,-1 in
> >> >> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2
> >> >> [INFO] antrun:run {execution: default}
> >> >> [INFO] Executing tasks
> >> >> gov\nih\nci\caxchange\ws\common\Credentials.java
> >> >> gov\nih\nci\caxchange\ws\common\ErrorCodes.java
> >> >> gov\nih\nci\caxchange\ws\common\ErrorDetails.java
> >> >> gov\nih\nci\caxchange\ws\common\ObjectFactory.java
> >> >> gov\nih\nci\caxchange\ws\common\package-info.java
> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\Acknowledgement.java
> >> >>
> >> gov\nih\nci\caxchange\ws\routingandworkflow\AcknowledgementStatuses.java
> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\KnownTypes.java
> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\MessagePayload.java
> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\ObjectFactory.java
> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\PayloadTypes.java
> >> >>
> >> gov\nih\nci\caxchange\ws\routingandworkflow\ProcessingInstructions.java
> >> >>
> >> gov\nih\nci\caxchange\ws\routingandworkflow\RoutingAndWorkflowRequest.java
> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\Workflow.java
> >> >> gov\nih\nci\caxchange\ws\routingandworkflow\package-info.java
> >> >> Aug 18, 2006 1:14:16 PM
> >> >> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
> >> >> INFO: Creating class
> >> gov.nih.nci.caxchange.ws.RoutingAndWorkflowService
> >> >> Aug 18, 2006 1:14:16 PM
> >> >> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
> >> >> INFO: Creating class gov.nih.nci.caxchange.ws.RoutingAndWorkFlowImpl
> >> >> [ERROR] mojo-execute : antrun:run {execution: default}
> >> >> Diagnosis: Error executing ant tasks
> >> >> FATAL ERROR: Error executing Maven for a project
> >> >> [ERROR] project-execute :
> >> >> com.mycompany:caxsvc:jbi-service-unit:1.0-SNAPSHOT
> >> >> (  task-segment: [generate-sources] )
> >> >> Diagnosis: Error executing ant tasks
> >> >> FATAL ERROR: Error executing Maven for a project
> >> >> org.apache.maven.lifecycle.LifecycleExecutionException: Error
> >> executing
> >> >> ant
> >> >> tasks
> >> >>         at
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
> >> >>         at
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
> >> >>         at
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
> >> >>         at
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
> >> >>         at
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
> >> >>         at
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
> >> >>         at
> >> >>
> >> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
> >> >>         at
> >> >>
> >> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
> >> >>         at
> >> >> org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
> >> >> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
> >> >> executing
> >> >> ant tasks
> >> >>         at
> >> >>
> >> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:109)
> >> >>         at
> >> >> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
> >> >>         at
> >> >>
> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
> >> >>         at
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
> >> >>         ... 8 more
> >> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
> >> >>         at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:44)
> >> >>         at
> >> >> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >> >>         at org.apache.tools.ant.Task.perform(Task.java:364)
> >> >>         at org.apache.tools.ant.Target.execute(Target.java:341)
> >> >>         at
> >> >>
> >> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:99)
> >> >>         ... 11 more
> >> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
> >> >>         at com.sun.codemodel.JPackage._class(JPackage.java:188)
> >> >>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:178)
> >> >>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:154)
> >> >>         at
> >> >>
> >> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:68)
> >> >>         at
> >> >>
> >> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:53)
> >> >>         at
> >> >>
> >> org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:126)
> >> >>         at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:40)
> >> >>         ... 15 more
> >> >>
> >> >>
> >> >> Philip Dodds-2 wrote:
> >> >> >
> >> >> > Can you try and mvn clean on the project and then try again?
> >> >> >
> >> >> > Thanks
> >> >> >
> >> >> > Philip
> >> >> >
> >> >> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
> >> >> >>
> >> >> >> Thanks Philip,
> >> >> >>
> >> >> >> I made the change and got exceptions this time.. If you would like
> >> to
> >> >> try
> >> >> >> this at your end may be I can send you the wsdl itself.
> >> >> >>
> >> >> >> [ERROR] mojo-execute : antrun:run {execution: default}
> >> >> >> Diagnosis: Error executing ant tasks
> >> >> >> FATAL ERROR: Error executing Maven for a project
> >> >> >> [ERROR] project-execute :
> >> >> >> com.mycompany:caxsvc:jbi-service-unit:1.0-SNAPSHOT
> >> >> >> (  task-segment: [generate-sources] )
> >> >> >> Diagnosis: Error executing ant tasks
> >> >> >> FATAL ERROR: Error executing Maven for a project
> >> >> >> org.apache.maven.lifecycle.LifecycleExecutionException: Error
> >> >> executing
> >> >> >> ant
> >> >> >> tasks
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
> >> >> >>         at
> >> >> >> org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
> >> >> >> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
> >> >> >> executing
> >> >> >> ant tasks
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:109)
> >> >> >>         at
> >> >> >>
> >> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
> >> >> >>         ... 8 more
> >> >> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
> >> >> >>         at
> >> org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:44)
> >> >> >>         at
> >> >> >>
> >> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >> >> >>         at org.apache.tools.ant.Task.perform(Task.java:364)
> >> >> >>         at org.apache.tools.ant.Target.execute(Target.java:341)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:99)
> >> >> >>         ... 11 more
> >> >> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
> >> >> >>         at com.sun.codemodel.JPackage._class(JPackage.java:188)
> >> >> >>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:178)
> >> >> >>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:154)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:68)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:53)
> >> >> >>         at
> >> >> >>
> >> >>
> >> org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:126)
> >> >> >>         at
> >> org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:40)
> >> >> >>         ... 15 more
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> Philip Dodds-2 wrote:
> >> >> >> >
> >> >> >> > In the pom.xml I believe it explicitly names the service.wsdl in
> >> teh
> >> >> >> > plugin section you might want to change this to be your new WSDL
> >> >> file.
> >> >> >> >
> >> >> >> > P
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
> >> >> >> >>
> >> >> >> >> Hi Bruce,
> >> >> >> >>
> >> >> >> >> Thanks for the response..
> >> >> >> >>
> >> >> >> >> I had already tried the tutorial we went thru in LA.. it works
> >> as
> >> >> it
> >> >> >> is..
> >> >> >> >> however when I tried to follow steps using our own wsdl.. it
> >> went
> >> >> thru
> >> >> >> >> and
> >> >> >> >> gave me build successful.. however did not generate any
> >> classes..
> >> >> >> >>
> >> >> >> >> I had gone and changed the /src/main/resources/xbean.xml
> >> >> wsdlResource
> >> >> >> to
> >> >> >> >> have my file name rather than the standard service.wsdl.
> >> >> >> >>
> >> >> >> >> Not sure where is the issue.. This WSDL has been tested OK and I
> >> >> have
> >> >> >> >> been
> >> >> >> >> able to generate client and server stus using Eclipse plugin for
> >> >> Xfire
> >> >> >> I
> >> >> >> >> got
> >> >> >> >> from Xfire website..
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> Please help.
> >> >> >> >>
> >> >> >> >> Thanks
> >> >> >> >> Mukesh
> >> >> >> >>
> >> >> >> >> bsnyder wrote:
> >> >> >> >> >
> >> >> >> >> > On 8/17/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
> >> >> >> >> >>
> >> >> >> >> >> I want to develop a Webservice based on WSDL and host it on
> >> >> >> >> Servicemix.
> >> >> >> >> >>
> >> >> >> >> >> I understand there is JSR 181 Archetype in Maven.. How could
> >> we
> >> >> use
> >> >> >> it
> >> >> >> >> >> for
> >> >> >> >> >> the same.
> >> >> >> >> >
> >> >> >> >> > Mukesh, there's some docs on the servicemix-jsr181 component
> >> >> here:
> >> >> >> >> >
> >> >> >> >> > http://servicemix.org/site/servicemix-jsr181.html
> >> >> >> >> >
> >> >> >> >> > Also, this is actually what we went over in L.A. together WRT
> >> >> FUSE.
> >> >> >> >> > There is a walkthrough of this using the ServiceMix tooling
> >> here:
> >> >> >> >> >
> >> >> >> >> > http://devzone.logicblaze.com/site/how-tos.html
> >> >> >> >> >
> >> >> >> >> > It's titled, 'Creating Contract First Web Services in FUSE'.
> >> >> >> >> >
> >> >> >> >> > Bruce
> >> >> >> >> > --
> >> >> >> >> > perl -e 'print
> >> >> >> >> >
> >> >> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> >> >> >> >> > );'
> >> >> >> >> >
> >> >> >> >> > Apache Geronimo - http://geronimo.apache.org/
> >> >> >> >> > Apache ActiveMQ - http://incubator.apache.org/activemq/
> >> >> >> >> > Apache ServiceMix - http://incubator.apache.org/servicemix/
> >> >> >> >> > Castor - http://castor.org/
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >> View this message in context:
> >> >> >> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873283
> >> >> >> >> Sent from the ServiceMix - User forum at Nabble.com.
> >> >> >> >>
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873536
> >> >> >> Sent from the ServiceMix - User forum at Nabble.com.
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873941
> >> >> Sent from the ServiceMix - User forum at Nabble.com.
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5874092
> >> Sent from the ServiceMix - User forum at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5874482
> Sent from the ServiceMix - User forum at Nabble.com.
>
>

Re: Maven Archetypes

Posted by Mukesh Mediratta <me...@mail.nih.gov>.
http://pastebin.com/771396

or http://nci.pastebin.com/771401



Philip Dodds-2 wrote:
> 
> You could just pastebin the wsdl and send the link
> 
> http://pastebin.com/
> 
> P
> 
> 
> On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>>
>> I tried uploading the file and get an exception
>>
>> /home/nabble/nabble/user-files/111792/service.wsdl ( no such file or
>> directory)..
>>
>> Is there any other way I can send the file.
>>
>> Thanks
>> Mukesh Mediratta
>>
>>
>>
>> Philip Dodds-2 wrote:
>> >
>> > Can you send the wsdl that you are trying to generate?
>> >
>> > P
>> >
>> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>> >>
>> >> I had gone ahead and deleted entire project from my workspace and
>> >> recreated..
>> >> This time I just copied contents of my wsdl file to service.wsdl.
>> >>
>> >> Generated sources and got exceptions..
>> >>
>> >> Based on your suggestion I did mvn clean and then generated sources
>> >> again..
>> >> and got exceptions again as follows:
>> >>
>> >> I see some classes generated under /ws/common and /ws/routingandflow
>> but
>> >> not
>> >> the classes under /ws
>> >>
>> >> Thanks
>> >> Mukesh
>> >>
>> >>
>> >> [INFO]
>> >>
>> ----------------------------------------------------------------------------
>> >> [INFO] Building An example JSR-181 Service Unit
>> >> [INFO]    task-segment: [generate-sources]
>> >> [INFO]
>> >>
>> ----------------------------------------------------------------------------
>> >> [WARN] Unable to get resource from repository apache.snapshots
>> >> (http://cvs.apache.org/maven-snapshot-repository)
>> >> [WARN] Unable to get resource from repository logicblaze.snapshots
>> >> (http://repo.logicblaze.com/maven2-all)
>> >> [WARN] Unable to get resource from repository central
>> >> (http://repo1.maven.org/maven2)
>> >> [WARN] Unable to get resource from repository apache.snapshots
>> >> (http://cvs.apache.org/maven-snapshot-repository)
>> >> [WARN] Unable to get resource from repository logicblaze.snapshots
>> >> (http://repo.logicblaze.com/maven2-all)
>> >> [WARN] Unable to get resource from repository central
>> >> (http://repo1.maven.org/maven2)
>> >> [WARN] Unable to get resource from repository apache.snapshots
>> >> (http://cvs.apache.org/maven-snapshot-repository)
>> >> [WARN] Unable to get resource from repository logicblaze.snapshots
>> >> (http://repo.logicblaze.com/maven2-all)
>> >> [WARN] Unable to get resource from repository central
>> >> (http://repo1.maven.org/maven2)
>> >> [WARN]
>> >>         Artifact ant:ant:jar:1.6.5:runtime retains local scope
>> 'runtime'
>> >> overriding
>> >> broader scope 'compile'
>> >>         given by a dependency. If this is not intended, modify or
>> remove
>> >> the local
>> >> scope.
>> >>
>> >> Aug 18, 2006 1:14:11 PM org.codehaus.xfire.gen.Wsdl11Generator
>> generate
>> >> INFO: Generating code for WSDL at
>> >> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl with a base URI of
>> >> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl
>> >> Aug 18, 2006 1:14:13 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl
>> >> warning
>> >> SEVERE: Error generating JAXB classes: src-resolve.4.2: Error
>> resolving
>> >> component 'common:Credentials'. It was detected that
>> 'common:Credentials'
>> >> is
>> >> in namespace 'http://caxchange.nci.nih.gov/ws/common', but components
>> >> from
>> >> this namespace are not referenceable from schema document
>> >> 'file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2'.
>> If
>> >> this
>> >> is the incorrect namespace, perhaps the prefix of 'common:Credentials'
>> >> needs
>> >> to be changed. If this is the correct namespace, then an appropriate
>> >> 'import' tag should be added to
>> >> 'file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2'.
>> at
>> >> -1,-1 in
>> >> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2
>> >> [INFO] antrun:run {execution: default}
>> >> [INFO] Executing tasks
>> >> gov\nih\nci\caxchange\ws\common\Credentials.java
>> >> gov\nih\nci\caxchange\ws\common\ErrorCodes.java
>> >> gov\nih\nci\caxchange\ws\common\ErrorDetails.java
>> >> gov\nih\nci\caxchange\ws\common\ObjectFactory.java
>> >> gov\nih\nci\caxchange\ws\common\package-info.java
>> >> gov\nih\nci\caxchange\ws\routingandworkflow\Acknowledgement.java
>> >>
>> gov\nih\nci\caxchange\ws\routingandworkflow\AcknowledgementStatuses.java
>> >> gov\nih\nci\caxchange\ws\routingandworkflow\KnownTypes.java
>> >> gov\nih\nci\caxchange\ws\routingandworkflow\MessagePayload.java
>> >> gov\nih\nci\caxchange\ws\routingandworkflow\ObjectFactory.java
>> >> gov\nih\nci\caxchange\ws\routingandworkflow\PayloadTypes.java
>> >>
>> gov\nih\nci\caxchange\ws\routingandworkflow\ProcessingInstructions.java
>> >>
>> gov\nih\nci\caxchange\ws\routingandworkflow\RoutingAndWorkflowRequest.java
>> >> gov\nih\nci\caxchange\ws\routingandworkflow\Workflow.java
>> >> gov\nih\nci\caxchange\ws\routingandworkflow\package-info.java
>> >> Aug 18, 2006 1:14:16 PM
>> >> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
>> >> INFO: Creating class
>> gov.nih.nci.caxchange.ws.RoutingAndWorkflowService
>> >> Aug 18, 2006 1:14:16 PM
>> >> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
>> >> INFO: Creating class gov.nih.nci.caxchange.ws.RoutingAndWorkFlowImpl
>> >> [ERROR] mojo-execute : antrun:run {execution: default}
>> >> Diagnosis: Error executing ant tasks
>> >> FATAL ERROR: Error executing Maven for a project
>> >> [ERROR] project-execute :
>> >> com.mycompany:caxsvc:jbi-service-unit:1.0-SNAPSHOT
>> >> (  task-segment: [generate-sources] )
>> >> Diagnosis: Error executing ant tasks
>> >> FATAL ERROR: Error executing Maven for a project
>> >> org.apache.maven.lifecycle.LifecycleExecutionException: Error
>> executing
>> >> ant
>> >> tasks
>> >>         at
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
>> >>         at
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
>> >>         at
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
>> >>         at
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
>> >>         at
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>> >>         at
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
>> >>         at
>> >>
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
>> >>         at
>> >>
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
>> >>         at
>> >> org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
>> >> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
>> >> executing
>> >> ant tasks
>> >>         at
>> >>
>> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:109)
>> >>         at
>> >> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
>> >>         at
>> >>
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
>> >>         at
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>> >>         ... 8 more
>> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>> >>         at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:44)
>> >>         at
>> >> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>> >>         at org.apache.tools.ant.Task.perform(Task.java:364)
>> >>         at org.apache.tools.ant.Target.execute(Target.java:341)
>> >>         at
>> >>
>> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:99)
>> >>         ... 11 more
>> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>> >>         at com.sun.codemodel.JPackage._class(JPackage.java:188)
>> >>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:178)
>> >>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:154)
>> >>         at
>> >>
>> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:68)
>> >>         at
>> >>
>> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:53)
>> >>         at
>> >>
>> org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:126)
>> >>         at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:40)
>> >>         ... 15 more
>> >>
>> >>
>> >> Philip Dodds-2 wrote:
>> >> >
>> >> > Can you try and mvn clean on the project and then try again?
>> >> >
>> >> > Thanks
>> >> >
>> >> > Philip
>> >> >
>> >> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>> >> >>
>> >> >> Thanks Philip,
>> >> >>
>> >> >> I made the change and got exceptions this time.. If you would like
>> to
>> >> try
>> >> >> this at your end may be I can send you the wsdl itself.
>> >> >>
>> >> >> [ERROR] mojo-execute : antrun:run {execution: default}
>> >> >> Diagnosis: Error executing ant tasks
>> >> >> FATAL ERROR: Error executing Maven for a project
>> >> >> [ERROR] project-execute :
>> >> >> com.mycompany:caxsvc:jbi-service-unit:1.0-SNAPSHOT
>> >> >> (  task-segment: [generate-sources] )
>> >> >> Diagnosis: Error executing ant tasks
>> >> >> FATAL ERROR: Error executing Maven for a project
>> >> >> org.apache.maven.lifecycle.LifecycleExecutionException: Error
>> >> executing
>> >> >> ant
>> >> >> tasks
>> >> >>         at
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
>> >> >>         at
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
>> >> >>         at
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
>> >> >>         at
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
>> >> >>         at
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>> >> >>         at
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
>> >> >>         at
>> >> >>
>> >>
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
>> >> >>         at
>> >> >>
>> >>
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
>> >> >>         at
>> >> >> org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
>> >> >> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
>> >> >> executing
>> >> >> ant tasks
>> >> >>         at
>> >> >>
>> >>
>> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:109)
>> >> >>         at
>> >> >>
>> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
>> >> >>         at
>> >> >>
>> >>
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
>> >> >>         at
>> >> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>> >> >>         ... 8 more
>> >> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>> >> >>         at
>> org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:44)
>> >> >>         at
>> >> >>
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>> >> >>         at org.apache.tools.ant.Task.perform(Task.java:364)
>> >> >>         at org.apache.tools.ant.Target.execute(Target.java:341)
>> >> >>         at
>> >> >>
>> >>
>> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:99)
>> >> >>         ... 11 more
>> >> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>> >> >>         at com.sun.codemodel.JPackage._class(JPackage.java:188)
>> >> >>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:178)
>> >> >>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:154)
>> >> >>         at
>> >> >>
>> >>
>> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:68)
>> >> >>         at
>> >> >>
>> >>
>> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:53)
>> >> >>         at
>> >> >>
>> >>
>> org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:126)
>> >> >>         at
>> org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:40)
>> >> >>         ... 15 more
>> >> >>
>> >> >>
>> >> >>
>> >> >> Philip Dodds-2 wrote:
>> >> >> >
>> >> >> > In the pom.xml I believe it explicitly names the service.wsdl in
>> teh
>> >> >> > plugin section you might want to change this to be your new WSDL
>> >> file.
>> >> >> >
>> >> >> > P
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>> >> >> >>
>> >> >> >> Hi Bruce,
>> >> >> >>
>> >> >> >> Thanks for the response..
>> >> >> >>
>> >> >> >> I had already tried the tutorial we went thru in LA.. it works
>> as
>> >> it
>> >> >> is..
>> >> >> >> however when I tried to follow steps using our own wsdl.. it
>> went
>> >> thru
>> >> >> >> and
>> >> >> >> gave me build successful.. however did not generate any
>> classes..
>> >> >> >>
>> >> >> >> I had gone and changed the /src/main/resources/xbean.xml
>> >> wsdlResource
>> >> >> to
>> >> >> >> have my file name rather than the standard service.wsdl.
>> >> >> >>
>> >> >> >> Not sure where is the issue.. This WSDL has been tested OK and I
>> >> have
>> >> >> >> been
>> >> >> >> able to generate client and server stus using Eclipse plugin for
>> >> Xfire
>> >> >> I
>> >> >> >> got
>> >> >> >> from Xfire website..
>> >> >> >>
>> >> >> >>
>> >> >> >> Please help.
>> >> >> >>
>> >> >> >> Thanks
>> >> >> >> Mukesh
>> >> >> >>
>> >> >> >> bsnyder wrote:
>> >> >> >> >
>> >> >> >> > On 8/17/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>> >> >> >> >>
>> >> >> >> >> I want to develop a Webservice based on WSDL and host it on
>> >> >> >> Servicemix.
>> >> >> >> >>
>> >> >> >> >> I understand there is JSR 181 Archetype in Maven.. How could
>> we
>> >> use
>> >> >> it
>> >> >> >> >> for
>> >> >> >> >> the same.
>> >> >> >> >
>> >> >> >> > Mukesh, there's some docs on the servicemix-jsr181 component
>> >> here:
>> >> >> >> >
>> >> >> >> > http://servicemix.org/site/servicemix-jsr181.html
>> >> >> >> >
>> >> >> >> > Also, this is actually what we went over in L.A. together WRT
>> >> FUSE.
>> >> >> >> > There is a walkthrough of this using the ServiceMix tooling
>> here:
>> >> >> >> >
>> >> >> >> > http://devzone.logicblaze.com/site/how-tos.html
>> >> >> >> >
>> >> >> >> > It's titled, 'Creating Contract First Web Services in FUSE'.
>> >> >> >> >
>> >> >> >> > Bruce
>> >> >> >> > --
>> >> >> >> > perl -e 'print
>> >> >> >> >
>> >> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>> >> >> >> > );'
>> >> >> >> >
>> >> >> >> > Apache Geronimo - http://geronimo.apache.org/
>> >> >> >> > Apache ActiveMQ - http://incubator.apache.org/activemq/
>> >> >> >> > Apache ServiceMix - http://incubator.apache.org/servicemix/
>> >> >> >> > Castor - http://castor.org/
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >> --
>> >> >> >> View this message in context:
>> >> >> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873283
>> >> >> >> Sent from the ServiceMix - User forum at Nabble.com.
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873536
>> >> >> Sent from the ServiceMix - User forum at Nabble.com.
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873941
>> >> Sent from the ServiceMix - User forum at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5874092
>> Sent from the ServiceMix - User forum at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5874482
Sent from the ServiceMix - User forum at Nabble.com.


Re: Maven Archetypes

Posted by Philip Dodds <ph...@gmail.com>.
You could just pastebin the wsdl and send the link

http://pastebin.com/

P


On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>
> I tried uploading the file and get an exception
>
> /home/nabble/nabble/user-files/111792/service.wsdl ( no such file or
> directory)..
>
> Is there any other way I can send the file.
>
> Thanks
> Mukesh Mediratta
>
>
>
> Philip Dodds-2 wrote:
> >
> > Can you send the wsdl that you are trying to generate?
> >
> > P
> >
> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
> >>
> >> I had gone ahead and deleted entire project from my workspace and
> >> recreated..
> >> This time I just copied contents of my wsdl file to service.wsdl.
> >>
> >> Generated sources and got exceptions..
> >>
> >> Based on your suggestion I did mvn clean and then generated sources
> >> again..
> >> and got exceptions again as follows:
> >>
> >> I see some classes generated under /ws/common and /ws/routingandflow but
> >> not
> >> the classes under /ws
> >>
> >> Thanks
> >> Mukesh
> >>
> >>
> >> [INFO]
> >> ----------------------------------------------------------------------------
> >> [INFO] Building An example JSR-181 Service Unit
> >> [INFO]    task-segment: [generate-sources]
> >> [INFO]
> >> ----------------------------------------------------------------------------
> >> [WARN] Unable to get resource from repository apache.snapshots
> >> (http://cvs.apache.org/maven-snapshot-repository)
> >> [WARN] Unable to get resource from repository logicblaze.snapshots
> >> (http://repo.logicblaze.com/maven2-all)
> >> [WARN] Unable to get resource from repository central
> >> (http://repo1.maven.org/maven2)
> >> [WARN] Unable to get resource from repository apache.snapshots
> >> (http://cvs.apache.org/maven-snapshot-repository)
> >> [WARN] Unable to get resource from repository logicblaze.snapshots
> >> (http://repo.logicblaze.com/maven2-all)
> >> [WARN] Unable to get resource from repository central
> >> (http://repo1.maven.org/maven2)
> >> [WARN] Unable to get resource from repository apache.snapshots
> >> (http://cvs.apache.org/maven-snapshot-repository)
> >> [WARN] Unable to get resource from repository logicblaze.snapshots
> >> (http://repo.logicblaze.com/maven2-all)
> >> [WARN] Unable to get resource from repository central
> >> (http://repo1.maven.org/maven2)
> >> [WARN]
> >>         Artifact ant:ant:jar:1.6.5:runtime retains local scope 'runtime'
> >> overriding
> >> broader scope 'compile'
> >>         given by a dependency. If this is not intended, modify or remove
> >> the local
> >> scope.
> >>
> >> Aug 18, 2006 1:14:11 PM org.codehaus.xfire.gen.Wsdl11Generator generate
> >> INFO: Generating code for WSDL at
> >> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl with a base URI of
> >> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl
> >> Aug 18, 2006 1:14:13 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl
> >> warning
> >> SEVERE: Error generating JAXB classes: src-resolve.4.2: Error resolving
> >> component 'common:Credentials'. It was detected that 'common:Credentials'
> >> is
> >> in namespace 'http://caxchange.nci.nih.gov/ws/common', but components
> >> from
> >> this namespace are not referenceable from schema document
> >> 'file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2'. If
> >> this
> >> is the incorrect namespace, perhaps the prefix of 'common:Credentials'
> >> needs
> >> to be changed. If this is the correct namespace, then an appropriate
> >> 'import' tag should be added to
> >> 'file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2'. at
> >> -1,-1 in
> >> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2
> >> [INFO] antrun:run {execution: default}
> >> [INFO] Executing tasks
> >> gov\nih\nci\caxchange\ws\common\Credentials.java
> >> gov\nih\nci\caxchange\ws\common\ErrorCodes.java
> >> gov\nih\nci\caxchange\ws\common\ErrorDetails.java
> >> gov\nih\nci\caxchange\ws\common\ObjectFactory.java
> >> gov\nih\nci\caxchange\ws\common\package-info.java
> >> gov\nih\nci\caxchange\ws\routingandworkflow\Acknowledgement.java
> >> gov\nih\nci\caxchange\ws\routingandworkflow\AcknowledgementStatuses.java
> >> gov\nih\nci\caxchange\ws\routingandworkflow\KnownTypes.java
> >> gov\nih\nci\caxchange\ws\routingandworkflow\MessagePayload.java
> >> gov\nih\nci\caxchange\ws\routingandworkflow\ObjectFactory.java
> >> gov\nih\nci\caxchange\ws\routingandworkflow\PayloadTypes.java
> >> gov\nih\nci\caxchange\ws\routingandworkflow\ProcessingInstructions.java
> >> gov\nih\nci\caxchange\ws\routingandworkflow\RoutingAndWorkflowRequest.java
> >> gov\nih\nci\caxchange\ws\routingandworkflow\Workflow.java
> >> gov\nih\nci\caxchange\ws\routingandworkflow\package-info.java
> >> Aug 18, 2006 1:14:16 PM
> >> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
> >> INFO: Creating class gov.nih.nci.caxchange.ws.RoutingAndWorkflowService
> >> Aug 18, 2006 1:14:16 PM
> >> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
> >> INFO: Creating class gov.nih.nci.caxchange.ws.RoutingAndWorkFlowImpl
> >> [ERROR] mojo-execute : antrun:run {execution: default}
> >> Diagnosis: Error executing ant tasks
> >> FATAL ERROR: Error executing Maven for a project
> >> [ERROR] project-execute :
> >> com.mycompany:caxsvc:jbi-service-unit:1.0-SNAPSHOT
> >> (  task-segment: [generate-sources] )
> >> Diagnosis: Error executing ant tasks
> >> FATAL ERROR: Error executing Maven for a project
> >> org.apache.maven.lifecycle.LifecycleExecutionException: Error executing
> >> ant
> >> tasks
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
> >>         at
> >> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
> >>         at
> >> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
> >>         at
> >> org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
> >> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
> >> executing
> >> ant tasks
> >>         at
> >> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:109)
> >>         at
> >> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
> >>         at
> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
> >>         ... 8 more
> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
> >>         at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:44)
> >>         at
> >> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >>         at org.apache.tools.ant.Task.perform(Task.java:364)
> >>         at org.apache.tools.ant.Target.execute(Target.java:341)
> >>         at
> >> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:99)
> >>         ... 11 more
> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
> >>         at com.sun.codemodel.JPackage._class(JPackage.java:188)
> >>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:178)
> >>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:154)
> >>         at
> >> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:68)
> >>         at
> >> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:53)
> >>         at
> >> org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:126)
> >>         at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:40)
> >>         ... 15 more
> >>
> >>
> >> Philip Dodds-2 wrote:
> >> >
> >> > Can you try and mvn clean on the project and then try again?
> >> >
> >> > Thanks
> >> >
> >> > Philip
> >> >
> >> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
> >> >>
> >> >> Thanks Philip,
> >> >>
> >> >> I made the change and got exceptions this time.. If you would like to
> >> try
> >> >> this at your end may be I can send you the wsdl itself.
> >> >>
> >> >> [ERROR] mojo-execute : antrun:run {execution: default}
> >> >> Diagnosis: Error executing ant tasks
> >> >> FATAL ERROR: Error executing Maven for a project
> >> >> [ERROR] project-execute :
> >> >> com.mycompany:caxsvc:jbi-service-unit:1.0-SNAPSHOT
> >> >> (  task-segment: [generate-sources] )
> >> >> Diagnosis: Error executing ant tasks
> >> >> FATAL ERROR: Error executing Maven for a project
> >> >> org.apache.maven.lifecycle.LifecycleExecutionException: Error
> >> executing
> >> >> ant
> >> >> tasks
> >> >>         at
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
> >> >>         at
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
> >> >>         at
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
> >> >>         at
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
> >> >>         at
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
> >> >>         at
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
> >> >>         at
> >> >>
> >> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
> >> >>         at
> >> >>
> >> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
> >> >>         at
> >> >> org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
> >> >> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
> >> >> executing
> >> >> ant tasks
> >> >>         at
> >> >>
> >> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:109)
> >> >>         at
> >> >> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
> >> >>         at
> >> >>
> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
> >> >>         at
> >> >>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
> >> >>         ... 8 more
> >> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
> >> >>         at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:44)
> >> >>         at
> >> >> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >> >>         at org.apache.tools.ant.Task.perform(Task.java:364)
> >> >>         at org.apache.tools.ant.Target.execute(Target.java:341)
> >> >>         at
> >> >>
> >> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:99)
> >> >>         ... 11 more
> >> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
> >> >>         at com.sun.codemodel.JPackage._class(JPackage.java:188)
> >> >>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:178)
> >> >>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:154)
> >> >>         at
> >> >>
> >> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:68)
> >> >>         at
> >> >>
> >> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:53)
> >> >>         at
> >> >>
> >> org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:126)
> >> >>         at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:40)
> >> >>         ... 15 more
> >> >>
> >> >>
> >> >>
> >> >> Philip Dodds-2 wrote:
> >> >> >
> >> >> > In the pom.xml I believe it explicitly names the service.wsdl in teh
> >> >> > plugin section you might want to change this to be your new WSDL
> >> file.
> >> >> >
> >> >> > P
> >> >> >
> >> >> >
> >> >> >
> >> >> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
> >> >> >>
> >> >> >> Hi Bruce,
> >> >> >>
> >> >> >> Thanks for the response..
> >> >> >>
> >> >> >> I had already tried the tutorial we went thru in LA.. it works as
> >> it
> >> >> is..
> >> >> >> however when I tried to follow steps using our own wsdl.. it went
> >> thru
> >> >> >> and
> >> >> >> gave me build successful.. however did not generate any classes..
> >> >> >>
> >> >> >> I had gone and changed the /src/main/resources/xbean.xml
> >> wsdlResource
> >> >> to
> >> >> >> have my file name rather than the standard service.wsdl.
> >> >> >>
> >> >> >> Not sure where is the issue.. This WSDL has been tested OK and I
> >> have
> >> >> >> been
> >> >> >> able to generate client and server stus using Eclipse plugin for
> >> Xfire
> >> >> I
> >> >> >> got
> >> >> >> from Xfire website..
> >> >> >>
> >> >> >>
> >> >> >> Please help.
> >> >> >>
> >> >> >> Thanks
> >> >> >> Mukesh
> >> >> >>
> >> >> >> bsnyder wrote:
> >> >> >> >
> >> >> >> > On 8/17/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
> >> >> >> >>
> >> >> >> >> I want to develop a Webservice based on WSDL and host it on
> >> >> >> Servicemix.
> >> >> >> >>
> >> >> >> >> I understand there is JSR 181 Archetype in Maven.. How could we
> >> use
> >> >> it
> >> >> >> >> for
> >> >> >> >> the same.
> >> >> >> >
> >> >> >> > Mukesh, there's some docs on the servicemix-jsr181 component
> >> here:
> >> >> >> >
> >> >> >> > http://servicemix.org/site/servicemix-jsr181.html
> >> >> >> >
> >> >> >> > Also, this is actually what we went over in L.A. together WRT
> >> FUSE.
> >> >> >> > There is a walkthrough of this using the ServiceMix tooling here:
> >> >> >> >
> >> >> >> > http://devzone.logicblaze.com/site/how-tos.html
> >> >> >> >
> >> >> >> > It's titled, 'Creating Contract First Web Services in FUSE'.
> >> >> >> >
> >> >> >> > Bruce
> >> >> >> > --
> >> >> >> > perl -e 'print
> >> >> >> >
> >> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> >> >> >> > );'
> >> >> >> >
> >> >> >> > Apache Geronimo - http://geronimo.apache.org/
> >> >> >> > Apache ActiveMQ - http://incubator.apache.org/activemq/
> >> >> >> > Apache ServiceMix - http://incubator.apache.org/servicemix/
> >> >> >> > Castor - http://castor.org/
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873283
> >> >> >> Sent from the ServiceMix - User forum at Nabble.com.
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873536
> >> >> Sent from the ServiceMix - User forum at Nabble.com.
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873941
> >> Sent from the ServiceMix - User forum at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5874092
> Sent from the ServiceMix - User forum at Nabble.com.
>
>

Re: Maven Archetypes

Posted by Mukesh Mediratta <me...@mail.nih.gov>.
I tried uploading the file and get an exception

/home/nabble/nabble/user-files/111792/service.wsdl ( no such file or
directory)..

Is there any other way I can send the file.

Thanks
Mukesh Mediratta



Philip Dodds-2 wrote:
> 
> Can you send the wsdl that you are trying to generate?
> 
> P
> 
> On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>>
>> I had gone ahead and deleted entire project from my workspace and
>> recreated..
>> This time I just copied contents of my wsdl file to service.wsdl.
>>
>> Generated sources and got exceptions..
>>
>> Based on your suggestion I did mvn clean and then generated sources
>> again..
>> and got exceptions again as follows:
>>
>> I see some classes generated under /ws/common and /ws/routingandflow but
>> not
>> the classes under /ws
>>
>> Thanks
>> Mukesh
>>
>>
>> [INFO]
>> ----------------------------------------------------------------------------
>> [INFO] Building An example JSR-181 Service Unit
>> [INFO]    task-segment: [generate-sources]
>> [INFO]
>> ----------------------------------------------------------------------------
>> [WARN] Unable to get resource from repository apache.snapshots
>> (http://cvs.apache.org/maven-snapshot-repository)
>> [WARN] Unable to get resource from repository logicblaze.snapshots
>> (http://repo.logicblaze.com/maven2-all)
>> [WARN] Unable to get resource from repository central
>> (http://repo1.maven.org/maven2)
>> [WARN] Unable to get resource from repository apache.snapshots
>> (http://cvs.apache.org/maven-snapshot-repository)
>> [WARN] Unable to get resource from repository logicblaze.snapshots
>> (http://repo.logicblaze.com/maven2-all)
>> [WARN] Unable to get resource from repository central
>> (http://repo1.maven.org/maven2)
>> [WARN] Unable to get resource from repository apache.snapshots
>> (http://cvs.apache.org/maven-snapshot-repository)
>> [WARN] Unable to get resource from repository logicblaze.snapshots
>> (http://repo.logicblaze.com/maven2-all)
>> [WARN] Unable to get resource from repository central
>> (http://repo1.maven.org/maven2)
>> [WARN]
>>         Artifact ant:ant:jar:1.6.5:runtime retains local scope 'runtime'
>> overriding
>> broader scope 'compile'
>>         given by a dependency. If this is not intended, modify or remove
>> the local
>> scope.
>>
>> Aug 18, 2006 1:14:11 PM org.codehaus.xfire.gen.Wsdl11Generator generate
>> INFO: Generating code for WSDL at
>> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl with a base URI of
>> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl
>> Aug 18, 2006 1:14:13 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl
>> warning
>> SEVERE: Error generating JAXB classes: src-resolve.4.2: Error resolving
>> component 'common:Credentials'. It was detected that 'common:Credentials'
>> is
>> in namespace 'http://caxchange.nci.nih.gov/ws/common', but components
>> from
>> this namespace are not referenceable from schema document
>> 'file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2'. If
>> this
>> is the incorrect namespace, perhaps the prefix of 'common:Credentials'
>> needs
>> to be changed. If this is the correct namespace, then an appropriate
>> 'import' tag should be added to
>> 'file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2'. at
>> -1,-1 in
>> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2
>> [INFO] antrun:run {execution: default}
>> [INFO] Executing tasks
>> gov\nih\nci\caxchange\ws\common\Credentials.java
>> gov\nih\nci\caxchange\ws\common\ErrorCodes.java
>> gov\nih\nci\caxchange\ws\common\ErrorDetails.java
>> gov\nih\nci\caxchange\ws\common\ObjectFactory.java
>> gov\nih\nci\caxchange\ws\common\package-info.java
>> gov\nih\nci\caxchange\ws\routingandworkflow\Acknowledgement.java
>> gov\nih\nci\caxchange\ws\routingandworkflow\AcknowledgementStatuses.java
>> gov\nih\nci\caxchange\ws\routingandworkflow\KnownTypes.java
>> gov\nih\nci\caxchange\ws\routingandworkflow\MessagePayload.java
>> gov\nih\nci\caxchange\ws\routingandworkflow\ObjectFactory.java
>> gov\nih\nci\caxchange\ws\routingandworkflow\PayloadTypes.java
>> gov\nih\nci\caxchange\ws\routingandworkflow\ProcessingInstructions.java
>> gov\nih\nci\caxchange\ws\routingandworkflow\RoutingAndWorkflowRequest.java
>> gov\nih\nci\caxchange\ws\routingandworkflow\Workflow.java
>> gov\nih\nci\caxchange\ws\routingandworkflow\package-info.java
>> Aug 18, 2006 1:14:16 PM
>> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
>> INFO: Creating class gov.nih.nci.caxchange.ws.RoutingAndWorkflowService
>> Aug 18, 2006 1:14:16 PM
>> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
>> INFO: Creating class gov.nih.nci.caxchange.ws.RoutingAndWorkFlowImpl
>> [ERROR] mojo-execute : antrun:run {execution: default}
>> Diagnosis: Error executing ant tasks
>> FATAL ERROR: Error executing Maven for a project
>> [ERROR] project-execute :
>> com.mycompany:caxsvc:jbi-service-unit:1.0-SNAPSHOT
>> (  task-segment: [generate-sources] )
>> Diagnosis: Error executing ant tasks
>> FATAL ERROR: Error executing Maven for a project
>> org.apache.maven.lifecycle.LifecycleExecutionException: Error executing
>> ant
>> tasks
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
>>         at
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
>>         at
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
>>         at
>> org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
>> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
>> executing
>> ant tasks
>>         at
>> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:109)
>>         at
>> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
>>         at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>>         ... 8 more
>> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>>         at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:44)
>>         at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>         at org.apache.tools.ant.Target.execute(Target.java:341)
>>         at
>> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:99)
>>         ... 11 more
>> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>>         at com.sun.codemodel.JPackage._class(JPackage.java:188)
>>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:178)
>>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:154)
>>         at
>> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:68)
>>         at
>> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:53)
>>         at
>> org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:126)
>>         at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:40)
>>         ... 15 more
>>
>>
>> Philip Dodds-2 wrote:
>> >
>> > Can you try and mvn clean on the project and then try again?
>> >
>> > Thanks
>> >
>> > Philip
>> >
>> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>> >>
>> >> Thanks Philip,
>> >>
>> >> I made the change and got exceptions this time.. If you would like to
>> try
>> >> this at your end may be I can send you the wsdl itself.
>> >>
>> >> [ERROR] mojo-execute : antrun:run {execution: default}
>> >> Diagnosis: Error executing ant tasks
>> >> FATAL ERROR: Error executing Maven for a project
>> >> [ERROR] project-execute :
>> >> com.mycompany:caxsvc:jbi-service-unit:1.0-SNAPSHOT
>> >> (  task-segment: [generate-sources] )
>> >> Diagnosis: Error executing ant tasks
>> >> FATAL ERROR: Error executing Maven for a project
>> >> org.apache.maven.lifecycle.LifecycleExecutionException: Error
>> executing
>> >> ant
>> >> tasks
>> >>         at
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
>> >>         at
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
>> >>         at
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
>> >>         at
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
>> >>         at
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>> >>         at
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
>> >>         at
>> >>
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
>> >>         at
>> >>
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
>> >>         at
>> >> org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
>> >> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
>> >> executing
>> >> ant tasks
>> >>         at
>> >>
>> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:109)
>> >>         at
>> >> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
>> >>         at
>> >>
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
>> >>         at
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>> >>         ... 8 more
>> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>> >>         at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:44)
>> >>         at
>> >> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>> >>         at org.apache.tools.ant.Task.perform(Task.java:364)
>> >>         at org.apache.tools.ant.Target.execute(Target.java:341)
>> >>         at
>> >>
>> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:99)
>> >>         ... 11 more
>> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>> >>         at com.sun.codemodel.JPackage._class(JPackage.java:188)
>> >>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:178)
>> >>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:154)
>> >>         at
>> >>
>> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:68)
>> >>         at
>> >>
>> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:53)
>> >>         at
>> >>
>> org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:126)
>> >>         at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:40)
>> >>         ... 15 more
>> >>
>> >>
>> >>
>> >> Philip Dodds-2 wrote:
>> >> >
>> >> > In the pom.xml I believe it explicitly names the service.wsdl in teh
>> >> > plugin section you might want to change this to be your new WSDL
>> file.
>> >> >
>> >> > P
>> >> >
>> >> >
>> >> >
>> >> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>> >> >>
>> >> >> Hi Bruce,
>> >> >>
>> >> >> Thanks for the response..
>> >> >>
>> >> >> I had already tried the tutorial we went thru in LA.. it works as
>> it
>> >> is..
>> >> >> however when I tried to follow steps using our own wsdl.. it went
>> thru
>> >> >> and
>> >> >> gave me build successful.. however did not generate any classes..
>> >> >>
>> >> >> I had gone and changed the /src/main/resources/xbean.xml 
>> wsdlResource
>> >> to
>> >> >> have my file name rather than the standard service.wsdl.
>> >> >>
>> >> >> Not sure where is the issue.. This WSDL has been tested OK and I
>> have
>> >> >> been
>> >> >> able to generate client and server stus using Eclipse plugin for
>> Xfire
>> >> I
>> >> >> got
>> >> >> from Xfire website..
>> >> >>
>> >> >>
>> >> >> Please help.
>> >> >>
>> >> >> Thanks
>> >> >> Mukesh
>> >> >>
>> >> >> bsnyder wrote:
>> >> >> >
>> >> >> > On 8/17/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>> >> >> >>
>> >> >> >> I want to develop a Webservice based on WSDL and host it on
>> >> >> Servicemix.
>> >> >> >>
>> >> >> >> I understand there is JSR 181 Archetype in Maven.. How could we
>> use
>> >> it
>> >> >> >> for
>> >> >> >> the same.
>> >> >> >
>> >> >> > Mukesh, there's some docs on the servicemix-jsr181 component
>> here:
>> >> >> >
>> >> >> > http://servicemix.org/site/servicemix-jsr181.html
>> >> >> >
>> >> >> > Also, this is actually what we went over in L.A. together WRT
>> FUSE.
>> >> >> > There is a walkthrough of this using the ServiceMix tooling here:
>> >> >> >
>> >> >> > http://devzone.logicblaze.com/site/how-tos.html
>> >> >> >
>> >> >> > It's titled, 'Creating Contract First Web Services in FUSE'.
>> >> >> >
>> >> >> > Bruce
>> >> >> > --
>> >> >> > perl -e 'print
>> >> >> >
>> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>> >> >> > );'
>> >> >> >
>> >> >> > Apache Geronimo - http://geronimo.apache.org/
>> >> >> > Apache ActiveMQ - http://incubator.apache.org/activemq/
>> >> >> > Apache ServiceMix - http://incubator.apache.org/servicemix/
>> >> >> > Castor - http://castor.org/
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873283
>> >> >> Sent from the ServiceMix - User forum at Nabble.com.
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873536
>> >> Sent from the ServiceMix - User forum at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873941
>> Sent from the ServiceMix - User forum at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5874092
Sent from the ServiceMix - User forum at Nabble.com.


Re: Maven Archetypes

Posted by Philip Dodds <ph...@gmail.com>.
Can you send the wsdl that you are trying to generate?

P

On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>
> I had gone ahead and deleted entire project from my workspace and recreated..
> This time I just copied contents of my wsdl file to service.wsdl.
>
> Generated sources and got exceptions..
>
> Based on your suggestion I did mvn clean and then generated sources again..
> and got exceptions again as follows:
>
> I see some classes generated under /ws/common and /ws/routingandflow but not
> the classes under /ws
>
> Thanks
> Mukesh
>
>
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building An example JSR-181 Service Unit
> [INFO]    task-segment: [generate-sources]
> [INFO]
> ----------------------------------------------------------------------------
> [WARN] Unable to get resource from repository apache.snapshots
> (http://cvs.apache.org/maven-snapshot-repository)
> [WARN] Unable to get resource from repository logicblaze.snapshots
> (http://repo.logicblaze.com/maven2-all)
> [WARN] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> [WARN] Unable to get resource from repository apache.snapshots
> (http://cvs.apache.org/maven-snapshot-repository)
> [WARN] Unable to get resource from repository logicblaze.snapshots
> (http://repo.logicblaze.com/maven2-all)
> [WARN] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> [WARN] Unable to get resource from repository apache.snapshots
> (http://cvs.apache.org/maven-snapshot-repository)
> [WARN] Unable to get resource from repository logicblaze.snapshots
> (http://repo.logicblaze.com/maven2-all)
> [WARN] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> [WARN]
>         Artifact ant:ant:jar:1.6.5:runtime retains local scope 'runtime' overriding
> broader scope 'compile'
>         given by a dependency. If this is not intended, modify or remove the local
> scope.
>
> Aug 18, 2006 1:14:11 PM org.codehaus.xfire.gen.Wsdl11Generator generate
> INFO: Generating code for WSDL at
> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl with a base URI of
> file:/C:/EWS/caxsvc/src/main/resources/service.wsdl
> Aug 18, 2006 1:14:13 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl
> warning
> SEVERE: Error generating JAXB classes: src-resolve.4.2: Error resolving
> component 'common:Credentials'. It was detected that 'common:Credentials' is
> in namespace 'http://caxchange.nci.nih.gov/ws/common', but components from
> this namespace are not referenceable from schema document
> 'file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2'. If this
> is the incorrect namespace, perhaps the prefix of 'common:Credentials' needs
> to be changed. If this is the correct namespace, then an appropriate
> 'import' tag should be added to
> 'file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2'. at
> -1,-1 in file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2
> [INFO] antrun:run {execution: default}
> [INFO] Executing tasks
> gov\nih\nci\caxchange\ws\common\Credentials.java
> gov\nih\nci\caxchange\ws\common\ErrorCodes.java
> gov\nih\nci\caxchange\ws\common\ErrorDetails.java
> gov\nih\nci\caxchange\ws\common\ObjectFactory.java
> gov\nih\nci\caxchange\ws\common\package-info.java
> gov\nih\nci\caxchange\ws\routingandworkflow\Acknowledgement.java
> gov\nih\nci\caxchange\ws\routingandworkflow\AcknowledgementStatuses.java
> gov\nih\nci\caxchange\ws\routingandworkflow\KnownTypes.java
> gov\nih\nci\caxchange\ws\routingandworkflow\MessagePayload.java
> gov\nih\nci\caxchange\ws\routingandworkflow\ObjectFactory.java
> gov\nih\nci\caxchange\ws\routingandworkflow\PayloadTypes.java
> gov\nih\nci\caxchange\ws\routingandworkflow\ProcessingInstructions.java
> gov\nih\nci\caxchange\ws\routingandworkflow\RoutingAndWorkflowRequest.java
> gov\nih\nci\caxchange\ws\routingandworkflow\Workflow.java
> gov\nih\nci\caxchange\ws\routingandworkflow\package-info.java
> Aug 18, 2006 1:14:16 PM
> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
> INFO: Creating class gov.nih.nci.caxchange.ws.RoutingAndWorkflowService
> Aug 18, 2006 1:14:16 PM
> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
> INFO: Creating class gov.nih.nci.caxchange.ws.RoutingAndWorkFlowImpl
> [ERROR] mojo-execute : antrun:run {execution: default}
> Diagnosis: Error executing ant tasks
> FATAL ERROR: Error executing Maven for a project
> [ERROR] project-execute : com.mycompany:caxsvc:jbi-service-unit:1.0-SNAPSHOT
> (  task-segment: [generate-sources] )
> Diagnosis: Error executing ant tasks
> FATAL ERROR: Error executing Maven for a project
> org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant
> tasks
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
>         at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
>         at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
>         at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing
> ant tasks
>         at
> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:109)
>         at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
>         at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>         ... 8 more
> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>         at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:44)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at
> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:99)
>         ... 11 more
> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>         at com.sun.codemodel.JPackage._class(JPackage.java:188)
>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:178)
>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:154)
>         at
> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:68)
>         at
> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:53)
>         at
> org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:126)
>         at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:40)
>         ... 15 more
>
>
> Philip Dodds-2 wrote:
> >
> > Can you try and mvn clean on the project and then try again?
> >
> > Thanks
> >
> > Philip
> >
> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
> >>
> >> Thanks Philip,
> >>
> >> I made the change and got exceptions this time.. If you would like to try
> >> this at your end may be I can send you the wsdl itself.
> >>
> >> [ERROR] mojo-execute : antrun:run {execution: default}
> >> Diagnosis: Error executing ant tasks
> >> FATAL ERROR: Error executing Maven for a project
> >> [ERROR] project-execute :
> >> com.mycompany:caxsvc:jbi-service-unit:1.0-SNAPSHOT
> >> (  task-segment: [generate-sources] )
> >> Diagnosis: Error executing ant tasks
> >> FATAL ERROR: Error executing Maven for a project
> >> org.apache.maven.lifecycle.LifecycleExecutionException: Error executing
> >> ant
> >> tasks
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
> >>         at
> >> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
> >>         at
> >> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
> >>         at
> >> org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
> >> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
> >> executing
> >> ant tasks
> >>         at
> >> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:109)
> >>         at
> >> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
> >>         at
> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
> >>         ... 8 more
> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
> >>         at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:44)
> >>         at
> >> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >>         at org.apache.tools.ant.Task.perform(Task.java:364)
> >>         at org.apache.tools.ant.Target.execute(Target.java:341)
> >>         at
> >> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:99)
> >>         ... 11 more
> >> Caused by: com.sun.codemodel.JClassAlreadyExistsException
> >>         at com.sun.codemodel.JPackage._class(JPackage.java:188)
> >>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:178)
> >>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:154)
> >>         at
> >> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:68)
> >>         at
> >> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:53)
> >>         at
> >> org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:126)
> >>         at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:40)
> >>         ... 15 more
> >>
> >>
> >>
> >> Philip Dodds-2 wrote:
> >> >
> >> > In the pom.xml I believe it explicitly names the service.wsdl in teh
> >> > plugin section you might want to change this to be your new WSDL file.
> >> >
> >> > P
> >> >
> >> >
> >> >
> >> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
> >> >>
> >> >> Hi Bruce,
> >> >>
> >> >> Thanks for the response..
> >> >>
> >> >> I had already tried the tutorial we went thru in LA.. it works as it
> >> is..
> >> >> however when I tried to follow steps using our own wsdl.. it went thru
> >> >> and
> >> >> gave me build successful.. however did not generate any classes..
> >> >>
> >> >> I had gone and changed the /src/main/resources/xbean.xml  wsdlResource
> >> to
> >> >> have my file name rather than the standard service.wsdl.
> >> >>
> >> >> Not sure where is the issue.. This WSDL has been tested OK and I have
> >> >> been
> >> >> able to generate client and server stus using Eclipse plugin for Xfire
> >> I
> >> >> got
> >> >> from Xfire website..
> >> >>
> >> >>
> >> >> Please help.
> >> >>
> >> >> Thanks
> >> >> Mukesh
> >> >>
> >> >> bsnyder wrote:
> >> >> >
> >> >> > On 8/17/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
> >> >> >>
> >> >> >> I want to develop a Webservice based on WSDL and host it on
> >> >> Servicemix.
> >> >> >>
> >> >> >> I understand there is JSR 181 Archetype in Maven.. How could we use
> >> it
> >> >> >> for
> >> >> >> the same.
> >> >> >
> >> >> > Mukesh, there's some docs on the servicemix-jsr181 component here:
> >> >> >
> >> >> > http://servicemix.org/site/servicemix-jsr181.html
> >> >> >
> >> >> > Also, this is actually what we went over in L.A. together WRT FUSE.
> >> >> > There is a walkthrough of this using the ServiceMix tooling here:
> >> >> >
> >> >> > http://devzone.logicblaze.com/site/how-tos.html
> >> >> >
> >> >> > It's titled, 'Creating Contract First Web Services in FUSE'.
> >> >> >
> >> >> > Bruce
> >> >> > --
> >> >> > perl -e 'print
> >> >> > unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> >> >> > );'
> >> >> >
> >> >> > Apache Geronimo - http://geronimo.apache.org/
> >> >> > Apache ActiveMQ - http://incubator.apache.org/activemq/
> >> >> > Apache ServiceMix - http://incubator.apache.org/servicemix/
> >> >> > Castor - http://castor.org/
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873283
> >> >> Sent from the ServiceMix - User forum at Nabble.com.
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873536
> >> Sent from the ServiceMix - User forum at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873941
> Sent from the ServiceMix - User forum at Nabble.com.
>
>

Re: Maven Archetypes

Posted by Mukesh Mediratta <me...@mail.nih.gov>.
I had gone ahead and deleted entire project from my workspace and recreated..
This time I just copied contents of my wsdl file to service.wsdl.

Generated sources and got exceptions..

Based on your suggestion I did mvn clean and then generated sources again..
and got exceptions again as follows:

I see some classes generated under /ws/common and /ws/routingandflow but not
the classes under /ws

Thanks
Mukesh


[INFO]
----------------------------------------------------------------------------
[INFO] Building An example JSR-181 Service Unit
[INFO]    task-segment: [generate-sources]
[INFO]
----------------------------------------------------------------------------
[WARN] Unable to get resource from repository apache.snapshots
(http://cvs.apache.org/maven-snapshot-repository)
[WARN] Unable to get resource from repository logicblaze.snapshots
(http://repo.logicblaze.com/maven2-all)
[WARN] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
[WARN] Unable to get resource from repository apache.snapshots
(http://cvs.apache.org/maven-snapshot-repository)
[WARN] Unable to get resource from repository logicblaze.snapshots
(http://repo.logicblaze.com/maven2-all)
[WARN] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
[WARN] Unable to get resource from repository apache.snapshots
(http://cvs.apache.org/maven-snapshot-repository)
[WARN] Unable to get resource from repository logicblaze.snapshots
(http://repo.logicblaze.com/maven2-all)
[WARN] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
[WARN] 
	Artifact ant:ant:jar:1.6.5:runtime retains local scope 'runtime' overriding
broader scope 'compile'
	given by a dependency. If this is not intended, modify or remove the local
scope.

Aug 18, 2006 1:14:11 PM org.codehaus.xfire.gen.Wsdl11Generator generate
INFO: Generating code for WSDL at
file:/C:/EWS/caxsvc/src/main/resources/service.wsdl with a base URI of
file:/C:/EWS/caxsvc/src/main/resources/service.wsdl
Aug 18, 2006 1:14:13 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl
warning
SEVERE: Error generating JAXB classes: src-resolve.4.2: Error resolving
component 'common:Credentials'. It was detected that 'common:Credentials' is
in namespace 'http://caxchange.nci.nih.gov/ws/common', but components from
this namespace are not referenceable from schema document
'file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2'. If this
is the incorrect namespace, perhaps the prefix of 'common:Credentials' needs
to be changed. If this is the correct namespace, then an appropriate
'import' tag should be added to
'file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2'. at
-1,-1 in file:/C:/EWS/caxsvc/src/main/resources/service.wsdl#types?schema2
[INFO] antrun:run {execution: default}
[INFO] Executing tasks
gov\nih\nci\caxchange\ws\common\Credentials.java
gov\nih\nci\caxchange\ws\common\ErrorCodes.java
gov\nih\nci\caxchange\ws\common\ErrorDetails.java
gov\nih\nci\caxchange\ws\common\ObjectFactory.java
gov\nih\nci\caxchange\ws\common\package-info.java
gov\nih\nci\caxchange\ws\routingandworkflow\Acknowledgement.java
gov\nih\nci\caxchange\ws\routingandworkflow\AcknowledgementStatuses.java
gov\nih\nci\caxchange\ws\routingandworkflow\KnownTypes.java
gov\nih\nci\caxchange\ws\routingandworkflow\MessagePayload.java
gov\nih\nci\caxchange\ws\routingandworkflow\ObjectFactory.java
gov\nih\nci\caxchange\ws\routingandworkflow\PayloadTypes.java
gov\nih\nci\caxchange\ws\routingandworkflow\ProcessingInstructions.java
gov\nih\nci\caxchange\ws\routingandworkflow\RoutingAndWorkflowRequest.java
gov\nih\nci\caxchange\ws\routingandworkflow\Workflow.java
gov\nih\nci\caxchange\ws\routingandworkflow\package-info.java
Aug 18, 2006 1:14:16 PM
org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
INFO: Creating class gov.nih.nci.caxchange.ws.RoutingAndWorkflowService
Aug 18, 2006 1:14:16 PM
org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
INFO: Creating class gov.nih.nci.caxchange.ws.RoutingAndWorkFlowImpl
[ERROR] mojo-execute : antrun:run {execution: default}
Diagnosis: Error executing ant tasks
FATAL ERROR: Error executing Maven for a project
[ERROR] project-execute : com.mycompany:caxsvc:jbi-service-unit:1.0-SNAPSHOT
(  task-segment: [generate-sources] )
Diagnosis: Error executing ant tasks
FATAL ERROR: Error executing Maven for a project
org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant
tasks
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
	at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
	at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
	at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing
ant tasks
	at
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:109)
	at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
	at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
	... 8 more
Caused by: com.sun.codemodel.JClassAlreadyExistsException
	at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:44)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
	at org.apache.tools.ant.Task.perform(Task.java:364)
	at org.apache.tools.ant.Target.execute(Target.java:341)
	at
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:99)
	... 11 more
Caused by: com.sun.codemodel.JClassAlreadyExistsException
	at com.sun.codemodel.JPackage._class(JPackage.java:188)
	at com.sun.codemodel.JCodeModel._class(JCodeModel.java:178)
	at com.sun.codemodel.JCodeModel._class(JCodeModel.java:154)
	at
org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:68)
	at
org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:53)
	at
org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:126)
	at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:40)
	... 15 more


Philip Dodds-2 wrote:
> 
> Can you try and mvn clean on the project and then try again?
> 
> Thanks
> 
> Philip
> 
> On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>>
>> Thanks Philip,
>>
>> I made the change and got exceptions this time.. If you would like to try
>> this at your end may be I can send you the wsdl itself.
>>
>> [ERROR] mojo-execute : antrun:run {execution: default}
>> Diagnosis: Error executing ant tasks
>> FATAL ERROR: Error executing Maven for a project
>> [ERROR] project-execute :
>> com.mycompany:caxsvc:jbi-service-unit:1.0-SNAPSHOT
>> (  task-segment: [generate-sources] )
>> Diagnosis: Error executing ant tasks
>> FATAL ERROR: Error executing Maven for a project
>> org.apache.maven.lifecycle.LifecycleExecutionException: Error executing
>> ant
>> tasks
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
>>         at
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
>>         at
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
>>         at
>> org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
>> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
>> executing
>> ant tasks
>>         at
>> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:109)
>>         at
>> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
>>         at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>>         ... 8 more
>> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>>         at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:44)
>>         at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>         at org.apache.tools.ant.Target.execute(Target.java:341)
>>         at
>> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:99)
>>         ... 11 more
>> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>>         at com.sun.codemodel.JPackage._class(JPackage.java:188)
>>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:178)
>>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:154)
>>         at
>> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:68)
>>         at
>> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:53)
>>         at
>> org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:126)
>>         at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:40)
>>         ... 15 more
>>
>>
>>
>> Philip Dodds-2 wrote:
>> >
>> > In the pom.xml I believe it explicitly names the service.wsdl in teh
>> > plugin section you might want to change this to be your new WSDL file.
>> >
>> > P
>> >
>> >
>> >
>> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>> >>
>> >> Hi Bruce,
>> >>
>> >> Thanks for the response..
>> >>
>> >> I had already tried the tutorial we went thru in LA.. it works as it
>> is..
>> >> however when I tried to follow steps using our own wsdl.. it went thru
>> >> and
>> >> gave me build successful.. however did not generate any classes..
>> >>
>> >> I had gone and changed the /src/main/resources/xbean.xml  wsdlResource
>> to
>> >> have my file name rather than the standard service.wsdl.
>> >>
>> >> Not sure where is the issue.. This WSDL has been tested OK and I have
>> >> been
>> >> able to generate client and server stus using Eclipse plugin for Xfire
>> I
>> >> got
>> >> from Xfire website..
>> >>
>> >>
>> >> Please help.
>> >>
>> >> Thanks
>> >> Mukesh
>> >>
>> >> bsnyder wrote:
>> >> >
>> >> > On 8/17/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>> >> >>
>> >> >> I want to develop a Webservice based on WSDL and host it on
>> >> Servicemix.
>> >> >>
>> >> >> I understand there is JSR 181 Archetype in Maven.. How could we use
>> it
>> >> >> for
>> >> >> the same.
>> >> >
>> >> > Mukesh, there's some docs on the servicemix-jsr181 component here:
>> >> >
>> >> > http://servicemix.org/site/servicemix-jsr181.html
>> >> >
>> >> > Also, this is actually what we went over in L.A. together WRT FUSE.
>> >> > There is a walkthrough of this using the ServiceMix tooling here:
>> >> >
>> >> > http://devzone.logicblaze.com/site/how-tos.html
>> >> >
>> >> > It's titled, 'Creating Contract First Web Services in FUSE'.
>> >> >
>> >> > Bruce
>> >> > --
>> >> > perl -e 'print
>> >> > unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>> >> > );'
>> >> >
>> >> > Apache Geronimo - http://geronimo.apache.org/
>> >> > Apache ActiveMQ - http://incubator.apache.org/activemq/
>> >> > Apache ServiceMix - http://incubator.apache.org/servicemix/
>> >> > Castor - http://castor.org/
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873283
>> >> Sent from the ServiceMix - User forum at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873536
>> Sent from the ServiceMix - User forum at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873941
Sent from the ServiceMix - User forum at Nabble.com.


Re: Maven Archetypes

Posted by Philip Dodds <ph...@gmail.com>.
Can you try and mvn clean on the project and then try again?

Thanks

Philip

On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>
> Thanks Philip,
>
> I made the change and got exceptions this time.. If you would like to try
> this at your end may be I can send you the wsdl itself.
>
> [ERROR] mojo-execute : antrun:run {execution: default}
> Diagnosis: Error executing ant tasks
> FATAL ERROR: Error executing Maven for a project
> [ERROR] project-execute : com.mycompany:caxsvc:jbi-service-unit:1.0-SNAPSHOT
> (  task-segment: [generate-sources] )
> Diagnosis: Error executing ant tasks
> FATAL ERROR: Error executing Maven for a project
> org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant
> tasks
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
>         at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
>         at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
>         at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing
> ant tasks
>         at
> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:109)
>         at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
>         at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>         ... 8 more
> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>         at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:44)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at
> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:99)
>         ... 11 more
> Caused by: com.sun.codemodel.JClassAlreadyExistsException
>         at com.sun.codemodel.JPackage._class(JPackage.java:188)
>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:178)
>         at com.sun.codemodel.JCodeModel._class(JCodeModel.java:154)
>         at
> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:68)
>         at
> org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:53)
>         at
> org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:126)
>         at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:40)
>         ... 15 more
>
>
>
> Philip Dodds-2 wrote:
> >
> > In the pom.xml I believe it explicitly names the service.wsdl in teh
> > plugin section you might want to change this to be your new WSDL file.
> >
> > P
> >
> >
> >
> > On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
> >>
> >> Hi Bruce,
> >>
> >> Thanks for the response..
> >>
> >> I had already tried the tutorial we went thru in LA.. it works as it is..
> >> however when I tried to follow steps using our own wsdl.. it went thru
> >> and
> >> gave me build successful.. however did not generate any classes..
> >>
> >> I had gone and changed the /src/main/resources/xbean.xml  wsdlResource to
> >> have my file name rather than the standard service.wsdl.
> >>
> >> Not sure where is the issue.. This WSDL has been tested OK and I have
> >> been
> >> able to generate client and server stus using Eclipse plugin for Xfire I
> >> got
> >> from Xfire website..
> >>
> >>
> >> Please help.
> >>
> >> Thanks
> >> Mukesh
> >>
> >> bsnyder wrote:
> >> >
> >> > On 8/17/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
> >> >>
> >> >> I want to develop a Webservice based on WSDL and host it on
> >> Servicemix.
> >> >>
> >> >> I understand there is JSR 181 Archetype in Maven.. How could we use it
> >> >> for
> >> >> the same.
> >> >
> >> > Mukesh, there's some docs on the servicemix-jsr181 component here:
> >> >
> >> > http://servicemix.org/site/servicemix-jsr181.html
> >> >
> >> > Also, this is actually what we went over in L.A. together WRT FUSE.
> >> > There is a walkthrough of this using the ServiceMix tooling here:
> >> >
> >> > http://devzone.logicblaze.com/site/how-tos.html
> >> >
> >> > It's titled, 'Creating Contract First Web Services in FUSE'.
> >> >
> >> > Bruce
> >> > --
> >> > perl -e 'print
> >> > unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> >> > );'
> >> >
> >> > Apache Geronimo - http://geronimo.apache.org/
> >> > Apache ActiveMQ - http://incubator.apache.org/activemq/
> >> > Apache ServiceMix - http://incubator.apache.org/servicemix/
> >> > Castor - http://castor.org/
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873283
> >> Sent from the ServiceMix - User forum at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873536
> Sent from the ServiceMix - User forum at Nabble.com.
>
>

Re: Maven Archetypes

Posted by Mukesh Mediratta <me...@mail.nih.gov>.
Thanks Philip,

I made the change and got exceptions this time.. If you would like to try
this at your end may be I can send you the wsdl itself.

[ERROR] mojo-execute : antrun:run {execution: default}
Diagnosis: Error executing ant tasks
FATAL ERROR: Error executing Maven for a project
[ERROR] project-execute : com.mycompany:caxsvc:jbi-service-unit:1.0-SNAPSHOT
(  task-segment: [generate-sources] )
Diagnosis: Error executing ant tasks
FATAL ERROR: Error executing Maven for a project
org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant
tasks
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
	at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
	at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
	at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing
ant tasks
	at
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:109)
	at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
	at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
	... 8 more
Caused by: com.sun.codemodel.JClassAlreadyExistsException
	at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:44)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
	at org.apache.tools.ant.Task.perform(Task.java:364)
	at org.apache.tools.ant.Target.execute(Target.java:341)
	at
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:99)
	... 11 more
Caused by: com.sun.codemodel.JClassAlreadyExistsException
	at com.sun.codemodel.JPackage._class(JPackage.java:188)
	at com.sun.codemodel.JCodeModel._class(JCodeModel.java:178)
	at com.sun.codemodel.JCodeModel._class(JCodeModel.java:154)
	at
org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:68)
	at
org.codehaus.xfire.jaxws.gen.ServiceGenerator.generate(ServiceGenerator.java:53)
	at
org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:126)
	at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:40)
	... 15 more



Philip Dodds-2 wrote:
> 
> In the pom.xml I believe it explicitly names the service.wsdl in teh
> plugin section you might want to change this to be your new WSDL file.
> 
> P
> 
> 
> 
> On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>>
>> Hi Bruce,
>>
>> Thanks for the response..
>>
>> I had already tried the tutorial we went thru in LA.. it works as it is..
>> however when I tried to follow steps using our own wsdl.. it went thru
>> and
>> gave me build successful.. however did not generate any classes..
>>
>> I had gone and changed the /src/main/resources/xbean.xml  wsdlResource to
>> have my file name rather than the standard service.wsdl.
>>
>> Not sure where is the issue.. This WSDL has been tested OK and I have
>> been
>> able to generate client and server stus using Eclipse plugin for Xfire I
>> got
>> from Xfire website..
>>
>>
>> Please help.
>>
>> Thanks
>> Mukesh
>>
>> bsnyder wrote:
>> >
>> > On 8/17/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>> >>
>> >> I want to develop a Webservice based on WSDL and host it on
>> Servicemix.
>> >>
>> >> I understand there is JSR 181 Archetype in Maven.. How could we use it
>> >> for
>> >> the same.
>> >
>> > Mukesh, there's some docs on the servicemix-jsr181 component here:
>> >
>> > http://servicemix.org/site/servicemix-jsr181.html
>> >
>> > Also, this is actually what we went over in L.A. together WRT FUSE.
>> > There is a walkthrough of this using the ServiceMix tooling here:
>> >
>> > http://devzone.logicblaze.com/site/how-tos.html
>> >
>> > It's titled, 'Creating Contract First Web Services in FUSE'.
>> >
>> > Bruce
>> > --
>> > perl -e 'print
>> > unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>> > );'
>> >
>> > Apache Geronimo - http://geronimo.apache.org/
>> > Apache ActiveMQ - http://incubator.apache.org/activemq/
>> > Apache ServiceMix - http://incubator.apache.org/servicemix/
>> > Castor - http://castor.org/
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873283
>> Sent from the ServiceMix - User forum at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873536
Sent from the ServiceMix - User forum at Nabble.com.


Re: Maven Archetypes

Posted by Philip Dodds <ph...@gmail.com>.
In the pom.xml I believe it explicitly names the service.wsdl in teh
plugin section you might want to change this to be your new WSDL file.

P



On 8/18/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>
> Hi Bruce,
>
> Thanks for the response..
>
> I had already tried the tutorial we went thru in LA.. it works as it is..
> however when I tried to follow steps using our own wsdl.. it went thru and
> gave me build successful.. however did not generate any classes..
>
> I had gone and changed the /src/main/resources/xbean.xml  wsdlResource to
> have my file name rather than the standard service.wsdl.
>
> Not sure where is the issue.. This WSDL has been tested OK and I have been
> able to generate client and server stus using Eclipse plugin for Xfire I got
> from Xfire website..
>
>
> Please help.
>
> Thanks
> Mukesh
>
> bsnyder wrote:
> >
> > On 8/17/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
> >>
> >> I want to develop a Webservice based on WSDL and host it on Servicemix.
> >>
> >> I understand there is JSR 181 Archetype in Maven.. How could we use it
> >> for
> >> the same.
> >
> > Mukesh, there's some docs on the servicemix-jsr181 component here:
> >
> > http://servicemix.org/site/servicemix-jsr181.html
> >
> > Also, this is actually what we went over in L.A. together WRT FUSE.
> > There is a walkthrough of this using the ServiceMix tooling here:
> >
> > http://devzone.logicblaze.com/site/how-tos.html
> >
> > It's titled, 'Creating Contract First Web Services in FUSE'.
> >
> > Bruce
> > --
> > perl -e 'print
> > unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> > );'
> >
> > Apache Geronimo - http://geronimo.apache.org/
> > Apache ActiveMQ - http://incubator.apache.org/activemq/
> > Apache ServiceMix - http://incubator.apache.org/servicemix/
> > Castor - http://castor.org/
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873283
> Sent from the ServiceMix - User forum at Nabble.com.
>
>

Re: Maven Archetypes

Posted by Mukesh Mediratta <me...@mail.nih.gov>.
Hi Bruce,

Thanks for the response..

I had already tried the tutorial we went thru in LA.. it works as it is..
however when I tried to follow steps using our own wsdl.. it went thru and
gave me build successful.. however did not generate any classes..

I had gone and changed the /src/main/resources/xbean.xml  wsdlResource to
have my file name rather than the standard service.wsdl.

Not sure where is the issue.. This WSDL has been tested OK and I have been
able to generate client and server stus using Eclipse plugin for Xfire I got
from Xfire website..


Please help.

Thanks
Mukesh

bsnyder wrote:
> 
> On 8/17/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>>
>> I want to develop a Webservice based on WSDL and host it on Servicemix.
>>
>> I understand there is JSR 181 Archetype in Maven.. How could we use it
>> for
>> the same.
> 
> Mukesh, there's some docs on the servicemix-jsr181 component here:
> 
> http://servicemix.org/site/servicemix-jsr181.html
> 
> Also, this is actually what we went over in L.A. together WRT FUSE.
> There is a walkthrough of this using the ServiceMix tooling here:
> 
> http://devzone.logicblaze.com/site/how-tos.html
> 
> It's titled, 'Creating Contract First Web Services in FUSE'.
> 
> Bruce
> -- 
> perl -e 'print
> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
> 
> Apache Geronimo - http://geronimo.apache.org/
> Apache ActiveMQ - http://incubator.apache.org/activemq/
> Apache ServiceMix - http://incubator.apache.org/servicemix/
> Castor - http://castor.org/
> 
> 

-- 
View this message in context: http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5873283
Sent from the ServiceMix - User forum at Nabble.com.


Re: Maven Archetypes

Posted by Bruce Snyder <br...@gmail.com>.
On 8/17/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>
> I want to develop a Webservice based on WSDL and host it on Servicemix.
>
> I understand there is JSR 181 Archetype in Maven.. How could we use it for
> the same.

Mukesh, there's some docs on the servicemix-jsr181 component here:

http://servicemix.org/site/servicemix-jsr181.html

Also, this is actually what we went over in L.A. together WRT FUSE.
There is a walkthrough of this using the ServiceMix tooling here:

http://devzone.logicblaze.com/site/how-tos.html

It's titled, 'Creating Contract First Web Services in FUSE'.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://incubator.apache.org/activemq/
Apache ServiceMix - http://incubator.apache.org/servicemix/
Castor - http://castor.org/

Re: Maven Archetypes

Posted by Mukesh Mediratta <me...@mail.nih.gov>.
I want to develop a Webservice based on WSDL and host it on Servicemix.

I understand there is JSR 181 Archetype in Maven.. How could we use it for
the same.

Thanks
Mukesh Mediratta



Philip Dodds-2 wrote:
> 
> No worries - glad is working :)
> 
> P
> 
> On 8/15/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>>
>> Now it is working fine.. Not sure what was the reason before for not
>> working.
>>
>> I shall try for other archetypes and see if I get any issues.
>>
>> Thanks a lot Philip
>>
>>
>>
>> Philip Dodds-2 wrote:
>> >
>> > Is there a build error missing from the bottom of the trace?
>> >
>> > P
>> >
>> > On 8/14/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>> >>
>> >> Thanks Philip,
>> >>
>> >> I tried the example and got
>> >>
>> >> C:\temp\firstApp>mvn -e archetype:create
>> >> -DarchetypeGroupId=org.servicemix.tooli
>> >> ng -DarchetypeArtifactId=servicemix-service-engine
>> >> -DarchtypeVersion=3.0-incubat
>> >> ing-SNAPSHOT -DgroupId=org.apache.servicemix.xslt
>> >> -DartifactId=servicemix-xslt
>> >> + Error stacktraces are turned on.
>> >> [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.pr
>> >> operties
>> >> [INFO] Default ResourceManager initializing. (class
>> >> org.apache.velocity.runtime.
>> >> resource.ResourceManagerImpl)
>> >> [INFO] Resource Loader Instantiated:
>> >> org.codehaus.plexus.velocity.ContextClassLo
>> >> aderResourceLoader
>> >> [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 'V
>> >> M_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
>> >> glob
>> >> al in scope if allowed.
>> >> [INFO] Velocimacro : initialization complete.
>> >> [INFO] Velocity successfully started.
>> >> [INFO] [archetype:create]
>> >> [INFO] Defaulting package to group ID: org.apache.servicemix.xslt
>> >> [INFO]
>> >>
>> ------------------------------------------------------------------------
>> >> [ERROR] BUILD ERROR
>> >>
>> >>
>> >>
>> >> Philip Dodds-2 wrote:
>> >> >
>> >> > You can see the available archetypes in the tooling directory - they
>> >> > all start servicemix-*
>> >> >
>> >> >
>> >>
>> http://people.apache.org/maven-snapshot-repository/org/apache/servicemix/tooling/
>> >> >
>> >> > If you want to use one of the archetypes you can use the Maven
>> command
>> >> > line :
>> >> >
>> >> > mvn archetype:create \
>> >> >         -DarchetypeGroupId=org.apache.servicemix.tooling \
>> >> >         -DarchetypeArtifactId=servicemix-service-engine \
>> >> >         -DarchetypeVersion=3.0-incubating-SNAPSHOT \
>> >> >         -DgroupId=org.apache.servicemix.xslt \
>> >> >         -DartifactId=servicemix-xslt
>> >> >
>> >> > Also the service unit archetypes (ending in service-unit) provide
>> >> > starters for a service unit and will need to be put as a dependent
>> of
>> >> > a service assembly (servicemix-service-assembly).  You might want to
>> >> > read up on the JBI Maven tooling to see how this is done
>> >> > (http://www.servicemix.org/site/maven-jbi-plugin.html)
>> >> >
>> >> > P
>> >> >
>> >> > This example would use the servicemix-service-engine archetype to
>> >> > create a project called servicemix-xslt.
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > On 8/14/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>> >> >>
>> >> >> I am trying to build my first application on ServiceMix.
>> >> >>
>> >> >> I would like to know what maven archetypes are available for
>> >> servicemix
>> >> >> and
>> >> >> how to use them.
>> >> >>
>> >> >> Thanks
>> >> >> Mukesh Mediratta
>> >> >> --
>> >> >> View this message in context:
>> >> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5802812
>> >> >> Sent from the ServiceMix - User forum at Nabble.com.
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5803443
>> >> Sent from the ServiceMix - User forum at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5815209
>> Sent from the ServiceMix - User forum at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5860777
Sent from the ServiceMix - User forum at Nabble.com.


Re: Maven Archetypes

Posted by Philip Dodds <ph...@gmail.com>.
No worries - glad is working :)

P

On 8/15/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>
> Now it is working fine.. Not sure what was the reason before for not working.
>
> I shall try for other archetypes and see if I get any issues.
>
> Thanks a lot Philip
>
>
>
> Philip Dodds-2 wrote:
> >
> > Is there a build error missing from the bottom of the trace?
> >
> > P
> >
> > On 8/14/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
> >>
> >> Thanks Philip,
> >>
> >> I tried the example and got
> >>
> >> C:\temp\firstApp>mvn -e archetype:create
> >> -DarchetypeGroupId=org.servicemix.tooli
> >> ng -DarchetypeArtifactId=servicemix-service-engine
> >> -DarchtypeVersion=3.0-incubat
> >> ing-SNAPSHOT -DgroupId=org.apache.servicemix.xslt
> >> -DartifactId=servicemix-xslt
> >> + Error stacktraces are turned on.
> >> [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.pr
> >> operties
> >> [INFO] Default ResourceManager initializing. (class
> >> org.apache.velocity.runtime.
> >> resource.ResourceManagerImpl)
> >> [INFO] Resource Loader Instantiated:
> >> org.codehaus.plexus.velocity.ContextClassLo
> >> aderResourceLoader
> >> [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 'V
> >> M_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
> >> glob
> >> al in scope if allowed.
> >> [INFO] Velocimacro : initialization complete.
> >> [INFO] Velocity successfully started.
> >> [INFO] [archetype:create]
> >> [INFO] Defaulting package to group ID: org.apache.servicemix.xslt
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [ERROR] BUILD ERROR
> >>
> >>
> >>
> >> Philip Dodds-2 wrote:
> >> >
> >> > You can see the available archetypes in the tooling directory - they
> >> > all start servicemix-*
> >> >
> >> >
> >> http://people.apache.org/maven-snapshot-repository/org/apache/servicemix/tooling/
> >> >
> >> > If you want to use one of the archetypes you can use the Maven command
> >> > line :
> >> >
> >> > mvn archetype:create \
> >> >         -DarchetypeGroupId=org.apache.servicemix.tooling \
> >> >         -DarchetypeArtifactId=servicemix-service-engine \
> >> >         -DarchetypeVersion=3.0-incubating-SNAPSHOT \
> >> >         -DgroupId=org.apache.servicemix.xslt \
> >> >         -DartifactId=servicemix-xslt
> >> >
> >> > Also the service unit archetypes (ending in service-unit) provide
> >> > starters for a service unit and will need to be put as a dependent of
> >> > a service assembly (servicemix-service-assembly).  You might want to
> >> > read up on the JBI Maven tooling to see how this is done
> >> > (http://www.servicemix.org/site/maven-jbi-plugin.html)
> >> >
> >> > P
> >> >
> >> > This example would use the servicemix-service-engine archetype to
> >> > create a project called servicemix-xslt.
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > On 8/14/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
> >> >>
> >> >> I am trying to build my first application on ServiceMix.
> >> >>
> >> >> I would like to know what maven archetypes are available for
> >> servicemix
> >> >> and
> >> >> how to use them.
> >> >>
> >> >> Thanks
> >> >> Mukesh Mediratta
> >> >> --
> >> >> View this message in context:
> >> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5802812
> >> >> Sent from the ServiceMix - User forum at Nabble.com.
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5803443
> >> Sent from the ServiceMix - User forum at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5815209
> Sent from the ServiceMix - User forum at Nabble.com.
>
>

Re: Maven Archetypes

Posted by Mukesh Mediratta <me...@mail.nih.gov>.
Now it is working fine.. Not sure what was the reason before for not working.

I shall try for other archetypes and see if I get any issues.

Thanks a lot Philip



Philip Dodds-2 wrote:
> 
> Is there a build error missing from the bottom of the trace?
> 
> P
> 
> On 8/14/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>>
>> Thanks Philip,
>>
>> I tried the example and got
>>
>> C:\temp\firstApp>mvn -e archetype:create
>> -DarchetypeGroupId=org.servicemix.tooli
>> ng -DarchetypeArtifactId=servicemix-service-engine
>> -DarchtypeVersion=3.0-incubat
>> ing-SNAPSHOT -DgroupId=org.apache.servicemix.xslt
>> -DartifactId=servicemix-xslt
>> + Error stacktraces are turned on.
>> [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.pr
>> operties
>> [INFO] Default ResourceManager initializing. (class
>> org.apache.velocity.runtime.
>> resource.ResourceManagerImpl)
>> [INFO] Resource Loader Instantiated:
>> org.codehaus.plexus.velocity.ContextClassLo
>> aderResourceLoader
>> [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 'V
>> M_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
>> glob
>> al in scope if allowed.
>> [INFO] Velocimacro : initialization complete.
>> [INFO] Velocity successfully started.
>> [INFO] [archetype:create]
>> [INFO] Defaulting package to group ID: org.apache.servicemix.xslt
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>>
>>
>>
>> Philip Dodds-2 wrote:
>> >
>> > You can see the available archetypes in the tooling directory - they
>> > all start servicemix-*
>> >
>> >
>> http://people.apache.org/maven-snapshot-repository/org/apache/servicemix/tooling/
>> >
>> > If you want to use one of the archetypes you can use the Maven command
>> > line :
>> >
>> > mvn archetype:create \
>> >         -DarchetypeGroupId=org.apache.servicemix.tooling \
>> >         -DarchetypeArtifactId=servicemix-service-engine \
>> >         -DarchetypeVersion=3.0-incubating-SNAPSHOT \
>> >         -DgroupId=org.apache.servicemix.xslt \
>> >         -DartifactId=servicemix-xslt
>> >
>> > Also the service unit archetypes (ending in service-unit) provide
>> > starters for a service unit and will need to be put as a dependent of
>> > a service assembly (servicemix-service-assembly).  You might want to
>> > read up on the JBI Maven tooling to see how this is done
>> > (http://www.servicemix.org/site/maven-jbi-plugin.html)
>> >
>> > P
>> >
>> > This example would use the servicemix-service-engine archetype to
>> > create a project called servicemix-xslt.
>> >
>> >
>> >
>> >
>> >
>> > On 8/14/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>> >>
>> >> I am trying to build my first application on ServiceMix.
>> >>
>> >> I would like to know what maven archetypes are available for
>> servicemix
>> >> and
>> >> how to use them.
>> >>
>> >> Thanks
>> >> Mukesh Mediratta
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5802812
>> >> Sent from the ServiceMix - User forum at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5803443
>> Sent from the ServiceMix - User forum at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5815209
Sent from the ServiceMix - User forum at Nabble.com.


Re: Maven Archetypes

Posted by Philip Dodds <ph...@gmail.com>.
Is there a build error missing from the bottom of the trace?

P

On 8/14/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>
> Thanks Philip,
>
> I tried the example and got
>
> C:\temp\firstApp>mvn -e archetype:create
> -DarchetypeGroupId=org.servicemix.tooli
> ng -DarchetypeArtifactId=servicemix-service-engine
> -DarchtypeVersion=3.0-incubat
> ing-SNAPSHOT -DgroupId=org.apache.servicemix.xslt
> -DartifactId=servicemix-xslt
> + Error stacktraces are turned on.
> [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.pr
> operties
> [INFO] Default ResourceManager initializing. (class
> org.apache.velocity.runtime.
> resource.ResourceManagerImpl)
> [INFO] Resource Loader Instantiated:
> org.codehaus.plexus.velocity.ContextClassLo
> aderResourceLoader
> [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 'V
> M_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
> glob
> al in scope if allowed.
> [INFO] Velocimacro : initialization complete.
> [INFO] Velocity successfully started.
> [INFO] [archetype:create]
> [INFO] Defaulting package to group ID: org.apache.servicemix.xslt
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
>
>
>
> Philip Dodds-2 wrote:
> >
> > You can see the available archetypes in the tooling directory - they
> > all start servicemix-*
> >
> > http://people.apache.org/maven-snapshot-repository/org/apache/servicemix/tooling/
> >
> > If you want to use one of the archetypes you can use the Maven command
> > line :
> >
> > mvn archetype:create \
> >         -DarchetypeGroupId=org.apache.servicemix.tooling \
> >         -DarchetypeArtifactId=servicemix-service-engine \
> >         -DarchetypeVersion=3.0-incubating-SNAPSHOT \
> >         -DgroupId=org.apache.servicemix.xslt \
> >         -DartifactId=servicemix-xslt
> >
> > Also the service unit archetypes (ending in service-unit) provide
> > starters for a service unit and will need to be put as a dependent of
> > a service assembly (servicemix-service-assembly).  You might want to
> > read up on the JBI Maven tooling to see how this is done
> > (http://www.servicemix.org/site/maven-jbi-plugin.html)
> >
> > P
> >
> > This example would use the servicemix-service-engine archetype to
> > create a project called servicemix-xslt.
> >
> >
> >
> >
> >
> > On 8/14/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
> >>
> >> I am trying to build my first application on ServiceMix.
> >>
> >> I would like to know what maven archetypes are available for servicemix
> >> and
> >> how to use them.
> >>
> >> Thanks
> >> Mukesh Mediratta
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5802812
> >> Sent from the ServiceMix - User forum at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5803443
> Sent from the ServiceMix - User forum at Nabble.com.
>
>

Re: Maven Archetypes

Posted by Mukesh Mediratta <me...@mail.nih.gov>.
Thanks Philip,

I tried the example and got 

C:\temp\firstApp>mvn -e archetype:create
-DarchetypeGroupId=org.servicemix.tooli
ng -DarchetypeArtifactId=servicemix-service-engine
-DarchtypeVersion=3.0-incubat
ing-SNAPSHOT -DgroupId=org.apache.servicemix.xslt
-DartifactId=servicemix-xslt
+ Error stacktraces are turned on.
[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.pr
operties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.
resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated:
org.codehaus.plexus.velocity.ContextClassLo
aderResourceLoader
[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 'V
M_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 
glob
al in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: org.apache.servicemix.xslt
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR



Philip Dodds-2 wrote:
> 
> You can see the available archetypes in the tooling directory - they
> all start servicemix-*
> 
> http://people.apache.org/maven-snapshot-repository/org/apache/servicemix/tooling/
> 
> If you want to use one of the archetypes you can use the Maven command
> line :
> 
> mvn archetype:create \
>         -DarchetypeGroupId=org.apache.servicemix.tooling \
>         -DarchetypeArtifactId=servicemix-service-engine \
>         -DarchetypeVersion=3.0-incubating-SNAPSHOT \
>         -DgroupId=org.apache.servicemix.xslt \
>         -DartifactId=servicemix-xslt
> 
> Also the service unit archetypes (ending in service-unit) provide
> starters for a service unit and will need to be put as a dependent of
> a service assembly (servicemix-service-assembly).  You might want to
> read up on the JBI Maven tooling to see how this is done
> (http://www.servicemix.org/site/maven-jbi-plugin.html)
> 
> P
> 
> This example would use the servicemix-service-engine archetype to
> create a project called servicemix-xslt.
> 
> 
> 
> 
> 
> On 8/14/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>>
>> I am trying to build my first application on ServiceMix.
>>
>> I would like to know what maven archetypes are available for servicemix
>> and
>> how to use them.
>>
>> Thanks
>> Mukesh Mediratta
>> --
>> View this message in context:
>> http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5802812
>> Sent from the ServiceMix - User forum at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5803443
Sent from the ServiceMix - User forum at Nabble.com.


Re: Maven Archetypes

Posted by Philip Dodds <ph...@gmail.com>.
You can see the available archetypes in the tooling directory - they
all start servicemix-*

http://people.apache.org/maven-snapshot-repository/org/apache/servicemix/tooling/

If you want to use one of the archetypes you can use the Maven command line :

mvn archetype:create \
        -DarchetypeGroupId=org.apache.servicemix.tooling \
        -DarchetypeArtifactId=servicemix-service-engine \
        -DarchetypeVersion=3.0-incubating-SNAPSHOT \
        -DgroupId=org.apache.servicemix.xslt \
        -DartifactId=servicemix-xslt

Also the service unit archetypes (ending in service-unit) provide
starters for a service unit and will need to be put as a dependent of
a service assembly (servicemix-service-assembly).  You might want to
read up on the JBI Maven tooling to see how this is done
(http://www.servicemix.org/site/maven-jbi-plugin.html)

P

This example would use the servicemix-service-engine archetype to
create a project called servicemix-xslt.





On 8/14/06, Mukesh Mediratta <me...@mail.nih.gov> wrote:
>
> I am trying to build my first application on ServiceMix.
>
> I would like to know what maven archetypes are available for servicemix and
> how to use them.
>
> Thanks
> Mukesh Mediratta
> --
> View this message in context: http://www.nabble.com/Maven-Archetypes-tf2105342.html#a5802812
> Sent from the ServiceMix - User forum at Nabble.com.
>
>