Java Class Path issues, need some clever ideas

Soldato
Joined
1 Mar 2003
Posts
5,508
Location
Cotham, Bristol
Hi Guys,

A bit of background I am creating a new web service to be used in Axis2, all my required jars + config are contained in a Axis2 aar file. During testing I was receiving a NoSuchMethodError on a particular class, a class I knew had said method.

Anyway I eventually tracked down the issue to one of Axis2's own product jars, also containing said class, but the method had a different method signature. Now I know I can solve the issue by placing my jar in the axis2/WEB-INF/lib directory.

But the powers that be have said I'm not allowed to do this. So I'm a bit stumped on how else to solve the issue. Any suggestions?

For information it's using a class called java_cup.runtime.lr_parser, my code uses the class where the method signature is

Code:
public void parse()

And Axis2 version of the class uses

Code:
public Symbol parse()

I should also say refactoring my code to use the Axis2 method signature isn't an option.

Thanks,
Paul
 
Last edited:
Back
Top Bottom