[Biojava-l] web service problems

Phillip Lord p.lord@russet.org.uk
21 Jan 2003 16:15:33 +0000


>>>>> "Michael" == Michael L Heuer <heuermh@acm.org> writes:

  Michael> Just grasping at straws here, but is it possible that
  Michael> classes from biojava.jar and bj-ensembl.jar are being
  Michael> loaded by different classloaders within the servlet
  Michael> engines?  Maybe try building a single .war file from both
  Michael> projects.  


I'm not sure this would do this. You might get a ClassNotFound.


  michael On Tue, 21 Jan 2003, Matthew
  Michael> Pocock wrote:
  >> Hi, I'm having some problems with biojava in a web service I
  >> wrote. I'm using biojava.jar and bj-ensembl.jar along with my own
  >> jsp and servlets.  It used to work (before xmas), but now I get
  >> an exception: "NoSuchFieldError: naturalOrder". This is a field
  >> in Location (in biojava.jar), and the calling code is
  >> EnsemblTranscript (in bj-ensembl.jar). I

You may have two copies of the Location source around, and are
compiling against one, and running against the other. You've tried
javap'ing things, but you might also want to try introspecting over
the class object that's giving the error. 

Also try deleting Location from the jar file. If you are lucky, and
nothing else calls if first, make sure that the system crashes with
the expected ClassNotFound. 

Other possibilities are corrupt classes, although javap should pick
this up. Are you building with jikes? 

I hate this sort of problem. 

Phil