My build.xml has a test target which using the junit ant task. As part of the
classpath for this junit task I have included all the
apache-openejb-4.0.0/lib/*.jars. I still get the following....


 [junit] ------------- Standard Error -----------------
    [junit] Can't load log handler
"org.apache.openejb.util.JuliLogStreamFactory$OpenEJBSimpleLayoutHandler"
    [junit] java.lang.ClassNotFoundException:
org.apache.openejb.util.JuliLogStreamFactory$OpenEJBSimpleLayoutHandler
    [junit] java.lang.ClassNotFoundException:
org.apache.openejb.util.JuliLogStreamFactory$OpenEJBSimpleLayoutHandler
    [junit]     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    [junit]     at java.security.AccessController.doPrivileged(Native Method)
    [junit]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    [junit]     at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    [junit]     at java.util.logging.LogManager$3.run(LogManager.java:358)
    [junit]     at java.security.AccessController.doPrivileged(Native Method)
    [junit]     at
java.util.logging.LogManager.loadLoggerHandlers(LogManager.java:345)
    [junit]     at java.util.logging.LogManager.addLogger(LogManager.java:566)
    [junit]     at
java.util.logging.LogManager.demandLogger(LogManager.java:392)
    [junit]     at java.util.logging.Logger.getLogger(Logger.java:288)
    [junit]     at
org.apache.openejb.util.JuliLogStream.<init>(JuliLogStream.java:31)
    [junit]     at
org.apache.openejb.util.JuliLogStreamFactory.createLogStream(JuliLogStreamFactory.java:30)
    [junit]     at org.apache.openejb.util.Logger$3.compute(Logger.java:194)
    [junit]     at org.apache.openejb.util.Logger$3.compute(Logger.java:190)
    [junit]     at org.apache.openejb.util.Memoizer$1.call(Memoizer.java:50)
    [junit]     at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    [junit]     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    [junit]     at org.apache.openejb.util.Memoizer.compute(Memoizer.java:57)
    [junit]     at org.apache.openejb.util.Logger.getInstance(Logger.java:239)
    [junit]     at org.apache.openejb.OpenEJB.<clinit>(OpenEJB.java:273)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [junit]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [junit]     at java.lang.reflect.Method.invoke(Method.java:597)
    [junit]     at
org.apache.openejb.loader.OpenEJBInstance.isInitialized(OpenEJBInstance.java:49)
    [junit]     at
org.apache.openejb.core.LocalInitialContextFactory.init(LocalInitialContextFactory.java:64)
    [junit]     at
org.apache.openejb.core.LocalInitialContextFactory.init(LocalInitialContextFactory.java:51)
    [junit]     at
org.apache.openejb.core.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:40)
    [junit]     at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
    [junit]     at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
    [junit]     at javax.naming.InitialContext.init(InitialContext.java:223)
    [junit]     at javax.naming.InitialContext.<init>(InitialContext.java:197)

--
View this message in context: 
http://openejb.979440.n4.nabble.com/Running-openejb-as-part-of-JUnit-throws-Class-not-found-for-org-apache-openejb-util-JuliLogStreamFacr-tp4655207.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to