Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Resin throwing NoSuchMethodError from Servlet Class
I am attempting to set up a web application that contains a command in
the web.xml file to call a class named PhotoManagerController using
the <servlet> tags.  I use the <init-param> tags within the <servlet>
tags to pass parameters to the PhotoManagerController class that are
specific for the install. PhotoManagerController resides within a jar
file located here: {webhome}/WEB-INF/lib/

The problem occurs when PhotoManagerController calls upon another
class located within the same jar file.  Resin throws an exception
saying NoSuchMethodError.

How come that error is being thrown?  If the method didn't exist
wouldn't I get a compiler error?  I've unpacked the jar and confirmed
that the method being called exists...  Could it be something to do
with the PhotoManagerController file (I did notice that when I
commented out the failing method call, the method call just after it
threw the same NoSuchMethodError).

Anyone have any ideas?  Thanks, Greg

Report this thread to moderator Post Follow-up to this message
Old Post
Greg Scharlemann
09-25-04 01:57 AM


Re: Resin throwing NoSuchMethodError from Servlet Class
Put the class in a package.
I'd drag out the relevant part of the spec. for you, but I'm sure you are
more than capable.

If problems persist, post a WAR with expected and actual outcome.

--
Tony Morris
http://xdweb.net/~dibblego



Report this thread to moderator Post Follow-up to this message
Old Post
Tony Morris
09-25-04 09:00 AM


Re: Resin throwing NoSuchMethodError from Servlet Class
It is in a package.

com.photos.mt.controller.PhotoManagerController

attempts to call
com.photos.mt.resource.Resource.setup(String)
and
com.photos.logs.Logger.setup(String, String, String)

each time the NoSuchMethodError is thrown.  I've switched the calling
of these two methods and I just get the same NoSuchMethodError for
whichever method is called first.  (This lead me to believe and a
couple other things that I didn't have a stray jar file lying around
somewhere).



"Tony Morris" <not@telling.you> wrote in message news:<QF35d.3265$5O5.2528@news-server.bigp
ond.net.au>...
> Put the class in a package.
> I'd drag out the relevant part of the spec. for you, but I'm sure you are
> more than capable.
>
> If problems persist, post a WAR with expected and actual outcome.

Report this thread to moderator Post Follow-up to this message
Old Post
Greg Scharlemann
09-25-04 08:59 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Help archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:26 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.