3 Replies Latest reply on Jan 23, 2004 1:48 PM by maximuszen

    an ejb method is defined but I can't compile it...

    maximuszen Newbie

       

      "maximuszen" wrote:
      the funny thing is that it was working before. i'm using jboss-3.2.1 and eclipse 2.1.2. i've included the xdoclet tags for the method at the end. i tried changing it when it was working fine and that's when it started not to work. i've changed it back to the original but it still doesn't work. its been holding me up all week.


      Exception compiling Compile failed; see the compiler error output for details.

      13:34:32,163 WARN [jbossweb] WARNING: Exception:
      Compile failed; see the compiler error output for details.
      at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:844)
      at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
      at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317)
      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.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
      at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
      at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
      at org.mortbay.http.HttpServer.service(HttpServer.java:863)
      at org.jboss.jetty.Jetty.service(Jetty.java:460)
      at org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
      at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)

      13:34:32,164 INFO [jbossweb] Exception: : Compile failed; see the compiler error output for details.
      13:34:32,164 ERROR [STDERR] Compile failed; see the compiler error output for details.
      13:34:32,164 ERROR [STDERR] at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:844)
      13:34:32,164 ERROR [STDERR] at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
      13:34:32,164 ERROR [STDERR] at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317)
      13:34:32,164 ERROR [STDERR] at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
      13:34:32,165 ERROR [STDERR] at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
      13:34:32,165 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
      13:34:32,165 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
      13:34:32,166 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
      13:34:32,166 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      13:34:32,166 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
      13:34:32,166 ERROR [STDERR] at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
      13:34:32,166 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
      13:34:32,166 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
      13:34:32,166 ERROR [STDERR] at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507)
      13:34:32,166 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
      13:34:32,166 ERROR [STDERR] at org.mortbay.http.HttpServer.service(HttpServer.java:863)
      13:34:32,166 ERROR [STDERR] at org.jboss.jetty.Jetty.service(Jetty.java:460)13:34:32,166 ERROR [STDERR] at org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
      13:34:32,167 ERROR [STDERR] at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
      13:34:32,167 ERROR [STDERR] at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
      13:34:32,167 ERROR [STDERR] at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
      13:34:32,167 ERROR [STDERR] at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
      13:34:32,167 ERROR [STDERR] at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)
      13:34:32,172 WARN [jbossweb] WARNING: Exception for /emr/pl?patientID=3
      org.apache.jasper.JasperException: Unable to compile class for JSP

      An error occurred at line: 444 in the jsp file: /problemList.jsp

      Generated servlet error:
      [javac] Compiling 1 source file
      [javac] /tmp/Jetty_0_0_0_0_8080__emr/problemList_jsp.java:940: cannot resolve symbol
      [javac] symbol : method findByPatientID (java.lang.String)
      [javac] location: interface ejb.RecordsHome
      [javac] Collection chart = recordsHome.findByPatientID(patientID);
      [javac] ^
      [javac] 1 error



      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.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
      at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
      at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
      at org.mortbay.http.HttpServer.service(HttpServer.java:863)
      at org.jboss.jetty.Jetty.service(Jetty.java:460)
      at org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
      at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)

      this is in my RecordsHome.java... recordsHome is an instance of

      * @ejb.finder
      * query="SELECT OBJECT(a) FROM records as a WHERE a.patientID=?1"
      * signature="java.util.Collection findByPatientID(java.lang.String patientID)"
      *
      * @jboss.query
      * query="SELECT OBJECT(a) FROM records as a WHERE a.patientID=?1 ORDER BY a.datetime DESC"
      * signature="java.util.Collection findByPatientID(java.lang.String patientID)"