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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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)[EMAIL 
>> >> > PROTECTED]&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.

Reply via email to