[JBoss JIRA] (WFLY-9081) Support ServletContainerInitializer placed on WARs
by cnsgithub cnsgithub (JIRA)
[ https://issues.jboss.org/browse/WFLY-9081?page=com.atlassian.jira.plugin.... ]
cnsgithub cnsgithub edited comment on WFLY-9081 at 3/6/18 5:42 AM:
-------------------------------------------------------------------
I think something related to this, broke something with WF12
Edit: The info i wrote was partly wrong, so i've opened a new issue, which better describes the problem i was having with WF12+JDk9
https://issues.jboss.org/browse/WFLY-9961
was (Author: pcom.progweb):
I think something related to this, broke something with WF12 when using Spring. Currently i can't provide a *.war to test but a class residing in the *.war classes path is no longer recognized. (Addition: It seems to happen only if the *.war is residing inside an *.ear)
import org.springframework.web.WebApplicationInitializer;
public class MyWebApplicationInitializer implements WebApplicationInitializer
[0m[0m09:52:16,244 INFO [io.undertow.servlet] (ServerService Thread Pool -- 51) No Spring WebApplicationInitializer types detected on classpath
org.springframework.web.SpringServletContainerInitializer
@Override
public void onStartup(@Nullable Set<Class<?>> webAppInitializerClasses, ServletContext servletContext)
->> WebAppInitializerClasses does not contain the MyWebApplicationInitializer anymore
Ultimately this call is coming from: WarMetaDataProcessor
I hope this is enough to find the cause of this. The same configuration worked fine with WF11 Final.
Further Edit: It seems to happen only when the class is built with Java9!
> Support ServletContainerInitializer placed on WARs
> --------------------------------------------------
>
> Key: WFLY-9081
> URL: https://issues.jboss.org/browse/WFLY-9081
> Project: WildFly
> Issue Type: Feature Request
> Reporter: Guillermo González de Agüero
> Assignee: Stuart Douglas
> Fix For: 12.0.0.Beta1, 12.0.0.Final
>
>
> The Servlet spec only talks about the presence of ServletContainerInitializer's within JAR files bundled on the WAR. It says nothing about what to do when found on the WAR and Undertow is ignored them right now, which is spec complaint.
> However, WildFly has the only Servlet container I'm aware of that ignores that classes, having tested Payara, WebLogic,WebSphere Liberty, Jetty, Tomcat and Resin.
> It would be good to support them on Undertow too.
> I've also opened an issue on the Servlet spec repository, so this can be clarified for future versions of the document: https://github.com/javaee/servlet-spec/issues/179
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 2 months
[JBoss JIRA] (WFCORE-3411) CLI operation completion issues
by Jean-Francois Denise (JIRA)
[ https://issues.jboss.org/browse/WFCORE-3411?page=com.atlassian.jira.plugi... ]
Jean-Francois Denise commented on WFCORE-3411:
----------------------------------------------
That is fine to have a single PR for all these completion issues. Thanks.
> CLI operation completion issues
> -------------------------------
>
> Key: WFCORE-3411
> URL: https://issues.jboss.org/browse/WFCORE-3411
> Project: WildFly Core
> Issue Type: Enhancement
> Components: CLI
> Reporter: Jean-Francois Denise
> Assignee: Marek Marusic
>
> :read-resource(proxies=<TAB> ==> :read-resource(proxies=alse should be :read-resource(proxies=false
> :reload-servers(start-mode=normal,!blocking ==> gives nothing, should be :reload-servers(start-mode=normal,!blocking)
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 2 months
[JBoss JIRA] (WFLY-9943) Sometimes WF process does not exit on RHEL 6 (32/64 bit) and IBM JDK 8
by Kabir Khan (JIRA)
[ https://issues.jboss.org/browse/WFLY-9943?page=com.atlassian.jira.plugin.... ]
Kabir Khan commented on WFLY-9943:
----------------------------------
{quote}
Kabir Khan This one seems to IBM SDK 8 issue on RHEL 6. Is there a way to report this to IBM?
{quote}
I believe in the past QE have been the ones opening tickets with IBM. Perhaps [~msvehla] or [~pslavicek] know how to do this
> Sometimes WF process does not exit on RHEL 6 (32/64 bit) and IBM JDK 8
> ----------------------------------------------------------------------
>
> Key: WFLY-9943
> URL: https://issues.jboss.org/browse/WFLY-9943
> Project: WildFly
> Issue Type: Bug
> Components: Server
> Affects Versions: 12.0.0.Final
> Environment: RHEL 6 32/64 bit
> IBM SDK 8.0.5.10:
> {code}java version "1.8.0_161
> Java(TM) SE Runtime Environment (build 8.0.5.10 - pxi3280sr5fp10-20180214_01(SR5 FP10))
> IBM J9 VM (build 2.9, JRE 1.8.0 Linux x86-32 20180208_378436 (JIT enabled, AOT enabled)
> OpenJ9 - 39bb844
> OMR - c04ccb2
> IBM - 2321a81)
> JCL - 20180209_01 based on Oracle jdk8u161-b12
> {code}
> Reporter: Miroslav Novak
> Assignee: Jason Greene
> Attachments: pstack.txt
>
>
> Sometimes happens that WF12 process does not exit when :shutdown CLI operation called and hangs indefinitely. This happens only RHEL 6 (32/64 bit) with IBM SDK8.
> Calling kill -3 does not create any javacore dump and only output could be gathered from pstack (attached). It indicates that JVM shutdown thread is hanging on:
> {code}
> Thread 25 (Thread 0xb7792b70 (LWP 25507)):
> #0 0x00bd4424 in __kernel_vsyscall ()
> #1 0x00b2243c in pthread_cond_wait@(a)GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x004f8b1f in monitor_wait_original () from /qa/tools/opt/ibm-java-i386-sdk-8.0-5.10/jre/lib/i386/default/libj9thr29.so
> #3 0x004f9957 in omrthread_monitor_wait () from /qa/tools/opt/ibm-java-i386-sdk-8.0-5.10/jre/lib/i386/default/libj9thr29.so
> #4 0x0033e217 in protectedDestroyJavaVM () from /qa/tools/opt/ibm-java-i386-sdk-8.0-5.10/jre/lib/i386/default/libj9vm29.so
> #5 0x0042cf6e in omrsig_protect () from /qa/tools/opt/ibm-java-i386-sdk-8.0-5.10/jre/lib/i386/default/libj9prt29.so
> #6 0x0033db93 in DestroyJavaVM () from /qa/tools/opt/ibm-java-i386-sdk-8.0-5.10/jre/lib/i386/default/libj9vm29.so
> #7 0x00815999 in DestroyJavaVM () from /qa/tools/opt/ibm-java-i386-sdk-8.0-5.10/jre/lib/i386/default/libjvm.so
> #8 0x00528649 in JavaMain () from /qa/tools/opt/ibm-java-i386-sdk-8.0-5.10/jre/bin/../lib/i386/jli/libjli.so
> #9 0x00b1ebc9 in start_thread () from /lib/libpthread.so.0
> #10 0x001fc04e in clone () from /lib/libc.so.6
> {code}
> There are other 24 threads which might be blocking this thread or a dead lock. This appears to be problem in IBM SDK 8 in combination RHEL 6 GLIBC_2.3.2 library.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 2 months
[JBoss JIRA] (WFLY-9961) [JDK9+] @WebListener and Spring WebApplicationInitializer not working (JDK8 OK!)
by cnsgithub cnsgithub (JIRA)
[ https://issues.jboss.org/browse/WFLY-9961?page=com.atlassian.jira.plugin.... ]
cnsgithub cnsgithub updated WFLY-9961:
--------------------------------------
Description:
After upgrading to WFLY 12 Final, the WebApplicationInitializer class residing in the *.war classes Folder is no longer being detected when built with JDK 9. However with JDK 1.8 it works as expected.
With WFLY 11, both variants JDK9, and JDK1.8 Build were working.
{code:java}
package de.test;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import org.springframework.web.WebApplicationInitializer;
public class MyWebApplicationInitializer implements WebApplicationInitializer {
@Override
public void onStartup(ServletContext container) throws ServletException {
System.out.println("!!!!!!!!!!!!!! ;-) !!!!!!!!!!!!");
}
}
{code}
Maybe(!) related to this: https://issues.jboss.org/browse/WFLY-9081
Even more serious: the @WebListener doesn't seem to be recognized with JDK9 as well:
{code:java}
package de.test;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionIdListener;
import javax.servlet.http.HttpSessionListener;
@WebListener
public class MyWebListener implements ServletContextListener, HttpSessionIdListener, HttpSessionListener {
@Override
public void contextInitialized(ServletContextEvent event) {
System.out.println("contextInitialized !!!!!!!! I'm only working when i was built with JDK8");
}
@Override
public void sessionIdChanged(HttpSessionEvent arg0, String arg1) {
// TODO Auto-generated method stub
}
}
{code}
was:
After upgrading to WFLY 12 Final, the WebApplicationInitializer class residing in the *.war classes Folder is no longer being detected when built with JDK 9. However with JDK 1.8 it works as expected.
With WFLY 11, both variants JDK9, and JDK1.8 Build were working.
{code:java}
package de.test;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import org.springframework.web.WebApplicationInitializer;
public class MyWebApplicationInitializer implements WebApplicationInitializer {
@Override
public void onStartup(ServletContext container) throws ServletException {
System.out.println("!!!!!!!!!!!!!! ;-) !!!!!!!!!!!!");
}
}
{code}
Maybe(!) related to this: https://issues.jboss.org/browse/WFLY-9081
Even more serious: the @WebListener doesn't seem to be recognized with JDK9 as well:
{code:java}
package de.test;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionIdListener;
import javax.servlet.http.HttpSessionListener;
@WebListener
public class MyWebListener implements ServletContextListener, HttpSessionIdListener, HttpSessionListener {
@Override
public void contextInitialized(ServletContextEvent event) {
System.out.println("contextInitialized !!!!!!!! I'm only working when i was built with JDK9");
}
@Override
public void sessionIdChanged(HttpSessionEvent arg0, String arg1) {
// TODO Auto-generated method stub
}
}
{code}
> [JDK9+] @WebListener and Spring WebApplicationInitializer not working (JDK8 OK!)
> --------------------------------------------------------------------------------
>
> Key: WFLY-9961
> URL: https://issues.jboss.org/browse/WFLY-9961
> Project: WildFly
> Issue Type: Bug
> Components: Web (Undertow)
> Affects Versions: 12.0.0.Final
> Reporter: cnsgithub cnsgithub
> Assignee: Stuart Douglas
> Priority: Blocker
>
> After upgrading to WFLY 12 Final, the WebApplicationInitializer class residing in the *.war classes Folder is no longer being detected when built with JDK 9. However with JDK 1.8 it works as expected.
> With WFLY 11, both variants JDK9, and JDK1.8 Build were working.
> {code:java}
> package de.test;
> import javax.servlet.ServletContext;
> import javax.servlet.ServletException;
> import org.springframework.web.WebApplicationInitializer;
> public class MyWebApplicationInitializer implements WebApplicationInitializer {
> @Override
> public void onStartup(ServletContext container) throws ServletException {
> System.out.println("!!!!!!!!!!!!!! ;-) !!!!!!!!!!!!");
> }
> }
> {code}
> Maybe(!) related to this: https://issues.jboss.org/browse/WFLY-9081
> Even more serious: the @WebListener doesn't seem to be recognized with JDK9 as well:
> {code:java}
> package de.test;
> import javax.servlet.ServletContextEvent;
> import javax.servlet.ServletContextListener;
> import javax.servlet.annotation.WebListener;
> import javax.servlet.http.HttpSessionEvent;
> import javax.servlet.http.HttpSessionIdListener;
> import javax.servlet.http.HttpSessionListener;
> @WebListener
> public class MyWebListener implements ServletContextListener, HttpSessionIdListener, HttpSessionListener {
> @Override
> public void contextInitialized(ServletContextEvent event) {
> System.out.println("contextInitialized !!!!!!!! I'm only working when i was built with JDK8");
> }
>
> @Override
> public void sessionIdChanged(HttpSessionEvent arg0, String arg1) {
> // TODO Auto-generated method stub
>
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 2 months
[JBoss JIRA] (WFLY-9961) [JDK9+] @WebListener and Spring WebApplicationInitializer not working (JDK8 OK!)
by cnsgithub cnsgithub (JIRA)
[ https://issues.jboss.org/browse/WFLY-9961?page=com.atlassian.jira.plugin.... ]
cnsgithub cnsgithub updated WFLY-9961:
--------------------------------------
Description:
After upgrading to WFLY 12 Final, the WebApplicationInitializer class residing in the *.war classes Folder is no longer being detected when built with JDK 9. However with JDK 1.8 it works as expected.
With WFLY 11, both variants JDK9, and JDK1.8 Build were working.
{code:java}
package de.test;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import org.springframework.web.WebApplicationInitializer;
public class MyWebApplicationInitializer implements WebApplicationInitializer {
@Override
public void onStartup(ServletContext container) throws ServletException {
System.out.println("!!!!!!!!!!!!!! ;-) !!!!!!!!!!!!");
}
}
{code}
Maybe(!) related to this: https://issues.jboss.org/browse/WFLY-9081
Even more serious: the @WebListener doesn't seem to be recognized with JDK9 as well:
{code:java}
package de.test;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionIdListener;
import javax.servlet.http.HttpSessionListener;
@WebListener
public class MyWebListener implements ServletContextListener, HttpSessionIdListener, HttpSessionListener {
@Override
public void contextInitialized(ServletContextEvent event) {
System.out.println("contextInitialized !!!!!!!! I'm only working when i was built with JDK9");
}
@Override
public void sessionIdChanged(HttpSessionEvent arg0, String arg1) {
// TODO Auto-generated method stub
}
}
{code}
was:
After upgrading to WFLY 12 Final, the WebApplicationInitializer class residing in the *.war classes Folder is no longer being detected when built with JDK 9. However with JDK 1.8 it works as expected.
With WFLY 11, both variants JDK9, and JDK1.8 Build were working.
{code:java}
package de.test;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import org.springframework.web.WebApplicationInitializer;
public class MyWebApplicationInitializer implements WebApplicationInitializer {
@Override
public void onStartup(ServletContext container) throws ServletException {
System.out.println("!!!!!!!!!!!!!! ;-) !!!!!!!!!!!!");
}
}
{code}
Maybe(!) related to this: https://issues.jboss.org/browse/WFLY-9081
> [JDK9+] @WebListener and Spring WebApplicationInitializer not working (JDK8 OK!)
> --------------------------------------------------------------------------------
>
> Key: WFLY-9961
> URL: https://issues.jboss.org/browse/WFLY-9961
> Project: WildFly
> Issue Type: Bug
> Components: Web (Undertow)
> Affects Versions: 12.0.0.Final
> Reporter: cnsgithub cnsgithub
> Assignee: Stuart Douglas
> Priority: Blocker
>
> After upgrading to WFLY 12 Final, the WebApplicationInitializer class residing in the *.war classes Folder is no longer being detected when built with JDK 9. However with JDK 1.8 it works as expected.
> With WFLY 11, both variants JDK9, and JDK1.8 Build were working.
> {code:java}
> package de.test;
> import javax.servlet.ServletContext;
> import javax.servlet.ServletException;
> import org.springframework.web.WebApplicationInitializer;
> public class MyWebApplicationInitializer implements WebApplicationInitializer {
> @Override
> public void onStartup(ServletContext container) throws ServletException {
> System.out.println("!!!!!!!!!!!!!! ;-) !!!!!!!!!!!!");
> }
> }
> {code}
> Maybe(!) related to this: https://issues.jboss.org/browse/WFLY-9081
> Even more serious: the @WebListener doesn't seem to be recognized with JDK9 as well:
> {code:java}
> package de.test;
> import javax.servlet.ServletContextEvent;
> import javax.servlet.ServletContextListener;
> import javax.servlet.annotation.WebListener;
> import javax.servlet.http.HttpSessionEvent;
> import javax.servlet.http.HttpSessionIdListener;
> import javax.servlet.http.HttpSessionListener;
> @WebListener
> public class MyWebListener implements ServletContextListener, HttpSessionIdListener, HttpSessionListener {
> @Override
> public void contextInitialized(ServletContextEvent event) {
> System.out.println("contextInitialized !!!!!!!! I'm only working when i was built with JDK9");
> }
>
> @Override
> public void sessionIdChanged(HttpSessionEvent arg0, String arg1) {
> // TODO Auto-generated method stub
>
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 2 months
[JBoss JIRA] (WFLY-9961) [JDK9+] @WebListener and Spring WebApplicationInitializer not working (JDK8 OK!)
by cnsgithub cnsgithub (JIRA)
[ https://issues.jboss.org/browse/WFLY-9961?page=com.atlassian.jira.plugin.... ]
cnsgithub cnsgithub updated WFLY-9961:
--------------------------------------
Summary: [JDK9+] @WebListener and Spring WebApplicationInitializer not working (JDK8 OK!) (was: [JDK9+] Spring WebApplicationInitializer not working (JDK8 OK!))
> [JDK9+] @WebListener and Spring WebApplicationInitializer not working (JDK8 OK!)
> --------------------------------------------------------------------------------
>
> Key: WFLY-9961
> URL: https://issues.jboss.org/browse/WFLY-9961
> Project: WildFly
> Issue Type: Bug
> Components: Web (Undertow)
> Affects Versions: 12.0.0.Final
> Reporter: cnsgithub cnsgithub
> Assignee: Stuart Douglas
> Priority: Blocker
>
> After upgrading to WFLY 12 Final, the WebApplicationInitializer class residing in the *.war classes Folder is no longer being detected when built with JDK 9. However with JDK 1.8 it works as expected.
> With WFLY 11, both variants JDK9, and JDK1.8 Build were working.
> {code:java}
> package de.test;
> import javax.servlet.ServletContext;
> import javax.servlet.ServletException;
> import org.springframework.web.WebApplicationInitializer;
> public class MyWebApplicationInitializer implements WebApplicationInitializer {
> @Override
> public void onStartup(ServletContext container) throws ServletException {
> System.out.println("!!!!!!!!!!!!!! ;-) !!!!!!!!!!!!");
> }
> }
> {code}
> Maybe(!) related to this: https://issues.jboss.org/browse/WFLY-9081
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 2 months
[JBoss JIRA] (WFLY-9961) [JDK9+] Spring WebApplicationInitializer not working (JDK8 OK!)
by cnsgithub cnsgithub (JIRA)
cnsgithub cnsgithub created WFLY-9961:
-----------------------------------------
Summary: [JDK9+] Spring WebApplicationInitializer not working (JDK8 OK!)
Key: WFLY-9961
URL: https://issues.jboss.org/browse/WFLY-9961
Project: WildFly
Issue Type: Bug
Components: Web (Undertow)
Affects Versions: 12.0.0.Final
Reporter: cnsgithub cnsgithub
Assignee: Stuart Douglas
Priority: Blocker
After upgrading to WFLY 12 Final, the WebApplicationInitializer class residing in the *.war classes Folder is no longer being detected when built with JDK 9. However with JDK 1.8 it works as expected.
With WFLY 11, both variants JDK9, and JDK1.8 Build were working.
{code:java}
package de.test;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import org.springframework.web.WebApplicationInitializer;
public class MyWebApplicationInitializer implements WebApplicationInitializer {
@Override
public void onStartup(ServletContext container) throws ServletException {
System.out.println("!!!!!!!!!!!!!! ;-) !!!!!!!!!!!!");
}
}
{code}
Maybe(!) related to this: https://issues.jboss.org/browse/WFLY-9081
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 2 months
[JBoss JIRA] (WFLY-9081) Support ServletContainerInitializer placed on WARs
by cnsgithub cnsgithub (JIRA)
[ https://issues.jboss.org/browse/WFLY-9081?page=com.atlassian.jira.plugin.... ]
cnsgithub cnsgithub edited comment on WFLY-9081 at 3/6/18 5:01 AM:
-------------------------------------------------------------------
I think something related to this, broke something with WF12 when using Spring. Currently i can't provide a *.war to test but a class residing in the *.war classes path is no longer recognized. (Addition: It seems to happen only if the *.war is residing inside an *.ear)
import org.springframework.web.WebApplicationInitializer;
public class MyWebApplicationInitializer implements WebApplicationInitializer
[0m[0m09:52:16,244 INFO [io.undertow.servlet] (ServerService Thread Pool -- 51) No Spring WebApplicationInitializer types detected on classpath
org.springframework.web.SpringServletContainerInitializer
@Override
public void onStartup(@Nullable Set<Class<?>> webAppInitializerClasses, ServletContext servletContext)
->> WebAppInitializerClasses does not contain the MyWebApplicationInitializer anymore
Ultimately this call is coming from: WarMetaDataProcessor
I hope this is enough to find the cause of this. The same configuration worked fine with WF11 Final.
Further Edit: It seems to happen only when the class is built with Java9!
was (Author: pcom.progweb):
I think something related to this, broke something with WF12 when using Spring. Currently i can't provide a *.war to test but a class residing in the *.war classes path is no longer recognized. (Addition: It seems to happen only if the *.war is residing inside an *.ear)
import org.springframework.web.WebApplicationInitializer;
public class MyWebApplicationInitializer implements WebApplicationInitializer
[0m[0m09:52:16,244 INFO [io.undertow.servlet] (ServerService Thread Pool -- 51) No Spring WebApplicationInitializer types detected on classpath
org.springframework.web.SpringServletContainerInitializer
@Override
public void onStartup(@Nullable Set<Class<?>> webAppInitializerClasses, ServletContext servletContext)
->> WebAppInitializerClasses does not contain the MyWebApplicationInitializer anymore
Ultimately this call is coming from: WarMetaDataProcessor
I hope this is enough to find the cause of this. The same configuration worked fine with WF11 Final.
> Support ServletContainerInitializer placed on WARs
> --------------------------------------------------
>
> Key: WFLY-9081
> URL: https://issues.jboss.org/browse/WFLY-9081
> Project: WildFly
> Issue Type: Feature Request
> Reporter: Guillermo González de Agüero
> Assignee: Stuart Douglas
> Fix For: 12.0.0.Beta1, 12.0.0.Final
>
>
> The Servlet spec only talks about the presence of ServletContainerInitializer's within JAR files bundled on the WAR. It says nothing about what to do when found on the WAR and Undertow is ignored them right now, which is spec complaint.
> However, WildFly has the only Servlet container I'm aware of that ignores that classes, having tested Payara, WebLogic,WebSphere Liberty, Jetty, Tomcat and Resin.
> It would be good to support them on Undertow too.
> I've also opened an issue on the Servlet spec repository, so this can be clarified for future versions of the document: https://github.com/javaee/servlet-spec/issues/179
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 2 months