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

Similar Messages

  • 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

  • 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

  • How to configure the virtual path with our web listener

    Oracle Apps Version: 11.5.10.2
    Oracle database: 10.2
    platform: Windows server 2003
    while applying developer 6i patch ( 61954129 ) i got following error which says configure the following virtual path for your web listener
    following is the output of forms6iconfig.txt file which oracale suggest to check
    Configuration Steps for Oracle Forms installation of 06:21:33 2010/12/01
    This file gives details of the configuration steps done for you by the installation process
    (marked '[INFO]') and of any actions you need to do manually (marked '[ACTION]'). Please read
    this file and perform the requested actions.
    [ACTION] If you are installing in a new Oracle Home, please reboot the machine after the installation.
    [ACTION] Please configure the following virtual path with your web listener: /dev60temp for
    physical directory D:\CLONE\cloneora\8.0.6\tools\web60\temp.
    [INFO] NT service Oracle Forms Server [Forms60Server] has been created and started for
    the Forms Server.
    [ACTION] Please configure the following virtual path with your web listener: /forms60java for
    physical directory D:\CLONE\cloneora\8.0.6\FORMS60\java.
    [ACTION] Please configure the following virtual path with your web listener: /dev60html for
    physical directory D:\CLONE\cloneora\8.0.6\tools\web60\html.
    [ACTION] Please configure the following virtual path with your web listener: /dev60cgi for
    physical directory D:\CLONE\cloneora\8.0.6\tools\web60\cgi.
    [INFO] An internet shortcut to run a standard test form, or any form of your choice, has been
    created for you in the Oracle Forms program group.
    [ACTION] Please configure the following virtual path with your web listener: /jinitiator for
    physical directory D:\CLONE\cloneora\8.0.6\JINIT.

    Hi,
    while applying developer 6i patch ( 61954129 ) i got following error which says configure the following virtual path for your web listener
    following is the output of forms6iconfig.txt file which oracale suggest to check
    Do you mean (Patch 6194129)? How do you get this error? Is it at the beginning or the end of the installation?
    Configuration Steps for Oracle Forms installation of 06:21:33 2010/12/01
    This file gives details of the configuration steps done for you by the installation process
    (marked '[INFO]') and of any actions you need to do manually (marked '[ACTION]'). Please read
    this file and perform the requested actions.
    [ACTION] If you are installing in a new Oracle Home, please reboot the machine after the installation.
    [ACTION] Please configure the following virtual path with your web listener: /dev60temp for
    physical directory D:\CLONE\cloneora\8.0.6\tools\web60\temp.
    [INFO] NT service Oracle Forms Server [Forms60Server] has been created and started for
    the Forms Server.
    [ACTION] Please configure the following virtual path with your web listener: /forms60java for
    physical directory D:\CLONE\cloneora\8.0.6\FORMS60\java.
    [ACTION] Please configure the following virtual path with your web listener: /dev60html for
    physical directory D:\CLONE\cloneora\8.0.6\tools\web60\html.
    [ACTION] Please configure the following virtual path with your web listener: /dev60cgi for
    physical directory D:\CLONE\cloneora\8.0.6\tools\web60\cgi.
    [INFO] An internet shortcut to run a standard test form, or any form of your choice, has been
    created for you in the Oracle Forms program group.
    [ACTION] Please configure the following virtual path with your web listener: /jinitiator for
    physical directory D:\CLONE\cloneora\8.0.6\JINIT.Please make sure you source the application env file before applying this patch, and select 8.0.6 ORACLE_HOME.
    Thanks,
    Hussein

  • OAS Cartrige Configuration of Virtual Path

    I Write a Configuration file for a PLSQL Application and Cartridge
    I have a Virtual path for Images in the PLSQL Cartridge how I could put it in the Configuration file I tried:
    1- [siteparams cartx.$APP$.AppCartx.$CARTX$.AppCartxConf.AppCartxConfVP]
    Images = %ORACLE_HOME%\..\Labbaik_Site\Images
    2- [appsmap /Images]
    Images = %ORACLE_HOME%\..\Labbaik_Site\Images
    3- [dirmap /Images]
    Images = %ORACLE_HOME%\..\Labbaik_Site\Images
    but it did'nt work
    null

    Why You don't use admin program at http://<your site>:8888
    It's a little bit easier

  • Configuring virtual path in Forms6i

    Hello Friends,
    I have the following instruction in forms6iconfig file
    [ACTION] Please configure the following virtual path with your web listener : /dev60temp for physical directory c:\Forms\tools\web60\temp
    How can I configure a virtual path in Forms6i manually after installation.
    thanks

    Virtual paths are configured in the Apache settings file httpd.conf.

  • Sun one 6.0sp8, problem_virtual-path-translation, init(ServletConfig=NULL))

    When I use a Servlet in "Virtual Path Translation" with @.* to manage all request, the ServletConfig passed in Init() method is NULL!!!
    Can somebody helpme??
    Thanks

    When I use a Servlet in "Virtual Path Translation" with @.* to manage all request, the ServletConfig passed in Init() method is NULL!!!
    Can somebody helpme??
    Thanks

  • Virtual paths

    Hello,
    I have installed Oracle Internet Application server and Oracle 8i database. I am trying to run the test.fmx form and get bad request error. I can only assume that I have not set up the virtual paths.
    I don't quite understand what file I write these virtual paths to. Any help would be greatly appreciated as I am very new to this software.
    Thanks.
    Sue

    Thanks for your response. All things that you mentioned are correct. The forms server is running and the form test.fmx is in the forms60_path.
    I read that you needed to configure the virtual paths in the listener and this is where I am confused.
    I am running Oracle IAS 9i and oracle database 8i. The documentation for OAS is slightly different with the webdb listener. I don't think OIAS uses the webdb listener and configures another listener. Am I correct about this?
    Thanks for your help, this is very confusing to me and frustrating when I can't get the test.fmx to display in the browser.
    Sue

  • [ACTION] Please configure the following virtual path with your web listener: /jinitia

    Hi Guys,
    Would kindly suggest me. How to solve this following setting? From the documentation, I could not understand, which file or where should I do the following configuration.
    [ACTION] Please configure the following virtual path with your web listener: /dev60temp for
    physical directory C:\ORACLE\iSuites\tools\web60\temp.
    [ACTION] Please configure the following virtual path with your web listener: /forms60java for
    physical directory C:\ORACLE\iSuites\FORMS60\java.
    [ACTION] Please configure the following virtual path with your web listener: /dev60html for
    physical directory C:\ORACLE\iSuites\tools\web60\html.
    [ACTION] Please configure the following virtual path with your web listener: /dev60cgi for
    physical directory C:\ORACLE\iSuites\tools\web60\cgi.
    [ACTION] Please configure the following virtual path with your web listener: /jinitiator for
    physical directory C:\ORACLE\iSuites\JINIT
    I appreciate your information and help.
    Thanks,
    Amit

    Hi,
    while applying developer 6i patch ( 61954129 ) i got following error which says configure the following virtual path for your web listener
    following is the output of forms6iconfig.txt file which oracale suggest to check
    Do you mean (Patch 6194129)? How do you get this error? Is it at the beginning or the end of the installation?
    Configuration Steps for Oracle Forms installation of 06:21:33 2010/12/01
    This file gives details of the configuration steps done for you by the installation process
    (marked '[INFO]') and of any actions you need to do manually (marked '[ACTION]'). Please read
    this file and perform the requested actions.
    [ACTION] If you are installing in a new Oracle Home, please reboot the machine after the installation.
    [ACTION] Please configure the following virtual path with your web listener: /dev60temp for
    physical directory D:\CLONE\cloneora\8.0.6\tools\web60\temp.
    [INFO] NT service Oracle Forms Server [Forms60Server] has been created and started for
    the Forms Server.
    [ACTION] Please configure the following virtual path with your web listener: /forms60java for
    physical directory D:\CLONE\cloneora\8.0.6\FORMS60\java.
    [ACTION] Please configure the following virtual path with your web listener: /dev60html for
    physical directory D:\CLONE\cloneora\8.0.6\tools\web60\html.
    [ACTION] Please configure the following virtual path with your web listener: /dev60cgi for
    physical directory D:\CLONE\cloneora\8.0.6\tools\web60\cgi.
    [INFO] An internet shortcut to run a standard test form, or any form of your choice, has been
    created for you in the Oracle Forms program group.
    [ACTION] Please configure the following virtual path with your web listener: /jinitiator for
    physical directory D:\CLONE\cloneora\8.0.6\JINIT.Please make sure you source the application env file before applying this patch, and select 8.0.6 ORACLE_HOME.
    Thanks,
    Hussein

  • Configure virtual path mapping for forms 11.1.2

    Hi
    How to configure virtual path mapping for "Oracle Fusion Middleware Forms and reports 11gR2 (11.1.2.0.0)" on my client?
    Configuration type = development.
    In forms 10g I configure it in "orion-web.xml".
    C:\oracle\ids\j2ee\DevSuite\application-deployments\forms\formsweb\orion-web.xml
    Regards
    Tobias

    If you use the development mode install in 11.1.2 I think you cannot use the "forms.conf" approach because you don't have an OHS installed.
    We've used the approach described in the following metalink document (solution no. 1) which works with deployment as well as development installations. Tested on 11.1.1.4 and 11.1.2.
    How to Create Virtual Mappings in Forms 11g [ID 1063043.1]
    (essentially you extend the WebLogic deployment plan for the formsapp to include the additional mappings and then redeploy the formsapp in WebLogic)
    Regards
    Andreas
    Edited by: Andreas Leidner on Dec 7, 2011 1:45 PM

  • 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

  • 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!

  • 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

  • (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));

  • 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

  • Can I add a Pages document to an iPhoto journal?

    I have created an iPhoto journal from photos taken at my high school graduation. Can I add a Pages document listing our deceased classmates to this journal?

  • Rooms are not showing up in the dropdown list unders MY ROOMS

    HI, I created a new room and assigned couple of users and assigned myself as owner to that room. When i go under euRole --> My Rooms --> "No Rooms Available" message is displayed. Even i pressed FILTER button with selection criteria, its not showing

  • Date condition in IR

    Hi, Iam working on IR 11 version. There is a scenario in writing a query where i need to calculate the values for example actual==previous-current for current::: iam using date function between '01-01-08 to 06-06-08'(current) by this iam getting curr

  • Turn off auto scale in XY graph when zooming?

    Hi! I have a xy graph with 3 graphs and 3 scales. Whenever I zoom in and then go back to "full view" one of my scales switches from a fixed scale to autoscale. The others stay fixed. Anyone knows what this could be? bye hmann

  • Terminal 2.0.1 split screen icon ?

    Hi Guys, With Terminal 2.0.1 we now have tabs in the Terminal window. A feature that has been in Linux for years now is available in OSX. Great improvement ! But what seems to have disappeared is the split screen icon. Has that been removed, or am I