Did you deploy your ear in apps? Webapps is not the right place out of the box Le 11 mai 2013 01:27, "John D. Ament" <[email protected]> a écrit :
> CAn you post the stacktrace? > > > On Fri, May 10, 2013 at 5:30 PM, m1000 <[email protected]> wrote: > > > Hi, > > > > I'm a new user of Tomee (1.5.2). I am also kind of a newbie to J2EE. > Still > > what I got was working > > under Glassfish. Now I am trying to get it working under Tomee... > > > > My EJB Timer successfully work on calling my method, but I get a Class > not > > found exception when that code try to access classes that are in jar > files > > in my .ear/lib/ directory. > > > > I don't understand why, /lib should be in the classpath automatically ? > > > > Here is my structure : > > > > lib/ <-- many of my own jar files in there > > META-INF/ > > ejb.jar > > > > ?xml version="1.0" encoding="UTF-8"?> > > <application xmlns="http://java.sun.com/xml/ns/javaee" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > > http://java.sun.com/xml/ns/javaee/application_6.xsd" > > version="6"> > > > > <module id="PlanningAndControlServer4-EJB"> > > <ejb>ejb.jar</ejb> > > </module> > > > > <library-directory>lib</library-directory> > > </application> > > > > > > I've added the library-directory tag even if it should not be needed, but > > still the same... > > > > > > > > > > -- > > View this message in context: > > > http://openejb.979440.n4.nabble.com/ear-lib-not-seen-I-m-getting-a-class-not-found-error-tp4662819.html > > Sent from the OpenEJB User mailing list archive at Nabble.com. > > >
