users@glassfish.java.net

Re: Remote server: bean call

From: <glassfish_at_javadesktop.org>
Date: Sat, 03 Jul 2010 09:06:48 PDT

Hello,

I've just tried your solution. I've attached the jar and war file. jar file deploy on server A (ip address 10.4.5.190, Ubuntu server) is no problem. When i deploy the war-file on server B (WinXP), it fails and this is the stacktrace:

[#|2010-07-03T17:38:17.871+0200|SEVERE|glassfish3.0|org.apache.catalina.core.StandardContext|_ThreadID=34;_ThreadName=Thread-1;|PWC1306: Startup of context /web3 failed due to previous errors|#]

[#|2010-07-03T17:38:17.871+0200|SEVERE|glassfish3.0|org.apache.catalina.core.ContainerBase|_ThreadID=34;_ThreadName=Thread-1;|ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class test.Servlet3
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5289)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:499)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1947)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1619)
        at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)
        at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
        at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
        at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
        at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:310)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
        at org.glassfish.deployment.autodeploy.AutoOperation.run(AutoOperation.java:141)
        at org.glassfish.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:573)
        at org.glassfish.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:459)
        at org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:391)
        at org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:376)
        at org.glassfish.deployment.autodeploy.AutoDeployService$1.run(AutoDeployService.java:195)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
Caused by: org.apache.catalina.LifecycleException: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class test.Servlet3
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5017)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5280)
        ... 26 more
Caused by: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class test.Servlet3
        at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:312)
        at com.sun.enterprise.web.WebContainer.createServletInstance(WebContainer.java:709)
        at com.sun.enterprise.web.WebModule.createServletInstance(WebModule.java:1937)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1252)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1229)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5007)
        ... 27 more
Caused by: com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Remote ejb-ref name=test.Servlet3/bar,Remote 3.x interface =test.BarIF,ejb-link=null,lookup=null,mappedName=corbaname:iiop:1.2_at_10.4.5.190:3700#test.BarIF,jndi-name=,refType=Session into class test.Servlet3
        at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:614)
        at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:384)
        at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:141)
        at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:127)
        at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:306)
        ... 32 more
Caused by: javax.naming.NamingException: Lookup failed for 'java:comp/env/test.Servlet3/bar' in SerialContext [Root exception is javax.naming.NamingException: Exception resolving Ejb for 'Remote ejb-ref name=test.Servlet3/bar,Remote 3.x interface =test.BarIF,ejb-link=null,lookup=null,mappedName=corbaname:iiop:1.2_at_10.4.5.190:3700#test.BarIF,jndi-name=,refType=Session' . Actual (possibly internal) Remote JNDI name used for lookup is 'corbaname:iiop:1.2_at_10.4.5.190:3700#test.BarIF__3_x_Internal_RemoteBusinessHome__' [Root exception is org.omg.CORBA.BAD_PARAM: vmcid: OMG minor code: 9 completed: No]]
        at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:442)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:513)
        ... 36 more
Caused by: javax.naming.NamingException: Exception resolving Ejb for 'Remote ejb-ref name=test.Servlet3/bar,Remote 3.x interface =test.BarIF,ejb-link=null,lookup=null,mappedName=corbaname:iiop:1.2_at_10.4.5.190:3700#test.BarIF,jndi-name=,refType=Session' . Actual (possibly internal) Remote JNDI name used for lookup is 'corbaname:iiop:1.2_at_10.4.5.190:3700#test.BarIF__3_x_Internal_RemoteBusinessHome__' [Root exception is org.omg.CORBA.BAD_PARAM: vmcid: OMG minor code: 9 completed: No]
        at com.sun.ejb.EjbNamingReferenceManagerImpl.resolveEjbReference(EjbNamingReferenceManagerImpl.java:174)
        at com.sun.enterprise.container.common.impl.ComponentEnvManagerImpl$EjbReferenceProxy.create(ComponentEnvManagerImpl.java:1040)
        at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:688)
        at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:657)
        at com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.java:148)
        at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:428)
        ... 38 more
Caused by: org.omg.CORBA.BAD_PARAM: vmcid: OMG minor code: 9 completed: No
        at com.sun.corba.ee.impl.logging.OMGSystemException.soBadSchemaSpecific(OMGSystemException.java:1075)
        at com.sun.corba.ee.impl.logging.OMGSystemException.soBadSchemaSpecific(OMGSystemException.java:1093)
        at com.sun.corba.ee.impl.resolver.INSURLOperationImpl.resolveCorbaname(INSURLOperationImpl.java:228)
        at com.sun.corba.ee.impl.resolver.INSURLOperationImpl.resolveINSURL(INSURLOperationImpl.java:154)
        at com.sun.corba.ee.impl.resolver.INSURLOperationImpl.operate(INSURLOperationImpl.java:144)
        at com.sun.corba.ee.impl.orb.ORBImpl.string_to_object(ORBImpl.java:954)
        at com.sun.ejb.EjbNamingReferenceManagerImpl.resolveEjbReference(EjbNamingReferenceManagerImpl.java:167)
        ... 43 more
Caused by: org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
        at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:72)
        at org.omg.CosNaming._NamingContextExtStub.resolve_str(_NamingContextExtStub.java:165)
        at com.sun.corba.ee.impl.resolver.INSURLOperationImpl.resolveCorbaname(INSURLOperationImpl.java:222)
        ... 47 more



Anybody a suggestion why this works for everybody else and not for me?
Thanks already for all the answers!

Jan
[Message sent by forum member 'jandebeule']

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