發文作者:wekon | 五月 7, 2010

javax.servlet.ServletException

[environment]

activebpel engine 2.1.1 + tomcat 5.5.27 + win 7

[steps]

1. http://127.0.0.1:8080/BpelAdmin/
2. 『Deployed Services』
3. select any listed service name

[error message]
exception

javax.servlet.ServletException: Servlet.init() for servlet AeProcessEngineServlet threw exception
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
java.lang.Thread.run(Thread.java:619)

root cause

java.lang.NullPointerException
org.apache.catalina.loader.WebappClassLoader.findResources(WebappClassLoader.java:996)
java.lang.ClassLoader.getResources(ClassLoader.java:1041)
org.apache.commons.discovery.jdk.JDK12Hooks.getResources(JDK12Hooks.java:150)
org.apache.commons.discovery.resource.DiscoverResources$1.getNextResources(DiscoverResources.java:153)
org.apache.commons.discovery.resource.DiscoverResources$1.getNextResource(DiscoverResources.java:129)
org.apache.commons.discovery.resource.DiscoverResources$1.hasNext(DiscoverResources.java:116)
org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextClassNames(DiscoverNamesInFile.java:186)
org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextClassName(DiscoverNamesInFile.java:170)
org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.hasNext(DiscoverNamesInFile.java:157)
org.apache.commons.discovery.resource.names.NameDiscoverers$1.getNextIterator(NameDiscoverers.java:143)
org.apache.commons.discovery.resource.names.NameDiscoverers$1.hasNext(NameDiscoverers.java:126)
org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.getNextResource(ResourceClassDiscoverImpl.java:159)
org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.hasNext(ResourceClassDiscoverImpl.java:147)
org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(EngineConfigurationFactoryFinder.java:120)
java.security.AccessController.doPrivileged(Native Method)
org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:113)
org.apache.axis.transport.http.AxisServletBase.getEngineEnvironment(AxisServletBase.java:273)
org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:172)
org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396)
org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:112)
org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:156)
javax.servlet.GenericServlet.init(GenericServlet.java:212)
org.activebpel.rt.axis.bpel.web.AeProcessEngineServlet.init(AeProcessEngineServlet.java:142)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
java.lang.Thread.run(Thread.java:619)

[analysis]

some authenticatio reasons happen when initializing org.activebpel.rt.axis.bpel.web.AeProcessEngineServlet

[solution]

remove the following code in webapps\active-bpel\WEB-INF\web.xml if authentication is not required:

<init-param>
<param-name>use-servlet-security</param-name>
<param-value>true</param-value>
</init-param>


發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s

分類

%d 位部落客按了讚: