This content has been marked as final.
Show 2 replies
-
1. Re: addAsLibraries() method not found in Arquillian
kpiwko Dec 4, 2014 8:21 AM (in response to davidj)Hi David,
JAR does not have addAsLibraries() method because you usually don't want to add JARs into JAR. If you need to add jars, you have two options:
1/ Create a WAR instead and add JARs inside
2/ Create a fat JAR by merging content of multiple jars together
https://developer.jboss.org/wiki/HowToIAddMavenArtifactsToMyShrinkWrapArchives#comment-10715
Karel
-
2. Re: Re: addAsLibraries() method not found in Arquillian
davidj Dec 4, 2014 12:37 PM (in response to kpiwko)Thanks Karel.
I tried your option #1 and it has gotten me much further; however, now I get an error:
javax.ejb.EJBException: org.jboss.resteasy.spi.LoggableFailure: Unable to find contextual data of type: javax.servlet.http.HttpServletRequest
Do you have any ideas why?
My EJB is annotated as a REST service (@Path) and I use:
@Context
private HttpServletRequest request;
Thanks.