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
Similar Messages
-
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 -
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 -
Very Urgent !!! Exception in looking up Local EJB from Servlet in WSAD 5.1
Hi,
I have a servlet and a local EJB. The servlet and EJB are deployed on same application server but in different J2EE applications i.e. different EAR files.
When I lookup an EJB with remote interfaces from servlet everything works fine. But when I try to lookup EJB with local interfaces from
Servlet I get following Exception.
Exception Stack: -
========================================================
avax.naming.NameNotFoundException: Context: localhost/nodes/localhost/servers/server1, name: TestLocalHome: First component in name TestLocalHome not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info(WsnOptimizedNamingImpl.java:968)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:1399)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(Unknown Source)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:3491)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1519)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1480)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1187)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1067)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at javax.naming.InitialContext.lookup(InitialContext.java:360)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at org.apache.jsp._DomainClient._jspService(_DomainClient.java:95)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:669)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:767)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
[12/8/05 14:14:05:047 IST] 7debf35b SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
[12/8/05 14:14:05:062 IST] 7debf35b SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
[12/8/05 14:14:05:062 IST] 7debf35b SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
[12/8/05 14:14:05:062 IST] 7debf35b SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
[12/8/05 14:14:05:062 IST] 7debf35b SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
[12/8/05 14:14:05:062 IST] 7debf35b SystemErr R at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
[12/8/05 14:14:05:062 IST] 7debf35b SystemErr R at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
[12/8/05 14:14:05:062 IST] 7debf35b SystemErr R at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
[12/8/05 14:14:05:062 IST] 7debf35b SystemErr R at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
[12/8/05 14:14:05:062 IST] 7debf35b SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
[12/8/05 14:14:05:062 IST] 7debf35b SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
========================================================
Please help asap.
Regds
VJ.The ejb spec only defines local ejb access within the same application. It's possible some app servers support access from a different application but it wouldn't be portable, nor would it work within the J2EE SDK or Sun Java System App Servers. To access a local ejb from a web component or ejb , define an ejb-local-ref in the client component's standard .xml file (web.xml or ejb-jar.xml) and use the ejb-link element to specify the ejb-name of the target ejb.
--ken -
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; -
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?
RaviRavi --
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- -
Pass data from servlet to EJB3 and backward
Hello All,
The distributed application is being developed by the following scheme:
J2EE Application Server (JBoss) - Servlet container (JBoss's contained Tomcat) - RIA client (Flex)
Application server needs to handle client's requests and provide backward connectivity also.
Servlets in this scheme are required by the BlazeDS library which is implemented as set of servlets handling HTTP requests from the clients.
This forces us to:
- invoke EJB from the servlet while handling client's requests.
- invoke servlet from EJB for the sake of providing the client with urgent messages which need to be displayed immediately.
The easiest ways to achieve that I am aware of are:
- servlet invokes EJB via JNDI lookup (inefficient?)
- EJB invokes servlet by passing HTTP request to web server (inefficient!)
Is there standard and efficient ways to wire servlets(JSP) and EJB in either directions?
Thanks,
Alex.Hi Chicon,
Thanks for advice. Probably I need to add few more words to make the question clearer.
Chicon wrote:
It is not the role of an EJB to fire a servlet. EJB's are only modules.
In your case, the EJB invoked should pass the necessary data to the servlet. From the data it receives, the servlet has either to build and to send the HTML document(or other formats : pdf, txt, xml,...) or to fire the appropriate JSP to the client. The servlet may also call a more specific servlet to do the job, e.g. in a Struts like framework.- Invocation of EJB from servlet is one data flow direction. After EJB is invoked and finished, servlet gets results, makes its own job and sends data to clients either in html or binary AMF (Flex proprietary) format.
- Invokation of servlet from EJB is another data flow direction. It will be employed, when server decides to inform all interested clients about an urgent event. Client are not asking for that event explicitly, but they are ready for handling such messages from the server.
Of course, in order to achieve this, there is a need in a channel between server and each client. This is what BlazeDS for.
The first requirement could be satisfied by either JNDI lookup or (as malrawi proposed) by dependency injection.
The second one is a little bit harder... It may involve any other mediators, not necessarily the same servlets.
I am looking for the best suitable solution now.
Thanks,
Alex. -
I loaded some pics from my SD card and then I loaded some from my iPhone. But I am unable to see the pics from my SDcard in iPhotos.
I think it is 7.1.1 - there was another update today which I've uploaded but it didn't make any difference. It's just the music libary on the 5 that's causing me problems.
-
Trying to load an app from the itunes store and asked to review the "Terms and Conditions and Apple Privacy Policy" as it has changed. There is no "Agree" selection available. Any suggestions? This appears to be associated with the iOS7 upgrade. Thanks
I have the same problem with my iphone 4 . I solve it with giving permission to the cookies on safari from the settings.
-
Calling ejbs from servlets without using web apps.
i am trying to instantiate and ejb from a servlet but it gives me the
following error. the configuration and code that generated this error is
attached below.
oddly enough the same chunk of code works fine in a stand alone client if
j2ee.jar;weblogic\classes and weblogicaux.jar are included in the classpath.
any help would be appreciated.
peter
-8787844: in servlet.Webmedx.init
-8787844: null
java.lang.ClassCastException
at
com.sun.corba.ee.internal.javax.rmi.PortableRemoteObject.narrow(Porta
bleRemoteObject.java:296)
at
javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
at webmedx.servlet.Webmedx.init(Webmedx.java:23)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
pl.java:474)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
Impl.java, Compiled Code)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:422)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:187)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:118)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:760)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:707)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:251)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:369)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
Code)
configuration:
WebLogic startup settings are presently:
CLASSPATH Prefix
\weblogic\lib\weblogic510sp5boot.jar;\j2ee\lib\j2ee.jar;\web
logic\lib\servlet.jar;\weblogic\lib\jaxp.jar;\weblogic\lib\parser.jar
CLASSPATH
\weblogic\lib\weblogic510sp5boot.jar;\j2ee\lib\j2ee.jar;\web
logic\lib\servlet.jar;\weblogic\lib\jaxp.jar;\weblogic\lib\parser.jar;\weblo
gic\
jre1_2\lib\tools.jar;\weblogic\jre1_2\jre\lib\rt.jar;\weblogic\jre1_2\jre\li
b\i1
8n.jar;C:\weblogic\license;C:\weblogic\classes\boot;C:\weblogic\classes;C:\w
eblo
gic\lib\weblogicaux.jar;C:\weblogic\eval\cloudscape\lib\cloudscape.jar
JAVA_HOME \weblogic\jre1_2
WEBLOGIC_LICENSEDIR C:\weblogic\license
WEBLOGIC_HOME C:\weblogic
system properties:
java.security.manager
java.security.policy=\weblogic\weblogic.policy
weblogic.system.home=\weblogic
java.compiler=symcjit
weblogic.class.path=\weblogic\lib\weblogic510sp5.jar;\weblog
ic\license;\weblogic\classes;\weblogic\lib\weblogicaux.jar
INITIAL_HEAP 64 MB
MAX_HEAP 64 MB
SERVERCLASSPATH
\weblogic\lib\weblogic510sp5boot.jar;\j2ee\lib\j2ee.jar;\web
logic\lib\servlet.jar;\weblogic\lib\jaxp.jar;\weblogic\lib\parser.jar;\weblo
gic\
jre1_2\jre\lib\rt.jar;\weblogic\jre1_2\jre\lib\i18n.jar;C:\weblogic\classes\
boot
;C:\weblogic\eval\cloudscape\lib\cloudscape.jar
Type "wlconfig -help" for program usage.
code:
public void init() throws ServletException{
try{
Log.debug("in servlet.Webmedx.init");
Properties h = new Properties();
h.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
h.put(Context.PROVIDER_URL, "t3://localhost:7001");
Context initial = new InitialContext(h);
Object objref = initial.lookup("webmedx/pool");
webmedxpoolhome =
(WebmedxPoolHome)PortableRemoteObject.narrow(objref,WebmedxPoolHome.class);
}catch(Exception ex){
Log.error(ex);
The problem before was that you were trying to load the same class from
2 different class paths. The ClassCastException is very un-intuitive in this
case.
Peter Ghosh wrote:
> however, when i added it to the classpath prefix (not the
> weblogic.classpath) it seemed to do the trick. very odd.
> thanks,
> peter
>
> "Peter Ghosh" <[email protected]> wrote in message
> news:[email protected]...
> > i tried that but no luck. any other suggestions?
> > peter
> >
> > "Ohad Shany" <[email protected]> wrote in message
> > news:[email protected]...
> > > Is your EJB classes on the servlet classpath?
> > > (weblogic.httpd.servlet.classpath property)
> > >
> > > I had some strange casting problem when my EJB classes was on the
> servlet
> > > classpath
> > > and it was gone when i moved them to the weblogic.class.path . Worth a
> > try.
> > >
> > > OHAD
> > >
> > > Peter Ghosh wrote:
> > >
> > > > i am trying to instantiate and ejb from a servlet but it gives me the
> > > > following error. the configuration and code that generated this error
> is
> > > > attached below.
> > > > oddly enough the same chunk of code works fine in a stand alone client
> > if
> > > > j2ee.jar;weblogic\classes and weblogicaux.jar are included in the
> > classpath.
> > > > any help would be appreciated.
> > > > peter
> > > >
> > > > -8787844: in servlet.Webmedx.init
> > > > -8787844: null
> > > > java.lang.ClassCastException
> > > > at
> > > > com.sun.corba.ee.internal.javax.rmi.PortableRemoteObject.narrow(Porta
> > > > bleRemoteObject.java:296)
> > > > at
> > > > javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
> > > > at webmedx.servlet.Webmedx.init(Webmedx.java:23)
> > > > at javax.servlet.GenericServlet.init(GenericServlet.java:258)
> > > > at
> > > > weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
> > > > pl.java:474)
> > > > at
> > > > weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
> > > > Impl.java, Compiled Code)
> > > > at
> > > > weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
> > > > mpl.java:422)
> > > > at
> > > > weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
> > > > java:187)
> > > > at
> > > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> > > > pl.java:118)
> > > > at
> > > > weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
> > > > textImpl.java:760)
> > > > at
> > > > weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
> > > > textImpl.java:707)
> > > > at
> > > > weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
> > > > ContextManager.java:251)
> > > > at
> > > > weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
> > > > a:369)
> > > > at
> > > > weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
> > > >
> > > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
> > > > Code)
> > > >
> > > > configuration:
> > > >
> > > > WebLogic startup settings are presently:
> > > >
> > > > CLASSPATH Prefix
> > > > \weblogic\lib\weblogic510sp5boot.jar;\j2ee\lib\j2ee.jar;\web
> > > > logic\lib\servlet.jar;\weblogic\lib\jaxp.jar;\weblogic\lib\parser.jar
> > > > CLASSPATH
> > > > \weblogic\lib\weblogic510sp5boot.jar;\j2ee\lib\j2ee.jar;\web
> > > >
> >
> logic\lib\servlet.jar;\weblogic\lib\jaxp.jar;\weblogic\lib\parser.jar;\weblo
> > > > gic\
> > > >
> >
> jre1_2\lib\tools.jar;\weblogic\jre1_2\jre\lib\rt.jar;\weblogic\jre1_2\jre\li
> > > > b\i1
> > > >
> >
> 8n.jar;C:\weblogic\license;C:\weblogic\classes\boot;C:\weblogic\classes;C:\w
> > > > eblo
> > > > gic\lib\weblogicaux.jar;C:\weblogic\eval\cloudscape\lib\cloudscape.jar
> > > > JAVA_HOME \weblogic\jre1_2
> > > > WEBLOGIC_LICENSEDIR C:\weblogic\license
> > > > WEBLOGIC_HOME C:\weblogic
> > > > system properties:
> > > > java.security.manager
> > > > java.security.policy=\weblogic\weblogic.policy
> > > > weblogic.system.home=\weblogic
> > > > java.compiler=symcjit
> > > >
> > > > weblogic.class.path=\weblogic\lib\weblogic510sp5.jar;\weblog
> > > > ic\license;\weblogic\classes;\weblogic\lib\weblogicaux.jar
> > > > INITIAL_HEAP 64 MB
> > > > MAX_HEAP 64 MB
> > > > SERVERCLASSPATH
> > > > \weblogic\lib\weblogic510sp5boot.jar;\j2ee\lib\j2ee.jar;\web
> > > >
> >
> logic\lib\servlet.jar;\weblogic\lib\jaxp.jar;\weblogic\lib\parser.jar;\weblo
> > > > gic\
> > > >
> >
> jre1_2\jre\lib\rt.jar;\weblogic\jre1_2\jre\lib\i18n.jar;C:\weblogic\classes\
> > > > boot
> > > > ;C:\weblogic\eval\cloudscape\lib\cloudscape.jar
> > > >
> > > > Type "wlconfig -help" for program usage.
> > > >
> > > > code:
> > > >
> > > > public void init() throws ServletException{
> > > > try{
> > > > Log.debug("in servlet.Webmedx.init");
> > > > Properties h = new Properties();
> > > > h.put(Context.INITIAL_CONTEXT_FACTORY,
> > > > "weblogic.jndi.WLInitialContextFactory");
> > > > h.put(Context.PROVIDER_URL, "t3://localhost:7001");
> > > > Context initial = new InitialContext(h);
> > > > Object objref = initial.lookup("webmedx/pool");
> > > > webmedxpoolhome =
> > > >
> > > >
> >
> (WebmedxPoolHome)PortableRemoteObject.narrow(objref,WebmedxPoolHome.class);
> > > > }catch(Exception ex){
> > > > Log.error(ex);
> > > > }
> > > > }
> > >
> >
> >
-
Connection problem while invoking remote method from client using oracle 8.1.6 server
while using a connection object to make connection to oracle in all remote methods(in EJB)only the first remote method called from the EJB client is getting invoked and the connection stops.It gives me COMM_FAILURE while invoking the second method in oracle 8.1.6.Help me out in this aspect immediately please.
r singh wrote:
>
I am getting "No Suitable Driver" exception from WebLogic 6.1 (sp1) at
the start up of the server.
My settings:
- WLS 6.1 on a solaris 8 machine and Oracle 8.1.6 on a WIN2K machine.
- I created the connection pool for oracle with the following
parameters:
connection name: OracleConnectionPool
url: jdbc.oracle.thin:@myOracleServer:1521:myDBName
driver class name: oracle.jdbc.driver.OracleDriver
properties: user=scott
password=tiger
- I have also downloaded classes12.zip and nls_charset12.zip from
Oracle.com
and have placed under $WL_HOME/lib.
- I have added $WL_HOME/lib/classes12.zip:$WL_HOME/lib/nls_charset12.zip
in
front of the $CLASSPATH in the startWeblogic.sh script. The echoed
classpath
from the startup script is:
/opt/tools/bea/wlserver6.1/lib/classes12.zip:/opt/tools/bea/wlserver6.1/lib/nls_
charset12.zip:/opt/tools/bea/wlserver6.1:/opt/tools/bea/wlserver6.1/lib/weblogic
_sp.jar:/opt/tools/bea/wlserver6.1/lib/weblogic.jar
- Still I get the error:
<Jan 16, 2002 1:38:45 PM EST> <Error> <JDBC> <Cannot startup
connection pool "Or
acleConnectionPool" No suitable driver>
Can somebody point me out if i am doing anything wrong here.
Thanks.
RamanandHi,
Sure. Your URL should be "jdbc:oracle:thin:@myOracleServer:1521:myDBName"
not "jdbc.oracle.thin:@myOracleServer:1521:myDBName"
Joe -
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 -
Problem to connect to mysql from servlet using a javabean
Hi,
I'm new here and beginner on java to.
I have problem to connect to MySql database, by a connection javabean.
It's the following: a HTML page calls a servlet and this servlet imports the package connection javabean.
It has no problem when I establish the connection inside the servlet, with all its methods (public and private). But i want to separate the code connection from servlet.
Detail: there is no problem, using the javabean to connect to MS Access database.
I put "mysql-connector-java-3.1.12-bin.jar" file inside WEB-INF/lib application and common/lib directories.
I set the classpath:
SET CLASSPATH=%CATALINA_HOME%\COMMON\LIB\mysql-connector-java-3.1.12-bin.jar;%CLASSPATH%
I think that the servlet cannot create an instance of javabean, because passed by catch exception of the servlet init method.
But I don't know why.
Please Why?
Below there are the fragment of errors, servlet code e javabean code.
Thank you.
Zovao.
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
at CadServletFileBeanConexArq.doPost(CadServletFileBeanConexArq.java:47)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
Note: The line 47 is calling insertIntoDB javabean method.
========///////////////===============
// Here is the servlet CadServletFileBeanConexArq.java
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
import java.sql.*;
import conJdbc.*;
public class CadServletFileBeanConexArq extends HttpServlet {
public ConexPed connect = null;
private String driver = "com.mysql.jdbc.Driver";
private String URL = "jdbc:mysql://localhost:3306/cadastro";
public void init( ServletConfig config )
throws ServletException
super.init( config );
try
connect = new ConexPed(driver, URL, "monty", "some_pass");
catch ( Exception e )
e.printStackTrace();
connect = null;
public void doPost( HttpServletRequest req,
HttpServletResponse res )
throws ServletException
boolean success = true;
String email, nome, sobrenome, produto, valor;
email = req.getParameter( "Email" );
nome = req.getParameter( "Nome" );
sobrenome = req.getParameter( "Sobrenome" );
produto = req.getParameter( "Produto" );
valor = req.getParameter( "Valor" );
res.setContentType( "text/html" );
if ( email.length() > 0 && nome.length() > 0 && sobrenome.length() > 0 && valor.length() > 0 )
/* inserting data */
success = connect.insertIntoDB(
"'" + email + "','" + nome + "','" + sobrenome + "','" + produto + "'", Double.parseDouble(valor) );
//closing connection
public void destroy()
connect.fecharConexao();
=============///////////////============
Here is the JavaBean.
package conJdbc;
import java.sql.*;
public class ConexPed
public Connection connection;
public Statement statement;
public ConexPed (String driver, String urlServidor, String user, String password)
try
Class.forName(driver);
connection = DriverManager.getConnection(urlServidor,user,password);
catch (ClassNotFoundException ex)
System.out.println("N�o foi poss�vel encontrar a classe do Driver: " + driver);
catch (SQLException ex)
System.out.println("N�o foi poss�vel conectar ao servidor");
try
statement = connection.createStatement();
catch (SQLException ex)
System.out.println("N�o foi poss�vel criar a statement");
*Inserting data to database
public synchronized boolean insertIntoDB( String stringtoinsert, double valor)
try
statement.executeUpdate( "INSERT INTO pedido values (" + stringtoinsert + " , " + valor + ");" );
catch ( Exception e ) {
System.err.println(
"ERROR: Problemas ao adicionar nova entrada" );
e.printStackTrace();
return false;
return true;
* Close statement.
public void fecharStatement()
try
statement.close();
catch (SQLException ex)
ex.printStackTrace();
* close database
public void fecharConexao()
try
connection.close();
catch (SQLException ex)
ex.printStackTrace();
}Hi,
I'm new here and beginner on java to.
I have problem to connect to MySql database, by a connection javabean.
It's the following: a HTML page calls a servlet and this servlet imports the package connection javabean.
It has no problem when I establish the connection inside the servlet, with all its methods (public and private). But i want to separate the code connection from servlet.
Detail: there is no problem, using the javabean to connect to MS Access database.
I put "mysql-connector-java-3.1.12-bin.jar" file inside WEB-INF/lib application and common/lib directories.
I set the classpath:
SET CLASSPATH=%CATALINA_HOME%\COMMON\LIB\mysql-connector-java-3.1.12-bin.jar;%CLASSPATH%
I think that the servlet cannot create an instance of javabean, because passed by catch exception of the servlet init method.
But I don't know why.
Please Why?
Below there are the fragment of errors, servlet code e javabean code.
Thank you.
Zovao.
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
at CadServletFileBeanConexArq.doPost(CadServletFileBeanConexArq.java:47)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
Note: The line 47 is calling insertIntoDB javabean method.
========///////////////===============
// Here is the servlet CadServletFileBeanConexArq.java
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
import java.sql.*;
import conJdbc.*;
public class CadServletFileBeanConexArq extends HttpServlet {
public ConexPed connect = null;
private String driver = "com.mysql.jdbc.Driver";
private String URL = "jdbc:mysql://localhost:3306/cadastro";
public void init( ServletConfig config )
throws ServletException
super.init( config );
try
connect = new ConexPed(driver, URL, "monty", "some_pass");
catch ( Exception e )
e.printStackTrace();
connect = null;
public void doPost( HttpServletRequest req,
HttpServletResponse res )
throws ServletException
boolean success = true;
String email, nome, sobrenome, produto, valor;
email = req.getParameter( "Email" );
nome = req.getParameter( "Nome" );
sobrenome = req.getParameter( "Sobrenome" );
produto = req.getParameter( "Produto" );
valor = req.getParameter( "Valor" );
res.setContentType( "text/html" );
if ( email.length() > 0 && nome.length() > 0 && sobrenome.length() > 0 && valor.length() > 0 )
/* inserting data */
success = connect.insertIntoDB(
"'" + email + "','" + nome + "','" + sobrenome + "','" + produto + "'", Double.parseDouble(valor) );
//closing connection
public void destroy()
connect.fecharConexao();
=============///////////////============
Here is the JavaBean.
package conJdbc;
import java.sql.*;
public class ConexPed
public Connection connection;
public Statement statement;
public ConexPed (String driver, String urlServidor, String user, String password)
try
Class.forName(driver);
connection = DriverManager.getConnection(urlServidor,user,password);
catch (ClassNotFoundException ex)
System.out.println("N�o foi poss�vel encontrar a classe do Driver: " + driver);
catch (SQLException ex)
System.out.println("N�o foi poss�vel conectar ao servidor");
try
statement = connection.createStatement();
catch (SQLException ex)
System.out.println("N�o foi poss�vel criar a statement");
*Inserting data to database
public synchronized boolean insertIntoDB( String stringtoinsert, double valor)
try
statement.executeUpdate( "INSERT INTO pedido values (" + stringtoinsert + " , " + valor + ");" );
catch ( Exception e ) {
System.err.println(
"ERROR: Problemas ao adicionar nova entrada" );
e.printStackTrace();
return false;
return true;
* Close statement.
public void fecharStatement()
try
statement.close();
catch (SQLException ex)
ex.printStackTrace();
* close database
public void fecharConexao()
try
connection.close();
catch (SQLException ex)
ex.printStackTrace();
} -
Thred Safety when Injecting an EJB into servlet using @EJB
Hi , i have read that
when EJBs were injected into servlets using @EJB it is said that there will be no Thread Safety here ??
Is this true.Hi,
You can directly call the methods in the bean without using bean model
see this thread
Webdynpro and Oracle
Regards
Rohit -
Remote Deployment from JDeveloper using "Parent Application"
Hi,
I am newbie in remote deployment (from JDeveloper). I would like to deploy my application in the OAS 10g, but I want to set the "Parent Application" in a different value than default.
Is it possible?
Where could I find documentation of remote deployment alternatives (I cannot use the "dcmctl" command directly for security reasons)...
Best regards and thank you in advance for your help.Check out this thread.
Deploy Exception with new Jdeveloper 11.1.1.1.0
Maybe you are looking for
-
Help with audio books on CDs please
Please be gentle, I'm totally new to the ipod phenomenon and itunes etc. Just got a new ipod touch and want to put my previously purchased Harry Potter audio cd's on to it to listen to. Trouble is when I do that it classes them as music rather than p
-
What is this black message screen and how do I clear it?
16mb Windows 7 After Effects CC up to date
-
DME for Foreign payments in Italy
Hello All SAP Gurus!!! I am using program RFFOIT_FOR for configuring DME for Foreign payments in Taly. But I am getting errors. I need to update the UIC code in the DME file. Please help.
-
Hi peeps, When editing a shoot, I CTRL+[arrow down] the rubbish pics to set them as rejected. The plan is to delete them before "selecting ALL" in the shoot and exporting. Trouble is I'm always forgetting to delete the rejects before exporting ( ARRG
-
HP 6654 upgrade video card/power supply
I am interested in upgrading my video card from a current ATI Radeon HD 4200 to a "EVGA GeForce GTX 960 SuperSC ACX 2.0+ 2GB GDDR5 128bit, PCI-E 3.0 Dual-Link DVI-I, 3 x DP, HDMI, SLI, HDCP, G-SYNC Ready Graphics Cards 02G-P4-2966-KR". Will this gra