0 Replies Latest reply on Feb 9, 2012 4:49 AM by subha.g

    The type javax.servlet.http.HttpServletRequest cannot be resolved

    subha.g

      I have JBoss installed in my system. I have deployed one web application in the folder 'C:\Program Files\Jboss\jboss-5.1.0.GA\server\default\deploy'. The JBoss is starting without any exception. Buth when I am hitting the web application URL it is showing the error page. The error is :

       

      Unresolved compilation problems:
      The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files
      The import javax.servlet.http.HttpServletRequest cannot be resolved
      The import javax.servlet.jsp.PageContext cannot be resolved
      The method getPageContext() from the type Form refers to the missing type PageContext
      PageContext cannot be resolved to a type
      The method getPageContext() from the type Form refers to the missing type PageContext
      HttpServletRequest cannot be resolved to a type
      HttpServletRequest cannot be resolved to a type

      After closing this window, press the Refresh or Reload button on your browser to continue.

       

      I have the servlet-api.jar & jsp-api.jar inthe C:\Program Files\Jboss\jboss-5.1.0.GA\common\lib

      The environment varibles for my system are

      Classpath = C:\Program Files\Documentum\dctm.jar;C:\Documentum\config;

      JAVA_HOME  = C:\Program Files\Java\jdk1.6.0;

      JAVA_OPTS = -Djboss.vfs.forceCaseSensitive=true -Djboss.vfs.forceVfsJar=true -Xms1024m -Xmx1024m -XX:MaxPermSize=512m

      JBOSS_HOME = C:\Program Files\Jboss\jboss-5.1.0.GA

      How can I resolve this issue?

      Thanks for your help