1 Reply Latest reply on Aug 29, 2000 4:28 PM by 3004

    Weblogic ConfigurationException Error

    3004
      Hello,

      I have a big problem

      My System is

      OS : Windows 2000 Server
      EJB Server : Weblogic 5.1.0 and SP5
      JDK1.2.2

      My Configuration is
      C:\weblogic\bin>wlconfig

      WebLogic startup settings are presently:

      CLASSPATH Prefix
      d:\java\jdk122\lib\db.jar;d:\java\jdk122\lib\dt.jar;d:\java\
      jdk122\lib\tools.jar;d:\java\j2ee\lib\j2ee.jar;d:\java\jswdk-1.0.1\lib;d:\ja
      va\j
      dk122\lib\xlnclient.jar;d:\java\jdk122\lib\xlnserver.jar;d:\java\jdk122\lib\
      XlnW
      ebServlet.jar;d:\java\jsdk20\lib\jsdk.jar;.;c:\weblogic\lib\weblogic510sp5bo
      ot.j
      ar
      CLASSPATH
      d:\java\jdk122\lib\db.jar;d:\java\jdk122\lib\dt.jar;d:\java\
      jdk122\lib\tools.jar;d:\java\j2ee\lib\j2ee.jar;d:\java\jswdk-1.0.1\lib;d:\ja
      va\j
      dk122\lib\xlnclient.jar;d:\java\jdk122\lib\xlnserver.jar;d:\java\jdk122\lib\
      XlnW
      ebServlet.jar;d:\java\jsdk20\lib\jsdk.jar;.;c:\weblogic\lib\weblogic510sp5bo
      ot.j
      ar;d:\java\jdk122\lib\tools.jar;d:\java\jdk122\jre\lib\rt.jar;d:\java\jdk122
      \jre
      \lib\i18n.jar;C:\weblogic\license;C:\weblogic\classes\boot;C:\weblogic\class
      es;C
      :\weblogic\lib\weblogicaux.jar;C:\weblogic\eval\cloudscape\lib\cloudscape.ja
      r

      JAVA_HOME d:\java\jdk122
      WEBLOGIC_LICENSEDIR C:\weblogic\license
      WEBLOGIC_HOME C:\weblogic
      system properties:
      java.security.manager
      java.security.policy==C:\weblogic\weblogic.policy
      weblogic.system.home=C:\weblogic
      java.compiler=symcjit

      weblogic.class.path=c:\weblogic\lib\weblogic510sp5.jar;c:\we
      blogic\license;c:\weblogic\classes;c:\weblogic\myserver\serverclasses;c:\web
      logi
      c\lib\weblogicaux.jar
      INITIAL_HEAP 64 MB
      MAX_HEAP 64 MB
      SERVERCLASSPATH
      d:\java\jdk122\lib\db.jar;d:\java\jdk122\lib\dt.jar;d:\java\
      jdk122\lib\tools.jar;d:\java\j2ee\lib\j2ee.jar;d:\java\jswdk-1.0.1\lib;d:\ja
      va\j
      dk122\lib\xlnclient.jar;d:\java\jdk122\lib\xlnserver.jar;d:\java\jdk122\lib\
      XlnW
      ebServlet.jar;d:\java\jsdk20\lib\jsdk.jar;.;c:\weblogic\lib\weblogic510sp5bo
      ot.j
      ar;d:\java\jdk122\jre\lib\rt.jar;d:\java\jdk122\jre\lib\i18n.jar;C:\weblogic
      \cla
      sses\boot;C:\weblogic\eval\cloudscape\lib\cloudscape.jar

      Type "wlconfig -help" for program usage.


      My Weblogic Version is
      D:\job\develop\trade>java weblogic.Admin t3://localhost:7001 VERSION
      WebLogic Build: 5.1.0 Service Pack 5 08/17/2000 07:21:55 #79895



      My Weblogic Server log is
      Mon 8 Mon 28 16:07:02 GMT+09:00 2000:<I> <RMI> Registry started
      Mon 8 Mon 28 16:07:02 GMT+09:00 2000:<I> <EJB> Enterprise JavaBeans
      initializing
      Mon 8 Mon 28 16:07:03 GMT+09:00 2000:<I> <EJB JAR deployment
      D:/job/develop/trade/
      yTrader.jar>
      EJB home interface: 'TraderHome' deployed bound to the JNDI name:MyTrader'
      Mon 8 Mon 28 16:07:03 GMT+09:00 2000:<I> <EJB JAR deployment
      D:/job/develop/bank/M
      Bank.jar> EJB home interface: 'BankHome' deployed bound to the JNDI name:
      'MyBak'
      Mon 8 Mon 28 16:07:03 GMT+09:00 2000:<I> <EJB> 2 EJB jar files loaded,
      containing EJBs
      Mon 8 Mon 28 16:07:03 GMT+09:00 2000:<I> <EJB> 2 deployed, 0 failed to
      deploy.
      Mon 8 Mon 28 16:07:03 GMT+09:00 2000:<I> <HTTP> Log rotation is size based
      Mon 8 Mon 28 16:07:03 GMT+09:00 2000:<I> <ZAC> ZAC ACLs initialized
      Mon 8 Mon 28 16:07:03 GMT+09:00 2000:<I> <ZAC> ZAC packages stored in local
      directry exports
      Mon 8 Mon 28 16:07:03 GMT+09:00 2000:<I> <ListenThread> Listening on port:
      7001
      <NT Performance Pack> NATIVE: created IoCompletionPort successfully.
      IoPort=0x000028c
      Mon 8 Mon 28 16:07:03 GMT+09:00 2000:<I> <SSLListenThread> Listening on
      port: 7002
      Mon 8Mon 28 16:07:04 GMT+09:00 2000:<I> <WebLogicServer> WebLogic Server
      started

      Sample program is weblogic sample program
      Source URL is
      http://www.weblogic.com/docs51/examples/ejb/basic/statefulSession/index.html
      Trader.java, TraderBean.java, TraderHome.java,
      TraderResult.java,ProcessingErrorException.java, Client.java

      I have got the error message after running Client program

      D:\job\develop\trade>java Client "t3://localhost:7001"

      Beginning statefulSession.Client...

      The client was unable to lookup the EJBHome. Please make sure
      that you have deployed the ejb with the JNDI name MyTrader on the WebLogic
      server at t3://localhost:7001
      javax.naming.ConfigurationException.
      Root exception is weblogic.rmi.server.ExportException: A description for
      TraderBeanHomeImpl was found but it could not be
      read due to: [Failed to find a stub for [class TraderBeanHomeImpl]
      implements at
      least one interface [interface TraderHome] which extends Remote.]
      weblogic.rmi.StubNotFoundException: Failed to find a stub for [class
      TraderBeanH
      omeImpl] implements at least one interface [interface TraderHome] which
      extends
      Remote.
      at
      weblogic.rmi.internal.DescriptorManager.resolveClass(DescriptorManage
      r.java, Compiled Code)
      at
      weblogic.rmi.extensions.BasicDescriptor.<init>(BasicDescriptor.java,
      Compiled Code)
      at
      weblogic.rmi.extensions.BasicRuntimeDescriptor.<init>(BasicRuntimeDes
      criptor.java, Compiled Code)
      at
      weblogic.rmi.internal.DescriptorManager.resolveClass(DescriptorManage
      r.java, Compiled Code)
      at
      weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManag
      er.java, Compiled Code)
      at
      weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManag
      er.java, Compiled Code)
      at
      weblogic.rmi.internal.OIDManager.getRequestDispatcher(OIDManager.java
      -
      -
      -
      -
      -
      at
      weblogic.rmi.extensions.AbstractRequest.sendReceive(AbstractRequest.
      ava:76)
      at
      weblogic.jndi.toolkit.BasicWLContext_WLStub.lookup(BasicWLContext_WL
      tub.java:246)
      at weblogic.jndi.toolkit.WLContextStub.lookup(WLContextStub.java,
      Compi
      ed Code)
      at javax.naming.InitialContext.lookup(InitialContext.java:354)
      at Client.lookupHome(Client.java:149)
      at Client.<init>(Client.java:44)
      at Client.main(Client.java:82)


      Please help me !!!!
      Thanks




        • 1. Re: Weblogic ConfigurationException Error
          3004

          In your client, when you look up the bean, the JNDI name should be "MyTrader",
          not statelessSession.Client

          Look at client.java in /examples/ejb/basic/statelessSession example,
          In weblogic-ejb-jar.xml the jndi name is specified as follows:
          <jndi-name>statelessSession.TraderHome</jndi-name>

          and in the client program we look up the bean as follows:
          JNDI_NAME=statelessSession.TraderHome
          Object home = ctx.lookup(JNDI_NAME);

          Make sure you are doing the same.

          --
          Kumar

          "±è¼®" wrote:
          Hello,

          I have a big problem

          My System is

          OS : Windows 2000 Server
          EJB Server : Weblogic 5.1.0 and SP5
          JDK1.2.2

          <snipped>
          Mon 8 Mon 28 16:07:03 GMT+09:00 2000:<I> <EJB JAR deployment
          D:/job/develop/trade/
          yTrader.jar>
          EJB home interface: 'TraderHome' deployed bound to the JNDI name:MyTrader'
          Mon 8 Mon 28 16:07:03 GMT+09:00 2000:<I> <EJB JAR deployment
          D:/job/develop/bank/M
          Bank.jar> EJB home interface: 'BankHome' deployed bound to the JNDI name:
          'MyBak'
          Mon 8 Mon 28 16:07:03 GMT+09:00 2000:<I> <EJB> 2 EJB jar files loaded,
          containing EJBs
          Mon 8 Mon 28 16:07:03 GMT+09:00 2000:<I> <EJB> 2 deployed, 0 failed to
          deploy.

          Sample program is weblogic sample program
          Source URL is
          http://www.weblogic.com/docs51/examples/ejb/basic/statefulSession/index.html
          Trader.java, TraderBean.java, TraderHome.java,
          TraderResult.java,ProcessingErrorException.java, Client.java

          I have got the error message after running Client program

          D:\job\develop\trade>java Client "t3://localhost:7001"

          Beginning statefulSession.Client...

          The client was unable to lookup the EJBHome. Please make sure
          that you have deployed the ejb with the JNDI name MyTrader on the WebLogic
          server at t3://localhost:7001
          javax.naming.ConfigurationException.
          Root exception is weblogic.rmi.server.ExportException: A description for
          TraderBeanHomeImpl was found but it could not be
          read due to: [Failed to find a stub for [class TraderBeanHomeImpl]
          implements at
          least one interface [interface TraderHome] which extends Remote.]
          weblogic.rmi.StubNotFoundException: Failed to find a stub for [class
          TraderBeanH
          omeImpl] implements at least one interface [interface TraderHome] which
          extends
          Remote.
          at
          weblogic.rmi.internal.DescriptorManager.resolveClass(DescriptorManage
          r.java, Compiled Code)
          at
          weblogic.rmi.extensions.BasicDescriptor.<init>(BasicDescriptor.java,
          Compiled Code)
          at
          weblogic.rmi.extensions.BasicRuntimeDescriptor.<init>(BasicRuntimeDes
          criptor.java, Compiled Code)
          at
          weblogic.rmi.internal.DescriptorManager.resolveClass(DescriptorManage
          r.java, Compiled Code)
          at
          weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManag
          er.java, Compiled Code)
          at
          weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManag
          er.java, Compiled Code)
          at
          weblogic.rmi.internal.OIDManager.getRequestDispatcher(OIDManager.java
          -
          -
          -
          -
          -
          at
          weblogic.rmi.extensions.AbstractRequest.sendReceive(AbstractRequest.
          ava:76)
          at
          weblogic.jndi.toolkit.BasicWLContext_WLStub.lookup(BasicWLContext_WL
          tub.java:246)
          at weblogic.jndi.toolkit.WLContextStub.lookup(WLContextStub.java,
          Compi
          ed Code)
          at javax.naming.InitialContext.lookup(InitialContext.java:354)
          at Client.lookupHome(Client.java:149)
          at Client.<init>(Client.java:44)
          at Client.main(Client.java:82)

          Please help me !!!!
          Thanks