-
1. the ShrinkWrap and the NoClassDefFoundError
jaikiran Apr 18, 2011 4:10 AM (in response to chaiyilin)Do you have Shrinkwrap jars in the classpath of the application?
-
2. the ShrinkWrap and the NoClassDefFoundError
chaiyilin Apr 18, 2011 4:12 AM (in response to jaikiran)of course. i am in eclipse and m2eclipse. otherwise this code will not get compiled.
-
3. the ShrinkWrap and the NoClassDefFoundError
jaikiran Apr 18, 2011 4:14 AM (in response to chaiyilin)yilin chai wrote:
of course. i am in eclipse and m2eclipse. otherwise this code will not get compiled.
I meant the runtime classpath of the application and not the compile time classpath. This exception:
Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/shrinkwrap/api/spec/JavaArchive
at org.cyl.english.ffl.Entities.WordItemTest.main(WordItemTest.java:25)
Caused by: java.lang.ClassNotFoundException: org.jboss.shrinkwrap.api.spec.JavaArchive
indicates that the Shrinkwrap jar(s) weren't found in the runtime classpath.
-
4. the ShrinkWrap and the NoClassDefFoundError
chaiyilin Apr 18, 2011 4:22 AM (in response to jaikiran)haha, thanks jaikiran. you enlighten me. because i am using maven, i forgot put the arquillian to compile scope. now it works. thanks again, dear jaikiran
-
5. the ShrinkWrap and the NoClassDefFoundError
jaikiran Apr 18, 2011 4:26 AM (in response to chaiyilin)You're welcome!
-
6. the ShrinkWrap and the NoClassDefFoundError
alrubinger Apr 18, 2011 4:57 AM (in response to chaiyilin)Arquillian in compile scope? Thought you weren't using Arquillian?
What you really want is to have shrinkwrap-api in compile scope, shrinkwrap-impl-base in "provided" or "test" scope (hence available to the runtime).
S,
ALR
-
7. the ShrinkWrap and the NoClassDefFoundError
chaiyilin Apr 18, 2011 5:00 AM (in response to alrubinger)thanks, andrew. just want to try the shrinkwrap api. not in production. thanks dear.