users@glassfish.java.net

Try to deploy JSF & REST webapp causes java.lang.ArrayIndexOutOfBoundsException

From: Christian Anke <carcinoma_at_gmx.net>
Date: Sat, 20 Oct 2012 20:52:24 +0200

Hello list,

my name ist christian and i'm new here. I hope anybody on this list
could help
me with my problem.

I try to deploy a webapp (web profile) on glassfish 3.1.2.2. This app
contains JSF, EJB, JPA and REST
artifacts. I added the REST part at last and now every try to deploy
that app results in an
"java.lang.ArrayIndexOutOfBoundsException" which is not very helpful.

I've added the "com.sun.jersey.spi.container.servlet.ServletContainer"
servlet to my web.xml
and let it load on startup. According to the log:

INFO: Scanning for root resource and provider classes in the Web app
resource paths:
  /WEB-INF/lib
  /WEB-INF/classes
SEVERE: WebModule[/webapp]StandardWrapper.Throwable
java.lang.ArrayIndexOutOfBoundsException

it tries to scan my app, but ends in the given exception.

I'm lost with that. I have no info about the cause of that exception.
Is there a way to debug this (i'm using netbeans)? Or get more info
about the cause anyway?

Btw. other webapps with the same components (JSF, JPA, EJB and REST) has
successfully been deployed
on the same instance.

thanks,

christian