Creating my own context in Tomcat 4.1.18. Help.

Hi
I have installed and created my own context in Tomcat 4.1.18
I have created a folder under
%TOMCAT_HOME%/webapps called Wap
So my structure is:
%TOMCAT_HOME%/webapps/Wap/WEB-INF/classes/<MyServlet.class>
I have also modified the server.xml to include the context
<!-- Tomcat Examples Context -->
<Context path="/Wap" docBase="Wap" debug="0"
reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_examples_log." suffix=".txt"
     timestamp="true"/>
<Ejb name="ejb/EmplRecord" type="Entity"
home="com.wombat.empl.EmployeeRecordHome"
remote="com.wombat.empl.EmployeeRecord"/>
</Context>
But when i try to call this servlet thru the brower by saying
http://localhost:8080/Wap/servlet/MyServlet
I get the message
The requested resource (/Wap/servlet/DeviceLocation) is not available
AM I MISSING SOMETHING??? CAN SOME HELP?

Two things:
1) Did you put a web.xml file in %TOMCAT_HOME%/webapps/Wap/WEB-INF ?
2) Did you put mapping for your new servlet in this file like:
   <servlet>
      <servlet-name>localName</servlet-name>
      <servlet-class>full.package.className</servlet-class>
   </servlet>
   <servlet-mapping>
      <servlet-name>localName</servlet-name>
      <url-pattern>/servlet/path</url-pattern>
   </servlet-mapping>Patrick

Similar Messages

  • How do I create my own custom persona to use and share?

    I would like to create my own persona and then be able to share with Firefox users. I am clueless as to how to get started. I am sure the information is somewhere in the Mozilla Help database, but have yet to locate it. I just want to create a simple persona with some photos and graphics I have on my computer. I don't really know anything about code. Thanks for your help!

    Google Search: '''firefox create a persona'''
    * '''Personas for Firefox''' | How to Create Personas<br>https://www.getpersonas.com/en-US/demo_create
    * '''Personas for Firefox''' | Frequent Questions<br>http://www.getpersonas.com/en-US/faq
    * '''Personas for Firefox''' | Getting Started<br>http://www.getpersonas.com/en-US/getting_started
    '''I think you'd have a lot more fun with Styles though''', personas tend to hide things on toolbars, styles can be more helpful (or just as bad)
    * '''Stylish''' :: Add-ons for Firefox<br>https://addons.mozilla.org/en-US/firefox/addon/stylish/
    * '''Restyle the web with Stylish!''' - userstyles.org<br>http://userstyles.org/
    * '''Scrollbar Context Menu''' - Themes and Skins for Browser - userstyles.org<br>http://userstyles.org/styles/54
    * '''Scrollbar Menu''' - Themes and Skins for Browser - userstyles.org<br>http://userstyles.org/styles/52
    * '''Link Warning''' - Themes and Skins for Mozilla - userstyles.org<br>http://userstyles.org/styles/1301
    * '''Tabs, Enlarge list-all-tabs button''' - Themes and Skins for Browser - userstyles.org<br>http://userstyles.org/styles/18553
    * '''Tabs Bar Minimal Size''' - Themes and Skins for Browser - userstyles.org<br>http://userstyles.org/styles/9043
    * '''Tab Color Underscoring active/read/unread (Fx3.6)''' - Themes and Skins for Browser - userstyles.org<br>http://userstyles.org/styles/24728

  • CREATING VIRTUAL DIRECTORY THROUGH jakarta-tomcat-4.1.10

    dear friend(s)
    how to create a virtual directory through tomcat jakarta-tomcat-4.1.10
    please help me
    very very urgent
    mohd meraj

    Go to %TOMCAT%/conf/server.xml file and see Context settings samples

  • Remove default context in Tomcat 5.5

    Hi
    Can anyone tell me how to get rid of the default context in Tomcat 5.5 (Linux)? I want to make my own webapp the default context (which is easy in all previous releases) but no matter what I try, it doesn't work. I've tried editing:
    1) conf/server.xml
    2) conf/web.xml
    3) conf/Catalina/localhost/<various>
    3) <myApp>/META-INF/context.xml
    But I can't even make the default context 'stop', let alone make my app take over as the default. If someone could assume it's a fresh installation, "out of the box" as it were, and tell me how to get rid of it, I'd be really grateful
    Thanks!

    Ok, I thought that link looked familiar, but it still doesn't help..
    Here is my <context>.. this works perfectly under 5.0 as a separate xml file in the catalina/localhost folder, but under 5.5, I can only get this context to load by adding it directly to the server.xml...
         <Context path="" docBase="D:\dev\Projects\newk00l\website\games\" reloadable="true" crossContext="false">
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="localhost_k00l_log." suffix=".txt"
         timestamp="true"/>
    <Resource name="jdbc/netk00lextreme" auth="Container"
    type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver"
    url="jdbc:mysql://localhost/k00l_extreme?autoReconnect=true"
    username="myusername" password="mypassword" maxActive="20" maxIdle="10" maxWait="-1"/>
         </Context>

  • No Owning Context Assigned to the object 200000486

    Hi there,
    We using the Portal as the front end for PLM work. We are Encountering some issues on Create mode (for materials).
    Here is the error.
    Message no. /PLMB/AUTH_OWNACC006
    Diagnosis
    You want to save an object without assigning an owning the context to it.
    Procedure
    If you are a superuser or trusted user, you can decide if you want to save this object without an assignment to a access control context or enter a value for the owning context.
    For non-superuser and non-trusted user, this entry is mandatory. Enter a valid entry for the owning context.
    In the Material BOM, this input field for the owning context is located on the tab header.
    Note, the system display a message that discusses BOM, even though I am on a Material. 
    Any thoughts?
    Thanks In Advance
    Kumar

    Kumar,
    You should have had Ehp4 on your system and the user id from which you are trying to create this object could be a 'NON TRUSTED' user.  Meaning none of the roles for that the user has...is associated with
    the authorization object PLMWUI_TRUSR auth object to it.  Try creating with a TRUSTED user login you might not face this issue.  For all NON TRUSTED users(like external partners) the system will not
    allow to create objects without ACC.
    Hope this helps.
    Sujata.
    Edited by: sujata ramesh on Apr 14, 2010 11:18 PM

  • How to create our own taglib

    hi,
    i want to create my own simple JSTL.....
    what i am doing is i hv created my own tld file say 'com-myTag.tld' in web-inf folder .
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
    <taglib>
    <tlibversion>1.0</tlibversion>
    <jspversion>1.1</jspversion>
    <shortname>com</shortname>
    <uri>WEB-INF/com-myTag.tld</uri>
    <tag>
    <name>xhtml</name>
    <tagclass>com.myTag.Display</tagclass>
    <bodycontent>empty</bodycontent>
    </tag>
    </taglib>And java class file say 'Display' in com.mytag package........
    public class Display extends TagSupport
         public int doStartTag() throws JspException
              try
                   pageContext.getOut().print("This is my first Tag Lib");
              catch(Exception e)
                   System.out.println(" exception occur inside Display " + e.getMessage());
              return SKIP_BODY;
         public int doEndTag() throws JspException
              return EVAL_PAGE;
    }But when i use this tag lib in my JSP it even not complied........
    its giving compilation error ...............
    JSPTranslate runtime: error classDefNotFound .......
    can anybody help me
    thanxs

    Probably means you didn't add the jar containing TagSupport.class to you class path. This should be shipped with your application server / servlet container. In tomcat 5, the file is jsp-api.jar and can be found in common/lib
    Also you may prefer to extend SimpleTagSupport. It's a bit more friendly.

  • When one or more family members who have been sharing one iTunes account wants to create their own iTunes account can they each upload the music/apps from the shared iTunes on their devices to the new iTunes account?

    When one or more family members who have been sharing one iTunes account wants to create their own iTunes account can they each upload the music/apps from the shared iTunes on their devices to the new iTunes account? 

    Yes. I would clarify your statement about the "shared" iTunes Library though. If you want each iOS device to have its own music library, you should create separate user accounts for them. Read:
    iTunes: How to share music between different accounts on a single computer
    How to use multiple iPods, iPads, or iPhones with one computer

  • How do I create my own favorite template for DVD slideshows? I used to be able to select this from pulldown menu, but cannot now do so. I am directed straight to templates, which take more memory. I have a large slideshow, and need all the space I can get

    First, how do I create my own favorite theme template for DVD slideshows? I used to be able to select this from pulldown menu, but cannot now do so. I am directed straight to already existing themes, which take more memory. I have a large slideshow, and need all the space I can get. I just want to use a picture as my DVD cover, and then insert a slideshow. Also, when I try to burn my 8.5gb double sided slideshow, all that burns is the music. It is a large slideshow, a memorial on the life of my now deceased brother. This means a lot to me and to my family, and I am having so much trouble trying to burn it. I have gone into Project View and selected appropriately. The bar shows I have room to burn this DVD, but it does not burn.  I have burned so many DVDs in the past, but this one just will not burn. I am so confused at this point. I will say this is the first 8.5gb I have attempted to create and burn. My specs list a 7.7gb or 4.7gb as operable....but there are no 7.7gb dvds. I had to purchase 8.5gb. Help? What am I doing wrong? I have spent so much time on this, and just cannot figure it out.

    Final Cut is a separate, higher end video editor.  The pro version of iMovie.
    Give iPhoto a look at for creating the slideshow.  It's easy to assemble the photos in an album in iPhoto, put them in the order you want and then make a slideshow of them.  You can select from various themes and transitions between slides and add music from your iTunes library.
    When you have the slidshow as you want use the Export button at the bottom of the iPhoto window and export with Size = Medium or Large.
    Save the resulting Quicktime movie file in your Movies folder.
    Next, open iDVD, choose your theme and drag the QT movie file into the menu window being careful to avoid any drop zones.
    Then follow this workflow to help assure the best qualty video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    The reason I suggest iPhoto is that I find it much easier to use than iMovie (except for the older iMovie 6 HD version).  Personal preferences showing here.

  • Can we create our own loops? Basic question.

    Hi,
    Can we create our own loops in Logic Pro. I see in all the tutorials. They are either taking input from external instruments OR use existing apple loops.
    I have tried FL studio demo to create our own loops. But there is no trial version for Logic Pro. Need your inputs before I purchase it.
    Thank you.
    Anji

    Yes you can!
    It is as simple as selecting a Region (optional trimming recommended) and choose the Export command.
    A Dialog window opens up that lets you enter the metadata
    Apple had its separate "Apple Loop Utility" app (now only available in the developer package) that allowed you to create loops in a standalone app. The built-in loop capability in Logic uses part of that engine.
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • Can you create your own Themes

    Please help I'm new to iweb and I'm trying to figure out who to create my own theme, complete with my own color palette, fonts etc? I maintain my sororities website and everything has to be pink and green but I would like for our site to have the professional look iweb provides without all of the hassel of custom coding. I just need a few text pages, calendar, photo album, etc. Feel free to check out our current site if will help you point me in the right direction. http://www.akaupsilontauomega.org/
    thanks in advance.

    Welcome to the Apple Discussions. To create a complete theme with all the different pages takes considerable coding knowledge.
    I think it would be more expedient to start with a blank page of the white theme and add your shapes, colors, photos, etc. that you want to use. Be careful regarding use of non web safe fonts. If you do it can change how the site looks when viewed by visitors on PCs which might not have that font on their machine. See the following regarding web safe fonts:
    Common fonts to all versions of Windows & Mac equivalents
    OT

  • Creating your own theme-templates for printing?

    Can I create my own theme-templates for printing?
    /BonneSwe

    No, iTunes printing is quite simple and only works off it's own templates. If you want to customise templates you'd be better advised to look at on of the specialised cover printing programs that are available. DiskLabel is one that springs to mind.

  • Create your own iMovie theme

    Has anyone figured out a way to customize the iMovie themes? I was able to do this with the Leopard Mail stationery and create my own. Was interested in doing the same with iMovie, or even iPhoto in a pinch. Any suggestions?

    hope this feature wiill be update soon...
    thanks
    Vipul sharma

  • How do you create your own theme?

    I'm into astronomy and I'd like to create my own theme on my phone (6300) for when I'm at a dark site.  We use red light only at dark sites because white light ruins your night vision for longer.  How can I create a red-based colour theme/wallpaper/text etc?

    Actually, the .nth files used as themes for S40 phones such as the 6300 are very simple and you don't really need any software other than a text editor to create them.
    These .nth files are in fact renamed .zip files. Rename one back to a .zip file, unzip it and look at the structure. At the core of it you have a simple XML file describing the various aspects of the theme. If any media (wallpaper, screensaver, ringtone etc.) is referred to in the XML file it'll be bundled in the archive along with the XML.
    Make any changes you want, zip the lot up again, rename it as a .nth file and you're done.
    Was this post helpful? If so, please click on the white "Kudos!" star below. Thank you!

  • How to create your own theme?

    Is it possible to create your own theme for use with iDVD?
    I know there are some commercially available (e.g. www.ithemez.com), but what tools are needed to create your own?
    Thanks,
    Pete.

    Actually, DVDSP has the ability to do everything that iDVD can do and much much more. The idea is to author your own themes in DVDSP, not use pre-made off the shelf ones... if you want cookie cutter design, go with iDVD. Even with the tutorials below, you are still limited on what you can do... that is a limitation built into the application itself. Perhaps a future version may change all that, but with added flexibility also comes added complexity. Some prefer keeping things simple.
    Here is the complete iDVD 5 tutorial list:
    Part 1: Basic Custom Button Creation
    http://www.creativemac.com/articles/viewarticle.jsp?id=31388
    Part 2: More on Custom Buttons and Highlights
    http://www.creativemac.com/articles/viewarticle.jsp?id=31517
    Part 3: Creating Motion Buttons and Motion Masks
    http://www.creativemac.com/articles/viewarticle.jsp?id=31843
    Part 4: Changing highlight colors on buttons
    http://www.digitalproducer.com/articles/viewarticle.jsp?id=32284
    Part 5: Creating custom drop zones
    http://www.digitalproducer.com/articles/viewarticle.jsp?id=32445

  • How do I create a new account for an iPod that is on an existing account?  My brother and I have shared an account for five years, and now that I'm moving out, I want to create my own account but still want to be able to play the music I've purchased.

    My brother and I have shared an account for five years, and now that I'm moving out, I want to create my own separate account but still want to be able to play the music I've purchased over five years. 

    In order to continue to play and sync the music you purchased with your old account, you'll need to authorize your new computer/iTunes library to do so.  You can do this by choosing Store -> Authorize This Computer and then entering in your old account credentials.
    That's all you should need to.  Then just create your own account and start purchasing and using it the same you have with the old one.
    B-rock

Maybe you are looking for

  • How to sync all Hotmail folders in Mail on iMac?

    I have just purchased an iMac and am trying to set up my mail, but when I set up my hotmail account to Mail it only syncs the Inbox not the sub folders, is there anyway around this, as I have reverted back to using www.hotmail.com to check my emails.

  • Syncing and backing up takes forever? Overnight...

    The last time I backed my iPhone 3G up it took literally overnight. I am now syncing and backing up my phone to another laptop to see if there are any changes. It's been taking ages to back up, and I don't understand why. I still have not updated the

  • How to set up DHCP and NAT for QNAP NAS MyCloud service?

    I have an Apple AirPort Extreme Base Station (AEBS) attached to my DSL model (no router in the modem).  My QNAP NAS is attached via ethernet to the QNAP NAS.  My iMac (running AirPort Utility 6.x) is connected to the AEBS via wifi. I've found several

  • Best way to deploy a new database

    What is the best way to deploy a database for a user base that mostly doesn't understand how to use SQL based db products or has some understand? I'm current working on a setup utility for my desktop application, which uses MySQL, right now I'm at a

  • My ios 7.o update did not finish on iphone 4

    my ios 7.0 update did not finish on iphone 4