3 Replies Latest reply on Jun 11, 2003 4:01 AM by mayankmishra

    unable to recongnise symbol

    javawanderer Newbie

      While accessing my simple Bean class, i am facing the following problem and unable to find out the problem

      Exception Message: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file [javac] C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Jetty_0_0_0_0_8080__cis\cis\inventory\SelectOrganisation_jsp.java:107: cannot resolve symbol [javac] symbol : class EmployeeInfo
      [javac] location: class org.apache.jsp.SelectOrganisation_jsp [javac] EmployeeInfo empInfo=(EmployeeInfo)pageContext.getAttribute("employeeInfo",pageContext.SESSION_SCOPE); [javac] ^
      [javac] C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Jetty_0_0_0_0_8080__cis\cis\inventory\SelectOrganisation_jsp.java:107: cannot resolve symbol [javac] symbol : class EmployeeInfo [javac] location: class org.apache.jsp.SelectOrganisation_jsp [javac] EmployeeInfo empInfo=(EmployeeInfo)pageContext.getAttribute("employeeInfo",pageContext.SESSION_SCOPE); [javac] ^ [javac] 2 errors
      No Data Exist

      Please guide me. It is crucial problem for me.

        • 1. Re: unable to recongnise symbol
          prabhakar chaganti Apprentice

          Looks like you are not importing EmployeeInfo class. The jsp cannot find it ...

          -prabhakar

          • 2. Re: unable to recongnise symbol
            javawanderer Newbie

            Thanx

            I have solved the problem.
            The problem was same as this class was not being imported.

            • 3. Re: unable to recongnise symbol
              mayankmishra Newbie

              hi Dear,

              I am also facing the same kind of error while you were facing ,
              while deploying my jsp it gives no error , i am using jobss/jetty.

              at run-time when i call up for the jsp page ,it gives.

              Exception Message: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file [javac] C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Jetty_0_0_0_0_8080__Calculator\index_jsp.java:107: cannot resolve symbol [javac] symbol : class Calculator

              I have give them in index.jsp also , in import statement.but still not working.I don't know where i should place class files of EJB so that my jsp can refer them.

              Dir Structure is :
              Sample.ear
              +
              +--- META-INF (containing application.xml)
              +----Sample.jar
              +----Sample.war
              +
              +-------index.jsp
              +-------WEB-INF(containing jboss-web , web XML's)

              Indeed for experimenting i have also give ejb-ref tag in web.xml, but still not working.

              please help me out.

              Thanking You,