Hi,

it is said that log4j.properties of a java project built by maven goes
into /src/main/resources

I did so for my axis2 SpezplaService project.

My SpezplaService runs very well and the log4j.properties is in 
AS/webapps/axis2/WEB_INF/classes, 
and this log4j.properties are just for axis2 usage 
and tomcat has it's own log4j.properties file.

In short, in my project, in NetBeans, ...
AS/webapp/axis2/WEB_INF/classes
seams to be the common place for log4j.properties ! isn't it?

That results in the following:

Having only one axis2 project 
my log4j.properties reside at src/main/resources/log4j.properties
maven clean build packages
my log4j.properties into SpezplaService.aar and
when I distribute SpezplaService.aar into
AS/webapp/axis2/WEB-INF/services
SpezplaServices.aar is unpackaged and deployed by
deployment.ServiceDeployer
When the axis2 deployment is finished you CANOT find the
log4j.properties in
AS/webapps/WEB-INF/classes, it is just not deployed.

What is wrong?
Do I have to copy it by hand to this place?

Why does the axis2 deployment.ServiceDeployer not deploy my
log4j.properties 
into at least AS/webapps/WEB-INF/classes  directory.


at least - because this directory keeps classes and log4j.properties for
all
axis2 projects packaged into an .aar file.

So the question be allowed, to have only 2 such .aar files with 2
different 
log4j.properties to have each axis2 webservice its own log4j
configuration

Where should log4j.properties files go if I have more then one axis2
.aar packaged webservice?

How can I keep log4j configuartion separate for / with each web service
arriving in a ".aar" file? 

Josef





Reply via email to