tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TOMEE-2183) org.apache.commons.codec filtered by the classloader but not provided by TomEE WebProfile
Date Mon, 09 Jul 2018 19:29:00 GMT

    [ https://issues.apache.org/jira/browse/TOMEE-2183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16537441#comment-16537441
] 

Romain Manni-Bucau commented on TOMEE-2183:
-------------------------------------------

[~violetagg] ear deployment is in 2 passes and webapp activation can be too lazy. My blind
guess is that it is why you have this timing issue more than anything else.
{code:java}
openejb.classloader.forced-load=org.apache.commons.codec # in conf/system.properties{code}
should allow you to workaround it.

> org.apache.commons.codec filtered by the classloader but not provided by TomEE WebProfile
> -----------------------------------------------------------------------------------------
>
>                 Key: TOMEE-2183
>                 URL: https://issues.apache.org/jira/browse/TOMEE-2183
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Core Server
>    Affects Versions: 7.0.4
>            Reporter: Violeta Georgieva
>            Assignee: Jonathan Gallimore
>            Priority: Major
>
> Hi,
>  
> I have an EAR file with "lib" folder that contains "commons-codec" and a WAR file that
uses the libraries located in the "lib" folder. I do not have issues with the other libraries
in that folder but with "commons-codec" I receive the exception below.
>  
> I'm using TomEE 7.0.4 WebProfile and in that distribution there is no "commons-codec"
provided by TomEE itself because of this I'm providing it with the EAR file.
>  
> While debugging I saw that "org.apache.commons.codec" is intentionally filtered by the
classloader
>  
> [https://github.com/apache/tomee/blob/master/container/openejb-core/src/main/java/org/apache/openejb/util/classloader/URLClassLoaderFirst.java#L305]
>  
> How it is supposed to provide this library so that my application can use it?
>  
> Thanks,
> Violeta
>  
> {code}
> java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Base64 org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285)
org.apache.tomee.catalina.TomEEWebappClassLoader.loadClass(TomEEWebappClassLoader.java:208)
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)
>  {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message