Problem with version 1.36.0 in Tomcat 5.5.28 (or servleta API 2.4)

32 views
Skip to first unread message

esteban

unread,
Apr 12, 2012, 8:03:36 AM4/12/12
to javamelody
Hi:
I updated from version 1.35.0 to 1.36.0 and javamelody don't start.
Javamelody don't work properly in Tomcat 5.5.28 because
net.bull.javamelody.SessionListener depends on Servlet API 2.5.
This is OK?
This is de error when aplication starting:


ERROR main org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/services] - Excepción enviando evento inicializado de
contexto a instancia de escuchador de clase
net.bull.javamelody.SessionListener
java.lang.NoSuchMethodError:
javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
at
net.bull.javamelody.SessionListener.contextInitialized(SessionListener.java:
190)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
3795)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:
4252)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
544)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:
831)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:
720)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
490)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:
120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1022)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:
448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:
700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)


Regards

Vernat Emeric

unread,
Apr 13, 2012, 5:44:49 AM4/13/12
to javam...@googlegroups.com
Hi Esteban,

Yes, you are right. An incompatibility with the servlet api 2.4 (Tomcat
5.5 for example) was unfortunately introduced in javamelody 1.36.
Sorry about that.

I have created an issue for this:
http://code.google.com/p/javamelody/issues/detail?id=207
It is now fixed for the next release (1.37) which should be released at
the end of April.

While waiting for the fix in the next release, you can use the previous
release (1.35.0) or the following build from trunk to workaround the issue:
http://javamelody.googlecode.com/files/javamelody-20120413.jar

Thanks for notifying the problem.
Emeric


Le 12/04/2012 14:03, esteban a �crit :


> Hi:
> I updated from version 1.35.0 to 1.36.0 and javamelody don't start.
> Javamelody don't work properly in Tomcat 5.5.28 because
> net.bull.javamelody.SessionListener depends on Servlet API 2.5.
> This is OK?
> This is de error when aplication starting:
>
>
> ERROR main org.apache.catalina.core.ContainerBase.[Catalina].

> [localhost].[/services] - Excepci�n enviando evento inicializado de

Reply all
Reply to author
Forward
0 new messages