1 Reply Latest reply on Feb 17, 2001 4:21 PM by 3004

    Why am I getting java.lang.ClassCastException: weblogic.jndi.WLContext_WLStub  error?

    3004
      Hi All,
                
                Can any body tell me what are the reasons for this error.
                
                Thanks
                Vinod
                
                
                **********************************************************
                Exception given below:
                
                
                Wed Feb 14 07:05:44 GMT-03:00 2001:<E> <ServletContext-Servlets>
                ServletRequestImpl: Exception creating new session
                Wed Feb 14 07:05:44 GMT-03:00 2001:<E> <ServletContext-Servlets>
                java.lang.ClassCastException: weblogic.jndi.WLContext_WLStub
                at
                weblogic.cluster.replication.ReplicationManager.getRepMan(ReplicationManager
                .java:368)
                at
                weblogic.cluster.replication.ReplicationManager.createSecondary(Compiled
                Code)
                at
                weblogic.cluster.replication.ReplicationManager.register(ReplicationManager.
                java:621)
                at
                weblogic.servlet.internal.session.ReplicatedSession.<init>(ReplicatedSession
                .java:112)
                at
                weblogic.servlet.internal.session.ReplicatedSessionContext.getNewSession(Rep
                licatedSessionContext.java:46)
                at
                weblogic.servlet.internal.ServletRequestImpl.getNewSession(ServletRequestImp
                l.java:1104)
                at
                weblogic.servlet.internal.ServletRequestImpl.getSession(ServletRequestImpl.j
                ava:1002)
                at com.bluemartini.html.HTMLContext.<init>(HTMLContext.java:197)
                at com.bluemartini.html.HTMLBaseServlet.prepareRequest(Compiled
                Code)
                at
                com.bluemartini.html.HTMLBaseServlet.serviceInternal(HTMLBaseServlet.java:42
                8)
                at
                com.bluemartini.html.HTMLBaseServlet.service(HTMLBaseServlet.java:362)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
                at
                weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
                :97)
                at
                weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
                l.java:298)
                at
                weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
                l.java:247)
                at
                weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:523)
                at
                weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
                at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
                
                
                
                
                
        • 1. Re: Why am I getting java.lang.ClassCastException: weblogic.jndi.WLContext_WLStub  error?
          3004
          1. What version/service pack of Weblogic?
                    2. It looks like you are configured for a cluster. Is that correct?
                    3. Have you followed the documentation for configuring classpaths and
                    starting Weblogic?
                    
                    --
                    Cameron Purdy
                    Tangosol, Inc.
                    http://www.tangosol.com
                    +1.617.623.5782
                    WebLogic Consulting Available
                    
                    
                    "vinod" <vinod@bluemartini.com> wrote in message
                    news:3a8a8af1@newsgroups.bea.com...
                    > Hi All,
                    >
                    > Can any body tell me what are the reasons for this error.
                    >
                    > Thanks
                    > Vinod
                    >
                    >
                    > **********************************************************
                    > Exception given below:
                    >
                    >
                    > Wed Feb 14 07:05:44 GMT-03:00 2001:<E> <ServletContext-Servlets>
                    > ServletRequestImpl: Exception creating new session
                    > Wed Feb 14 07:05:44 GMT-03:00 2001:<E> <ServletContext-Servlets>
                    > java.lang.ClassCastException: weblogic.jndi.WLContext_WLStub
                    > at
                    >
                    weblogic.cluster.replication.ReplicationManager.getRepMan(ReplicationManager
                    > .java:368)
                    > at
                    > weblogic.cluster.replication.ReplicationManager.createSecondary(Compiled
                    > Code)
                    > at
                    >
                    weblogic.cluster.replication.ReplicationManager.register(ReplicationManager.
                    > java:621)
                    > at
                    >
                    weblogic.servlet.internal.session.ReplicatedSession.<init>(ReplicatedSession
                    > .java:112)
                    > at
                    >
                    weblogic.servlet.internal.session.ReplicatedSessionContext.getNewSession(Rep
                    > licatedSessionContext.java:46)
                    > at
                    >
                    weblogic.servlet.internal.ServletRequestImpl.getNewSession(ServletRequestImp
                    > l.java:1104)
                    > at
                    >
                    weblogic.servlet.internal.ServletRequestImpl.getSession(ServletRequestImpl.j
                    > ava:1002)
                    > at com.bluemartini.html.HTMLContext.<init>(HTMLContext.java:197)
                    > at com.bluemartini.html.HTMLBaseServlet.prepareRequest(Compiled
                    > Code)
                    > at
                    >
                    com.bluemartini.html.HTMLBaseServlet.serviceInternal(HTMLBaseServlet.java:42
                    > 8)
                    > at
                    > com.bluemartini.html.HTMLBaseServlet.service(HTMLBaseServlet.java:362)
                    > at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
                    > at
                    >
                    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
                    > :97)
                    > at
                    >
                    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
                    > l.java:298)
                    > at
                    >
                    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
                    > l.java:247)
                    > at
                    >
                    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:523)
                    > at
                    > weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
                    > at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
                    >
                    >
                    >