5 Replies Latest reply on Oct 5, 2002 7:51 PM by abreis

    re-deploy an existing war

    abreis

      Hi,

      I have downloaded jboss3.0.3 + tomcat4.1.12 + jdk 1.4.1 and started successfully.

      However, when re-deploy an existing war and call my teste.jsp, there is an error of ClassCastException. If I shutdown JBoss and re-start it, my teste.jsp works fine. Why?

      Thanks.

        • 1. Re: re-deploy an existing war

          you need to show the errors if you ever want someone to look at your problem more closely

          • 2. Re: re-deploy an existing war
            abreis

            when I use in my jsp (after to update my war):

            testRemoteHome = (TestRemoteHome) PortableRemoteObject.narrow(ref, TestRemoteHome.class);

            The error is "java.lang.ClassCastException".

            if I re-start JBoss it works perfectly.

            • 3. Re: re-deploy an existing war
              camus

              Hi,

              I face the same problem, even with JBoss3.0.0.

              For my case, the problem can be simply solved by using JDK1.3. It is the problem when using JDK1.4. I have asked this question for hundred times without any answers.

              Also, with JBoss3.0.3, the shutdown.sh doesn't work and after submitting shutdown.sh, jboss doesn't have any response but keep running as normal ( it is running under Solaris 2.7).

              Camus

              • 4. Re: re-deploy an existing war

                > when I use in my jsp (after to update my war):
                >
                > testRemoteHome = (TestRemoteHome)
                > PortableRemoteObject.narrow(ref,
                > TestRemoteHome.class);
                >
                > The error is "java.lang.ClassCastException".
                >
                > if I re-start JBoss it works perfectly.

                can you check if 1.3 works for you?

                as a workaround use regular java casting, not narrow after lookup, and post a simple test case and file bug report on 1.4.1 case to sf bug tracker (www.sf.net/projects/jboss)

                • 5. Re: re-deploy an existing war
                  abreis

                  Hi,

                  it works fine with jdk1.3.1.

                  Thanks for help me with this hint.