Re: Log4j sample example with EAR application

2011-10-19 Thread shaikbaji.forums

Thanks Jake

Jacob Kjome wrote:
 
 
 I haven't used JBOSS in ages, so I have no specific instructions for you.  
 But, ultimately, this is just a classloading question.
 
 Please consult your JBOSS classloading documentation.  If you want a
 single 
 instance of Log4j to be used across all applications, then you need to
 place 
 the log4j jar and config in a location where it can be seen by all apps in
 a 
 parent classloader.
 
 
 Jake
 
 On Mon, 17 Oct 2011 02:22:22 -0700 (PDT)
  shaikbaji.forums shaikbaji.for...@gmail.com wrote:
 
 Hi Jake,
 
 Thanks for your kind information.
 
 I am using JBOSS as server and I am using JBOSS Studio 2.0 as an IDE.
 
 Could you please send me any sample EAR application with log4j?
 
 Regards,
 Baji Shaik
 
 Jacob Kjome wrote:
 
 
 What server?  If Weblogic, try placing log4j.jar in the EAR's
 APP-INF/lib
 and the
 config in APP-INF/classes.  You won't need to place log4j in each
 webapp.
 
 Jake
 
 
 
 On 9/30/2011 8:12 AM, shaikbaji.forums wrote:
 
 Hi,
 
 I have designed a EAR project, It contains few EJB projects and one WEB
 project. I want to use the same log file across all the sub projects in
 that
 EAR so can you please send me any sample application which is same as
 my
 requirement.
 
 
 I just tried like as follow:
 
 
 1)I have copied the same log4j.properties file in every EJB and WEB
 project
 SRC folder.
 
 2)I have added the depended log4j.jar files to EAR and have given
 reference
 to the EJB projects.
 
 3)I have copied the log4j.jar to WEB-INF/lib folder of  my WEB project.
 
 
 When I am running my application, It's logging only my WEB project
 logs,
 It's not logging my EJB project logs.
 
 
 Kindly help me out.
 
 
 Thanks in advance!!!
 
 
 Regards,
 Baji
 
 -
 To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
 For additional commands, e-mail: log4j-user-h...@logging.apache.org
 
 
 
 
 -- 
 View this message in context: 
http://old.nabble.com/Log4j-sample-example-with-EAR-application-tp32569225p32665592.html
 Sent from the Log4j - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org
 
 
 
 
 -
 To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
 For additional commands, e-mail: log4j-user-h...@logging.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Log4j-sample-example-with-EAR-application-tp32569225p32683728.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Re: Log4j sample example with EAR application

2011-10-17 Thread shaikbaji.forums

Hi Jake,

Thanks for your kind information.

I am using JBOSS as server and I am using JBOSS Studio 2.0 as an IDE.

Could you please send me any sample EAR application with log4j?

Regards,
Baji Shaik

Jacob Kjome wrote:
 
 
 What server?  If Weblogic, try placing log4j.jar in the EAR's APP-INF/lib
 and the
 config in APP-INF/classes.  You won't need to place log4j in each webapp.
 
 Jake
 
 
 
 On 9/30/2011 8:12 AM, shaikbaji.forums wrote:
 
 Hi,
 
 I have designed a EAR project, It contains few EJB projects and one WEB
 project. I want to use the same log file across all the sub projects in
 that
 EAR so can you please send me any sample application which is same as my
 requirement.
 
 
 I just tried like as follow:
 
 
 1)I have copied the same log4j.properties file in every EJB and WEB
 project
 SRC folder.
 
 2)I have added the depended log4j.jar files to EAR and have given
 reference
 to the EJB projects.
 
 3)I have copied the log4j.jar to WEB-INF/lib folder of  my WEB project.
 
 
 When I am running my application, It's logging only my WEB project logs,
 It's not logging my EJB project logs.
 
 
 Kindly help me out.
 
 
 Thanks in advance!!!
 
 
 Regards,
 Baji
 
 -
 To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
 For additional commands, e-mail: log4j-user-h...@logging.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Log4j-sample-example-with-EAR-application-tp32569225p32665592.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Re: Log4j sample example with EAR application

2011-10-17 Thread Jacob Kjome


I haven't used JBOSS in ages, so I have no specific instructions for you.  
But, ultimately, this is just a classloading question.


Please consult your JBOSS classloading documentation.  If you want a single 
instance of Log4j to be used across all applications, then you need to place 
the log4j jar and config in a location where it can be seen by all apps in a 
parent classloader.



Jake

On Mon, 17 Oct 2011 02:22:22 -0700 (PDT)
 shaikbaji.forums shaikbaji.for...@gmail.com wrote:


Hi Jake,

Thanks for your kind information.

I am using JBOSS as server and I am using JBOSS Studio 2.0 as an IDE.

Could you please send me any sample EAR application with log4j?

Regards,
Baji Shaik

Jacob Kjome wrote:



What server?  If Weblogic, try placing log4j.jar in the EAR's APP-INF/lib
and the
config in APP-INF/classes.  You won't need to place log4j in each webapp.

Jake



On 9/30/2011 8:12 AM, shaikbaji.forums wrote:


Hi,

I have designed a EAR project, It contains few EJB projects and one WEB
project. I want to use the same log file across all the sub projects in
that
EAR so can you please send me any sample application which is same as my
requirement.


I just tried like as follow:


1)I have copied the same log4j.properties file in every EJB and WEB
project
SRC folder.

2)I have added the depended log4j.jar files to EAR and have given
reference
to the EJB projects.

3)I have copied the log4j.jar to WEB-INF/lib folder of  my WEB project.


When I am running my application, It's logging only my WEB project logs,
It's not logging my EJB project logs.


Kindly help me out.


Thanks in advance!!!


Regards,
Baji


-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org





--
View this message in context: 
http://old.nabble.com/Log4j-sample-example-with-EAR-application-tp32569225p32665592.html

Sent from the Log4j - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org





-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Log4j sample example with EAR application

2011-09-30 Thread shaikbaji.forums

Hi,

I have designed a EAR project, It contains few EJB projects and one WEB
project. I want to use the same log file across all the sub projects in that
EAR so can you please send me any sample application which is same as my
requirement.


I just tried like as follow:


1)I have copied the same log4j.properties file in every EJB and WEB project
SRC folder.

2)I have added the depended log4j.jar files to EAR and have given reference
to the EJB projects.

3)I have copied the log4j.jar to WEB-INF/lib folder of  my WEB project.


When I am running my application, It's logging only my WEB project logs,
It's not logging my EJB project logs.


Kindly help me out.


Thanks in advance!!!


Regards,
Baji
-- 
View this message in context: 
http://old.nabble.com/Log4j-sample-example-with-EAR-application-tp32569225p32569225.html
Sent from the Log4j - Users mailing list archive at Nabble.com.