Description of problem: Natives fails to load after server reload when changing from java to native connector. Version-Release number of selected component (if applicable): 6.3.0.ER7 How reproducible: allways Steps to Reproduce: 1. install eap 6.3.0.ER7 with natives 2. Start the server with disabled natives (it is default state): ./bin/standalone.sh 3. using CLI enable the natives: /subsystem=web:write-attribute(name=native, value=true) 4. reload the server using CLI Actual results: Natives can not be loaded - see error message: 07:12:32,106 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: 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.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1936) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_45] at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45] Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.tomcat.jni.OS at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:582) at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:104) at org.apache.catalina.connector.Connector.init(Connector.java:985) at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:318) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1] ... 3 more Expected results: natives are enabled, server and http connector starts properly. Additional info: When the server is shutdown and started again, the server is correctly started with the natives.
Issue is still valid for EAP 6.3.0.ER10.
After looking at the code, it is a duplicate of 1115434 since the flag is only really set during bootstrap, which is the reason for both issues. Same for instance id and the default vhost actually. Looking at the code structure I am not sure how to fix it, at least moving init out of bootstrap could have unforeseen consequences. Will see ...
*** Bug 1115434 has been marked as a duplicate of this bug. ***
Similar behavior on other items: welcome files, mime mappings, native, instanceid, default session timeout, default virtual server. Still no idea if this can be fixed without causing serious problems, so nack for now.
More precisely, all these configuration elements are only read from the config at boottime, where they are set in WebSubsystemAdd.performBoottime
*** Bug 1151478 has been marked as a duplicate of this bug. ***
From attached debugger to see when WebSubsystemAdd.performBoottime is called, it behaves as if the reload-required is set on the subsystem, the WebSubsystemAdd.performBoottime is called.
BZ-1115434 is closed as duplicate already.