Hi,

I'm attempting to utilize the httpclient library inside an applet to handle Get and Post requests to sites that may be different from the originating site. Thus I need to use a signed jar to open up the security to allow this, which I am utilizing a self cert to sign the jar. I have discovered there is a problem with commons.logging-1.1 inside a jar that fails the sandbox security regardless if it is signed or not. The post I read indicating rolling the logging jar back to version 1.0.4 would resolve that one, which I have done, and it did solve the initial problem. Since that time I get the following exception listed below whether I use a singed jar or not, and regardless whether I sign the httpclient jar or not as well. So my question has several parts:

1) Is it be possible to utilize httpClient with proper certificates and signing to operate inside an applet to access other sites?
2) Is it ok to use HttpClient-3.0.1 with logging-1.0.4?
3) Which jars if any should be signed besides the application jar (i.e. httpclient, codecs, and/or logging jars)? 4) Is it possible to use a non authenticated self cert for jar signing in this instance? 5) Assuming this is actually possible, Can anyone shed some light on fixing this for me?

Thanks in advance!
Jeff

-------------------------------------
Stack trace of a fail
java.security.AccessControlException: access denied (java.net.SocketPermission www.XXXXXXX.com resolve)
  at java.security.AccessControlContext.checkPermission(Unknown Source)
  at java.security.AccessController.checkPermission(Unknown Source)
  at java.lang.SecurityManager.checkPermission(Unknown Source)
  at java.lang.SecurityManager.checkConnect(Unknown Source)
  at java.net.InetAddress.getAllByName0(Unknown Source)
  at java.net.InetAddress.getAllByName0(Unknown Source)
   at java.net.InetAddress.getAllByName(Unknown Source)
   at java.net.InetAddress.getByName(Unknown Source)
   at java.net.InetSocketAddress.<init>(Unknown Source)
   at java.net.Socket.<init>(Unknown Source)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:121) at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to