- This topic has 3 replies, 2 voices, and was last updated 16 years, 4 months ago by
support-joy.
-
AuthorPosts
-
jobu2k8MemberI am getting below error when using this option in myeclipse
[main] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/*****] - Error configuring application listener of class com.************ java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
How ever it works fine when i deploy manually by building war file from ant script..
Can someone please help?
March 26, 2009 at 3:58 pm #296838
jobu2k8Memberafter looking more into it .. it looks like my libraries from a referenced project is not being carried over.. (ex: I have a Proj A referencin Project B.. when deployed in exploded libraries in Project B are not being copied over to app directory).. does this happen to anyonelse? .. Also is there anyway in Myeclipse to specify a ant build file for deployment and use it for exploded mode?
March 30, 2009 at 4:13 am #296942
support-joyMemberjava.lang.UnsupportedClassVersionError: Bad version number in .class file
You will get this error if there is a difference of runtime JDK, between compile time java library files and runtime (Tomcat server) java library files. To resolve this point your Tomcat JDK to a JDK which is not in conflict with your project JRE. Please refer the screenshot Window > Preferences > MyEclipse Enterprise Workbench > Servers > Tomcat x.x > JDK).
Hope this helps.
Attachments:
You must be logged in to view attached files.March 30, 2009 at 4:26 am #296944
support-joyMemberit looks like my libraries from a referenced project is not being carried over.. (ex: I have a Proj A referencin Project B.. when deployed in exploded libraries in Project B are not being copied over to app directory)
How did you add the project reference? Can you attach a screenshot? (Please use *post reply*, this has the feature to attach screenshot, you can also click on [Preview])
-
AuthorPosts