0 Replies Latest reply on Oct 17, 2002 12:09 PM by Le Bris Estelle

    JSP compilation problem with jboss-3.0.3_tomcat-4.1.12

    Le Bris Estelle Newbie

      Hello,

      I have an EJB User like wich interface is:
      package com.alkinos.kernel.user ;

      import javax.ejb.EJBLocalObject ;
      import java.util.Collection ;

      /**
      * This interface defines the local interface for the User Bean
      */
      public interface User extends EJBLocalObject {
      public Integer getId() ;
      public String getName() ;
      public String getPassword() ;
      public void setPassword(String password) ;
      public Collection getProfiles() ;
      public boolean verifyPassword(String password) ;
      }

      and a JSP which use this EJB:
      String name = user.getName() ;
      String password = user.getPassword() ;

      At the compilation I have this error:
      jboss-3.0.3_tomcat-4.1.12/tomcat-4.1.x/work/MainEngine/localhost/userwebui/components/editUser_jsp.java:131:
      cannot resolve symbol
      symbol : method getPassword ()
      location: interface com.alkinos.kernel.user.User
      form.setPassword(user.getPassword()) ;
      ^
      1 error

      I found that strange, so I changed my JSP code by:
      ava.lang.reflect.Method method =
      user.getClass().getMethod("getPassword", null);
      System.out.println("method: " + method) ;
      String password = (String)method.invoke(user, null) ;

      And this works fine.

      It's clear that there is a compilation problem but at the execution all
      works fine.
      Could this be a jasper problem ?

      Iris