AccessControl Exception when invoking remote ejb from portlet class
Hi,
From Portlet class, I am invoking Remote EJB which is deployed in weblogic application server.
After EJB call it not requst Dispathcer not allowed to include the request ..
Exception as follows ..
java.security.AccessControlException: access denied (java.security.SecurityPermission getHttpRequestBase)
X at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
X at java.security.AccessController.checkPermission(AccessController.java:427)
X at org.apache.catalina.connector.HttpRequestFacade.getHttpRequestBase(HttpRequestFacade.java:257)
X at org.apache.catalina.core.ApplicationDispatcher.getRequestBase(ApplicationDispatcher.java:1115)
X at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:759)
X at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:628)
X at org.apache.catalina.core.ApplicationDispatcher.access$100(ApplicationDispatcher.java:123)
X at org.apache.catalina.core.ApplicationDispatcher$PrivilegedInclude.run(ApplicationDispatcher.java:154)
X at java.security.AccessController.doPrivileged(Native Method)
X at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:528)
X at com.sun.portal.portlet.impl.RequestDispatcherImpl.include(RequestDispatcherImpl.java:95)
X at com.gm.gc.sample.SamplePortlet.doView(Unknown Source)
X at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:235)
X at javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
X at com.sun.portal.portletappengine.PortletAppEngineServlet.service(PortletAppEngineServlet.java:271)
X at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
X at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:772)
X at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:628)
X at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:539)
X at com.sun.portal.container.portlet.impl.PortletContainer.invokePAE(PortletContainer.java:409)
X at com.sun.portal.container.portlet.impl.PortletContainer.getMarkup(PortletContainer.java:180)
X at com.sun.portal.providers.window.WindowProvider.getPortletContent(WindowProvider.java:386)
X at com.sun.portal.providers.window.WindowProvider.getContentInternal(WindowProvider.java:239)
X at com.sun.portal.providers.window.WindowProvider.getContent(WindowProvider.java:204)
X at com.sun.portal.desktop.context.ReusableProviderCaller.run(ReusableProviderCaller.java:160)
Source Code
===========
SamplePortlet Class
protected void doView(RenderRequest request, RenderResponse response)
throws PortletException, IOException {
PortletRequestDispatcher prDispatcher = null;
String helloString=null;
SamplePortletHandler spHandler=null;
response.setContentType(request.getResponseContentType());
try {
spHandler=new SamplePortletHandler();
prDispatcher = pContext.getRequestDispatcher("/jsp/SampleView.jsp");
helloString=spHandler.getHelloString();
prDispatcher.include(request, response);
} catch (Exception e) {
e.printStackTrace();
request.setAttribute("ERROR_MSG", e.getMessage());
prDispatcher = pContext.getRequestDispatcher("/jsp/Error.jsp");
prDispatcher.include(request, response);
Handler Class
is there any solution?
Thanks in Advance ...
Hi,
I didn't configure the JNDI stuff in WLS per se. I created a simple session bean and the meta data in the jar of this determined the JNDI setup.
Once this is deployed on either WLS it can then be seen in Weblogic Console by clicking on View JNDI Tree. The full JNDI name is present and correct on both WLS to which it is deployed.
Does that answer your questions or are you asking how I configured the SOA Suite composite? In which case I selected the EJB in the Partner Link swimlane. Viewed the properties and added
java.naming.provider.url
t3://myremotehost:7001
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.ThThe 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; -
'Class Cast Exception' while invoking a EJB from a Servlet
Hi,
I am working on J2EE applications.I am using Webgain studio and weblogic server.I
got a problem while invoking EJB from the servlet.
While calling an EJB from the servlet, it is giving that "Class Cast Exception".This
is because, the remote home reference is not able to type casted to the"Home Interface"
of the EJB, even if I type casted explicitly. It is creating the context and able
to identify the EJB with the JNDI name.
Could please help me in solving this problem.I am pasting the code here.
Thanks in advance,
Dharma
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException
resp.setContentType("text/html");
PrintWriter out = new PrintWriter(resp.getOutputStream());
try
Context context=getInitialContext();
Object reference=context.lookup("ArlProjContractorAppletSession");
ArlProjContractorAppletSessionHome home=(ArlProjContractorAppletSessionHome)PortableRemoteObject.narrow(reference,ArlProjContractorAppletSessionHome.class);
//Exception is occuring in the above statement. It is unable
//to cast to the home interface
ArlProjContractorAppletSession the_ejb=null;
try
the_ejb=home.create();
System.out.println("the_ejb = " + the_ejb.toString());
catch(Exception e)
e.printStackTrace();
catch(Exception e)
e.printStackTrace();
// to do: code goes here.
out.println("<HTML>");
out.println("<HEAD><TITLE>Contractor TimeTracker</TITLE></HEAD>");
out.println("<BODY>");
// to do: your HTML goes here.
out.println("</BODY>");
out.println("</HTML>");
out.close();
I came across this kind of problem once. My problem went away after I upgraded
from 5.1 SP6 to 5.1 SP8.
"Dharma" <[email protected]> wrote:
>
>Hi,
>
>I am working on J2EE applications.I am using Webgain studio and weblogic
>server.I
>got a problem while invoking EJB from the servlet.
>
>While calling an EJB from the servlet, it is giving that "Class Cast
>Exception".This
>is because, the remote home reference is not able to type casted to the"Home
>Interface"
>of the EJB, even if I type casted explicitly. It is creating the context
>and able
>to identify the EJB with the JNDI name.
>
>Could please help me in solving this problem.I am pasting the code here.
>
>Thanks in advance,
>Dharma
>
>
>public void doGet(HttpServletRequest req, HttpServletResponse resp)
> throws ServletException, IOException
> {
> resp.setContentType("text/html");
> PrintWriter out = new PrintWriter(resp.getOutputStream());
>
> try
> {
>
> Context context=getInitialContext();
>
> Object reference=context.lookup("ArlProjContractorAppletSession");
>
> ArlProjContractorAppletSessionHome home=(ArlProjContractorAppletSessionHome)PortableRemoteObject.narrow(reference,ArlProjContractorAppletSessionHome.class);
>
>//Exception is occuring in the above statement. It is unable
>//to cast to the home interface
>
> ArlProjContractorAppletSession the_ejb=null;
>
> try
> {
> the_ejb=home.create();
>
> System.out.println("the_ejb = " + the_ejb.toString());
>
> }
> catch(Exception e)
> {
> e.printStackTrace();
> }
> }
> catch(Exception e)
> {
> e.printStackTrace();
> }
> // to do: code goes here.
>
> out.println("<HTML>");
> out.println("<HEAD><TITLE>Contractor TimeTracker</TITLE></HEAD>");
> out.println("<BODY>");
>
> // to do: your HTML goes here.
>
> out.println("</BODY>");
> out.println("</HTML>");
> out.close();
> }
>
>
>
>
>
-
Getting a security exception when invoking EJB from a webservice
Hi,
I am getting the following exception when Invoke an EJB from a web service.
The EJB fails when it tries to access a remote object(RMI).
When I invoke the EJB directly I dont get this exception.
Both the EJB and the WS are deployed as part of the same application on weblogic 9.2 .
the WS was created by jwsc ant task.
This is the exception:
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
tion is:
java.lang.ClassNotFoundException: com.bea.xml.XmlCalendar (no security m
anager: RMI class loader disabled)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
60)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:701)
at java.lang.Thread.run(Thread.java:534)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
RemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
at com.netcom.server.rmi.RequestHandlerImpl_
Stub.copy(Unknown Source)
Message was edited by:
guyhHi Jitu,
I changed the wsdl. And so I don�t get the warning anymore. My Webservice also runs well, now. Thanks anyway for the reply.
There is a nice tech article on the sun network, which solved my problem. The basic idea is to split the wsdl into 2 wsdl documents. one containing all the porttypes messages and so on. And the other wsdl contains the binding and service elements.
If you are interested check out this link:
http://java.sun.com/developer/technicalArticles/xml/jaxrpcpatterns/index2.html
thanks,
footman -
Unable to invoke a EJB from a BPEL process
I am unable to invoke a EJB from a BPEL process. Whenever I try to test it from the oracle EM, I get the below exception. I am using WebLogic 10.3.3, SOA suite 11.1.1.3 and JDev 11.1.1.3 .
This is what I see from the EM....
Non Recoverable System Fault :
javaInterface attribute for the binding is missing or the inteface class is not available.
Below is a part of the stack trace from the soa server log…
Caused By: oracle.classloader.util.AnnotatedClassNotFoundException:
Missing class: com.abc.GreetingEJBBean
Dependent class: oracle.integration.platform.blocks.ejb.SDOEjbReferenceD
elegateImpl
Loader: sun.misc.Launcher$AppClassLoader@20929799
Code-Source: /C:/Oracle_latest/Middleware/home_11gR1/Oracle_SOA1/soa
/modules/oracle.soa.fabric_11.1.1/fabric-runtime.jar
Configuration: /C:/Oracle_latest/Middleware/home_11gR1/Oracle_SOA1/soa
/modules/oracle.soa.fabric_11.1.1/fabric-runtime.jar
Piece of xml from the composite.xml
<reference name="GreetingService"
ui:wsdlLocation="http://123.45.218.140:7001/GreetingEJBBean/GreetingEJBBeanService?wsdl">
<interface.wsdl interface="http://abc.com/#wsdl.interface(GreetingEJBBean)" />
<binding.ejb uri="GreetingEJB-GreetingEJB-GreetingEJB"
javaInterface="com.abc.GreetingEJB"/>
</reference>
Looks like its not able to find the javaInterface mentioned above.
I have a simple EJB with one business method and a very simple BPEL process.
@Stateless(name = "GreetingEJB", mappedName = "GreetingEJB-GreetingEJB-GreetingEJB")
@WebService
public class GreetingEJBBean implements GreetingEJB {
public GreetingEJBBean() {
public String greetUser(String name){
return ("Hello " + name);
Any help would be greatly appreciated.I haven't tried from a BPEL process, but I have had success (as in Lucas's blogs) of using services and references as EJB Java Interface. This is with EJB java interfaces solely of base types (i.e. String foo(String s)).
At high level here's what I have noted so far:
1. Per Lucas's blog, @javaInterface is not being added to the ejb.binding automatically but it's not clear to me when this is and is not required given that interface.java is specified for the reference or service. Would interface.java and @javaInterface ever be different? I've been adding @javaInterface manually anyways since Lucas is a smart guy and I'd rather avoid errors. :-)
2. Dropping an EJB interface jar in SCA-INF/lib works, but I've had the problem that the JDeveloper SOA Plugin doesn't see those classes until I stop and restart JDeveloper. Until then, I'm confronted with the java->wsdl mapping error. I was sort of primed to figure this one out since I ran into similar issues with SOA SpringBean components.
3. Dropping EJB interface source in SCA-INF/src is more reliable, because then I can build the project (i.e. create SCA-INF/classes) and the JDeveloper SOA Plugin seems to resolve these brand new classes immediately.
4. I've tried to invoke an EJB java-interface reference with a slightly complicated java interface (a class parameter with some fields, one of which is an array of another class). The auto-generated WSDL doesn't look exactly right to me (but I'm new to JAXB). Mediator maps to it just fine and the project compiles and deploys normally but fails at runtime. I have not researched in depth. It's not clear to me from the documentation and release notes whether I should expect for it to work, or whether I should expect to have to create my own JAXB mapping. If the latter, I really need a good example! -
Loading remote EJB from servlet using jakarta and openejb
I am trying to create an environment where I use
openejb as my EJB container, and JAKARTA Tomcat
as my
Servlet/JSP container. However,
i'm having a problem in lookingup my remote EJB from my
jakarta application.
That exact code works perfectly if I run it standalone. I
am using the same JRE. Jakarta has also loaded the
openejb-0.8.3.jar and openejb_client-0.8.3.jar
What I dont understand is why jakarta
would behave differently than command-line java when I
am
running in the same JRE on a single machine.
Any help would be much appreciated.Several fairly major improvements have been maid in OpenEJB specifically for the Tomcat people. For one, the whole way you integrate them has completely been rewritten. Now all you have to do is copy a openejb_loader-0.9.1.war into the Tomcat webapps directory and change an init-param in it. Pretty straight forward. OpenEJB 0.8.3 won't work with Tomcat in the same VM, however OpenEJB 0.9.0 and up have been totally revamped in all things related to classloading so that it can co-exist with Tomcats unique classloading architecture.
O'Reilly just published an article detailing the ins and outs of the integration, it's a pretty good read:
http://www.onjava.com/pub/a/onjava/2003/02/12/ejb_tomcat.html -
Exception when deploying a JSR 286 portlet into WebLogic+WebCenter
I get the following exception when deploying a JSR 286 portlet into WebLogic:
"<19-ene-2010 13H32' CET> <Error> <oracle.portlet.server.containerimpl.PortletApplicationImpl> <BEA-000000> <Error al procesar el archivo "/WEB-INF/portlet.xml" en la lÝnea 6 columna 68.
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'portlet-app'"
The error message is in spanish. It means:
"Error processing the file "/WEB-INF/portlet.xml at line 6 column 68"
The portlet.xml of my portlet seems to be correct and I've deployed it in other portal servers. So I don't understand the error message.
This is the portlet.xml of my portlet (eclipse XML validator said it was a valid XML)
{code}
<?xml version="1.0" encoding="UTF-8"?>
<portlet-app version="2.0"
xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd
http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
xmlns:dnd="http://www.denodo.com/widget/portlet/portletjsr286">
<portlet>
<description>Test Inter Portlet Communication (JSR286)</description>
<portlet-name>Test IPC</portlet-name>
<display-name>Test IPC</display-name>
<portlet-class>com.denodo.ipc.TestIPCPortlet</portlet-class>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
</supports>
<supported-locale>en</supported-locale>
<resource-bundle>PortletMessages</resource-bundle>
<portlet-info>
<title>Test IPC</title>
<short-title>Test IPC</short-title>
<keywords>Test IPC,Denodo</keywords>
</portlet-info>
</portlet>
</portlet-app>
{code}
*How do I deploy my portlet*
<li> I convert my portlet into to a WSRP portlet by executing
+java -jar wsrp-predeploy.jar source EAR target EAR+
as explained in http://download.oracle.com/docs/cd/E12839_01/webcenter.1111/e12405/wcadm_portlet_prod.htm#CHDECJHI)
</li>
<li>I try to deploy it into WebLogic with the WebLogic Console and I get this exception.
</li>
*My Environment*
WebCenter Suite (11.1.1.2.0) + WebLogic Server (10.3.2) downloaded from the oracle.com. Default configuration
S.O: Windows XP SP3
*Thanks in advance for your time.*Hi,
Are you including the Toplink jars in your EAR?
-Patrick -
ClassCastException when invoking remote portlets
Hi.. I have a 10.3 producer and 8.1 consumer. I get ClassCastException on the JSP when clicked on the RemotePortlet
I registered the WSDL and the remote portlets successfully in the portal admin console of consumer. But for some reason i get the following log on the remote portlet when invoked:
Error invoking portlet "Custcorp Rule"
The source of this error is:
java.lang.ClassCastException
at com.bea.wsrp.transport.soap.Message.readResponse(Message.java:207)
at com.bea.wsrp.proxy.RemoteProxy.sendMessage(RemoteProxy.java:274)
at com.bea.wsrp.proxy.RemoteProxy.sendData(RemoteProxy.java:146)
at com.bea.wsrp.proxy.RemoteProxy.dispatch(RemoteProxy.java:84)
at com.bea.wsrp.proxy.ProxyBase.invoke(ProxyBase.java:432)
at $Proxy81.getMarkup(Unknown Source)
at com.bea.wsrp.consumer.controls.ProxyPortletContent.invokeGetMarkup(ProxyPortletContent.java:557)
at com.bea.wsrp.consumer.controls.ProxyPortletContent.beginRender(ProxyPortletContent.java:194)
at com.bea.netuix.nf.ControlLifecycle$1.visit(ControlLifecycle.java:495)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:542)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:553)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:553)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:553)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:553)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:247)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:105)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:356)
at com.bea.netuix.nf.UIControl.render(UIControl.java:536)
at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:405)
at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:123)
at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(RenderChild.java:58)
at jsp_servlet._framework._skeletons._rms12.__gridlayout._jspService(gridlayout.jsp:33)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1072)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:638)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:423)
at com.bea.netuix.servlets.controls.JspRenderer.renderAlt(JspRenderer.java:194)
at com.bea.netuix.servlets.controls.JspRenderer.beginRender(JspRenderer.java:96)
at com.bea.netuix.nf.ControlLifecycle$1.visit(ControlLifecycle.java:491)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:542)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:553)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:553)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:553)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:553)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:553)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:553)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:553)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:553)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:553)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:553)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:247)
at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:204)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:146)
at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:333)
at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:196)
at com.bea.netuix.servlets.manager.PortalServlet.doPost(PortalServlet.java:772)
at com.bea.netuix.servlets.manager.PortalServlet.doGet(PortalServlet.java:671)
at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:147)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1072)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6987)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
The standalone producer app just works fine and can navigate thru screens properly.
Pls helpWe got the issue resolved. In wsrp-producer-config.xml the <markup> tag has transport="attachment" accepts-mime="true".
We changed it to default values like: transport="string" accepts-mime="false" . -
Problem if trying to invoke a EJB from outside the .ear in which its deploy
Hi,
I have deployed an ear containing an EJB and a sample JSP to invoke it. Its working fine.
But when i m trying to invoke this same EJB from a standalone java program it is able to identify home and remote interface but its not entering into the bean class.
Hashtable myEnv = new Hashtable();
myEnv.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
myEnv.put(Context.PROVIDER_URL,"t3://localhost:7001");
try{
Context ctx = new InitialContext(myEnv);
SampleHome home = (SampleHome)ctx.lookup("com.beanfolder.SampleHome");
System.out.println("Home: " + home.getClass().getName());
Sample sample = home.create();
System.out.println("Remote: "+sample.getClass().getName());
sampleResponse = sample.getMessage(sampleRequest);
String result = sampleResponse.getAirportName().toString();
}catch(Exception ex){
where sampleRequest and SampleResponse are the jaxb interfaces of this EJB.
Its successfully printing the SOPs ie home and the remote class but not entering in the bean.
Any clues???Hi,
I wud suggest you to make a jar of ur java class and include it in the project libraries of BPEL and make use of java embedded activity this way it works.
have a luk at below link:
http://niallcblogs.blogspot.com/search/label/embedded%20Java -
RMI: connection refused error while invoking remote method from client mac.
Hi All,
when i run client program, which is calling remote object from other system, it shows the below error.
please help me solving this issue, i also have policy file and installed security manager.
Exception in Cliendjava.rmi.ConnectException: Connection refused to host: 10.66.
112.137; nested exception is:
java.net.ConnectException: Connection refused: connect
thanks in advance.
Regards,
Anand.See item A.1 of the [RMI FAQ|http://java.sun.com/j2se/1.5.0/docs/guide/rmi/faq.html].
-
Connecting to Remote EJB from Servlet in same application
Please help!
I was able to connect to SessionBeans and EJB from my sample java client in OCJ4 but when I try to do same thing from my web application using servlets, I get the below NullPointerException error.
The JNDI lookup works fine using java client but difficult from a servlet.
I am sure there is something I am missing.
Thanks
This is what I do in the servlet:
public void init() throws ServletException, NamingException, CreateException, RemoteException
Context jndiContext = getInitialContext();
SessionCartEJBHome home = (SessionCartEJBHome)jndiContext.lookup("SessionCartEJBBean");
sessionEJB = null;
try{
sessionEJB = (SessionCartEJB) home.create();
}catch (Exception e)
e.printStackTrace();
private static Context getInitialContext() throws NamingException
Hashtable env = new Hashtable();
// Standalone OC4J connection details
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
env.put(Context.SECURITY_PRINCIPAL, "admin");
env.put(Context.SECURITY_CREDENTIALS, "admin");
env.put(Context.PROVIDER_URL, "ormi://Princeton/ejb1");
return new InitialContext(env);
And when I call the following procedure, it blow up at the line sessionEJB.getLineItem(new Long(1304));
sessionEJB is a class variable.
void processCatalogPage(HttpServletRequest request,
HttpServletResponse response,
ActionMapping mapping,
HttpSession session
throws ServletException, IOException , Exception, FinderException{
try {
ActionForward actFor = null;
String itemId = request.getParameter("id");
if ( itemId != null ) {
String[] itemIds = new String[1];
itemIds[0] = itemId;
sessionEJB.getLineItem(new Long(1304));
actFor = mapping.findForward("catalog");
return (mapping.findForward("success"));
} catch (Exception ex)
ex.printStackTrace();
System.err.println(ex.toString());
throw new EJBException(ex.toString());
04/12/11 23:45:24 java.lang.NullPointerException
04/12/11 23:45:24 at com.alashoofi.Cart.processCatalogPage(Cart.java:187)
04/12/11 23:45:24 at com.alashoofi.Cart.execute(Cart.java:86)
04/12/11 23:45:24 at org.apache.struts.action.RequestProcessor.processActi
onPerform(RequestProcessor.java:484)
04/12/11 23:45:24 at org.apache.struts.action.RequestProcessor.process(Req
uestProcessor.java:274)
04/12/11 23:45:24 at org.apache.struts.action.ActionServlet.process(Action
Servlet.java:1482)
04/12/11 23:45:24 at org.apache.struts.action.ActionServlet.doGet(ActionSe
rvlet.java:507)
04/12/11 23:45:24 at javax.servlet.http.HttpServlet.service(HttpServlet.ja
va:740)
04/12/11 23:45:24 at javax.servlet.http.HttpServlet.service(HttpServlet.ja
va:853)
04/12/11 23:45:24 at com.evermind.server.http.ServletRequestDispatcher.inv
oke(ServletRequestDispatcher.java:765)
04/12/11 23:45:24 at com.evermind.server.http.ServletRequestDispatcher.for
wardInternal(ServletRequestDispatcher.java:317)
04/12/11 23:45:24 at com.evermind.server.http.HttpRequestHandler.processRe
quest(HttpRequestHandler.java:790)
04/12/11 23:45:24 at com.evermind.server.http.HttpRequestHandler.run(HttpR
equestHandler.java:270)
04/12/11 23:45:24 at com.evermind.server.http.HttpRequestHandler.run(HttpR
equestHandler.java:112)
04/12/11 23:45:24 at com.evermind.util.ReleasableResourcePooledExecutor$My
Worker.run(ReleasableResourcePooledExecutor.java:192)
04/12/11 23:45:24 at java.lang.Thread.run(Thread.java:534)
04/12/11 23:45:24 java.lang.NullPointerException
Dec 11, 2004 11:45:24 PM org.apache.struts.action.RequestProcessor processExcept
ion
WARNING: Unhandled Exception thrown: class javax.ejb.EJBExceptionAvi,
Thanks for your response. I am actually returning a new InitialContext in a function call in the servlet. What I have noticed though is that JDeveloper creates two ear files for the application. One for the ejbs called ejb1.ear and another for the web files webapp1.ear. These are located in the applications subdirectory in OC4J directory.
I know I have two projects in the application, model and viewController. I am just trying to follow the MVC pattern.
In short, I don't think the web and the ejbs are in same ear file. I made the web project depend on the ejbs though. There is an option to set such. I don't know how to tell JDeveloper to put them all in one ear file.
I will appreciate any suggestion.
Thanks
Matilda -
Java exception when invoking web service
I am using JDeveloper 10.1.3.04 to deploy a PL/SQL function as a web service to 10gIAS. I can deploy the service, but when invoking it from the endpoint my SOAP output looks like this:
<?xml version="1.0" encoding="UTF-8" ?>
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <SOAP-ENV:Body>
- <SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server.Exception:</faultcode>
<faultstring>java.lang.NullPointerException</faultstring>
<faultactor>/GetAmountContextRoot/MyWebService1</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Deploying what is essentially the same web service to the OC4J instance that comes with JDeveloper, my SOAP returns the expected value:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://devl29ieda/MyWebService2.wsdl/types/"><env:Body><ns0:returnAmountResponseElement><ns0:result>305249</ns0:result></ns0:returnAmountResponseElement></env:Body></env:Envelope>
I believe the problem is within the Java code created by the Web Service Wizard, but I do not know where.
Any help would be greatly appreciated.
StevenHi Steven,
You may want to look at the log on the server side to see if you have any hint that may help you track down where the NPE is comming from.
As you are using PL/SQL function, the other think you want to check is that the datasource information are properly defined in both environment.
Hope it helps,
-eric -
Operation Interrupted Exception when invoking webservice
When invoking a webservice, ts observed that the connection is getting closed from client before complete response is read(after few chunks). Response from webservice is sent using Transfer-Encoding: chunked mode. But this dont happen always.. It happens intermittently and application receives a "*IOInterrruptedException: Operation Interrupted*" exception..
Please helpKishore,
See the links referenced in these threads.
Web Services and R12
Re: Web Services and R12
Integrated SOA Gateway
Re: Integrated SOA Gateway
Regards,
Hussein -
Javax.naming.NoInitialContextException when invoking an EJB
Hi,
I've deployed a stateless session EJB in oc4j and invoking it thru a Java client. I'm using Eclipse. I've a jndi.properties in config folder of my application which is in the classpath of the client code.
The jndi.properties has :
java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory
java.naming.provider.url=ormi://<localhost>:12401/OC4JEJB
java.naming.security.principal=oc4jadmin
java.naming.security.credentials=oc4jadmin
where OC4JEJB is the application name deployed in oc4j.
This jndi.properties file is in the classpath.
My client code is :
Server server = null; //interface
ServerHome testSessionBean; //implementation of methods in Server interface
try {
Context ctx = new InitialContext();
Object objref = ctx.lookup("EJBServer"); //JNDI name
Object obj = PortableRemoteObject.narrow(objref, ServerHome.class);
testSessionBean = (ServerHome) PortableRemoteObject.narrow(objref,
ServerHome.class);
server = testSessionBean.create();
} catch (...) { }
When i set the properties and do a look up
Properties env = new Properties();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.evermind.server.rmi.RMIInitialContextFactory");
env.put(Context.SECURITY_PRINCIPAL, "oc4jadmin");//oc4jadmin
env.put(Context.SECURITY_CREDENTIALS, "oc4jadmin");
env.put(Context.PROVIDER_URL,
"ormi://<localhost>:12401/OC4JEJB");
InitialContext ctx = new InitialContext(env);
it works perfectly fine.
But when i use the jndi.properties it gives the following exception.
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.lookup(Unknown Source)
at client.ORION_EJB_Util.getServer(ORION_EJB_Util.java:203)
at client.ORION_EJB_Util.<init>(ORION_EJB_Util.java:90)
at client.TestClient.main(TestClient.java:26)
client.exception.EJBUtilException
at client.ORION_EJB_Util.getServer(ORION_EJB_Util.java:248)
at client.ORION_EJB_Util.<init>(ORION_EJB_Util.java:90)
at client.TestClient.main(TestClient.java:26)
Invoking the server
Inside getServer method
Obtained Initial Context javax.naming.InitialContext@422ede
Exception null
I've tried placing the jndi.properties in j2ee/home/applib too. Where shud i place this jndi.properties and invoke the EJB?
Could anyone help resolve this issue?
Thanks in advance,
SprighteeTry add your jndi.properties to your CLASSPATH.
See this doc for more details of RMI.
http://download-east.oracle.com/docs/cd/B31017_01/web.1013/b28958/rmi.htm#i1084792 -
Invoking Remote EJB (not as module in Workshop)
Hi,
Help required please...
I am trying to integrate WLS 8.1 with WLS 7.0, i.e. invoking EJB running in 7.0 from 8.1.
While creating a EJB Control in Workshop, its listing only the ejbs deployed as modules. But as my EJB is running in 7.0 I have just imported my Remote and Home (in Libraries). But EJB Control doesn't look to recognise it.
Any solution!!!
Thanks in advance
KirupaThen I have to worry about caching home object and also should take care of stale home's in my code (which I am reluctant to do).
I am just wondering, if Workshop EJB Control supports Remote EJB lookup, then why are they not identifying clients with ejb home and remote.
-Kirupa
Maybe you are looking for
-
HP LaserJet 600 M602 printer goes offline every night
Hi, I have a HP LaserJet 600 M602 CE991A printer on a wired network. I have quite a few other printers on the network as well and do not show me this kind of behavior. But for some reason, this printer, from as soon as I bought it, goes offline every
-
Hi all, I am working on SOAP sychronous scenario.i.e ,Web services(Axis) to SAP R/3 system and i want the response from SAP R/3 system and it is to be displayed in web client. In this scenario I am able to send the SOAP message to SAP R/3 system thro
-
Error when adding form responses in an existing response file
Following the announcement of the retirement of FormsCentral, I am testing Acrobat XI Pro to distribute PDF forms. I followed the steps proposed in this tutorial: https://acrobatusers.com/tutorials/how-to-distribute-existing-pdf-forms Everything work
-
very slow to open == URL of affected sites == http:// == User Agent == Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.55 Safari/533.4
-
TimeOut PJC and Form Integration
Good Afternoon, Java console shows this error when running from Oracle Forms Builder (version 10.1.2.0.2): java.lang.NullPointerException at oracle.forms.demos.TimeoutPJC._addMouseListeners(TimeoutPJC.java:208) at oracle.forms.demos.Timeout