Two Laptop Bag*
The moose likes Servlets and the fly likes Catching a Class not Found Exception in Resin Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Catching a Class not Found Exception in Resin" Watch "Catching a Class not Found Exception in Resin" New topic
Author

Catching a Class not Found Exception in Resin

DC Dalton
Ranch Hand

Joined: May 28, 2001
Posts: 287
Im having a problem with typical morons on a web site clicking on the icons for AIM chat, beeper etc. when they dont have AIM installed on their machine. Because they dont have it installed the command aim?gochat is misinterpretted by the system as a call to a servlet (even though it has no /servlet/ in front of it). Since this isnt happening within in a servlet's code but is actually coming in as a HttpRequest Im not sure how to catch it. Is there some way to set up a default "catch???" somewhere in the system so I can show the user a page saying they have to first install the program before clicking on that link......Im stumpted, anybody got a great idea.........thanks much
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
Hum... I think I might create a servlet aim that's out put would be something like
"You don't have AIM installed click here to download"


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
DC Dalton
Ranch Hand

Joined: May 28, 2001
Posts: 287
I thought of that BUT, then I re-thought it. The system commands that are embedded & hence being called are this aim:addbuddy?screenname=, aim:goim?screenname= & aim:gochat?roomname=. So that will be the classes the servlet container will be looking for (prior to the ?, that is).one major problem here the : is an illegal character for a class name so that kind of puts a damper on that. I am going to try to set up a servlet mapping in the resin.conf but I dont think that is going to work.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Catching a Class not Found Exception in Resin
 
Similar Threads
Mircrosoft Driver Manager Invalid String or Buffer Length JDBC ODBC
NaturalLanguageMultiply: Exceptions
missing something
how to use the jre with JApplets
There comes the monkey out of the sleeve!