RE: [JBoss-user] JBoss 2.2.2 and Java Web Start

2001-08-08 Thread Rob Nielsen

I did it in my application, it is a Java Web Start
problem since I already had enabled all-permissions in
my .jnlp file and had signed my jar files. 

Rob


--- Dennis Huang <[EMAIL PROTECTED]> wrote:
> You did it in your bean or in application?
> 
> Dennis Huang 
>
~
> -Original Message-
> From: Rob Nielsen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 8 August 2001 12:31
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] JBoss 2.2.2 and Java Web
> Start
> 
> 
> I found a solution, I needed to disable the sandbox
> with:
> 
>  System.setSecurityManager(null);
> 
> Rob
> 
> 
> --- Rob Nielsen <[EMAIL PROTECTED]> wrote:
> > Hi,
> > 
> > Has anybody successfully used Java Web Start with
> > JBoss 2.2.2? I've got it partially working, I can
> > create a context, lookup my bean, get a reference
> to
> > the bean, but when I try to create a object from
> the
> > Home interface, I get: 
> > 
> > java.lang.ExceptionInInitializerError:
> > java.security.AccessControlException: access
> denied
> > (java.util.PropertyPermission
> > org.jboss.security.SecurityAssociation.ThreadLocal
> > read)
> > 
> > at
> >
>
java.security.AccessControlContext.checkPermission(AccessControlContext.
> java:272)
> > 
> > at
> >
>
java.security.AccessController.checkPermission(AccessController.java:399
> )
> > 
> > at
> >
>
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
> > 
> > at
> >
>
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278)
> > 
> > at java.lang.System.getProperty(System.java:560)
> > 
> > at java.lang.Boolean.getBoolean(Boolean.java:171)
> > 
> > at
> >
>
org.jboss.security.SecurityAssociation.(SecurityAssociation.java
> :45)
> > 
> > at
> >
>
org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericP
> roxy.java:184)
> > 
> > at
> >
>
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:23
> 1)
> > 
> > at
> >
>
org.jboss.proxy.ProxyCompiler$Runtime.invoke(ProxyCompiler.java:74)
> > 
> > at
> >
>
org.jboss.docs.interest.InterestHome$Proxy.create(Unknown
> > Source)
> > 
> > at JNLPTestMain.(JNLPTestMain.java:39)
> > 
> > at JNLPTestMain.main(JNLPTestMain.java:140)
> > 
> > at java.lang.reflect.Method.invoke(Native Method)
> > 
> > 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 com.sun.javaws.Launcher.run(Unknown Source)
> > 
> > at java.lang.Thread.run(Thread.java:484)
> > 
> > 
> > From:
> > 
> > // Create an Interest object from the Home
> > interface
> > Interest interest = home.create();
> > 
> > The application runs fine standalone, and I have
> > properly signed my jar files.
> > 
> > Thanks,
> > 
> > Rob
> > 
> 
> 
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute
> with Yahoo! Messenger
> http://phonecard.yahoo.com/
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
>
http://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
>
http://lists.sourceforge.net/lists/listinfo/jboss-user


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] JBoss 2.2.2 and Java Web Start

2001-08-07 Thread Jim Brownfield

You do it in your application/applet.  This problem is really independent of
JBoss.  I had the same problem 6 weeks ago or so (I'm using 2.2.1).  I
solved it a little differently by creating a PermissionsCollection with
AllPermission in it and setting the system policy to a new anonymous class
Policy returning the PermissionsCollection.  It's a weird problem since
setting all permissions in the jnlp file doesn't equate to all permissions
in all the code source for your program...

Setting SecurityManager to null is simpler.  :)

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Dennis Huang
> Sent: Tuesday, August 07, 2001 4:12 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [JBoss-user] JBoss 2.2.2 and Java Web Start
>
>
> You did it in your bean or in application?
>
> Dennis Huang
> ~
> -Original Message-
> From: Rob Nielsen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 8 August 2001 12:31
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] JBoss 2.2.2 and Java Web Start
>
>
> I found a solution, I needed to disable the sandbox
> with:
>
>  System.setSecurityManager(null);
>
> Rob
>
>
> --- Rob Nielsen <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Has anybody successfully used Java Web Start with
> > JBoss 2.2.2? I've got it partially working, I can
> > create a context, lookup my bean, get a reference to
> > the bean, but when I try to create a object from the
> > Home interface, I get:
> >
> > java.lang.ExceptionInInitializerError:
> > java.security.AccessControlException: access denied
> > (java.util.PropertyPermission
> > org.jboss.security.SecurityAssociation.ThreadLocal
> > read)
> >
> > at
> >
> java.security.AccessControlContext.checkPermission(AccessControlContext.
> java:272)
> >
> > at
> >
> java.security.AccessController.checkPermission(AccessController.java:399
> )
> >
> > at
> >
> java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
> >
> > at
> >
> java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278)
> >
> > at java.lang.System.getProperty(System.java:560)
> >
> > at java.lang.Boolean.getBoolean(Boolean.java:171)
> >
> > at
> >
> org.jboss.security.SecurityAssociation.(SecurityAssociation.java
> :45)
> >
> > at
> >
> org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericP
> roxy.java:184)
> >
> > at
> >
> org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:23
> 1)
> >
> > at
> >
> org.jboss.proxy.ProxyCompiler$Runtime.invoke(ProxyCompiler.java:74)
> >
> > at
> >
> org.jboss.docs.interest.InterestHome$Proxy.create(Unknown
> > Source)
> >
> > at JNLPTestMain.(JNLPTestMain.java:39)
> >
> > at JNLPTestMain.main(JNLPTestMain.java:140)
> >
> > at java.lang.reflect.Method.invoke(Native Method)
> >
> > 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 com.sun.javaws.Launcher.run(Unknown Source)
> >
> > at java.lang.Thread.run(Thread.java:484)
> >
> >
> > From:
> >
> > // Create an Interest object from the Home
> > interface
> > Interest interest = home.create();
> >
> > The application runs fine standalone, and I have
> > properly signed my jar files.
> >
> > Thanks,
> >
> > Rob
> >
>
>
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] JBoss 2.2.2 and Java Web Start

2001-08-07 Thread Dennis Huang

You did it in your bean or in application?

Dennis Huang 
~
-Original Message-
From: Rob Nielsen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 8 August 2001 12:31
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] JBoss 2.2.2 and Java Web Start


I found a solution, I needed to disable the sandbox
with:

 System.setSecurityManager(null);

Rob


--- Rob Nielsen <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> Has anybody successfully used Java Web Start with
> JBoss 2.2.2? I've got it partially working, I can
> create a context, lookup my bean, get a reference to
> the bean, but when I try to create a object from the
> Home interface, I get: 
> 
> java.lang.ExceptionInInitializerError:
> java.security.AccessControlException: access denied
> (java.util.PropertyPermission
> org.jboss.security.SecurityAssociation.ThreadLocal
> read)
> 
>   at
>
java.security.AccessControlContext.checkPermission(AccessControlContext.
java:272)
> 
>   at
>
java.security.AccessController.checkPermission(AccessController.java:399
)
> 
>   at
>
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
> 
>   at
>
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278)
> 
>   at java.lang.System.getProperty(System.java:560)
> 
>   at java.lang.Boolean.getBoolean(Boolean.java:171)
> 
>   at
>
org.jboss.security.SecurityAssociation.(SecurityAssociation.java
:45)
> 
>   at
>
org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericP
roxy.java:184)
> 
>   at
>
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:23
1)
> 
>   at
>
org.jboss.proxy.ProxyCompiler$Runtime.invoke(ProxyCompiler.java:74)
> 
>   at
>
org.jboss.docs.interest.InterestHome$Proxy.create(Unknown
> Source)
> 
>   at JNLPTestMain.(JNLPTestMain.java:39)
> 
>   at JNLPTestMain.main(JNLPTestMain.java:140)
> 
>   at java.lang.reflect.Method.invoke(Native Method)
> 
>   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 com.sun.javaws.Launcher.run(Unknown Source)
> 
>   at java.lang.Thread.run(Thread.java:484)
> 
> 
> From:
> 
> // Create an Interest object from the Home
> interface
> Interest interest = home.create();
> 
> The application runs fine standalone, and I have
> properly signed my jar files.
> 
> Thanks,
> 
> Rob
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBoss 2.2.2 and Java Web Start

2001-08-07 Thread Rob Nielsen

I found a solution, I needed to disable the sandbox
with:

 System.setSecurityManager(null);

Rob


--- Rob Nielsen <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> Has anybody successfully used Java Web Start with
> JBoss 2.2.2? I've got it partially working, I can
> create a context, lookup my bean, get a reference to
> the bean, but when I try to create a object from the
> Home interface, I get: 
> 
> java.lang.ExceptionInInitializerError:
> java.security.AccessControlException: access denied
> (java.util.PropertyPermission
> org.jboss.security.SecurityAssociation.ThreadLocal
> read)
> 
>   at
>
java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
> 
>   at
>
java.security.AccessController.checkPermission(AccessController.java:399)
> 
>   at
>
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
> 
>   at
>
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278)
> 
>   at java.lang.System.getProperty(System.java:560)
> 
>   at java.lang.Boolean.getBoolean(Boolean.java:171)
> 
>   at
>
org.jboss.security.SecurityAssociation.(SecurityAssociation.java:45)
> 
>   at
>
org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericProxy.java:184)
> 
>   at
>
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:231)
> 
>   at
>
org.jboss.proxy.ProxyCompiler$Runtime.invoke(ProxyCompiler.java:74)
> 
>   at
>
org.jboss.docs.interest.InterestHome$Proxy.create(Unknown
> Source)
> 
>   at JNLPTestMain.(JNLPTestMain.java:39)
> 
>   at JNLPTestMain.main(JNLPTestMain.java:140)
> 
>   at java.lang.reflect.Method.invoke(Native Method)
> 
>   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 com.sun.javaws.Launcher.run(Unknown Source)
> 
>   at java.lang.Thread.run(Thread.java:484)
> 
> 
> From:
> 
> // Create an Interest object from the Home
> interface
> Interest interest = home.create();
> 
> The application runs fine standalone, and I have
> properly signed my jar files.
> 
> Thanks,
> 
> Rob
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user