#2 is a known issue https://issues.apache.org/jira/browse/GERONIMO-6122
On Tue, Feb 14, 2012 at 12:00 AM, Teimatini Marin <[email protected]> wrote: > I was using geronimo web profile. > > After changing to use full profile, It works as expected (without wink's > jars into my war). > > Now, I have two questions regarding JAX-RS/Wink/Geronimo. > > 1. How can I use jackson as provider? Are jackson jars shipped into > geronimo? > When I follow these steps > http://www.ibm.com/developerworks/java/library/wa-aj-jackson/index.html?ca=drs-i > got the following exception: > [ERROR] Failed to execute goal > org.apache.geronimo.buildsupport:geronimo-maven-plugin:3.0-SNAPSHOT:deploy-module > (default-cli) on project thoughtsuniverse-web: Distribution failed: Unable > to resolve resource reference > 'java:comp/env/org.apache.wink.common.internal.providers.entity.app.CategoriesProvider/providers' > (Could not auto-map to resource. Try adding a resource-ref mapping to your > Geronimo deployment plan. > [ERROR] Search conducted in current module and dependencies: > [ERROR] [all: console.dbpool/thoughtsuniverse//] > [ERROR] [all: org.apache.geronimo.configs/tomcat7/3.0-beta-1/car] > [ERROR] [all: org.apache.geronimo.configs/myfaces/3.0-beta-1/car] > [ERROR] [all: org.apache.geronimo.configs/openejb//car] > [ERROR] [all: org.apache.geronimo.modules/geronimo-openejb//jar] > [ERROR] [all: org.apache.openwebbeans/openwebbeans-impl//jar] > [ERROR] [all: org.apache.openwebbeans/openwebbeans-web//jar] > [ERROR] [all: org.apache.openwebbeans/openwebbeans-jsf//jar] > [ERROR] [all: org.apache.geronimo.configs/system-database//car] > [ERROR] [all: org.apache.geronimo.configs/tomcat7//car] > [ERROR] [all: org.apache.geronimo.configs/wink/3.0-beta-1/car] > [ERROR] [all: org.apache.geronimo.configs/openjpa2/3.0-beta-1/car] > [ERROR] [all: org.apache.geronimo.configs/axis//car] > [ERROR] [all: org.apache.geronimo.configs/axis2//car] > [ERROR] [all: org.apache.geronimo.configs/j2ee-corba-yoko/3.0-beta-1/car] > [ERROR] [all: org.apache.geronimo.modules/geronimo-bval//jar] > [ERROR] [all: org.apache.geronimo.configs/openjpa2//car] > [ERROR] ) > > 2. I can read into the Oracle's Java EE 6 Tutotial that: "JAX-RS works > with Enterprise JavaBeans technology (enterprise beans) and Contexts and > Dependency Injection for the Java EE Platform (CDI)." > > Running this WS > @Stateless > @Path("/resource") > public class MyResource { > @PersistenceContext > EntityManager em; > > @EJB > MyStateless facade; > > @GET > public String doGet() { > System.out.println("doGet!!!!"); > System.out.println("EntityManager: "+em); > System.out.println("EJB: "+facade); > > return "Return from RS"; > } > } > > The following is shown in console: > doGet!!!! > EntityManager: null > EJB: null > > So, CDI is not working in my example... Do I missed/misunderstood > something? > > Thanks for your time. > > > Teimatini MarĂn > > > > > On Fri, Feb 10, 2012 at 1:50 PM, Kevan Miller <[email protected]>wrote: > >> On Thu, Feb 9, 2012 at 7:31 PM, Teimatini Marin <[email protected]> wrote: >> > Hello: >> > >> > I can read in the RELEASE_NOTES-3.0-beta-1.txt file the following: >> > "GERONIMO-5096 Integrate Wink JAX-RS implementation into Geronimo. " >> > >> > My issue is that Geronimo is throwing the following exception when I >> tryed >> > to deploy my first restfull ws: >> > [ERROR] Caused by: java.lang.ClassNotFoundException: >> > org.apache.wink.server.internal.servlet.RestServlet >> > [ERROR] at >> > >> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513) >> > [ERROR] at >> > >> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429) >> > [ERROR] at >> > >> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417) >> > [ERROR] at >> > >> org.apache.geronimo.hook.equinox.GeronimoClassLoader.loadClass(GeronimoClassLoader.java:85) >> > [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:356) >> > [ERROR] at >> > >> org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345) >> > [ERROR] at >> > >> org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229) >> > [ERROR] at >> > >> org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1207) >> > [ERROR] at >> > >> org.apache.geronimo.web25.deployment.merge.annotation.ServletSecurityAnnotationMergeHandler.postProcessWebXmlElement(ServletSecurityAnnotationMergeHandler.java:52) >> > >> > If I package the wink jar into my war, the exception gone. >> > >> > So, the question here is: >> > Do I really need to package wink jar into my WAR or I messed something? >> >> Which Geronimo distribution are you using? >> geronimo-tomcat7-javaee6-3.0-beta-1, for example, would have JAX-RS >> support. >> >> --kevan >> > > -- Shawn
