After version 5.3.4.80, Lucee no longer works with WildFly 8.2 server, on JDK 8

Description

Reproduction steps:

  1. Dowload WF 8.2.0 and extract under ${WF}

  2. Download Lucee WAR (5.3.6.61 or 5.3.5.92) and unpack into ${WF}/standalone/deployments/lucee-${V}.war

  3. Touch ${WF}/standalone/deployments/lucee-${V}.war.dodeploy file

  4. Start WildFly 8.2 server (default configuration) under java 8 (azul, openjdk or oracle).

This fails due to:
...
Caused by: java.lang.StackOverflowError
at java.lang.StringBuilder.append(StringBuilder.java:136) [rt.jar:1.8.0_251]
at org.jboss.modules.LocalModuleFinder.toString(LocalModuleFinder.java:205) [jboss-modules.jar:1.3.3.Final]
at java.lang.String.valueOf(String.java:2994) [rt.jar:1.8.0_251]
at java.lang.StringBuilder.append(StringBuilder.java:131) [rt.jar:1.8.0_251]
at org.jboss.modules.LocalModuleLoader.toString(LocalModuleLoader.java:66) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.Module.toString(Module.java:895) [jboss-modules.jar:1.3.3.Final]
at java.lang.String.valueOf(String.java:2994) [rt.jar:1.8.0_251]
at java.lang.StringBuilder.append(StringBuilder.java:131) [rt.jar:1.8.0_251]
at org.jboss.modules.ModuleClassLoader.toString(ModuleClassLoader.java:609) [jboss-modules.jar:1.3.3.Final]
at java.lang.String.valueOf(String.java:2994) [rt.jar:1.8.0_251]
at java.lang.StringBuilder.append(StringBuilder.java:131) [rt.jar:1.8.0_251]
at lucee.commons.io.SystemUtil.getClassLoaderContext(SystemUtil.java:1496)
at lucee.runtime.osgi.EnvClassLoader.load(EnvClassLoader.java:153)
at lucee.runtime.osgi.EnvClassLoader.loadClass(EnvClassLoader.java:98)
at lucee.runtime.osgi.EnvClassLoader.loadClass(EnvClassLoader.java:66)
at java.lang.Class.forName0(Native Method) [rt.jar:1.8.0_251]
at java.lang.Class.forName(Class.java:348) [rt.jar:1.8.0_251]
at javax.xml.parsers.FactoryFinder.getProviderClass(FactoryFinder.java:113) [rt.jar:1.8.0_251]
at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:188) [rt.jar:1.8.0_251]
at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:152) [rt.jar:1.8.0_251]
at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:232) [rt.jar:1.8.0_251]
at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:120) [rt.jar:1.8.0_251]
at lucee.runtime.text.xml.XMLUtil.getDocumentBuilderFactoryName(XMLUtil.java:422)
at lucee.runtime.osgi.EnvClassLoader.load(EnvClassLoader.java:122)
at lucee.runtime.osgi.EnvClassLoader.getResourceAsStream(EnvClassLoader.java:78)
....

 

Same steps work fine for Lucee <= 5.3.4.80

Attachments

1

Activity

Mihai Manuta 
15 September 2020 at 17:03

, yes, in an ideal world we would be on latest WildFly and latest Lucee. But I suspect many enterprises (like in the case I’m working on right now) postponed the upgrades to the platform because “it works” so “why change it?” and now they don’t want to migrate to latest version of ACF because it’s too expensive but they have legacy applications still running on old application servers.

Yes, we are considering sponsoring this fix, most likely by putting the man-hours required for the fix. However we are in the process of analysing costs related to migrating to newer WildFly versions and if we can live with Lucee 5.3.4.80 until that happens. Depending on this, we may take on the fix or… as you said, may wait and move forward.

However this bug should remain (until fixed), as it is an indication for other companies trying to make the move and may find themselves the same situation (old WildFly, with new Lucee).

Zac Spitzer 
15 September 2020 at 16:02

Fixing an a bug with an older version, when the latest version already works fine?

Honestly, you probably need to consider sponsoring the effort required to let you stay on an older version

Mihai Manuta 
15 September 2020 at 14:32

This works indeed with latest versions of WildFly. However, the specified version (8.2.0) does not work. I tested this on Linux, Macos and Windows. Unfortunately, for the migration project I am working on, we are stuck with WF 8.2.0 (at least for now).

Pothys - MitrahSoft 
14 September 2020 at 15:45

I've checked this ticket on wildfly server with ( 5.3.8.25-SNAPSHOT, 5.3.8.12-SNAPSHOT, 5.3.6.61 and 5.3.8.70-SNAPSHOT ). It Works fine with that server. I've not seen this error and faced only this error
will confirm about this issue.

ServletContextListener;java.lang.IllegalStateException: UT010041: The servlet context has already been initialized, you can only call this method from a ServletContainerInitializer or a ServletContextListener.

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Priority

Created 24 June 2020 at 13:12
Updated 15 September 2020 at 17:03