You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2008/07/17 06:52:00 UTC

[jira] Resolved: (SMX4-69) the pom.xml in examples should be filted when build kit

     [ https://issues.apache.org/activemq/browse/SMX4-69?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved SMX4-69.
------------------------------

    Fix Version/s: 4.0-m2
       Resolution: Fixed

commit fix
http://svn.apache.org/viewvc?rev=677500&view=rev

> the pom.xml in examples should be filted when build kit
> -------------------------------------------------------
>
>                 Key: SMX4-69
>                 URL: https://issues.apache.org/activemq/browse/SMX4-69
>             Project: ServiceMix 4
>          Issue Type: Bug
>    Affects Versions: 4.0-m2
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 4.0-m2
>
>
> we should keep ${basedir} in examples pom.xml so that we can use relative path to load resources in the kit

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: Building WSDL example for SM

Posted by Gert Vanthienen <ge...@skynet.be>.
Vladislav,

This is a class from jaxb-xjc.  Could you verify that this thing is on 
your classpath (using the -X flag for mvn) when building?
What version of ServiceMix are you using?  If I do this here, using mvn 
-X, I do get the expected dependency on the list...

....
[INFO] Resolving org.springframework:spring:jar:2.0.6:compile
[INFO] Resolving javax.xml.soap:saaj-api:jar:1.3:compile
[INFO] Resolving com.sun.xml.bind:jaxb-impl:jar:2.0.1:compile
[INFO] Resolving javax.xml:jaxb-api:jar:2.0:compile
...

Regards,

Gert

vkrejcirik wrote:
> I do my WSDL example (similar to wsdl-first in example in servicemix).
>
> I make http-comsumer-su and jsr181-su. - It's OK. But when I will 
> generate eclipse project (mvn eclipse:eclipse) in jsr181-su, I get 
> this error:
>
> [FATAL ERROR] Container realm = plexus.core
> urls[0] = 
> file:/c:/java/apache-maven-2.0.9/bin/../lib/maven-2.0.9-uber.jar
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] com/sun/codemodel/JCodeModel
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NoClassDefFoundError: com/sun/codemodel/JCodeModel
>       at 
> org.codehaus.xfire.gen.Wsdl11Generator.<init>(Wsdl11Generator.java:51
> )
>       at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:50)
>       at 
> org.apache.servicemix.maven.plugin.xfire.WsgenMojo.exec(WsgenMojo.jav
> a:190)
>       at 
> org.apache.servicemix.maven.plugin.xfire.WsgenMojo.execute(WsgenMojo.
> java:105)
>       at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> nManager.java:451)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:558)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> fecycle(DefaultLifecycleExecutor.java:499)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:478)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:330)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> ts(DefaultLifecycleExecutor.java:291)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:142)
>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:597)
>       at 
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>       at 
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>
>       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>
> Do you have some advice?
> Thank you very much.
>
> /**************************************/
> Best regards / S pozdravem
> Vladislav Krejčiřík
>
> http://www.vkrejcirik.info
>
>
>
>


Building WSDL example for SM

Posted by vkrejcirik <vk...@gmail.com>.
I do my WSDL example (similar to wsdl-first in example in servicemix).

I make http-comsumer-su and jsr181-su. - It's OK. But when I will 
generate eclipse project (mvn eclipse:eclipse) in jsr181-su, I get this 
error:

[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/c:/java/apache-maven-2.0.9/bin/../lib/maven-2.0.9-uber.jar
[INFO] 
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] 
------------------------------------------------------------------------
[INFO] com/sun/codemodel/JCodeModel
[INFO] 
------------------------------------------------------------------------
[INFO] Trace
java.lang.NoClassDefFoundError: com/sun/codemodel/JCodeModel
       at 
org.codehaus.xfire.gen.Wsdl11Generator.<init>(Wsdl11Generator.java:51
)
       at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:50)
       at 
org.apache.servicemix.maven.plugin.xfire.WsgenMojo.exec(WsgenMojo.jav
a:190)
       at 
org.apache.servicemix.maven.plugin.xfire.WsgenMojo.execute(WsgenMojo.
java:105)
       at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:451)
       at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:558)
       at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:499)
       at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:478)
       at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:330)
       at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:291)
       at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:142)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
       at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
       at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

Do you have some advice?
Thank you very much.

/**************************************/
Best regards / S pozdravem
Vladislav Krejčiřík

http://www.vkrejcirik.info