You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Michele Mazzucco <Mi...@ncl.ac.uk> on 2006/08/29 15:04:38 UTC

[Axis2] Service packaging how to

Hi all,

I've got a simple question: which structure should the aar file have if
libraries and property files are included?

Is the default (i.e. classes in / and libraries in /lib) ok? And what
about the property files?
I've tried also to store classes as well as property files (i.e. log4j
configuration )in /WEB-INF/classes, libraries in /WEB-INF/lib, but it
does not work properly.

Any idea?

Thanks in advance,
Michele

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] Service packaging how to

Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi Michele ;

>Thanks Deepal. So the J2EE packaging style is not required if no servlet
>are used, is it?
>  
>
That is the structure of axis service archive , there is no any
difference whether you use servlet not. Even  if you use simple http
server that is the structure of the axis service.

>The link you provided me does not explain where to put the property
>files: is it correct to store them to /? And then, how should I load
>them, via the service class loader (if I'm right every service has its
>own class loader)?
>  
>
put it them to lib director , and try to access the property as
classLoader.getResourceAsStream("my property");

>Thanks,
>Michele
>
>Deepal Jayasinghe wrote:
>  
>
>>Hi Michele ;
>>pls have a look at following reference , it will show how to put lib and
>>properties into service archive file.
>>http://www.developer.com/open/article.php/10930_3557741_2
>>
>>    
>>
>>>Hi all,
>>>
>>>I've got a simple question: which structure should the aar file have if
>>>libraries and property files are included?
>>>
>>>Is the default (i.e. classes in / and libraries in /lib) ok? And what
>>>about the property files?
>>>I've tried also to store classes as well as property files (i.e. log4j
>>>configuration )in /WEB-INF/classes, libraries in /WEB-INF/lib, but it
>>>does not work properly.
>>>
>>>Any idea?
>>>
>>>Thanks in advance,
>>>Michele
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>>
>>>
>>>
>>> 
>>>
>>>      
>>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] Service packaging how to

Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
Thanks Deepal. So the J2EE packaging style is not required if no servlet
are used, is it?
The link you provided me does not explain where to put the property
files: is it correct to store them to /? And then, how should I load
them, via the service class loader (if I'm right every service has its
own class loader)?

Thanks,
Michele

Deepal Jayasinghe wrote:
> Hi Michele ;
> pls have a look at following reference , it will show how to put lib and
> properties into service archive file.
> http://www.developer.com/open/article.php/10930_3557741_2
> 
>> Hi all,
>>
>> I've got a simple question: which structure should the aar file have if
>> libraries and property files are included?
>>
>> Is the default (i.e. classes in / and libraries in /lib) ok? And what
>> about the property files?
>> I've tried also to store classes as well as property files (i.e. log4j
>> configuration )in /WEB-INF/classes, libraries in /WEB-INF/lib, but it
>> does not work properly.
>>
>> Any idea?
>>
>> Thanks in advance,
>> Michele
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>>
>>  
>>
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] Service packaging how to

Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi Michele ;
pls have a look at following reference , it will show how to put lib and
properties into service archive file.
http://www.developer.com/open/article.php/10930_3557741_2

>Hi all,
>
>I've got a simple question: which structure should the aar file have if
>libraries and property files are included?
>
>Is the default (i.e. classes in / and libraries in /lib) ok? And what
>about the property files?
>I've tried also to store classes as well as property files (i.e. log4j
>configuration )in /WEB-INF/classes, libraries in /WEB-INF/lib, but it
>does not work properly.
>
>Any idea?
>
>Thanks in advance,
>Michele
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>  
>

-- 
Thanks,
Deepal
................................................................
~Future is Open~ 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] Service packaging how to

Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
Hi Ali,

I simply mean that if I put my classes and property files in
/WEB-INF/classes and libraries in /WEB-INF/lib the service is not really
deployed (the Axis2 engine says the aar file has been deployed, but when
try to invoke the service the requests is rejected because the operation
is not found). Furthermore, static initializers which load system
properties form the property files are not executed.

Any idea?

Thanks,
Michele

Ali Sadik Kumlali wrote:
> Hi Michele,
> 
> I can use property files found under /WEB-INF/classes without any problem. 
> What do you mean with "it does not work properly"? 
> 
> Regards,
> 
> Ali Sadik Kumlali
> 
> ----- Original Message ----
> From: Michele Mazzucco <Mi...@ncl.ac.uk>
> To: Axis user mailing list <ax...@ws.apache.org>
> Sent: Tuesday, August 29, 2006 4:04:38 PM
> Subject: [Axis2] Service packaging how to
> 
> Hi all,
> 
> I've got a simple question: which structure should the aar file have if
> libraries and property files are included?
> 
> Is the default (i.e. classes in / and libraries in /lib) ok? And what
> about the property files?
> I've tried also to store classes as well as property files (i.e. log4j
> configuration )in /WEB-INF/classes, libraries in /WEB-INF/lib, but it
> does not work properly.
> 
> Any idea?
> 
> Thanks in advance,
> Michele
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] Service packaging how to

Posted by Ali Sadik Kumlali <as...@yahoo.com>.
Hi Michele,

I can use property files found under /WEB-INF/classes without any problem. 
What do you mean with "it does not work properly"? 

Regards,

Ali Sadik Kumlali

----- Original Message ----
From: Michele Mazzucco <Mi...@ncl.ac.uk>
To: Axis user mailing list <ax...@ws.apache.org>
Sent: Tuesday, August 29, 2006 4:04:38 PM
Subject: [Axis2] Service packaging how to

Hi all,

I've got a simple question: which structure should the aar file have if
libraries and property files are included?

Is the default (i.e. classes in / and libraries in /lib) ok? And what
about the property files?
I've tried also to store classes as well as property files (i.e. log4j
configuration )in /WEB-INF/classes, libraries in /WEB-INF/lib, but it
does not work properly.

Any idea?

Thanks in advance,
Michele

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org