Re: WO deployment refuses to launch

Ray Kiddy <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
On Jun 29, 2006, at 8:21 AM, Watkins, Garry wrote:

> You probably compiled with JDK5 and deployed on 1.4.
>

This is probably the correct diagnosis.

If you want to use Java 1.5 features in your app, you need to force  
the use of that VM on the deployment machine.

If you need to use 1.4 to deploy, build the frameworks or apps and  
set the 'Target VM Version' menu and the 'Source Version' menu in the  
'Java Compiler Settings' bucket in the target inspector window to "1.4".

This has the effect of compiling your code with "-source 1.4 -target  
1.4", for example.

It is probably a good idea to always have these options set to the  
lowest class format you need to support. The default is to have them  
unspecified and leaving them unspecified causes problems.

- ray


> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Matt Kime
> Sent: Thursday, June 29, 2006 11:17 AM
> To: [email protected]
> Subject: WO deployment refuses to launch
>
> hello,
>
> i have a WO project that runs perfectly fine on my dev machine but  
> fails
> to launch on my deployment machine. i get the following error when i
> attempt to start it from the command line...
>
>
> /usr/local/apple/Local/Library/WebObjects/Extensions/mysql- 
> connector-jav
> a-3.1.6-bin.jar
>   /usr/local/apple/Local/Library/WebObjects/Extensions/
> java.lang.UnsupportedClassVersionError: Application (Unsupported
> major.minor version 49.0)
>         at java.lang.ClassLoader.defineClass0(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
>         at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 
> 123)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java: 
> 251)
>         at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>         at
> com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:68)
>
> My development machine has 5.3 (latest revision) and the deployment
> machine has 5.2. This setup was working perfectly fine but now i fear
> that its causing trouble. Or is it something else?
>
> Any ideas would begreatly appreciated.
>
> thanks,
> matt
> _______________________________________________
> WebObjects-dev mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/webobjects-dev
>
>
>
>
> Confidential & Privileged
>
> Unless otherwise indicated or obvious from its nature, the  
> information contained in this communication is attorney-client  
> privileged and confidential information/work product. This  
> communication is intended for the use of the individual or entity  
> named above.  If the reader of this communication is not the  
> intended recipient, you are hereby notified that any dissemination,  
> distribution or copying of this communication is strictly  
> prohibited.  If you have received this communication in error or  
> are not sure whether it is privileged, please immediately notify us  
> by return e-mail and destroy any copies--electronic, paper or  
> otherwise--which you may have of this communication.
>
>
>
> _______________________________________________
> WebObjects-dev mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/webobjects-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.