salut,

j'ai un ensemble de projets (qui contiennent des EJB, des JPA entities) que j'ai déployé via JWS.
mais quand je lance la commande javaws <nom_du_fichier.jnlp>, ça marche cad que la fenêtre principale s'affiche.
là où il y a un problème c'est que cette fenêtre en appelle une autre via ce code :

Code :
1
2
 JFrame fen_lis_cus=new fenetre_list_customers();
                fen_lis_cus.setVisible(true);
,

et que j'ai cette exception alors :

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[olivier@localhost ~]$ javaws "/home/olivier/NetBeansProjects/YAPS3_and_another_one/dist/launch.jnlp"
Exception in thread "AWT-EventQueue-1" java.security.AccessControlException: access denied (java.awt.AWTPermission setWindowAlwaysOnTop)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:393)
    at java.security.AccessController.checkPermission(AccessController.java:553)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
    at net.sourceforge.jnlp.runtime.JNLPSecurityManager.checkPermission(JNLPSecurityManager.java:250)
    at java.awt.Window.setAlwaysOnTop(Window.java:2038)
    at yaps3_and_another_one.fenetre_list_customers.initComponents(fenetre_list_customers.java:54)
    at yaps3_and_another_one.fenetre_list_customers.<init>(fenetre_list_customers.java:27)
    at yaps3_and_another_one.fenetre_de_test.jMenuItem_customer_listActionPerformed(fenetre_de_test.java:147)
    at yaps3_and_another_one.fenetre_de_test.access$000(fenetre_de_test.java:24)
    at yaps3_and_another_one.fenetre_de_test$1.actionPerformed(fenetre_de_test.java:78)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:374)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:829)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:873)
    at java.awt.Component.processMouseEvent(Component.java:6136)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:5901)
    at java.awt.Container.processEvent(Container.java:2105)
    at java.awt.Component.dispatchEventImpl(Component.java:4497)
    at java.awt.Container.dispatchEventImpl(Container.java:2163)
    at java.awt.Component.dispatchEvent(Component.java:4323)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
    at java.awt.Container.dispatchEventImpl(Container.java:2149)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4323)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649)
    at java.awt.EventQueue.access$000(EventQueue.java:96)
    at java.awt.EventQueue$1.run(EventQueue.java:608)
    at java.awt.EventQueue$1.run(EventQueue.java:606)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
    at java.awt.EventQueue$2.run(EventQueue.java:622)
    at java.awt.EventQueue$2.run(EventQueue.java:620)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
,

savez-vous comment faire marcher le beans?

ça me sauverait!

olivier

EDIT: grâce au net, j'ai compris que cela a un rapport avec les permissions et les "policies" de java.
j'ai donc copié un fichier .java.policy dans mon répertoire home (je suis sous mandriva) et j'ai maintenant cette erreur : http://www.developpez.net/forums/d1070299/java/serveurs-conteneurs-java-ee/glassfish/netbeans-namingcontext-already-bound-java-jar-myapp-jar-plante/.

olivier