users@glassfish.java.net

java.lang.NoClassDefFoundError: com/sun/jersey/multipart/FormDataMultiPart

From: <thomas_at_randspringer.de>
Date: Mon, 7 Mar 2011 18:08:02 +0100 (CET)

Hi,
 
after an upgrade to GF 3.1 I can not access the Admin-Console, the login failed with
 
Authentication Failed
Re-enter your username and password
 
However the user/password is not the real problem.
 
I see in the server.log the following exception:
 
[#|2011-03-07T18:01:10.619+0100|SEVERE|glassfish3.1|com.sun.grizzly.config.GrizzlyServiceListener|_ThreadID=23;_ThreadName=Thread-1;|service exception
java.lang.NoClassDefFoundError: com/sun/jersey/multipart/FormDataMultiPart
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
        at java.lang.Class.privateGetPublicMethods(Class.java:2547)
        at java.lang.Class.privateGetPublicMethods(Class.java:2563)
        at java.lang.Class.privateGetPublicMethods(Class.java:2563)
        at java.lang.Class.getMethods(Class.java:1410)
        at com.sun.jersey.core.reflection.MethodList.getMethods(MethodList.java:77)

...
 
But in glassfish/modules I can find:
 
jar tfv jersey-multipart.jar | grep com.sun.jersey.multipart.FormDataMultiPart
  3720 Fri Jan 14 12:37:04 CET 2011 com/sun/jersey/multipart/FormDataMultiPart.class


The same problem is described here:

http://www.java.net/forum/topic/glassfish/glassfish/authentication-failed-after-update
 
Thomas