Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

How to generate Java 1.4 specific code from Axis2

 
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?

 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
please buy this thing and then I get a fat cut of the action:
The trailboss has a kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic