Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to generate Java 1.4 specific code from Axis2

 
Kousik Majumder
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using axis2-1.4.1 to generate java classes from wsdl. JAVA_HOME is set to version 1.4.
My problem is that when axis2 is generating java classes it is generating java 1.5 specific code.

Can somebody tell me what else to configure so that Axis2 create my classes to java 1.4 compatible?

 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wouldn't the simplest thing be to switch to a current version of Java?

Java 1.4 hit "end of life" in October 2008. You are going to have nothing but trouble trying to use modern toolkits such as Axis with version 1.4.

Bill
 
Kousik Majumder
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

As because it is the requirement to use only java 1.4 so for the time being I need to forget about java 1.5 or above. There should have been a way where Axis2 will only generate java 1.4 specific code.

Please suugest anyone.
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There should have been a way where Axis2 will only generate java 1.4 specific code.

Why? The Axis2 home page states very clearly: As of Axis2 1.5, we now require JDK 1.5 or above. JDKs 1.4 or previous are no longer supported. If you want to use an obsolete JRE, then you'll need to use obsolete SOAP stack that runs on it, like Axis 1. That won't support current APIs like JAX-WS, of course, but that's the price you pay.
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kousik Majumder wrote:Hi,

I am using axis2-1.4.1 to generate java classes from wsdl. JAVA_HOME is set to version 1.4.
My problem is that when axis2 is generating java classes it is generating java 1.5 specific code.

Can somebody tell me what else to configure so that Axis2 create my classes to java 1.4 compatible?


How do you generate the client code - via ANT or a command line ??

Are you 100% sure that the used JAVA_HOME is 1.4 - and not 1.5 ??

If you are using ANT then you can set the 'target'/'source' option to 1.4 on the <java ...> task.
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lester Burnham wrote:
There should have been a way where Axis2 will only generate java 1.4 specific code.

Why? The Axis2 home page states very clearly: As of Axis2 1.5, we now require JDK 1.5 or above. JDKs 1.4 or previous are no longer supported. If you want to use an obsolete JRE, then you'll need to use obsolete SOAP stack that runs on it, like Axis 1. That won't support current APIs like JAX-WS, of course, but that's the price you pay.

He is not using Axis2 1.5 - but 1.4.1 - so JDK 1.4 should be supported.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic