0 Replies Latest reply on Jul 29, 2003 8:50 AM by billelmehdi

    problem compile JSP that uses EJBs

    billelmehdi Newbie

      Hello, I use Jboss 3.0.7 and Tomcat 4.1
      I have JSPs that uses EJBs.
      The JSP are located in:

      e:/eclipse/workspace/NovaStormJSP/WEB-INF/scr/*

      the packages, represents EJB classes, imported in JSPs as data.Manager are copied in : e:/eclipse/workspace/NovaStormJSP/WEB-INF/lib


      but wen I access to the first JSP "index.jsp" I got:

      org.apache.jasper.JasperException: Unable to compile class for JSP

      An error occurred at line: -1 in the jsp file: null

      Generated servlet error:
      [javac] Since fork is true, ignoring compiler setting.
      [javac] Compiling 1 source file
      [javac] Since fork is true, ignoring compiler setting.
      [javac] E:\Tomcat-4.1\work\Standalone\localhost\creativity\index_jsp.java:7: package data does not exist
      [javac] import data.*;
      [javac] ^
      [javac] E:\Tomcat-4.1\work\Standalone\localhost\creativity\index_jsp.java:8: package manager does not exist
      [javac] import manager.*;
      [javac] ^
      [javac] E:\Tomcat-4.1\work\Standalone\localhost\creativity\index_jsp.java:20: cannot resolve symbol
      [javac] symbol : class ManagerHome
      [javac] location: class org.apache.jsp.index_jsp
      [javac] private ManagerHome lookupManager()throws NamingException, ClassCastExcption{
      [javac] ^
      [javac] E:\Tomcat-4.1\work\Standalone\localhost\creativity\index_jsp.java:20: cannot resolve symbol
      [javac] symbol : class ClassCastExcption
      [javac] location: class org.apache.jsp.index_jsp
      [javac] private ManagerHome lookupManager()throws NamingException, ClassCastExcption{
      [javac] ^
      [javac] E:\Tomcat-4.1\work\Standalone\localhost\creativity\index_jsp.java:28: cannot resolve symbol
      [javac] symbol : class ManagerHome
      [javac] location: class org.apache.jsp.index_jsp
      [javac] return (ManagerHome) PortableRemoteObject.narrow(jndiContext.lookup("Manager"),ManagerHome.class);
      [javac] ^
      [javac] E:\Tomcat-4.1\work\Standalone\localhost\creativity\index_jsp.java:28: cannot resolve symbol
      [javac] symbol : class ManagerHome
      [javac] location: class org.apache.jsp.index_jsp
      [javac] return (ManagerHome) PortableRemoteObject.narrow(jndiContext.lookup("Manager"),ManagerHome.class);
      [javac] ^
      [javac] E:\Tomcat-4.1\work\Standalone\localhost\creativity\index_jsp.java:77: cannot resolve symbol
      [javac] symbol : class LinkedNode
      [javac] location: class org.apache.jsp.index_jsp
      [javac] LinkedNode user = (LinkedNode)session.getAttribute("user");
      [javac] ^
      [javac] E:\Tomcat-4.1\work\Standalone\localhost\creativity\index_jsp.java:77: cannot resolve symbol
      [javac] symbol : class LinkedNode
      [javac] location: class org.apache.jsp.index_jsp
      [javac] LinkedNode user = (LinkedNode)session.getAttribute("user");
      [javac] ^
      [javac] E:\Tomcat-4.1\work\Standalone\localhost\creativity\index_jsp.java:79: cannot resolve symbol
      [javac] symbol : class ManagerHome
      [javac] location: class org.apache.jsp.index_jsp
      [javac] ManagerHome home = lookupManager();
      [javac] ^
      [javac] E:\Tomcat-4.1\work\Standalone\localhost\creativity\index_jsp.java:81: cannot resolve symbol
      [javac] symbol : class Manager
      [javac] location: class org.apache.jsp.index_jsp
      [javac] Manager manager = home.create();
      [javac] ^
      [javac] E:\Tomcat-4.1\work\Standalone\localhost\creativity\index_jsp.java:88: cannot resolve symbol
      [javac] symbol : class LinkedNode
      [javac] location: class org.apache.jsp.index_jsp
      [javac] LinkedNode qua = (LinkedNode)iter.next();
      [javac] ^
      [javac] E:\Tomcat-4.1\work\Standalone\localhost\creativity\index_jsp.java:88: cannot resolve symbol
      [javac] symbol : class LinkedNode
      [javac] location: class org.apache.jsp.index_jsp
      [javac] LinkedNode qua = (LinkedNode)iter.next();
      [javac] ^
      [javac] E:\Tomcat-4.1\work\Standalone\localhost\creativity\index_jsp.java:95: cannot resolve symbol
      [javac] symbol : class LinkedNode
      [javac] location: class org.apache.jsp.index_jsp
      [javac] LinkedNode conclu = (LinkedNode)iter.next();
      [javac] ^
      [javac] E:\Tomcat-4.1\work\Standalone\localhost\creativity\index_jsp.java:95: cannot resolve symbol
      [javac] symbol : class LinkedNode
      [javac] location: class org.apache.jsp.index_jsp
      [javac] LinkedNode conclu = (LinkedNode)iter.next();
      [javac] ^
      [javac] E:\Tomcat-4.1\work\Standalone\localhost\creativity\index_jsp.java:102: cannot resolve symbol
      [javac] symbol : class LinkedNode
      [javac] location: class org.apache.jsp.index_jsp
      [javac] LinkedNode node = manager.getNode(id);
      [javac] ^
      [javac] E:\Tomcat-4.1\work\Standalone\localhost\creativity\index_jsp.java:113: cannot resolve symbol
      [javac] symbol : class LinkedNode
      [javac] location: class org.apache.jsp.index_jsp
      [javac] LinkedNode asso = manager.checkLoginPwd(request.getParameter("login"), password);
      [javac] ^
      [javac] 16 errors



      at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
      at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
      at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
      at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
      at java.lang.Thread.run(Thread.java:536)

      can show me how to do this work correctly!
      Thanks.