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

Glassfish et Payara Java Discussion :

(eclipse,macosX) glassfish refuse l'accès aux stateless beans


Sujet :

Glassfish et Payara Java

  1. #1
    Membre actif
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Janvier 2006
    Messages
    958
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : France, Moselle (Lorraine)

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Janvier 2006
    Messages : 958
    Points : 213
    Points
    213
    Par défaut (eclipse,macosX) glassfish refuse l'accès aux stateless beans
    bonjour et bonnes fêtes!

    voici mon pb: j'ai recopié un prog à partir d'un livre, ce prog utilise des stateless beans (version JEE5), et le pattern ServiceLocator pour accéder aux beans, via JNDI.

    mais à l'usage il y a des erreurs.

    voici le code du serviceLocator:

    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
    52
     
    package com.yaps.petstore.client.locator;
     
    import java.util.HashMap;
    import java.util.Map;
    import java.util.Properties;
     
    import javax.naming.Context;
    import javax.naming.InitialContext;
     
    public class ServiceLocator {
     
    	private Context initialContext;
    	private Map<String, Object> cache;
     
    	private static ServiceLocator instance;
     
    	public static ServiceLocator getInstance() throws Exception {
    		if (instance == null)
    			instance = new ServiceLocator();
    		return instance;
     
    	}
     
    	public ServiceLocator() throws Exception {
    		try {
    			initialContext = new InitialContext();
    			cache = new HashMap<String, Object>();
     
    		} catch (Exception e) {
    			throw new Exception();
    		}
    	}
     
    	public Object getRemoteInterface(String jndiName) throws Exception {
     
    		Object remoteInterface = cache.get(jndiName);
     
    		if (remoteInterface == null) {
    			try {
    				remoteInterface = initialContext.lookup(jndiName);
    				cache.put(jndiName, remoteInterface);
     
    			} catch (Exception e) {
    				throw new Exception(e);
    			}
    		}
    		return remoteInterface;
     
    	}
     
    }

    et voici l'erreur:

    [java] 23 déc. 2008 22:04:30 com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>
    [java] ATTENTION: "IOP00410201 : (COMM_FAILURE) Échec de connexion : socketType : IIOP_CLEAR_TEXT; nom d'hôte : localhost; port : 3700"
    [java] org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    [java] at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2690)
    [java] at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2711)
    [java] at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:261)
    [java] at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:274)
    [java] at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:130)
    [java] at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:192)
    [java] at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:181)
    [java] at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:325)
    [java] at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
    [java] at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
    [java] at com.sun.enterprise.naming.SerialContext.narrowProvider(SerialContext.java:131)
    [java] at com.sun.enterprise.naming.SerialContext.getCachedProvider(SerialContext.java:247)
    [java] at com.sun.enterprise.naming.SerialContext.getRemoteProvider(SerialContext.java:205)
    [java] at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:160)
    [java] at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:398)
    [java] at javax.naming.InitialContext.lookup(InitialContext.java:351)
    [java] at com.yaps.petstore.client.locator.ServiceLocator.getRemoteInterface(Unknown Source)
    [java] at com.yaps.petstore.client.delegate.CatalogDelegate.getCatalogRemote(Unknown Source)
    [java] at com.yaps.petstore.client.delegate.CatalogDelegate.findCategory(Unknown Source)
    [java] at com.yaps.petstore.client.ui.PetstoreFrame.jButton1MouseClicked(Unknown Source)
    [java] at com.yaps.petstore.client.ui.PetstoreFrame.access$000(Unknown Source)
    [java] at com.yaps.petstore.client.ui.PetstoreFrame$2.mouseClicked(Unknown Source)
    [java] at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
    [java] at java.awt.Component.processMouseEvent(Component.java:5605)
    [java] at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
    [java] at java.awt.Component.processEvent(Component.java:5367)
    [java] at java.awt.Container.processEvent(Container.java:2010)
    [java] at java.awt.Component.dispatchEventImpl(Component.java:4068)
    [java] at java.awt.Container.dispatchEventImpl(Container.java:2068)
    [java] at java.awt.Component.dispatchEvent(Component.java:3903)
    [java] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
    [java] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3945)
    [java] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
    [java] at java.awt.Container.dispatchEventImpl(Container.java:2054)
    [java] at java.awt.Window.dispatchEventImpl(Window.java:1801)
    [java] at java.awt.Component.dispatchEvent(Component.java:3903)
    [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
    [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
    [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    [java] Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused
    [java] at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:347)
    [java] at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:244)
    [java] ... 39 more
    [java] Caused by: java.net.ConnectException: Connection refused
    [java] at sun.nio.ch.Net.connect(Native Method)
    [java] at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:464)
    [java] at com.sun.corba.ee.impl.orbutil.ORBUtility.openSocketChannel(ORBUtility.java:105)
    [java] at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:332)
    [java] ... 40 more
    [java] Java Result: 143
    BUILD SUCCESSFUL
    j'ai déployé les classes en utilisant les fichiers admin.xml, build.xml.
    si vous pouvez me dépanner, merci.

    olivier.

  2. #2
    Membre expérimenté
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2004
    Messages
    1 184
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Avril 2004
    Messages : 1 184
    Points : 1 745
    Points
    1 745
    Par défaut
    Le lookup jndi est-il fait dans le serveur ou depuis un programme extérieur ?

    A mon avis ça sent le provider URL ou le port qui n'est pas bon.

  3. #3
    Membre actif
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Janvier 2006
    Messages
    958
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : France, Moselle (Lorraine)

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Janvier 2006
    Messages : 958
    Points : 213
    Points
    213
    Par défaut
    bonjour, je vais essayer de répondre à ta question comme je peux, l'appel au lookup est fait dans un "locator", qui est compilé dans le même JAR que les classes métier.
    il est appelé par des JFrame eux-même inclus dans le même JAR.

    comment vérifier l'URL ou le port?

    olivier.

  4. #4
    Membre expérimenté
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2004
    Messages
    1 184
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Avril 2004
    Messages : 1 184
    Points : 1 745
    Points
    1 745
    Par défaut
    Si ton code est appelée dans une application swing je te conseil de lire cette FAQ :
    https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html


    Tu peux essayer ça
    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
     
    Properties props = new Properties();
    props.setProperty("java.naming.factory.initial",
                                 "com.sun.enterprise.naming.SerialInitContextFactory");
    props.setProperty("java.naming.factory.url.pkgs",
                                 "com.sun.enterprise.naming");
    props.setProperty("java.naming.factory.state",
                                 "com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
     
    // optional.  Defaults to localhost.  Only needed if web server is running
    // on a different host than the appserver   
    props.setProperty("org.omg.CORBA.ORBInitialHost", "<host>");
     
    // optional.  Defaults to 3700.  Only needed if target orb port is not 3700.
    props.setProperty("org.omg.CORBA.ORBInitialPort", "<port>");
     
    InitialContext ic = new InitialContext(props);
    en remplacant <host> et <port> par les bonnes valeurs


    Ton serveur est-il sur ta machine ou est lancée l'application swing ?

  5. #5
    Membre actif
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Janvier 2006
    Messages
    958
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : France, Moselle (Lorraine)

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Janvier 2006
    Messages : 958
    Points : 213
    Points
    213
    Par défaut
    merci, mad-math.
    je vous tiens au courant dès que j'aurais du nouveau.

    olivier.

  6. #6
    Membre actif
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Janvier 2006
    Messages
    958
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : France, Moselle (Lorraine)

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Janvier 2006
    Messages : 958
    Points : 213
    Points
    213
    Par défaut
    oui, c'est la même machine.
    j'ai essayé un des 2 paramètres (pour l'hôte et le port) que tu m'as indiqués, j'ai modifié l'hôte ("127.0.0.1") mais ça plante tjrs.

    je lirai la page d'infos +tard, mais merci.

    olivier.

  7. #7
    Membre actif
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Janvier 2006
    Messages
    958
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : France, Moselle (Lorraine)

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Janvier 2006
    Messages : 958
    Points : 213
    Points
    213
    Par défaut
    bon, ben ça marche pas!

    j'ai essayé d'introduire dans la classe JFrame une annotation @EJB mais je tombe sur une erreur de référence nulle...

    olivier.

  8. #8
    Membre émérite
    Avatar de alexismp
    Homme Profil pro
    Inscrit en
    Janvier 2005
    Messages
    1 503
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Janvier 2005
    Messages : 1 503
    Points : 2 777
    Points
    2 777
    Par défaut
    Citation Envoyé par olivier57b Voir le message
    bon, ben ça marche pas!

    j'ai essayé d'introduire dans la classe JFrame une annotation @EJB mais je tombe sur une erreur de référence nulle...

    olivier.
    Les injections ne sont possibles que pour des objects dont le cycle de vie est créé par le conteneur. Ce n'est pas possible pour une application Swing (sauf si déployées avec l'ACC). Il te faut donc passer par JNDI. Comme indiqué dans
    la FAQ commence par utiliser le constructeur sans paramètre InitialContext() en ayant appserver-rt.jar dans ton classpath.

  9. #9
    Membre actif
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Janvier 2006
    Messages
    958
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : France, Moselle (Lorraine)

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Janvier 2006
    Messages : 958
    Points : 213
    Points
    213
    Par défaut
    salut, je me permets de relancer le topic car c'est une histoire de fous, je pige rien car cela ne marche pas alors que j'ai tout fait apparemment comme il fallait!

    voici le fichier stateless bean:

    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
     
    package com.yaps.petstore.stateless.catalog;
     
    import java.util.List;
     
    import javax.ejb.Stateless;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    import javax.persistence.Query;
     
    import com.yaps.petstore.entity.catalog.Category;
    import com.yaps.petstore.entity.catalog.Item;
    import com.yaps.petstore.entity.catalog.Product;
    import com.yaps.petstore.exception.ValidationException;
     
    @Stateless(name="CatalogSB",
    		mappedName="ejb/stateless/Catalog")
    public class CatalogBean implements CatalogLocal, CatalogRemote {
     
    	@PersistenceContext(unitName="petstorePU")
    	private EntityManager em;
     
    	public Category findCategory(Long categoryId) {
     
    		if (categoryId==null)
    			throw new ValidationException("categoryId is null");
    		Query query=em.createQuery("select c from Category c where id=:id");
    		query.setParameter("id",categoryId);
    		Category category=null;
    		category=(Category)query.getSingleResult();
     
    		return category;
     
    	}
     
    	public Item findItem(Long itemId) {
    		if (itemId==null)
    			throw new ValidationException("itemId est null");
    		Item result=null;
    		result=em.find(Item.class, itemId);
     
    		return result;
    	}
    (...)
    on voit la balise mappedName qui sert à JNDI.

    et voici le code du delegate:

    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
     
    package com.yaps.petstore.client.delegate;
     
    import java.util.List;
     
    import javax.ejb.EJB;
     
    import com.yaps.petstore.client.locator.ServiceLocator;
    import com.yaps.petstore.entity.catalog.Category;
    import com.yaps.petstore.entity.catalog.Item;
    import com.yaps.petstore.entity.catalog.Product;
    import com.yaps.petstore.stateless.catalog.CatalogRemote;
    import com.yaps.petstore.stateless.customer.CustomerRemote;
     
    public final class CatalogDelegate {
     
     
    	private static CatalogRemote getCatalogRemote() throws Exception {
     
     
    		CatalogRemote catalogRemote;
    		catalogRemote = (CatalogRemote) ServiceLocator.getInstance()
    				.getRemoteInterface("ejb/stateless/Catalog");
     
    		return catalogRemote;
    	}
     
     
     
    	public static Category createCategory(Category category) throws Exception{
     
    		return getCatalogRemote().createCategory(category);
    	}
    (...)
    si vous voyez le pb, merci de me le poster!

    olivier.

  10. #10
    Membre actif
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Janvier 2006
    Messages
    958
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : France, Moselle (Lorraine)

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Janvier 2006
    Messages : 958
    Points : 213
    Points
    213
    Par défaut
    je voudrais savoir une chose : le 3700 cité + haut correspond à quoi?
    je veux dire, y-a-t'il un rapport avec glassfish?
    parce que je sais que glassfish n'utilise aucun port 3700 (il utilise "portbase"+des valeurs fixes mais la somme n'est jamais 3700).bon, j'ai pas été très clair mais celui qui sait ce qu'est portbase devrait comprendre la phrase!

    quant au port, c'est localhost=127.0.0.1, je pense que tout est bon 2 ce côté-là.

    olivier.

  11. #11
    Membre expérimenté
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2004
    Messages
    1 184
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Avril 2004
    Messages : 1 184
    Points : 1 745
    Points
    1 745
    Par défaut
    Bonjour,

    Je cite la FAQ donnée en lien.

    The default naming service port in the app server is 3700.
    Pour faire simple, c'est le port auquel toute requete JNDI doit être adressée.


    Edit : as-tu inclus appserver-rt.jar dans ton projet client ??

  12. #12
    Membre actif
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Janvier 2006
    Messages
    958
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : France, Moselle (Lorraine)

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Janvier 2006
    Messages : 958
    Points : 213
    Points
    213
    Par défaut
    bonjour mad-math,

    j'ai bien ajouté le fichier mais son orthographe exact est appserv-rt.jar (et il y en a d'autres:appserv-rt_de.jar, appserv-rt_es.jar ...etc.

    olivier.

  13. #13
    Membre actif
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Janvier 2006
    Messages
    958
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : France, Moselle (Lorraine)

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Janvier 2006
    Messages : 958
    Points : 213
    Points
    213
    Par défaut
    PS: quant au port, je pense que tout est bon de ce côté-là.

    olivier.

  14. #14
    Membre expérimenté
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2004
    Messages
    1 184
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Avril 2004
    Messages : 1 184
    Points : 1 745
    Points
    1 745
    Par défaut
    Une question bête mais ca coute rien de vérifier.
    Tu as bien démarré ton serveur ?

  15. #15
    Membre actif
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Janvier 2006
    Messages
    958
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : France, Moselle (Lorraine)

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Janvier 2006
    Messages : 958
    Points : 213
    Points
    213
    Par défaut
    oui, je l'ai démarré.
    - parfois avec start-domain
    - d'autres fois à partir d'eclipse

    olivier.

  16. #16
    Membre expérimenté
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2004
    Messages
    1 184
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Avril 2004
    Messages : 1 184
    Points : 1 745
    Points
    1 745
    Par défaut
    Ce problème a l'air similaire au tien.

    http://www.developpez.net/forums/d60...ient-autonome/

  17. #17
    Membre actif
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Janvier 2006
    Messages
    958
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : France, Moselle (Lorraine)

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Janvier 2006
    Messages : 958
    Points : 213
    Points
    213
    Par défaut
    il est bien similaire : j'ai essayé d'entrer les classes et interfaces et ... j'obtiens toujours la même erreur (connection refused), au moins 7 X 6 on part d'un exemple simple.

    voici le fichier jndi.properties que j'ai utilisé:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    java.naming.factory.initial = com.sun.enterprise.naming.SerialInitContextFactory
    java.naming.factory.url.pkgs = com.sun.enterprise.naming
    java.naming.factory.state = com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl
    et voici l'erreur:

    29 déc. 2008 13:49:32 com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>
    ATTENTION: "IOP00410201 : (COMM_FAILURE) Échec de connexion : socketType : IIOP_CLEAR_TEXT; nom d'hôte : localhost; port : 3700"
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2690)
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2711)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:261)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:274)
    at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:130)
    at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:192)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:181)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:325)
    at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
    at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
    at com.sun.enterprise.naming.SerialContext.narrowProvider(SerialContext.java:131)
    at com.sun.enterprise.naming.SerialContext.getCachedProvider(SerialContext.java:247)
    at com.sun.enterprise.naming.SerialContext.getRemoteProvider(SerialContext.java:205)
    at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:160)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:398)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at main.Main.main(Main.java:23)
    Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused
    at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:347)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:244)
    ... 14 more
    Caused by: java.net.ConnectException: Connection refused
    at sun.nio.ch.Net.connect(Native Method)
    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:464)
    at com.sun.corba.ee.impl.orbutil.ORBUtility.openSocketChannel(ORBUtility.java:105)
    at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:332)
    ... 15 more
    29 déc. 2008 13:49:32 com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>
    ATTENTION: "IOP00410201 : (COMM_FAILURE) Échec de connexion : socketType : IIOP_CLEAR_TEXT; nom d'hôte : localhost; port : 3700"
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2690)
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2711)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:261)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:274)
    at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:130)
    at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:192)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:181)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:325)
    at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
    at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
    at com.sun.enterprise.naming.SerialContext.narrowProvider(SerialContext.java:131)
    at com.sun.enterprise.naming.SerialContext.getCachedProvider(SerialContext.java:247)
    at com.sun.enterprise.naming.SerialContext.getRemoteProvider(SerialContext.java:205)
    at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:160)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:398)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at main.Main.main(Main.java:23)
    Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused
    at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:347)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:244)
    ... 14 more
    Caused by: java.net.ConnectException: Connection refused
    at sun.nio.ch.Net.connect(Native Method)
    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:464)
    at com.sun.corba.ee.impl.orbutil.ORBUtility.openSocketChannel(ORBUtility.java:105)
    at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:332)
    ... 15 more
    29 déc. 2008 13:49:33 com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>
    ATTENTION: "IOP00410201 : (COMM_FAILURE) Échec de connexion : socketType : IIOP_CLEAR_TEXT; nom d'hôte : localhost; port : 3700"
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2690)
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2711)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:261)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:274)
    at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:130)
    at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:192)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:181)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:325)
    at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
    at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
    at com.sun.enterprise.naming.SerialContext.narrowProvider(SerialContext.java:131)
    at com.sun.enterprise.naming.SerialContext.getCachedProvider(SerialContext.java:247)
    at com.sun.enterprise.naming.SerialContext.getRemoteProvider(SerialContext.java:205)
    at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:160)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:398)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at main.Main.main(Main.java:23)
    Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused
    at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:347)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:244)
    ... 14 more
    Caused by: java.net.ConnectException: Connection refused
    at sun.nio.ch.Net.connect(Native Method)
    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:464)
    at com.sun.corba.ee.impl.orbutil.ORBUtility.openSocketChannel(ORBUtility.java:105)
    at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:332)
    ... 15 more
    29 déc. 2008 13:49:34 com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>
    ATTENTION: "IOP00410201 : (COMM_FAILURE) Échec de connexion : socketType : IIOP_CLEAR_TEXT; nom d'hôte : localhost; port : 3700"
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2690)
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2711)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:261)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:274)
    at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:130)
    at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:192)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:181)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:325)
    at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
    at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
    at com.sun.enterprise.naming.SerialContext.narrowProvider(SerialContext.java:131)
    at com.sun.enterprise.naming.SerialContext.getCachedProvider(SerialContext.java:247)
    at com.sun.enterprise.naming.SerialContext.getRemoteProvider(SerialContext.java:205)
    at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:160)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:398)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at main.Main.main(Main.java:23)
    Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused
    at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:347)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:244)
    ... 14 more
    Caused by: java.net.ConnectException: Connection refused
    at sun.nio.ch.Net.connect(Native Method)
    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:464)
    at com.sun.corba.ee.impl.orbutil.ORBUtility.openSocketChannel(ORBUtility.java:105)
    at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:332)
    ... 15 more
    29 déc. 2008 13:49:36 com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>
    ATTENTION: "IOP00410201 : (COMM_FAILURE) Échec de connexion : socketType : IIOP_CLEAR_TEXT; nom d'hôte : localhost; port : 3700"
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2690)
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2711)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:261)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:274)
    at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:130)
    at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:192)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:181)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:325)
    at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
    at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
    at com.sun.enterprise.naming.SerialContext.narrowProvider(SerialContext.java:131)
    at com.sun.enterprise.naming.SerialContext.getCachedProvider(SerialContext.java:247)
    at com.sun.enterprise.naming.SerialContext.getRemoteProvider(SerialContext.java:205)
    at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:160)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:398)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at main.Main.main(Main.java:23)
    Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused
    at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:347)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:244)
    ... 14 more
    Caused by: java.net.ConnectException: Connection refused
    at sun.nio.ch.Net.connect(Native Method)
    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:464)
    at com.sun.corba.ee.impl.orbutil.ORBUtility.openSocketChannel(ORBUtility.java:105)
    at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:332)
    ... 15 more
    olivier.

  18. #18
    Membre expérimenté
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2004
    Messages
    1 184
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Avril 2004
    Messages : 1 184
    Points : 1 745
    Points
    1 745
    Par défaut
    Peut-être que tu as un firewall windows ou autre qui te bloque l'accès ?

  19. #19
    Membre émérite
    Avatar de alexismp
    Homme Profil pro
    Inscrit en
    Janvier 2005
    Messages
    1 503
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Janvier 2005
    Messages : 1 503
    Points : 2 777
    Points
    2 777
    Par défaut
    Oui, le firewall est un classique du genre. Sinon c'est que le port 3700 n'est pas celui utilisé par GlassFish. En démarrant GlassFish donne les 7 ports occupés (par défaut: 8080 8181 4848 3700 3820 3920 8686 )

  20. #20
    Membre actif
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Janvier 2006
    Messages
    958
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : France, Moselle (Lorraine)

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Janvier 2006
    Messages : 958
    Points : 213
    Points
    213
    Par défaut
    j'ai essayé sur netbeans et j'obtiens encore une erreur : au bout d'1 minute:"Can't find SerialContextProvider".

    je vais examiner cette histoire de ports.

    olivier.

+ Répondre à la discussion
Cette discussion est résolue.
Page 1 sur 2 12 DernièreDernière

Discussions similaires

  1. Sécuriser l'accès aux Remote Bean?
    Par ZouBi dans le forum Plateformes (Java EE, Jakarta EE, Spring) et Serveurs
    Réponses: 3
    Dernier message: 26/11/2012, 09h02
  2. Accès aux Session Beans par un client J2SE distant
    Par saveriu dans le forum Glassfish et Payara
    Réponses: 2
    Dernier message: 05/01/2012, 16h36
  3. Apache refuse l'accès aux fichiers .py
    Par mapmip dans le forum Apache
    Réponses: 5
    Dernier message: 03/05/2010, 19h24
  4. acces aux managed bean avec la JSTL
    Par soucine dans le forum JSF
    Réponses: 9
    Dernier message: 25/02/2009, 16h00
  5. accès aux fichiers refusé
    Par neofuturoxx dans le forum Windows Serveur
    Réponses: 6
    Dernier message: 12/09/2007, 12h32

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