2 Replies Latest reply on Jun 9, 2005 3:11 PM by Shanthi Rajaram

    ClassCastException

    Shanthi Rajaram Newbie

      Hi,

      I am very new to Java/JBoss/Tomcat etc.

      I downloaded JBoss4.0.2
      apache-ant1.6.5
      Tomcat 4.1
      Jdk 1.5.0_03

      I have a very simple jsp-servlet-EJB setup that I am trying to work with.

      I have been able to create the ear and deploy it successfully.

      Now when I try to access the .jsp from the interface. the initial, jsp is okay.

      but when I try to say select between two links colors( which is supposed to list colors from a array list ) and places ( from another array list ) depending on what I select, it gives the following error.

      [EARDeployer] Started J2EE application: file:/C:/jboss-4.0.2/server/default/deploy/example4.ear
      [STDOUT] In do Post
      [STDOUT] java.lang.ClassCastException
      [STDOUT] at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229)
      [STDOUT] at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
      [STDOUT] at com.sample.myproj.HelloWorldServlet.doPost(HelloWorldServlet.java:37)
      [STDOUT] at com.sample.myproj.HelloWorldServlet.doGet(HelloWorldServlet.java:54)
      [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
      [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
      [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
      [STDOUT] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
      [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      .....


      Can somebody please help me solve this problem ?

      Thanks a lot in advance.
      Shanthi