That came in handy!! I reverted the 62 changes I already made. Now just
classloader issues and switching from eclipselink to hibernate to go, fun fun
fun!
For anyone needing slf4j/log4j in jboss 7.1 (and maybe 7.0), you need a
Dependencies: org.apache.log4j in the MANIFEST.MF of the ear file.
To generate that in maven use the configuration->archive->manifestEntries
element taking <key>value</key> format as per below in your EAR's pom.xml
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Dependencies>org.apache.log4j</Dependencies>
</manifestEntries>
</archive>
<displayName>Java EE Application</displayName>
<modules>
<ejbModule>
<groupId>org.opencsta</groupId>
<artifactId>fullcti</artifactId>
</ejbModule>
<webModule>
<groupId>org.opencsta</groupId>
<artifactId>EventViewer</artifactId>
</webModule>
</modules>
</configuration>
</plugin>
Refer to the part they mention logging on this page
https://docs.jboss.org/author/display/AS7/How+do+I+migrate+my+application+from+AS5+or+AS6+to+AS7#HowdoImigratemyapplicationfromAS5orAS6toAS7-JBossLogging
for further clarification.
Tah,
Chris
On 15/02/2012, at 9:35 PM, Dmitry Gusev wrote:
> :)
>
> You can also find this useful:
> http://www.slf4j.org/legacy.html#log4j-over-slf4j
>
>
> On Wed, Feb 15, 2012 at 14:29, Chris Mylonas <[email protected]> wrote:
>
>> Thanks Dmitry - I'll keep going then!!
>> :D
>>
>>
>> On 15/02/2012, at 9:17 PM, Dmitry Gusev wrote:
>>
>>> I'm successfully running Tap5 application with slf4j/JUL on GAE, so
>> there's
>>> no log4j at all.
>>>
>>> On Wed, Feb 15, 2012 at 14:09, Chris Mylonas <[email protected]> wrote:
>>>
>>>> Hi List,
>>>>
>>>> Does anyone know if tapestry happily use JUL (java.util.logging) if
>> log4j
>>>> is taken out by using SLF4J?
>>>> I noticed the Tap-IoC module may have a problem -
>>>>
>> http://mvnrepository.com/artifact/org.apache.tapestry/tapestry-ioc/5.3.1
>>>> Could this be a problem?
>>>>
>>>> I seem to be hitting problems with JBoss 7 (and glassfish 3.1.1) with
>>>> logging in my EJBs because I stuck with the good old log4j Loggers from
>>>> yesteyear..
>>>> And I'd be happy to just run with slf4j+JUL and abandon log4j.
>>>>
>>>> Cheers
>>>> Chris
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [email protected]
>>>> For additional commands, e-mail: [email protected]
>>>>
>>>>
>>>
>>>
>>> --
>>> Dmitry Gusev
>>>
>>> AnjLab Team
>>> http://anjlab.com
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
> --
> Dmitry Gusev
>
> AnjLab Team
> http://anjlab.com