You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2012/12/12 12:27:21 UTC
[jira] [Commented] (TOMEE-646) Commons-logging issue
[ https://issues.apache.org/jira/browse/TOMEE-646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13529855#comment-13529855 ]
Romain Manni-Bucau commented on TOMEE-646:
------------------------------------------
was not able to reproduce on trunk with the bean:
{code}
@Startup
@Singleton
public class Demo {
private static final Log log = LogFactory.getLog(Demo.class);
@PostConstruct
public void init() {
LogFactory.getLog(Demo.class);
log.info(">>> ok");
}
}
{code}
please share a sample reproducing the issue
> Commons-logging issue
> ---------------------
>
> Key: TOMEE-646
> URL: https://issues.apache.org/jira/browse/TOMEE-646
> Project: TomEE
> Issue Type: Bug
> Affects Versions: 1.5.1
> Environment: Maven config:
> <plugin>
> <groupId>org.apache.openejb.maven</groupId>
> <artifactId>tomee-maven-plugin</artifactId>
> <version>1.0.1-SNAPSHOT</version>
> <configuration>
> <tomeeVersion>1.5.1-SNAPSHOT</tomeeVersion>
> <tomeeClassifier>plus</tomeeClassifier>
> <config>${basedir}/src/main/conf</config>
> <systemVariables>
> <openjpa.Log>DefaultLevel=TRACE</openjpa.Log>
> </systemVariables>
> </configuration>
> </plugin>
> Reporter: Pierre Devreux
> Priority: Blocker
>
> Deploying within TomEE plus an application logging with commons-logging 1.1.1 generates the following error:
> java.lang.IllegalAccessError
> tried to access class org.apache.commons.logging.LogFactory$6 from class org.apache.commons.logging.LogFactory
> Stack trace
> org.apache.commons.logging.LogFactory.getSystemProperty(LogFactory.java:1558)
> org.apache.commons.logging.LogFactory.initDiagnostics(LogFactory.java:1575)
> org.apache.commons.logging.LogFactory.<clinit>(LogFactory.java:1817)
> net.myapp.components.Logout.<clinit>(Logout.java:25)
> The same application works well with version 1.5.0.
> It seems the classloader excludes commons-logging leading to a classloading mismatch
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira