I'm trying to get a web application hosted on glassfish on one machine talking to its EJBs hosted on a separate glassfish instance on another machine. I'm using V2 UR1 and java 1.6.0_06-b02
I'm using explicit lookups using InitialContext in the code, not @EJB
Can anyone see what I could possibly be doing wrong with linking the web tier with ejbs using corbaname jndi names, as below?
I see another guy from a while back with the same problem, but I'm using a much newer jvm, as above:
http://www.techienuggets.com/Detail?tx=5562
http://www.techienuggets.com/Comments?tx=5562
Here's my scenario:
web.xml:
<ejb-ref>
<ejb-ref-name>ejb/Whatever</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>whatever.Whatever</home>
<remote>whatever.WhateverRemote</remote>
</ejb-ref>
works fine with sun-web.xml entry, mapping it to a ejb JNDI name (on the same glassfish):
<ejb-ref>
<ejb-ref-name>ejb/Whatever</ejb-ref-name>
<jndi-name>ejb/Whatever</jndi-name>
</ejb-ref>
but this corbaname entry does not work fine with sun-web.xml entry, even when referencing the very same glassfish server, let alone a remote one:
<ejb-ref>
<ejb-ref-name>ejb/Whatever</ejb-ref-name>
<jndi-name>corbaname:iiop:192.168.178.1:3700#ejb/Whatever</jndi-name>
</ejb-ref>
The corbaname url syntax looks right according to various glassfish docs I found on the internet.
Any ideas?
This is what I see logged:
[#|2008-04-28T12:37:28.192+1000|WARNING|sun-appserver9.1|javax.enterprise.resource.corba.ee.S1AS-ORB.orb.resolver|_ThreadID=14;_ThreadName=httpSSLWorkerThread-48080-1;_RequestID=6ce01133-b5c8-47e8-ae8d-a00e75c96ed1;|"IOP00100009: (BAD_PARAM) string_to_object conversion failed due to bad bad schema specific part"
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:214)
at com.sun.corba.ee.impl.resolver.INSURLOperationImpl.resolveINSURL(INSURLOperationImpl.java:153)
at com.sun.corba.ee.impl.resolver.INSURLOperationImpl.operate(INSURLOperationImpl.java:143)
at com.sun.corba.ee.impl.orb.ORBImpl.string_to_object(ORBImpl.java:975)
at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:914)
at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:396)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at au.com.groundhog.tlc.common.ejb.CachingServiceLocator.lookup(CachingServiceLocator.java:114)
at com.samaxes.stripes.integration.ejb.EJBInterceptor.findEJB(EJBInterceptor.java:224)
at com.samaxes.stripes.integration.ejb.EJBInterceptor.intercept(EJBInterceptor.java:111)
at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:154)
at net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java:73)
at net.sourceforge.stripes.tag.UseActionBeanTag.doStartTag(UseActionBeanTag.java:106)
at org.apache.jsp.pages.internetLevyPayment.step1_jsp._jspx_meth_stripes_useActionBean_0(step1_jsp.java from :302)
at org.apache.jsp.pages.internetLevyPayment.step1_jsp._jspService(step1_jsp.java from :139)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
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.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:276)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:309)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:192)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:404)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:75)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:181)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:177)
at net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:180)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:75)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:181)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:177)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:75)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:181)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:177)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
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:210)
... 74 more
|#]
[Message sent by forum member 'dcam' (dcam)]
http://forums.java.net/jive/thread.jspa?messageID=271741