facebook

error while deploying web app on Tomcat in exploded mode

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

    jobu2k8
    Member

    I 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?

    #296838

    jobu2k8
    Member

    after 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?

    #296942

    support-joy
    Member

    java.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.
    #296944

    support-joy
    Member

    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)

    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])

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: error while deploying web app on Tomcat in exploded mode

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