EJB Supporting Different Application Server

I have a task to develop an session/entity bean(for both select and insert) which needs to be called from both WebSphere Application Server(4.x) and Resin Application Server
For your information - WAS uses EJB(1.1) and Resin uses EJB(2.0).
I want to create this session/entity bean which works on both application server without doing any change in code. Is that really possible. If YES - HOW ? Please suggest if you really know anything on this topic. Thanks.
Zahid.

So - Which Entity Bean should I use. CMP or BMP. I would prefer CMP as I do not have to write code for callback methods. Cracker - could I contact you. If yes - please email me at [email protected] I really need help on this and want to complete this. Won't take much of your time. Thanks.
Zahid.

Similar Messages

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

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

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

  • Is it possible to integrate a different application server with Creator

    It's not love at first sight, but I think i'm gonna fall in love with creator. my question is, is it possible to use/integrate a different application server into creator instead of Sun's Application Server. I prefer to use Jonas

    Alexis, thanks for your help -
    The following was taken from the JRUN logs right after trying to deploy a sample Creator project called teta -
    It works fine with the APP server provided with Creator.
    # Created by JRun on 07/12 18:25:27
    07/12 18:25:38 info JRun Web Server listening on *:8105
    07/12 18:25:39 info Deploying enterprise application "JRun 4.0 Internal J2EE Components" from: file:/C:/JRun4/lib/jrun-comp.ear
    07/12 18:25:39 info Deploying EJB "JRunSQLInvoker" from: file:/C:/JRun4/lib/jrun-comp.ear
    07/12 18:25:39 info Deploying enterprise application "default-ear" from: file:/C:/JRun4/servers/teta/default-ear/
    07/12 18:25:39 info Deploying web application "JRun Default Web Application" from: file:/C:/JRun4/servers/teta/default-ear/
    07/12 18:25:40 info Web Services in default-ear#default-war:
    07/12 18:25:40 info AdminService
    07/12 18:25:40 user JSPServlet: init
    07/12 18:25:41 info Recovering 1 session(s)
    07/12 18:25:41 info Deploying web application "file:/C:/JRun4/servers/teta/teta.war" from: file:/C:/JRun4/servers/teta/teta.war
    07/12 18:25:41 user JSPServlet: init
    07/12 18:25:41 error Could not pre-load servlet: JSPServlet
    [4]java.lang.NoClassDefFoundError: org/apache/commons/digester/RuleSet
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
         at java.lang.Class.getConstructor0(Class.java:1762)
         at java.lang.Class.newInstance0(Class.java:276)
         at java.lang.Class.newInstance(Class.java:259)
         at jrun.servlet.WebApplicationService.addListener(WebApplicationService.java:1393)
         at jrun.jsp.compiler.JRunTagLibraryInfo$TLDParser.listenerclassEnd(JRunTagLibraryInfo.java:602)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at jrunx.util.SAXReflectionHandler.invoke(SAXReflectionHandler.java:115)
         at jrunx.util.SAXReflectionHandler.endElement(SAXReflectionHandler.java:38)
         at org.xml.sax.helpers.XMLReaderAdapter.endElement(XMLReaderAdapter.java:353)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1536)
         at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
         at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
         at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
         at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
         at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:314)
         at jrun.jsp.compiler.JRunTagLibraryInfo.init(JRunTagLibraryInfo.java:190)
         at jrun.jsp.compiler.JRunTagLibraryInfo.<init>(JRunTagLibraryInfo.java:119)
         at jrun.jsp.JSPEngine.checkResourceForTaglibs(JSPEngine.java:483)
         at jrun.jsp.JSPEngine.findImplicitTaglibs(JSPEngine.java:451)
         at jrun.jsp.JSPEngine.<init>(JSPEngine.java:141)
         at jrun.jsp.JSPServlet.init(JSPServlet.java:62)
         at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)
         at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)
         at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)
         at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
         at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
         at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
         at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
         at jrun.deployment.DeployerService.run(DeployerService.java:891)
         at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    [3]java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at jrunx.util.SAXReflectionHandler.invoke(SAXReflectionHandler.java:115)
         at jrunx.util.SAXReflectionHandler.endElement(SAXReflectionHandler.java:38)
         at org.xml.sax.helpers.XMLReaderAdapter.endElement(XMLReaderAdapter.java:353)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1536)
         at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
         at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
         at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
         at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
         at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:314)
         at jrun.jsp.compiler.JRunTagLibraryInfo.init(JRunTagLibraryInfo.java:190)
         at jrun.jsp.compiler.JRunTagLibraryInfo.<init>(JRunTagLibraryInfo.java:119)
         at jrun.jsp.JSPEngine.checkResourceForTaglibs(JSPEngine.java:483)
         at jrun.jsp.JSPEngine.findImplicitTaglibs(JSPEngine.java:451)
         at jrun.jsp.JSPEngine.<init>(JSPEngine.java:141)
         at jrun.jsp.JSPServlet.init(JSPServlet.java:62)
         at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)
         at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)
         at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)
         at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
         at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
         at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
         at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
         at jrun.deployment.DeployerService.run(DeployerService.java:891)
         at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    Caused by: java.lang.NoClassDefFoundError: org/apache/commons/digester/RuleSet
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
         at java.lang.Class.getConstructor0(Class.java:1762)
         at java.lang.Class.newInstance0(Class.java:276)
         at java.lang.Class.newInstance(Class.java:259)
         at jrun.servlet.WebApplicationService.addListener(WebApplicationService.java:1393)
         at jrun.jsp.compiler.JRunTagLibraryInfo$TLDParser.listenerclassEnd(JRunTagLibraryInfo.java:602)
         ... 34 more
    [2]java.lang.reflect.InvocationTargetException
         at jrunx.util.SAXReflectionHandler.invoke(SAXReflectionHandler.java:119)
         at jrunx.util.SAXReflectionHandler.endElement(SAXReflectionHandler.java:38)
         at org.xml.sax.helpers.XMLReaderAdapter.endElement(XMLReaderAdapter.java:353)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1536)
         at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
         at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
         at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
         at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
         at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:314)
         at jrun.jsp.compiler.JRunTagLibraryInfo.init(JRunTagLibraryInfo.java:190)
         at jrun.jsp.compiler.JRunTagLibraryInfo.<init>(JRunTagLibraryInfo.java:119)
         at jrun.jsp.JSPEngine.checkResourceForTaglibs(JSPEngine.java:483)
         at jrun.jsp.JSPEngine.findImplicitTaglibs(JSPEngine.java:451)
         at jrun.jsp.JSPEngine.<init>(JSPEngine.java:141)
         at jrun.jsp.JSPServlet.init(JSPServlet.java:62)
         at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)
         at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)
         at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)
         at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
         at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
         at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
         at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
         at jrun.deployment.DeployerService.run(DeployerService.java:891)
         at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    [1]jrun.jsp.compiler.JRunTagLibraryInfo$TLDParseException: Exception parsing the TLD null : null
         at jrun.jsp.compiler.JRunTagLibraryInfo.init(JRunTagLibraryInfo.java:198)
         at jrun.jsp.compiler.JRunTagLibraryInfo.<init>(JRunTagLibraryInfo.java:119)
         at jrun.jsp.JSPEngine.checkResourceForTaglibs(JSPEngine.java:483)
         at jrun.jsp.JSPEngine.findImplicitTaglibs(JSPEngine.java:451)
         at jrun.jsp.JSPEngine.<init>(JSPEngine.java:141)
         at jrun.jsp.JSPServlet.init(JSPServlet.java:62)
         at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)
         at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)
         at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)
         at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
         at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
         at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
         at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
         at jrun.deployment.DeployerService.run(DeployerService.java:891)
         at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    [0]javax.servlet.ServletException: Exception parsing the TLD null : null
         at jrun.jsp.JSPEngine.findImplicitTaglibs(JSPEngine.java:457)
         at jrun.jsp.JSPEngine.<init>(JSPEngine.java:141)
         at jrun.jsp.JSPServlet.init(JSPServlet.java:62)
         at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)
         at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)
         at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)
         at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
         at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
         at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
         at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
         at jrun.deployment.DeployerService.run(DeployerService.java:891)
         at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    07/12 18:25:42 error Could not pre-load servlet: Faces Servlet
    java.lang.NullPointerException
         at javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
         at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)
         at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)
         at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)
         at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
         at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
         at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
         at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
         at jrun.deployment.DeployerService.run(DeployerService.java:891)
         at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

  • RMI of EJB Problem Sun Application Server 8

    I have an application that tries to invoke a remote ejb. If the client is on the same box as the ejb then everything works as expected. If the client makes the call from a different application server, then the errors listed below are generated CONTINIOUSLY UNTIL THE CLIENT APP SERVER IS STOPPED.
    Although I specify a hostname and port of the desired server, the error in the server log displays the hostname as localhost (which is incorrect, with the correct port) :
    locahhost:hostname: 127.0.0.1; port: 33702.
    I know that client is communicating with the app server where the ejb reside because the other log messages show the other iiop ports of the ejb app server:
    Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 127.0.0.1; port: 33702"
    Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 127.0.0.1; port: 33822"
    Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 127.0.0.1; port: 33922"
    I use the following code to point the remote server:port:
    env.put("java.naming.factory.initial", "com.sun.jndi.cosnaming.CNCtxFactory");
    env.put("java.naming.provider.url", urlString);
    The value of the urlString is extracted from a properties file and
    contains the server and the port information.
    GENERATED ERRORS:
    [#|2007-02-15T12:22:53.995-0500|WARNING|sun-appserver-pe8.2|javax.enterprise.resource.corba.ee._DEFAULT_.rpc.transport|_ThreadID=11;|"IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 127.0.0.1; port: 33702"
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2257)
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2278)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:208)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:221)
    at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:104)
    at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:152)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:146)
    at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:431)
    at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub.java:397)
    at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:440)
    at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:492)
    at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:470)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at cyberCash.VerisignDriver.lookupRemoteVerisignAgentBean(VerisignDriver.java:779)
    at cyberCash.VerisignDriver.createVerisignRemote(VerisignDriver.java:609)
    at cyberCash.VerisignDriver.getVerisignRemote(VerisignDriver.java:579)
    at cyberCash.VerisignDriver.SaveInput(VerisignDriver.java:232)
    at org.apache.jsp.jsp.ePayment.verisignresults_jsp._jspService(verisignresults_jsp.java:143)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)
    Caused by: java.net.ConnectException: Connection refused: connect
    at sun.nio.ch.Net.connect(Native Method)
    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:464)
    at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
    at com.sun.corba.ee.impl.transport.DefaultSocketFactoryImpl.createSocket(DefaultSocketFactoryImpl.java:63)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:191)
    ... 52 more
    |#]

    hi
    I am working with Sun java application Server 8.
    I can able to create application(*.ear),
    (Enterprise Java Bean) bean component,
    client application
    Problem is, i am unable to provide JNDI name for client application
    advice needed to provide JNDI name for the client applications
    i dont know whats the use of pointbase/cloudscape
    (As i am new to this sjaServer 8, i need your advice)
    Response to the following mail id
    [email protected]
    Please do the favour
    thank you

  • Can Forms 9i run on a different Application Server, e.g. Apache?

    Can Forms/Reports 9i run on a different Application Server, e.g. Apache? i.e. without needing to use 9iAS.
    It is quoted in the document "Migrating Client/Server to the web" that it may be possible, but will not be supported. Is this possible?
    The reason I ask this is due to the costs involved of 9iAS. If I can use an alternative route like Apache / Tomcat, it's free. Then I only need the developer suite licensing.
    Thanks,
    Jacques

    Just so you'll know Oracle9iAS also includes apache as the HTTP server.
    As Suncan said, if you want to use Forms on the Web you need the Forms Server engine, and it comes bundled in Oracle9iAS. You'll save yourself a lot of headache if you just install Oracle9iAS and have everything pre-configured for you thus reducing maintanance costs.

  • Switch to different application server in ABAP program

    Hello everyone,
    I am currently working on some ABAP objects classes and tool programs for additional user administration functionality. We are runnig a SAP ERP system with distributed application servers and active logon load-balancing for users.
    I'd like to switch to a different application server from within my program in order to get all relevant information for an active user. So far I only found the function TH_SELECT_SERVER (from the function group THFB) for this, but this uses a separate dialog for interactively switching to another application server.
    I could use RFC calls with a lookup table for the destinations of individual application servers, but this would not be as flexible. Also I would have to create some wrapper code for standard functions which are not defined as RFC-usable. So I would rather like to switch to the other server instead.
    What I'd like to do instead is switching to another server from a user-related server list without any additional interaction in order to run a function locally on the other server. Does anybody know some function, object method etc. which will do the trick?
    Greetings,
    Markus.

    Hello Thomas,
    Bingo !!!
    I debugged the report program RSM51000_ALV & found the sub-routine SM51_USER_CMD.
    The SY-UCOMM for our purpose is 'RLOG'. and it utilises the FM 'TH_REMOTE_TRANSACTION' )
    Hope this will be of some help to the thread starter.
    BR,
    Suhas

  • Sending a message to different application server

    Hi all
    I have a session bean that send message to a message driven bean in the same application server.
    I wonder how to send the same message to a message driven bean in a different application server.
    Is Context.PROVIDER_URL (jndi hard coding) important for that matter?

    anyway if i do not want use jndi.properties file it's enough specifing the Context.PROVIDER_URL pointing to the new jboss server???
    // hard coding configurazione jndi
              Properties properties = new Properties();
              properties.put(Context.INITIAL_CONTEXT_FACTORY,
              "org.jnp.interfaces.NamingContextFactory");
              properties.put(Context.URL_PKG_PREFIXES, "org.jnp.interfaces");
              properties.put(Context.PROVIDER_URL,
              "xxxxxxx");
              try {
                   initialContext = new InitialContext(properties);
              } catch (Throwable ex) {
                   throw new ExceptionInInitializerError(ex);
              }

  • (266758030) Can WebLogic Workshop Web Services be deployed on a different Application Server?

    (266758030) Q(asked by Lalit Sudan): Can WebLogic Workshop Web Services be deployed
    on a different Application Server?
    A(by Adam Fitzgerald): .jws files are not yet an accepted standard so you can expect
    that the WebLogic Workshop Web Services cannot be ported to other Application Servers,
    however, it is a general goal to expand the functionality of the Workshop tool for
    other App Servers.

    Just so you'll know Oracle9iAS also includes apache as the HTTP server.
    As Suncan said, if you want to use Forms on the Web you need the Forms Server engine, and it comes bundled in Oracle9iAS. You'll save yourself a lot of headache if you just install Oracle9iAS and have everything pre-configured for you thus reducing maintanance costs.

  • Pls help!Can Oracle v7 support WebSphere Application Server instead of Oracle 8i

    Hi,
    I am using WebSphere as my application server and NT4.0 as OS.
    I wish to connect to Oracle db which is located at another server.
    Currently what I have is Oracle Client Software v7.3.4. There is error when I want to start the service.
    So I suspect that it is not compatible and it might require Oracle 8i in web environmt and to support WebSphere Application Server as well.
    Can anybody help me? Thank you.

    Hello,
    I guess you could get that to work as somebody was able to use WebLogic as webserver: http://christopherbeck.wordpress.com/2008/09/15/weblogic-server-and-apex/
    Alternatively you could use the Embedded PLSQL Gateway if you don't want to install Apache (depending database version you are on).
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

  • Can Jdeveloper support Weblogic Application Server Deploy ??

    Can Jdeveloper support the Weblogic application server deploy in EJB part ?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Michael Cheng ([email protected]):
    Can Jdeveloper support the Weblogic application server deploy in EJB part ?<HR></BLOCKQUOTE>
    Yes.
    null

  • Manual JNDI lookup for EJB3 between different Application Server Instances

    Hi all,
    i have spent quite some time looking into this problem and searching the net but i just can't figure out for the life of me what i am doing wrong so i hope someone here can give me a clue or a good resource where i can look it up myself.
    I am currently doing some interoperability tests concerning EJB calls between Glassfish and Weblogic 10. In my test setup i have an EJB deployed in a jar file on one server and a servlet in a war file deployed on the other. The objective is to try to look up and call the EJB from the servlet. As there seem to be some issues with injection in Weblogic 10 i set that one aside for now (i have opened a case at BEA support for this) but i would like to do a plain old JNDI lookup to obtain the EJB.
    The online tutorials and FAQs i have read so far all state that this can be done the same way as it works for EJB2.x, at least if i understood them correctly. The interessting thing is, when i deploy an EJB2.x bean i can look it up without problems, but when i try to do the same with the EJB3 bean the name cannot be found. On the other hand when listing all contents of the JNDI tree in Glassfish from a stand alone application i can see entries for both EJBs of the type java.naming.Reference (in Weblogic i can also see entries for both, but the ones for EJB3 are of some weird internal weblogic types, which i put down as a weblogic problem for now).
    The lookup code for the servlet running in weblogic looks like this:
    Properties env = new Properties();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    env.put(Context.PROVIDER_URL, "corbaname:iiop:1.2@localhost:3700");
    Object myEjb = new InitialContext(env).lookup("JNDINameDisplayedByContextListing");
    I know that the preferred way would be to have the corbaname put into weblogic.xml/sun-web.xml and just use an InitialContext without an environment to perform the lookup but i wanted to get rid of any additional indirections to pinpoint the source my problem and it should work this way, too. As i said, it works when i target an EJB2.x bean but not with the EJB3 one, so i guess i am doing something wrong there. The jar file contains the interface of the bean annotated with @Remote and the implementation of the interface annotated with @Stateless, i also tried setting the mappedName attribute for the bean and use that name as JNDI name, but that also fails. In addition i added an ejb-jar.xml to the jars META-INF containing the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
         version="3.0">
         <enterprise-beans>
              <session>
                   <ejb-name>SecurityTest3EJB</ejb-name>
                   <ejb-class>
                        testcase.ejb.SecurityTestBean
                   </ejb-class>
                   <session-type>Stateless</session-type>
                   <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    But the ejb-name specified there does not show up in a context listing, so i would guess that means the file is ignored or only accessible from within the same application server (note, there is no indication of any problems in the Glassfish log when deploying the jar file).
    This might be just a stupid mistake by me, but i just can't figure it out at the moment, so any advice will be greatly appriciated.
    Thanks, Chris

    I think i stumbled across something now. From some posts it seems to me that the EJB3 spec does not require EJBs to be accessible from a remote location, since this can be achieved by using the @RemoteHome annotation and performing a EJB2.x compliant look up. Is that correct?

  • Sessions in jspx between different Application Server

    Hello All,
    I have two applications running in two different Application servers.
    I call the jspx in one applications server from jspx of another applications server using the href.
    My requirement is, when I logout the first application it shud automatically inviladate session in the second jspx also.
    Is there any way of acheive this..
    Also please pass on any links to work on sessions in jspx.
    Thanks
    Krrish

    Hi frank,
    Thank you for the reply..
    Can you please provide any links to SSO enabling the custom application.
    Thanks
    Krrish

  • Deploying ejb with Sun Application Server 8

    I'm deploying a container-managed entity, my status & my problem is listed below:
    Deploytool:
    When I verify my entity, I see this error:
    Error: Exception [ JDO74033: Cannot deploy application 'LibrarianApp' module 'ejb-jar-ic' with CMP beans: cmp-resource is not defined for this module. The minimum requirement for a cmp-resource is to specify the jndi-name of a jdbc-resource or a persistence-manager-factory-resource to be used with the beans. ] while initializing JDOCodeGenerator. Please check your descriptors and mapping files for consistency
    Deploying has not any error but running the application has :
    Caught an exception:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException
    at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:170)
    at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
    in CMP Database of my entity, JNDI Name = jndi/MySQL
    Sun Java System Application Server Platform Edition 8 Admin Console:
    in JDBC Resource JNDI Name: jdbc/MySQL & Pool Name MySQL2
    in Connection Pools > MYSQL2 > Data Source Class Name: com.mysql.jdbc.jdbc2.optional.MysqlDataSource
    Please Help Me. thx

    hi
    I am working with Sun java application Server 8.
    I can able to create application(*.ear),
    (Enterprise Java Bean) bean component,
    client application
    Problem is, i am unable to provide JNDI name for client application
    advice needed to provide JNDI name for the client applications
    i dont know whats the use of pointbase/cloudscape
    (As i am new to this sjaServer 8, i need your advice)
    Response to the following mail id
    [email protected]
    Please do the favour
    thank you

  • Applet for EJB on Orcale application server

    I developed Oracle Application server deployed EJB. Then I developed Applet client for that EJB. Everything works fine when I use applet viewer for that applet. But when I try to do same from the Netscape (4.7) or IE5 problems occurs. First I try netscape alone. Netscape uses JDK 1.1.5. Applet created initial context, and found EJB on the server, but could not do anything (CORBA MArshall exception occured, and no completed string returned). Then I installed Java Plug in 1.2.2 and tried everything again. Now I always get naming exception. Initial context is created, but client cannot find EJB on the server ( [Root exception is org.omg.CORBA.NO_IMPLEMENT: minor code: 0 completed: No]javax.naming.ServiceUnavailableException at oracle.oas.jndi.oas.SecCosNamingContext.resolve(SecCosNamingContext.java:265) at oracle.oas.jndi.oas.BeanContext.lookup(BeanContext.java:328) .........
    occurs). Does someone has some expiriences or can help?
    I can run the application but when it comes to applet , its not working.
    further can the EJB applet run over Java 1.2 plugin?
    null

    yeah, but appletviewer is not the solution, I am using jdeveloper 3 , OAS4081. I need to put the client on applet. The documentation says it will work. but the problem remains. I have lareday spent more then 40 hours to find a solution but it won't work.
    Jayakumar,If you find a solution can you let me know also. my mail is [email protected]

  • St02 and different application server

    I am trying to find an easier way to read the swap entries for all our CI and application servers. Is there a way to find out which table contains all the entries for the swap settings of all the application servers? OR if there is any other automated way to get swap information without having to go to sm51 and selecting each app server and going to st02 to get the swap entries.
    Thanks!

    Hello Rahul Kabra,
    From the history screen of ST02 (Shift + F6) you can scroll through each application server without needing to do this via SM51 but I am not aware of a way of easily getting to the initial screen of ST02 for each instance switching via SM51 or also no way of getting the same information for all application servers.
    Regards, Mark

Maybe you are looking for