JNDI Error

Hi Vicky,
Whn i keep Web tier and app tier in the application server itself, i am getting the bean reference. but its not in the case of web server to app server.
Web server(JSP, Custom tags) --> Application Server(EJB) --> Data Base.
In this case im not getting the bean reference and the initial context values.
The following code im written in the JSP Page
InitialContext ctx;
Context environment;
Properties prop;
try
String initCtxFactory = getInitParameter (Context.INITIAL_CONTEXT_FACTORY);
String provideURL = getInitParameter(Context.PROVIDER_URL);
prop = new Properties();
prop.put(Context.INITIAL_CONTEXT_FACTORY, initCtxFactory);
prop.put(Context.PROVIDER_URL, provideURL);
ctx = new javax.naming.InitialContext(prop);
common.DBHome home = (common.DBHome)ctx.lookup("java:comp/env/ejb/DBHome");
common.DB stoProc = home.create();
}catch(Exception ex)
System.out.println("Exception Error " + ex );
Thanks
Jai

Hi Jaya,
Have you tried using EJB References?
For using the 'java:comp/env' context for lookup, you will have to create ejb references in your deployment descriptors using <EJB-REF> tags.
The structure of EJB-REF tag is as follows:
     <ejb-ref id="EjbRef_1">
          <description></description>
          <ejb-ref-name>ejb/DBHome</ejb-ref-name>
          <ejb-ref-type>Entity</ejb-ref-type>
          <home>com.ex.ejb.DBHome</home>
          <remote>com.ex.ejb.DB</remote>
</ejb-ref>
The application server binds the references to the correct JNDI names at runtime.

Similar Messages

  • JNDI Error when Oracle BPM Process invokes an EJB Service Adapter

    Hi All,
    I am trying to invoke an EJB Service from my Oralce BPM process/workflow. I have provided the JNDI name in EJB service adapter in Jdeverloper also. Even though I have configured the JNDI in weblogic server properly, i am getting some JNDI invocation error (FabricInvocationException) as below.
    Can somebody help me on this.
    Non Recoverable System Fault :
    *<bpelFault><faultType>0</faultType><remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>oracle.fabric.common.FabricInvocationException: Exception creating jndi context for ejb invocation:</summary></part><part name="detail"><detail>Unable to resolve 'XXXXXXInterfaceRemote'. Resolved ''</detail></part><part name="code"><code>null</code></part></remoteFault></bpelFault>*
    Edited by: 920456 on Apr 2, 2013 2:09 AM

    Hi All,
    Still i am facing the above stated challenge, i am getting a JNDI error when i am trying to call it from Oracle BPM process.
    can somebody tell me Does Oracle SOA Suite - EJB Adapter version 3.0 has any runtime bugs ? etc.
    Bcoz in the below link it is given something like EJB Version 2 Are Not Supported During Runtime. So, i want to check whether any bugs.
    [Oracle SOA EJB Adapter Version bugs|http://www.oracle.com/technetwork/middleware/docs/aiasoarelnotesps5-1455925.html#intadapt]
    Regards,
    Satya

  • Service Pack and JNDI Errors

    Hi all, hope someone can help. I just upgraded to WL60 with SP1 and now all my
    EJB are getting JNDI errors cant resolve name. Path and Classpaths have not changed,
    in fact nothing has changed expect for the upgrade. Can anyone tell me what has
    changed. I looked at the docs but didn't see anything significant. Thanks in
    advance. JAS

    Can you show us the error messages and asscoiated stack traces and the code
    that is producing them?
    JAS wrote:
    Forgot to mention, I was using WL6.0 before.
    "JAS" <[email protected]> wrote:
    Hi all, hope someone can help. I just upgraded to WL60 with SP1 and
    now all my
    EJB are getting JNDI errors cant resolve name. Path and Classpaths have
    not changed,
    in fact nothing has changed expect for the upgrade. Can anyone tell
    me what has
    changed. I looked at the docs but didn't see anything significant.
    Thanks in
    advance. JAS

  • Jndi error in crystal report connecting to jsp

    hi
    getting error while connecting my report to jsp
    Error is JNDI error means i m unable to connect to oracle server using my jsp
    if any one have answer than provide me
    thanks& regards
    ramesh

    Rethink your design. Unless this is a trivial application, a JSP should not be initiating database connections (or really performing any JNDI lookups at all). JSP's are part of the view. In model-view-controller architectures, which normal web applications attempt to implement, it is the model's responsibility to connect to a database to fetch relevant data. In its simplest form, this means you at least write a helper class to perform the JNDI DataSource lookup and return the data via a public method. Ideally, you have enough of these classes that they are not simply helper classes, but rather a full-fledged model tier. See tutorials here and on the net about MVC architecture.
    As to your specific issue, it could be any number of issues. Are your deployment descriptors (web.xml, serverl.xml, weblogic.xml, etc.) set-up correctly? Is there a typo between the names declared? What does your JNDI lookup URI contain? Is there an error there? What is the code you are using to perform the lookup? What does the actual exception stack trace contain? We will need some or all of the above information to actually diagnose the source of the error.
    However, first, redesign your JSP. :^)
    - Saish

  • "redeploying of ejbs is causing jndi errors

    "we r having problems with redeploying an ejb jar file(1 bean) on the 6.0SP1 server cluster.there are 2 servers running on separate sun boxes and the autodeployment is turned off. the method i followed for redeployment was1.Undeployed the bean 2.added the changed ejb jar file to the applications directory3.redeployed the beanResult:1. Bean got undeployed on both servers.2. Bean got redeployed on only one server3. There was a stack trace with jndi errors on the other server.When i restart the server on which the deployment failed, the bean gets deployed when the server starts up.!Is this a server bug?The stack trace is given belowjava.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang.ClassNotFoundException: com.privacycouncil.tp.ejb.TPGeneratorBeanEOImpl_WLStub: This error could indicate that a component was deployed on a cluster member but not other members of that cluster. Make sure that any component deployed on a server that is part of a cluster is also deployed on all other members of that clusterjava.lang.ClassNotFoundException: com.privacycouncil.tp.ejb.TPGeneratorBeanEOImpl_WLStub: This error could indicate that a component was deployed on a cluster member but not other members of that cluster. Make sure that any component deployed on a server that is part of a cluster is also deployed on all other members of that clusterat weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:143)at weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:87)at weblogic.common.internal.WLObjectInputStream.resolveClass(WLObjectInputStream.java:49)at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:918)at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)at java.io.ObjectInputStream.readObject(ObjectInputStream.jav
              

    "we r having problems with redeploying an ejb jar file(1 bean) on the 6.0SP1 server cluster.there are 2 servers running on separate sun boxes and the autodeployment is turned off. the method i followed for redeployment was1.Undeployed the bean 2.added the changed ejb jar file to the applications directory3.redeployed the beanResult:1. Bean got undeployed on both servers.2. Bean got redeployed on only one server3. There was a stack trace with jndi errors on the other server.When i restart the server on which the deployment failed, the bean gets deployed when the server starts up.!Is this a server bug?The stack trace is given belowjava.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang.ClassNotFoundException: com.privacycouncil.tp.ejb.TPGeneratorBeanEOImpl_WLStub: This error could indicate that a component was deployed on a cluster member but not other members of that cluster. Make sure that any component deployed on a server that is part of a cluster is also deployed on all other members of that clusterjava.lang.ClassNotFoundException: com.privacycouncil.tp.ejb.TPGeneratorBeanEOImpl_WLStub: This error could indicate that a component was deployed on a cluster member but not other members of that cluster. Make sure that any component deployed on a server that is part of a cluster is also deployed on all other members of that clusterat weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:143)at weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:87)at weblogic.common.internal.WLObjectInputStream.resolveClass(WLObjectInputStream.java:49)at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:918)at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)at java.io.ObjectInputStream.readObject(ObjectInputStream.jav
              

  • JNDI error while generating pdf from crystal reports in java

    Hi, i want to generate PDF from crystal reports in java. I have the .PDF file with database configured into the report. Following details are available in report.
    1. Server Name      = testdb
    2. Database Name  = testdb
    3. User
    4. Password
    I am using CR XI.
    In CRConfig.xml i had given following details.
    <JDBC>
         <CacheRowSetSize>100</CacheRowSetSize>
         <JDBCURL>jdbc:oracle:thin:@192.218.216.102:1521://TESTDB</JDBCURL>
         <JDBCClassName>oracle.jdbc.driver.OracleDriver</JDBCClassName>
         <JDBCUserName>user</JDBCUserName>
         <JNDIURL>password</JNDIURL>
         <JNDIConnectionFactory></JNDIConnectionFactory>
         <JNDIInitContext>/</JNDIInitContext>
         <JNDIUserName>testdb</JNDIUserName>
         <GenericJDBCDriver>
              <Default>
                   <ServerType>UNKNOWN</ServerType>
                   <QuoteIdentifierOnOff>ON</QuoteIdentifierOnOff>
                   <StoredProcType>Standard</StoredProcType>
                   <LogonStyle>Standard</LogonStyle>
              </Default>
         </GenericJDBCDriver>
    </JDBC>
    When i am calling from java as standalone, i am getting following error.
    JRCAgent1 detected an exception: Error finding JNDI name (testdb)
    at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source)      at com.businessobjects.reports.sdk.b.i.if(Unknown Source)
    Can anyone let me know where is the problem?

    Actually, the question boils down to; does the framework support the fonts?
    I believe that my question re. this working in the designer was valid. The designer does not use the framework, so if it works there, it is either a framework issue or a runtime print engine issue.
    I believe if you use the code below, it will list fonts available to the framework:
    foreach(FontFamily ff in FontFamily.Families)
    System.Diagnostics.Debug.WriteLine(ff.Name);
    For more information see kbase [1198306 - Crystal Report displaying incorrect font in Microsoft Visual Studio .NET|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133393338333333303336%7D.do]
    Ludek

  • JNDI error when modifying schema

    While modifying some objectclasses on IPlanet LDAP using JNDI I get the following error:
    [ERROR] [LDAP: error code 1 - The objectclass is malformed. Missing opening "(" around allowed attributes]
    Note that this happens on certain object classes and not in others but I can not determine a pattern. I also get the same error when removing certain objectclasses (it works ok with others).
    I'm using the code given as an example in the Java tutorial to modify the schema.
    Any input would be apreciated.
    Regards.
    -- Paul

    Pls pass either of following two properties to the environment parameter of InitialDirContext:
    New property name: com.sun.jndi.ldap.netscape.schemaBugs=true
    Old property name: com.sun.naming.netscape.schemaBugs=true
    They are used by Sun's JNDI LDAP driver to work with Netscape LDAP server.

  • Reg. JNDI error when starting monitor server

    Hi all,
    I am installing CCMS for our CRM4.0 Server. At one point of the installation, it asks to start the monitor server. When I start the monitor.bat it throws a error saying "<b>Cannot Connect to Cluster , beacuse of null. ID003814 : JNDI exception in getinitialContext of InitialContextFactoryImpl</b>".
    Can anyone please throw some light on this?
    Thanks in advance,
    Krishna Karthik P

    Stop the existing IS & AS as root or kill the (ois_server,aaa_server) process manually since the pid, pid_watchdog process are catch hold by root user. Logon as normal oracle user and issue the command start_ois_sever_nptl.

  • ID, IR error when try to login (JNDI error) during SSL configuration

    I'm in the process to configure SSL on SAP J2EE Engine. I'm following the document of SAP library and "Enabling SSL and client certificates on SAP J2EE Engine" by Angel Dichev of RIG, SAP Labs.
    I deployed the SAP Java Cryptographic Toolkit and update the unlimited strength jurisdiction policy files.
    As per document, I changed the default setting from SSL provider service for the Dispatcher from manual start to always start.
    After this step, I have problems to log in IR and ID ( SLD and RWB are working), getting the follow errors ( after click on ID or IR, got the login screen for user/pwd and after entering getting the error):
    "Unable to map from JNDI delivered class com.sap.engine.services.jndi.persistent.UnsatisfiedReferenceImpl to class com.sap.aii.ib.sbeans.login.LoginServiceHome registered during login service"
    Any solution of this problem?
    Regards
    Amar

    Thanks Ravi
    I created the certificate and then it work for one day. Today morning, i received the certificate request response from SAP trust centre and imported into our server.
    I have inported into Key storage of visual admin as per guide. Is there any other place to check it?
    Again logon to IB fail with the same error.
    Any idea?
    Regards
    Amar

  • Cluster jndi error

              Hi:
              we have deploye samples cluster ejb teller and account to a cluster environment..one
              admin server and one manager server in the same machine(use multi-ip)..another
              manager server on another machine..two manager server join a cluster,we use weblogic6.0sp2,when
              we want see manager server's jndi tree .got the error messages..and I read from
              bea's online document..in a cluster environment ..any join cluster's manager server
              have the same jndi tree..but if admin server not in the cluster ,it's jndi tree
              will the same with the other manager servers?and how to deploye ejb to the cluster
              correclly?should i set call-by-reference to false in weblogic-ejb.xml?thanks your
              comment...
              javax.naming.CommunicationException. Root exception is java.rmi.UnmarshalException:
              failed to unmarshal interfa
              ce javax.naming.NamingEnumeration; nested exception is:
              java.lang.ClassNotFoundException: examples.cluster.ejb.teller.TellerBeanEOImpl_WLStub:
              This error could
              indicate that a component was deployed on a cluster member but not other members
              of that cluster. Make sure th
              at any component deployed on a server that is part of a cluster is also deployed
              on all other members of that cl
              uster
              java.lang.ClassNotFoundException: examples.cluster.ejb.teller.TellerBeanEOImpl_WLStub:
              This error could indicat
              e that a component was deployed on a cluster member but not other members of that
              cluster. Make sure that any c
              omponent deployed on a server that is part of a cluster is also deployed on all
              other members of that cluster
              at weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:143)
              at weblogic.rjvm.MsgAbbrevInputStream.resolveClassOverride(MsgAbbrevInputStream.java:84)
              at weblogic.common.internal.ChunkedObjectInputStream$NestedObjectInputStream.resolveClass(ChunkedObjectI
              nputStream.java:276)
              at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:918)
              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
              at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
              at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262)
              at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
              at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
              at java.io.ObjectInputStream.inputArray(ObjectInputStream.java:1142)
              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:374)
              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
              at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:106)
              at weblogic.common.internal.ChunkedObjectInputStream.readObjectWL(ChunkedObjectInputStream.java:122)
              at weblogic.jndi.internal.BindingEnumeration.readExternal(BindingEnumeration.java:55)
              at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:103)
              at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:114)
              at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:47)
              at weblogic.rmi.internal.BasicRemoteRef.unmarshalReturn(BasicRemoteRef.java:136)
              at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:251)
              at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:225)
              at weblogic.jndi.internal.ServerNamingNode_WLStub.listBindings(ServerNamingNode_WLStub.java:374)
              at weblogic.jndi.internal.WLContextImpl.listBindings(WLContextImpl.java:293)
              at javax.naming.InitialContext.listBindings(InitialContext.java:399)
              at weblogic.management.console.pages._jndi._nav.printContext(_nav.java:74)
              at weblogic.management.console.pages._jndi._nav.printContext(_nav.java:80)
              at weblogic.management.console.pages._jndi._nav.printContext(_nav.java:80)
              at weblogic.management.console.pages._jndi._nav.printContext(_nav.java:80)
              

              Just the same happens to me. I think the problem is that the management server
              can not download the ejb stub from the other server. If you deploy the ejb also
              in the management server you solve the problem, but that's not the way it should
              work... I think this is a bug of weblogic.
              I've also found another nice one like that. I have 2 machines in cluster, and
              a third one out of the cluster, all of them running weblogic. A class running
              in this last weblogic makes a call to a bean that is deployed in the cluster (wants
              to act just as a client, like if you were testing your ejb from your machine against
              the servers). Then the same problem occurs, the client can not download the class
              as any RMI client does, showing you the same error. Actually any client not running
              within weblogic can do that, but when the weblogic classloader is in the middle
              that does not work.
              "weber" <[email protected]> wrote:
              >
              >Hi:
              > we have deploye samples cluster ejb teller and account to a cluster
              >environment..one
              >admin server and one manager server in the same machine(use multi-ip)..another
              >manager server on another machine..two manager server join a cluster,we
              >use weblogic6.0sp2,when
              >we want see manager server's jndi tree .got the error messages..and I
              >read from
              >bea's online document..in a cluster environment ..any join cluster's
              >manager server
              >have the same jndi tree..but if admin server not in the cluster ,it's
              >jndi tree
              >will the same with the other manager servers?and how to deploye ejb to
              >the cluster
              >correclly?should i set call-by-reference to false in weblogic-ejb.xml?thanks
              >your
              >comment...
              >
              >
              >
              >
              >
              >
              >javax.naming.CommunicationException. Root exception is java.rmi.UnmarshalException:
              >failed to unmarshal interfa
              >ce javax.naming.NamingEnumeration; nested exception is:
              >java.lang.ClassNotFoundException: examples.cluster.ejb.teller.TellerBeanEOImpl_WLStub:
              >This error could
              >indicate that a component was deployed on a cluster member but not other
              >members
              >of that cluster. Make sure th
              >at any component deployed on a server that is part of a cluster is also
              >deployed
              >on all other members of that cl
              >uster
              >java.lang.ClassNotFoundException: examples.cluster.ejb.teller.TellerBeanEOImpl_WLStub:
              >This error could indicat
              >e that a component was deployed on a cluster member but not other members
              >of that
              >cluster. Make sure that any c
              >omponent deployed on a server that is part of a cluster is also deployed
              >on all
              >other members of that cluster
              >at weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:143)
              >at weblogic.rjvm.MsgAbbrevInputStream.resolveClassOverride(MsgAbbrevInputStream.java:84)
              >at weblogic.common.internal.ChunkedObjectInputStream$NestedObjectInputStream.resolveClass(ChunkedObjectI
              >nputStream.java:276)
              >at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:918)
              >at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
              >at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
              >at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
              >at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
              >at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262)
              >at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
              >at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
              >at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
              >at java.io.ObjectInputStream.inputArray(ObjectInputStream.java:1142)
              >at java.io.ObjectInputStream.readObject(ObjectInputStream.java:374)
              >at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
              >at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:106)
              >at weblogic.common.internal.ChunkedObjectInputStream.readObjectWL(ChunkedObjectInputStream.java:122)
              >at weblogic.jndi.internal.BindingEnumeration.readExternal(BindingEnumeration.java:55)
              >at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:103)
              >at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:114)
              >at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:47)
              >at weblogic.rmi.internal.BasicRemoteRef.unmarshalReturn(BasicRemoteRef.java:136)
              >at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:251)
              >at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:225)
              >at weblogic.jndi.internal.ServerNamingNode_WLStub.listBindings(ServerNamingNode_WLStub.java:374)
              >at weblogic.jndi.internal.WLContextImpl.listBindings(WLContextImpl.java:293)
              >at javax.naming.InitialContext.listBindings(InitialContext.java:399)
              >at weblogic.management.console.pages._jndi._nav.printContext(_nav.java:74)
              >at weblogic.management.console.pages._jndi._nav.printContext(_nav.java:80)
              >at weblogic.management.console.pages._jndi._nav.printContext(_nav.java:80)
              >at weblogic.management.console.pages._jndi._nav.printContext(_nav.java:80)
              >
              

  • JNDI Error  when calling ejb

    I've create a ear file include a war and jar
    when I call the servlet that call a ejb
    the following error prompt out:
    javax.naming.NameNotFoundException: Unable to resolve gendocnum. Resolved:
    '' Unresolved:'gendocnum' ; remaining name ''
    <<no stack trace available>>
    [2001/04/09 12:14:27, 0] nmbd/nmbd_namequery.c:query_name_response(93)
    query_name_response: Multiple (2) responses received for a query on subnet
    192.168.1.222 for name EDP<1d>. This response was from IP 192.168.1.134
    Please help
    Regards,
    Angel
    p.s. 'gendocnum' is the JNDI name of ejb

    It seems that u need a ejbPostCreate with the same parameters as ejbCreate:
    public Integer ejbCreate(Integer id) {
    setId(id);
    return id;
    public void ejbPostCreate(Integer id) {
    }

  • Cluster JNDI error in SOAP

              I am trying to deploy a Web Service EAR using stateless session beans across 2
              servers in a cluster. The Admin server is not part of the cluster. I am using
              WLS 7.0 SP1. I am getting this error in one of the server traces :
              <Conflict start: You tried to bind an object under the name XscGenericSOAPInterfaceXscGenericSOAPInterface.jarSOAPBusinessServiceOneEJB_EO
              in the JNDI tree. The object you have bound from striker.mk.telcordia.com is
              non clusterable and you have tried to bind more than once from two or more servers.
              Such objects can only deployed from one server.>
              How do I proceed?
              Thanks for all the help from this newsgroup.
              

    Hi,
              SOAP has nothing to do with JMS, althout a SOAP message can be sent into
              JMS, nor really do EJBs have anything to with JMS directly, and this is
              the jms newsgroup. I think your problem is EJB related, try
              weblogic.developer.interest.ejb, or, since your using a web-service, try
              the weblogic.developer.interest.webservices newsgroup.
              Tom
              Suteertha Guha wrote:
              > I am trying to deploy a Web Service EAR using stateless session beans across 2
              > servers in a cluster. The Admin server is not part of the cluster. I am using
              > WLS 7.0 SP1. I am getting this error in one of the server traces :
              >
              > <Conflict start: You tried to bind an object under the name XscGenericSOAPInterfaceXscGenericSOAPInterface.jarSOAPBusinessServiceOneEJB_EO
              > in the JNDI tree. The object you have bound from striker.mk.telcordia.com is
              > non clusterable and you have tried to bind more than once from two or more servers.
              > Such objects can only deployed from one server.>
              >
              > How do I proceed?
              >
              > Thanks for all the help from this newsgroup.
              

  • JNDI error Please help.

    I'm developing an J2EE based web application which uses JSP and EJB's.
    When I'm trying to access one EJB from a JSP page I get the following errors:
    javax.naming.NamingException: Error instantiating web-app JNDI-context: No location specified and no suitable instance foun
    for the ejb-ref 'ejb/MasterFacade', an EJB with matching home and remote name was found, but it was an Entity, not a Session
    java.lang.reflect.InvocationTargetException: javax.ejb.EJBException
    at thinksol.hms.action.cptAction.execute(cptAction.java:105)
    at java.lang.reflect.Method.invoke(Native Method)
    at thinksol.hms.controller.Controller.processRequest(Controller.java:74)
    at thinksol.hms.controller.Controller.doGet(Controller.java:95)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:195)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:696)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:281)
    at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:195)
    at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:188)
    at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
    at __jspPage0_cptmasterForm_jsp._jspService(__jspPage0_cptmasterForm_jsp.java:39)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:696)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:281)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    The corresponding entry in my "web.xml" file is
              <ejb-ref>
              <ejb-ref-name>ejb/MasterFacade</ejb-ref-name>
              <ejb-ref-type>Session</ejb-ref-type>
              <home>thinksol.hms.facade.MasterFacadeHome</home>
              <remote>thinksol.hms.facade.MasterFacade</remote>
              </ejb-ref>
    and the entry in "ejb-jar.xml" file is:
              <session>
              <ejb-name>MasterFacadeEJB</ejb-name>
              <home>thinksol.hms.facade.MasterFacadeHome</home>
              <remote>thinksol.hms.facade.MasterFacade</remote>
              <ejb-class>thinksol.hms.facade.MasterFacadeEJB</ejb-class>
              <session-type>Stateless</session-type>
              <transaction-type>Container</transaction-type>
         </session>
    Please advice where I'm going wrong.
    Thanks.
    -Vaskar
    [email protected]
    --------------------           

    I'm using ServiceLocator to Look up EJB's . The following is the important part of the Service Locator
    ------------------------<serviceLocator>-----------------
    public class ServiceLocator {
    private static ServiceLocator serviceLocatorRef = null;
    private static Hashtable ejbHomeCache = null;
    private static Hashtable     ejbLocalHomeCache = null;
    private static Hashtable dataSourceCache = null;
    static {
    serviceLocatorRef = new ServiceLocator();
    /*Private Constructor for the ServiceLocator*/
    private ServiceLocator(){
    ejbHomeCache      = new Hashtable();
    ejbHomeCache.clear();
    ejbLocalHomeCache     = new Hashtable();
    ejbLocalHomeCache.clear();
    dataSourceCache      = new Hashtable();
    dataSourceCache.clear();
    public static ServiceLocator getInstance(){
    return serviceLocatorRef;
    Start of Service Constants
    /*Enumerating the different services available from the Service Locator*/
    public static final int MasterFacade      = 1;
    /*The JNDI Names used to lookup a service*/
    public static final String MasterFacade_JNDINAME     ="java:comp/env/ejb/MasterFacade";
    /*References to each of the different EJB Home Interfaces*/
    public static final Class MasterFacadeCLASSREF           = MasterFacadeHome.class;
    public String getServiceName(int pServiceId)
    throws ServiceLocatorException{
    String serviceName = null;
    System.out.println("----------------------------------------------------------------------");
    System.out.println("Inside ServiceConstants");
    System.out.println("The value of pserviceId is : " +pServiceId);
    switch (pServiceId){
         case Counter:           serviceName = Counter_JNDINAME;
                        break;
         case MasterFacade:           serviceName = MasterFacade_JNDINAME;
                                       break;
    default: throw new ServiceLocatorException(
                   "Unable to locate the service requested in " +
                   "ServiceLocator.getServiceName() method. ");
         System.out.println("The value of serviceName is : " +serviceName);
         System.out.println("----------------------------------------------------------------------");
    return serviceName;
    public Class getEJBHomeRef(int pServiceId)
    throws ServiceLocatorException{
    Class homeRef = null;
    switch (pServiceId){
    case Counter:                homeRef = CounterCLASSREF;
                        break;
    case MasterFacade:                     homeRef = MasterFacadeCLASSREF;
                             break;
    default: throw new ServiceLocatorException(
                   "Unable to locate the service requested in " +
                   "ServiceLocator.getEJBHomeRef() method. ");
    return homeRef;
    End of Service Constants
    public EJBHome getEJBHome(int pServiceId)
    throws ServiceLocatorException{
    /*Trying to find the JNDI Name for the requested service*/
    String serviceName = getServiceName(pServiceId);
    EJBHome ejbHome = null;
    try{
    /*Checking to see if I can find the EJBHome interface in cache*/
    if (ejbHomeCache.containsKey(serviceName)){
                   System.out.println("----------------------------------------------------------------------");
                   System.out.println("Inside ServiceLocator getEJBHome <if>");
                   System.out.println("The value of pserviceId is : " +pServiceId);
                   System.out.println("The value of serviceName is : " +serviceName);
         System.out.println("----------------------------------------------------------------------");
                   ejbHome = (EJBHome) ejbHomeCache.get(serviceName);
              return ejbHome;
    else{
    System.out.println("----------------------------------------------------------------------");
              System.out.println("Inside ServiceLocator getEJBHome <else>");
              System.out.println("The value of pserviceId is : " +pServiceId);
         System.out.println("The value of serviceName is : " +serviceName);
         System.out.println("----------------------------------------------------------------------");
         * If I could not find the EJBHome interface in the cache, look it
         * up and then cache it.
              System.out.println("Inside Service Locator <else> 1");
              Context ctx = new InitialContext();
              System.out.println("Inside Service Locator <else> 2");
    Object jndiRef = ctx.lookup(serviceName);
    System.out.println("Inside Service Locator <else> 3");
    Object portableObj =
    PortableRemoteObject.narrow(jndiRef, getEJBHomeRef(pServiceId));
    System.out.println("Inside Service Locator <else> 4 + EJBHomeRef: "+ getEJBHomeRef(pServiceId));
    ejbHome = (EJBHome) portableObj;
    ejbHomeCache.put(serviceName, ejbHome);
              return ejbHome;
    catch(NamingException e){
    throw new ServiceLocatorException("Naming exception error in ServiceLocator.getEJBHome()" + e);
    catch(Exception e){
    throw new ServiceLocatorException("General exception in ServiceLocator.getEJBHome" + e);
    ------------------------</serviceLocator>-----------------
    Then I'm looking up the EJB using the following code:
    -------------------------<lookupEJB>--------------------
    ServiceLocator locator = ServiceLocator.getInstance();
    MasterFacadeHome home = (MasterFacadeHome) locator.getEJBHome(ServiceLocator.MasterFacade);
    MasterFacade master = (MasterFacade)home.create();
    -------------------------</lookupEJB>--------------------
    Put simply I'm relying on the getEJBHome() method of service Locator to look up EJB.
    Also I'm facing another strange problem, it goes like this:
    I'have 6 Entity Beans(all CMP) and when I call them
    from a Session Bean one by one i.e., serially the second Entity Bean Creation fails. But both the Entity Beans are working independently i.e., if I call only One Entity Bean and then deploy the app the Entity Bean creation succeeds. Similarly again I comment the first Entity Bean creation and call another Entity Bean then it gives no problems. But as soon as I try to call both Entity Beans from the Session Bean I start getting problems.
    Thanks and Regards,
    -Vaskar
    [email protected]
    -------------------

  • JNDI - error code 49 data 531

    Hi.
    I'm trying to connect to MS AD Server (2000/2003) through LDAP. I receive error code 49 with data 531. This means that this is not valid workstation but credentials are valid. My question is how to authenticate using specified host from which I may log in? Is it possible with JNDI? The problem is with AD restrictions but i would not to switch them off.

    This is another one of those posts that are so hilariously funny, it beggars belief.
    You are trying to execute an LDAP query, from a workstation for which the specified credentials you are using in your Java application, is not permitted to login from.
    And you want to find out if you can subvert the security policy for your domain ?

  • JNDI Errors on Bootstrap??

    I'm having trouble making connections through code to our Oracle
    ConnectionPool. Below is the error:
    javax.naming.CommunicationException [Root exception is
    java.net.ConnectException: t3://localhost:7001: Bootstrap unable to get a t3
    connection to localhost/127.0.0.1]
    Can anyone explain (at least partly) what this message means? I have not
    been able to find anything useful regarding this problem (yet). Weblogic
    can connect to Oracle just fine, but whenever the code tries to connect, it
    gets an error. Specifically, the ctx object is always null (it can't seem
    to connect).
    I know nothing about configuring JNDI in weblogic, and the guy who used to
    do this stuff doesn't work here anymore. Any suggestions are welcome,
    Thanks,
    Greg

    initLightbox() - the JavaScript function that you're calling when the page loads - does not exist.

Maybe you are looking for

  • Is there a quick way to make a universal change across many InDesign/PDF files?

    We are a mid-sized manufacturing firm that produces many different versions of our product. For each of our units, we produce a set of technical instructions, using Illustrator and InDesign. Within each instruction manual, there are pages unique to t

  • Where does my backup files reside in windows

    I backed up my ipad (using iTunes) to my laptop (running Windows 7).  Where can I find the backup files?  Also, the ipad that I backed is no longer mine.  My wife has an iPad Air 2.  We want to get the content (especially the pics and videos) of the

  • Losing Internet Connections

    I switched from a Linksys wired router to the Airport Extreme wireless and did not experience any problems until recently. For the past couple of weeks I occasionally lose connection to the internet. The 4 lights on my cable modem that are suppose to

  • Batch command line in the Discoverer 4i

    Dear All, I am searching for an answer regarding the chance to use the batch command line in the Discoverer 4i user edition to export an xls file with the pivot format. It is not possible to do this in the previous version, but it's possible in the 4

  • 10.0.1 update failiure

    i can't update final cut pro. this is the message i get if i try: "your graphic-card is not powerful enough" what is the problem??? but i'm using the following setup: Mac OSX 10.6.8 Modellname:    Mac Pro   Modell-Identifizierung:    MacPro2,1   Proz