You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by TestHorse <jo...@Parsons.com> on 2014/08/13 17:51:18 UTC

Webapp Logback Logging Does Not Work Using Tomee Plus 1.6.0 on Linux

I am able to get logback logging to work correctly on my development
environment (Windows) using Tomee 1.6.0.1; however, whenever I try to deploy
the webapp on my Tomee server on Linux, it never creates the "test.app.log"
file specified in the logback.xml configuration file inside of the
WEB-INF/classes directory of the webapp.

Using maven, I have included logback-classic-1.1.2 and logback-core-1.1.2 in
the WEB-INF/lib directory of the webapp.

I double check permissions for the directory to which I wish to write
(CATALINA_BASE/logs), but it is set to rw for all users so I doubt that is
the problem.

No matter what I try, all of my logs keep getting pushed to catalina.out.
Can anybody solve the mystery as to why logging with logback works correctly
on Windows (development environment) but not Linux?

I did a diff between Tomcat on my dev environment and Linux, and the only
changes present were classpath changes in the catalina.properties file. The
Linux version's classpath included all of the paths from the Windows
version, plus some.


Here is my link to the stackOverFlow  question.
<https://stackoverflow.com/questions/24944357/webapp-logback-logging-does-not-work-using-tomee-plus-1-6-0-on-linux>  




--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Webapp-Logback-Logging-Does-Not-Work-Using-Tomee-Plus-1-6-0-on-Linux-tp4671110.html
Sent from the TomEE Users mailing list archive at Nabble.com.

RE: Webapp Logback Logging Does Not Work Using Tomee Plus 1.6.0 on Linux

Posted by TestHorse <jo...@Parsons.com>.
Upgrading to Tomee 1.7.0 SNAPSHOT fixed it. I guess Netbeans was still
compiling with Java 8 somewhere. Thanks again for all the help! Maybe I'll
name my first born son Romain!



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Webapp-Logback-Logging-Does-Not-Work-Using-Tomee-Plus-1-6-0-on-Linux-tp4671110p4671156.html
Sent from the TomEE Users mailing list archive at Nabble.com.

RE: Webapp Logback Logging Does Not Work Using Tomee Plus 1.6.0 on Linux

Posted by TestHorse <jo...@Parsons.com>.
I've searched for answers on this asm4 exception and all of the
information I see states that compiling with Java 1.7 instead of 1.8,
would fix the issue. I made the changes and still get that error. Have you
had any experience with this?

 

From: Romain Manni-Bucau [via TomEE & OpenEJB]
[mailto:ml-node+s979440n4671145h85@n4.nabble.com] 
Sent: Thursday, August 14, 2014 8:32 AM
To: TestHorse
Subject: Re: Webapp Logback Logging Does Not Work Using Tomee Plus 1.6.0
on Linux

 

*.jar is legal 


Romain Manni-Bucau 
Twitter: @rmannibucau 
Blog: http://rmannibucau.wordpress.com/
<https://urldefense.proofpoint.com/v1/url?u=http://rmannibucau.wordpress.c
om/&k=ppNirDwWpcp60F64Pj2f9Q%3D%3D%0A&r=hvowkYTWOe8zWpT3%2BWNysghJb7zSmotm
oT%2BmP1MYdaE%3D%0A&m=A6fhYpRTrkxZBMKg%2FTK3w1AdcXXEamyhcxawYVjU880%3D%0A&
s=6ef620c121190bd1d0df1c719c2f8fd1e2e27b3a1df45c0268b89067c20a785a> 
LinkedIn: http://fr.linkedin.com/in/rmannibucau
<https://urldefense.proofpoint.com/v1/url?u=http://fr.linkedin.com/in/rman
nibucau&k=ppNirDwWpcp60F64Pj2f9Q%3D%3D%0A&r=hvowkYTWOe8zWpT3%2BWNysghJb7zS
motmoT%2BmP1MYdaE%3D%0A&m=A6fhYpRTrkxZBMKg%2FTK3w1AdcXXEamyhcxawYVjU880%3D
%0A&s=d6e9e0719b362c28390ca16758058f8afcd636fe4ef76f5298ba9835ad088161> 
Github: https://github.com/rmannibucau
<https://urldefense.proofpoint.com/v1/url?u=https://github.com/rmannibucau
&k=ppNirDwWpcp60F64Pj2f9Q%3D%3D%0A&r=hvowkYTWOe8zWpT3%2BWNysghJb7zSmotmoT%
2BmP1MYdaE%3D%0A&m=A6fhYpRTrkxZBMKg%2FTK3w1AdcXXEamyhcxawYVjU880%3D%0A&s=9
a23d3b5d058bb8e92078dc89f290fbcfed6b320eee5f89fe2c9bdb67431e354> 


2014-08-13 23:54 GMT+02:00 TestHorse <[hidden email]>: 


> I added the following to the jars.txt file: 
> 
> 
> 
> /home/tomee/lib/*.jar 
> 
> 
> 
> 
> 
> And go this exception. Is the "*" not legal?: 
> 
> 
> 
> java.lang.IllegalArgumentException 
> 
>         at org.apache.xbean.asm4.ClassReader.<init>(Unknown Source) 
> 
>         at org.apache.xbean.asm4.ClassReader.<init>(Unknown Source) 
> 
>         at org.apache.xbean.asm4.ClassReader.<init>(Unknown Source) 
> 
>         at 
>
org.apache.xbean.finder.AnnotationFinder.readClassDef(AnnotationFinder.jav

> a:1120) 
> 
>         at 
>
org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:139)

> 
>         at 
>
org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:152)

> 
>         at 
>
org.apache.xbean.finder.AsynchronousInheritanceAnnotationFinder.<init>(Asy

> nchronousInheritanceAnnotationFinder.java:43) 
> 
>         at 
>
org.apache.openejb.config.FinderFactory.newFinder(FinderFactory.java:114) 
> 
>         at 
> org.apache.openejb.config.FinderFactory.create(FinderFactory.java:68) 
> 
>         at 
>
org.apache.openejb.config.FinderFactory.createFinder(FinderFactory.java:57

> ) 
> 
>         at 
>
org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.j

> ava:830) 
> 
> 
> 
> 
> 
> 
> 
> From: TestHorse [via TomEE & OpenEJB] 
> [mailto:[hidden email]] 
> Sent: Wednesday, August 13, 2014 4:50 PM 
> To: TestHorse 
> Subject: Re: Webapp Logback Logging Does Not Work Using Tomee Plus 1.6.0

> on Linux 
> 
> 
> 
> I just looked into it briefly, and at first glance it looks like it is 
> exactly what I need. You are the man sir! 
> 
>   _____ 
> 
> If you reply to this email, your message will be added to the discussion

> below: 
> 
>
http://tomee-openejb.979440.n4.nabble.com/Webapp-Logback-Logging-Does-Not-
<https://urldefense.proofpoint.com/v1/url?u=http://tomee-openejb.979440.n4
.nabble.com/Webapp-Logback-Logging-Does-Not-&k=ppNirDwWpcp60F64Pj2f9Q%3D%3
D%0A&r=hvowkYTWOe8zWpT3%2BWNysghJb7zSmotmoT%2BmP1MYdaE%3D%0A&m=A6fhYpRTrkx
ZBMKg%2FTK3w1AdcXXEamyhcxawYVjU880%3D%0A&s=f613edddf89dd91fe9b90177989d7ef
49f7992f4ffada5a29ece189d6620cf0d> 
> Work-Using-Tomee-Plus-1-6-0-on-Linux-tp4671110p4671124.html 
>
<https://urldefense.proofpoint.com/v1/url?u=http://tomee-openejb.979440.n4
>
.nabble.com/Webapp-Logback-Logging-Does-Not-Work-Using-Tomee-Plus-1-6-0-on

>
-Linux-tp4671110p4671124.html&k=ppNirDwWpcp60F64Pj2f9Q%3D%3D%0A&r=hvowkYTW

>
Oe8zWpT3%2BWNysghJb7zSmotmoT%2BmP1MYdaE%3D%0A&m=khlracLmS0R0COj%2BHwbkcLcx

>
YXoLBAKlmHoRqO2tT6A%3D%0A&s=66071ae3af9056126c1f41a051840773f6f9ac07046a28

> bf9f15cfd46e10a6bb> 
> 
> To unsubscribe from Webapp Logback Logging Does Not Work Using Tomee
Plus 
> 1.6.0 on Linux, click here 
>
<https://urldefense.proofpoint.com/v1/url?u=http://tomee-openejb.979440.n4
>
.nabble.com/template/NamlServlet.jtp?macro%3Dunsubscribe_by_code%26node%3D

>
4671110%26code%3Dam9zZS5nb256YWxlenBpbm9AUGFyc29ucy5jb218NDY3MTExMHwtNjExM

>
DI5NzU4&k=ppNirDwWpcp60F64Pj2f9Q%3D%3D%0A&r=hvowkYTWOe8zWpT3%2BWNysghJb7zS

>
motmoT%2BmP1MYdaE%3D%0A&m=khlracLmS0R0COj%2BHwbkcLcxYXoLBAKlmHoRqO2tT6A%3D

> %0A&s=6e53223c5e4d9338cb9e1ef18b6a5ed0b670b042ccc928a3a65b8d802f2f492e>
. 
> NAML 
> 
> 
> 
> 
> 
> -- 
> View this message in context:
http://tomee-openejb.979440.n4.nabble.com/Webapp-Logback-Logging-Does-Not-
Work-Using-Tomee-Plus-1-6-0-on-Linux-tp4671110p4671130.html
<https://urldefense.proofpoint.com/v1/url?u=http://tomee-openejb.979440.n4
.nabble.com/Webapp-Logback-Logging-Does-Not-Work-Using-Tomee-Plus-1-6-0-on
-Linux-tp4671110p4671130.html&k=ppNirDwWpcp60F64Pj2f9Q%3D%3D%0A&r=hvowkYTW
Oe8zWpT3%2BWNysghJb7zSmotmoT%2BmP1MYdaE%3D%0A&m=A6fhYpRTrkxZBMKg%2FTK3w1Ad
cXXEamyhcxawYVjU880%3D%0A&s=6fca8e616867eb9814fc441edb35ccbf9112b1f4f73714
bb793296ccf106d84c> 
> Sent from the TomEE Users mailing list archive at Nabble.com. 

 

  _____  

If you reply to this email, your message will be added to the discussion
below:

http://tomee-openejb.979440.n4.nabble.com/Webapp-Logback-Logging-Does-Not-
Work-Using-Tomee-Plus-1-6-0-on-Linux-tp4671110p4671145.html
<https://urldefense.proofpoint.com/v1/url?u=http://tomee-openejb.979440.n4
.nabble.com/Webapp-Logback-Logging-Does-Not-Work-Using-Tomee-Plus-1-6-0-on
-Linux-tp4671110p4671145.html&k=ppNirDwWpcp60F64Pj2f9Q%3D%3D%0A&r=hvowkYTW
Oe8zWpT3%2BWNysghJb7zSmotmoT%2BmP1MYdaE%3D%0A&m=A6fhYpRTrkxZBMKg%2FTK3w1Ad
cXXEamyhcxawYVjU880%3D%0A&s=655f6d32673a4294483332504e9fff020c7f2e0d390a22
aac068b16189a92c79>  

To unsubscribe from Webapp Logback Logging Does Not Work Using Tomee Plus
1.6.0 on Linux, click here
<https://urldefense.proofpoint.com/v1/url?u=http://tomee-openejb.979440.n4
.nabble.com/template/NamlServlet.jtp?macro%3Dunsubscribe_by_code%26node%3D
4671110%26code%3Dam9zZS5nb256YWxlenBpbm9AUGFyc29ucy5jb218NDY3MTExMHwtNjExM
DI5NzU4&k=ppNirDwWpcp60F64Pj2f9Q%3D%3D%0A&r=hvowkYTWOe8zWpT3%2BWNysghJb7zS
motmoT%2BmP1MYdaE%3D%0A&m=A6fhYpRTrkxZBMKg%2FTK3w1AdcXXEamyhcxawYVjU880%3D
%0A&s=1da0bb4748794707ddf0bc03b5bca40d5e87c3d7be674661a5eec2ebb1f7ebcc> .
NAML 





--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Webapp-Logback-Logging-Does-Not-Work-Using-Tomee-Plus-1-6-0-on-Linux-tp4671110p4671151.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Webapp Logback Logging Does Not Work Using Tomee Plus 1.6.0 on Linux

Posted by Romain Manni-Bucau <rm...@gmail.com>.
*.jar is legal


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-08-13 23:54 GMT+02:00 TestHorse <jo...@parsons.com>:
> I added the following to the jars.txt file:
>
>
>
> /home/tomee/lib/*.jar
>
>
>
>
>
> And go this exception. Is the "*" not legal?:
>
>
>
> java.lang.IllegalArgumentException
>
>         at org.apache.xbean.asm4.ClassReader.<init>(Unknown Source)
>
>         at org.apache.xbean.asm4.ClassReader.<init>(Unknown Source)
>
>         at org.apache.xbean.asm4.ClassReader.<init>(Unknown Source)
>
>         at
> org.apache.xbean.finder.AnnotationFinder.readClassDef(AnnotationFinder.jav
> a:1120)
>
>         at
> org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:139)
>
>         at
> org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:152)
>
>         at
> org.apache.xbean.finder.AsynchronousInheritanceAnnotationFinder.<init>(Asy
> nchronousInheritanceAnnotationFinder.java:43)
>
>         at
> org.apache.openejb.config.FinderFactory.newFinder(FinderFactory.java:114)
>
>         at
> org.apache.openejb.config.FinderFactory.create(FinderFactory.java:68)
>
>         at
> org.apache.openejb.config.FinderFactory.createFinder(FinderFactory.java:57
> )
>
>         at
> org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.j
> ava:830)
>
>
>
>
>
>
>
> From: TestHorse [via TomEE & OpenEJB]
> [mailto:ml-node+s979440n4671124h34@n4.nabble.com]
> Sent: Wednesday, August 13, 2014 4:50 PM
> To: TestHorse
> Subject: Re: Webapp Logback Logging Does Not Work Using Tomee Plus 1.6.0
> on Linux
>
>
>
> I just looked into it briefly, and at first glance it looks like it is
> exactly what I need. You are the man sir!
>
>   _____
>
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://tomee-openejb.979440.n4.nabble.com/Webapp-Logback-Logging-Does-Not-
> Work-Using-Tomee-Plus-1-6-0-on-Linux-tp4671110p4671124.html
> <https://urldefense.proofpoint.com/v1/url?u=http://tomee-openejb.979440.n4
> .nabble.com/Webapp-Logback-Logging-Does-Not-Work-Using-Tomee-Plus-1-6-0-on
> -Linux-tp4671110p4671124.html&k=ppNirDwWpcp60F64Pj2f9Q%3D%3D%0A&r=hvowkYTW
> Oe8zWpT3%2BWNysghJb7zSmotmoT%2BmP1MYdaE%3D%0A&m=khlracLmS0R0COj%2BHwbkcLcx
> YXoLBAKlmHoRqO2tT6A%3D%0A&s=66071ae3af9056126c1f41a051840773f6f9ac07046a28
> bf9f15cfd46e10a6bb>
>
> To unsubscribe from Webapp Logback Logging Does Not Work Using Tomee Plus
> 1.6.0 on Linux, click here
> <https://urldefense.proofpoint.com/v1/url?u=http://tomee-openejb.979440.n4
> .nabble.com/template/NamlServlet.jtp?macro%3Dunsubscribe_by_code%26node%3D
> 4671110%26code%3Dam9zZS5nb256YWxlenBpbm9AUGFyc29ucy5jb218NDY3MTExMHwtNjExM
> DI5NzU4&k=ppNirDwWpcp60F64Pj2f9Q%3D%3D%0A&r=hvowkYTWOe8zWpT3%2BWNysghJb7zS
> motmoT%2BmP1MYdaE%3D%0A&m=khlracLmS0R0COj%2BHwbkcLcxYXoLBAKlmHoRqO2tT6A%3D
> %0A&s=6e53223c5e4d9338cb9e1ef18b6a5ed0b670b042ccc928a3a65b8d802f2f492e> .
> NAML
>
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/Webapp-Logback-Logging-Does-Not-Work-Using-Tomee-Plus-1-6-0-on-Linux-tp4671110p4671130.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

RE: Webapp Logback Logging Does Not Work Using Tomee Plus 1.6.0 on Linux

Posted by TestHorse <jo...@Parsons.com>.
I added the following to the jars.txt file:

 

/home/tomee/lib/*.jar

 

 

And go this exception. Is the "*" not legal?:

 

java.lang.IllegalArgumentException

        at org.apache.xbean.asm4.ClassReader.<init>(Unknown Source)

        at org.apache.xbean.asm4.ClassReader.<init>(Unknown Source)

        at org.apache.xbean.asm4.ClassReader.<init>(Unknown Source)

        at
org.apache.xbean.finder.AnnotationFinder.readClassDef(AnnotationFinder.jav
a:1120)

        at
org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:139)

        at
org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:152)

        at
org.apache.xbean.finder.AsynchronousInheritanceAnnotationFinder.<init>(Asy
nchronousInheritanceAnnotationFinder.java:43)

        at
org.apache.openejb.config.FinderFactory.newFinder(FinderFactory.java:114)

        at
org.apache.openejb.config.FinderFactory.create(FinderFactory.java:68)

        at
org.apache.openejb.config.FinderFactory.createFinder(FinderFactory.java:57
)

        at
org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.j
ava:830)

 

 

 

From: TestHorse [via TomEE & OpenEJB]
[mailto:ml-node+s979440n4671124h34@n4.nabble.com] 
Sent: Wednesday, August 13, 2014 4:50 PM
To: TestHorse
Subject: Re: Webapp Logback Logging Does Not Work Using Tomee Plus 1.6.0
on Linux

 

I just looked into it briefly, and at first glance it looks like it is
exactly what I need. You are the man sir! 

  _____  

If you reply to this email, your message will be added to the discussion
below:

http://tomee-openejb.979440.n4.nabble.com/Webapp-Logback-Logging-Does-Not-
Work-Using-Tomee-Plus-1-6-0-on-Linux-tp4671110p4671124.html
<https://urldefense.proofpoint.com/v1/url?u=http://tomee-openejb.979440.n4
.nabble.com/Webapp-Logback-Logging-Does-Not-Work-Using-Tomee-Plus-1-6-0-on
-Linux-tp4671110p4671124.html&k=ppNirDwWpcp60F64Pj2f9Q%3D%3D%0A&r=hvowkYTW
Oe8zWpT3%2BWNysghJb7zSmotmoT%2BmP1MYdaE%3D%0A&m=khlracLmS0R0COj%2BHwbkcLcx
YXoLBAKlmHoRqO2tT6A%3D%0A&s=66071ae3af9056126c1f41a051840773f6f9ac07046a28
bf9f15cfd46e10a6bb>  

To unsubscribe from Webapp Logback Logging Does Not Work Using Tomee Plus
1.6.0 on Linux, click here
<https://urldefense.proofpoint.com/v1/url?u=http://tomee-openejb.979440.n4
.nabble.com/template/NamlServlet.jtp?macro%3Dunsubscribe_by_code%26node%3D
4671110%26code%3Dam9zZS5nb256YWxlenBpbm9AUGFyc29ucy5jb218NDY3MTExMHwtNjExM
DI5NzU4&k=ppNirDwWpcp60F64Pj2f9Q%3D%3D%0A&r=hvowkYTWOe8zWpT3%2BWNysghJb7zS
motmoT%2BmP1MYdaE%3D%0A&m=khlracLmS0R0COj%2BHwbkcLcxYXoLBAKlmHoRqO2tT6A%3D
%0A&s=6e53223c5e4d9338cb9e1ef18b6a5ed0b670b042ccc928a3a65b8d802f2f492e> .
NAML 





--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Webapp-Logback-Logging-Does-Not-Work-Using-Tomee-Plus-1-6-0-on-Linux-tp4671110p4671130.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Webapp Logback Logging Does Not Work Using Tomee Plus 1.6.0 on Linux

Posted by TestHorse <jo...@Parsons.com>.
I just looked into it briefly, and at first glance it looks like it is
exactly what I need. You are the man sir!



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Webapp-Logback-Logging-Does-Not-Work-Using-Tomee-Plus-1-6-0-on-Linux-tp4671110p4671124.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Webapp Logback Logging Does Not Work Using Tomee Plus 1.6.0 on Linux

Posted by Romain Manni-Bucau <rm...@gmail.com>.
PS: for wars you can use jars.txt to split it physically but not
logically (for container)


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-08-13 22:20 GMT+02:00 TestHorse <jo...@parsons.com>:
> Gotcha.
>
> I think we initially tried using an EAR but moved away from that approach
> due to the requirement for remote updates and bandwidth restrictions (only
> update necessary lib's instead of one "huge" ear file).
>
> Thanks for the help :).
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/Webapp-Logback-Logging-Does-Not-Work-Using-Tomee-Plus-1-6-0-on-Linux-tp4671110p4671122.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Webapp Logback Logging Does Not Work Using Tomee Plus 1.6.0 on Linux

Posted by TestHorse <jo...@Parsons.com>.
Gotcha. 

I think we initially tried using an EAR but moved away from that approach
due to the requirement for remote updates and bandwidth restrictions (only
update necessary lib's instead of one "huge" ear file).

Thanks for the help :).



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Webapp-Logback-Logging-Does-Not-Work-Using-Tomee-Plus-1-6-0-on-Linux-tp4671110p4671122.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Webapp Logback Logging Does Not Work Using Tomee Plus 1.6.0 on Linux

Posted by Romain Manni-Bucau <rm...@gmail.com>.
right

doing an ear can help even if more complicated


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-08-13 22:11 GMT+02:00 TestHorse <jo...@parsons.com>:
> Hi Romain, thank you for the quick response.
>
> Unfortunately I do not have a sample I can share, but I think I am closer to
> solving my problem.
>
> 1. Yes, I do have slf4j-api in WEB-INF/lib.
> 2. I just meant to say all of my webapp specific logs were directed to
> catalina.out instead of my "app.log" file.
>
>
> I went back to the bare-bones Tomee install without any configuration
> changes and used a .war file with every single dependent library included
> (in WEB-INF/lib). This worked perfectly and actually created the "app.log"
> file I wanted. Little by little, I changed any and all configuration options
> until the logs disappeared.
>
> I believe that separating our dependent libraries (some which are EJB's)
> from the webapp is the problem. In order to deploy the EJB's first due to
> the dependence the webapp has on them, we added "<Deployments dir="ejbs" />"
> so that the "ejbs" directory and all of the ejbs inside of it would be
> deployed first.
>
> Since the webapp and EJB's are not deployed together anymore (required to
> separate in order for client ability to update one lib/ejb at a time), it
> seems the logback-classic and logback-core jar's that are still in
> WEB-INF/lib are never loaded.
>
> If I add the required logback jars in the "ejb" directory, I suspect I will
> once again see the "app.log" file created, but it will affect all of the
> default, Tomee logs instead of just my webapp, right?
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/Webapp-Logback-Logging-Does-Not-Work-Using-Tomee-Plus-1-6-0-on-Linux-tp4671110p4671120.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Webapp Logback Logging Does Not Work Using Tomee Plus 1.6.0 on Linux

Posted by TestHorse <jo...@Parsons.com>.
Hi Romain, thank you for the quick response.

Unfortunately I do not have a sample I can share, but I think I am closer to
solving my problem.

1. Yes, I do have slf4j-api in WEB-INF/lib.
2. I just meant to say all of my webapp specific logs were directed to
catalina.out instead of my "app.log" file.


I went back to the bare-bones Tomee install without any configuration
changes and used a .war file with every single dependent library included
(in WEB-INF/lib). This worked perfectly and actually created the "app.log"
file I wanted. Little by little, I changed any and all configuration options
until the logs disappeared.

I believe that separating our dependent libraries (some which are EJB's)
from the webapp is the problem. In order to deploy the EJB's first due to
the dependence the webapp has on them, we added "<Deployments dir="ejbs" />"
so that the "ejbs" directory and all of the ejbs inside of it would be
deployed first. 

Since the webapp and EJB's are not deployed together anymore (required to
separate in order for client ability to update one lib/ejb at a time), it
seems the logback-classic and logback-core jar's that are still in
WEB-INF/lib are never loaded.

If I add the required logback jars in the "ejb" directory, I suspect I will
once again see the "app.log" file created, but it will affect all of the
default, Tomee logs instead of just my webapp, right?



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Webapp-Logback-Logging-Does-Not-Work-Using-Tomee-Plus-1-6-0-on-Linux-tp4671110p4671120.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Webapp Logback Logging Does Not Work Using Tomee Plus 1.6.0 on Linux

Posted by Romain Manni-Bucau <rm...@gmail.com>.
hi

do you have a sample to share?

you have slf4j-api in web-inf/lib?

Side note: catalina.out can be created even if logback works.


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-08-13 17:51 GMT+02:00 TestHorse <jo...@parsons.com>:
> I am able to get logback logging to work correctly on my development
> environment (Windows) using Tomee 1.6.0.1; however, whenever I try to deploy
> the webapp on my Tomee server on Linux, it never creates the "test.app.log"
> file specified in the logback.xml configuration file inside of the
> WEB-INF/classes directory of the webapp.
>
> Using maven, I have included logback-classic-1.1.2 and logback-core-1.1.2 in
> the WEB-INF/lib directory of the webapp.
>
> I double check permissions for the directory to which I wish to write
> (CATALINA_BASE/logs), but it is set to rw for all users so I doubt that is
> the problem.
>
> No matter what I try, all of my logs keep getting pushed to catalina.out.
> Can anybody solve the mystery as to why logging with logback works correctly
> on Windows (development environment) but not Linux?
>
> I did a diff between Tomcat on my dev environment and Linux, and the only
> changes present were classpath changes in the catalina.properties file. The
> Linux version's classpath included all of the paths from the Windows
> version, plus some.
>
>
> Here is my link to the stackOverFlow  question.
> <https://stackoverflow.com/questions/24944357/webapp-logback-logging-does-not-work-using-tomee-plus-1-6-0-on-linux>
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/Webapp-Logback-Logging-Does-Not-Work-Using-Tomee-Plus-1-6-0-on-Linux-tp4671110.html
> Sent from the TomEE Users mailing list archive at Nabble.com.