- This topic has 3 replies, 2 voices, and was last updated 15 years, 8 months ago by support-joy.
-
AuthorPosts
-
DwightParticipantI 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.jarMy 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 PlatformVersion: 3.3.2
Build id: M20080221-1800Eclipse Plug-in Development Environment
Version: 3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL
Build id: M20080221-1800Eclipse Platform
Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft
Build id: M20080221-1800Eclipse Graphical Editing Framework
Version: 3.3.2.v20080129
Build id: 20080221-1602Eclipse RCP
Version: 3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc
Build id: M20080221-1800Eclipse Java Development Tools
Version: 3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7
Build id: M20080221-1800Eclipse 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.
support-joyMemberdwighte,
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
This issue is reported to the dev team and they are currently working on it. Sorry for the inconvinience.
DwightParticipantI 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
support-joyMemberThanks dwight, for pointing out the difference. I have raised a PR for the dev team. Sorry for the inconvinience.
-
AuthorPosts