I run mvn package followed by ./run.sh, and I get the following error:
./run.sh Hello World! 32 Exception in thread "main" java.lang.NoClassDefFoundError: com/esotericsoftware/kryo/Serializer at com.mycompany.app.App.main(App.java:14) Caused by: java.lang.ClassNotFoundException: com.esotericsoftware.kryo.Serializer at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 1 more
Any tips appreciated.
fa...@paralleluniverse.co
unread,
Apr 12, 2015, 3:35:58 AM4/12/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to quasar-pu...@googlegroups.com
Hi,
the quasar-core jar contains both the instrumentation agent and the runtime library to use fibers. While the agent is self-contained, the runtime library has additional dependencies that need to be included in the classpath.
The "exec-maven-plugin" can do it for you, like in the Quasar Maven archetype (there is a Gradle template project as well), or you can have a look at Capsule and its Maven plugin (there are 3rd-party Gradle and Leiningen plugins too BTW) in order to make straightforward your Java deployments in general (not only the ones using Quasar).
-- Fabio
Ziad Hatahet
unread,
Apr 12, 2015, 4:12:54 PM4/12/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to quasar-pu...@googlegroups.com
Thanks, Fabio.
Stephen S.
unread,
Oct 20, 2016, 4:36:10 PM10/20/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to quasar-pulsar-user
Hello,
I'm having the same problem. But it's not really clear what the solution is. It seems like the run-time class path is fine, as I see kryo-4.0.0.jar in the WAR of my application. Did you mean to say that agent has additional dependencies?