Hi, friends.
I'm now in trouble with a big deal...
I'm running some simple examples with geoserver and postgis.
When i acess it referencing shapefiles directly(i.e., referencig its
url in my server) I can see it very well.
When I access it from Geoserver using wfs, I've a
AccessControlException error and my applet show "access denied
(java.util.logging.LoggingPermission control)".
A big deal... i can see it ok in a unique machine... and I can't
realize what i did to it be ok... any other machine throws the
exception I sad...
Could anyone help me?!
Bye, friends.
java.security.AccessControlException: access denied
(java.util.logging.LoggingPermission control)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
at java.util.logging.LogManager.checkAccess(LogManager.java:798)
at java.util.logging.Logger.setLevel(Logger.java:1071)
at org.geotools.data.wfs.WFSDataStore.<init>(WFSDataStore.java:114)
at org.geotools.data.wfs.WFSDataStoreFactory.createNewDataStore(WFSDataStoreFactory.java:194)
at org.geotools.data.wfs.WFSDataStoreFactory.createDataStore(WFSDataStoreFactory.java:115)
at wfsAppletDL.loadContext(wfsAppletDL.java:87)
at wfsAppletDL.init(wfsAppletDL.java:58)
at sun.applet.AppletPanel.run(AppletPanel.java:353)
at java.lang.Thread.run(Thread.java:534)
--
==========================/======================
Leonardo Coelho
+55 21 9386-7562/ +55 21 3783-3800, R. 2272
skype me!: leonardo.coelho
==========================/======================
This sounds like a problem with wfs datastore in an applet, and not
GeoServer. There was just some emails about this on the gt2 list, and I
alerted David Zwiers, the author of the wfs datastore:
Pedro,
I have similar issue with applet.
Developers said there is a call to a logging method in the code, which
they'd remove in future release.
I had to grant all and logging in .policy file and it works.
Drew.
-----Original Message-----
From: geotools-gt2-users-admin@lists.sourceforge.net
[mailto:geotools-gt2-users-admin@lists.sourceforge.net]On Behalf Of
Pedro Fernandes Neves
Sent: Monday, March 14, 2005 7:35 AM
To: geotools-gt2-users
Subject: [Geotools-gt2-users] Signed Applet Security problem
Hi Friends,
I tried to run a signed applet via a browser but it throws the following
exception:
access denied (java.util.logging.LoggingPermission control)
at the line in the .java file:
DataStore wfs = (new WFSDataStoreFactory()).createDataStore(m);
So I added the following line to .java.policy file in the grant scope:
permission java.util.logging.LoggingPermission "control", "";
... but it still throws the exception.
What I can do to solve the problem? Why it throws this exception?
Thanks,
Pedro
On Mon, 14 Mar 2005, Leonardo Coelho wrote:
Hi, friends.
I'm now in trouble with a big deal...
I'm running some simple examples with geoserver and postgis.
When i acess it referencing shapefiles directly(i.e., referencig its
url in my server) I can see it very well.
When I access it from Geoserver using wfs, I've a
AccessControlException error and my applet show "access denied
(java.util.logging.LoggingPermission control)".
A big deal... i can see it ok in a unique machine... and I can't
realize what i did to it be ok... any other machine throws the
exception I sad...
Could anyone help me?!
Bye, friends.
java.security.AccessControlException: access denied
(java.util.logging.LoggingPermission control)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
at java.util.logging.LogManager.checkAccess(LogManager.java:798)
at java.util.logging.Logger.setLevel(Logger.java:1071)
at org.geotools.data.wfs.WFSDataStore.<init>(WFSDataStore.java:114)
at org.geotools.data.wfs.WFSDataStoreFactory.createNewDataStore(WFSDataStoreFactory.java:194)
at org.geotools.data.wfs.WFSDataStoreFactory.createDataStore(WFSDataStoreFactory.java:115)
at wfsAppletDL.loadContext(wfsAppletDL.java:87)
at wfsAppletDL.init(wfsAppletDL.java:58)
at sun.applet.AppletPanel.run(AppletPanel.java:353)
at java.lang.Thread.run(Thread.java:534)
--
Leonardo,
Which version of the WFS datastore are you using? I have recently updated the
logger info. But if my guess is correct, you will still have this problem. The
magic I'm playing here is modifying the static logger levels of some classes in
main.jar directly. If this is indead the problem (a new set of jars may have a
similar error WFSDataStore line 168), then I have a couple ideas I can try for you.
David
Quoting Leonardo Coelho <leonardo.coelho@anonymised.com>:
Hi, friends.
I'm now in trouble with a big deal...
I'm running some simple examples with geoserver and postgis.
When i acess it referencing shapefiles directly(i.e., referencig its
url in my server) I can see it very well.
When I access it from Geoserver using wfs, I've a
AccessControlException error and my applet show "access denied
(java.util.logging.LoggingPermission control)".
A big deal... i can see it ok in a unique machine... and I can't
realize what i did to it be ok... any other machine throws the
exception I sad...
Could anyone help me?!
Bye, friends.
java.security.AccessControlException: access denied
(java.util.logging.LoggingPermission control)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
at java.util.logging.LogManager.checkAccess(LogManager.java:798)
at java.util.logging.Logger.setLevel(Logger.java:1071)
at org.geotools.data.wfs.WFSDataStore.<init>(WFSDataStore.java:114)
at
org.geotools.data.wfs.WFSDataStoreFactory.createNewDataStore(WFSDataStoreFactory.java:194)
at
org.geotools.data.wfs.WFSDataStoreFactory.createDataStore(WFSDataStoreFactory.java:115)
at wfsAppletDL.loadContext(wfsAppletDL.java:87)
at wfsAppletDL.init(wfsAppletDL.java:58)
at sun.applet.AppletPanel.run(AppletPanel.java:353)
at java.lang.Thread.run(Thread.java:534)
--
==========================/======================
Leonardo Coelho
+55 21 9386-7562/ +55 21 3783-3800, R. 2272
skype me!: leonardo.coelho
==========================/======================
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
Chris Holmes wrote:
This sounds like a problem with wfs datastore in an applet, and not GeoServer. There was just some emails about this on the gt2 list, and I alerted David Zwiers, the author of the wfs datastore:
I just found a setLevel(Level.OFF) in the wfs code, I've removed it hard coding levels is a bad idea.
James
Hi, David. One more time, many thanks for your help!
I'm using the 2.1-M2 version of the WFS DataStore. I have worked aroud
that problem grant permission at the client machine to
java.util.logging.LoggingPermission and java.net.NetPermission.
But we really would like to avoid that. Could you tell us if is there
is any way of solve this directely from the server (changing something
in the jar/applet) ?
by the way, we really would like to help you to develop new features
to the API. We have made a huge effort down here(Brazil and Latan) to
spread the Geotools API.
Is there any group (or preson) already helping you in Latin America ?
Regards.
==========================/======================
Leonardo Coelho
+55 21 9386-7562/ +55 21 3783-3800, R. 2272
skype me!: leonardo.coelho
==========================/======================
On Mon, 14 Mar 2005 12:27:20 -0800, dzwiers@anonymised.com
<dzwiers@anonymised.com> wrote:
Leonardo,
Which version of the WFS datastore are you using? I have recently updated the
logger info. But if my guess is correct, you will still have this problem. The
magic I'm playing here is modifying the static logger levels of some classes in
main.jar directly. If this is indead the problem (a new set of jars may have a
similar error WFSDataStore line 168), then I have a couple ideas I can try for you.
David
Quoting Leonardo Coelho <leonardo.coelho@anonymised.com>:
> Hi, friends.
>
> I'm now in trouble with a big deal...
>
> I'm running some simple examples with geoserver and postgis.
>
> When i acess it referencing shapefiles directly(i.e., referencig its
> url in my server) I can see it very well.
>
> When I access it from Geoserver using wfs, I've a
> AccessControlException error and my applet show "access denied
> (java.util.logging.LoggingPermission control)".
>
> A big deal... i can see it ok in a unique machine... and I can't
> realize what i did to it be ok... any other machine throws the
> exception I sad...
>
> Could anyone help me?!
>
> Bye, friends.
>
>
> java.security.AccessControlException: access denied
> (java.util.logging.LoggingPermission control)
> at
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
> at java.security.AccessController.checkPermission(AccessController.java:401)
> at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
> at java.util.logging.LogManager.checkAccess(LogManager.java:798)
> at java.util.logging.Logger.setLevel(Logger.java:1071)
> at org.geotools.data.wfs.WFSDataStore.<init>(WFSDataStore.java:114)
> at
>
org.geotools.data.wfs.WFSDataStoreFactory.createNewDataStore(WFSDataStoreFactory.java:194)
> at
>
org.geotools.data.wfs.WFSDataStoreFactory.createDataStore(WFSDataStoreFactory.java:115)
> at wfsAppletDL.loadContext(wfsAppletDL.java:87)
> at wfsAppletDL.init(wfsAppletDL.java:58)
> at sun.applet.AppletPanel.run(AppletPanel.java:353)
> at java.lang.Thread.run(Thread.java:534)
>
> --
> ==========================/======================
> Leonardo Coelho
> +55 21 9386-7562/ +55 21 3783-3800, R. 2272
> skype me!: leonardo.coelho
> ==========================/======================
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Geoserver-devel mailing list
> Geoserver-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>
--
Yes, Chris.
David Zwier helps me to see this problem and I've resolved it
temporarily changing client policies.
I think it's not the best solution but it will resolve my current problems.
Regards,
--
==========================/======================
Leonardo Coelho
+55 21 9386-7562/ +55 21 3783-3800, R. 2272
skype me!: leonardo.coelho
==========================/======================
On Mon, 14 Mar 2005 15:21:39 -0500 (EST), Chris Holmes
<cholmes@anonymised.com> wrote:
This sounds like a problem with wfs datastore in an applet, and not
GeoServer. There was just some emails about this on the gt2 list, and I
alerted David Zwiers, the author of the wfs datastore:
> Pedro,
>
> I have similar issue with applet.
> Developers said there is a call to a logging method in the code, which
> they'd remove in future release.
> I had to grant all and logging in .policy file and it works.
>
> Drew.
>
>
> -----Original Message-----
> From: geotools-gt2-users-admin@lists.sourceforge.net
> [mailto:geotools-gt2-users-admin@lists.sourceforge.net]On Behalf Of
> Pedro Fernandes Neves
> Sent: Monday, March 14, 2005 7:35 AM
> To: geotools-gt2-users
> Subject: [Geotools-gt2-users] Signed Applet Security problem
>
>
> Hi Friends,
>
> I tried to run a signed applet via a browser but it throws the following
> exception:
> access denied (java.util.logging.LoggingPermission control)
>
> at the line in the .java file:
> DataStore wfs = (new WFSDataStoreFactory()).createDataStore(m);
>
>
> So I added the following line to .java.policy file in the grant scope:
> permission java.util.logging.LoggingPermission "control", "";
>
> ... but it still throws the exception.
>
> What I can do to solve the problem? Why it throws this exception?
>
> Thanks,
> Pedro
>
On Mon, 14 Mar 2005, Leonardo Coelho wrote:
> Hi, friends.
>
> I'm now in trouble with a big deal...
>
> I'm running some simple examples with geoserver and postgis.
>
> When i acess it referencing shapefiles directly(i.e., referencig its
> url in my server) I can see it very well.
>
> When I access it from Geoserver using wfs, I've a
> AccessControlException error and my applet show "access denied
> (java.util.logging.LoggingPermission control)".
>
> A big deal... i can see it ok in a unique machine... and I can't
> realize what i did to it be ok... any other machine throws the
> exception I sad...
>
> Could anyone help me?!
>
> Bye, friends.
>
>
> java.security.AccessControlException: access denied
> (java.util.logging.LoggingPermission control)
> at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
> at java.security.AccessController.checkPermission(AccessController.java:401)
> at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
> at java.util.logging.LogManager.checkAccess(LogManager.java:798)
> at java.util.logging.Logger.setLevel(Logger.java:1071)
> at org.geotools.data.wfs.WFSDataStore.<init>(WFSDataStore.java:114)
> at org.geotools.data.wfs.WFSDataStoreFactory.createNewDataStore(WFSDataStoreFactory.java:194)
> at org.geotools.data.wfs.WFSDataStoreFactory.createDataStore(WFSDataStoreFactory.java:115)
> at wfsAppletDL.loadContext(wfsAppletDL.java:87)
> at wfsAppletDL.init(wfsAppletDL.java:58)
> at sun.applet.AppletPanel.run(AppletPanel.java:353)
> at java.lang.Thread.run(Thread.java:534)
>
>
--