IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

avec Java Discussion :

test et javax.naming.NamingException:


Sujet :

avec Java

  1. #1
    Membre régulier
    Profil pro
    Inscrit en
    Août 2007
    Messages
    173
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2007
    Messages : 173
    Points : 96
    Points
    96
    Par défaut test et javax.naming.NamingException:
    Bonjour la liste,

    J'exécute une application JAVA sous Eclipse et j'ai ceci sur la console.
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    51
    javax.naming.NamingException: Cannot get a remote ClassLoader [Root exception is java.lang.IllegalStateException: Cannot connect the channel]
    	at org.ow2.easybeans.component.smartclient.spi.SmartContextFactory.checkInit(SmartContextFactory.java:195)
    	at org.ow2.easybeans.component.smartclient.spi.SmartContextFactory.getInitialContext(SmartContextFactory.java:108)
    	at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
    	at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
    	at javax.naming.InitialContext.init(InitialContext.java:223)
    	at javax.naming.InitialContext.<init>(InitialContext.java:197)
    	at org.ow2.jasmine.fdf.JasmineNodeDeployer.setEJBConnection(JasmineNodeDeployer.java:76)
    	at org.objectweb.jasmine.ui.loginAdressPort.ConnectionManager.connectFDF(ConnectionManager.java:195)
    	at org.objectweb.jasmine.ui.loginAdressPort.ConnectionManager.initConnections(ConnectionManager.java:436)
    	at org.objectweb.jasmine.ui.jasminemodel.diagram.part.JasmineDiagramEditor$1.run(JasmineDiagramEditor.java:152)
    	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
    	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3378)
    	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3036)
    	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
    	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
    	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
    	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
    	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
    	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    	at org.objectweb.jasmine.ui.jasminemodel.diagram.application.JasmineApplication.start(JasmineApplication.java:44)
    	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
    	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
    	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
    	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    	at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
    	at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
    Caused by: java.lang.IllegalStateException: Cannot connect the channel
    	at org.ow2.easybeans.component.smartclient.client.AskingClassLoader.getChannel(AskingClassLoader.java:150)
    	at org.ow2.easybeans.component.smartclient.client.AskingClassLoader.getProviderURL(AskingClassLoader.java:301)
    	at org.ow2.easybeans.component.smartclient.spi.SmartContextFactory.checkInit(SmartContextFactory.java:183)
    	... 34 more
    Caused by: java.net.ConnectException: Connexion refusée
    	at sun.nio.ch.Net.connect(Native Method)
    	at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
    	at org.ow2.easybeans.component.smartclient.client.AskingClassLoader.getChannel(AskingClassLoader.java:147)
    	... 36 more
    JASMINe connection : Jade [CONNECTION_FAILED]
    JASMINe connection : Log [DISCONNECTED]
    can't initialize EJB connexion : 
    JASMINe connection : FDF [CONNECTION_FAILED]
    dispose (View)
    Je ne sais comment rémédier à la situation.

    Merci beaucoup d'avance

  2. #2
    Membre habitué Avatar de titourock
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2008
    Messages
    156
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2008
    Messages : 156
    Points : 190
    Points
    190
    Par défaut
    Bonjour,

    Il est impossible de t'aider si tu ne donnes pas ton code ou en tout cas la partie dans laquelle ça ne va pas...
    Dans la vie, il y a trois sortes de mathématiciens : ceux qui savent compter et ceux qui ne savent pas...

    Ne jamais jouer à saute-moutons avec une licorne...

  3. #3
    Membre confirmé
    Profil pro
    Inscrit en
    Février 2007
    Messages
    229
    Détails du profil
    Informations personnelles :
    Localisation : Suisse

    Informations forums :
    Inscription : Février 2007
    Messages : 229
    Points : 543
    Points
    543
    Par défaut erreur J2EE
    Naming exception c est du J2EE (lie au JNDI)
    Autrement dit ca doit c executer sur un serveur pas dans eclipse comme une simple appli
    As tu deploye ton code ??

Discussions similaires

  1. NetBeans MySQL javax.naming.NamingException
    Par bellouk dans le forum JPA
    Réponses: 0
    Dernier message: 26/11/2012, 11h01
  2. Réponses: 5
    Dernier message: 13/09/2011, 18h27
  3. Test JUnit JBoss : javax.naming.NoInitialContextException
    Par lilmeth dans le forum Wildfly/JBoss
    Réponses: 11
    Dernier message: 03/01/2011, 16h51
  4. [Struts 2] EJB javax.naming.NamingException
    Par dossier15 dans le forum Struts 1
    Réponses: 0
    Dernier message: 02/01/2011, 19h27
  5. Réponses: 2
    Dernier message: 19/02/2010, 16h55

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo