Petals Web-Console

Unable to install a component

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.1
  • Fix Version/s: 2.1
  • Component/s: None
  • Security Level: Public
  • Description:
    Hide

    When I try to install a local component, I've got an error (see the stack trace further).
    The installation is ok with the autoloader and the ant tasks.
    I put in attachment the se-kpi.zip used, and a screenshot.

    The stack trace:
    java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String;

    org.ow2.petals.tools.webconsole.util.GeneralHelper.getFileRepositoryURL(GeneralHelper.java:636)
    org.ow2.petals.tools.webconsole.business.InstallComponentBBean.beginLocalInstallation(InstallComponentBBean.java:162)
    org.ow2.petals.tools.webconsole.uibeans.InstallComponentUIBean.install(InstallComponentUIBean.java:196)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:597)
    org.ow2.opensuit.cel.impl.tree.impl.ast.AstInvocation.invoke(AstInvocation.java:146)
    org.ow2.opensuit.cel.impl.tree.impl.ast.AstMethod.invoke(AstMethod.java:136)
    org.ow2.opensuit.cel.impl.tree.impl.ast.AstEval.invoke(AstEval.java:59)
    org.ow2.opensuit.core.expression.ExpressionUtils.invokeExpression(ExpressionUtils.java:119)
    org.ow2.opensuit.xml.base.binding.Expression.invoke(Expression.java:147)
    org.ow2.opensuit.xml.base.action.DoAndForward.invoke(DoAndForward.java:141)
    org.ow2.opensuit.xml.base.html.form.EditForm.submit(EditForm.java:152)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:597)
    org.ow2.opensuit.xml.base.Application.service(Application.java:514)
    org.ow2.opensuit.core.impl.j2ee.OpenSuitServlet.service(OpenSuitServlet.java:155)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
    org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
    java.lang.Thread.run(Thread.java:619)

    Show
    When I try to install a local component, I've got an error (see the stack trace further). The installation is ok with the autoloader and the ant tasks. I put in attachment the se-kpi.zip used, and a screenshot. The stack trace: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String; org.ow2.petals.tools.webconsole.util.GeneralHelper.getFileRepositoryURL(GeneralHelper.java:636) org.ow2.petals.tools.webconsole.business.InstallComponentBBean.beginLocalInstallation(InstallComponentBBean.java:162) org.ow2.petals.tools.webconsole.uibeans.InstallComponentUIBean.install(InstallComponentUIBean.java:196) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.ow2.opensuit.cel.impl.tree.impl.ast.AstInvocation.invoke(AstInvocation.java:146) org.ow2.opensuit.cel.impl.tree.impl.ast.AstMethod.invoke(AstMethod.java:136) org.ow2.opensuit.cel.impl.tree.impl.ast.AstEval.invoke(AstEval.java:59) org.ow2.opensuit.core.expression.ExpressionUtils.invokeExpression(ExpressionUtils.java:119) org.ow2.opensuit.xml.base.binding.Expression.invoke(Expression.java:147) org.ow2.opensuit.xml.base.action.DoAndForward.invoke(DoAndForward.java:141) org.ow2.opensuit.xml.base.html.form.EditForm.submit(EditForm.java:152) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.ow2.opensuit.xml.base.Application.service(Application.java:514) org.ow2.opensuit.core.impl.j2ee.OpenSuitServlet.service(OpenSuitServlet.java:155) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873) org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) java.lang.Thread.run(Thread.java:619)
  • Environment:
    RHEL 5, jdk 1.6, tomcat 5.5.29

Activity

Hide
Frédéric Gardes added a comment - Tue, 3 Aug 2010 - 11:49:18 +0200

The component used.

Show
Frédéric Gardes added a comment - Tue, 3 Aug 2010 - 11:49:18 +0200 The component used.
Frédéric Gardes made changes - Tue, 3 Aug 2010 - 11:49:18 +0200
Field Original Value New Value
Attachment petals-se-kpi.zip [ 10135 ]
Hide
Frédéric Gardes added a comment - Tue, 3 Aug 2010 - 11:53:34 +0200

The install done and the error generated

Show
Frédéric Gardes added a comment - Tue, 3 Aug 2010 - 11:53:34 +0200 The install done and the error generated
Frédéric Gardes made changes - Tue, 3 Aug 2010 - 11:53:34 +0200
Adrien Ruffie made changes - Mon, 9 Aug 2010 - 14:27:19 +0200
Assignee Olivier Fabre [ ofabre ] Adrien Ruffie [ aruffie ]
Hide
Adrien Ruffie added a comment - Mon, 9 Aug 2010 - 14:28:56 +0200

I investigate the problem with the specified environment.

Show
Adrien Ruffie added a comment - Mon, 9 Aug 2010 - 14:28:56 +0200 I investigate the problem with the specified environment.
Adrien Ruffie made changes - Mon, 9 Aug 2010 - 14:28:56 +0200
Status New [ 10000 ] Open [ 10002 ]
Priority Major [ 3 ]
Adrien Ruffie made changes - Mon, 9 Aug 2010 - 14:29:16 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Adrien Ruffie made changes - Mon, 9 Aug 2010 - 14:29:27 +0200
Fix Version/s 2.0.4 [ 10017 ]
Hide
Adrien Ruffie added a comment - Mon, 9 Aug 2010 - 14:35:40 +0200

The was when you use Tomcat 5.5 because the servlet-api is 2.4 Version of servlet

therefore when the following method javax.servlet.ServletContext.getContextPath()Ljava/lang/String; is called

you get an exception.

The current SNAPSHOT of Petals Webconsole is based on:

<!-- J2EE API dependencies -->
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-servlet_2.5_spec</artifactId>
<version>1.2</version>
<!-- Provided by the application server -->
<scope>provided</scope>
</dependency>

And Tomcat 5.5 only has 2.4 Version and not the 2.5 Servlet Specification Version

Use Tomcat 6.x because the 2.5 servlet-api is used.

Concretely, following the evolution of the J2EE servlet API, Tomcat 5.5 isn't longer supported

Show
Adrien Ruffie added a comment - Mon, 9 Aug 2010 - 14:35:40 +0200 The was when you use Tomcat 5.5 because the servlet-api is 2.4 Version of servlet therefore when the following method javax.servlet.ServletContext.getContextPath()Ljava/lang/String; is called you get an exception. The current SNAPSHOT of Petals Webconsole is based on: <!-- J2EE API dependencies --> <dependency> <groupId>org.apache.geronimo.specs</groupId> <artifactId>geronimo-servlet_2.5_spec</artifactId> <version>1.2</version> <!-- Provided by the application server --> <scope>provided</scope> </dependency> And Tomcat 5.5 only has 2.4 Version and not the 2.5 Servlet Specification Version Use Tomcat 6.x because the 2.5 servlet-api is used. Concretely, following the evolution of the J2EE servlet API, Tomcat 5.5 isn't longer supported
Adrien Ruffie made changes - Mon, 9 Aug 2010 - 14:35:40 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Resolution Fixed [ 1 ]
Hide
Frédéric Gardes added a comment - Thu, 9 Sep 2010 - 17:41:31 +0200

Tomcat 6? Okay! I'm going to switch on and test: thanks!

Show
Frédéric Gardes added a comment - Thu, 9 Sep 2010 - 17:41:31 +0200 Tomcat 6? Okay! I'm going to switch on and test: thanks!
Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
6d 2h 40m
1
Adrien Ruffie
Mon, 9 Aug 2010 - 14:28:56 +0200
Open Open In Progress In Progress
20s
1
Adrien Ruffie
Mon, 9 Aug 2010 - 14:29:16 +0200
In Progress In Progress Resolved Resolved
6m 24s
1
Adrien Ruffie
Mon, 9 Aug 2010 - 14:35:40 +0200



People

Dates

  • Created:
    Tue, 3 Aug 2010 - 11:48:41 +0200
    Updated:
    Thu, 9 Sep 2010 - 17:41:31 +0200
    Resolved:
    Mon, 9 Aug 2010 - 14:35:40 +0200