3 Replies Latest reply on Jun 15, 2005 9:44 AM by Tom Coupland

    IDE Tutorial - ClassCastException on FiboHome Bean reference

    Andrew Findley Newbie

      I found a solution courtesy of a similar posting to which a reply was posted by 'sherwinds' - Many Thanks sherwinds!

      Here is the posting:

      http://www.jboss.org/index.html?module=bb&op=viewtopic&t=59192

      Look at the second reply, by sherwinds.

      What this amounts to is with the creation of FiboWeb.war, in the Tutorial/bin Folder Selection, do not add a prefix.

      Many thanks again

        • 1. Re: IDE Tutorial - ClassCastException on FiboHome Bean refer
          sherwin delos santos Newbie

          I am glad I could help :-) - I am a newbie to JBoss+Java+everything else in Java world.

          I am currently trying to learn the language. I'm a C# programmer making a transition.

          • 2. Re: IDE Tutorial - ClassCastException on FiboHome Bean refer
            Heiko Selber Newbie

             

            "afindley" wrote:

            http://www.jboss.org/index.html?module=bb&op=viewtopic&t=59192

            [...]

            What this amounts to is with the creation of FiboWeb.war, in the Tutorial/bin Folder Selection, do not add a prefix.



            Could anyone please explain how this possibly solves the problem?

            The exception occurs in ComputeServlet.init(), i.e. when this code is executed, the class must have been already loaded.

            So how can a wrong path to ComputeServlet.class (which is the only class affected by the prefix) lead to the exception?

            And why is this not fixed in the tutorial?

            And how are mere mortals supposed to find this fault? I mean, the supposed purpose of J2EE is to increase productivity, and I would have expected meaningful error messages to support this.

            (In another exercise, I tried to access the worng DB table in JBoss because of a spelling erorr in the deployment descriptor, and the error message I got was something like "did not expect 'FROM' here".)


            • 3. Re: IDE Tutorial - ClassCastException on FiboHome Bean refer
              Tom Coupland Newbie

              sherwinds your a star! Been stuck on that for the last couple of days, your solution worked straight away, thanks allot.

              I would second the call made above by the Doc for more clarity on this as this is surposed to be an introduction to these new techs and to have a 'random' error/solution like this is quite off putting.

              Having said that, this is gonna make me read allot of JBoss/Eclipse material before i start devloping with any of these tools, so mayb it'll pay off in the end.

              Jst my 2 cents worth

              Tom