This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Webservice issue for jdk 4 and jdk 5

arvind mulay
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Got stuck in a weird scenario.

Have got a common webservice for login authenticcation.

Web service was created keeping in mind systems built on JDK 1.5 and onwards.

There are many legacy systems built on JDK 1.4 which are not able to call this webservice.

Attched is the code for webservice. Calling prnot getting cogram :

Program which is causing exception is at following lines for getConstructor method and newInstance method:
java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());

My problem:
1) Cannot upgrade legacy systems to JDK 1.5
2) Cannot make major changes in web service program since already implemented for some system.

Please help me in making the webservice compatible for both JDK 1.4 and 1.5

Ulf Dittmer
Posts: 42970
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For starters, Java 1.4 and Java 5 are obsolete and should be phased out ASAP, whether or not the poepl in charge of those systems like that or not. It's not responsible to use software that is no longer patched for security problems, given all the problems that beset even recent Java versions.

Having said that, the client that calls a WS is independent of the WS server. I don't see principal problems in creating a Java 1.4 compatible WS client. The easiest would probably be a SAAJ client. Try compiling it for Java 1.4 and see what happens.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!