[forge-issues] [JBoss JIRA] (FORGE-1261) "rest endpoint-from-entity" fails, ClassNotFoundException: org.apache.log4j.Priority

Vineet Reynolds (JIRA) jira-events at lists.jboss.org
Wed Oct 16 01:15:37 EDT 2013


    [ https://issues.jboss.org/browse/FORGE-1261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12814445#comment-12814445 ] 

Vineet Reynolds commented on FORGE-1261:
----------------------------------------

Hi [~tm2], could you please attach the stack trace? This not easily reproducible and it looks like a codepath is executed that activates the log4j logger for some unknown reason. This is not expected behavior and it would be better to fix this without modifying the JBoss module for Freemarker.
                
> "rest endpoint-from-entity" fails, ClassNotFoundException: org.apache.log4j.Priority
> ------------------------------------------------------------------------------------
>
>                 Key: FORGE-1261
>                 URL: https://issues.jboss.org/browse/FORGE-1261
>             Project: Forge
>          Issue Type: Bug
>          Components: Plugin API
>    Affects Versions: 1.4.1.Final
>         Environment: (Environment-independent, but...) JDK 1.6.0_45, Windows Server 2008 R2
>            Reporter: Thomas Maslen
>            Priority: Minor
>
> Summary:  the org.freemarker module should express a dependency on org.apache.log4j but doesn't
> Workaround:  edit modules/org/freemarker/main/module.xml and add the dependency
> The long version:
> "rest endpoint-from-entity" works fine in the version of Forge that is bundled in JBoss Tools 4.1 (Forge 1.3.3).
> However, the DTO-based functionality added in FORGE-1060 looked tasty, so I downloaded Forge 1.4.1 and took it for a spin.
> Regardless of whether I run 1.4.1 standalone or within JBoss Tools (Eclipse), "rest endpoint-from-entity" fails with
>     java.lang.ClassNotFoundException: org.apache.log4j.Priority from [Module "org.freemarker:main" 
> (I have a complete stack trace but it doesn't add anything profound).
> Once I edited modules/org/freemarker/main/module.xml and added a dependency for the "org.apache.log4j" class, "rest endpoint-from-entity" ran happily and generated the expected classes.

--
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


More information about the forge-issues mailing list