Web.xml  configured correctly(I think),  but still getting '404...resource

not found error' from tomcat. Here is my web.xml:
<servlet>
<servlet-name>HelloServlet</servlet-name>
<servlet-class>HelloServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>HelloServlet2</servlet-name>
<servlet-class>coreservlets.HelloServlet2</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloServlet</servlet-name>
<url-pattern>/classes/HelloServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>HelloServlet2</servlet-name>
<url-pattern>/classes/coreservlets.HelloServlet2</url-pattern>
</servlet-mapping>
</web-app>
when I went to the following urls after I had edited web.xml to the above,
http://localhost:8080/cucoweb/classes/coreservlets.HelloServlet2
http://localhost:8080/cucoweb/classes/HelloServlet
I go the expected results, ie, 'Hello(2)' and 'Hello'. Then I shutdown tomcat and restarted it.
And when i tried to access those 2 urls again, I got the above error.
(Actually I had the same web.xml before except that it didnt have the /classes in front in the
url-pattern. I was able to access it by the same url - without the /classes - and then the next day
when started tomcat and tried to access it, it didnt work, same error.)
In this example, cucoweb is the context root, correct ? Shouldn't the url-pattern be relative to the
context root ? Thats how I have it now, I think.
Would adding my webapp directory, ie cucoweb/classes, to my CLASSPATH help ?
I'm in ubuntu, when I do echo $CLASSPATH, I get :
.:/usr/lib/jvm/java-6-sun-1.6.0.00/lib:/usr/lib/jvm/java-6-sun-1.6.0.00/imq/lib/:/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib
I havent tried this yet because doing this is kind of tricky in ubuntu. (You have etc/environment and
bash.bashrc, for ex.) But if I try that and it works I will post about it. I suspect its something else,
though, because it worked once, before restarting tomcat, thats why I'm posting here first.
Any info, even educated guesses, would be greatly appreciated. Thanks in advance.

Thanks for the reply. Here is my web structure :
/usr/local/tomcat/apache-tomcat-6.0.14/webapps/cucoweb/WEB-INF/classes
From my understanding you are supposed to have your own webapp deployment directory
under webapps, ie, cucoweb, and not use webapps/ROOT. (I'm not sure what /ROOT is even for)
My web.xml is in WEB-INF. My /classes directory contains HelloServlet.class and a directory
called coreservlets which contains HelloServlet2.class.
I'm not sure what you mean by 'better you to delete under tomcat/work/catalina/localhost folder'.
Can you please clarify ?
FYI, my work/catalina/localhost contains the following :
cucoweb docs examples host-manager manager
Here cucoweb just contains a SESSIONS.ser file. Are you saying i should delete that ?

Similar Messages

  • I didn't deactivate Adobe CS 3 Premium before I reinstalled it on the same computer,  so when I tried to activate it says the maximum has been reached for licenses. I read on your website the instructions for correcting this issue, but still do not have t

    I didn't deactivate Adobe CS 3 Premium before I re-installed it on the same computer,
    so when I tried to activate, it says the maximum number has been reached for licenses.
    I read on your website the instructions for correcting this issue, but still do not have the deactivation option. So that I can reactivate it.
    Could you please help?

    COntact support by web chat or phone and have them reset activations.
    Mylenium

  • How received the following error message:  iTunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows error 998).  I did what was requested and reinstalled iTunes, but still get this error message.  Help!

    My Toshiba laptop just recently started showing the the following error message when I try to open iTunes: " iTunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows error 998)".  I did what was requested and reinstalled iTunes, but still get this error message.  Help!

    b noir I never got any message about an entry point
    Many thanks. If we're looking at a "naked" Error 7, I'd start with box two in the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • ITunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows error 5). I have uninstalled in correct order and reinstalled but still getting same error message. Any help??

    iTunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows error 5). I have uninstalled in correct order and reinstalled but still getting same error message. Any help??

    Take a look at iTunes for Windows: "Error 7" message when opening iTunes. Perhaps your .NET Framework needs a repair.
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • JSF 1.2 web.xml configuration parameters

    Actually, I know these JSF 1.2 web.xml configuration parameters:
    javax.faces.CONFIG_FILES
    javax.faces.DEFAULT_SUFFIX
    javax.faces.LIFECYCLE_ID
    javax.faces.STATE_SAVING_METHOD
    Are there any more available?
    (I have to study its performance implications in conjunction with RichFaces ones).

    The JSF 1.2 specification document would contain the information you're looking for.

  • Trying to log into firefox but keep getting firefox is in offline mode and can't browse the web, I've unchecked the work offline in the file menu but still get error message...

    trying to log into firefox but keep getting firefox is in offline mode and can't browse the web, I've unchecked the work offline in the file menu but still get error message...

    The work offline option can be found from Firefox button -> Web developer or from the menubar toolbar -> Work offline (Or at least thats what happens in Windows).
    Have you any other reason for being offline; router off, firefox not dialing up or whatever. Or is security software or a firewall blocking firefox, or a network connection, or firefox setting etc set wrongly.
    See also
    *[[cannot connect after upgrading firefox]]
    *[[options window - advanced panel]]
    * [[error loading web sites]]

  • My billing address is correct, but the i keep getting that my security code is incorrect and can't download apps.  I have re-entered all of my information in my account, but still get error message.  How to over-ride?

    My billing address is correct, but the i keep getting that my security code is incorrect and can't download apps.  I have re-entered all of my information in my account, but still get error message.  How to over-ride?

    If you have American Express, your 4-digit security code is on the front. If you have VISA or MasterCard, your 3-digit security code is outside the signature block on the back of your credit card. It happens to me also.

  • My sun-web.xml file doesn't seem to be getting processed.

    I've made another topic in this forum because my pre-compiled JSPs are not working but I think that I may have found the root of that problem, and it is this...
    My sun-web.xml file does not seem to be getting processed (run?) by the web server. I have this theory because I made some changes to it that should have caused an error as the server starts up, but there was nothing. For example, I added some random text as a tag that should have been an error, and there was none.
    Now, I did the same thing in my web.xml file, and sure enough, there was an error on start up. So, this coupled with the fact that my "use-precompiled" property seems not to be working makes me think that the sun-web.xml file is not being used by the sever.
    Is there anything I need to do other than drop it in the /WEB-INF directory with the web.xml file?
    Thanks.

    It might be possible that the extra tags in sun-web.xml are just ignored (ie. not validated). I have seen cases where this has occurred.
    A simple test you should perform is to enable some obvious setting in sun-web.xml, and see if that takes effect. Ex.
    <sun-web-app>
    <session-config>
    <session-manager persistence-type="mmap"/>
    </session-config>
    </sun-web-app>
    During startup time the logs should indicate that the persistence type has been set to MMAP. Like the following:
    [02/Nov/2005:20:21:25] info (12566): WEB3006: Initializing MMapSession Manager to hold a maximum of (1,000) sessions, each of which can store a maximum of (10) values each about (4,096) bytes size, with a timeout value of (1,800) seconds; please ensure that this configuration fits total size of the serialized byte stream of all the attributes of a session

  • I suddenly am unable to retrieve my emails.  I discussed this with my Internet provider, but still get an error message and can't access my emails.  Any suggestions???

    I am unable to retrieve my emails since yesterday.  I called Time Warner Cable, my Internet provider, but they could not help me; they stated that the settings had changed, since they were upgrading.  I adjusted the settings, but still get an error message: 
              Alert
              There may be a problem with the mail server or network.  Verify the settings for account "Mail 1" or try again.
              The server returned the error:  The connection to the server "smtp.roadrunner.com" on port 110 timed out.
    I changed the server, and the port, as Time Warner Cable tech rep recommended, but to no avail.  They recommended I delete my current email account and recreate it, but that I check with Apple first, because I might lose my contact list (and any email messages I'd previously saved!?).  They suggested Apple might be able to tell me how to not lose the contacts, emails, profile.
    Any help would be appreciated. 

    Hi, what Interface are you using, & which one are you checking?
    Each Interface will have it's own settings.
    Though all of these steps may or may not be needed, I'm including them all.
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    10.7 & 10.8…
    System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
    10.5.x/10.6.x/10.7.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    10.4 instructions...
    Is that Interface dragged to the top of Network>Show:>Network Port Configurations.
    If using Wifi/Airport...
    Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.
    For 10.5/10.6/10.7/10.8, System Preferences>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...
    208.67.222.222
    208.67.220.220
    (There may be better or faster DNS numbers in your area, but these should be a good test).
    Click OK.

  • How to save down from InDesign Creative Cloud version to CS5? Have exported as .idml file but still get messages that plug-ins are missing although CS5 confirms it is fully updated.

    How to save down from InDesign Creative Cloud version to CS5? Have exported as .idml file but still get messages that plug-ins are missing although CS5 confirms it is fully updated.

    Yes. Thanks. I misled myself based on another post. Successfully did this by selecting "File," "Save a copy ..." then choosing "for CS4 or later (IDML)"
    It required some patience and several tries, but I think that was due to hardware (memory) being overloaded by CC Cloud version or something. It was a 50 MB, 500-page file and took 17 minutes to convert/save,
    Re-capping: from CCloud to CS5, don't use "Export" (to IDML); use "Save as" or "Save a copy" and select "for CS4 or later (IDML)".
    Advice much appreciated.

  • Every time I download the itunes installation file, it get deleted because it has got a virus... I've turned Norton 360 completely off, but still get the same error???

    Every time I download the itunes installation file, it get deleted because it has got a virus... I've turned Norton 360 completely off, but still get the same error???

    Hello wilsona1234,
    Sorry for the trouble. What is the exact detection from Norton for the installation file? Did you download itunes from the legitimate Apple web site? What is the error you are referring to?
    Thanks,
    Harry
    Norton Support

  • I aam not allowed to send emails due to a message that says I have exceeded the storage limit on my mailbox. I have already deleted all old stuff but still get the message

    I am not allowed to send emails due to an error message that says I have exceeded the storage limits in my mailbox. I have already deleted all old mail, sent mail, etc. but still get this message. Please help!!

    Firefox doesn't do email, it's a web browser.
    If you are using Firefox to access web mail, you need to seek support from your service provider or a forum for that service.
    If your problem is with Thunderbird, see this forum for support.
    [http://www.mozillamessaging.com/en-US/support/]
    or this one
    [http://forums.mozillazine.org/viewforum.php?f=39]

  • I downloaded 11.1 but now can't access the store, can only view my library. I've reinstalled but still get a blank, white screen when I try to go to the itunes store. How can I get to the store for purchases?

    I downloaded 11.1 but now can't access the store, can only view my library. I've reinstalled but still get a blank, white screen when I try to go to the itunes store. How can I get to the store for purchases?

    In iTunes prefs>Store - is the Store check box unchecked?
    Did you repair pemissions with Disk Utility?
    MJ

  • When I try to open Firefox 3.6 (Mac) by clicking on the icon, I get this message: "Close Firefox: A copy of Firefox is already open. Only one copy of Firefox can be open at a time." I've removed older versions and restarted, but still get this message. Wh

    I've just downloaded Firefox 3.6 (Mac). When I attempt to open, this message pops up: "Close Firefox: A copy of Firefox is already open. Only one copy of Firefox can be open at a time." I've removed older versions and restarted, but still get this message. What's going on?
    == This happened ==
    Every time Firefox opened
    == after I downloaded the latest version. ==
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

    You might find your solution in [http://kb.mozillazine.org/Profile_in_use this article].

  • Ever since updating to new OS, my iphone won't sync to itunes. When I plug in the phone to the PC, it says I need to update itunes to 10.6.3 or later. I did, but still get the same error message.

    Ever since updating to new OS, my iphone won't sync to itunes. When I plug in the phone to the PC, dialog box says I need to update itunes to 10.6.3 or later. I did that update, but still get the same error message.
    Can anyone offer suggestions?
    Thanks!

    Since it told me to update, I updated to 10.7.
    Then when I plugged in the phone again, it gave the same message that I need to update itunes.

Maybe you are looking for

  • Space between thumbnails - Lightbox Widget

    Hi Does anyone know if it's possible to control the space between the thumbnails in Lightbox widget? It's always with 10 pixels, no matter the size of the thumbnails. Cheer's Dandalo Gabrielli

  • Don't install 6.0 just to access Store; easier way...

    I was going to upgrade from 4.7.1.3 to 6.0.1, but kept reading about all the install nightmares. The main reason I was going to do the install was to be able to play and purchase music in the iTunes Music Store (which had stopped working with the rel

  • "Save output of a query in Substitute variable"

    Hi All, I am using oracle11g r1 on windows platform. i want to know how can i save the output of a query in a substitute variable so that i can user that variable in other query .i am using this query and i want to store the output in *"&Schema*" var

  • How to get LG G3 to work with SYNC in FORD F150

    Is there something different i should be doing to get lg g3 to work in my f150 for handsfree calls used sync shpplemental guide to get it to work no results please provide detailed instructions or a link to get instructions

  • Send and receive connector

    Hi Everyone, I have 2 send connectors and 4 receive connectors configured on exchange server 2007.How do i know which send or receive connector i am using for my exchange 2007.I am doing the transition to exchange server 2013. If i  create a new send