Try putting the jar in to glassfish/domains/domain/lib. We have a unit
test "virtualServerWithCustomValves" and custom valves can be found as
expected.
Amy
On 4/29/11 8:11 AM, forums_at_java.net wrote:
> Glassfish 3.1
>
> I wrote a valve put it in a jar. But Glassfish does not find it.
>
> java.lang.ClassNotFoundException: demo.Valve1 not found by
> org.glassfish.web.glue [248] at
> org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787)
>
> at
> org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71) at
> org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> I tried serveral locations
>
> * glassfish/lib
> * glassfish/domains/domain1/lib/ext
> * WEB-INF/lib
>
> but I always get the same error.
>
> I found an JIRA bug http://java.net/jira/browse/GLASSFISH-11674 - but
> this
> bug is listed as fixed in march 2010 and Glassfish 3.1. was released
> in feb
> 20*11*!
>
> Isn't this bug fixed or where to put valves?
>
>
>
>
>
>
>
>
> --
>
> [Message sent by forum member 'gernot1']
>
> View Post: http://forums.java.net/node/796752
>
>