camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nestor Urquiza <nestor.urqu...@gmail.com>
Subject Re: diagram generator
Date Thu, 22 Mar 2012 21:33:58 GMT
Not sure what you mean by "generate" goal. I can see the classes are
generated (compiled) before the plugin emits the error. So the classes are
indeed in the target/classes

$ mvn clean compile package exec:java
-Dexec.mainClass=camelinaction.OrderRouter2
...
[INFO] Building jar:
/Users/nestor/Downloads/camelinaction-source/chapter2/cbr/target/chapter2-cbr-1.0.0.jar
[INFO] [diagram-generator:diagram {execution: pack}]
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] can't load route class
camelinaction.OrderRouteBuilder.class
[INFO]
------------------------------------------------------------------------
[INFO] Trace
fr.rmannibucau.loader.spi.DiagramGeneratorRuntimeException: can't load
route class
at
fr.rmannibucau.camel.loader.CamelLoader.camelContextToDiagram(CamelLoader.java:61)
at fr.rmannibucau.camel.loader.CamelLoader.load(CamelLoader.java:31)
at fr.rmannibucau.DiagramGeneratorMojo.execute(DiagramGeneratorMojo.java:96)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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)
Caused by: java.lang.ClassNotFoundException:
camelinaction.OrderRouteBuilder.class
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at
org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
at
org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at
fr.rmannibucau.camel.loader.CamelLoader.camelContextToDiagram(CamelLoader.java:59)


$ ls -al  target/classes/camelinaction/OrderRouteBuilder.class
-rw-r--r--  1 nestor  staff  1518 Mar 22 17:30
target/classes/camelinaction/OrderRouteBuilder.class

On Thu, Mar 22, 2012 at 5:16 PM, Romain Manni-Bucau [via Camel] <
ml-node+s465427n5587812h95@n5.nabble.com> wrote:

> Try running compile goal before generate goal.
>
>


--
View this message in context: http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5587868.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message