If there is a problem starting a servlet....

I'm currently writting an exception handler for my servlet's init() method.
My question is, if there is a problem initialising the servlet (i.e. config files won't load etc) what's the best way to put the servlet out of action?
I'm thinking maybe call the destroy() method within the catch block of init(). Would this be right?
If so what happens if the servlet is shutdown and then there is another request? Will the container (Tomcat) attempt to start the servlet again?
Thanks,

When you say "And the container will always attempt to
start the servlet after startup." Do you mean after
shutdown?That's a strange way to say it, but I suppose you might look at it that way. The container shuts down at some point in time. It doesn't attempt to init the servlet then, but after it starts up it does attempt to init the servlet. Either immediately or upon its first use.
It seems a bit strange for the container to keep
restarting a servlet that will always fail on init().How should the container know that? It cannot make any assumptions about what init() might do the next time. Perhaps it failed because the system manager put a configuration file in the wrong place; it might be there now. Basically it's the manager's problem if the servlet init() fails every time, not the container's.
Oh and I don't suppose there is a class constuctor
exception is there, for when a constructor fails?Constructors can throw exceptions if they are designed to do so.

Similar Messages

  • Error message at start up - there was a problem starting.....adobe\wnbqc.dll

    there was a problem starting.....adobe\wnbqc.dll The specified file could not be found
    I recently updated adobe reader and while the program is working fine, I continue to get this pop up when starting my computer.  What can I do?

    Among many things, I do see the adobe mentioned above with unknown listed as the manufacturer.  Should I disable it?  Remove it?  Norton tech help says it is not a virus. 

  • There was a problem starting c:\users\tom\appData\local\Apps\Apple Computer\xvgtv.dll The specified module could not be found

    I get error on Windows startup. I have iCloud installed as well as other apple software.
    error:
    there was a problem starting c:\users\tom\appData\local\Apps\Apple Computer\xvgtv.dll The specified module could not be found.

    I get error on Windows startup. I have iCloud installed as well as other apple software.
    error:
    there was a problem starting c:\users\tom\appData\local\Apps\Apple Computer\xvgtv.dll The specified module could not be found.

  • RUNDLL There was a problem starting Appdata/Roaming/Wisdl.dll The specified module could not be found.

    Every time I start my laptop, this message box pops up.
    RUNDLL
    There was a problem starting _____ Appdata/Roaming/Wisdl.dll  
    The specified module could not be found.
    Other then being a pain in the neck it does not seem to cause any performance problems.   I can not find any internet help in fixing this issue.
    Thanks for any help
    Richard

    Every time I start my laptop, this message box pops up.
    RUNDLL
    There was a problem starting _____ Appdata/Roaming/Wisdl.dll  
    The specified module could not be found.
    Other then being a pain in the neck it does not seem to cause any performance problems.   I can not find any internet help in fixing this issue.
    Thanks for any help
    Richard
    Richard
    It sounds as though you’ve had a recent infection and one of your ‘anti’ programs has removed the malware files, or some of them, but missed the entry in the registry, possibly due to an out-dated definitions database. I suggest you, firstly, download and
    run the free Malwarebytes' Anti-Malware from
    http://www.malwarebytes.org/free/ to ensure that you are completely clean. If you then restart the computer and the message is still appearing try one of these, but it is prudent to create a system restore point before you change the registry in (1) below
    by going to Control Panel > All Control Panel Items > System > System Protection (in the left pane) > System Protection Tab > Create and make sure you give it a meaningful name.
    1. The entry is probably in one of the \Run keys, but as the rascal could be hiding in a number of other ‘autorun’ keys, it’s quicker to search the whole registry. Open a Run window (Windows Logo key+R), type regedit and press Enter. Click Edit > Find and
    type the rogue’s name, put ticks in Keys, Values and Data, then click Find Next. When it’s found in the right pane, right-click it and delete it. There should be only one entry but press F3 to continue searching, just to confirm there are no more.
    2. If you’re concerned about making registry changes disable the entry using the system configuration utility, but bear in mind that you’re disabling the entry not deleting it as you would in (1) above. Open a Run window (Windows Logo key+R), type msconfig
    and press Enter. Go to the Startup Tab and remove the tick alongside the rogue’s name. Click Apply, OK, etc. and restart the computer. When it restarts, put a tick in ‘Don‘t show this again‘ as you‘re effectively doing a selective start up.
    Ninety-nine per cent of politicians give the rest a bad name.

  • Getting error message: "Run DLL" There was a problem starting. C:\users/John\AppData\Local\Conduit\BackgroundContainer\BackgroundContainer.dll

    Keep getting the error message below every time I start my computer:
    Run DLL
    There was a problem starting
    C:\users\John\AppData\Local\Conduit\BackgroundContainer\BackgroundContainer.dll
    The specified module could not be found.

    RunDLL is a legitimate Windows file that executes/loads .dll (Dynamic Link Library) modules which too can be legitimate or sometimes malware related. A RunDLL "Error loading... message usually occurs when the .dll file that was set to run at startup in the registry or as a scheduled task has been deleted. Windows is trying to load this file(s) but cannot locate it since the file was mostly likely removed during an anti-virus or anti-malware scan. However, an associated orphaned registry entry still remains and is telling Windows to load the file when you boot up. Since the file no longer exists, Windows will display an error message. You need to remove this registry entry so Windows stops searching for the file when it loads.
    To resolve this, download AutoRuns and save it to your Desktop from this site:
    http://technet.microsoft.com/en-us/sysinternals/bb963902
    and follow these Steps
    * Create a new folder on your hard drive called AutoRuns (C:\AutoRuns) and extract (unzip) the file there.
    * Open the folder and double-click on autoruns.exe to launch it.
    * Vista/Windows 7/8 users right-click and select Run As Administrator.
    * Please be patient as it scans and populates the entries.
    * When finished scanning, it will say Ready at the at the bottom and list all entries under the Everything tab.
    * In the top menu, click File > Find... and type the file name (backgroundcontainer.dll) related to the error message, then click Find Next.
    * Alternatively, you can scroll through the list and look for any entry related to backgroundcontainer.dll and conduit.
    * If found, right-click on the entry and choose delete.
    * Exit Autoruns and reboot your computer when done.
    '''An alternate method to resolve this issue is as follows:'''
    1. Go to Start > Control Panel > Administrative Tools.
    2. Open Task Scheduler and click on Task Scheduler Library.
    3. Look through the list for an entry related to BackgroundContainer.
    4. If found, right-click on it and select Delete.
    5. Exit all programs and reboot the computer when done.
    Also Scan your system with the tools listed in this Article:
    [[Troubleshoot Firefox issues caused by malware]]

  • {run DLL} THERE WAS A PROBLEM STARTING "C/USERS/OWNER" runDLL

    I keep getting this error message.....why?  "      
    {run DLL} THERE WAS A PROBLEM STARTING "C/USERS/OWNER"  runDLL
    This question was solved.
    View Solution.

    I understand you are getting an error message relating to a runDLL. 
    What is the product number of the notebook?  This can typically be found on a label on the underside of the notebook or in the battery compartment.  This label should also contain the serial number.
    NOTE: Do NOT provide the serial number.
    What OS is the system using?  For example, Windows 7 or Windows Vista.
    Did this happen after a particular program was installed or uninstalled?
    RunDLL errors can be the result of malware.  Have you scanned the system for malware using an updated anti-virus program?
    Does it happen in a clean boot state?  This document details how to enter a clean boot state.
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • There is a problem starting c:\program files\hp\hp deskjet 2510 series\bin\hpstatusbl.dll

    I get this error from my pc stating
    there is a problem starting c:\program files\hp\hp deskjet 2510 series\bin\hpstatusbl.dll
    Only after powering up this device the window prompt the above
    OS: W8.1
    HP 2000 notebook PC

    Anyone got answers or?

  • There was a problem starting C:\Program

    Just used the Lenovo update gadget.
    During reboot I get this message several times.
    There was a problem starting C:\Program
    HELP!

    Hi there,
    Try downloading and running the print and scan doctor located here:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03275041&cc=us&dlc=en&lc=en
    It can fix a lot on its own and if not give a better idea of what is going on.
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • There was a problem starting C:\Program Files (x86)\Think Pad\Utilities\PWMTR64V.dll

    Getting this error on every reboot: There was a problem starting C:\Program Files (x86)\Think Pad\Utilities\PWMTR64V.dll Cannot uninstall Lenovo Power Power Management Drive All on Windows 10 64bit. Lenovo Twist. Had installed the latest version (1.67.10.15). 

    There are 2 separate things here:
    1.  Lenovo Power Management Driver - this is supported on Windows 10 but needs to be updated to a recent version:  http://support.lenovo.com/us/en/downloads/migr-4gxpeg
    2.  Power Manager - this is not supported on Windows 10 and should be uninstalled.
    So have you uninstalled "Power Manager"?  The PWMTR64V.dll file comes from Power Manager

  • There was a problem starting C:\Program Files\HP\HP Deskjet 3050A J611 series\bin\HPStatusBL.dll

    The module could not be found.
    I am running windows 7  64bit
    Uninstalled a printer.  Now my computer is complaining that the file is no longer there.   It is trying to detect this at startup every time I turn on my computer.  How do I get my computer to stop looking for this at startup?

    Hi there,
    Try downloading and running the print and scan doctor located here:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03275041&cc=us&dlc=en&lc=en
    It can fix a lot on its own and if not give a better idea of what is going on.
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • "There was a problem starting C:\Windows\System32\LogiLDA.dll"

    Message said that specific mode cannot be found.

    I can't imagine why you are asking about a specifically Windows problem in an Apple forum, but possibly the comments in this page may assist you.
    http://answers.microsoft.com/en-us/windows/forum/windows_7-performance/specified -module-could-not-be-found-logildadll/9c227c15-d0d6-4e24-946f-ac0dbbbb10d1
    If they don't then Google may lead you to an answer: these Apple Discussion Communities are fairly unlikely to.

  • "There was a problem starting" MOZILL~1.DLL "nof found"

    This shows when I first logon. I use WINDOWS7. Starting happening about two months ago. I always accept new updates from Mozilla. This error comes from WINDOWS7 startup - not when I start Mozilla. I get a WINDOWS7 information box display

    Among many things, I do see the adobe mentioned above with unknown listed as the manufacturer.  Should I disable it?  Remove it?  Norton tech help says it is not a virus. 

  • Using hbogo on iPad I keep getting message "there is a problem loading video,try again" please help

    Using app hbogo on ipad2 I keep getting"there was a problem starting this video.please try again"message all the time,need help.

    Has this always occurred with the app or did it just start?
    Which content provider are you using?

  • I'm trying to buy a book. The book is made in I-Photo and when I push buy book button it starts to process and than says--  There was a problem communcating wit the apple store   " help"

    I'm trying to buy a book I made in I-photo. I have made a 20 page book in I-photo and when I push the "buy book" button it starts to process and then pops up a sign that say'es There was a problem commucating with the apple store. Please try again.   Help

    Are you buying from the correct Print Products Store?  If you are using the wrong store, your AppleID may not be valid.
    Is the Print Products Store set correctly in iPhoto Preferences > Advanced?  It should be set to the  same country as your billing address and delivery address, and match the settings of the Apple ID you are using.
    And you are using iPhoto '09 or '11, right?  you can no longer buy books from earlier versions.
    When you reenter your settings as LarryHN described, don't forget to enable Express Checkout. It is required.

  • I created one apple I'd when I started using the iPad.  After some days, I had to create a new apple I'd as there was some problem with the first one. Now at some places still my old apple I'd is appearing.  Pls adv how I change this to my new apple Id.

    I created one apple I'd when I started using the iPad.  After some days, I had to create a new apple id
    as there was some problem with the first one. Now at some places still my old apple Id is appearing.  Pls adv how I change this to my new apple Id.

    Anything you downloaded with the first Apple Id will forever be tied to it, and will always require it to update.
    The question here is, why did you think you needed to create a new Apple ID? What was the problem with the first one?
    To get rid of th old one, you'll need to delete everything you downloaded with it, and then sign out of the ID in several places around the iPad. 
    Go to Settings->iTunes & App Stores->Apple ID->Sign out.
    Repeat the process, for Facetime, Messages, Mail and any other App you need to sign out of.

Maybe you are looking for

  • The calendar is a disappointment, right?

    So, I'm seriously considering buying an Iphone. It looks awesome except for the fact that the Calendar seems to lack a lot of the features that we know from iCal. Actually this is the only reason I have not bought this awesome Phone yet... How can th

  • "media server application expectly quit" when submitting from final cut pro

    browsing through the list, it seems the problem couldn´t be solved so far. doing some systematic testing, the following riddle shows up: ... when adding a QT ref movie (or movie) directly to the compressor batch list and submit to the cluster, everyt

  • PDF colour Aqua (RGB R0 G156 B156) not showing on SAFARI browser (IOS)

    i have an application that points to a PDF stored in a location and opens them up in web browser. when opening in safari, the PDF colours are getting reset. Aqua (RGB R0 G156 B156) is not showing up correctly. is this a known issue, is there a seprat

  • Visited Links - Override all link colors

    Hi, I'm using RH8 in WebHelp and IE.  I read all the former postings regarding people having the same problem and some mentioned a fix in a .css but the .css wasn't available with the posting of March 25, 2008. My visited link color seems to override

  • Tomcat vs. SunOne WebServer

    Why to use SunOne WebServer for Java Servlet applications? Developers want to use Tomcat 4.x.x versions. How to speak up for SunOne WebServers? Performance, security...?