It works for me as so:

            Input stream is = getClass().getClassLoader().getResource
("style/test_fo.xslt").openStream();


Note that the address is relative, since it is searched in the application
(Axis) classpath, and it uses my service class' ClassLoader, not the
servlet's (they are not necessarily equivalent). My dir/filed reside inside
the WEB-INF/classes, but you can also put them inside WEB-INF/lib jars.

Cheers.

=============================================
Marcelo Jaccoud Amaral
mailto:jaccoud [at] petrobras.com.br
voice: +55 21 2534-3485
fax: +55 21 2534-1809
=============================================
There are only 10 kinds of people in the world: those who understand binary
and those who don't.



                                                                                       
                    
                      Jeffrey Hood                                                     
                    
                      <[EMAIL PROTECTED]>        Para:     [EMAIL PROTECTED]           
               
                      Enviado Por: news        cc:                                     
                    
                      <[EMAIL PROTECTED]        Assunto:  location for property files 
with axis...          
                      org>                                                             
                    
                                                                                       
                    
                                                                                       
                    
                      13/06/2003 19:51                                                 
                    
                      Favor responder a                                                
                    
                      axis-user                                                        
                    
                                                                                       
                    
                                                                                       
                    




I have in the past put my property files in WEB-INF/classes under tomcat,
which is on the classpath... and loaded them with

InputStream is = getClass().getResourceAsStream("/propertyfile.prop");

This doesn't seem to work with axis, and I have tried moving them
everywhere...  for now I have the path hardcoded into the jws file that I
am letting axis convert to a webservice...

Is there something that I am missing that is simple?

Thanks in advance...

JH

Jeffrey Hood
jhood -a- below
hmcon com






Reply via email to