Servlet Virtual Path Question

When specifying a servlet that is mapped using the servlet virtual path option in iws4.1, the authorization information is not sent in the request header. If the same servlet is specified in the url using the complete package name, it is sent. Is there a way to get the authorization sent to a servlet that is mapped using the virtual path translation

When specifying a servlet that is mapped using the servlet virtual path option in iws4.1, the authorization information is not sent in the request header. If the same servlet is specified in the url using the complete package name, it is sent. Is there a way to get the authorization sent to a servlet that is mapped using the virtual path translation

Similar Messages

  • Configuring Servlet Virtual path translation

    Hi,
    I was wondering if anybody could help me out with this.
    I am running iWS 4.1, and iAS6.0 on top of it.
    I created a war file called myApp.war, which contains a servlet called
    myServlet.
    Then I created an ear file called myApp.ear which contains myApp.war, and
    deployed myApp.ear on the application server.
    Now: I am trying to set up a virtual path to access myServlet, so that
    http://<server_id>/myServlet maps to myServlet.
    I modified the following files under the config directory of the webserver:
    1. In context.properties, I added a context called myContext with the
    following properties:
    context.myContext.classpath=<iPlanet App Server
    path>/ias/APPS/myApp/myApp/WEB-INF/
    2. In servlets.properties,
    servlet.myServlet.classpath=<iPlanet App Server
    path>/ias/APPS/myApp/myApp/WEB-INF/classes
    servlet.myServlet.code=myServlet
    servlet.myServlet.initArgs=initial=0
    servlet.myServlet.context=myContext
    3. In rules.properties,
    /myServlet=myServlet
    Now when I try to access myServlet through the virtual path
    http://<server_id>/myServlet
    the webserver error logs say the following:
    warning ( 3080): Unable to locate class: myServlet
    (java.lang.ClassNotFoundException: myServlet)
    warning ( 3080): Internal error: Failed to get GenericServlet.
    (uri=/myServlet,SCRIPT_NAME=/myServlet)
    What am I doing wrong? Any help will be appreciated.
    Thanks!
    Uzma

    Hi,
    I was wondering if anybody could help me out with this.
    I am running iWS 4.1, and iAS6.0 on top of it.
    I created a war file called myApp.war, which contains a servlet called
    myServlet.
    Then I created an ear file called myApp.ear which contains myApp.war, and
    deployed myApp.ear on the application server.
    Now: I am trying to set up a virtual path to access myServlet, so that
    http://<server_id>/myServlet maps to myServlet.
    I modified the following files under the config directory of the webserver:
    1. In context.properties, I added a context called myContext with the
    following properties:
    context.myContext.classpath=<iPlanet App Server
    path>/ias/APPS/myApp/myApp/WEB-INF/
    2. In servlets.properties,
    servlet.myServlet.classpath=<iPlanet App Server
    path>/ias/APPS/myApp/myApp/WEB-INF/classes
    servlet.myServlet.code=myServlet
    servlet.myServlet.initArgs=initial=0
    servlet.myServlet.context=myContext
    3. In rules.properties,
    /myServlet=myServlet
    Now when I try to access myServlet through the virtual path
    http://<server_id>/myServlet
    the webserver error logs say the following:
    warning ( 3080): Unable to locate class: myServlet
    (java.lang.ClassNotFoundException: myServlet)
    warning ( 3080): Internal error: Failed to get GenericServlet.
    (uri=/myServlet,SCRIPT_NAME=/myServlet)
    What am I doing wrong? Any help will be appreciated.
    Thanks!
    Uzma

  • Servlet Virtual Path Translation

    OK, here is what I'm trying todo. I have a Servlet that I want invoked when /servlet/Router is in the address. The address is http://<server_name>/<dir>/servlet/Router . THis won't work the only way the Servlet will be executed is if I do http://<server_name>/servlet/Router The reason I need to have the <dir> is becuase I don't want all of my jsp in a the base doc directory. And I figured ,it does do this on iPlanet 6.1, is that since I have the virtual path set to /servlet/Router if /<dir>/servlet/Router is used the <dir> is the directory where the servlet would use as where it gets its files. No such luck here. ANy ideas? I have this working on iPlanet6.1 but I used a web.xml file to set it all up. I need to get it working on 4.1 and it does, IF I move all of my files in the doc root directory.

    Hi,
    The following URL will help u
    http://docs.iplanet.com/docs/manuals/enterprise/41/servlets/c-props.htm#530468
    or
    http://docs.iplanet.com/docs/manuals/enterprise/41/servlets/b-objcf.htm#19718

  • 9ias rel.2, modplsql and virtual path question

    I am running 9iAS setup running a plsql-app.
    http://myserver/DAD/procedure.
    Problem is that in the html generated by these procedures there are references to images in the form of "http://myserver/DAD/img/image.jpg".
    This caused call to an non existing img-procedure in the database and hence no graphics to show.
    I tried using virtual path alias as follows:
    Alias DAD/img/ "/MYDIR/img/"
    <Directory /MYDIR/img/>
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    But it still comes up with the same error:
    img: PROCEDURE DOESN'T EXIST
    Can anyone point out what I am overlooking ??

    I am trying to fix it using 9iAS setup. I can't touch the procedures themselves unforunately.

  • (Urgent) How to read file properties with virtual path?

    I have the data.properties file, and write a servlet file to read properties from this properties file. But I get a problem, that is: I CANNOT USE VIRTUAL PATH!
    How can I solve?
    My Application Directory is,
    WEB-INF
    classes
    loadProperties.class
    data.properties
    More Question,
    I can use Context in Web.xml to assign values to parameters. But its will be shown. How can I hide value with a properties file?

    This is not working.
    I am using Tomcat 4.0.6, for my JSP application I am trying to read ini.properties file from \webapps\myapp\WEB-INF\classes\common\
    directory through java bean.
    System.getProperty("user.dir")
    is giving <tomcat-home>\bin directory.
    unless I hard code the path this way, I could couldn't read the ini file.
    Properties props = new Properties();
    String strIniFilePath = <webappPath> + "\\WEB-INF\\Classes\\Offenders\\Common\\";
    props.load( new FileInputStream(strPropsFile));

  • Virtual Path

    Hi,
    Can we map a physical path with virtual path on application server like oc4j, I know how to do it with http server but not sure about how to do it on oc4j.
    Please suggest/advise.
    Thanks
    Deepak

    It is likely that &lt;virtual-directory ... &gt; of orion-web.xml is what you want.
    Please see
    http://download-west.oracle.com/docs/cd/B12314_01/web.904/b10321/confdesc.htm#1019157
    which is Oracle Application Server Containers for J2EE, Servlet Developer's Guide 10g (9.0.4),
    chapter 6, Configuration File Descriptions

  • 2 Reports virtual paths in 11g

    Hi
    In OAS10.1.2.3 Reports, I unjar'ed reports.ear; changed its appplications.xml context-root to reports_2; added some pararmeters to its web.xml to use cgicmd_2.dat; then jar'ed and deployed reports_2.ear.
    Now I have 2 reports virtual paths to keep sensitive reports and non-sensitive reports apart.
    http://myhost/reports/rwservlet
    http://myhost/reports_2/rwservlet
    Any suggestion on how I can achieve the same results in 11g Reports?
    What I have done so far:
    In Fusion Middleware 11g 11.1.1.3, I created 2 in-process Reports services in 2 Weblogic domains - ClassicDomain and ClassicDomain02:
    http://myhost:9002/reports/rwservlet
    http://myhost:9004/reports/rwservlet
    Each has it own cgicmd.dat file so I can keep sensitive reports and non-sensitive reports apart.
    My problem is how to front the 2 URLs with OHS.
    I tried mod_wl_ohs.conf or apache proxypass or mod_rewrite and none of them could give me the behaviour as in 10g.
    According to metalink's
    Is it Possible to Change the Virtual Path in Reports 11g ? [ID 1162143.1
    Changing the Context Root (/report) directly from the Deployment section in the WLS_REPORTS managed server is not supported.  The main reason behind this is that large amount of functionality and documentation assumes this standard path so changing this on servlet will break many other things.
    Thx,
    Ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi
    For the images try <img src="images/*.gif" width.....> . Note no forward or backward slash at the beginning . This worked for me.
    Keep me posted on your progress.
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun mcirosystems inc
    http://www.sun.com/developers/support

  • Setting up virtual path

    hi ,
    I have been trying to set up the virtual path for my xsql servlet.The index.html and hello page and employee page works fine when i use xsql-wtg .but i am trying to set it for IIS.
    I am using servlet exe 3.0 , my inetpub is in my d drive my oracle client is also in d drive.I am using remote database.
    kindly help.
    kp

    I am using Oracle 9i Jserv on the Sun Solaris Operating system. I just finished an Java application on tomcat located on my PC and want to move it to Unix. How to do that? I mean how to configure that? Should I follow the same directory structure or just install a new tomcat server (unix version tomcat) on Unix?
    Thanks a lot!

  • HOT VP = HOT VIRTUAL PATH = ABSOLUTE NIGHTMARE OF ...

    Hey guys for my first post Im going to tell you about my nightmare Ive been having for quite a long time now with my Broadband connection
    My Line rate is meant to be 8000k because I am very close to the exchange
    In June 2010 I started noticing speed drops at peak times, I reported a fault, they sent an engineer out he couldnt find anything, I phoned them about 10-15 times, they insisted theres nothing that they could do. I gave up, and didnt bother phoning back in because I was getting around 2MB at peak times and 5MB off peak and I could live with this, just about.The exchange was due for an upgrade to ADSL2 in November so no point in pursuing further.
    However, over the last 6 months, My broadband has been slowing and slowing and slowing down to an almost complete halt. I am now unable to play online games at peak times, I cannot watch Youtube or BBC I Player. My throughput has been between 300k-600k between 6.30pm and 12am. Sometimes It is impossible to do anything and its very frustrating. Mysteriously in September, the date of upgrade changed from November to April next year for ADSL2. My neighbour accross the road gets a stable 7MB all day long.
    This prompted me to try again by starting a new fault, on the 26th of October. After around 5 phone calls, they sent an engineer out to my house, he ran some tests, told me he couldnt do anything. After around 30-40 phone calls, this repeated several times, until I got what I think was my 7th - YES 7TH!! engineer out, who told me I had a HOT VP and my equipment at the exchange needed an upgrade to allow more capacity for bandwidth. I said great finally we have got to the bottom of it, I cant wait to fix it now. So I phoned up technical help again, So they sent me another engineer, and another, and another. Each time they sent me an engineer, They couldnt do anything, They were not the right type of engineer to fix MY problem - HOT VP.
    So after 10 engineer visits - yes 10!! I was not about to give up now. Even though quite laughably they sent me 1 engineer who did not even have a broadband fault diagnostic machine, instead they gave him an ancient ADSL speedtouch modem to test bb connections with!! and was complaining that his manager told him 'you dont need broadband fault training - just go out there and fix them' I did not know what else to do though, because the technical help centre in India was becoming a headache, I must have made about 40-50 phone calls in total to them over the last few months.  It really does seem as if its a complete dead end this whole thing.
    But then I heard about bt.com/contact - now I didnt even know these guys existed until now - how many BT Broadband customers are out there who have made hundreds of phone calls to BT - or left BT because they are so fed up with the service they are recieving from India. Language barrier is one thing but the incompetence of the staff on the normal technical help line is simply something else - they have no idea what a HOT VP is. One woman in India told me 'your broadband equipment at the exchange has overheated and it needs to be cooled down' - I swear that is actually what she said!!!
    Frankly I didnt care though, because now I had found a way of MAYBE getting something done about this nasty attrocious unbelievable nightmare of a fault. OK so I go onto bt.com/contact, tell them my frustrations and the fault etc. eventually they, the friendly helpful (perfect english speaking) Northern Ireland Tech help get back to me after contacting BT wholesale - 'BT wholesale have told us that there is nothing they can do to fix this just now - the earliest they can send an engineer to fix this will be April 2011'
    Absolutely not acceptable - I told them I am not accepting this - and to go back to wholesale and keep trying - they were complaining about the language barrier - wholesale are impossible to work with. This might be why some customers complain of the 'BT Shunt' now I know exactly what this is. The advisor although sympathetic simply did not have anything to say to me other than 'BT wholesale do not understand - and are refusing to send an engineer out' - Id say this is probably true!
    I am waiting for an answer on what the next step is going to be - I am not giving up now - I hate my broadband connection the way it is - unuseable
    I wonder how much BT has spent trying to resolve my fault - thousands maybe - all those engineers and phone calls...
    I will put further posts about what happens next...
    Can anyone answer these questions for me, I couldnt get an answer over the phone:-
    1) will completely disconnecting my line and reconnecting it back up resolve the problem?
    I have been told that it is only my equipment that is effected so restarting may put me on another Stack
    and this is true because my neighbours is perfect
    2) will the ADSL2 upgrade in feb 2011 reolve the problem?
    3) why would a package that costs £24.99 a month not have priority on the traffic at the exchange - whereas if you pay this kind of money with other companies eg plusnet - you get priority bandwidth.

    Hi this may help no known hot vp's
    Exchange Status Checker
    Results: Ibrox
    Code:
    WSIBR
    County:
    Strathclyde
    Enabled:
    17 Nov 1999
    Market:
    3
    Virtual paths: Green
    There are currently no known capacity problems on your exchange. There may still be an exchange problem, however BT are not currently reporting that they are aware of it. Please contact Support if you are having speed problems, who can advise further.
    Record last updated: 24 Dec 10
    Historical information for this exchange:
    Status
    Date
    17 Dec 10
    10 Dec 10
    03 Dec 10
    26 Nov 10
    19 Nov 10
    Please note: This checker is not a generic fault tracker. It is updated weekly when updates are available and reflects a snapshot of speed capacity from each exchange. Results shown here should not lead you to conclusive proof of an issue.
    Return to exchange detail
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

  • Sending user/password to OAS virtual path?

    Hello -
    OAS allows you to restrict access to a virtual path you define for say a group of PL/SQL packages. If you try to access the path from the web, it will prompt you for an OAS user id and password. The security is great, but for complicated apps, it pops up (as it should) on every different virtual path, which is kind of annoying for the user.
    Is there any way to pass the user/password info to the virtual path to bypass the popup window? Maybe an HTML Post?
    Thanks in advance for your help
    -Tyler Allbritton

    Out of the list of discussion groups, this one seemed the closest fit for my application server question. Does any have an idea of a better forum in which I can post this question?
    Thanks
    -Tyler Allbritton

  • Where to mapp a Virtual path ?

    Hello
    I want to deploye an oracle forms Application (Forms 10gR2) on linux OEL 5.5
    My question is where to mapp the Virtual Path, in forms.conf or in orion-web.xml or in both ?
    thanks.

    Hello,
    I think that forms.conf is used by the Forms Runtime (so the A.S.) while orion-web.xml is used by the runtime of Forms Builder.
    Francois

  • Defining virtual path for images to be visible without specifiying path(AS)

    Hi,
    I am running a report (Version 10g) which have an image (Read from file = yes) item with source "Function column" that returns an image name. Ex. "11.gif"
    I am recieving an error that the applications server cannot find the image "11.gif"
    Image 11.gif is stored in a directory on the Applications server "D:\photos".
    Where should I add the directory path "D:\photos" so that the reports will view the image?
    Thanks

    No need to define a virtual path similar to what's done in forms 10g. An entry in the registry key 'REPORTS_PATH' is enough!

  • Virtual Path in WebLogic 7.0

    Hi,
    I would like to create a virtual path for our appalication.currently the URL is something like this :
    http://a.com/blsapp/jsp/customer/Login.jsp
    Now , I need to create vritual path for /blsapp/jsp/customr =>customer
    So, the url would be
    http://a.com/customer/Login.jsp
    How to do this in Weblogic 7.0 ?.
    A sample would be appreciated.
    Thanks & Regards
    Subu

    Hi,
    I would like to create a virtual path for our appalication.currently the URL is something like this :
    http://a.com/blsapp/jsp/customer/Login.jsp
    Now , I need to create vritual path for /blsapp/jsp/customr =>customer
    So, the url would be
    http://a.com/customer/Login.jsp
    How to do this in Weblogic 7.0 ?.
    A sample would be appreciated.
    Thanks & Regards
    Subu

  • Can't invoke PL/SQL cartridge for non-default virtual path

    I have a problem invoking a cartridge if the virtual path is
    anything but the default (/<appName>/<cartName>).
    I have tried stopping and re-starting the application server, but
    that does not help.
    Does anyone have a solution to this problem?
    Amar.
    null

    Elton Barendse (guest) wrote:
    : Amar Pai (guest) wrote:
    : : I have a problem invoking a cartridge if the virtual path is
    : : anything but the default (/<appName>/<cartName>).
    : : I have tried stopping and re-starting the application
    server,
    : but
    : : that does not help.
    : : Does anyone have a solution to this problem?
    : : Amar.
    : Hi Amar,
    : Can't help you solve your immediate problem, but here's some
    : food for thought ...
    : Quintessence Systems Ltd (UK) have developed technology which
    : automatically migrates PL/SQL procedures and packages to Java.
    : This is in response to the many customers who are looking to
    : move to a more open and non platform specific architecture for
    : enterprise wide business logic.
    : The Java code generated can be deployed in either Oracle 8i or
    : in an App Server i.e. no need to wrap your existing procedures
    : in a PL/SQL cartridge.
    : If this is of interest, I'd be happy to put you in touch with
    : our technical people to explain to technology in greater
    detail.
    : Elton Barendse
    : CEO
    : Quintessence Systems Limited
    I had a similar problem and maybe it would resolve your troubles
    I don't know but I configured the PL/SQL cartridge and it did
    not work actually it was just a pb of virtual memory ,set your
    mmory to 600M and restart all the stuff.I don't think it will
    resolve the pb but think of it.
    steve
    null

  • How to set the servlet context path manually in Tomcat web server.

    I tested some servlets by putting them in the folder , which the tomcats examples application uses (ie Tomcat 4.1\webapps\examples\WEB-INF\classes\) and it appeared to be working fine.
    I was calling the servlet like this : http://localhost:2006/examples/servlet/TestServlet
    But when I installed my own WAR file in the server , the servlet is not working now. now the new location of my servlets is : Tomcat 4.1\webapps\MyApp\WEB-INF\classes\
    and I'm trying to call the servlet like this : http://localhost:2006/MyApp/servlet/TestServlet
    The error , what i'm getting is :
    description :The requested resource (/MyApp/servlet/TestServlet) is not available.
    Some body please tell where I'm making the mistake ? I believe this may have something to do with the servlet context path setting. If anybody has any idea , how to set the path..will be much appreciated.

    Thanx for your reply , at first I was not using any web.xml(since not mandatory) but even after using the web.xml file the error is coming . Please have a look into the contents of the web.xml file and let me know if you find any problem...
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <servlet>
    <servlet-name>TestServlet</servlet-name>
    <servlet-class>TestServlet</servlet-class>
    </servlet>
    </web-app>
    one more thing I would like to tell you here. I was just looking into the configuration of Iplanet web server..I found that , there are options to set the servlet container path (like : - Prefix: /servlet
    Servlet Directory: /ecomm/iplanet/nes60/product/docs/container )
    so from here I came to know that "container " is the folder where we should put our servlets and it has URI as "servlet" but yet I'm not able to find any option in the Tomcat Web server to set the servlet container to any different directory.
    If you have any idea please let me know.

Maybe you are looking for

  • Photoshop Album Mini 3.2のソフトを旧パソコンから新パソコンで使用するには

    旧パソコンでPhotoshop Album Mini 3.2のソフトを使っておりました. 新パソコンで継続してこれを使いたいのですが.新パソコンへのソフトの インストール方法がわかりません. なお.本ソフトは外付けHDに保管しています.このソフトで新パソコンで 使えるのかどうかもも分かりません. どなたか.教えて下さい.

  • 3 56G wireless ready Macs need info on a wireless router.

    We have a two level house and the macintosh that will have the router will be on one end of the house on the seconds level while the other two mac are on the first floor. The first would be in the middle of the of the other two and we estimate the di

  • How to migrate business rule

    I have created one Configurable business rule for Position in Development instance... I want to Migrate business rule created in dev instance to PROD instance. I want the steps to Migrate. Is there any FNDLOAD command available for this..??? Thanks i

  • Book file not reflecting changes in source .indd

    I created 2 .indd files. I created a book   indb. All is well. I create a .pdf. I make changes to the 2 indd. files. Save to the book again. The changes are not recognized. Seems like I have to create a new book everytime I make changes to the source

  • Invalid Link for 9.2.0.1 EE/SE/S/P/Client 32-bit Windows Server 2003

    Hello, The OTN download for Oracle 9i Release 2 (9.2.0.1) 32-bit for Windows Server 2003 is incorrect. This link brings you to the 9.2.0.3 PATCHSET download, and NOT the base release software. Here is the contents of the link when followed. "Oracle9i