[jboss-jira] [JBoss JIRA] (JBEE-251) FactoryFinderCache failed to read implementation when comments present

Alexey Markevich (Jira) issues at jboss.org
Sun Feb 16 14:44:00 EST 2020


    [ https://issues.redhat.com/browse/JBEE-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13972959#comment-13972959 ] 

Alexey Markevich commented on JBEE-251:
---------------------------------------

According to ServiceLoader javadoc 
{quote}The comment character is '#'{quote}

1. https://docs.oracle.com/javase/8/docs/api/java/util/ServiceLoader.html

> FactoryFinderCache failed to read implementation when comments present
> ----------------------------------------------------------------------
>
>                 Key: JBEE-251
>                 URL: https://issues.redhat.com/browse/JBEE-251
>             Project: JBoss Enterprise Spec APIs
>          Issue Type: Bug
>          Components: jboss-el-api
>            Reporter: Alexey Markevich
>            Assignee: Scott Marlow
>            Priority: Major
>
> Since Tomcat 9.0.31 [1] introduced ServiceLoader entry to META-INF for EL [2] following exception occurred [3].
> The same for 'jakarta.el:jakarta.el-api:3.0.3' and its FactoryFinder.
> 1. https://tomcat.apache.org/tomcat-9.0-doc/changelog.html
> 2. https://github.com/apache/tomcat/blob/9.0.31/res/META-INF/jasper-el.jar/services/javax.el.ExpressionFactory
> 3. 
> Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]
>         at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
>         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
>         at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
>         at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
>         at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
>         at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
>         ... 40 more
> Caused by: javax.el.ELException: Provider # Licensed to the Apache Software Foundation (ASF) under one or more not found
>         at javax.el.FactoryFinder.newInstance(FactoryFinder.java:64)
>         at javax.el.FactoryFinder.find(FactoryFinder.java:103)
>         at javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:140)
>         at javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:110)
>         at org.apache.jasper.runtime.JspApplicationContextImpl.<init>(JspApplicationContextImpl.java:49)
>         at org.apache.jasper.runtime.JspApplicationContextImpl.getInstance(JspApplicationContextImpl.java:78)
>         at org.apache.jasper.runtime.JspFactoryImpl.getJspApplicationContext(JspFactoryImpl.java:217)
>         at org.jboss.weld.environment.servlet.WeldServletLifecycle.initialize(WeldServletLifecycle.java:219)
>         at org.jboss.weld.environment.servlet.EnhancedListener.onStartup(EnhancedListener.java:62)
>         at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5135)
>         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
>         ... 46 more
> Caused by: java.lang.ClassNotFoundException: # Licensed to the Apache Software Foundation (ASF) under one or more
>         at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1365)
>         at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1188)
>         at javax.el.FactoryFinder.newInstance(FactoryFinder.java:48)
>         ... 56 more



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list