How to make servlet work in my folder

I created a servlet called FirstServlet.java (no package it belongs to) and used Tomcat-4.1.7.
If the servlet is put in "jakarta-tomcat-4.1.7/webapps/examples/WEB-INF/classes", it can be run at URL: localhost:8080/examples/servlet/FirstServlet. Now I created a folder in "webapps", called "test". My question is how to make FirstServlet.java work in "jakarta-tomcat-4.1.7/webapps/test/" or its subfolder?
I tried putting the servlet class in "jakarta-tomcat-4.1.7/webapps/test/WEB-INF/classes/" and running it at http://localhost:8080/test/servlet/FirstServlet, but it failed with msg saying "requested resource is not available".
Any advice is appreciated.

You need to set 'Context Path' for your 'test' (application) in conf\server.xml file.
It will be something like this, add these lines in that file and restart Tomcat.
<Context path="/test"
docBase="webapps/test"
crossContext="true"
debug="0"
reloadable="true"
trusted="false" >
</Context>
Sudha

Similar Messages

  • Macbook pro to HDTV, video is working but audio is not working, how to make audio work as well

    Macbook pro to HDTV, video is working but audio is not working, how to make audio work as well

    If you use an HDMI cable, the audiostream will be integrated, so there will be sound when using an HDMI cable!
    Not necessarily.  That only works as stated if you have one of the most recent MBP's that has a built-in HDMI port.
    If the MBP only has a Thunderbolt or miniDisplayPort, you need an appropriate adapter cable and even if you use an HDMI adapter or cable to connect to your HDTV there is no guarantee it will carry audio.  You have to determine if your specific MBP model supports audio out through its miniDisplayPort or Thunderbolt output, and whether the adapter does likewise.

  • TS2634 I bought a composite AV cable with 30 pin connector at a proper apple store for my ipad 2 which no longer works now i have updated to ios7 - please advise how to make this work ?

    I bought a composite AV cable with 30 pin connector at a proper apple store for my ipad 2 which no longer works now i have updated to ios7 - please advise how to make this work ?

    I have the same problem.
    Two similar discussions:
    https://discussions.apple.com/message/23081658#23081658
    https://discussions.apple.com/message/23281391#23281391
    I have not yet seen any official response to the question: "Is the Apple AV Composite cable fully supported with 30pin connector devices upgraded with iOS7 - specifically ? - eg. iPad 2, iPhone 4, iPhone 4s"
    If it is not currently supported is that then due to a bug / oversight and in that case is it something that will be fixed in the near future?
    Please let us know what feedback you got from asking Apple support.

  • How to make buttons work in Interactive Adobe Forms

    Hi Experts,
    I am new to interactive form. Though i have worked in normal/non-Interactive form, i do not know how to make buttons work in interactive adobe forms using ABAP  (I don't know JAVA). Can any one help me out and walk me through to how to code in ABAP to make buttons work.
    Kind Regards,
    Sharat.

    Please refer to my earlier post ... You will get an idea
    Please refer to the below thread for detail solution
    Sample Interactive form example ?....urgent...
    Cheers
    Satya

  • Deleted itouch files using ifile from cydia. i restarted it but now it shows the apple logo and that is it... it doesnt respond. any ideas of how to make it work?

    I restarted my itouch using the home button and top button...it restarted but it only shows the apple logo and that is it.  I deleted all files from ifile and then it froze... any ideas of how to make it work again?

    Discussions of hacked ipods is not permitted here.

  • I have unlocked iphone 5.i tried to use it with tmobile.it shows full network but fails to activate and shows sim invalid.how to make it work?

    i have unlocked iphone 5.i tried to use it with tmobile.it shows full network but fails to activate and shows sim invalid.how to make it work?

    Who was your original carrier; did you call them to ask them to unlock your phone, and are you aware of what their unlock policy is (THey may only unlock for international sims and not US sims

  • HT201343 My mac is OS X 10.6. has not airplay. how to make it work?

    My mac is OS X 10.6. has not airplay. How to make it work?

    OS 10.6 is Snow Leopard, which does not support Air Play.  If you upgrade to OS 10.7 Mountain Lion (which is what you list in your category) then you may be able to use Air Play depending on the age of your computer. 
    See this document:
    http://support.apple.com/kb/HT5404

  • How to make servlets reloadable in iplanet web server in solaris??

    hi all,
    does anyone know how to make servlets reloadable in iplanet ??? Thanks for help

    Hi there,
    I think your question is about "Dynamic Class Reloading", also named as Hot deployment. and the following lines may be helpful.
    iAS 6.0 SP3 and later version supports new hot deployment features through dynamic class
    reloading of EJBs.By default, dynamic servlet, EJB and registered JSP reloading is disabled in iPlanet Application Server.
    To enable dynamic reloading of servlets, EJBs and registered JSPs, perform the following steps:
    1.Start iPlanet Registry Editor, kregedit, and modify the Disable value under the Versioning key:
    SOFTWARE/iPlanet/Application Server/6.0/CCS0/SYSTEM_JAVA/Versioning
    2.Set the Disable value to 0 (By default, the Disable value is set to 1)
    3.Restart iPlanet Application Server to enable the change
    To hot deploy your application, simply compile and replace the file in the appropriate directory or, use iasdeploy to redeploy
    applications.
    I recommand you to check out the iAS's release notes (http://docs.iplanet.com/docs/manuals/ias/60/sp3/rn_sp3.html#20766) for more infomation.
    Good luck
    Shen Jie
    Developer Technical Support
    Sun Microsystems
    http://sun.com/developers/support

  • Today my money is deducted Rs.60 when I try to download paid applications of any amount and I am getting message transaction declined, so why my money is deducted. I lost almost Rs 480 rupees . So how to get refund and how to make card working?

    Today my money is deducted Rs.60 when I try to download paid applications of any amount and I am getting message transaction declined, so why my money is deducted. I lost almost Rs 480 rupees . So how to get refund and how to make card working?

    Today my money is deducted Rs.60 when I try to download paid applications of any amount and I am getting message transaction declined, so why my money is deducted. I lost almost Rs 480 rupees . So how to get refund and how to make card working?

  • How to make tablesorter work for GroupedColumns??

    Hi all,
    I imported the class of TableSorter.java to my project. It automatically picks up my normal columns, they all can be sorted.
    but the groupedColumns generated by the drag and drop table node into the design area wont pick up, even i set the property of "onAction" of the column to "Sort"(method) it wont sort the content for me.
    how to make it work?
    thanks

    hi!
    you can get lead selection in the action handler then inset your code for currentContextElement.
    wdContext.currentContextElement().getTableSorter().sort(wdEvent, wdContext.nodeXXX());
    thanks
    vishal

  • How to make rss work

    So, I'd like to get RSS working on my iMac. When I click on an RSS logo/button, I get the message "No associated application could be found." HUH??? Any idea on how to make RSS work??? In either Safari or Mail.

    RSS has been removed from Mail and Safari in Mountain Lion, so you will need to use a thrd party application such as Vienna.

  • How to make MDM work?

    Hi Guy,
    I'm newbie for MDM.I already intalled it on my machine(Window Xp)but dunno how to make it work.
    The installed components are MDM/Syndicator/Import server,Console/Import mgr/Data mgr/Syndicator.
    Do I have to install any component else?And Can you guy give me any guides/documents/Posts how to make it work.Cause I have to demo it next week but right now still blank about it...
    Thanks
    Parinya.

    Hi Jack,
    For Demo Purpose,
    1.Create few master records in R/3 Servers [ MM(Tcode MM01) /Employee(PA40) /Vendor(Xk01) /Customer(XD01) according to your MDM Repository(For Example "Products").]
    2.Extract those master datas from R/3 Servers.
    3. You will get the xml file of master datas.
    4.Open the import manager and import the xml file into  the MDM server.
    5.In Import manager ,you need to map the records[Source Fields(Imported records) VS Destination Fields(MDM repository)].
    6.Once you imported the record ,u can see the records in the MDM Data manager.
       We can Create/edit/Delete those records .
       We can merge the records for consolidation purpose.
       We can perform Data enrichments process   like Validation,Workflow,Assignments..etc.
    7.Once cleaned the Master records,it is ready to distribute to R/3 servers.
    8.Syndicator is used for sending data back to the R/3 servers
       Here also we have to do Mapping against R/3 servers.
       Using XI We can connect the R/3 Servers.
    Hope u will understand this.
    This is very simple example for MDC-MDH Scenario.
    For futher learning on how to create a repository/Enrich the mater datas, go through reference documents in the Service Market place.
    Best Regards
    Devaraj PK

  • How to make stylesheets work ???urgent

    Hi,
    How to make stylesheets work.I tried including the CSS file on the
    header
    <%@ include file="stylesheets.css" %>
    <%@ include file="stylesheets.inc" %>
    and both options does not work. can somebody tell me what is wrong here.
    Thanks
    jack

    Hi,
    below thing does not work ?? any idea ??
    <TITLE>IBMSWG - <%= childCategoryListBean.getCurrentCategory().getName() %></TITLE>
    <META NAME="Keywords" CONTENT=" passive, components">
    <META NAME="Description" CONTENT=" varistors">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link rel="stylesheet" href="stylesheets.css" type="text/css">
    <script language="JavaScript">
    <!--
    function xxx
    Thanks
    jack

  • How to make Matlab work after loading Yosemite ?

    How to make Matlab work after leading Yosemite on a Macbook pro ?

    R2014b should work with Yosemite. What version do you have?

  • TS1292 i got an itune card after I hit the pin in it show invalid number, so how to make it work?

    I got an itune card after I hit the pin in, it show invalid number so how to make it work?

    See Here  >  iTunes Store: Invalid, inactive, or illegible codes
    http://support.apple.com/kb/TS1292

Maybe you are looking for

  • My macbook pro won't automatically connect to wifi

    My computer is showing it is connected to the internet via wifi but my page won't load and gives me a message that Safari cannot connect to the internet.  When I run the diagnostics it tells me my connection is fine. 

  • Is there any way to enable editing when embedded in a browser?

    When I embed Acrobat Pro in the browser it seems to run in a limited mode that prevents most document editing.  It works fine when I access the document directly. Is there any way I can enable full editing in Acrobat pro when it is browser-embedded?

  • Knowing which Row was selected when Hide/Show is clicked

    Hi everyone, I have an advanced table, with some search criteria that works. I have added a "detail" flag and when I click the link Hide/Show, the details are displayed. How can I get in the code which Hide/Show link was clicked? I am more interestin

  • Conditional color formating in SSRS 2005

    Hi I have a report with customers bill amount and bill date. The customers have to pay within a grace period of 21 days after bill date I want to conditionally format the bill_date column so that when the number of days after the 21 days grace period

  • Can you tell me what is the error?

    Hi all I am new to dynamic sql I am trying to execute below block But i am getting below error ERROR at line 8: ORA-06550: line 8, column 19: PLS-00306: wrong number or types of arguments in call to '||' ORA-06550: line 8, column 1: PL/SQL: Statement