facebook

java.lang.NoClassDefFoundError: HttpSessionListener

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #302196 Reply

    Marek Pribyl
    Member

    hello,
    suddenly I’m facing an exception when deploying webapp to the integrated tomcat in MyEclipse. recently deploying was working perfectly (same webapp), and I really have no idea what I did wrong… My current installation: Eclipse 3.4.2 classic, MyEclipse 7.1.1
    I’ve installed paralelly MyEclipse 7.5 for testing (use different workspace)

    thanks in advance for any help

    java.lang.NoClassDefFoundError: HttpSessionListener
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1817)
    at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1325)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3770)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
    at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1105)
    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
    at java.lang.Thread.run(Thread.java:619)

    #302205 Reply

    Loyal Water
    Member

    marekpribyl,
    You should setup MyEclipse 7.5 with Eclipse 3.4.2 and test this. Im not sure how it worked earlier because MyEclipse 7.1 is compatible with Eclipse 3.4.1 and not Eclipse 3.4.2.

    #302217 Reply

    Marek Pribyl
    Member

    presumably some project settings changed automagically after importing project from one workspace to another. I set back proper build paths and also replaced in .classpath:
    <classpathentry kind=”con” path=”org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5″/>
    with
    <classpathentry kind=”con” path=”org.eclipse.jdt.launching.JRE_CONTAINER”/>

    I also uninstalled 7.5, and I’m back on 7.1 with eclipse 3.4.2 now which works for me.

    So problem solved, but I really don’t know which changes helped me;-)

    #302236 Reply

    support-joy
    Member

    Good to hear you are all set.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: java.lang.NoClassDefFoundError: HttpSessionListener

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in