Hi Jaikiran,
Problem is now solved for following structure of my .EAR file
| UserForm.EAR
| |
| |META-INF
| | |
| | |--MANIFEST.MF
| | |--application.xml
| | |--jboss-app.xml
| |
| |lib
| | |
| | |--log4j-1.2.15.jar
| |
Hi Jaikiran,
Can you put your comments on my previous post?
Thanks and Regards,
-Ashok
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4175027#4175027
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4175027
ashok.kadam wrote :
| *But still I am getting getting file not found exception while accessing
files from my java class.
|
|
You will have be provide us more details. This thread started off with
configuring your own log4j.properties file in the EAR, which you have been able
to
Hi Jaikiran,
Here is some more information about my case.
I have written my own classes for logging which extends functionality of
logging as follows,
BaseLogger -- Abstraction class for debuging and logging.Loads the
logging configuration. And uses the Logger for
The PropertyConfigurator.configure(filename) expects an absolute filename path.
How about changing this piece of code:
ashok.kadam wrote :
|
| |
| | /**
| | * Default BaseLogger Constructor.
| | */
| | private BaseLogger() {
| |
Hi Jaikiran,
It worked.
Problem is solved. And I can breath now.
Now I am able to load my log4j.properties.
Thanks for your help and quick replies.
Regards,
-Ashok
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4175204#4175204
Reply to the post :
Your EAR packaging still does not look right. You have created a new folder
named APP-INF and placed the jar in the subfolder lib under APP-INF. JBoss
does not recognize this APP-INF folder. Please read through my earlier reply
again to see how the packaging should look like.
anonymous wrote :
Which version of JBoss do you use?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4174460#4174460
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4174460
___
jboss-user mailing list
Hi JaiKiran,
I am using jboss-5.0.0.CR1.
I have referred your blog at http://jaitechwriteups.blogspot.com for log4j
configurations.
I have done exact setup suggested by you.
Also I have tried it on jboss-4.0.5.GA. but no use.
log files are not getting generated.
I have 2 EAR's
1]Containing only
anonymous wrote : I am using jboss-5.0.0.CR1.
I haven't tried with 5.0 CR1. But i believe it should work.
anonymous wrote : I have 2 EAR's
Let's just concentrate on one EAR for now.
Post the output of:
jar -tf MyEAROne.ear
where MyEAROne.ear is the name of your EAR file.
While posting
Hi Jaikiran,
Thanks for your quick reply.
Here is ouput of
anonymous wrote :
| jar -tf MyEAROne.ear
|
| META-INF/
| META-INF/MANIFEST.MF
| User_Form.war
| User_Form_EJBClient.jar
| User_Form_dao.jar
| User_Form_Utils.jar
| log4j-1.2.15.jar
| log4j.properties
|
1) Create a lib folder at the root of the EAR and move the log4j and other jar
files into that lib folder.
MyEAROne.ear
| |
| |--- META-INF
| | |
| | |--- application.xml
| | |
| | |--- jboss-app.xml
| |
| |
| |--- lib
| | |
| | |--- log4j-1.2.15.jar
|
Hi Jaikiran,
I have made following changes to my EAR file.
And tested but still no use.
| META-INF/
| META-INF/MANIFEST.MF
| User_Form.war
| User_Form_EJBClient.jar
| APP-INF/
| APP-INF/lib/
| APP-INF/lib/log4j-1.2.15.
| log4j.properties
| User_Form_Utils.jar
|
See http://wiki.jboss.org/wiki/Logging
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4174335#4174335
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4174335
___
jboss-user mailing
Hi ,
Thanks for your reply.
The configurations given in link you sent were helpful.
But my actual concern is I want to provide those configuration using
log4j.properties. I am unable to load that configuration file from my java
files.
Regards,
-Ashok
View the original post :
15 matches
Mail list logo