EJB & Servlet deployment in Clustered Env.

          Hi,
          I have made a cluster of 3 weblogic servers. I would like to send a request to one
          server (e.g. http://myserver1:7001/TestServlet). The servlet utilizes an EJB which
          is not located and not deployed on myserver1 , but on other 2 servers in the cluster.
          The algorithm is round-robin. It gives me a lot of errors (Impl... classes not found
          etc etc).
          Do I have to deploy everything on all the servers?
          If I do that, the request is not routed to other servers. Since the servlet finds
          the EJB locally, it never goes to the other servers, regardless of the algorithm.
          I have set up the "home-is-clusterable" and all other relevant properties for EJB
          deployment.
          Any ideas??
          Sharad
          

If the ejb is deployed on the server that is looking for the ejb, then it
          won't go network to use the ejb. That is a "big" WL optimization, and helps
          quite a bit for most apps.
          If you want to segregate the ejb and web functionality, you should probably
          consider running two distinct clusters (in 5.1 parlance).
          I suggest putting web and ejb together though and clustering that. Latency
          is lower. Scalability is not particularly affected. Configuration is much
          simpler.
          Peace,
          Cameron Purdy
          Tangosol, Inc.
          http://www.tangosol.com
          +1.617.623.5782
          WebLogic Consulting Available
          "Sharad Joshi" <[email protected]> wrote in message
          news:[email protected]...
          >
          > Hi,
          >
          > I have made a cluster of 3 weblogic servers. I would like to send a
          request to one
          > server (e.g. http://myserver1:7001/TestServlet). The servlet utilizes an
          EJB which
          > is not located and not deployed on myserver1 , but on other 2 servers in
          the cluster.
          > The algorithm is round-robin. It gives me a lot of errors (Impl... classes
          not found
          > etc etc).
          >
          > Do I have to deploy everything on all the servers?
          > If I do that, the request is not routed to other servers. Since the
          servlet finds
          > the EJB locally, it never goes to the other servers, regardless of the
          algorithm.
          > I have set up the "home-is-clusterable" and all other relevant properties
          for EJB
          > deployment.
          >
          > Any ideas??
          >
          > Sharad
          

Similar Messages

  • Weblogic 7.0 servlets deployment and clustering

              I am unable to deploy servlet application in WL 7.0 cluster configuration. I am
              using Iplanet NES 4.0 as my web server. I have deployed the weblogic proxy successfully
              in iplanet.
              The servlet application has class files in exploded form and are present under
              bin/applications/DefaultWebApp/WEB-INF/classes folder
              web.xml also exists in the above folder.
              I receive the following exception.
              <Apr 23, 2003 2:26:44 PM EDT> <Error> <socket> <000405> <Uncaught Throwable in
              processSockets
              java.lang.NullPointerException
              java.lang.NullPointerException
              at weblogic.servlet.internal.ServletResponseImpl.writeHeaders(ServletResponseImpl.java:968)
              at weblogic.servlet.internal.ServletOutputStreamImpl.sendHeaders(ServletOutputStreamImpl.java:239)
              at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java:121)
              at weblogic.servlet.internal.ServletOutputStreamImpl.commit(ServletOutputStreamImpl.java:481)
              at weblogic.servlet.internal.ChunkOutput.commit(ChunkOutput.java:259)
              at weblogic.servlet.internal.ChunkOutputWrapper.write(ChunkOutputWrapper.java:91)
              at weblogic.servlet.internal.ChunkWriter.write(ChunkWriter.java:37)
              at java.io.Writer.write(Writer.java:148)
              at java.io.PrintWriter.write(PrintWriter.java:208)
              Please help.
              

    This might be a known bug, please contact support and reference CR100572 to
              see if it is also a bug in WLS7.0
              sree
              "Manju" <[email protected]> wrote in message
              news:[email protected]...
              >
              > I am unable to deploy servlet application in WL 7.0 cluster configuration.
              I am
              > using Iplanet NES 4.0 as my web server. I have deployed the weblogic proxy
              successfully
              > in iplanet.
              > The servlet application has class files in exploded form and are present
              under
              > bin/applications/DefaultWebApp/WEB-INF/classes folder
              > web.xml also exists in the above folder.
              > I receive the following exception.
              > <Apr 23, 2003 2:26:44 PM EDT> <Error> <socket> <000405> <Uncaught
              Throwable in
              > processSockets
              > java.lang.NullPointerException
              > java.lang.NullPointerException
              > at
              weblogic.servlet.internal.ServletResponseImpl.writeHeaders(ServletResponseIm
              pl.java:968)
              > at
              weblogic.servlet.internal.ServletOutputStreamImpl.sendHeaders(ServletOutputS
              treamImpl.java:239)
              > at
              weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamI
              mpl.java:121)
              > at
              weblogic.servlet.internal.ServletOutputStreamImpl.commit(ServletOutputStream
              Impl.java:481)
              > at
              weblogic.servlet.internal.ChunkOutput.commit(ChunkOutput.java:259)
              > at
              weblogic.servlet.internal.ChunkOutputWrapper.write(ChunkOutputWrapper.java:9
              1)
              > at
              weblogic.servlet.internal.ChunkWriter.write(ChunkWriter.java:37)
              > at java.io.Writer.write(Writer.java:148)
              > at java.io.PrintWriter.write(PrintWriter.java:208)
              >
              >
              > Please help.
              >
              

  • Servlet error in clustering env.

              Guess this is something to do with the servlet clustering configuration. WLS(5.1, sp6) clustering run on Solaris 2.6 with jdk1.2.
              Do any one have any idea what could be the problems?
              =========================================================
              Mon Dec 11 15:58:19 EST 2000:<I> <ServletContext-General> Generated java file: /home/weblogic/5.1/ourserver/cl
              assfiles/jsp_servlet/_html/_libraries/_vieworg.java
              Mon Dec 11 15:58:20 EST 2000:<E> <ServletContextManager> Servlet request terminiated with Error
              weblogic.cluster.replication.BadStatusException: update found 4586531668847271614 but it is not the secondary
              at java.lang.Throwable.fillInStackTrace(Native Method)
              at java.lang.Throwable.fillInStackTrace(Compiled Code)
              at weblogic.rmi.extensions.AbstractRequest.sendReceive(Compiled Code)
              at weblogic.cluster.replication.ReplicationManager_WLStub.update(Compiled Code)
              at weblogic.cluster.replication.ReplicationManager.updateSecondary(Compiled Code)
              at weblogic.servlet.internal.session.ReplicatedSession.sync(Compiled Code)
              at weblogic.servlet.internal.session.ReplicatedSessionContext.sync(Compiled Code)
              at weblogic.servlet.internal.ServletRequestImpl.syncSession(Compiled Code)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(Compiled Code)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
              at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
              at weblogic.kernel.ExecuteThread.run(Compiled Code)
              --------------- nested within: ------------------
              weblogic.utils.NestedError: Tried to update secondary, but it thought it was the primary - with nested exceptio
              n:
              [weblogic.cluster.replication.BadStatusException: update found 4586531668847271614 but it is not the secondary]
              at java.lang.Throwable.fillInStackTrace(Native Method)
              at java.lang.Throwable.fillInStackTrace(Compiled Code)
              at java.lang.Throwable.<init>(Compiled Code)
              at java.lang.Error.<init>(Error.java:50)
              at weblogic.utils.NestedError.<init>(NestedError.java:23)
              at weblogic.servlet.internal.session.ReplicatedSession.sync(Compiled Code)
              at weblogic.servlet.internal.session.ReplicatedSessionContext.sync(Compiled Code)
              at weblogic.servlet.internal.ServletRequestImpl.syncSession(Compiled Code)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(Compiled Code)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
              at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
              at weblogic.kernel.ExecuteThread.run(Compiled Code)
              

    You should search in your log for message "Timed out server". If you see this,
              it means that your cluster is not healthy.
              Long gc is attributed to memory. If you don't have enough heap memory vm will
              take more time to do gc and during this time the server won't be able to do any
              work. If two servers are running gc's at different times, what you have is two
              servers in a cluster timing out each other at different times causing this
              problem to aggrevate.
              One way to solve the problem is by tuning the server so that you won't run into
              this problem.
              We designed the system differently to overcome this problem based on our
              experience with 4.5 and 5.1. It is not an easy thing to back port this change
              into a service pack.
              Yes, the fix to minimize the problem did go in 5.1
              Let me know if anything is unclear.
              Thanks
              - Prasad
              Joel Nylund wrote:
              > I have been working with weblogic support on this one for a while, they say
              > its fixed in 6.0 (which sucks for those of us still 4.5.1). They said it
              > happens less in sp13 for 4.51, im not sure if there is a similar patch for
              > 5.x. I would contact support. They say the reasons for this are one of :
              >
              > 1.) unreliable network
              > 2.) long gc loop or not enough memory (never understood this one)
              >
              > -Joel
              >
              > "Key Zhang" <[email protected]> wrote in message
              > news:[email protected]...
              > >
              > > Guess this is something to do with the servlet clustering configuration.
              > WLS(5.1, sp6) clustering run on Solaris 2.6 with jdk1.2.
              > >
              > >
              > > Do any one have any idea what could be the problems?
              > >
              > > =========================================================
              > > Mon Dec 11 15:58:19 EST 2000:<I> <ServletContext-General> Generated java
              > file: /home/weblogic/5.1/ourserver/cl
              > > assfiles/jsp_servlet/_html/_libraries/_vieworg.java
              > > Mon Dec 11 15:58:20 EST 2000:<E> <ServletContextManager> Servlet request
              > terminiated with Error
              > > weblogic.cluster.replication.BadStatusException: update found
              > 4586531668847271614 but it is not the secondary
              > > at java.lang.Throwable.fillInStackTrace(Native Method)
              > > at java.lang.Throwable.fillInStackTrace(Compiled Code)
              > > at weblogic.rmi.extensions.AbstractRequest.sendReceive(Compiled
              > Code)
              > > at
              > weblogic.cluster.replication.ReplicationManager_WLStub.update(Compiled Code)
              > > at
              > weblogic.cluster.replication.ReplicationManager.updateSecondary(Compiled
              > Code)
              > > at
              > weblogic.servlet.internal.session.ReplicatedSession.sync(Compiled Code)
              > > at
              > weblogic.servlet.internal.session.ReplicatedSessionContext.sync(Compiled
              > Code)
              > > at
              > weblogic.servlet.internal.ServletRequestImpl.syncSession(Compiled Code)
              > > at
              > weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
              > > at
              > weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
              > > at
              > weblogic.servlet.internal.ServletContextManager.invokeServlet(Compiled Code)
              > > at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
              > > at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
              > > at weblogic.kernel.ExecuteThread.run(Compiled Code)
              > > --------------- nested within: ------------------
              > > weblogic.utils.NestedError: Tried to update secondary, but it thought it
              > was the primary - with nested exceptio
              > > n:
              > > [weblogic.cluster.replication.BadStatusException: update found
              > 4586531668847271614 but it is not the secondary]
              > > at java.lang.Throwable.fillInStackTrace(Native Method)
              > > at java.lang.Throwable.fillInStackTrace(Compiled Code)
              > > at java.lang.Throwable.<init>(Compiled Code)
              > > at java.lang.Error.<init>(Error.java:50)
              > > at weblogic.utils.NestedError.<init>(NestedError.java:23)
              > > at
              > weblogic.servlet.internal.session.ReplicatedSession.sync(Compiled Code)
              > > at
              > weblogic.servlet.internal.session.ReplicatedSessionContext.sync(Compiled
              > Code)
              > > at
              > weblogic.servlet.internal.ServletRequestImpl.syncSession(Compiled Code)
              > > at
              > weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
              > > at
              > weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
              > > at
              > weblogic.servlet.internal.ServletContextManager.invokeServlet(Compiled Code)
              > > at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
              > > at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
              > > at weblogic.kernel.ExecuteThread.run(Compiled Code)
              > >
              

  • How to deploy jetspeed 2.1 in clustered env.

    pl. suggest me how to deploy jetspeed 2.1 in clustered env.
    thanks in advance
    abhiagar

    Strat Oracle em, browse your .war file . then in class loading configuration unchecked all except oracle.jdbc
    Hope it works for you.

  • HWF UI work list not loading in BPM worklist page (on clustered env)

    hello - Please reply directly as I am not on this alias.
    My SOA project (BPEL+HWF) is successfully deployed on the clustered env successfully.
    My BPEL process runs fine. But my HWF_UI taskflow fails to load on the browser (IE and Firefox, same error)
    I can see the composite & UI ear(enterprise app) on EMConsole & AdminConsole, and all configs/ settings looks ok.
    During execution, the work item pops up on the BPM worklist, but when I click on the work-item, the HWF_UI component is not loading....
    Not Found
    The requested URL /workflow/DOO_Simulation_ProjectUI/faces/adf.task-flow was not found.
    How do I overcome this or get some meaningfull error info.? The log files donot tell much..
    Caused By: oracle.adf.controller.ControllerException: ADFC-12002: The ADF Controller is unable to pop the top-level ADF unbounded task flow from the page flow stack.
    at oracle.adfinternal.controller.state.PageFlowStack.pop(PageFlowStack.java:184)
    Another question:
    How do I test if my HWF task flow component (UI) is installed & working / executing properly? any error logs/ error level settings?
    Edited by: ssondur on Apr 5, 2013 4:17 PM

    It is deploying correctly, the worklist app displays my instance. Btu when I click on my worklist item, the UI does not load or display. Below is the browser error and logfile error messages.
    -----Browser error-----
    Not Found
    The requested URL /workflow/DOO_Simulation_ProjectUI/faces/adf.task-flow was not found.
    ---Log file message---------
    Caused By: oracle.adf.controller.ControllerException: ADFC-12002: The ADF Controller is unable to pop the top-level ADF unbounded task flow from the page flow stack.
    at oracle.adfinternal.controller.state.PageFlowStack.pop(PageFlowStack.java:187. No
    8. No customization to env or app. This is a user defined (but standard) BPEL process deployed. The same app works fine on my local laptop & SOA env

  • How to debug with EJB+Servlet+J2ME at the same time?

    I am setting up an environment to compile Sun's Smart Ticket J2ME application. However, it run with application exception in the servlet or EJB. I tried to debug. But if I debug the servlet with Embedded AS in JDeveloper, I cannot debug the EJB since the EJB cannot deployed to the embedded AS. (EJB and Servlet must be co-existed in the same AS, at least using same JNDI)
    So is there any good approach to debug?
    email: [email protected]

    Hi Marvin,
    If the EJB cannot be deployed to the embedded AS, then you should probably use remote debugging to debug the servlet and EJB in the stand-alone AS.
    Look in the Help for topics about remote debugging the OC4J application server. (I'd give you the exact topic title, but I'm at home for the holidays and I don't have the latest JDev on this machine.)
    The Help topic describes it in more details, but the basic steps are as follows:
    1. Launch the AS in debug mode by inserting some debugging options on the command line used to start up the AS.
    If you are using OJVM, then the debugging options are
    -XXdebug,port4000,detached
    If you are using another JVM (for example HotSpot), then the debugging options are
    -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=4000,suspend=n
    2. Set your project for remote debugging by checking the Remote Debugging checkbox on the Debugging - Remote panel of the Project Settings dialog. Also you should select the "Attach to OJVM" radio button if you are using OJVM or the "Attach to JPDA" radio button if you are using another JVM (for example HotSpot).
    3. Click the debug button in JDev and enter the host and port where the AS is running (leave host blank if the AS is on the same machine as J[i]Long postings are being truncated to ~1 kB at this time.

  • Database Poller issues in Clustered env

    Hi,
    I am running Oracle BPEL 10.1.3.4 on top of Weblogic version 9.x in a clustered env. I created a simple database poller BPEL process (for target table in Oracle database) with below parameters:
    Max Raise Size: 1
    Max Transaction Size: 2
    Polling Interval:30
    Distributed Polling is enabled
    All other BPEL engine and domain level parameters have default values.
    In my clustered env two instances of database poller BPEL process are running on diff nodes. Now I populated my table with 1000 records in one go. According to parameters I expect:
    - In each polling interval max 2 record will be processed by database poller BPEL process running on single node. And there will be 2 instances of this bpel process as max raise size is 1. Same I expect for database poller BPEL process running on another node. So overall 4 records should be processed in each polling interval and 4 instances of BPEL processes should be visible in BPEL console. But in actual its always 2.
    Is I am missing something here? Won't the load balancer distributes records to BPEL processes on both nodes equally?
    Also then I raise Max transaction size to higher value e.g. 20. But in this case after processing nearly 1/3 rd of records, the BPEL process stopped picking up any further records. Is there any known issue where Adapter stops picking any further database records if transaction size limit is higher?
    thanks
    Ankit
    Edited by: AnkitAggarwal on 22-Feb-2010 03:36

    Hi Ankit,
    I have Oracle BPEL env11.1.1.2.0 clustered over 2 nodes.
    I am facing a similar issue. In my scenario I have Bpel (with DB poller) and its deployed on the cluster. And I am connected to DB via Multi data source (MDS-1) with only one datasource (DS-1) configured in it.
    So whenever I update the table which is being polled, in some cases I have TWO instances and in some cases I have ONE Instance running. My requirement is to have only one instance running every time the DB poller is initiatied.
    Kindly help me out.
    Thank You
    Best Regards
    Prasanth

  • Dynamic update of EJB/Web deployment descriptors

    In 8.1SP3, is there any provision to allow for dynamic update of EJB/Web deployment descriptors? I'm specifically looking at env var changes.
    I noticed that there are some mentions of the ability to dynamically update deployment descriptors, but it appears that the general facility has been deprecated, and they've incorporated all of the WebLogic-specific descriptor information directly into the console.
    When I dig through the JMX namespace and some of the MBean classes, I also see mentions of "deployment descriptor editors", but it's not clear how to utilize that.
    I'm aware of the fact that my application would have to be aware of possible dynamic updates to the descriptors, so I'd have to be able to implement some sort of listener for that.

    I have the same question but for a different purpose. I am part of a hosting group and we have app teams that have defined init-params in the web.xml that have to be changed as the app is promoted up through test environments and ultimately to production - only we need to be able to do this WITHOUT "cracking open" the archive.
    I was hoping to be able to script something to do the update after deployment.
    So any help at all would be appreciated. In the meantime will continue to poke around in the WLST and MBean docs.
    Thanks,
    Ed

  • Deploying in cluster env

    HI,
    we have a clustered env for our production system. i defined a track and set up the runtime systems. since our production box is a clustered environoment, i specified the SDM hostname as the host on which the central instance is running.
    so when i try to transport, until QA everything is  fine (as they are non - clustered), but while trying to import particluar assembly to production, the error shown in deploy log is
    Error: An error occured while starting a cluster instance.
    Error: There is no control instance running in the cluster:
    Name:JM_T1137182930718_hostname |Host:hostname |State:5|
    Info:|Name:JC_hostname                      |Host:hostname                         |State:5|
    Info:Please check if there are running cluster instances.
    do i need to configure something in SDM of our central instance?
    please help us.
    Thanks

    This sounds like a bug to me. I'd suggest you contact [email protected]
    -- Rob
    Lars M wrote:
    We are running WL 8.1 SP2
    When the administration server is running, our ear is deployed to a cluster (2
    managed instances on 2 different nodes) using stage mode, and everything is fine.
    The problem:
    Afterwards, if we try to start a managed server when the administraion server
    is down, the managed server cannot activate the deployed application. It reports
    that the application path is invalid.
    The application path stored in the config.xml (and msi-config.xml) is the upload
    path of the administration server (e.g. DOMAIN_HOME/adminserver/upload/OurApp.ear)
    - and of course this path is only available on the node where the admin server
    is running - and NOT on another hw node where the managed server is running.
    Why is the managed server trying to open the original "source" application?
    Especially when the application is staged?
    Thanks
    Lars

  • JMS bridge is not working in clustered env

              We have set up a JMS bridge between WLS7SP3 and WLS8.1. It works very well in
              stand alone server env (testing env). However, we cannot get it to work on clustered
              env (preprod env). Anyone has experienced working with clustered env? If so,
              please help!
              Thanks.
              

    I forgot to say, we are using WLS8.1 SP1
              "Pete Inman" <[email protected]> wrote in message
              news:[email protected]...
              > If you are in a clusterd environment and you deploy a bridge to the WHOLE
              > cluster it does not work and will not find the adapter. If you deploy to
              the
              > INDIVIDUAL cluster members it will work.
              >
              > We have a cluster with 4 managed servers, deploy to whole cluster - no
              > bridge working, deploy to Server1,2,3,4 bridges work fine.
              >
              > I have a case logged with BEA on this topic.
              >
              > "Tom Barnes" <[email protected]> wrote in message
              > news:[email protected]...
              > > "Not working" is too little information. I suggest
              > > that you start with the messaging bridge FAQ. There is
              > > a link to it here:
              > >
              > > http://dev2dev.bea.com/technologies/jms/index.jsp
              > >
              > > Then post with traces, exceptions, configuration, etc, if
              > > you are still having trouble.
              > >
              > > Tom, BEA
              > >
              > > jyang wrote:
              > >
              > > > We have set up a JMS bridge between WLS7SP3 and WLS8.1. It works very
              > well in
              > > > stand alone server env (testing env). However, we cannot get it to
              work
              > on clustered
              > > > env (preprod env). Anyone has experienced working with clustered env?
              > If so,
              > > > please help!
              > > >
              > > > Thanks.
              > >
              >
              >
              

  • How to replicate the EJB state between a clusters

    We had developed shopping card EJB and deployed to a oracle AS clusters, and we want the EJB replicated its state such that the client is transparent to clusters failover. However, we try many times also failure.
    Any brothers and sisters know how to do it????

    You can check the chapter - "EJB Clustering" http://ftp.unex.es/oradoc/form_y_report_10g/web.904/b10324/toc.htm
    from Oracle Application Server Containers for J2EE Enterprise JavaBeans Developer's Guide

  • Serialization Exception with a MailSession in a WLS 9.1 Clusterred Env.

    I have a WLS 9.1 cluster of 2 machines. My EJB's are targetted to both
    machines in the cluster, and I have a single WLS MailSession that is
    targetted to both machines in the cluster.
    One of the EJB's is responsible for sending emails. Every so often I get a
    NotSerializableException when the EJB looksup the mail session. After some
    diagnosis it appears that every once in a while the JNDI lookup for the mail
    session returns the MailSession from the opposite machine in the cluster:
    IE: the EJB running on server 1, gets the MailSession from server 2, and
    vice-versa.
    When the same EJB is running in a non clustered env, there are no problems.
    And the problem in the cluster is intermittent - sometimes the lookup
    succeeds and the EJB gets a handle to the local MailSession object, and
    sometimes it fails.
    Has anyone else experienced this problem? Is this a known problem? If so,
    are there any patches for it?
    Thanks,
    Brett
    The exception is:
    javax.naming.ConfigurationException [Root exception is
    java.rmi.MarshalException: error marshalling return; nested exception is: \n
    java
    .io.NotSerializableException: javax.mail.Session]\n at
    weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTra
    nslator.java:46)\n at
    weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:78)\n
    at weblogic.
    jndi.internal.WLContextImpl.translateException(WLContextImpl.java:421)\n at
    weblogic.jndi.internal.WLContextImpl.lookup(WLCon
    textImpl.java:377)\n at
    weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:362)\n at
    javax.naming.InitialConte
    xt.lookup(InitialContext.java:351)\n at
    com.certapay.ejb.Mailer.send(Mailer.java:55)

    I am having exact same problem (albeit accessing the mail session through spring wrapper). Has anyone got this to work? If not, looks liek a bug in BEA :-).
    Anuj

  • How to access contextRoot in Servlet deployed in an ear in Weblogic 81

    Hi,
    I need to access the contextRoot or webapp name from a startup servlet deployed in WebLogic. I've tried the following;
    getServletContext().getRealPath("/") return null.
    getServletContext().getServerInfo() returns Weblogic 8.1 service pack 3...
    getServletContext().getServletContextName() display the <display-name> value from my web.xml.
    What I want is the <context-root> value in the EARs application.xml.
    I tried the following JNDI lookup and the lookup failed but the error message contained the contextRoot.
    String name = (String) jndiContext.lookup("java:/comp/env/namespace");
    log.info("jndiContextlookup namespace = "+name);
    Any help would be GREATLY appreciated. This should be easy!!
    Shane

    Hi VR
    From Weblogic Admin Console, Deployments, on right side click on the link named with your EAR Application. It opens detailed page with more tabs. Click on the tab named Targets. Here select your WebService module and click on Change Targets button. Uncheck the server where it is targetted (Deployed), click on Yes. And activate the changes.
    Thanks
    Ravi Jegga

  • EJB/8i deployment and SSL

    Hello JDev Team,
    I want to use SSL encryption and authentication in my InfoSwing BC4J Oracle8i application.
    For Local Deployment it's quite transparent you just define appropriate LocalConnection class and SSL works fine.
    But for EJB/8i Deployment it's not that clear. As I understand EjbConnection class can accept user/password authentication only.
    Do I have to extend oracle.dacf.dataset.connections.Connection class and create my own SSL-oriented Connection with my own setConnectionSpecificEnvs method? Is that a possibility?
    Could you please give me some directions on this case?
    Thanks,
    Victor
    null

    Please check the "How to's" in the JDeveloper section of OTN (http://otn.oracle.com). That should shed some light.
    Happy researching,
    Rajesh

  • Reg: How to know name of server in which ejb is deployed

    Hello:
    Can anyone tell me what the best way to know the name of the server in which
    ejb is deployed inside bean class.
    Thanks,
    Vijay

    But if i remember using java.net inside is a violation of spec.. and whats
    the reason u want to know ant the network level things inside a EJB..
    Amar
    "Arjuna Chala" <[email protected]> wrote in message
    news:3c644718$[email protected]..
    if you want to know the system name then the call
    System.out.println(java.net.InetAddress.getLocalHost().getHostName())should
    work.
    "VijayKumar" <[email protected]> wrote in message
    news:3c643a2c$[email protected]..
    Hello:
    Can anyone tell me what the best way to know the name of the server
    in
    which
    ejb is deployed inside bean class.
    Thanks,
    Vijay

Maybe you are looking for

  • HT3819 How to use homesharing between different user accounts on the same iMac?

    I find plenty of articles about homesharing on iTunes between computers, but not between two different user accounts on the same iMac.  Any advice or direction to an existing artical is greatly appreciated.  I'm knew to the Mac and still have Windows

  • Problem in sending images

    Hi All, I have a problem in sending HTML mail with images.I am able to get the image in my mail if i place the image part and the html part in two different tables I am able to get the image along with the html message but if i use the following code

  • Oracle forms 9i

    Hi Guys, i m getting difficulty in running forms9i demos as even though i have installed all the required components like forms 9iAS services. But still when i run 9iforms demo in explorer with servlet it doesnt show the forms.

  • USING SLIDES COPIED ON A CD ON NON-MAC COMPUTERS

    I copied an iPhoto alblum on a blank CD.  I took it to a friends house so they could view the photos as a slide show.  It wouldn't work. Any ideas?  I have an older version of iPhoto.  Are there any other options to share with non-Mac user friends>

  • AT commands and Com port

    Connection to the com port is ok and i can send AT commands. But i need to make a few AT commands one after another. And i think i am getting errors..anyone can help?                     outputStream.write("AT+CMGF=0\r".getBytes());