1 Reply Latest reply on Sep 4, 2002 6:41 PM by Mikael Eriksson

    newbie: Error running a Simple JSP Sample

    Gilson DElrei Newbie

      I created a simple jsp file and deployed on J2EE Server, it has running without problems. This sample is the same like posted before on this same forum, only with some modifications.
      below is my jsp file (uno.jsp):

      --------------- start uno.jsp file ----------------------
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

      JSP Init Test

      <H2>Init Parameters:</H2>

      First name: <%= firstName %>
      Email address: <%= emailAddress %>


      <%!
      private String firstName, emailAddress;

      public void jspInit() {
      ServletConfig config = getServletConfig();
      firstName = config.getInitParameter("firstName");
      emailAddress = config.getInitParameter("emailAddress");
      }
      %>
      ------------------- end uno.jsp file ------------

      and a excerpt from my server.log file

      ------------------- start server.log ---------------

      I created the uno1.ear (attached) and upload it to C:\JBOSS3\Server\default\deploy and when i tried to launch JBOSS i received the error below on my server.log:

      2002-09-04 13:07:47,170 INFO [org.jboss.web.localhost.Engine] WebappLoader[/uno]: Deploying class repositories to work directory C:\jboss3\catalina\work\localhost\uno
      2002-09-04 13:07:47,340 INFO [org.jboss.web.localhost.Engine] StandardManager[/uno]: Seeding random number generator class java.security.SecureRandom
      2002-09-04 13:07:47,390 INFO [org.jboss.web.localhost.Engine] StandardManager[/uno]: Seeding of random number generator has been completed
      2002-09-04 13:07:48,160 INFO [org.jboss.web.localhost.Engine] ContextConfig[/uno]: Added certificates -> request attribute Valve
      2002-09-04 13:07:48,160 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] Context.lifecycleEvent, event=org.apache.catalina.LifecycleEvent[source=StandardEngine[MainEngine].StandardHost[localhost].StandardContext[/uno]]
      2002-09-04 13:07:48,380 INFO [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] Using Java2 parent classloader delegation: true
      2002-09-04 13:07:48,490 INFO [org.jboss.web.localhost.Engine] StandardWrapper[/uno:default]: Loading container servlet default
      2002-09-04 13:07:49,810 INFO [org.jboss.web.localhost.Engine] default: init
      2002-09-04 13:07:49,810 INFO [org.jboss.web.localhost.Engine] StandardWrapper[/uno:invoker]: Loading container servlet invoker
      2002-09-04 13:07:49,970 INFO [org.jboss.web.localhost.Engine] invoker: init
      2002-09-04 13:07:50,140 INFO [org.jboss.web.localhost.Engine] jsp: init
      2002-09-04 13:07:50,580 ERROR [org.jboss.web.localhost.Engine] StandardContext[/uno]: Servlet /uno threw load() exception
      javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
      at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.createWebContext(EmbeddedCatalinaServiceSX.java:321)
      at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.performDeploy(EmbeddedCatalinaServiceSX.java:238)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:671)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)
      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:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy4.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:405)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:586)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:465)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:237)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
      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:491)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:894)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:340)
      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:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:243)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:465)
      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:491)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:314)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
      at org.jboss.Main.boot(Main.java:142)
      at org.jboss.Main$1.run(Main.java:375)
      at java.lang.Thread.run(Thread.java:479)
      2002-09-04 13:07:50,740 ERROR [org.jboss.web.localhost.Engine] ----- Root Cause -----
      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.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
      at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.createWebContext(EmbeddedCatalinaServiceSX.java:321)
      at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.performDeploy(EmbeddedCatalinaServiceSX.java:238)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:671)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)
      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:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy4.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:405)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:586)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:465)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:237)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
      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:491)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:894)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:340)
      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:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:243)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:465)
      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:491)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:314)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
      at org.jboss.Main.boot(Main.java:142)
      at org.jboss.Main$1.run(Main.java:375)
      at java.lang.Thread.run(Thread.java:479)
      -------------------- end server.log --------------------

      the another files is on the attached file.
      thanks in advance any comments about it.

      Gilson