HELP! Working with WEB-INF.

I'm working on a project where I want to change what subdirectory my web-inf folder shows up as.
Here's what I'm after, let's say my site URL is:
www.fu.com
servlets in my WEB-INF are linked with the URL:
www.fu.com/servlet/MyServlet?
and my project is in the directory:
www.fu.com/bar/
and I would therefore like my servlets to be linked to the URL:
www.fu.com/bar/MyServlet? or www.fu.com/bar/servlet/MyServlet?
I'm thinking that the real directory that my servlets are held in is WEB-INF, and the referenced directory is "servlet", this seems to be an arbitrary name, and if it is, can't I change it somehow? using a .htaccess file or PHP or something?
By the way, I'm using Tomcat on Unix, and Perl/CGI, JSP, & PHP are at my disposal.
Thanks!

Editting the web.xml will work but you'll need to give each servlet a unique name. (I wouldn't use "/bar" )
<servlet>
<servlet-name>EchoServlet</servlet-name>
<servlet-class>EchoServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>EchoServletTwo</servlet-name>
<servlet-class>EchoServletTwo</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>EchoServlet</servlet-name>
<url-pattern>/bar/EchoServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>EchoServletTwo</servlet-name>
<url-pattern>/bar/EchoServletTwo</url-pattern>
</servlet-mapping>

Similar Messages

  • Error while deploying when working with web service

    Hi friends,
    I am working with web service. When i try to run the build.xml, I'm receiving an error as follows:
    *[javac] D:\MyWorkspace\MyProjectWeb\Javasource\aaa\bbb\ccc\ws\endpoint\ListenerServiceEndpoint.java:27: package org.springframework.ws.server.endpoint does not exist
    [javac] import org.springframework.ws.server.endpoint.AbstractDomPayloadEndpoint;
    [javac] ^ *
    Could anyone please help me in getting this solved??
    Thanks in Advance,
    Robis

    Pretty self-explanatory - the Spring framework jars are missing from the classpath used in compilation.
    If you don't have them, get them from www.springframework.org.

  • Can i deploy web application with WEB-INF as war and leave others as it is

    i'm asked to deploy my web application with WEB-INF in a war and leave all the others as it is, but i'm getting error that "resource not found"
    what shld i do?
    this is the command i used to create war
    jar cvf WEB-INF.war *.*
    i entered this command from command prompt from the directory
    c:/tomcat/webapps/myapplication/WEB-INF/>jar cvf WEB-INF.war *.*
    please help!!!!!

    can u please elaborate...because i need to speak about that to the manager who is asking me to do so. he will not listen to me until i explain with true reasons.

  • BI Publisher not working with Web Cache

    BI Publisher not working with Web Cache
    I'm trying to enable BI Publisher to run from the internet. I have Web Cache (AS10g rel 2) in an internet DMZ, trying to work with BI Publisher running on a AS10g rel 3 server in a application DMZ. BI Publisher won't allow Web Cache to hide the URL after login. It tries to use the application server name as a URL and gets lost, since this is not resolvable from the internet. We have Content DB, other J2EE application installed in this same configuration, and it works fine.
    This is duty managed as of today. They required an enhancement request, which I submitted. SR 6696835.993 -

    Currently an enhancement - it was logged as that but IMHO its a bug as other Oracle products work OK - it kinda depends on whether its an ORacle strd to work with webcache or not. Suffice to say, we are investigating the issue and will update the er/bug soon.
    Tim

  • What is the right sdk api to work with webi reports in BOXI Release 4?

    Hello,
    I just read in the omg model for rebean (sdk for working with webi report documents) that all functions to access the report structur and layout are no longer availabe beginning with Release 4.
    Can anyone confirm, that this is the case?
    Are those functions moved to a different SDK component?
    Thanks in advance,
    Bernd
    Dokumentation about rebean _omd
    u2022 The object model shows many funtions , classes in red which means:
    Note: The Classes, Interfaces, and Methods marked in red are no longer functional from the SAP
    BusinessObjects Business Intelligence Platform 4.0 release onwards.
    u2022 Among those functions are all !! We need to analyze the report layout
    u2022 No longer supported: DocumentInstance.getDictionary() , DocumentInstance.getOpenDocumentInfo(), DocumentInstance.getResourceManager(), DocumentInstance.getStructure()
    u2022 Classes no longer supported: ReportElement, ReportDictionary, Query, QuerySorts, DataSourceObject(s), SQLDataProvider,QueryNode, DPExpression, QueryContainer, Link,
    u2022 Classes no longet supported: ReportBody, ReportContainer, ReportStructure, ReportBlock, Graph, *Table
    u2022 Classes no longer supported: Cell, PageHeaderFooter

    Thank you for the information srrachna !
    Well, the point with the report engine sdk is a surprise. What is the sense of new functionality when you cannot use it (spoken for the api processing), and in addition when the new functionality eliminate functionality which was available before in the sdk.
    In my view this cut is to hard. The .pdf speaks from deprecated, but the blog and the information in the report engine api speaks a different language. The functionality is not just deprecated but no longer available.
    Hope SAP will address that before relase 4 becomes GA in May 2011.

  • Taglib tag doesn't work with web.xml 2.4 ?

    That is, I switched to the 2.4 version of web.xml and now none of the taglib elements I have in there work.
    I get the following excpetion
    org.apache.jasper.JasperException: File "/tags/struts-html" not found
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.jav a:105)
    I've been surfing a good portion of the day looking for some documentation on this but to no avail. I did find that I should wrap the taglib elements in a jsp-info. I'm runing tomcat 5.0.19.
    In any event here is my web.xml:
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd"
    version="2.4">
    <display-name>Struts Examples Application</display-name>
    <!-- Standard Action Servlet Configuration (with debugging) -->
    <servlet>
    <servlet-name>InitServlet</servlet-name>
    <servlet-class>com.jacent.admin.servlet.init.InitServlet</servlet-clas s>
    <init-param>
    <param-name>log4j</param-name>
    <param-value>/WEB-INF/log4j.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class&g t;
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <!-- module configurations -->
    <init-param>
    <param-name>debug</param-name>
    <param-value>2</param-value>
    </init-param>
    <init-param>
    <param-name>detail</param-name>
    <param-value>2</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <!-- Standard Action Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <!-- The Usual Welcome File List -->
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <!-- Struts Tag Library Descriptors -->
    <jsp-config>
    <taglib>
    <taglib-uri>/tags/struts-bean</taglib-uri>
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/struts-html</taglib-uri>
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/struts-logic</taglib-uri>
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/struts-nested</taglib-uri>
    <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/struts-tiles</taglib-uri>
    <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/datetime</taglib-uri>
    <taglib-location>/WEB-INF/datetime.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/tabs-taglib</taglib-uri>
    <taglib-location>/WEB-INF/tabs-taglib.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/admin-widgets</taglib-uri>
    <taglib-location>/WEB-INF/admin-widgets.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
    <taglib-location>http://java.sun.com/jsp/jstl/core</taglib-location> ;
    </taglib>
    </jsp-config>
    </web-app>
    In addition Eclipse is complaining about web-app element not able to be found.
    Thanks for anyone's help!
    John

    #1 programmers excuse: It works for me. You must be doing something wrong.
    Finding out what is the trick.
    I have Tomcat 5.0.28, but I don't think it would make THAT much difference.
    What version of Java are you running?
    You shouldn't need the entry for the JSTL library c. That works without an entry in web.xml, provided you use the correct URI.
    First step: make a test page that only uses that one taglib - eg an html:base tag.
    Confirm that it breaks with the current setup.
    Backup web.xml, and start it from scratch with an absolute minimal one - only import the struts-html library.
    Does that work?
    Slowly copy and paste in the different bits of web.xml until you find what breaks it.
    Hope this helps,
    evnafets

  • Working with Web Service Security

    Hi... forum
    I really need your help.
    I created a web service client. with JDEV 10.1.3, when i crearted a function call i got this error
    javax.xml.rpc.soap.SOAPFaultException: SoapException
    at oracle.j2ee.ws.client.StreamingSender._raiseFault(StreamingSender.java:540)
    at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:390)
    at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:111)
    at com.ws.runtime.POSSoap_Stub.comprar(POSSoap_Stub.java:659)
    at com.ws.POSSoapClient.comprar(POSSoapClient.java:55)
    at com.ws.POSSoapClient.main(POSSoapClient.java:40)
    I debug the application and then get down in this line:
    send((String) getProperty(ENDPOINT_ADDRESS_PROPERTY), _state);
    i also using web Secure Proxy
    and i have another methor called ping and this work fine, but one method that needs webservice security doesn´t work.
    some body has work with Webservice Security ?
    How can i view the message that is sending ?
    i don´t know what´s happenning ?
    Can help me, please?
    thnks
    Josue

    HI Frank, thank you for your help...
    I run the HTTP analyzer and see the error.. the usernametoken doesn´t was put it...
    My proxy i put it like secure proxy and i check the option username token. but the service. doesn´t put me this tag.
    this the message send it.
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="urn:schemas-orbitel-com-co:pos">
    <env:Body>
    <ns0:SolicitudCompra>
    <ns0:IdTransaccion>123</ns0:IdTransaccion>
    <ns0:TipoTarjeta>Orbitel Europa</ns0:TipoTarjeta>
    <ns0:Localizacion>Colombia</ns0:Localizacion>
    <ns0:Valor>0</ns0:Valor>
    <ns0:ZonaHoraria>0</ns0:ZonaHoraria>
    </ns0:SolicitudCompra>
    </env:Body>
    </env:Envelope>
    And the error message is..:
    <soap:Fault>
    <faultcode>soap:Server</faultcode>
    <faultstring>SoapException</faultstring>
    <faultactor>urn:schemas-orbitel-com-co:pos</faultactor>
    <detail>
    <Error xmlns="urn:schemas-orbitel-com-co:pos">
    <Codigo>POS006</Codigo>
    <Descripcion>El UsernameToken no fue suministrado</Descripcion>
    </Error>
    </detail>
    </soap:Fault>
    Frank, what can i do. to put the usernametoken into the send message.. ?
    thnks four your help...
    thnks.
    Joshua

  • Environment for working with web dynpro

    Hi All,
    I am new to web Dynpro and would like to work on this. Please let me know what software i need to install to work on web dynpro. PLease provide all the necessary information.
    Thanks,
    Ramana Kishore.

    Hi.  THere are two flavors of webdynpo, you have the java side, and the ABAP side?  Which do you want to work with? 
    For the java side, you will need to download and install a Netweaver Sneak Preview Java system as well as the Netweaver Developer Studio.  The studio is the IDE which you will use to create your webdynpro applications, you then deploy to this java system to run the app.
    For the ABAP side, you will need to download and install the Netweaver Sneak Preview ABAP system.  Of course the IDE here is SE80 in the ABAP system.  Webdynpro is built directly into SE80.
    You can download all of this good stuff here on SDN at the following link.
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/cfc19866-0401-0010-35b2-dc8158247fb6
    The ABAP system is on the far right.
    You can also check out the help on both.
    http://help.sap.com/saphelp_nw04s/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/15/0d4f21c17c8044af4868130e9fea07/frameset.htm
    Hope this helps.
    REgards
    Rich Heilman

  • Improving the LabVIEW Help: Working with Data Types

    Have you ever had trouble figuring out how to work with the waveform data type, the dynamic data type, or some of the other more complex data types in LabVIEW? As a tech writer on the LabVIEW team, I'd like to improve our documentation about working with data. What would you like to see? What would be helpful? Have you ever given up on a particular data type because it didn't work? Have you ever created a replacement data type because you preferred not to use a LabVIEW data type?
    Lacy Klosterman Rohre | Marketing Editor | National Instruments | 512.683.6376 | ni.com/newsletter

    I've been programming LabVIEW since around 3.1 / 4.0.  Over the years and versions, I've found it necessary to approach a lot of the new datatypes and algorithms with some healthy skepticism because I don't think we're usually given a "fair and balanced" overview.  Some of the things that are highly promoted that bring "ease of use" for beginners (and I *do* understand the importance of that when you're growing your LabVIEW user base) can carry significant performance penalties that are mentioned in more of a whisper, if at all.  I'd just like a more full disclosure of the tradeoffs -- the good, the bad, and the ugly.
    Waveforms -- very rarely use them, unless required for analysis functions.  I have a vague notion (between a belief and a memory) that they used to carry a significant performance penalty compared to arrays, but that the gap is now much smaller.  Still, I'm most comfortable with my old habit of using data arrays.  Some of this came about because a lot of my work uses counters where I may have a variable "dt" value or where my AI is clocked by a counter and the "dt" isn't internally generated.
    Dynamic signals -- have never used them.  Have no clear idea what good they're supposed to be, and they seem to be tied in primarily with Express VI's, which I have also studiously avoided.
    Variants -- Use them only slightly.  Performance issues are a question mark.  Exception: have learned that the implementation of Variant properties allows their use as an efficient way to create associates for string lookup tables. 
    Digital Waveform -- have typically avoided it except when graphing digital data during debug.  Haven't found any compelling reasons to use it.  I do like the notion of a compress/expand capability for sparse digital data, but haven't exercised it enough to trust the implementation. 
    Recap:  I don't need more simple "how-to's" in the help.  I need a LOT more "why bother's" that include both pros and cons. 
    -Kevin P.

  • Drop-down box does not work with Web GUI

    Situation:
      On CE5 (ECC 5.)-> transaction "MM02"
                     -> click on drop-down for "Material"
                     -> see distorted pop-up
    Solution:
      apply kernel patch #144.
      ITS is part of the Basis, starting with WebAS 6.40

    You wouldn't happen to be using Vista's Home Edition are you?  I work from home and have Vista Home on one of my PC's and it has the same issue when I'm connected to 2004s systems.  Vista Home isn't supported.  Only Vista Prof.  Oddly, if I'm using the same GUI to attach to 4.6C releases, I don't have this issue.

  • Will downloader helper work with 5 or should I wait to upgrade to 5

    As I use Download Helper frequently will it work with Firefox 5 if I upgrade to V5 now or should I wait to download V5 at a later date?
    Thank you,
    Chad

    Download helper is working fine on version 5 firefox, and it's just updated itself

  • Help: Working with .MOV files in FCP and forced to RENDER FOR EVERY EDIT

    I'm working with .MOV files from my digital camera in Final Cut Pro and every time I make a new edit, I have to render it in order to see it in the canvas.
    How do I make it so that I don't have to render every edit in order to see it?
    (I've worked with files straight from a DV camera, and editing went fine. I'm assuming it has to do with the .MOV files)

    DV Cameras are not the same thing as a Digital camera. Digital cameras offer video on a limited basis and it's usually highly compressed in a non-editing format such as MPEG-2 or similar. NLEs are made to work with video cameras, not still cameras which is why you're having trouble.
    That's not to say you can't edit video captured with a digital camera, but you need to know how to prep it for editing. Some digital cameras shoot at odd frame rates and they all use some form of compression that is not typically used in editing. This means that you'll likely need to convert your clips to an editable format first using Compressor.
    Andy

  • Problems with WEB-INF files not being found.

    We are using Sun Java Web Server v6.1SP2. I have tried to install the struts example application into the docroot. The application makes use of tld files (tag libraries) that are stored in the WEB-INF directory.
    I receive the following error when starting the web server:
    [29/Oct/2004:15:11:30] failure (22379): for host 169.198.12.50 trying to GET /index.jsp, service-j2ee reports: S
    tandardWrapperValve[jsp]: WEB2792: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: WEB4059: can't find /WEB-INF/struts-bean.tld (File not found)
    The file IS in the directory.
    Thanks in advance for any assistance.
    TJ Herring
    [email protected]

    Web Server denies access to the WEB-INF directory.

  • Help working with File() objects

    Hi,i'm sorry for my not-so-perfect English.
    I'm working with java.io.File object, to use and know the contents of a folder.
    But if i try to use the function list() on a folder that is the first in my hard drive (For example: C:\Test on windows, or /usr on unix), and try to get the Parent...i receive null.
    This is a regoular way,in my opinion; But i have a problem: i'm working at a Java File Manager, and i'd like to LIST all my hard driver present in my computer (ie. C:,D:, E:) but i don't really know how to do...!!
    On UNIX, i can resolve this problem using a list() on /mnt folder, for mounted drive...but on Windows...how can i!?
    Thanks for the answers...

    Hi,
    Take a look at:
    File.listRoots()
    Kaj

  • Help working with this dope bassline

    A numerous amount of songs that have been released in the past few months have had these deep and long basslines. Ive been working with logic trying to figure out what the trick is behind creating this sound, but I don't think it has to do with sidechaining, but I would really appreciate it if anyone could fill me in on what the trick is. Here are 2 sample tracks.
    http://www.youtube.com/watch?v=kVuWy76vw
    http://www.youtube.com/watch?v=wrpUKm9oL2Y

    buckdice wrote:
    A numerous amount of songs that have been released in the past few months have had these deep and long basslines. Ive been working with logic trying to figure out what the trick is behind creating this sound, but I don't think it has to do with sidechaining, but I would really appreciate it if anyone could fill me in on what the trick is. Here are 2 sample tracks.
    http://www.youtube.com/watch?v=kVuWy76vw
    http://www.youtube.com/watch?v=wrpUKm9oL2Y
    Track one is probably a synth bass played well. Since this is a mixed track, AND it's thru youtube, there is no way to be accurate as to what instrument was played.
    Track two, the low bass on the first beat is a DRUM. Like an 808 detuned and elongated.
    Either way, experiment with Logic's synths, already. We can't tell you how to play, or how to get the sounds. That is your job...
    Cheers

Maybe you are looking for