lunes, 18 de febrero de 2013

Deploying JasperServer on Glassfish V2 final

After following the JasperServer installation guide step by step in order to deploy the JasperServer.war in an existing Glassfish V2 installation I got this exception when trying to start the app server:

java.lang.IllegalAccessException: Class com.sun.jersey.core.spi.component.ComponentConstructor can not access a member of class com.sun.jersey.json.impl.provider.entity.JSONArrayProvider with modifiers ""


It looks like there's a a conflicting jakson-jersey libs by default in glassfish V2 final. To correct the problem you must download Jerseys libs and replace the ones in [glassfish-folder]/lib. Specifically the bad libs are: 
 
jackson-asl-0.9.4.jar
jersey-bundle-1.0.3.1.jar
jettison-1.0.1.jar


You can find the non conflicting libs here:

http://maven.java.net/service/local/artifact/maven/redirect?r=releases&g=com.sun.jersey&a=jersey-archive&v=1.12&e=zip

No hay comentarios:

Publicar un comentario