CR040697 ClassCastException on EJB redeployment

040697
Fixed a ClassCastException when undeploying Message-Driven EJBs
We are currently using weblogic 6.0 sp2. I am trying to redeploy an EAR, but I'm
getting the following exception (stack trace below). Apparently, the site says that
this issue was resolved in service pack 1.
Resolved Issues
http://e-docs.bea.com/wls/docs60//notes/bugfixes2.html
What can I do to get redeployment working?
Thanks,
Justin Miranda

Hi Justin.
There is no stack trace attached with your original post.
The log shows that CR040697 was integrated in SP1 of WLS6.0 already a while ago.
Please upload the stack trace or a test case for further analysis. Again, you are
always welcome to log a support case to us if the problem persists.
Thanks.
Ji Zhang
Developer Relations Engineer
BEA Support
"Justin Miranda" <[email protected]> wrote:
>
040697
Fixed a ClassCastException when undeploying Message-Driven EJBs
We are currently using weblogic 6.0 sp2. I am trying to redeploy an EAR,
but I'm
getting the following exception (stack trace below). Apparently, the site
says that
this issue was resolved in service pack 1.
Resolved Issues
http://e-docs.bea.com/wls/docs60//notes/bugfixes2.html
What can I do to get redeployment working?
Thanks,
Justin Miranda

Similar Messages

  • Java.lang.ClassCastException: examples.ejb.basic.statefulSession.TraderBeanHomeImpl_ServiceStub

    I am using the example from the XML/HTTP which uses a client, servlet and request
    handler. The Servlet calls the StatefulSession TraderHome Bean.
    I am getting the following: java.lang.ClassCastException: examples.ejb.basic.statefulSession.TraderBeanHomeImpl_ServiceStub.
    Anyboy have a similar problem?
    This works with the Client prg in the ejb/basic/StatefulSssion "Client" It works
    correctly

    I am using the example from the XML/HTTP which uses a client, servlet and request
    handler. The Servlet calls the StatefulSession TraderHome Bean.
    I am getting the following: java.lang.ClassCastException: examples.ejb.basic.statefulSession.TraderBeanHomeImpl_ServiceStub.
    Anyboy have a similar problem?
    This works with the Client prg in the ejb/basic/StatefulSssion "Client" It works
    correctly

  • Very Slow EJB Redeployment

    Developers at my company experience the same problem described in this
    thread, but the thread ends without any solutions or advice. Does anybody
    know more about why EJB redeployment can take such a long time?
    I am deploying the application to a single, unmanaged server in development
    mode. The application is deployed to an exploded directory. My machine
    statistics are: P4 2GHz, 756MB RAM, Win2k, WLS 7. The weblogic admin tool
    returns the following version info:
    $ java weblogic.Admin -username installadministrator -password
    installadministrator VERSION
    WebLogic Server 7.0 Thu Jun 20 11:47:11 PDT 2002 190955
    WebLogic XMLX Module 7.0 Thu Jun 20 11:58:44 PDT 2002 190955
    I attempted to do a mid-deployment thread dump, but I get the following
    error. Is there another way to get a thread dump on Windows?
    Command Prompt:
    $ java weblogic.Admin -username installadministrator -password
    installadministrator THREAD_DUMP
    Thread Dump for the Server is available on the WebLogic Server Console.
    WLS Console:
    Activate application appsdirwms_dir on myserver( Running )
    cannot dump threads on this VM:
    java.version='1.3.1_03'
    os.name='windows 2000'
    java.vendor.url='http://java.sun.com/'
    It either hasn't been tested, or is known not to work.
    Thanks,
    Dave
    Original Thread Follows
    Also "ps -ef | grep java" to see if other processes are being kicked off.
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com/coherence.jsp
    Tangosol Coherence: Clustered Replicated Cache for Weblogic
    "Rob Woollen" <[email protected]> wrote in message
    news:[email protected]...
    My first guess is the server is re-running ejbc. However, I can't see
    why that would take so long.
    Next time you see this, take a thread dump (or several) of the server
    while it's happening. Post them here, and we'll have an idea what it's
    doing.
    -- Rob
    Gary Bradshaw wrote:
    Hi, folks. I hope someone has seen something similar to this,
    because I'm running out of ideas.
    One of our developers has been having trouble re-deploying
    session EJBs on WL 7.0 under Linux. He prepares the .jar on his
    local machine, coppies it to the server's ejb directory, then
    uses the WL console to redeploy it (we're not running in auto-
    deployment mode since we're using a 2-server cluster).
    Sometimes (but not always) the deployment task just hangs with
    no messages. The only thing I could do to get out of it was to
    stop and restart both the cluster and the admin server. Then
    the new EJB deploys just fine, so I don't think it's a problem
    with his .jar file.
    A few days ago it happened again around 5pm,
    so I decided to wait until the next day to work on it.
    When I checked the next day, I saw that the EJB DID redeploy,
    two hours and fifteen minutes after the deployment task started.
    I don't think there are any 135-minute timeouts in the system,
    and since these are stateless session beans, I can't imagine
    what resources they could be holding on to. There was no other
    activity on the servers after about 5:45, yet his EJB didn't
    redeploy until after 7:00.
    Any ideas on what I should be looking for?
    - gary

    The redeploy doesn't always hang, so it took me awhile to get a thread dump
    for a slow redeploy. I've also included a thread dump taken during a healthy
    redeploy. Scroll down to "ExecuteThread: '8' for queue: 'default'" to find
    the thread waiting on the deployment. At first glance, I don't notice any
    difference between the two thread dumps. Would you like me to take a sample
    of several thread dumps during the deployment process?
    Thanks, Dave
    **************** Slow Redeploy Thread Dump ************
    Activate application appsdirwms_dir on myserver( Running )
    Activate application appsdirwms_dir on myserver( Running )
    Activate application appsdirwms_dir on myserver( Running )
    Activate application appsdirwms_dir on myserver( Running )
    Activate application appsdirwms_dir on myserver( Running )
    Full thread dump Java HotSpot(TM) Client VM (1.4.1_01-b01 mixed mode):
    "JDWP Transport Listener: dt_socket" daemon prio=5 tid=0x3A621E78 nid=0xb4c
    runnable [0..0]
    "SSLListenThread.Default" prio=5 tid=0x3866B618 nid=0x8d0 runnable
    [3b6cf000..3b6cfd8c]
    at java.net.PlainSocketImpl.socketAccept(Native Method)
    at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
    - locked <146EA738> (a java.net.PlainSocketImpl)
    at java.net.ServerSocket.implAccept(ServerSocket.java:439)
    at javax.net.ssl.impl.SSLServerSocketImpl.accept(Unknown Source)
    at weblogic.t3.srvr.ListenThread.run(ListenThread.java:256)
    "ListenThread.Default" prio=5 tid=0x38EA1270 nid=0x744 runnable
    [3b68f000..3b68fd8c]
    at java.net.PlainSocketImpl.socketAccept(Native Method)
    at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
    - locked <146EA830> (a java.net.PlainSocketImpl)
    at java.net.ServerSocket.implAccept(ServerSocket.java:439)
    at java.net.ServerSocket.accept(ServerSocket.java:410)
    at
    weblogic.socket.WeblogicServerSocket.accept(WeblogicServerSocket.java:26)
    at weblogic.t3.srvr.ListenThread.run(ListenThread.java:256)
    "Thread-8" prio=5 tid=0x38C06780 nid=0xa74 waiting on condition
    [3b64f000..3b64fd8c]
    at java.lang.Thread.sleep(Native Method)
    at
    weblogic.management.deploy.ApplicationsDirPoller.waitForTimeout(Applications
    DirPoller.jav
    a:293)
    at
    weblogic.management.deploy.ApplicationsDirPoller.doActivate(ApplicationsDirP
    oller.java:22
    0)
    at
    weblogic.management.deploy.GenericAppPoller.doit(GenericAppPoller.java:243)
    at
    weblogic.management.deploy.GenericAppPoller.run(GenericAppPoller.java:137)
    "ExecuteThread: '0' for queue: 'JMS.TimerTreePool'" daemon prio=5
    tid=0x386E1E20 nid=0xb44 in Object
    .wait() [3b60f000..3b60fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <13AA5930> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <13AA5930> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '3' for queue: 'JMS.TimerClientPool'" daemon prio=5
    tid=0x387A1E68 nid=0x5f0 in Obje
    ct.wait() [3b5cf000..3b5cfd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <13AA4DE0> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <13AA4DE0> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '2' for queue: 'JMS.TimerClientPool'" daemon prio=5
    tid=0x38B40E20 nid=0x8bc in Obje
    ct.wait() [3b58f000..3b58fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <13AA48A8> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <13AA48A8> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '1' for queue: 'JMS.TimerClientPool'" daemon prio=5
    tid=0x38794DD8 nid=0x8dc in Obje
    ct.wait() [3b54f000..3b54fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <13AA4370> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <13AA4370> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '0' for queue: 'JMS.TimerClientPool'" daemon prio=5
    tid=0x38B1A2E0 nid=0x828 in Obje
    ct.wait() [3b50f000..3b50fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <13AA3E18> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <13AA3E18> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "CoreHealthMonitor" daemon prio=5 tid=0x38791D48 nid=0x59c waiting on
    condition [3a4cf000..3a4cfd8c]
    at java.lang.Thread.sleep(Native Method)
    at
    weblogic.t3.srvr.CoreHealthMonitorThread.run(CoreHealthMonitorThread.java:11
    4)
    "ExecuteThread: '14' for queue: 'JmsDispatcher'" daemon prio=5
    tid=0x389938C0 nid=0x8e0 in Object.wa
    it() [3a48f000..3a48fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <13093630> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <13093630> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '13' for queue: 'JmsDispatcher'" daemon prio=5
    tid=0x388B0C08 nid=0xbc0 in Object.wa
    it() [3a44f000..3a44fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <130936A0> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <130936A0> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '12' for queue: 'JmsDispatcher'" daemon prio=5
    tid=0x388B0008 nid=0xab8 in Object.wa
    it() [3a40f000..3a40fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <13093710> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <13093710> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '11' for queue: 'JmsDispatcher'" daemon prio=5
    tid=0x38720410 nid=0x6bc in Object.wa
    it() [3a3cf000..3a3cfd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <13093780> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <13093780> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '10' for queue: 'JmsDispatcher'" daemon prio=5
    tid=0x38822818 nid=0x11a4 in Object.w
    ait() [3a38f000..3a38fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <130937F0> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <130937F0> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '9' for queue: 'JmsDispatcher'" daemon prio=5 tid=0x386AAAB8
    nid=0xb84 in Object.wai
    t() [3a34f000..3a34fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <13093860> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <13093860> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '8' for queue: 'JmsDispatcher'" daemon prio=5 tid=0x38958D10
    nid=0x80c in Object.wai
    t() [3a30f000..3a30fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <130938D0> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <130938D0> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '7' for queue: 'JmsDispatcher'" daemon prio=5 tid=0x389581A8
    nid=0x968 in Object.wai
    t() [3a2cf000..3a2cfd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <13093940> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <13093940> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '6' for queue: 'JmsDispatcher'" daemon prio=5 tid=0x388D6410
    nid=0x6fc in Object.wai
    t() [3a28f000..3a28fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <130939B0> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <130939B0> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '5' for queue: 'JmsDispatcher'" daemon prio=5 tid=0x3868FA18
    nid=0x5dc in Object.wai
    t() [3a24f000..3a24fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <13093A20> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <13093A20> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '4' for queue: 'JmsDispatcher'" daemon prio=5 tid=0x3868F818
    nid=0x71c in Object.wai
    t() [3a20f000..3a20fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <13093A90> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <13093A90> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '3' for queue: 'JmsDispatcher'" daemon prio=5 tid=0x38693988
    nid=0x69c in Object.wai
    t() [3a1cf000..3a1cfd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <13093B00> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <13093B00> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '2' for queue: 'JmsDispatcher'" daemon prio=5 tid=0x38693020
    nid=0x8fc in Object.wai
    t() [3a18f000..3a18fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <13093B70> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <13093B70> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '1' for queue: 'JmsDispatcher'" daemon prio=5 tid=0x386E4010
    nid=0x7f8 in Object.wai
    t() [3a14f000..3a14fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <13093BE0> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <13093BE0> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '0' for queue: 'JmsDispatcher'" daemon prio=5 tid=0x3856FE48
    nid=0x948 in Object.wai
    t() [3a10f000..3a10fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <13093C50> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <13093C50> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '2' for queue: 'weblogic.transaction.AsyncQueue'" daemon
    prio=5 tid=0x388BE008 nid=0
    x1368 in Object.wait() [3a0cf000..3a0cfd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <12FD4140> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <12FD4140> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '1' for queue: 'weblogic.transaction.AsyncQueue'" daemon
    prio=5 tid=0x38704DF8 nid=0
    x8a4 in Object.wait() [3a08f000..3a08fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <12FD3BF8> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <12FD3BF8> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '0' for queue: 'weblogic.transaction.AsyncQueue'" daemon
    prio=5 tid=0x38754DE0 nid=0
    xbf8 in Object.wait() [3a04f000..3a04fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <12FD3690> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <12FD3690> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "Thread-5" prio=5 tid=0x38587C70 nid=0x888 in Object.wait()
    [3a00f000..3a00fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <12FD02B0> (a java.util.TaskQueue)
    at java.util.TimerThread.mainLoop(Timer.java:429)
    - locked <12FD02B0> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:382)
    "ExecuteThread: '1' for queue: 'DRS'" daemon prio=5 tid=0x38717470
    nid=0x136c in Object.wait() [39fc
    f000..39fcfd8c]
    at java.lang.Object.wait(Native Method)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <12FCFD18> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '0' for queue: 'DRS'" daemon prio=5 tid=0x38762C30 nid=0x840
    in Object.wait() [39f8f
    000..39f8fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <12FCF7E8> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <12FCF7E8> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "VDE Transaction Processor Thread" prio=2 tid=0x008DE040 nid=0x92c in
    Object.wait() [39f4f000..39f4f
    d8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <12716940> (a
    com.octetstring.vde.backend.standard.TransactionProcessor)
    at java.lang.Object.wait(Object.java:426)
    at
    com.octetstring.vde.backend.standard.TransactionProcessor.waitChange(Transac
    tionProcessor
    .java:306)
    - locked <12716940> (a
    com.octetstring.vde.backend.standard.TransactionProcessor)
    at
    com.octetstring.vde.backend.standard.TransactionProcessor.run(TransactionPro
    cessor.java:1
    92)
    "ExecuteThread: '9' for queue: '__weblogic_admin_rmi_queue'" daemon prio=5
    tid=0x3870C190 nid=0x9e4
    in Object.wait() [39f0f000..39f0fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <1253F758> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <1253F758> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '8' for queue: '__weblogic_admin_rmi_queue'" daemon prio=5
    tid=0x00908408 nid=0xae4
    in Object.wait() [39ecf000..39ecfd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <1253F7C8> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <1253F7C8> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '7' for queue: '__weblogic_admin_rmi_queue'" daemon prio=5
    tid=0x385FB370 nid=0xb30
    in Object.wait() [39e8f000..39e8fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <1253F838> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <1253F838> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '6' for queue: '__weblogic_admin_rmi_queue'" daemon prio=5
    tid=0x38628C30 nid=0xa28
    in Object.wait() [39e4f000..39e4fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <1253F8A8> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <1253F8A8> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '5' for queue: '__weblogic_admin_rmi_queue'" daemon prio=5
    tid=0x389299C8 nid=0x98c
    in Object.wait() [39e0f000..39e0fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <1253F918> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <1253F918> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '4' for queue: '__weblogic_admin_rmi_queue'" daemon prio=5
    tid=0x385F5DB8 nid=0x8b4
    in Object.wait() [39dcf000..39dcfd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <1253F988> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <1253F988> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '3' for queue: '__weblogic_admin_rmi_queue'" daemon prio=5
    tid=0x38617C80 nid=0xbd0
    in Object.wait() [39d8f000..39d8fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <1253F9F8> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <1253F9F8> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '2' for queue: '__weblogic_admin_rmi_queue'" daemon prio=5
    tid=0x385567E8 nid=0xac0
    in Object.wait() [39d4f000..39d4fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <1253FA68> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <1253FA68> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '1' for queue: '__weblogic_admin_rmi_queue'" daemon prio=5
    tid=0x009042F8 nid=0x900
    in Object.wait() [39d0f000..39d0fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <1253FAD8> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <1253FAD8> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '0' for queue: '__weblogic_admin_rmi_queue'" daemon prio=5
    tid=0x3861DE20 nid=0x870
    in Object.wait() [39ccf000..39ccfd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <1253FB48> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <1253FB48> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'" daemon prio=5
    tid=0x3892A7D8 nid=0x134
    8 in Object.wait() [39c8f000..39c8fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <1253FBB8> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <1253FBB8> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'" daemon prio=5
    tid=0x3859CD10 nid=0x470
    in Object.wait() [39c4f000..39c4fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <1253FC28> (a weblogic.kernel.ExecuteThread)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <1253FC28> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "TimeEventGenerator" daemon prio=5 tid=0x386775A8 nid=0x54c in Object.wait()
    [39c0f000..39c0fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <1253FD70> (a weblogic.time.common.internal.TimeTable)
    at
    weblogic.time.common.internal.TimeTable.snooze(TimeTable.java:272)
    - locked <1253FD70> (a weblogic.time.common.internal.TimeTable)
    at
    weblogic.time.common.internal.TimeEventGenerator.run(TimeEventGenerator.java
    :139)
    at java.lang.Thread.run(Thread.java:536)
    "SpinnerRandomSource" daemon prio=5 tid=0x386B29C8 nid=0xbf0 in
    Object.wait() [39bcf000..39bcfd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <1253FDE8> (a java.lang.Object)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.security.SpinnerRandomBitsSource.run(SpinnerRandomBitsSource.java:6
    0)
    - locked <1253FDE8> (a java.lang.Object)
    at java.lang.Thread.run(Thread.java:536)
    "HighPriority TimeEventGenerator" daemon prio=9 tid=0x3884E9B0 nid=0xba8 in
    Object.wait() [39b8f000.
    .39b8fd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <1253FE10> (a weblogic.time.common.internal.TimeTable)
    at
    weblogic.time.common.internal.TimeTable.snooze(TimeTable.java:272)
    - locked <1253FE10> (a weblogic.time.common.internal.TimeTable)
    at
    weblogic.time.common.internal.TimeEventGenerator.run(TimeEventGenerator.java
    :139)
    at java.lang.Thread.run(Thread.java:536)
    "ExecuteThread: '14' for queue: 'default'" daemon prio=5 tid=0x008DD008
    nid=0x784 runnable [39b4f000
    ..39b4fd8c]
    at weblogic.socket.NTSocketMuxer.getNextSocket(Native Method)
    at
    weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:544)
    at
    weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    "ExecuteThread: '13' for queue: 'default'" daemon prio=5 tid=0x38798FC8
    nid=0x7fc runnable [39b0f000
    ..39b0fd8c]
    at weblogic.socket.NTSocketMuxer.getNextSocket(Native Method)
    at
    weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:544)
    at
    weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    "ExecuteThread: '12' for queue: 'default'" daemon prio=5 tid=0x3876C568
    nid=0x7dc in Object.wait() [
    39acf000..39acfd8c]
    at java.lang.Object.wait(Native Method)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <1253F160> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '11' for queue: 'default'" daemon prio=5 tid=0x386566F8
    nid=0xac8 in Object.wait() [
    39a8f000..39a8fd8c]
    at java.lang.Object.wait(Native Method)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <1253F1D0> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '10' for queue: 'default'" daemon prio=5 tid=0x38945980
    nid=0xb0c in Object.wait() [
    39a4f000..39a4fd8c]
    at java.lang.Object.wait(Native Method)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <1253F240> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '9' for queue: 'default'" daemon prio=5 tid=0x386F2560
    nid=0x8e8 in Object.wait() [3
    9a0f000..39a0fd8c]
    at java.lang.Object.wait(Native Method)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <1253F2B0> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '8' for queue: 'default'" daemon prio=5 tid=0x3887E6B8
    nid=0x5d0 in Object.wait() [3
    99cf000..399cfd8c]
    at java.lang.Object.wait(Native Method)
    - waiting on <1253FE90> (a
    com.octetstring.vde.backend.standard.BackendStandard)
    at
    com.octetstring.vde.backend.standard.BackendStandard.get(BackendStandard.jav
    a:714)
    - locked <1253FE90> (a
    com.octetstring.vde.backend.standard.BackendStandard)
    at
    com.octetstring.vde.backend.BackendHandler.get(BackendHandler.java:556)
    at
    weblogic.ldap.EmbeddedLDAPConnection.search(EmbeddedLDAPConnection.java:920)
    at
    weblogic.ldap.EmbeddedLDAPConnection.search(EmbeddedLDAPConnection.java:838)
    at weblogic.entitlement.data.ldap.EData.update(EData.java:525)
    at
    weblogic.entitlement.engine.EEngine.setRoleEntitlements(EEngine.java:543)
    at
    weblogic.security.providers.authorization.DefaultRoleMapperProviderImpl.depl
    oyRole(Defaul
    tRoleMapperProviderImpl.java:208)
    at
    weblogic.security.service.RoleManager.deployRole(RoleManager.java:403)
    at
    weblogic.ejb20.internal.SecurityHelper.registerRolesWithMethod(SecurityHelpe
    r.java:346)
    at
    weblogic.ejb20.internal.SecurityHelper.registerRolesWithMethod(SecurityHelpe
    r.java:277)
    at
    weblogic.ejb20.internal.DeployerHelper.setMethodDescriptor(DeployerHelper.ja
    va:91)
    at
    weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.setMethodDescriptor(ClientD
    rivenBeanInfo
    Impl.java:795)
    at
    weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.setMethodDescriptors(Client
    DrivenBeanInf
    oImpl.java:760)
    at
    weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.prepare(ClientDrivenBeanInf
    oImpl.java:89
    9)
    at
    weblogic.ejb20.deployer.EJBDeployer.setupBeanInfo(EJBDeployer.java:1047)
    at
    weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1251)
    at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:235)
    at
    weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContaine
    r.java:1446)
    at
    weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java
    :654)
    at
    weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java
    :552)
    at
    weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeplo
    yer.java:1056
    at
    weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.j
    ava:724)
    at
    weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.ja
    va:24)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    "ExecuteThread: '7' for queue: 'default'" daemon prio=5 tid=0x38A7FF30
    nid=0x5cc in Object.wait() [3
    998f000..3998fd8c]
    at java.lang.Object.wait(Native Method)
    at java.lang.Object.wait(Object.java:426)
    at
    weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:104)
    - locked <1253F390> (a weblogic.kernel.ExecuteThread)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:128)
    "ExecuteThread: '6' for queue: 'default'" daemon prio=5 tid=0x38A7F928
    nid=0x135c in Object.wait() [
    3994f000..3994fd8c]
    a

  • ClassCastException ONLY when redeployed

    Hi,
    I'm using 6.1 on NT and have a problem when I redeploy my application.
    The application is packaged in a EAR file containing:
    1 JAR - containing 1 Stateless Session Bean, 1 Entity bean, and 1 MDB,
    plus support classes.
    1 WAR - containing servlet code.
    When I start the server up, all works fine.
    But when I redeploy the EAR file (using the automatic detection), I
    get ClassCastException thrown from the session bean and the message
    driven bean when they try and cast the home interface of the Entity
    bean:
    InitialContext ic = new InitialContext();
    Object o = ic.lookup("com.blah.ClientBeanLocalHome");
    client_home =(ClientBeanLocalHome)o;
    Why does this only happen when I redeploy? I thought that because all
    my EJBs are in the same JAR (and support classes) when weblogic
    redeploys the new JAR, I won't get any ClassCast exceptions because
    they will be in the same class loaders? Can any one help? I've had
    this for a long time and I don't seem to be able to solve it.
    Thanks.

    I am suspecting you have an MDB that looks up a Local EJB in the setMessageDrivenContext method during initialization
    of the MDB.
    I would recomend you package the MDB and the Local EJB in the same jar file because a Local EJB has to be accesses form
    clients that are in the same application archive.
    Wayne wrote:
    Sorry for not getting back. I've been away on business.
    I have'nt trying using the manifest for the support classes, as these
    class don't appear to be the problem its the entity bean.
    Here is the stack trace:
    Mon Mar 04 10:53:37 CET 2002:<D> <Application Manager Thread>
    <ProcessRequestBean_j9guts_Impl> <ejbRemove>
    Mon Mar 04 10:53:37 CET 2002:<D> <Application Manager Thread>
    <ProcessRequestBean_j9guts_Impl> <ejbRemove>
    Mon Mar 04 10:53:37 CET 2002:<D> <Application Manager Thread>
    <ProcessRequestBean_j9guts_Impl> <ejbRemove>
    Mon Mar 04 10:53:37 CET 2002:<D> <Application Manager Thread>
    <ProcessRequestBean_j9guts_Impl> <ejbRemove>
    Mon Mar 04 10:53:37 CET 2002:<D> <Application Manager Thread>
    <CSXToCPSConversionBean> <ejbRemove>
    Mon Mar 04 10:53:37 CET 2002:<D> <Application Manager Thread>
    <CSXToCPSConversionBean> <ejbRemove>
    Mon Mar 04 10:53:37 CET 2002:<D> <Application Manager Thread>
    <CSXToCPSConversionBean> <ejbRemove>
    Mon Mar 04 10:53:37 CET 2002:<D> <Application Manager Thread>
    <CSXToCPSConversionBean> <ejbRemove>
    Mon Mar 04 10:53:37 CET 2002:<D> <Application Manager Thread>
    <CSXToCPSConversionBean> <ejbRemove>
    Mon Mar 04 10:53:58 CET 2002:<D> <Application Manager Thread>
    <ClientBean_1ng6lu_Impl> <Constructor>
    Mon Mar 04 10:53:58 CET 2002:<D> <Application Manager Thread>
    <ClientBean_1ng6lu_Impl> <setEntityContext>
    Mon Mar 04 10:53:58 CET 2002:<D> <Application Manager Thread>
    <ClientBean_1ng6lu_Impl> <Constructor>
    Mon Mar 04 10:53:59 CET 2002:<D> <Application Manager Thread>
    <ClientBean_1ng6lu_Impl> <setEntityContext>
    Mon Mar 04 10:53:59 CET 2002:<D> <Application Manager Thread>
    <ClientBean_1ng6lu_Impl> <Constructor>
    Mon Mar 04 10:53:59 CET 2002:<D> <Application Manager Thread>
    <ClientBean_1ng6lu_Impl> <setEntityContext>
    Mon Mar 04 10:53:59 CET 2002:<D> <Application Manager Thread>
    <ClientBean_1ng6lu_Impl> <Constructor>
    Mon Mar 04 10:53:59 CET 2002:<D> <Application Manager Thread>
    <ClientBean_1ng6lu_Impl> <setEntityContext>
    Mon Mar 04 10:53:59 CET 2002:<D> <Application Manager Thread>
    <ClientBean_1ng6lu_Impl> <Constructor>
    Mon Mar 04 10:53:59 CET 2002:<D> <Application Manager Thread>
    <ClientBean_1ng6lu_Impl> <setEntityContext>
    Mon Mar 04 10:53:59 CET 2002:<D> <Application Manager Thread>
    <CSXToCPSConversionBean> <Constructor>
    Mon Mar 04 10:53:59 CET 2002:<D> <Application Manager Thread>
    <CSXToCPSConversionBean> <setMessageDrivenContext>
    Mon Mar 04 10:53:59 CET 2002:<D> <Application Manager Thread>
    <XSLTConverter> <initialise JAXP/XSLT properties>
    Unable to deploy EJB: ClientEJB from cps-ejb.jar:
    javax.ejb.EJBException: <Errors><Error Number="102"
    Type="NoImplementation">java.lang.ClassCastException:
    com.amadeus.ocg.cps.core.ClientBean_1ng6lu_LocalHomeImpl</Error></Errors>
    at com.amadeus.ocg.cps.csx.CSXToCPSConversionBean.setMessageDrivenContext(CSXToCPSConversionBean.java:82)
    at weblogic.ejb20.internal.MessageDrivenEJBHome.createBean(MessageDrivenEJBHome.java:303)
    at weblogic.ejb20.pool.MessageDrivenPool.createBean(MessageDrivenPool.java:115)
    at weblogic.ejb20.pool.Pool.createInitialBeans(Pool.java:191)
    at weblogic.ejb20.pool.Pool.onAfterDeploy(Pool.java:172)
    at weblogic.ejb20.deployer.Deployer.runAfterDeploymentListeners(Deployer.java:1317)
    at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:1005)
    at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:30)
    at weblogic.j2ee.Application.deploy(Application.java:244)
    at weblogic.j2ee.J2EEService.deployApplication(J2EEService.java:185)
    at weblogic.management.mbeans.custom.Application.setLocalDeployed(Application.java:359)
    at weblogic.management.mbeans.custom.Application.setDeployed(Application.java:293)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBeanImpl.java:1334)
    at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:844)
    at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:810)
    at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:288)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
    at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:385)
    at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:291)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
    at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:303)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
    at $Proxy19.setDeployed(Unknown Source)
    at weblogic.management.mbeans.custom.ApplicationManager.autoDeploy(ApplicationManager.java:846)
    at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:811)
    at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:705)
    at weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:200)
    at weblogic.management.mbeans.custom.ApplicationManager$ApplicationPoller.run(ApplicationManager.java:1020)
    >
    <Mar 4, 2002 10:54:00 AM CET> <Error> <Management>
    <InvocationTargetException setting attribute Deployed on MBean
    cpsdomain:Location=AdminServer,Name=cps,Type=ApplicationConfig to
    value true. Method: p
    ement.DeploymentException,weblogic.management.UndeploymentException
    Unable to deploy EJB: ClientEJB from cps-ejb.jar:
    javax.ejb.EJBException: <Errors><Error Number="102"
    Type="NoImplementation">java.lang.ClassCastException:
    com.amadeus.ocg.cps.core.ClientBean_1ng6lu_LocalHomeImpl</Error></Errors>
    at com.amadeus.ocg.cps.csx.CSXToCPSConversionBean.setMessageDrivenContext(CSXToCPSConversionBean.java:82)
    at weblogic.ejb20.internal.MessageDrivenEJBHome.createBean(MessageDrivenEJBHome.java:303)
    at weblogic.ejb20.pool.MessageDrivenPool.createBean(MessageDrivenPool.java:115)
    at weblogic.ejb20.pool.Pool.createInitialBeans(Pool.java:191)
    at weblogic.ejb20.pool.Pool.onAfterDeploy(Pool.java:172)
    at weblogic.ejb20.deployer.Deployer.runAfterDeploymentListeners(Deployer.java:1317)
    at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:1005)
    at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:30)
    at weblogic.j2ee.Application.deploy(Application.java:244)
    at weblogic.j2ee.J2EEService.deployApplication(J2EEService.java:185)
    at weblogic.management.mbeans.custom.Application.setLocalDeployed(Application.java:359)
    at weblogic.management.mbeans.custom.Application.setDeployed(Application.java:293)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBeanImpl.java:1334)
    at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:844)
    at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:810)
    at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:288)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
    at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:385)
    at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:291)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
    at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:303)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
    at $Proxy19.setDeployed(Unknown Source)
    at weblogic.management.mbeans.custom.ApplicationManager.autoDeploy(ApplicationManager.java:846)
    at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:811)
    at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:705)
    at weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:200)
    at weblogic.management.mbeans.custom.ApplicationManager$ApplicationPoller.run(ApplicationManager.java:1020)
    at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:1021)
    at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:30)
    at weblogic.j2ee.Application.deploy(Application.java:244)
    at weblogic.j2ee.J2EEService.deployApplication(J2EEService.java:185)
    at weblogic.management.mbeans.custom.Application.setLocalDeployed(Application.java:359)
    at weblogic.management.mbeans.custom.Application.setDeployed(Application.java:293)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBeanImpl.java:1334)
    at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:844)
    at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:810)
    at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:288)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
    at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:385)
    at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:291)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
    at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:303)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
    at $Proxy19.setDeployed(Unknown Source)
    at weblogic.management.mbeans.custom.ApplicationManager.autoDeploy(ApplicationManager.java:846)
    at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:811)
    at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:705)
    at weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:200)
    at weblogic.management.mbeans.custom.ApplicationManager$ApplicationPoller.run(ApplicationManager.java:1020)
    >
    weblogic.management.DistributedManagementException: Distributed
    Management [1 exceptions]
    at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:436)
    at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:291)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
    at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:303)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
    at $Proxy19.setDeployed(Unknown Source)
    at weblogic.management.mbeans.custom.ApplicationManager.autoDeploy(ApplicationManager.java:846)
    at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:811)
    at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:705)
    at weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:200)
    at weblogic.management.mbeans.custom.ApplicationManager$ApplicationPoller.run(ApplicationManager.java:1020)
    --------------- nested within: ------------------
    weblogic.management.configuration.ConfigurationError - with nested
    exception:
    [weblogic.management.DistributedManagementException: Distributed
    Management [1 exceptions]]
    at weblogic.management.mbeans.custom.ApplicationManager.autoDeploy(ApplicationManager.java:850)
    at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:811)
    at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:705)
    at weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:200)
    at weblogic.management.mbeans.custom.ApplicationManager$ApplicationPoller.run(ApplicationManager.java:1020)--
    Rajesh Mirchandani
    Developer Relations Engineer
    BEA Support

  • Java.lang.ClassCastException in EJB's

    Friends Need your suggestions on the following:-
    1. try {
    2.     InitialContext ctx = new InitialContext();
    3.     Object objref = ctx.lookup("ejb/test/MyTestSessionBean");
    4.     testSessionBean = (MyTestSessionHome) PortableRemoteObject.narrow(
    5.               objref, MyTestSessionHome.class);
    6. } catch (Exception NamingException) {
    7.      NamingException.printStackTrace();
    8. }
    I am unable to understand as to why I am getting an exception at line 4.
    The exception is:-
    11:21:56,649 ERROR [STDERR] java.lang.ClassCastException
    11:21:56,649 ERROR [STDERR] at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:
    293)
    11:21:56,649 ERROR [STDERR] at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
    11:21:56,649 ERROR [STDERR] at test.session.SessionTestServlet.init(SessionTestServlet.java:29)
    11:21:56,649 ERROR [STDERR] at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
    11:21:56,649 ERROR [STDERR] at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
    11:21:56,649 ERROR [STDERR] at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
    11:21:56,649 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)
    The above exception comes as soon as I deploy my ear to deploy folder in JBOSS.
    Thanks,
    Vishal

    I was facing the same proble. Simply diasble packaging class files in war file and the problem will be solved. Check build xml...I have commecnted class file addition in war file......Hope it solve your problem....I am beginer in Java technology...so dont hope expert repy from me in case your problem is still not solved....
    <?xml version="1.0"?>
    <!-- ==================================================== -->
    <!-- Build file for our first web application -->
    <!-- build.xml, Saturday, July 20, 2002 -->
    <!-- Author: Deepak Kumar -->
    <!-- Email : [email protected] -->
    <!-- Url : http://www.roseindia.net -->
    <!-- ==================================================== -->
    <project name="Jboss 3.0 tutorial series" default="all" basedir=".">
         <path id="build.classpath">
              <fileset dir="D:/JBOSS-4.0.4/server/default/lib/">
                   <include name="*.jar"/>
              </fileset>
         </path>
         <target name="init">
              <property name="dirs.base" value="${basedir}"/>
              <property name="classdir" value="${dirs.base}/build/src"/>
              <property name="src" value="${dirs.base}/src"/>
              <property name="web" value="${dirs.base}/web"/>
              <property name="deploymentdescription" value="${dirs.base}/deploymentdescriptors"/>
              <property name="warFile" value="example3.war"/>
              <property name="earFile" value="example3.ear"/>
              <property name="jarFile" value="example3.jar"/>
              <property name="earDir" value="${dirs.base}/build/ear"/>
              <property name="warDir" value="${dirs.base}/build/war"/>
              <property name="jarDir" value="${dirs.base}/build/jar"/>
              <!-- Create Web-inf and classes directories -->
              <mkdir dir="${warDir}/WEB-INF"/>
              <mkdir dir="${warDir}/WEB-INF/classes"/>
              <!-- Create Meta-inf and classes directories -->
              <mkdir dir="${earDir}/META-INF"/>
              <mkdir dir="${jarDir}/META-INF"/>
         </target>
         <!-- Main target -->
         <target name="all" depends="init,build,buildWar,buildJar,buildEar"/>
         <!-- Compile Java Files and store in /build/src directory -->
         <target name="build" >
              <javac srcdir="${src}" destdir="${classdir}" classpathref="build.classpath" debug="on" includes="**/*.java" />
         </target>
         <!-- Create the web archive File -->
         <target name="buildWar" depends="init">
    <!--          <copy todir="${warDir}/WEB-INF/classes">
                   <fileset dir="${classdir}" includes="**/*.class" />
              </copy>
    -->     
              <copy todir="${warDir}/WEB-INF">
                   <fileset dir="${deploymentdescription}/web/" includes="web.xml,jboss-web.xml" />
              </copy>
              <copy todir="${warDir}">
                   <fileset dir="${web}" includes="**/*.*" />
              </copy>
              <!-- Create war file and place in ear directory -->
              <jar jarfile="${earDir}/${warFile}" basedir="${warDir}" />
         </target>
         <!-- Create the jar File -->
         <target name="buildJar" depends="init">
              <copy todir="${jarDir}">
                   <fileset dir="${classdir}" includes="**/*.class" />
              </copy>
              <copy todir="${jarDir}/META-INF">
                   <fileset dir="${deploymentdescription}/jar/" includes="ejb-jar.xml,jboss.xml" />
              </copy>
              <!-- Create jar file and place in ear directory -->
              <jar jarfile="${earDir}/${jarFile}" basedir="${jarDir}" />
         </target>
         <!-- Create the ear File -->
         <target name="buildEar" depends="init">
              <copy todir="${earDir}/META-INF">
                   <fileset dir="${deploymentdescription}/ear" includes="application.xml" />
              </copy>
              <!-- Create ear file and place in ear directory -->
              <jar jarfile="${basedir}/${earFile}" basedir="${earDir}" />
         </target>
    </project>

  • ClassCastException using EJB from a service

    Hi all,
    I developed a DeployService and currently I'm getting a ClassCastException while accessing the a EJB.
    I put the lookup within a delegate which is also be used from a webDynpro application. With the WebDynpro App everything work properly, but if I call the delegate from the service a SAPClassCastException I thrown, when I cast the object to the home interface.
    The coding is as follows:
                   Properties props = new Properties();
                   props.put(Context.PROVIDER_URL,"localhost:50004");
                   props.put(Context.INITIAL_CONTEXT_FACTORY,
                   "com.sap.engine.services.jndi.InitialContextFactoryImpl");
                   context = new InitialContext(props);
                   Object obj = context.lookup(jndiName);
                   EJBHome ejb = EJBHomeFactory.getInstance().lookup(jndiName, ComponentHome.class);
                   ComponentHome componentHome = (ComponentHome)ejb;
    Thanks a lot for the help.
    Falk

    Hi Falk,
    Hey just tell me that what is the EJBHome and ComponentHome and EJBHomeFactory in your coding.....
    You can try the following code for the same.
    Object obj =(Object) jndicontext.lookup("<Your JNDI name>");
    TestEJBHome home = (TestEJBHome) javax.rmi.PortableRemoteObject.narrow(
                   obj,
                   TestEJBHome.class);
    TestEJB hello = home.create();
    Here, TestEJBHome is your Home interface of the EJB and TestEJB is your remote interface. Now you can use hello object to call your business methods of EJB.
    Regards,
    Bhavik

  • EJB Redeploy in 8.1

    Hi,
    There is a way to redeploy only 1 ejb module inside in an ear
    using the ant task?
    I mean that if I chaged a method inside an ejb I don't want to redeploy
    the whole ear because it's really big.
    Thanks,
    Avi

    java weblogic.BuildXMLGen will generate build scripts for you that have all
    these targets in place, try it out for youself, in the mean tim here is an
    example of one.
    Cheers
    mbg
    <!-- Redeploys just helloEJB of the application -->
    <target name="redeploy.helloEJB" description="Redeploys just the helloEJB
    module of the application">
    <wldeploy user="${user}" password="${password}"
    action="redeploy" targets="helloEJB@${serverName}"
    name="simpleEAR" />
    </target>
    "Avi" <[email protected]> wrote in message news:[email protected]..
    Hi,
    There is a way to redeploy only 1 ejb module inside in an ear
    using the ant task?
    I mean that if I chaged a method inside an ejb I don't want to redeploy
    the whole ear because it's really big.
    Thanks,
    Avi

  • ClassCastException calling EJB from EJB (diff  EARs) Urgent please help !!

    Hi,
    I�m trying to call a Remote EJB ( in jdev BBEAN.prj ) from another EJB (in jdev ABEAN.prj) located in a different EAR.
    In JDEVELOPER (oc4j 9.0.3) I also considered BBEAN as a libreary which is included in the ABEAN project.
    So that the ABEAN JAR contains the class definition for the Home and remote interface.
    From the ABEAN bean I call this code:
    DO ()
    private static Context getInitialContext() throws NamingException
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "admin");
    env.put(Context.SECURITY_CREDENTIALS, "manager");
    env.put(Context.PROVIDER_URL, "ormi://GSARNO-1/BBean");
    return new InitialContext(env);
    BBeanHome BBeanHome = (BBeanHome)PortableRemoteObject.narrow(context.lookup("BBean"), BBeanHome.class);
    BBean bBean;
    ������������..
    After having deployed both projects I then run a client (Calling the Do function).
    Doing so I keep receiving the following error when calling narrow.
    java.lang.ClassCastException
    java.lang.Object com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(java.lang.Object, java.lang.Class)
    PortableRemoteObject.java:296
    java.lang.Object javax.rmi.PortableRemoteObject.narrow(java.lang.Object, java.lang.Class)
    PortableRemoteObject.java:137
    java.lang.String mypackage1.impl.MySessionEJBBean.Do()
    MySessionEJBBean.java:39
    java.lang.String MySessionEJB_StatelessSessionBeanWrapper6.Do()
    MySessionEJB_StatelessSessionBeanWrapper6.java:85
    java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
    native code
    void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
    RMICallHandler.java:119
    void com.evermind.server.rmi.RMICallHandler.run()
    RMICallHandler.java:48
    void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
    PooledExecutor.java:803
    void java.lang.Thread.run()
    Thread.java:484
    Can anyone help ?
    What should I do to call remote e/o local interfaces located on different EARs ?
    I�m using OC4J 9.0.3

    Hi Giuseppe,
    If both EAR files are in the same OC4J instance you do not have to use RMIInitialContextFactory to invoke the EJB. You have to do the following:
    In OC4J
    1) Make the BBEAN as the parent for ABEAN application defined in the server.xml as follows:
    application name="ABEAN" path="../applications/abean.ear" parent="BBEAN" auto-start="true" />
    2)
    You can define ejb-ref or ejb-local-ref in the deployment descriptor of your application
    3) You can use the default InitialContext to lookup your EJB as if both EJBs are in the same application
    regards
    Debu

  • Java.lang.ClassCastException serializing EJB

    Hi!
    I'm getting this exception while passing an EJB as a method parameter.
    RMI Exception passing by to client
    java.lang.ClassCastException: com.evermind.server.rmi.RemoteInvocationHandler
    at com.evermind.server.ejb.EJBOutputStream.replaceEJBObject(EJBOutputStream.java:53)
    at com.evermind.server.ejb.EJBOutputStream.replaceObject(EJBOutputStream.java:25)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:318)
    The Remote interface extends java.io.Serializable, and the Bean Class implement this interface (obviously). All fields in the Bean implementation class are also Serializable.
    I don't know why casting to com.evermind.server.rmi.RemoteInvocationHandler fails for this EJB, and I don't know if is the expected behavior.
    Any ideas?
    F.Catrin
    TUXPAN

    Hi!
    I'm getting this exception while passing an EJB as a method parameter.
    RMI Exception passing by to client
    java.lang.ClassCastException: com.evermind.server.rmi.RemoteInvocationHandler
    at com.evermind.server.ejb.EJBOutputStream.replaceEJBObject(EJBOutputStream.java:53)
    at com.evermind.server.ejb.EJBOutputStream.replaceObject(EJBOutputStream.java:25)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:318)
    The Remote interface extends java.io.Serializable, and the Bean Class implement this interface (obviously). All fields in the Bean implementation class are also Serializable.
    I don't know why casting to com.evermind.server.rmi.RemoteInvocationHandler fails for this EJB, and I don't know if is the expected behavior.
    Any ideas?
    F.Catrin
    TUXPAN

  • ClassCastException on ejb jndi lookup

    Hello,
    I try to get an standalone remote client to to connect to my stateless session bean:
    java.util.Properties props = new java.util.Properties();
    props.put("java.naming.provider.url", "181.205.12.19:50004");
    props.put("java.naming.factory.initial", "com.sap.engine.services.jndi.InitialContextFactoryImpl" );
    props.put("java.naming.security.authentication", "simple");
    props.put("java.naming.security.principal", "j2ee_admin");
    props.put("java.naming.security.credentials", "*****");
    jndiContext = new InitialContext(props);
    fetching of jndi context is fine, but once I try to lookup my home interface I get a class cast exception:
    home = (ToEdifactConverterHome) PortableRemoteObject.narrow(jndiContext.lookup ("sap.com/EdifactEar/ToEdifactConverterBean"), ToEdifactConverterHome.class);
    java.lang.ClassCastException
         at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:293)
         at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
         at test.cceag.transform.TransformTester.setUp(TransformTester.java:74)
         at test.cceag.transform.TransformTester.main(TransformTester.java:48)
    The jndi lookup seems to return the bean implementation object, but not the home interface itself.
    Thanks for any hints
    Matthias

    Hi Matthias,
    i think the   guide
    "How to...EJB: Accessing EJB Applications Using JNDI"
    will help you to solve the ejb lookup problem:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0736159e-0301-0010-9ea4-c63d83d0797b
    good luck, Katharina

  • Automatic ejb redeploy when deploying a webapp

    Hi all,
    I' got a problem with bea 6.1 webapp deploy/redeploy.
    When, from console, I upload the war the server undeploy and redeploy an EJB,
    then try to deploy the war.
    The ejb is used by the webapp and in the war (in WEB-INF/classes) there are the
    EJB interfaces.
    Is this correct ?
    The real problem is that I have to deploy on a 2 node cluster. Deploying from
    console automatically target the admin server, the EJB fail the redeploy and the
    webapp is not deployed on the nodes.
    I tryed to undeploy the EJB before deploying the webapp and another EJB (not related
    to the webapp, developed here, not from bea) id redeployed ! :|
    Any idea ?
    Thanks
    Lorenzo

    Lorenzo,
    Have you considered using an Enterprise Application (EAR) which includes both your web
    app and your ejbs? This way you can undeploy and redeploy at the application level and
    let the server worry about the deployment order. See:
    http://edocs.bea.com/wls/docs61/programming/packaging.html#1029830
    You can turn off the automatic deployment to the admin server. Please read:
    http://edocs.bea.com/wls/docs61/adminguide/appman.html#1029683
    I hope this helps.
    Regards,
    Velvet
    Developer Relations Engineer
    BEA Systems
    "\"lorenzo bolzani\" lorenzo.bolzani-at-ethink.it" wrote:
    Hi all,
    I' got a problem with bea 6.1 webapp deploy/redeploy.
    When, from console, I upload the war the server undeploy and redeploy an EJB,
    then try to deploy the war.
    The ejb is used by the webapp and in the war (in WEB-INF/classes) there are the
    EJB interfaces.
    Is this correct ?
    The real problem is that I have to deploy on a 2 node cluster. Deploying from
    console automatically target the admin server, the EJB fail the redeploy and the
    webapp is not deployed on the nodes.
    I tryed to undeploy the EJB before deploying the webapp and another EJB (not related
    to the webapp, developed here, not from bea) id redeployed ! :|
    Any idea ?
    Thanks
    Lorenzo

  • ClassCastException with EJB

    I have two EARs, call them A and B.  Both A and B have ejb's inside them; A references B since B contains a ServiceLocator class (j2ee pattern) that A calls.
    Whenever I make changes to A and do a build/deploy, I get a ClassCastException when trying to fetch the EJB home object in A.  If I stop/start B and re-execute the ejb in A, the ClassCastException does not occur.
    Has anyone else run into this issue, and if so, how do you fix it?  For obvious reasons, I would rather not have to restart dependant applications when I deploy an application - this defeats the purpose of setting up dependancies in the j2ee engine, since it should be able to unlink/relink the application dependancy chain at runtime based on the sharing references.  However, this doesn't appear to be the case.

    Maksim,
    Well, the issue is related to the dev/deploy/test cycle, so the deployments are manual.  The DCs are in the same track, so the 'real' deployment will be done via SCA's, so I'm not worried about dependancy issues.
    The references are set as 'hard' right now - I could switch them to 'soft', but I don't think that would solve this dependancy issue.  The type of reference controls how applications are started, do they not?  Or, would switching to a soft reference help?  I'll give it a try and see...
    What I've found is that I can stop/start the parent EAR, and this solves the problem.  However, it's painful. 
    I still don't quite understand why deploying a child EAR causes a class cast exception when fetching the parent object, since the parent object hasn't changed.  My guess is that the class loader is caching the version ids, and gets confused when the new version of the child ear runs....
    BTW, sorry for the long delay in responding - I've been on vacation....

  • Cannot get a simple EJB 3 working

    Hi all !
    I'm porting an older EJB 1.1 application to Weblogic 10.3. I'm upgrading the EJBs to EJB 3.0, for example the following:
    @Stateless(mappedName = "ServiceSessionManager")
    @Remote()
    public class ServiceSessionManagerBean implements ServiceSessionManager {
    Once deployed I have observed two entries in the JNDI tree:
    ServiceSessionManager#irma
    irma-ejbirma-ejb_jarServiceSessionManagerBean_ServiceSessionManager
    However, trying to look up any of the two bindings results in an exception :
    #1
    ServiceSessionManager objServiceSessionManager = (ServiceSessionManager) ctx.lookup("ServiceSessionManager#irma");
    java.lang.ClassCastException: weblogic.corba.j2ee.naming.ContextImpl cannot be cast to irma.ejb.serviceSessionManager.ServiceSessionManager
    *     at irma.serviceLocator.ResourceLocator.remoteService(ResourceLocator.java:106)*
    *     at irma.loginClient.LoginGUI.loadProfile(LoginGUI.java:287)*
    #2
    ServiceSessionManager objServiceSessionManager = (ServiceSessionManager) ctx.lookup("irma-ejbirma-ejb_jarServiceSessionManagerBean_ServiceSessionManager");
    java.lang.ClassCastException: irma.ejb.serviceSessionManager._ServiceSessionManagerBean_6bu45c_ServiceSessionManagerIntf_Stub cannot be cast to irma.ejb.serviceSessionManager.ServiceSessionManager
    I'm running the cllient using Sun JDK 1.6.20 and adding in the classpath wlclient.jar and the Server Project as well.
    Any Help
    Thanks
    Frank

    Hi Jay,
    I've added deployment descriptors as suggested but now I get the following error:
    WARNING: "IOP00810210: (MARSHAL) Error from readValue on ValueHandler in CDRInputStream"
    org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 210 completed: Maybe
         at com.sun.corba.se.impl.logging.ORBUtilSystemException.valuehandlerReadError(Unknown Source)
         at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(Unknown Source)
         at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(Unknown Source)
         at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_abstract_interface(Unknown Source)
         at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_abstract_interface(Unknown Source)
         at com.sun.corba.se.impl.encoding.CDRInputStream.read_abstract_interface(Unknown Source)
         at com.sun.corba.se.impl.util.Utility.readAbstractAndNarrow(Unknown Source)
         at com.sun.corba.se.impl.io.IIOPInputStream.inputObjectField(Unknown Source)
         at com.sun.corba.se.impl.io.IIOPInputStream.inputClassFields(Unknown Source)
         at com.sun.corba.se.impl.io.IIOPInputStream.inputObject(Unknown Source)
         at com.sun.corba.se.impl.io.IIOPInputStream.simpleReadObject(Unknown Source)
         at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(Unknown Source)
         at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(Unknown Source)
         at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(Unknown Source)
         at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(Unknown Source)
         at com.sun.corba.se.impl.encoding.CDRInputStream.read_value(Unknown Source)
         at weblogic.corba.cos.naming._NamingContextAnyStub.resolve_any(_NamingContextAnyStub.java:81)
         at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:208)
         at weblogic.corba.j2ee.naming.NamingEnumerationImpl.hasMore(NamingEnumerationImpl.java:87)
         at irma.serviceLocator.ResourceLocator.remoteService(ResourceLocator.java:100)
         at irma.loginClient.LoginGUI.loadProfile(LoginGUI.java:287)
         at irma.irmaApp.IrmaApplication.main(IrmaApplication.java:55)
    Caused by: java.lang.NoClassDefFoundError: weblogic/utils/classloaders/GenericClassLoader
         at java.lang.Class.getDeclaredFields0(Native Method)
    Do you think this error can be caused by different JVM ? the server is running Java(TM) SE Runtime Environment (build 1.6.0_05-b13) while the client is running 1.6.20 ??
    thanks again
    Frank

  • Problem in getting Updated EJB methods in JSC for a Same Project

    I'm Using Sun Studio Enterprise for developing EJB sets.After that i'm importing the EJB set in to JSC & using it my Project.
    If i need to add some more business methods/edit the business method i'm able to do that in the Sun Enterprise IDE.After editing the EJB ,redeploying & reimporting to JSC i couldn't get the updated version of EJB in my Current Project.
    We could be able to get the updated EJBs,if we are using it in a new project other than using it in the Previous one.
    It's being a great problem for me.Vat shall i do for this problem?Please help me,a project is in Pending stage because of this problem.
    Regards
    Kajanan

    Hi MWH@Keystroke,
    Thanks for your consideration of my problem.I also use an EJB layer built in Sun Enterprise for the backend to my Creator-based web application.My Current problem is getting the updated EJB sets to my current project.
    For Ex:
    If i add a new Business method called doSomething( ),then i should be able to get that method in JSC using FinalFacadeRemoteClient1.doSomething().
    But after typing FinalFacadeRemoteClient. , doSomething() method is not displaying.
    If i use that in a new project [Previously not used Same Session Facades]all the updated EJB business methodss are coming.I want to use updated EJBs in the project i'm already working.
    Regards
    Kajanan

  • ClassCastException while looking up Home

    I have created a CMP Customer Bean, whose persistence fields are ID(PK), name, password and address inside the package navin.ejb.ecommerce.
    The bean has been deployed successfully.
    Now I have made an Login servlet also in the same package which allows login to customers whose name and password match with those in the database.
    But in the init() method when I lookup the bean, it gives the ClassCastException. The lookup should return a class of type navin.ejb.ecommerce.CustomerHome but it gives error as:
    java.lang.ClassCastException: navin.ejb.ecommerce.CustomerBeanHomeImpl_ServiceStub
    Can anyone tell me the possible solution. I am using Weblogic.

    Hello Navin,
    Try this out
    Object obj = ctx.lookup(<bean_jndi_name>);
    CustomerHome home = (CustomerHome) PortableRemoteObject.narrow(obj, CustomerHome.class)
    Also checkout the JNDI tree of the server, so that you are sure that teh name you are looking for in the lookup method is bound to the bean you want.
    Hope this helps.
    regards,
    Abhishek.

Maybe you are looking for

  • Change End date of billing plan/invoice plan in sales order item(fpla-erdat

    Hi Experts, Could you please help to me regarding this issue. I need to change  End date of billing plan/invoice plan  in sales order item  of  "billing plan" Tab.( FPLA-ERDAT) for all line items. It is not a one sales order,more than 1000 sales orde

  • Can you attach a sound to the video for editing?

    In iMovie 9 If you detach the audio from one clip and move it to another, can you somehow lock it into place so that when you split video and clip parts, the sound gets clipped as well?

  • Sending PDF as attachment using Business workflow from Java WD

    Hi, It seems it is famous and known may be solved issue. But i am not able to conceptualize the information available. Thats why i am posting this. pls suggest me how to proceed. My scenario: I have an online intercative form in java webdynpro applic

  • Getting error while Executing Recurrig Document in F.14

    Hi, While  exceuting the recurring document in F.14, SAP gives error message,"Session SAPF120 was not created". Can any one please advice me why this error came up and how to execute the recurring documents using the template. Thanks, Lavanya Edited

  • CProjects "accounting Tab" role/resource assignments missing

    Hi, I have assinged the Project Taks with roles and resources but when i navigate to the "accounting tab"  and expand the Project structure , the assignments are not visible, However the costs and rev related to the assignments are updated in the bac