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 " <h...@kevinhinkson.com>
A : "WebObjects-Dev Mailing List List" <webobjects-dev@lists.apple.com>
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
h...@kevinhinkson.com




 
 


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to