EAServer 5.3 JDK 1.5 problems

I've upgraded my EAServer to patch 14147, following it's
instructions I've also changed the serverstart.bat and the
setenv.bat.

I can deploy a jar created using JDK 1.4.2_06, and create
stubs and skeletons (deploying manually or using ant
scripts).

When I deploy the same code in jar file compilied with JDK
1.5.0_09

I get a bunch of warnings: [jag_gen_stubs]
java.lang.ClassFormatError: version number not valid

which looks like this in the Jaguar log:

Mar 15 15:08:16 2007: 050015-Generate code for: Package /
MyFramework
Mar 15 15:08:16 2007: 050016-Generation compiler option:
-generatedependentclasses
Mar 15 15:08:16 2007: 050016-Generation compiler option:
-stonserver
Mar 15 15:08:16 2007: 050016-Generation compiler option:
-compilestubs
Mar 15 15:08:16 2007: 050016-Generation compiler option:
-ejb
Mar 15 15:08:16 2007: 050016-Generation compiler option: -jv
Mar 15 15:08:16 2007: 050016-Generation compiler option: 1.2
Mar 15 15:08:16 2007: 050016-Generation compiler option:
-hpp
Mar 15 15:08:16 2007: 050016-Generation compiler option:
$JAGUAR/include
Mar 15 15:08:17 2007: 070013-Caught Exception:
java.lang.ClassFormatError: version number not valid
0 Leah 3/15/2007 7:12:18 PM
If I understand correctly you are deploying components that are compiled 
with JDK1.5 to the server that is running with JDK1.4 ? This will not 
work properly as JDK 1.5 classes cannot be loaded by JDK1.4

Thanks,

Sandip

Leah Stephens wrote:
> I've upgraded my EAServer to patch 14147, following it's
> instructions I've also changed the serverstart.bat and the
> setenv.bat.
> 
> I can deploy a jar created using JDK 1.4.2_06, and create
> stubs and skeletons (deploying manually or using ant
> scripts).
> 
> When I deploy the same code in jar file compilied with JDK
> 1.5.0_09
> 
> I get a bunch of warnings: [jag_gen_stubs]
> java.lang.ClassFormatError: version number not valid
> 
> which looks like this in the Jaguar log:
> 
> Mar 15 15:08:16 2007: 050015-Generate code for: Package /
> MyFramework
> Mar 15 15:08:16 2007: 050016-Generation compiler option:
> -generatedependentclasses
> Mar 15 15:08:16 2007: 050016-Generation compiler option:
> -stonserver
> Mar 15 15:08:16 2007: 050016-Generation compiler option:
> -compilestubs
> Mar 15 15:08:16 2007: 050016-Generation compiler option:
> -ejb
> Mar 15 15:08:16 2007: 050016-Generation compiler option: -jv
> Mar 15 15:08:16 2007: 050016-Generation compiler option: 1.2
> Mar 15 15:08:16 2007: 050016-Generation compiler option:
> -hpp
> Mar 15 15:08:16 2007: 050016-Generation compiler option:
> $JAGUAR/include
> Mar 15 15:08:17 2007: 070013-Caught Exception:
> java.lang.ClassFormatError: version number not valid
0 Sandip 3/15/2007 8:38:31 PM
I think you misunderstood.

I have upgraded EAServer and run it with the JDK1.5.0_09
that is included in the patch...

My first test was to deploy my Jars compiled with JDK 1.4 to
the EAServer running 1.5 - it works fine.

My second test was to deploy my Jars compiled with the same
JDK 1.5 as EAServer - and this is where I got the warnings.

I found also, that my web app does work with the warnings -
however my Java application is getting
java.rmi.RemoteException: CORBA UNKNOWN errors when I
attempt to use it.

Thank
Leah

> If I understand correctly you are deploying components
> that are compiled  with JDK1.5 to the server that is
> running with JDK1.4 ? This will not  work properly as JDK
> 1.5 classes cannot be loaded by JDK1.4
>
> Thanks,
>
> Sandip
>
> Leah Stephens wrote:
> > I've upgraded my EAServer to patch 14147, following it's
> > instructions I've also changed the serverstart.bat and
> > the setenv.bat.
> >
> > I can deploy a jar created using JDK 1.4.2_06, and
> > create stubs and skeletons (deploying manually or using
> > ant scripts).
> >
> > When I deploy the same code in jar file compilied with
> > JDK 1.5.0_09
> >
> > I get a bunch of warnings: [jag_gen_stubs]
> > java.lang.ClassFormatError: version number not valid
> >
> > which looks like this in the Jaguar log:
> >
> > Mar 15 15:08:16 2007: 050015-Generate code for: Package
> > / MyFramework
> > Mar 15 15:08:16 2007: 050016-Generation compiler option:
> > -generatedependentclasses
> > Mar 15 15:08:16 2007: 050016-Generation compiler option:
> > -stonserver
> > Mar 15 15:08:16 2007: 050016-Generation compiler option:
> > -compilestubs
> > Mar 15 15:08:16 2007: 050016-Generation compiler option:
> > -ejb
> > Mar 15 15:08:16 2007: 050016-Generation compiler option:
> > -jv Mar 15 15:08:16 2007: 050016-Generation compiler
> > option: 1.2 Mar 15 15:08:16 2007: 050016-Generation
> > compiler option: -hpp
> > Mar 15 15:08:16 2007: 050016-Generation compiler option:
> > $JAGUAR/include
> > Mar 15 15:08:17 2007: 070013-Caught Exception:
> > java.lang.ClassFormatError: version number not valid
0 Leah 3/16/2007 12:23:12 PM
Reply:

(Thread closed)