[JBoss JIRA] (WFLY-9961) [JDK9+] @WebListener and Spring WebApplicationInitializer not working (JDK8 OK!)
by Jive JIRA Integration (JIRA)
[ https://issues.jboss.org/browse/WFLY-9961?page=com.atlassian.jira.plugin.... ]
Jive JIRA Integration updated WFLY-9961:
----------------------------------------
Forum Reference: https://developer.jboss.org/message/980852#980852
> [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}
> The actual error seems to happen quite early: JBossWebMetaData
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 2 months
[JBoss JIRA] (WFCORE-3670) module defined with an alias in jboss-deployment-structure.xml with fails to parse when annotations=true
by Chao Wang (JIRA)
[ https://issues.jboss.org/browse/WFCORE-3670?page=com.atlassian.jira.plugi... ]
Chao Wang moved JBEAP-14332 to WFCORE-3670:
-------------------------------------------
Project: WildFly Core (was: JBoss Enterprise Application Platform)
Key: WFCORE-3670 (was: JBEAP-14332)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: Server
(was: Server)
Affects Version/s: 4.0.0.Final
(was: 7.1.1.CR2)
> module defined with an alias in jboss-deployment-structure.xml with fails to parse when annotations=true
> --------------------------------------------------------------------------------------------------------
>
> Key: WFCORE-3670
> URL: https://issues.jboss.org/browse/WFCORE-3670
> Project: WildFly Core
> Issue Type: Bug
> Components: Server
> Affects Versions: 4.0.0.Final
> Reporter: Chao Wang
> Assignee: Chao Wang
>
> This is a follow up to JBEAP-13094.
> Having a deployment with jboss-deployment-structure like this:
> {code}
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
> <module name="deployment.application-exception-api">
> <resources>
> <resource-root path="application-exception-api.jar"/>
> </resources>
> <dependencies>
> <module name="javax.ejb.api" export="true"/>
> <module name="javaee.api" export="true"/>
> <module name="javax.api" export="true"/>
> </dependencies>
> <module-alias name="deployment.api" />
> </module>
> <sub-deployment name="application-exception-ejb.jar">
> <dependencies>
> <module name="deployment.api" annotations="true" meta-inf="export"/>
> </dependencies>
> </sub-deployment>
> </jboss-deployment-structure>
> {code}
> it fails to parse.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 2 months