httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "alan aherne" <>
Subject [users@httpd] Using HttpClient with Web Start - Security Error or Source not found Error ?
Date Tue, 28 Nov 2006 15:07:05 GMT
Hi All,
I am trying to run a client application over webstart, where the
application uses HttpClient to get data from the server where it
was downloaded. But the access attempt results in the following
errors below.

HttpClient2 is my main class.
The jar file run's locally. Only fails when downloaded from the server
with Web Start.

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at Source)
at Source)
Caused by: java.lang.ExceptionInInitializerError
at org.apache.commons.httpclient.HttpClient.<clinit>(Unknown Source)
at test.HttpClient2.<init>(
at test.HttpClient2.main(
... 11 more
Caused by: access denied
org.apache.commons.logging.LogFactory.HashtableImpl read)
at Source)
at Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at org.apache.commons.logging.LogFactory.createFactoryStore(
at org.apache.commons.logging.LogFactory.<clinit>(
... 14 more

Q1.Are these security  errors or 'Unknown Source' errors. I have a
   jar file created with Jar-Fat from eclipse. The jar can be started locally
   with 'java -jar Http2.jar' so it must contain all its own source code.
   I also tested a home-made jar to be included inside my main jar and that
   was found. So I am thinking it is a security problem......

Q1. The jar file is unsigned but according to Web-Start white paper from
    Sun the jarfile should be allowed to "Use the network to access the
    host from which the application was downloaded", which I am trying to
    do. Also, the error accurs even when I only create an instance of
    HttpClient ( new HttpClient() ) without making any connections to
the server.
    Is this normal for HttpClient constructor to generate such an error?
    This leads me back to thinking the source is not found....

I am hoping to be able to keep the application unsigned although my next
step would be to try that and see what happens.
I have tried google and google-groups plus made many differnt tests.
But I am coming up blank at the moment so any pointers are help would be
much appreciated.

Thanks for any help in advance.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message