Petals Web-Console

Unable to install a component

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Resolution: Won't Fix
  • Affects Version/s: 2.0.4
  • Fix Version/s: None
  • Component/s: None
  • Security Level: Public
  • Description:
    Hide

    When I want to install a component (put into attachment) through a "local installation", it failes. it's ok through ant tasks and the autoloader. The stack trace is:
    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)

    There is no more trace into the petals esb or tomcat logs .

    Show
    When I want to install a component (put into attachment) through a "local installation", it failes. it's ok through ant tasks and the autoloader. The stack trace is: 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) There is no more trace into the petals esb or tomcat logs .
  • Environment:
    ESB 3.2-SNAPSHOT, RHEL 5, JDK 1.6
  1. petals-se-newBroker-TSE-1.0-SNAPSHOT.zip
    (5.66 MB)
    Frédéric Gardes
    Wed, 1 Sep 2010 - 13:53:42 +0200
  1. Capture-Internal error - Mozilla Firefox.png
    (131 kB)

Activity

Hide
Frédéric Gardes added a comment - Wed, 1 Sep 2010 - 13:53:42 +0200

The component used and the screen shot

Show
Frédéric Gardes added a comment - Wed, 1 Sep 2010 - 13:53:42 +0200 The component used and the screen shot
Hide
Adrien Ruffie added a comment - Wed, 1 Sep 2010 - 14:02:02 +0200

I already answered this issue ...

You need a web container with the JSR-000154 JavaTM Servlet 2.5

Not 2.4 because the Webconsole 2.1-SNAPSHOT is based on 2.5 Servlet version specification.

And when you try to use it on 2.4 container several method don't exist.

Please use a web container with 2.5 Servlet.

Show
Adrien Ruffie added a comment - Wed, 1 Sep 2010 - 14:02:02 +0200 I already answered this issue ... You need a web container with the JSR-000154 JavaTM Servlet 2.5 Not 2.4 because the Webconsole 2.1-SNAPSHOT is based on 2.5 Servlet version specification. And when you try to use it on 2.4 container several method don't exist. Please use a web container with 2.5 Servlet.
Hide
Frédéric Gardes added a comment - Thu, 9 Sep 2010 - 17:36:07 +0200

What do you mean? You talk about witch jar with witch version? I'm using the Petals ESB 3.2-SNAPSHOT: it doesn't contains th "JavaTM Servlet 2.5"?

Show
Frédéric Gardes added a comment - Thu, 9 Sep 2010 - 17:36:07 +0200 What do you mean? You talk about witch jar with witch version? I'm using the Petals ESB 3.2-SNAPSHOT: it doesn't contains th "JavaTM Servlet 2.5"?
Hide
Christophe DENEUX added a comment - Thu, 9 Sep 2010 - 18:12:09 +0200

The Petals WebConsole is deployed into a Servlet container as Tomcat or GlassFish. The servlet container must be compliant with the specifications "Servlet 2.5".

Show
Christophe DENEUX added a comment - Thu, 9 Sep 2010 - 18:12:09 +0200 The Petals WebConsole is deployed into a Servlet container as Tomcat or GlassFish. The servlet container must be compliant with the specifications "Servlet 2.5".
Hide
Vincent Zurczak added a comment - Tue, 9 Nov 2010 - 12:39:51 +0100

Would it be possible to document it somewhere (on the wiki for example)?
Or alternatively, could you display a warning, contained in a strip at the top of every page, if the servlet container is not compatible?

Show
Vincent Zurczak added a comment - Tue, 9 Nov 2010 - 12:39:51 +0100 Would it be possible to document it somewhere (on the wiki for example)? Or alternatively, could you display a warning, contained in a strip at the top of every page, if the servlet container is not compatible?
Hide
Adrien Ruffie added a comment - Wed, 10 Nov 2010 - 09:00:00 +0100

No you cannot display a warning, because the error appears from the servlet container directly.
I have written the requirements documentation, but this only issue is contained in the chapter
at the moment.

Show
Adrien Ruffie added a comment - Wed, 10 Nov 2010 - 09:00:00 +0100 No you cannot display a warning, because the error appears from the servlet container directly. I have written the requirements documentation, but this only issue is contained in the chapter at the moment.

People

Dates

  • Created:
    Wed, 1 Sep 2010 - 13:49:56 +0200
    Updated:
    Wed, 10 Nov 2010 - 09:00:00 +0100
    Resolved:
    Wed, 1 Sep 2010 - 14:02:02 +0200