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 Andrew B <vi...@yahoo.com> on 2006/06/22 22:37:56 UTC

[Axis2] accessing files within .aar

Hi,

I need to access files (property files and such) within the .aar, in a deployed Axis2 service. (in a subdirectory of the .aar file root).

I have tried this so far:

String path = incomingContext.getConfigurationContext().getRealPath( ... ).getAbsolutePath();

but it gives an erronous path back. Any ideas on how to do this? And then once I've got the path, can I just read a file in a packaged deployment?

Thanks,

Andrew

 		
---------------------------------
How low will we go? Check out Yahoo! MessengerÂ’s low  PC-to-Phone call rates.

Re: [Axis2] accessing files within .aar

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

http://www.wso2.net/kb/98

Andrew B wrote:

> Hi,
>
> I need to access files (property files and such) within the .aar, in a
> deployed Axis2 service. (in a subdirectory of the .aar file root).
>
> I have tried this so far:
>
> String path = incomingContext.getConfigurationContext().getRealPath(
> ... ).getAbsolutePath();
>
> but it gives an erronous path back. Any ideas on how to do this? And
> then once I've got the path, can I just read a file in a packaged
> deployment?
>
> Thanks,
>
> Andrew
>
> ------------------------------------------------------------------------
> How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call
> rates.
> <http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com>


-- 
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


https with WS

Posted by Vi...@abercrombie.com.
Hello All,
        I am unable to get the https to work with WS. I have followed many 
posts and other srticles on the web and I have tried just about all they 
have suggested but am still unsuccessful. I was wondering if someone could 
help me out.
I am using JDK1.4 with Axis2 (1.0) generated client (WSDL2Java) to access 
an https WS hosted by a third party vendor.
Currently I am getting a sun.security.validator.ValidatorException: No 
trusted certificate found
Any help would be appreciated.
On a sidenote, I was able to get this to work using Axis 1.1 client stub 
(WSDL2Java) with JDK1.3 (inside WebSphere Studio)
Vineet

unknown exception

Posted by Vi...@abercrombie.com.
I am getting an exception while using axis2 with a https Webservice whose 
client stub has been generated using WSDL2Java. How can I dig in further 
to see what is going on? This does not give me a lot of information. 
Earlier I thought that there was some SSL auth problem but now I am 
thinking this might be unrelated. Please advise.

org.apache.axis2.AxisFault: Axis2 transport error : Unknown; nested 
exception is: 
        org.apache.axis2.AxisFault: Axis2 transport error : Unknown; 
nested exception is: 
        org.apache.axis2.AxisFault: Axis2 transport error : Unknown; 
nested exception is: 
        org.apache.axis2.AxisFault: Axis2 transport error : Unknown
        at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:222)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:641)
        at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:341)
        at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279)
        at com.anf.ads.Sales10Stub.sales10(Sales10Stub.java:123)
        at com.anf.ads.axis2.TestAxis2Client.main(TestAxis2Client.java:69)
Caused by: org.apache.axis2.AxisFault: Axis2 transport error : Unknown; 
nested exception is: 
        org.apache.axis2.AxisFault: Axis2 transport error : Unknown
        at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:304)
        at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
        ... 5 more
Caused by: org.apache.axis2.AxisFault: Axis2 transport error : Unknown
        at 
org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:141)
        at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:298)
        ... 6 more