• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

NoSuchMethod Error

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello there,
following problem: we have an ear deployed on serveral test and production websphere (v 6.1) servers. now all of a sudden ( after a restart or whatnot) on two of the production servers (test servers are fine and have the same configuration)
there is an
exception when a certain action is executed and we have the suspicion that it might have to do with the classloader, in that there are several versions of that class and the one of them that is loaded has not got the method.
the thing is we havent changed anything on that server but restarting it. the classloader method ist parent first, so would a change to parent last solve the problem? we cannot test thoroughly, because we have to shut down production for that
time and we cannot expect that from our customers... or is it an jdbc problem or something of the like?
somebody got any help?
 
Ranch Hand
Posts: 446
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes this looks like a class loader issues.

You can try following two options. After making the change stop and start the WebSphere process.

(a) WebSphere Console: Under "Class loading and update detection", select following two options: Classes loaded with local class loader first (parent last) and Single class loader for application.

(b) WebSphere Console: Under "Manage Modules" for the WAR file(s) present in the EAR, selected "Classes loaded with local class loader first (parent last)" option.
 
Steffen Naus
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi thanks for your answer.
When i try to do option a: i cant chang anything in class loading and upload detection because the values are greyed out. do i have to do something before i can change these values? stopping the enterprise application wont do the job any suggestion

edit:sorry that is because i used a testenvironment
 
Deepak Pant
Ranch Hand
Posts: 446
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is your problem solved?
reply
    Bookmark Topic Watch Topic
  • New Topic