[jboss-jira] [JBoss JIRA] Updated: (JBWEB-195) Issue with org.apache.catalina.connector.Connector
Krzysztof Maslak (JIRA)
jira-events at lists.jboss.org
Mon Jan 17 22:25:50 EST 2011
[ https://issues.jboss.org/browse/JBWEB-195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Krzysztof Maslak updated JBWEB-195:
-----------------------------------
Summary: Issue with org.apache.catalina.connector.Connector (was: AS7 Startup problem - Could not initialize class org.apache.tomcat.jni.OS)
Priority: Critical (was: Major)
Description:
Problem occurs during JBoss startup.
16:43:00,465 ERROR [org.jboss.msc] (pool-1-thread-3) MSC-00001: Failed to start service jboss.web.connector.http: org.jboss.msc.service.StartException in service jboss.web.connector.http: Failed to start service
at org.jboss.msc.service.ServiceInstanceImpl$StartTask.run(ServiceInstanceImpl.java:1207)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_20]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_20]
at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.tomcat.jni.OS
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:573)
at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:115)
at org.apache.catalina.connector.Connector.initialize(Connector.java:1018)
at org.apache.catalina.core.StandardService.addConnector(StandardService.java:351)
at org.jboss.as.web.WebServerService.addConnector(WebServerService.java:124)
at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:90)
at org.jboss.msc.service.ServiceInstanceImpl$StartTask.run(ServiceInstanceImpl.java:1163)
... 3 more
IMHO problem is that org.apache.catalina.connector.Connector exposes method setProtocol whereas protocolHandler instantiation is being conducted in constructor, so method setProtocol is kind of meaningless.
I have found that in jboss-as-web module, Connector is being created ( with protocolHandler initialized during object creation ) and then protocol is set using setProtocol which actually doesn't change appropriate protocolHandler.
In other words, if I will create Connector using constructor without any params, it will guess protocolHandler and then I will set my favourite protocol it won't affect my procotol handler.
Having this I can get the situation where I will have protocolHandler: "org.apache.coyote.http11.Http11AprProtocol" and protocol: "org.apache.coyote.ajp.AjpAprProtocol"
was:
Problem occurs during JBoss startup. Problem appeared after upgrading JBoss Web from version 3.0.0-beta-7 to 7.0.0.Beta1.
16:43:00,465 ERROR [org.jboss.msc] (pool-1-thread-3) MSC-00001: Failed to start service jboss.web.connector.http: org.jboss.msc.service.StartException in service jboss.web.connector.http: Failed to start service
at org.jboss.msc.service.ServiceInstanceImpl$StartTask.run(ServiceInstanceImpl.java:1207)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_20]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_20]
at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.tomcat.jni.OS
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:573)
at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:115)
at org.apache.catalina.connector.Connector.initialize(Connector.java:1018)
at org.apache.catalina.core.StandardService.addConnector(StandardService.java:351)
at org.jboss.as.web.WebServerService.addConnector(WebServerService.java:124)
at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:90)
at org.jboss.msc.service.ServiceInstanceImpl$StartTask.run(ServiceInstanceImpl.java:1163)
... 3 more
Steps to Reproduce: (was: Get JBoss AS7 sources and build having JBossWeb in version 7.0.0.Beta1)
> Issue with org.apache.catalina.connector.Connector
> --------------------------------------------------
>
> Key: JBWEB-195
> URL: https://issues.jboss.org/browse/JBWEB-195
> Project: JBoss Web
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Core
> Affects Versions: JBossWeb-7.0.0.Beta1
> Environment: Fedora 13 2.6.34.7-66.fc13.i686
> java version "1.6.0_20"
> Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
> Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)
> Reporter: Krzysztof Maslak
> Assignee: Remy Maucherat
> Priority: Critical
>
> Problem occurs during JBoss startup.
> 16:43:00,465 ERROR [org.jboss.msc] (pool-1-thread-3) MSC-00001: Failed to start service jboss.web.connector.http: org.jboss.msc.service.StartException in service jboss.web.connector.http: Failed to start service
> at org.jboss.msc.service.ServiceInstanceImpl$StartTask.run(ServiceInstanceImpl.java:1207)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_20]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_20]
> at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]
> Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.tomcat.jni.OS
> at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:573)
> at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:115)
> at org.apache.catalina.connector.Connector.initialize(Connector.java:1018)
> at org.apache.catalina.core.StandardService.addConnector(StandardService.java:351)
> at org.jboss.as.web.WebServerService.addConnector(WebServerService.java:124)
> at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:90)
> at org.jboss.msc.service.ServiceInstanceImpl$StartTask.run(ServiceInstanceImpl.java:1163)
> ... 3 more
> IMHO problem is that org.apache.catalina.connector.Connector exposes method setProtocol whereas protocolHandler instantiation is being conducted in constructor, so method setProtocol is kind of meaningless.
> I have found that in jboss-as-web module, Connector is being created ( with protocolHandler initialized during object creation ) and then protocol is set using setProtocol which actually doesn't change appropriate protocolHandler.
> In other words, if I will create Connector using constructor without any params, it will guess protocolHandler and then I will set my favourite protocol it won't affect my procotol handler.
> Having this I can get the situation where I will have protocolHandler: "org.apache.coyote.http11.Http11AprProtocol" and protocol: "org.apache.coyote.ajp.AjpAprProtocol"
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list