• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Develop on 10.6 & Deploying on 10.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Develop on 10.6 & Deploying on 10.5


  • Subject: Re: Develop on 10.6 & Deploying on 10.5
  • From: email@hidden
  • Date: Thu, 19 May 2011 08:34:45 +0200 (CEST)
  • Message-context: email-message

Hi,

Which version of java your project was compiled? I had this same problem by deploying a project compiled in 1.6 on a Server 1.5. I think it looks rather at the version of Java.
build java version and java version on the deployment server.


Ray


========================================

Message du : 18/05/2011
De : "Kevin Hinkson " <email@hidden>
A : "WebObjects-Dev Mailing List List" <email@hidden>
Copie à :
Sujet : Develop on 10.6 & Deploying on 10.5


Hi all,
I have a problem that I have not been able to solve. I am currently developing on 10.6 (5.4.3) and attempting to deploy on 10.5 (5.4.3). Currently all my deployment machines are on 64-Bit Java 1.6 and I am hoping to keep it that way.

When I deploy the app on 10.5, running it manually on the command line launches it ok. Some errors do show up:

[2011-5-18 14:39:1 GMT-04:00] <main> The bundle <AppName> has malformed version number:
and I can see java 64 bit is being loaded

java.specification.version=1.6
java.vm.name=Java HotSpot(TM) 64-Bit Server VM

However, running it using WOMonitor (Apples) in combination with SpawnOfWotaskd.sh Logging addition (http://wiki.objectstyle.org/confluence/display/WO/Troubleshooting+wotaskd+and+JavaMonitor+on+OS+X) I get:

/Library/WebObjects/Extensions/xml-apis.jar
  /Library/WebObjects/Extensions/
java.lang.UnsupportedClassVersionError: Bad version number in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:84)


I have tried
• adding -d64 to additional arguments, which is pointless since the correct java version is loading
• embedding system frameworks and not embedding them
• switching to 1.5 compatibility which raise another error in a Math library I was using

I'm really not certain how to remedy this. Does anyone have any pointers as to what the problem is exactly?

---
Kevin Hinkson
email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Develop on 10.6 & Deploying on 10.5 (From: Kevin Hinkson <email@hidden>)

  • Prev by Date: Re: Develop on 10.6 & Deploying on 10.5
  • Next by Date: Re: Re: Using DataGrid in WO
  • Previous by thread: Re: Develop on 10.6 & Deploying on 10.5
  • Next by thread: WOGWT adaptor
  • Index(es):
    • Date
    • Thread