facebook

JavaEE 5 jar files missing in Tomcat 5.5 deployment

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

    Dwight
    Participant

    I had been running my app fine in tomcat 6 – both myEclipse sandbox and standalone. Then I needed to deploy to tomcat 5.5. Initially i got NoClassDefFound errors, I figured out i was missing jars from “JavaEE 5 libraries”. I did a clean/build, and did deployments to 5.5 and 6.0 standalone servers on my machine & diff’d the web-inf/lib directories. Differences are:
    – only in 5.5:
    backport-util-concurrent.jar
    el-api.jar
    el-ri.jar
    xercesImpl.jar

    – only in 6.0:
    jsf-api.jar
    jsf-impl.jar
    jstl-1.2.jar

    My app runs fine under 5.5 by just manually copying the jsf-api, jsf-impl, and jstl-1.2 jars, but naturally i’d rather not have to do that!

    Project includes a bunch of libraries from hibernate, Spring 2.5, icefaces, and JUnit4. (See .classpath appended at the end of this posting)

    Any ideas?

    myeclipse install info follows…
    *** Date:
    Friday, April 3, 2009 1:33:49 PM PDT

    ** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.6.0_07

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 6.6.0
    Build id: 6.6.0-20081015

    *** Eclipse details:
    Eclipse Platform

    Version: 3.3.2
    Build id: M20080221-1800

    Eclipse Plug-in Development Environment

    Version: 3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL
    Build id: M20080221-1800

    Eclipse Platform

    Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft
    Build id: M20080221-1800

    Eclipse Graphical Editing Framework

    Version: 3.3.2.v20080129
    Build id: 20080221-1602

    Eclipse RCP

    Version: 3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc
    Build id: M20080221-1800

    Eclipse Java Development Tools

    Version: 3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7
    Build id: M20080221-1800

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    C:\Programs\eclipsem\plugins\org.eclipse.platform_3.3.3.r33x_r20080129\splash.bmp
    -launcher
    C:\Programs\eclipsem\eclipse.exe
    -name
    Eclipse
    –launcher.library
    C:\Programs\eclipsem\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118\eclipse_1023.dll
    -startup
    C:\Programs\eclipsem\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
    -clean
    -vm
    C:\Program Files\Java\jre1.6.0_07\bin\client\jvm.dll
    ********************

    AND here’s the .classpath file, I thought it might be relevant…
    <?xml version=”1.0″ encoding=”UTF-8″?>
    <classpath>
    <classpathentry kind=”src” path=”src”/>
    <classpathentry kind=”con” path=”org.eclipse.jdt.launching.JRE_CONTAINER”/>
    <classpathentry kind=”con” path=”melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_5_CONTAINER”/>
    <classpathentry kind=”con” path=”melibrary.com.genuitec.eclipse.hibernate.MYECLIPSE_HIBERNATE3_2_CORE”/>
    <classpathentry kind=”con” path=”melibrary.com.genuitec.eclipse.hibernate.MYECLIPSE_HIBERNATE3_2_EM”/>
    <classpathentry kind=”con” path=”melibrary.com.genuitec.eclipse.springframework.MYECLIPSE_SPRING25_CORE”/>
    <classpathentry kind=”con” path=”melibrary.com.genuitec.eclipse.springframework.MYECLIPSE_SPRING25_PERSISTENCE_CORE”/>
    <classpathentry kind=”con” path=”melibrary.com.genuitec.eclipse.springframework.MYECLIPSE_SPRING25_WEB”/>
    <classpathentry kind=”con” path=”melibrary.com.genuitec.eclipse.springframework.MYECLIPSE_SPRING25_AOP”/>
    <classpathentry kind=”con” path=”melibrary.com.genuitec.eclipse.icefaces.MYECLIPSE_ICEfaces_171″/>
    <classpathentry kind=”con” path=”melibrary.com.genuitec.eclipse.icefaces.MYECLIPSE_ICEfaces_Facelets_171″/>
    <classpathentry kind=”lib” path=”WebRoot/WEB-INF/lib/icefaces-facelets.jar”/>
    <classpathentry kind=”lib” path=”WebRoot/WEB-INF/lib/commons-dbcp.jar”/>
    <classpathentry kind=”lib” path=”WebRoot/WEB-INF/lib/commons-pool-1.3.jar”/>
    <classpathentry kind=”lib” path=”C:/Programs/shared/lib/commons-lang-2.4.jar”/>
    <classpathentry kind=”lib” path=”WebRoot/WEB-INF/lib/jasypt-1.5.jar”/>
    <classpathentry kind=”lib” path=”C:/Dev/GandG/Source Code/src/lightspeed/WebRoot/WEB-INF/lib/mysql-connector-java-5.1.5-bin.jar”/>
    <classpathentry kind=”con” path=”org.eclipse.jdt.junit.JUNIT_CONTAINER/4″/>
    <classpathentry kind=”lib” path=”C:/Programs/shared/lib/jdom.jar”/>
    <classpathentry kind=”output” path=”WebRoot/WEB-INF/classes”/>
    </classpath>
    —–
    thanks.

    #297237 Reply

    support-joy
    Member

    dwighte,

    The workaround to work with Tomcat 5.5 is to add the required jar files manually.

    A smilar issue was reported. Refer to this post here

    http://www.myeclipseide.com/PNphpBB2-viewtopic-t-22836-highlight-tomcat-sid-d391ed8f94e0c6be33f0bd350840008e.html

    This issue is reported to the dev team and they are currently working on it. Sorry for the inconvinience.

    #297269 Reply

    Dwight
    Participant

    I had read that topic, but it seemed enough different to post this separately. In that case, the files were copied, unless the “JARs from User Libraries” option was unchecked. In my case, that makes no difference. Plus, i’m deploying to tomcat 5.5, and that was to 6.

    As long as the dev team is aware of both situations, that’s fine. I’ll do the manual copy for now.

    Thanks for the response!
    -dwight

    #297281 Reply

    support-joy
    Member

    Thanks dwight, for pointing out the difference. I have raised a PR for the dev team. Sorry for the inconvinience.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: JavaEE 5 jar files missing in Tomcat 5.5 deployment

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