0 Replies Latest reply on Mar 25, 2003 12:27 PM by Denise Oliveira

    JSP import problem!

    Denise Oliveira Newbie

      Please...

      I'm having the same problem as the guy in the message of Jetty problem, I took his message from the forum, but I don't know why I was note able to reply it and put my comment below his's.

      Ok. Let's explain the problem: I'm not using JBoss with Tomcat. I'm using Jboss 3.0.6 in win 2k.

      And when I run my jsp I get this error:


      HTTP ERROR: 500 Unable to compile class for JSP C:\DOCUME~1\DENISE~1\CONFIG~1\Temp\Jetty_0_0_0_0_8080__\index_0005flogin$jsp.java:6: Class or interface declaration expected. import javax.servlet.*; ^ C:\DOCUME~1\DENISE~1\CONFIG~1\Temp\Jetty_0_0_0_0_8080__\index_0005flogin$jsp.java:12: Superclass org.apache.jsp.HttpJspBase of class org.apache.jsp.index_0005flogin$jsp not found. public class index_0005flogin$jsp extends HttpJspBase { ^ 2 errors


      I’ve tried to put j2ee12.jar into classpath, but it generated another problem at server.log (that comes below).

      Do I have to use JBoss with Tomcat or am I missing something at configuration?

      I'd appreciate some help. I've already read the past messages, but haven’t found a way to solve the problem.

      Thank you in advance.

      Denise.


      +++++++++++++++++++++++


      2003-03-25 10:36:31,341 ERROR [org.jboss.deployment.MainDeployer] could not start deployment: file:/C:/jboss-3.0.6/server/default/deploy/http-invoker.sar/invoker.war/
      java.lang.NoSuchMethodError
      at org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.java:202)
      at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139)
      at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:350)
      at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:265)
      at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
      at org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:426)
      at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:150)
      at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:490)
      at org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.java:85)
      at org.jboss.jetty.Jetty.deploy(Jetty.java:368)
      at org.jboss.jetty.JettyService.performDeploy(JettyService.java:249)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
      at org.jboss.deployment.MainDeployer.addDeployer(MainDeployer.java:230)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.deployment.SubDeployerSupport.startService(SubDeployerSupport.java:98)
      at org.jboss.jetty.JettyService.startService(JettyService.java:178)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
      at $Proxy4.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:413)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy2.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:230)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:656)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:261)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:413)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy2.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:230)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:325)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:222)
      at org.jboss.Main.boot(Main.java:148)
      at org.jboss.Main$1.run(Main.java:381)
      at java.lang.Thread.run(Thread.java:484)