users@glassfish.java.net

Creating InitialContext with 1.6

From: <glassfish_at_javadesktop.org>
Date: Thu, 07 Jun 2007 08:49:48 PDT

Jun 7, 2007 10:45:14 AM com.sun.enterprise.appclient.MainWithModuleSupport prepareSecurity
INFO: Security Manager is ON.
Jun 7, 2007 10:45:17 AM com.sun.enterprise.appclient.MainWithModuleSupport setTargetServerProperties
INFO: ACC001:Using ClientContainer file: [C:\DOCUME~1\PERREA~1.F4\LOCALS~1\Temp\sunacc18326.xml].
Jun 7, 2007 10:45:17 AM com.sun.enterprise.appclient.MainWithModuleSupport setTargetServerProperties
WARNING: ACC023:The best practice in case of appclients is to set the endpoints as <target-server> elements in sun-acc.xml. Please avoid using the com.sun.appserv.iiop.endpoints property for appclients.
Jun 7, 2007 10:45:17 AM com.sun.enterprise.appclient.MainWithModuleSupport setupIIOP
INFO: ACC014: ORB host name: [localhost]
Jun 7, 2007 10:45:17 AM com.sun.enterprise.appclient.MainWithModuleSupport setupIIOP
INFO: ACC013: ORB port number: [3700]
Jun 7, 2007 10:45:21 AM com.sun.enterprise.appclient.MainWithModuleSupport loadMainClientClass
INFO: ACC009: Load Application Class: [com.cae.ssg.NewJFrame]
Jun 7, 2007 10:45:21 AM com.sun.enterprise.appclient.MainWithModuleSupport <init>
INFO: Application main() returned; GUI elements may be continuing to run

[b](here we go, clicking on my test button)[/b]
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.sun.naming.internal.VersionHelper12.loadClass(Unknown Source)
        at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
        at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
        at javax.naming.InitialContext.init(Unknown Source)
        at javax.naming.InitialContext.<init>(Unknown Source)
        at com.cae.ssg.NewJFrame.test3ButtonActionPerformed(NewJFrame.java:75)
        at com.cae.ssg.NewJFrame.access$200(NewJFrame.java:18)
        at com.cae.ssg.NewJFrame$3.actionPerformed(NewJFrame.java:62)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission org.omg.CORBA.ORBClass read)
        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.checkPropertyAccess(Unknown Source)
        at java.lang.System.getProperty(Unknown Source)
        at com.sun.enterprise.util.ORBManager$1.run(ORBManager.java:369)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.enterprise.util.ORBManager.setORBSystemProperties(ORBManager.java:366)
        at com.sun.enterprise.naming.SerialInitContextFactory.<clinit>(SerialInitContextFactory.java:56)
        ... 35 more

[b]Oh, and I forgot to say this in my previous post:[/b]
When I try to create an [b]InitialContext a second time[/b], I get a different exception, a ClassNotFoundException...sorry I don't have that stack trace right now, but it's easily reproducible with the project I'm going to attach to the issue in a few seconds...

Let's hope we can nail this one, you guys are doing something really great with Glassfish. Forums are usually where people just ask questions or complain, here's a compliment for a change. ;-)

Francis
[Message sent by forum member 'chiss' (chiss)]

http://forums.java.net/jive/thread.jspa?messageID=221016