Error Accessing EJB from remote application - is it supported in 101202?

We are running Oracle App Server 10.1.2.0.2, There is a containers created on midtier server called OC4J_TEST .
We have two applications, one has EJB and another one has JSP.JSP has following code
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
env.put(Context.SECURITY_PRINCIPAL, "ias_admin");
env.put(Context.SECURITY_CREDENTIALS, "welcome1");
String pURL="opmn:ormi://localhost:12401:OC4J_TEST/";
env.put(Context.PROVIDER_URL,pURL );
env.put("dedicated.connection","true");
Context context = null;
sampleejb Sampleejb;
String mess = "Initial message, if you see that is because EJB has not been properly called";
mess = mess + " "+pURL;
try
// Create InitialContext
context = new InitialContext(env);
// Lookup Home interface
sampleejbHome SampleejbHome = (sampleejbHome)PortableRemoteObject.narrow(context.lookup("sampleejb"), sampleejbHome.class);
// Create the bean and the remote interface
Sampleejb = SampleejbHome.create();
mess = Sampleejb.hello("Middle Tier JSP EJB Client");
// Destroy the Bean Instance
catch(Throwable ex)
ex.printStackTrace();
When I run this code we get following exception:
08/10/15 16:21:35 javax.naming.NameNotFoundException: ejbserverapp/sampleejb not found
08/10/15 16:21:35 at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:165)
08/10/15 16:21:35 at javax.naming.InitialContext.lookup(InitialContext.java:347)
08/10/15 16:21:35 at JspsampleejbClient.jspService(_JspsampleejbClient.java:76)
08/10/15 16:21:35 at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
08/10/15 16:21:35 at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:575)
08/10/15 16:21:35 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:311)
08/10/15 16:21:35 at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:498)
08/10/15 16:21:35 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:402)
08/10/15 16:21:35 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
08/10/15 16:21:35 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:835)
08/10/15 16:21:35 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:341)
08/10/15 16:21:35 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:816)
08/10/15 16:21:35 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:231)
08/10/15 16:21:35 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:136)
08/10/15 16:21:35 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
08/10/15 16:21:35 at java.lang.Thread.run(Thread.java:534)
What we really want is to have webapp with JSP running on one server and EJB running on another server. Need some help.
Thanks in advance.
Manoj
Edited by: Manoj Desai on Oct 16, 2008 11:01 AM

This connection string does not look correct to me:
String pURL="opmn:ormi://localhost:12401:OC4J_TEST/";
As you have it, you are specifying the OC4J RMI port to connect to, in conjunction with the ORMI lookup handler.
The correct form for this string should be using the OPMN request port:
String pURL="opmn:ormi://localhost:6003:OC4J_TEST/";
The6003 value comes from the request port that OPMN is using on the target application server instance you need to connect to -- you can observe this port by looking at the $ORACLE_HOME/opmn/conf/opmn.xml file and look for this element:
<port local="6101" remote="6202" request="6003"/>
Use whatever port is specified there in your connect string.
-steve-

Similar Messages

  • Error when calling remote EJB from my application

    hi
    I am getting the following error when i am trying to call a remote EJB from my application.
    Can any help me out regarding this issue
    javax.naming.ConfigurationException: COS Name Service not registered with ORB under the name 'NameService'. Root exception is org.omg.CORBA.ORBPackage.InvalidName: NameService:org.omg.CORBA.COMM_FAILURE: purge_calls:1500 reason=1 state=5 vmcid: IBM minor code: 306 completed: Maybe
         at com.ibm.rmi.corba.InitialReferenceClient.resolve_initial_references(InitialReferenceClient.java:218)
         at com.ibm.rmi.corba.ORB.resolve_initial_references(ORB.java:4428)
         at com.ibm.rmi.iiop.ORB.resolve_initial_references(ORB.java:654)
         at com.ibm.CORBA.iiop.ORB.resolve_initial_references(ORB.java:3363)
         at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:387)
         at com.sun.jndi.cosnaming.CNCtx.initUsingIiopUrl(CNCtx.java:330)
         at com.sun.jndi.cosnaming.CNCtx.initUsingUrl(CNCtx.java:285)
         at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(CNCtx.java:236)
         at com.sun.jndi.cosnaming.CNCtx.<init>(CNCtx.java:84)
         at com.sun.jndi.cosnaming.CNCtxFactory.getInitialContext(CNCtxFactory.java:50)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:675)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:257)
         at javax.naming.InitialContext.init(InitialContext.java:233)
         at javax.naming.InitialContext.<init>(InitialContext.java:209)
         at com.ibm._jsp._invoke._jspService(_invoke.java:89)
         at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:91)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:762)
         at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
         at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:204)
         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3071)
         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:236)
         at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1958)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:109)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1471)
    Caused by: org.omg.CORBA.COMM_FAILURE: purge_calls:1500 reason=1 state=5 vmcid: IBM minor code: 306 completed: Maybe
         at com.ibm.rmi.iiop.Connection.purge_calls(Connection.java:1499)
         at com.ibm.rmi.iiop.Connection.doReaderWorkOnce(Connection.java:2702)
         at com.ibm.rmi.transport.ReaderThread.run(ReaderPoolImpl.java:137)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.rmi.corba.InitialReferenceClient.resolve_initial_references(InitialReferenceClient.java:218)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.rmi.corba.ORB.resolve_initial_references(ORB.java:4428)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.rmi.iiop.ORB.resolve_initial_references(ORB.java:654)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.CORBA.iiop.ORB.resolve_initial_references(ORB.java:3363)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:387)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.sun.jndi.cosnaming.CNCtx.initUsingIiopUrl(CNCtx.java:330)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.sun.jndi.cosnaming.CNCtx.initUsingUrl(CNCtx.java:285)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(CNCtx.java:236)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.sun.jndi.cosnaming.CNCtx.<init>(CNCtx.java:84)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.sun.jndi.cosnaming.CNCtxFactory.getInitialContext(CNCtxFactory.java:50)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:675)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:257)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at javax.naming.InitialContext.init(InitialContext.java:233)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at javax.naming.InitialContext.<init>(InitialContext.java:209)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm._jsp._invoke._jspService(_invoke.java:89)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:91)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:762)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:204)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3071)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:236)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1958)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:109)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1471)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R Caused by: org.omg.CORBA.COMM_FAILURE: purge_calls:1500 reason=1 state=5 vmcid: IBM minor code: 306 completed: Maybe
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.rmi.iiop.Connection.purge_calls(Connection.java:1499)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.rmi.iiop.Connection.doReaderWorkOnce(Connection.java:2702)
    [4/26/07 19:35:11:727 IST] 00000053 SystemErr R      at com.ibm.rmi.transport.ReaderThread.run(ReaderPoolImpl.java:137)
    [4/26/07 19:35:11:727 IST] 00000054 SystemErr R javax.naming.ConfigurationException: COS Name Service not registered with ORB under the name 'NameService'. Root exception is org.omg.CORBA.ORBPackage.InvalidName: NameService:org.omg.CORBA.COMM_FAILURE: purge_calls:1500 reason=1 state=5 vmcid: IBM minor code: 306 completed: Maybe
         at com.ibm.rmi.corba.InitialReferenceClient.resolve_initial_references(InitialReferenceClient.java:218)
         at com.ibm.rmi.corba.ORB.resolve_initial_references(ORB.java:4428)
         at com.ibm.rmi.iiop.ORB.resolve_initial_references(ORB.java:654)
         at com.ibm.CORBA.iiop.ORB.resolve_initial_references(ORB.java:3363)
         at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:387)
         at com.sun.jndi.cosnaming.CNCtx.initUsingIiopUrl(CNCtx.java:330)
         at com.sun.jndi.cosnaming.CNCtx.initUsingUrl(CNCtx.java:285)
         at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(CNCtx.java:236)
         at com.sun.jndi.cosnaming.CNCtx.<init>(CNCtx.java:84)
         at com.sun.jndi.cosnaming.CNCtxFactory.getInitialContext(CNCtxFactory.java:50)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:675)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:257)
         at javax.naming.InitialContext.init(InitialContext.java:233)
         at javax.naming.InitialContext.<init>(InitialContext.java:209)
         at com.ibm._jsp._invoke._jspService(_invoke.java:89)
         at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:91)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:762)
         at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
         at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:204)
         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3071)
         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:236)
         at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1958)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:109)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1471)
    Caused by: org.omg.CORBA.COMM_FAILURE: purge_calls:1500 reason=1 state=5 vmcid: IBM minor code: 306 completed: Maybe
         at com.ibm.rmi.iiop.Connection.purge_calls(Connection.java:1499)
         at com.ibm.rmi.iiop.Connection.doReaderWorkOnce(Connection.java:2702)
         at com.ibm.rmi.transport.ReaderThread.run(ReaderPoolImpl.java:137)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.rmi.corba.InitialReferenceClient.resolve_initial_references(InitialReferenceClient.java:218)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.rmi.corba.ORB.resolve_initial_references(ORB.java:4428)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.rmi.iiop.ORB.resolve_initial_references(ORB.java:654)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.CORBA.iiop.ORB.resolve_initial_references(ORB.java:3363)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:387)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.sun.jndi.cosnaming.CNCtx.initUsingIiopUrl(CNCtx.java:330)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.sun.jndi.cosnaming.CNCtx.initUsingUrl(CNCtx.java:285)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(CNCtx.java:236)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.sun.jndi.cosnaming.CNCtx.<init>(CNCtx.java:84)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.sun.jndi.cosnaming.CNCtxFactory.getInitialContext(CNCtxFactory.java:50)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:675)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:257)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at javax.naming.InitialContext.init(InitialContext.java:233)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at javax.naming.InitialContext.<init>(InitialContext.java:209)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm._jsp._invoke._jspService(_invoke.java:89)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:91)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:762)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:204)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3071)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:236)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1958)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:109)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1471)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R Caused by: org.omg.CORBA.COMM_FAILURE: purge_calls:1500 reason=1 state=5 vmcid: IBM minor code: 306 completed: Maybe
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.rmi.iiop.Connection.purge_calls(Connection.java:1499)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.rmi.iiop.Connection.doReaderWorkOnce(Connection.java:2702)
    [4/26/07 19:35:11:742 IST] 00000054 SystemErr R      at com.ibm.rmi.transport.ReaderThread.run(ReaderPoolImpl.java:137)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R javax.naming.ConfigurationException: COS Name Service not registered with ORB under the name 'NameService'. Root exception is org.omg.CORBA.ORBPackage.InvalidName: NameService:org.omg.CORBA.COMM_FAILURE: purge_calls:1500 reason=1 state=5 vmcid: IBM minor code: 306 completed: Maybe
         at com.ibm.rmi.corba.InitialReferenceClient.resolve_initial_references(InitialReferenceClient.java:218)
         at com.ibm.rmi.corba.ORB.resolve_initial_references(ORB.java:4428)
         at com.ibm.rmi.iiop.ORB.resolve_initial_references(ORB.java:654)
         at com.ibm.CORBA.iiop.ORB.resolve_initial_references(ORB.java:3363)
         at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:387)
         at com.sun.jndi.cosnaming.CNCtx.initUsingIiopUrl(CNCtx.java:330)
         at com.sun.jndi.cosnaming.CNCtx.initUsingUrl(CNCtx.java:285)
         at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(CNCtx.java:236)
         at com.sun.jndi.cosnaming.CNCtx.<init>(CNCtx.java:84)
         at com.sun.jndi.cosnaming.CNCtxFactory.getInitialContext(CNCtxFactory.java:50)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:675)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:257)
         at javax.naming.InitialContext.init(InitialContext.java:233)
         at javax.naming.InitialContext.<init>(InitialContext.java:209)
         at com.ibm._jsp._invoke._jspService(_invoke.java:89)
         at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:91)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:762)
         at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
         at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:204)
         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3071)
         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:236)
         at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1958)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:109)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1471)
    Caused by: org.omg.CORBA.COMM_FAILURE: purge_calls:1500 reason=1 state=5 vmcid: IBM minor code: 306 completed: Maybe
         at com.ibm.rmi.iiop.Connection.purge_calls(Connection.java:1499)
         at com.ibm.rmi.iiop.Connection.doReaderWorkOnce(Connection.java:2702)
         at com.ibm.rmi.transport.ReaderThread.run(ReaderPoolImpl.java:137)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.rmi.corba.InitialReferenceClient.resolve_initial_references(InitialReferenceClient.java:218)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.rmi.corba.ORB.resolve_initial_references(ORB.java:4428)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.rmi.iiop.ORB.resolve_initial_references(ORB.java:654)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.CORBA.iiop.ORB.resolve_initial_references(ORB.java:3363)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:387)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.sun.jndi.cosnaming.CNCtx.initUsingIiopUrl(CNCtx.java:330)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.sun.jndi.cosnaming.CNCtx.initUsingUrl(CNCtx.java:285)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(CNCtx.java:236)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.sun.jndi.cosnaming.CNCtx.<init>(CNCtx.java:84)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.sun.jndi.cosnaming.CNCtxFactory.getInitialContext(CNCtxFactory.java:50)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:675)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:257)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at javax.naming.InitialContext.init(InitialContext.java:233)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at javax.naming.InitialContext.<init>(InitialContext.java:209)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm._jsp._invoke._jspService(_invoke.java:89)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:91)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:762)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:204)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3071)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:236)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1958)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:109)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1471)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R Caused by: org.omg.CORBA.COMM_FAILURE: purge_calls:1500 reason=1 state=5 vmcid: IBM minor code: 306 completed: Maybe
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.rmi.iiop.Connection.purge_calls(Connection.java:1499)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.rmi.iiop.Connection.doReaderWorkOnce(Connection.java:2702)
    [4/26/07 19:37:22:758 IST] 00000052 SystemErr R      at com.ibm.rmi.transport.ReaderThread.run(ReaderPoolImpl.java:137)
    [4/26/07 19:37:36:117 IST] 00000056 SystemErr R javax.naming.ConfigurationException: COS Name Service not registered with ORB under the name 'NameService'. Root exception is org.omg.CORBA.ORBPackage.InvalidName: NameService:org.omg.CORBA.COMM_FAILURE: purge_calls:1500 reason=1 state=5 vmcid: IBM minor code: 306 completed: Maybe
         at com.ibm.rmi.corba.InitialReferenceClient.resolve_initial_references(InitialReferenceClient.java:218)
         at com.ibm.rmi.corba.ORB.resolve_initial_references(ORB.java:4428)
         at com.ibm.rmi.iiop.ORB.resolve_initial_references(ORB.java:654)
         at com.ibm.CORBA.iiop.ORB.resolve_initial_references(ORB.java:3363)
         at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:387)
         at com.sun.jndi.cosnaming.CNCtx.initUsingIiopUrl(CNCtx.java:330)
         at com.sun.jndi.cosnaming.CNCtx.initUsingUrl(CNCtx.java:285)
         at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(CNCtx.java:236)
         at com.sun.jndi.cosnaming.CNCtx.<init>(CNCtx.java:84)
         at com.sun.jndi.cosnaming.CNCtxFactory.getInitialContext(CNCtxFactory.java:50)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:675)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:257)
         at javax.naming.InitialContext.init(InitialContext.java:233)
         at javax.naming.InitialContext.<init>(InitialContext.java:209)
         at com.ibm._jsp._invoke._jspService(_invoke.java:89)
         at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:91)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:762)
         at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
         at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:204)
         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3071)
         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:236)
         at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1958)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:109)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
         at com.ibm.ws.util.Th

    The procedure apex_cdc.enable_table_capture i created myself with no authid mentioned explicitly, so it uses definer rights, by default.
    BUt this procedure is simply a wrapper for sys.dbms_cdc_publish.create_change_table.
    When I look on the security model for this sys.dbms_cdc_publish, i see it runs under invoker rights. (http://www.psoug.org/reference/dbms_cdc_publish.html).
    The code is like this:
    CREATE OR REPLACE PROCEDURE enable_table_capture
              i_owner               IN VARCHAR2,
              i_change_table_name     IN VARCHAR2,
              i_change_set_name     IN VARCHAR2,
              i_change_source          IN VARCHAR2,
              i_source_schema          IN VARCHAR2,
              i_source_table          IN VARCHAR2,
              i_column_type_list     IN VARCHAR2
         IS
         BEGIN
              EXECUTE IMMEDIATE 'alter session set REMOTE_DEPENDENCIES_MODE=SIGNATURE';
              EXECUTE IMMEDIATE 'begin add_log@orcl01(i_tableName => ''G''); end;';
    sys.DBMS_CDC_PUBLISH.CREATE_CHANGE_TABLE(
    owner => i_owner,
    change_table_name => i_change_table_name,
    change_set_name => i_change_set_name,
    source_schema => i_source_schema,
    source_table => i_source_table,
    column_type_list => i_column_type_list,
    capture_values => 'both',
    rs_id => 'y',
    row_id => 'n',
    user_id => 'n',
    timestamp => 'y',
    object_id => 'n',
    source_colmap => 'n',
    target_colmap => 'y',
    options_string => NULL);
    END enable_table_capture;

  • Access EJB from Servlet that in different archive?

    <font class="mediumtxt">package kyro.ejb.session;
    import javax.ejb.*;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    @Stateless(name="StandAlone")
    @Remote(StandAlone.class)
    public class StandAloneBean
    implements StandAlone, StandAloneLocal
    public StandAloneBean() {
    public String sayHello() {     
    return "sayHello";
    I want to access ejb from servlet that .war and .jar not in single .ear. I want to try that just with annotation not xml descriptor cause is easy to understand for me. I use Glassfish. But i can't lookup that ejb. How can i lookup that ejb with jndi? Can't you give me example of servlet to access that? I not use JNDI.properties, are that caused i can't access my ejb? I just thing .war and.jar in one server, are i have to used JNDI.properties. can you explain how to use JNDI.properties in servlet or separate file?
    </font>

    But i can't lookup that ejb. How are you trying and what exception is occurring?
    How can i lookup that ejb with jndi? [https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html|https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html]
    m

  • Partition ERROR - 1023040 - msg from remote site : need to understand

    hi,
    I currently have a problem with the partitions between two cubes.
    Architecture:
          80 countries database (source)
          1 world database (destination)
    Process :
    - The partitions are created dynamically by maxl scripts :
    spool on to $1;
    Alter application $2 comment '**_batch_**';
    Alter application $4 comment '**_batch_**';
    Alter system load application $2;
    Alter system load application $4;
    Alter application $2 disable startup;
    Alter application $4 disable startup;
    Alter application $2 disable connects;
    Alter application $4 disable connects;
    /* Create Transparant Partition between Country cube to Mond cube */
    create or replace replicated partition $2.$3
    AREA
    '"S_R_N",
    &curr_month,
    &local_currency, "D_EURO",
    @IDESCENDANTS("P_Produit"),
    @LEVMBRS("M_Marche",1),"M_Marche",
    @IDESCENDANTS("B_Marque"),
    @IDESCENDANTS("U_Sourcing"),
    @REMOVE (@DESCENDANTS("I_Masse"), @LIST ("I_55CCOM")), @DESCENDANTS("I_Divers"),
    @IDESCENDANTS("NA_Nature"),MCX'
    to $4.$5
    AREA
    '"S_R_N",
    &curr_month,
    "D_DEV", "D_EUR",
    @IDESCENDANTS("P_Produit"),
    @LEVMBRS("M_MixClient",0),"M_MixClient",
    @IDESCENDANTS("B_Marque"),
    @IDESCENDANTS("U_Sourcing"),
    @REMOVE (@DESCENDANTS("I_Masse"), @LIST ("I_55CCOM")), @DESCENDANTS("I_Divers"),
    @IDESCENDANTS("NA_Nature"),MCX,
    &country_name'
    mapped globally ('',D_$7, "D_EURO", "M_Marche") to (W_$6,D_DEV, "D_EUR", "M_MixClient")
    refresh replicated partition $2.$3 to $4.$5 all data;
    drop replicated partition $2.$3 to $4.$5;
    Alter application $2 enable startup;
    Alter application $4 enable startup;
    Alter application $2 enable connects;
    Alter application $4 enable connects;
    Alter application $2 comment '**_enable_**';
    Alter application $4 comment '**_enable_**';
    Alter system unload application $2;
    Alter system unload application $4;
    Spool off;
    Logout;
    exit;
    - Defragmentation cubes, launch replications countries successively one by one to the world cubes sequentially .
    the order of the country is not the same from one month to another .
    Treatment is initiated each month.
    Symptoms :
    - Partition fall into error with the following message but not systematically .
    message:
    MAXL > refresh replicated partition PGC_ESP.Pgc_esp PGC_MOND.Pgc_mond to all data ;
       ERROR - 1023040 - msg from remote site [ [ Wed Nov. 29 10:21:03 2013] hprx1302/PGC_MOND/Pgc_mond/PGC_ADMIN/Error ( 1023040 ) msg from remote site [ [ Wed Nov. 29 10:21:02 2013] hprx1302 / PGC_ESP / Pgc_esp / PGC_ADMIN / Error (1023040) msg from remote site [ [ Wed Nov. 29 10:21:01 2013] hprx1302/PGC_MOND/Pgc_mond/PGC_ADMIN/Error ( 1042012 ) Network error [ 32] : Can not Send Data ]]] .
    We note that the error occurs in the following cases:
    - The errerur happens generally when the average clustering ratio is low. (cube fragmented) for cubes source and / or destination
    - When beacuoup replication were done before: in the last 10 to 15 cubic remaining replicate.
    - We mistake once on the environment recipe on the first cube with average clustering ratio to 0.96 but the server recipe is much less efficient.
    We noticed that when doing a defragmentation cubes source and destination once the error obtained treatment replication was no longer falling into error.
    Problem: defragmentation cube world take 10 hours.
    We also made the following observation:
    OK/INFO - 1051034 - Logging in user [PGC_ADMIN].
    OK/INFO - 1051035 - Last login on Friday, November 29, 2013 10:19:46 AM.
    OK/INFO - 1053012 - Object [Pgc_esp] is locked by user [PGC_ADMIN].
    OK/INFO - 1053012 - Object [Pgc_mond] is locked by user [PGC_ADMIN].
    OK/INFO - 1053012 - Object [54116855] is locked by user [PGC_ADMIN].
    OK/INFO - 1053012 - Object [39843334] is locked by user [PGC_ADMIN].
    OK/INFO - 1053013 - Object [54116855] unlocked by user [PGC_ADMIN].
    OK/INFO - 1053013 - Object [39843334] unlocked by user [PGC_ADMIN].
    WARNING - 1241137 - [Target] - Partition definition is not valid: [Cell count mismatch: [1279464568200] area for slice [1] members per dimension [63 1 2 1 6 26 7 245 1 37955 ]].
    OK/INFO - 1053012 - Object [25586652] is locked by user [PGC_ADMIN].
    OK/INFO - 1053012 - Object [11329970] is locked by user [PGC_ADMIN].
    OK/INFO - 1053013 - Object [25586652] unlocked by user [PGC_ADMIN].
    OK/INFO - 1053013 - Object [11329970] unlocked by user [PGC_ADMIN].
    WARNING - 1241137 - [Source] - Partition definition is not valid: [Cell count mismatch: [47895484140] area for slice [1] members per dimension [63 1 6 7 2173 2 17 1 245 ]].
    OK/INFO - 1053013 - Object [Pgc_esp] unlocked by user [PGC_ADMIN].
    OK/INFO - 1053013 - Object [Pgc_mond] unlocked by user [PGC_ADMIN].
    OK/INFO - 1051037 - Logging out user [PGC_ADMIN], active for 0 minutes.
    OK/INFO - 1241124 - Partition replaced.
    Following these findings we need to understand what is happening.
    We would like to understand why partitons fall errors?
    why we have the message "Partition definition is not valid" in the logs when creating the partition?
    Regards,
    Oliv.

    Hi SreekumarHariharan,
    Tx to your anwers, but we are already try all the solution proposes to Essbase FAQ.
    a)Increase the values for NETDELAY and NETRETRYCOUNT in essbase.cfg file.Restart the essbase server.
    We are changed the two value in the essbase.cfg but nothing to do. The same error appears
    b)Make sure that the all source members and target members used in partition are in sync
    All member are diferent between source and target but a mapping are defined in the partition (see the partition maxl in my below message.
    c)Validate the partition (look at the validation tab, it will give the numbers for each side of the partition ie source area and target area)
    You can see the logs of validation partition :
    WARNING - 1241137 - [Target] - Partition definition is not valid: [Cell count mismatch: [1279464568200] area for slice [1] members per dimension [63 1 2 1 6 26 7 245 1 37955 ]].
    OK/INFO - 1053012 - Object [25586652] is locked by user [PGC_ADMIN].
    OK/INFO - 1053012 - Object [11329970] is locked by user [PGC_ADMIN].
    OK/INFO - 1053013 - Object [25586652] unlocked by user [PGC_ADMIN].
    OK/INFO - 1053013 - Object [11329970] unlocked by user [PGC_ADMIN].
    WARNING - 1241137 - [Source] - Partition definition is not valid: [Cell count mismatch: [47895484140] area for slice [1] members per dimension [63 1 6 7 2173 2 17 1 245 ]].
    OK/INFO - 1053013 - Object [Pgc_esp] unlocked by user [PGC_ADMIN].
    OK/INFO - 1053013 - Object [Pgc_mond] unlocked by user [PGC_ADMIN].
    OK/INFO - 1051037 - Logging out user [PGC_ADMIN], active for 0 minutes.
    OK/INFO - 1241124 - Partition replaced.
    d)Rerun the Partition script again
    The same error appears.
    Tx to your help.
    Regards,
    Oliv.

  • Challenge: call local ejb from remote ejb on weblogic 9.2

    Hi ALL,
    How do I call to local ejb from remote ejb object. The jar file is deployed on weblogic server 9.2, if you want get it http://geocities.yahoo.com.br/lindembe/BEAProject.jar and the source code are http://geocities.yahoo.com.br/lindembe/BEAProject.zip. It is a sample app with two ejb that works so good on JBOSS, JOnAS, but BEA Weblogic.....
    The complete problem you watch http://forum.java.sun.com/thread.jspa?threadID=768718&messageID=4387570#4387570
    or
    http://forums.bea.com/bea/message.jspa?messageID=600043148&tstart=0

    Your code in SigemFacadeBean should just do:
    InitialContext ctx = new InitialContext();
    when you lookup the local EJB. (This will work on all app servers. There's no need to put an app-server specific intial context factory in your code.)
    Also, you can remove the jndi-name setting for the local ejb from your weblogic-ejb-jar.xml. jndi-name is only applied to remote ejbs.
    -- Rob
    WLS Blog http://dev2dev.bea.com/blog/rwoollen/

  • Access UME from Webdynpro Application

    Access UME from Webdynpro Application u2013 display the user attributes from Webdynpro iview
    How to go for this...??
    Edited by: saurav mago on Sep 1, 2008 6:45 PM

    Hello Saurav,
    Try this:
    import com.sap.security.api.IUser;
    import com.sap.security.api.IUserAccount;
    import com.sap.security.api.UMException;
    import com.sap.tc.webdynpro.services.sal.um.api.IWDClientUser;
    import com.sap.tc.webdynpro.services.sal.um.api.WDClientUser;
    import com.sap.tc.webdynpro.services.sal.um.api.WDUMException;
    try {
         IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
         IUser sapUser = wdClientUser.getSAPUser();
         if (sapUser != null) {
              java.util.Iterator parentGroups = sapUser.getParentGroups(false);
              while (parentGroups.hasNext()) {
                   String parentGroupName = (String) parentGroups.next();
                   if (parentGroupName.equals("GRUP.R3_ROLE_DS.Z:EP_XPTO123")) {
                        return true;
    catch (WDUMException e) {
         e.printStackTrace();
    OBS.: sapUser can be used to access a lot of info regarding the user.
    OBS.: you need to add a reference to "com.sap.security.api.sda", that is in the default SC SAP_JEE, if I well remember.
    Regards,
    Douglas Frankenberger

  • Error Accessing internet from the flex application.

    Hi
    I am getting the following error while runningm my flex
    application deployed on the OC4J server. The error did not come
    when I was running the application directly from the flex builder.
    However , after deploying it on the application server my
    flex application cannot access the internet and in turn
    throws this error. Does this have anything to do with the
    'crossdomain.xml' file, which most probably does not exist on my
    server. If that is the case, please can somone let me know as to
    where exactly do I put the 'crossdomain' file.
    [RPC Fault faultString="Security error accessing url"
    faultCode="Channel.Security.Error" faultDetail="Destination:
    DefaultHTTP"]
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::faultHandler()
    at mx.rpc::Responder/fault()
    at mx.rpc::AsyncRequest/fault()
    at ::DirectHTTPMessageResponder/securityErrorHandler()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()
    TIA
    ~Shishir

    This file goes in the"root of the web server". Now tis is not
    very helpful so here are some examples:
    IIS default:
    C:\Inetpub\wwwroot
    Flex 1.5 "integrated Jrun" default installation
    C:\Program Files\Macromedia\Flex\jrun4\servers\default
    Tomcat:
    C:\Program Files\Apache Software Foundation\Tomcat
    5.0\webapps
    If in doubt, put one everywhere until it works, then take
    them out until it breaks.
    Use the universal permission until you get it working:
    <allow-access-from domain="*" to-ports="*" secure="true"
    />
    Tracy

  • Issue in accessing EJB from plain java

    Hi,
    I am new to OAS. I am using OAS 10.1.2.
    I want to access EJB which runs inside OAS, through a plain java program which runs from outside the OAS environment (standalone java program).
    I am confused on what to use. RMIInitialContextFactory or ApplicationClientInitialContextFactory for the context in the java program.
    what should be the provide URL ?
    java.naming.provider.url","ormi://hostname:18140/
    is it "ormi" or something else? what is the port number should i use. there are many ports in this OAS. i see that in the console("Ports") link.
    also let me know what should i mention in the EJB xml descriptor.
    Is this lookup to be done by retrieving from jndi?
    pls help.
    Thanks,
    Sukumar
    with this confusion i developed an EJB with the following details
    ejb-jar.xml
    <ejb-ref>
         <ejb-ref-name>ejb/testDetails</ejb-ref-name>
         <ejb-ref-type>Entity</ejb-ref-type>
    <home>com.xxx.xxx.testDetailsHome</home>
    <remote>com.xxx.xxx.testDetails</remote>
         </ejb-ref>
    orion-ejb-jar.xml
    <entity-deployment name="ejb/testDetails" location="ejb/testDetails"
    Client Java program
    public class testDetailsClient
    public static void main(String [] args)
    testDetailsClient testDetailsClient = new testDetailsClient();
    try
    Context context =getInitialContext();
    testDetailsHome testDetailsHome = (testDetailsHome)PortableRemoteObject.narrow(context.lookup("java:comp/env/ejb/testDetails"), testDetailsHome.class);
    testDetails testDetails;
    catch(Throwable ex)
    ex.printStackTrace();
    private static Context getInitialContext() throws NamingException
    Hashtable env = new Hashtable();
    env.put("java.naming.factory.initial","com.evermind.server.rmi.RMIInitialContextFactory");
    //env.put("java.naming.factory.initial","com.evermind.server.ApplicationClientInitialContextFactory");
    env.put("java.naming.provider.url","ormi://host_name:18140/"); //23791 18140
    env.put(Context.SECURITY_PRINCIPAL, "ias_admin");
    env.put(Context.SECURITY_CREDENTIALS, "abc123");
    InitialContext context = new InitialContext(env);
    return context;
    if i execute this, it says
    javax.naming.NameNotFoundException: java:comp/env/ejb/testDetails not found
    18140 is Application Server Control RMI port.
    if i run the same code with ApplicationClientInitialContextFactory, it throws exception saying
    java.lang.InstantiationException: No location specified and no suitable instance of the type 'com.testdetails.testDetails' found for the ejb-ref ejb/testDetails
         at com.evermind.server.administration.ApplicationResourceFinder.getEJBHome(ApplicationResourceFinder.java:268)
         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:324)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    javax.naming.NamingException: Error reading application-client descriptor: No location specified and no suitable instance of the type 'com.testdetails.testDetails' found for the ejb-ref ejb/testDetails
         at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(ApplicationClientInitialContextFactory.java:161)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
         at javax.naming.InitialContext.init(InitialContext.java:219)
         at javax.naming.InitialContext.<init>(InitialContext.java:195)
         at com.testdetails.testDetailsClient.getInitialContext(testDetailsClient.java:89)
         at com.testdetails.testDetailsClient.main(testDetailsClient.java:20)
    pls help

    Hi,
    you do not have to package your EJB and PAR together! You can deploy them separately and then reference the J2EE Application from your PAR or vice versa to access it.
    For instance you can access the EJB from your PAR as described here:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/9ddf20bb211d72e10000000a1553f6/frameset.htm
    Or you can access a Portal application from J2EE like described here:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/9ddd0cbb211d72e10000000a1553f6/frameset.htm
    Even if you package your PAR in to the same EAR with your EJB they will result in two different containers on the J2EE Engine and you will have to reference them as described in the link above to access the functionality of one component from the other.
    Best regards,
    Stefan Brauneis

  • Accessing EJBs from a servlet

    Hi everyone,
    I deployed my EJB component in an Oracle 8.1.7 database and I try to access it from a servlet.
    If I run my servlet from JDeveloper 3.2 (Web-to-Go), it all works fine. If I run my servlet from JRun 3.01 or from Tomcat 3.2.1, I get the following exception:
    javax.naming.NoInitialContextException: Need to specify class name in environmen
    t or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at javax.naming.NamingException.<init>(NamingException.java:104)
    at javax.naming.NoInitialContextException.<init>(NoInitialContextException.java:58)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:649)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:279)
    at javax.naming.InitialContext.lookup(InitialContext.java:349)
    at com.cognicase.framework.base.U0003.AbstractORB.getBean(AbstractORB.java:285)
    at com.cognicase.framework.base.U0003.AbstractORB.getBean(Compiled Code)
    at com.cognicase.demo.U2007BL.U2007WP_Users.lookupBean(U2007WP_Users.java:60)
    at com.cognicase.framework.is.U0103.AbstractBeanWrapper.beforeBeanCall(AbstractBeanWrapper.java:121)
    at com.cognicase.demo.U2007BL.U2007WP_Users.valideUser(U2007WP_Users.java:77)
    at com.cognicase.demo.U2000WB.U2000MW_WorkSpace.CallEjb(Compiled Code)
    at com.cognicase.demo.U2000WB.U2000MW_WorkSpace.doValidateLogin(Compiled Code)
    at com.cognicase.demo.U2000WB.U2000MW_WorkSpace.processService(U2000MW_WorkSpace.java:98)
    at Demo_0100_01.service(Demo_0100_01.java:128)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
    at org.apache.tomcat.core.Handler.service(Compiled Code)
    at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
    at org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
    at org.apache.tomcat.core.ContextManager.service(Compiled Code)
    at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Compiled Code)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
    at java.lang.Thread.run(Compiled Code)
    If I add my servlet classes, aurora_client.jar, mts.jar, vbjapp.jar and vbjorb.jar files to the CLASSPATH, it works fine.
    The behavior is the same in JRun and Tomcat.
    I don't like this solution since I have to make the CLASSPATH point to my application classes at the web server level instead of at the application context level.
    Has anyone been able to solve this problem?
    Thanks for your help.
    null

    Yes, I did. Actually, if I run my servlet in JDeveloper (Web-to-Go), it all works fine. I also extracted the code that calls the EJB from the servlet and I tested it in a small Java application, and it also works fine.
    Things stop to work when I deploy my servlet in JRun or in Tomcat.
    It appears that my code is correct, but the environment I try to run it is not, and I can't figure out what's wrong.
    Can anyone help me?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Sandeep Desai ([email protected]):
    Have you provided the environmental settings in the servlet.
    It should be :
    import oracle.aurora.jndi.sess_iiop.ServiceCtx;
    env.put(Context.URL_PKG_PREFIXES, "oracle.aurora.jndi");
    env.put(Context.SECURITY_PRINCIPAL, username);
    env.put(Context.SECURITY_CREDENTIALS, password);
    env.put(Context.SECURITY_AUTHENTICATION, ServiceCtx.NON_SSL_LOGIN);
    InitialContext ctx = new InitialContext(env);
    Object obj = ctx.lookup("test/EJBHome");
    HomeObject home = PortableRemoteObject.narrow(
    obj,"HomeObject.class");
    RemoteObject remote = home.create();
    This should make it work!!
    <HR></BLOCKQUOTE>
    null

  • Error using EJB from webapp.

    Hi
    Im trying to move a j2ee application from BEA to SunOne A 7.0.
    Im getting an error when using/creating a EJB.
    But i can use any method on another EJB. I havent set any authority rules at all and the xml file looks the same for both EJBs.
    This application works fine on the BEA container.
    The error is:
    javax.ejb.EJBException: nested exception is: javax.ejb.EJBException: nested exception is: javax.ejb.CreateException: Could not create stateless EJB: java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
    javax.ejb.EJBException: nested exception is: javax.ejb.CreateException: Could not create stateless EJB: java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
    javax.ejb.CreateException: Could not create stateless EJB: java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
    at com.sun.ejb.containers.StatelessSessionContainer.createStatelessEJB(StatelessSessionContainer.java:528)
    at com.sun.ejb.containers.StatelessSessionContainer.access$000(StatelessSessionContainer.java:68)
    at com.sun.ejb.containers.StatelessSessionContainer$SessionContextFactory.create(StatelessSessionContainer.java:734)
    at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(NonBlockingPool.java:176)
    at com.sun.ejb.containers.StatelessSessionContainer.getContext(StatelessSessionContainer.java:457)
    at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:452)
    at se.ltjkpg.itc.intra.ejb.session.db.DBinterfaceBean_EJBObjectImpl.select(DBinterfaceBean_EJBObjectImpl.java:108)
    at se.ltjkpg.itc.intra.ejb.session.db._DBinterfaceBean_EJBObjectImpl_Tie._invoke(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:569)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:211)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:113)
    at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:275)
    at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:83)
    at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(ServicableWrapper.java:25)
    at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(FastThreadPool.java:283)
    at java.lang.Thread.run(Thread.java:536)
    javax.ejb.EJBException: nested exception is: javax.ejb.CreateException: Could not create stateless EJB: java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
    at com.sun.ejb.containers.StatelessSessionContainer$SessionContextFactory.create(StatelessSessionContainer.java:736)
    at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(NonBlockingPool.java:176)
    at com.sun.ejb.containers.StatelessSessionContainer.getContext(StatelessSessionContainer.java:457)
    at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:452)
    at se.ltjkpg.itc.intra.ejb.session.db.DBinterfaceBean_EJBObjectImpl.select(DBinterfaceBean_EJBObjectImpl.java:108)
    at se.ltjkpg.itc.intra.ejb.session.db._DBinterfaceBean_EJBObjectImpl_Tie._invoke(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:569)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:211)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:113)
    at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:275)
    at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:83)
    at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(ServicableWrapper.java:25)
    at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(FastThreadPool.java:283)
    at java.lang.Thread.run(Thread.java:536)
    javax.ejb.EJBException: nested exception is: javax.ejb.EJBException: nested exception is: javax.ejb.CreateException: Could not create stateless EJB: java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
    at com.sun.ejb.containers.StatelessSessionContainer.getContext(StatelessSessionContainer.java:461)
    at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:452)
    at se.ltjkpg.itc.intra.ejb.session.db.DBinterfaceBean_EJBObjectImpl.select(DBinterfaceBea

    Grant the property permission in config/server.policy file of your app server instance
    for eg:
    grant {
    permission java.util.PropertyPermission "os.version", "read";
    HTH
    Satish

  • Accessing EJBs from a Web project

    Hi,
    I am getting the error: "com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at java:comp, the whole lookup name is java:comp/env/ejb/UserInfoServer." when I try to access the session bean from my web project.  I have followed the instructions explicitly in http://help.sap.com/saphelp_nw04s/helpdata/en/55/29ed5eff965448941c0b42f01b9804/frameset.htm and also tried every other combination I can think of for configuring the references in both the EJB project & the web project (both in the same ear).  I do have a jndi name in the visual administrator for localebjs/sap.com/myEar/UserInfoServer.  Does anyone have any ideas?
    Thanks & merry Christmas/Happy New year to all the SDN folks!

    I've managed to get around the problem for the time being by using "/localejbs/provider/application/beanName" - bypassing (I think) the whole JNDI issue -  this is OK for now, but it's obviously not a long term fix. 
    Previously, I had used the default & so did not enter anything in the ejb-j2ee-engine.xml, and so my ejb's showed up nicely in the Visual Administrator JNDI Registry under the localejbs tab as you would expect. The problem appears to be in the Web project - The key is that the error is "Path to object not found" rather than "Name not found".  It seems to me that it knows what it is looking for & that it is valid, but doesn't know how to get there! Note that the EJB project is in the same EAR. The only reference to "Path" that I can find is in the help doc above where it says "If the name of the target enterprise bean is not unique in the enterprise application scope, you can enter the path to the JAR file that contains the bean...".  I've gone through the Car Rental Application pdf (I can't find the download that contains the entire application) & followed the instructions there explicitly for referencing ejbs from the web..

  • In a single program how to lookup different EJB from different application

    Hi,
    I have deployed two applications app1 and app2 on oc4j.
    There is a stateless session bean in a1 called ejb1.
    And there is also a stateless session bean ejb2 in app2.
    I write a test jsp in app1 to lookup ejb1 and ejb2 as an application client. So I need to create an application-client.xml for it.
    <?xml version="1.0"?>
    <!DOCTYPE application-client PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.2//EN" "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd">
    <application-client>
    <display-name>ejbs</display-name>
    <ejb-ref>
    <ejb-ref-name>ejb1</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>class_of_ejb1Home</home>
    <remote>class_of_ejb1</remote>
    </ejb-ref>
    <ejb-ref>
    <ejb-ref-name>ejb2</ejb-ref-name>
    <ejb-ref-type>ejb2</ejb-ref-type>
    <home>class_of_ejb2Home</home>
    <remote>class_of_ejb2</remote>
    </ejb-ref>
    </application-client>
    However, When I run the test.jsp, It will report following error:
    javax.naming.NamingException: Error reading application-client descriptor: No location specified and no suitable instance of the type 'class_of_ejb2' found for the ejb-ref ejb2
    In fact, if I only lookup any of the ejb and the application-client.xml just specify only the according ejb-ref, everything is alright.
    But how to construct the application-client.xml so that it can suitable for 2 different ejb in different application? Do I miss something in doing it?
    Kindly advice!
    Queeny Tang

    Hi Debabrata Panda,
    I did add parent in web.xml, but it still encounter
    "Error reading application-client descriptor: No location specified and no suitable instance of the type 'class_of_ejb2' found for the ejb-ref ejb2"
    In my program, a jsp in app2 will lookup ejb1 of app1. In the same way, a jsp in app1 will lookup ejb2 of app2.
    if I declare in server.xml
    <application name="app2" path="../applications/app2.ear" parent="app1" auto-start="true" />
    <application name="app1" path="../applications/app1.ear" parent="app2" auto-start="true" />
    That will cause error reading application-client.xml for all
    ejbs.
    How to solve this.
    Thanks in advance!
    Yours Queeny

  • Help me which JNDIFactory to use to access EJB from a java class of JAR

    I am confused in understanding the different JNDI factories
    RMIInitialContextFactory, ApplicationInitialContextFactory and ApplicationClientInitialContextFactory
    And the different namespaces like global, container local and component local.
    Especially is there any relationship between the JNDI factories and the namespaces?
    Or are they related to the deployment descriptors.
    Because in application specific deployment descriptors (orion-ejb-jar.xml), we just map the JNDI location with the object (or its reference from ejb-jar.xml). We dont specify it can be accessed from this factory or that.
    Shall we access an EJB from using any JNDI factory?
    Specifically, I am stuck with what Factory to use to access an EJB from a Java class in a library (jar). The JAR is packaged with the EAR which contains the EJB Jar that I am trying to access.
    THANK YOU

    Ed,
    As Robin said, I think you need code similar to this:
    Context c = new InitialContext();
    Object o = c.lookup("java:comp/env/Name");where Name is the name of your EJB as it appears in the "ejb-jar.xml"
    deployment descriptor XML file.
    Good Luck,
    Avi.

  • Unable to access EJB from servlet

    Hi,
    I have in service method my servlet code.
    Hashtable env = new Hashtable();
                        env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.ApplicationInitialContextFactory");
                        env.put(Context.PROVIDER_URL, "ormi://localhost/hello");
                        env.put(Context.SECURITY_PRINCIPAL, "admin");
                        env.put(Context.SECURITY_CREDENTIALS, "mypwd");
                        Context ctx = new InitialContext(env);
              Object obj = ctx.lookup("HelloName");
                        HelloHome home = (HelloHome) javax.rmi.PortableRemoteObject.narrow(obj, HelloHome.class);
                        Hello hello = home.create();
    this is how i have orion-ejb-jar.xml
         <enterprise-beans>
              <session-deployment name="Hello" location="HelloName" >
              </session-deployment>
         </enterprise-beans>
         ejb-jar.xml
              <session>
                   <ejb-name>Hello</ejb-name>
                   <home>examples.HelloHome</home>
                   <remote>examples.Hello</remote>
                   <local-home>examples.HelloLocalHome</local-home>
                   <local>examples.HelloLocal</local>
                   <ejb-class>examples.HelloBean</ejb-class>
                   <session-type>Stateless</session-type>
                   <transaction-type>Container</transaction-type>
              </session>
    When i access the servlet i get this error.
    javax.naming.NameNotFoundException: HelloName not found
         at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:149)
         at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:217)
         at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:88)
         at javax.naming.InitialContext.lookup(InitialContext.java:345)
         at examples.HelloServlet.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:772)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:782)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:479)
    Is location attribute in orion-ejb-jar.xml used to specify JNDI name? Can i get the JNDI tree showing the name mappings in oc4j? How do i correct this error?
    Ravi

    Ravi --
    The most portable and standards oriented solution is to define an ejb-ref in the web.xml for the servlet, and then look up the name using the formal EJB UNC model.
    web.xml:
    <ejb-ref>
    <ejb-ref-name>ejb/AppSessionFacadeHome</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>faqapp.ejb.AppSessionFacadeHome</home>
    <remote>faqapp.ejb.AppSessionFacade</remote>
    </ejb-ref>
    servlet lookup
    InitialContext ctx = new InitialContext();
    Object homeObject = ctx.lookup("java:comp/env/ejb/AppSessionFacadeHome");
    EJBHome ejbHome = (EJBHome)
    portableRemoteObject.narrow (homeObject, AppSessionFacadeHome.class);
    cheers
    -steve-

  • Security exception while trying to access EJB from stand alone client

    Hi!, I am trying a sample EJB application to R&D some security related issues. I want to access EJB through a web application as well as a stand-alone client. I have set approriate <method-permission> in EJB deployment descriptor. I am using users.properties/roles.properties file for authentication mechanism. I am using JBoss 3.2.
    - On the web application side I am using BASIC authentication and the servlet is able to access the EJB OK, as long as I am using a login/password that has access to the EJB.
    - Now I am trying to access the EJB using a stand alone Java class. These are the things I have tried till now:
    =>Created a InitialContext with appropriate principal, credentials and tried getting a reference to EJB home interface. That resulted in security exception.
    =>Logged into a LoginContext by using appropriate JBossSX classes and then tried getting a EJB home interface. Again security exception.
    Now I am not sure what to do. I read at some places about client side container but not sure what that is. Does anyone has any ideas to try? Is there any other way I can make a swing application and a web application authenticate to EJB container?
    Also can anyone point me to any documentation that gives some idea about how the security credentials gets propagated from web application/standalone client to EJB container?

    It would be better if you can post your code...and DD that way we can help you better

Maybe you are looking for