Boa noite, estou com problema na hora de usar o ejb, estou iniciando e não consigo resolver este problema, se puderem me ajuda agradeço…estou utilizando ubuntu e glassfish
run:
opt--> REMOTE
pacienteBD Remote
ServileLocator ejb/PacienteBean
10/02/2012 23:19:38 com.sun.enterprise.transaction.JavaEETransactionManagerSimplified initDelegates
INFO: Using com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the delegate
10/02/2012 23:19:39 com.sun.corba.ee.impl.orb.ORBImpl getLocalHostName
WARNING: "IOP00710208: (INTERNAL) Unable to determine local hostname from InetAddress.getLocalHost().getHostName()"
org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 208 completed: No
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.getLocalHostFailed(ORBUtilSystemException.java:5690)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.getLocalHostFailed(ORBUtilSystemException.java:5708)
at com.sun.corba.ee.impl.orb.ORBImpl.getLocalHostName(ORBImpl.java:1862)
at com.sun.corba.ee.impl.orb.ORBImpl.set_parameters(ORBImpl.java:678)
at com.sun.corba.ee.impl.orb.ORBImpl.setParameters(ORBImpl.java:666)
at com.sun.corba.ee.spi.osgi.ORBFactory.initialize(ORBFactory.java:91)
at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.initORB(GlassFishORBManager.java:612)
at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.getORB(GlassFishORBManager.java:289)
at org.glassfish.enterprise.iiop.impl.GlassFishORBFactoryImpl.createORB(GlassFishORBFactoryImpl.java:83)
at org.glassfish.enterprise.iiop.api.GlassFishORBHelper.getORB(GlassFishORBHelper.java:122)
at com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(SerialContext.java:297)
at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:271)
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:430)
at javax.naming.InitialContext.lookup(InitialContext.java:409)
at pepweb.service.locator.ServiceLocator.getService(ServiceLocator.java:66)
at pepweb.business.bd.PacienteBD.<init>(PacienteBD.java:29)
at pepweb.integration.dao.Main.select(Main.java:25)
at pepweb.integration.dao.Main.main(Main.java:18)
Caused by: java.net.UnknownHostException: priscila-R430-R480-R440: priscila-R430-R480-R440
at java.net.InetAddress.getLocalHost(InetAddress.java:1426)
at com.sun.corba.ee.impl.orb.ORBImpl.getLocalHostName(ORBImpl.java:1860)
... 15 more
10/02/2012 23:19:39 org.glassfish.enterprise.iiop.impl.GlassFishORBManager initORB
SEVERE: enterprise_util.excep_in_createorb
org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 208 completed: No
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.getLocalHostFailed(ORBUtilSystemException.java:5690)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.getLocalHostFailed(ORBUtilSystemException.java:5708)
at com.sun.corba.ee.impl.orb.ORBImpl.getLocalHostName(ORBImpl.java:1862)
at com.sun.corba.ee.impl.orb.ORBImpl.set_parameters(ORBImpl.java:678)
at com.sun.corba.ee.impl.orb.ORBImpl.setParameters(ORBImpl.java:666)
at com.sun.corba.ee.spi.osgi.ORBFactory.initialize(ORBFactory.java:91)
at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.initORB(GlassFishORBManager.java:612)
at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.getORB(GlassFishORBManager.java:289)
at org.glassfish.enterprise.iiop.impl.GlassFishORBFactoryImpl.createORB(GlassFishORBFactoryImpl.java:83)
at org.glassfish.enterprise.iiop.api.GlassFishORBHelper.getORB(GlassFishORBHelper.java:122)
at com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(SerialContext.java:297)
at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:271)
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:430)
at javax.naming.InitialContext.lookup(InitialContext.java:409)
at pepweb.service.locator.ServiceLocator.getService(ServiceLocator.java:66)
at pepweb.business.bd.PacienteBD.<init>(PacienteBD.java:29)
at pepweb.integration.dao.Main.select(Main.java:25)
at pepweb.integration.dao.Main.main(Main.java:18)
Caused by: java.net.UnknownHostException: priscila-R430-R480-R440: priscila-R430-R480-R440
at java.net.InetAddress.getLocalHost(InetAddress.java:1426)
at com.sun.corba.ee.impl.orb.ORBImpl.getLocalHostName(ORBImpl.java:1860)
... 15 more
java.lang.RuntimeException: Orb initialization erorr
at org.glassfish.enterprise.iiop.api.GlassFishORBHelper.getORB(GlassFishORBHelper.java:150)
at com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(SerialContext.java:297)
at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:271)
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:430)
at javax.naming.InitialContext.lookup(InitialContext.java:409)
at pepweb.service.locator.ServiceLocator.getService(ServiceLocator.java:66)
at pepweb.business.bd.PacienteBD.<init>(PacienteBD.java:29)
at pepweb.integration.dao.Main.select(Main.java:25)
at pepweb.integration.dao.Main.main(Main.java:18)
Caused by: java.lang.RuntimeException: org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 208 completed: No
at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.initORB(GlassFishORBManager.java:649)
at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.getORB(GlassFishORBManager.java:289)
at org.glassfish.enterprise.iiop.impl.GlassFishORBFactoryImpl.createORB(GlassFishORBFactoryImpl.java:83)
at org.glassfish.enterprise.iiop.api.GlassFishORBHelper.getORB(GlassFishORBHelper.java:122)
... 8 more
Caused by: org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 208 completed: No
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.getLocalHostFailed(ORBUtilSystemException.java:5690)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.getLocalHostFailed(ORBUtilSystemException.java:5708)
at com.sun.corba.ee.impl.orb.ORBImpl.getLocalHostName(ORBImpl.java:1862)
at com.sun.corba.ee.impl.orb.ORBImpl.set_parameters(ORBImpl.java:678)
at com.sun.corba.ee.impl.orb.ORBImpl.setParameters(ORBImpl.java:666)
at com.sun.corba.ee.spi.osgi.ORBFactory.initialize(ORBFactory.java:91)
at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.initORB(GlassFishORBManager.java:612)
... 11 more
Caused by: java.net.UnknownHostException: priscila-R430-R480-R440: priscila-R430-R480-R440
at java.net.InetAddress.getLocalHost(InetAddress.java:1426)
at com.sun.corba.ee.impl.orb.ORBImpl.getLocalHostName(ORBImpl.java:1860)
... 15 more
javax.naming.NamingException: Lookup failed for 'ejb/PacienteBean' in SerialContext [Root exception is javax.naming.NamingException: Unable to acquire SerialContextProvider for SerialContext [Root exception is java.lang.RuntimeException: Orb initialization erorr]]
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:442)
at javax.naming.InitialContext.lookup(InitialContext.java:409)
at pepweb.service.locator.ServiceLocator.getService(ServiceLocator.java:66)
at pepweb.business.bd.PacienteBD.<init>(PacienteBD.java:29)
at pepweb.integration.dao.Main.select(Main.java:25)
at pepweb.integration.dao.Main.main(Main.java:18)
Caused by: javax.naming.NamingException: Unable to acquire SerialContextProvider for SerialContext [Root exception is java.lang.RuntimeException: Orb initialization erorr]
at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:276)
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:430)
... 5 more
Caused by: java.lang.RuntimeException: Orb initialization erorr
at org.glassfish.enterprise.iiop.api.GlassFishORBHelper.getORB(GlassFishORBHelper.java:150)
at com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(SerialContext.java:297)
at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:271)
... 6 more
Caused by: java.lang.RuntimeException: org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 208 completed: No
at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.initORB(GlassFishORBManager.java:649)
at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.getORB(GlassFishORBManager.java:289)
at org.glassfish.enterprise.iiop.impl.GlassFishORBFactoryImpl.createORB(GlassFishORBFactoryImpl.java:83)
at org.glassfish.enterprise.iiop.api.GlassFishORBHelper.getORB(GlassFishORBHelper.java:122)
... 8 more
Caused by: org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 208 completed: No
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.getLocalHostFailed(ORBUtilSystemException.java:5690)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.getLocalHostFailed(ORBUtilSystemException.java:5708)
at com.sun.corba.ee.impl.orb.ORBImpl.getLocalHostName(ORBImpl.java:1862)
at com.sun.corba.ee.impl.orb.ORBImpl.set_parameters(ORBImpl.java:678)
at com.sun.corba.ee.impl.orb.ORBImpl.setParameters(ORBImpl.java:666)
at com.sun.corba.ee.spi.osgi.ORBFactory.initialize(ORBFactory.java:91)
at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.initORB(GlassFishORBManager.java:612)
... 11 more
Caused by: java.net.UnknownHostException: priscila-R430-R480-R440: priscila-R430-R480-R440
at java.net.InetAddress.getLocalHost(InetAddress.java:1426)
at com.sun.corba.ee.impl.orb.ORBImpl.getLocalHostName(ORBImpl.java:1860)
... 15 more
Exception in thread "main" java.lang.RuntimeException: Cannot find service ejb/PacienteBean
at pepweb.service.locator.ServiceLocator.getService(ServiceLocator.java:73)
at pepweb.business.bd.PacienteBD.<init>(PacienteBD.java:29)
at pepweb.integration.dao.Main.select(Main.java:25)
at pepweb.integration.dao.Main.main(Main.java:18)
Java Result: 1
CONSTRUÍDO COM SUCESSO (tempo total: 25 segundos)