users@glassfish.java.net

Grizzly can't find LogFactory

From: <glassfish_at_javadesktop.org>
Date: Tue, 29 May 2007 05:23:55 PDT

Hi!

I've been trying to use Grizzly in Stand-alone mode but I'm not able to instantiate a SelectorThread. The code I use is as follows:

    mapOut = new SelectorThread();
    mapOut.setPort(8000);
    mapOut.initEndpoint();
    mapOut.startEndpoint();

I get the following exception for this:

com/sun/org/apache/commons/logging/LogFactory
java.lang.NoClassDefFoundError: com/sun/org/apache/commons/logging/LogFactory
        at com.sun.grizzly.util.buf.UDecoder.<clinit>(UDecoder.java:44)
        at com.sun.grizzly.tcp.Request.<init>(Request.java:144)
        at com.sun.grizzly.http.DefaultProcessorTask.initialize(DefaultProcessorTask.java:394)
        at com.sun.grizzly.http.SelectorThread.rampUpProcessorTask(SelectorThread.java:1013)
        at com.sun.grizzly.http.SelectorThread.startEndpoint(SelectorThread.java:1117)


I've got http-1.5.0.jar http-utils-1.5.0.jar and framework-1.5.0.jar in my classpath. Any clues on how to fix this?
[Message sent by forum member 'tnhashmi' (tnhashmi)]

http://forums.java.net/jive/thread.jspa?messageID=219239