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.


Reply via email to