Jump to content
Excelsior Forums
Devendra

HTTP Status 500 - Servlet.init() for servlet jersey threw exception

Recommended Posts

Getting following error on startup of a tomcat executable, though it works perfectly as war.

 

type Exception report

message Servlet.init() for servlet jersey threw exception

description The server encountered an internal error that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init() for servlet jersey threw exception
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown Source)
	org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source)
	org.apache.catalina.valves.AbstractAccessLogValve.invoke(Unknown Source)
	org.apache.catalina.connector.CoyoteAdapter.service(Unknown Source)
	org.apache.coyote.http11.AbstractHttp11Processor.process(Unknown Source)
	org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Unknown Source)
	org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(Unknown Source)
	org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(Unknown Source)
	java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(Unknown Source)
	java.lang.Thread.run(Unknown Source)

root cause

java.lang.ArrayIndexOutOfBoundsException
	jersey.repackaged.org.objectweb.asm.ClassReader.readShort(Unknown Source)
	jersey.repackaged.org.objectweb.asm.ClassReader.<init>(Unknown Source)
	jersey.repackaged.org.objectweb.asm.ClassReader.<init>(Unknown Source)
	jersey.repackaged.org.objectweb.asm.ClassReader.<init>(Unknown Source)
	org.glassfish.jersey.server.internal.scanning.AnnotationAcceptingListener.process(Unknown Source)
	org.glassfish.jersey.server.ResourceConfig.scanClasses(Unknown Source)
	org.glassfish.jersey.server.ResourceConfig._getClasses(Unknown Source)
	org.glassfish.jersey.server.ResourceConfig.getClasses(Unknown Source)
	org.glassfish.jersey.server.ResourceConfig$RuntimeConfig.<init>(Unknown Source)
	org.glassfish.jersey.server.ResourceConfig$RuntimeConfig.<unknown>(Unknown Source)
	org.glassfish.jersey.server.ResourceConfig.createRuntimeConfig(Unknown Source)
	org.glassfish.jersey.server.ApplicationHandler.<init>(Unknown Source)
	org.glassfish.jersey.servlet.WebComponent.<init>(Unknown Source)
	org.glassfish.jersey.servlet.ServletContainer.init(Unknown Source)
	org.glassfish.jersey.servlet.ServletContainer.init(Unknown Source)
	javax.servlet.GenericServlet.init(Unknown Source)
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown Source)
	org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source)
	org.apache.catalina.valves.AbstractAccessLogValve.invoke(Unknown Source)
	org.apache.catalina.connector.CoyoteAdapter.service(Unknown Source)
	org.apache.coyote.http11.AbstractHttp11Processor.process(Unknown Source)
	org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Unknown Source)
	org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(Unknown Source)
	org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(Unknown Source)
	java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(Unknown Source)
	java.lang.Thread.run(Unknown Source)

note The full stack trace of the root cause is available in the Apache Tomcat/8.0.46 logs.

Share this post


Link to post
Share on other sites

Hello,

Please contact us via our support mail: java [at] excelsior-usa.com

Also please send us the project files you used to build and to deploy the application (*.prj & *.jpn)

--
Ruslan Kim
Excelsior Support

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×