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

Does Axis 1.2 require Java 5.0?

 
author
Posts: 23928
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to port an application that originally used Axis 1.1 to Axis 1.2. However, the generated code doesn't compile. It looks like some of the code is assigning primatives to wrapper objects.

With Java 5.0, this is not a problem with autoboxing. Unfortunately, I am using Java 1.4.2.

Question. Does Axis 1.2 require Java 5.0? And if it doesn't, am I missing something? Like maybe a parameter to axis-wsdl2java?

This is probably something annoying simple.

Many thanks in advance.
Henry
 
Henry Wong
author
Posts: 23928
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okay... everyone tells me to go with Axis 1.1 -- as it is very stable. I will do this.

But does anyone happen to know if there is a Java 1.5 retriction with Axis 1.2? I would still like to know.

Thanks,
Henry
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Henry Wong:
But does anyone happen to know if there is a Java 1.5 retriction with Axis 1.2? I would still like to know.


No.. I clearly remembered I used Axis 1.2alpha with jdk1.4.2.
Just recently i updated my jdk to 1.5 and i dont have two machines to prove my point.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Henry

Balaji is correct. Axis 1.2 works fine with 1.4.2. It also works fine under 1.5 too.

I've been using 1.2 for a few months, well the Release Candidates anyway and it appears to work as intended.
Steve
 
Henry Wong
author
Posts: 23928
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks... I guess when I have the time, I'll take a look at it again. It is probably something really minor.

Henry
 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Henry,
Axis 1.2 very much works with JDK 1.4. Guess your problem is with typemapping. Axis 1.1 puts typemapping as 1.1 by default and in Axis 1.2, the default is 1.2, though the doc still stays 1.1.

Try giving --typeMappingVersion 1.1 to WSDL2Java and see if it helps.

Ashutosh
 
Henry Wong
author
Posts: 23928
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ashutosh Shahi:
Henry,
Axis 1.2 very much works with JDK 1.4. Guess your problem is with typemapping. Axis 1.1 puts typemapping as 1.1 by default and in Axis 1.2, the default is 1.2, though the doc still stays 1.1.

Try giving --typeMappingVersion 1.1 to WSDL2Java and see if it helps.

Ashutosh



Thanks... I'll take a look at it, when I revisit the issue.

Henry
 
We begin by testing your absorbancy by exposing you to this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic