Headstart using Forms servlet implementation

I'm trying to configure forms server with headstart 6.5 using the servlet implementation. Almost everything is working fine, except one detail.
The formsweb.cfg file has "%HSD65_HOME%" values (e.g. the term tag), which must be substituted by the value in the registry. When using CGI, the substitution is made. The servlet implementation results into a substitution of "".
Can anyone explain why this isn't working (bug)?
Thanx,
Patrick van der Schot

Peter,
I've tried both suggestions. They didn't work. Reading windows registry values is not supported in the standard Java libary because it's not portable. There are native methods like the implementation JAWIN, an open-source project for interop between Java and Win32 (http://staff.develop.com/halloway/JavaTools.html). Putting the HSD65_HOME setting in the configuration files of the webserver doen't work either.
I've used a workaround to get things working. I've substituted the full path into the term tag instead of using term=%HSD65_HOME%/hst/admin/qmsrf65w.res.
Don't forget to change the FormsServlet.InitArgs settings to use the corresponding headstart basejini.htm and hsdcgi65.cfg
For servlet implementations, the baseHTML, baseHTMLJInitiator, and baseHTMLIE
tags are replaced with the values specified in the FormsServlet.initArgs file!
Patrick van der Schot
null

Similar Messages

  • Help - using Form Servlet (6i)

    Hi All,
    been trying to configure the forms listener servlet based on the white paper.
    When I opened the http://myserver/servlet/f60servlet, it showed the following messages:
    "Oracle Forms 6i Servlets
    The Forms Listener servlet is up and running.
    The servlet administration page has been moved to"f60servlet/admin", where "f60servlet" is the alias you defined for the Forms Servlet (class oracle.forms.servlet.FormsServlet) ... etc.."
    Then, if I tried to open my simple application with only one form as follows:
    http://myserver/servlet/f60servlet?config=test
    the webpage still showed the above messages.
    Previously I could run this app using forms CGI: http://myserver/cgi-bin/ifcgi60.exe?config=test
    How to solve the problem?
    Thanks
    Rgds

    The code fragment below shows how to send a POST method to a servlet URL.
    Write down this code in ur first servlet. to post data to some servlet in other application
    // connect to the servlet
    String location = "http://www.foo.com/servlet/servlet2";
    URL testServlet = new URL( servletLocation );
    URLConnection servletConnection = testServlet.openConnection();
    // inform the connection that we will send output and accept input
    servletConnection.setDoInput(true);
    servletConnection.setDoOutput(true);
    // Don't use a cached version of URL connection.
    servletConnection.setUseCaches (false);
    servletConnection.setDefaultUseCaches (false);
    // Specify the content type that we will send binary data
    servletConnection.setRequestProperty
    ("Content-Type", "<insert favorite mime type>");
    // get input and output streams on servlet
    // send your data to the servlet
    Sudhir Nimavat

  • UNIX: problem running an DEV & QA environment using form/report servlets

    UNIX: problem running an DEV & QA environment using form/report servlets
    I am trying to setup on one server an DEV and QA environment using the Forms Servlet, Forms Listener Servlet and Report Servlet.
    I think I have the Forms Servlet and Forms Listener Servlet running properly. The problem is setting up the DEV and QA environment for running reports.
    For example, when in DEV environment I would like to run a report from a directory specified in the REPORTS60_PATH. This doesn't seem possible.
    It might be easier if I describe my configuration first:
    DEV: run all forms and reports from the directory /data/release/dev
    QA: run all forms and reports from the directory /data/release/qa
    ---DEV & QA Settings Forms Listener Servlet:
    zone.properties:
    # DEV
    servlet.fl60dev.code=oracle.forms.servlet.ListenerServlet
    servlet.fl60dev.initArgs=EnvFile=/u01/app/oracle/product/ias/6iserver/forms60/server/dev.env
    # QA
    servlet.fl60qa.code=oracle.forms.servlet.ListenerServlet
    servlet.fl60qa.initArgs=EnvFile=/u01/app/oracle/product/ias/6iserver/forms60/server/qa.env
    ---DEV & QA Settings Forms Servlet:
    servlet.f60servlet.code=oracle.forms.servlet.FormsServlet
    --- Settings for Reports Servlet:
    servlet.RWServlet.code=oracle.reports.rwcgi.RWServlet
    Custom Env files since we are using Developer 6i Patch 7
    dev.env and qa.env
    Here I specify FORMS60_PATH and REPORTS60_PATH,
    eg: DEV -> FORMS60_PATH=/data/release/dev
    REPORTS60_PATH=/data/release/dev
    likewise for QA ../qa
    In the formsweb.cfg file i have something like:
    [dev]
    serverURL=/servlet/fl60dev
    form=test.fmx
    [qa]
    serverURL=/servlet/fl60dev
    form=test2.fmx
    I have tested the following and they work without problems:
    1. forms listener test page, eg: http://webserver:7777/servlet/fl60dev
    2. running forms from the 2 environments
    eg: http://webserver:7777/servlet/f60servlet?config=dev
    this runs the form in the FORMS60_PATH (/data/release/dev)
    Now my problems start with Reports.
    When I run a report from forms (using run_report_object) it will not run any reports
    as specified in the REPORTS60_PATH
    Even using this url:
    http://webserver:7777/servlet/RWServlet?server=rep60&report=test.rdf&destype=cache&desformat=html&
    userid=scott/tiger@test9i
    It NEVER seems to pickup and use the REPORTS60_PATH. I have tried nearly everything.
    I have gone throught the instructions in "Integrating Oracle9iAS Reports in Oracle9iAS Forms -
    White Paper"
    (http://otn.oracle.com/products/forms/pdf/277282.pdf)
    and Forms6i Patch 7: Oracle Forms Listner Servlet for Deployment of FOrms on the Internet
    (http://otn.oracle.com/products/forms/pdf/p7listenerservlet.pdf)
    plus any other documents in metalink relating to forms, or report servlets. I am
    totally confused, please help.
    I have tried setting the REPORTS60_PATH in the following files without success:
    custom.env (as specified by initArgs=EnvFile in zone.properties)
    jserv.properties
    in the zone.properties I have tried to set a custom env file for the report servlet:
    servlet.RWServlet.code=oracle.reports.rwcgi.RWServlet
    servlet.RWServlet.initArgs=EnvFile=/u01/app/oracle/product/ias/6iserver/forms60/server/dev_rep.env
    NO LUCK.
    The only place that I can set the REPORTS60_PATH
    is in "[6iserver home]/reports60_server" file when I start the reports server (did I even
    get this right - I do have to have a reports server running don't I?)
    Does this meaan I have to run multiple report servers for each of my environments?
    Based on all the documentation I thought that REPORTS60_PATH as specified in the files relating
    to the forms servlet would be the place to specify the path.
    As you will understand I am getting really fustrated with this and it seems to
    me that the reports servlet configuration in 6i is really half baked and since 9i
    is coming out it will never be fixed.

    I am even not able to run forms servlets from two different forms60_path, Is there any configuration do you make other than what you have mentioned in this post.
    I already open a TAR in this regard, I am still waiting reply from ORACLE.
    Thanks,
    Shaik Ather Ahmed

  • Overriding implementation class property using forms personalization

    Hi,
    Is it possible to set the implementation class property of a button using forms personalization ? Am looking to change the look and feel with out having to modify the Form itself.
    Is this possible?
    Thanks!

    questions to Personalization are best asked in the ebs-forum
    General EBS Discussion

  • 9iAS using 9iDS Forms servlet

    On my single machine, I am not interested in installing the infrastructure. I have 9iDS installed and I can run my forms app through my 9iDS supplied OC4J, port 8888. No prob.
    I want a simple way to run SSL with my forms app. My idea is install 9iAS (HTTP server, J2EE option) and have it front end my OC4J to more easily (than making OC4J do ssl) accomplish this.
    Can this work? If so, what are my steps?
    I tried modifying my oracle_apache file to point to my 9iDS forms servlet with a line like
    #Forms Servlet
    include "c:\oracle_9i\forms90\server\forms90.conf"
    My 9iAS is in a separate oracle home.
    regards,
    tt

    Frank,
    the Business Intelligence and Forms requires the 9iAS Infrastructure. As I indicated, I do not (gave up after trying for 2 weeks to install) have or want the infrastructure.
    I understand that J2EE provides HTTP server capability, but the effort to configure SSL would be easier with 9iAS than dinking with the OC4J xml and configuring keys, etc.
    So, I have 9iAS (no infrastructure) and 9iDS on the same machine. I noticed that 9iDS uses port 8888 and default 9iAS uses 7777 base. I am still trying. I am going to try a virtual host for my apache to 9iDS.
    Oh, I did get 9iAS to create and manage my Oracle9iDS OC4J instance. Now the trick is actually executing through it. Then I will turn on SSL.
    SUGGESTIONS STILL WELCOME!!
    regards,
    tt

  • 9iLite Servlet Implementation

    Hi.
    We are currently developing an application using JDeveloper9i and 9iLite.
    When compiling our application using the JDeveloper9i, it runs perfectly.
    But when we try publishing our application using the Packaging Wizard, which was
    mentioned in the documentation, the problem arises. It displays this method..
    No such method error.
    oracle.jbo.mom.DefParser
    How does Oracle 9i Lite implement servlet application? Are there any other jar files needed
    in order to publish the application? And may I know their hierarchies for us to double check.
    Thanks.

    I work with Path7 of Forms and Forms Servlet.
    I don't have any problem for the time being with this.
    If you have some problem you warn me.
    Greetings

  • Problem with displaying BLOB images on JSP page using a servlet

    hi. I have a big problem with displaying BLOB images using JSP. I have a servlet that connects to the oracle database, gets a BLOB image , reads it, and then displays it using a BinaryStream. The problem is , this works only when i directly call that servlet, that is http://localhost:8080/ImageServlet. It doesn't work when i try to use that servlet to display my image on my JSP page (my JSP page displays only a broken-image icon ) I tried several coding approaches with my servlet (used both Blob and BLOB objects), and they work just fine as long as i display images explicitly using only the servlet.
    Here's what i use : ORACLE 10g XE , Eclipse 3.1.2, Tomcat 5.5.16 , JDK 1.5
    here is one of my image servlet's working versions (the essential part of it) :
                   BLOB blob=null;
              rset=st.executeQuery("SELECT * FROM IMAGES WHERE ID=1");
              while (rset.next())
                   blob=((OracleResultSet)rset).getBLOB(2);
              response.reset();
              response.setContentType("image/jpeg");
              response.addHeader("Content-Disposition","filename=42.jpeg");
                    ServletOutputStream ostr=response.getOutputStream();
                   InputStream istr=blob.getBinaryStream(1L);
                    int size=blob.getBufferSize();
              int len=-1;
                    byte[] buff = new byte[size];
                         while ((len=istr.read( buff ))!=-1 ) {
                   ostr.write(buff,0,len);
             response.flushBuffer();
             ostr.close(); and my JSP page code :
    <img src="/ImageServlet" border="0"  > If you could just tell me what i'm doing wrong here , or if you could show me your own solutions to that problem , i would be very greatful ,cos i'm realy stuck here , and i'm rather pressed for time too. Hope someone can help.

    I turns out that it wasn't that big of a problem after all. All i had to do was to take the above code and place it into another JSP page instead of into a servlet like i did before. Then i just used that page as a source for my IMG tag in my first JSP. It works perfectly well. Why this doesn't work for servlets i still don't know, but it's not a problem form me anymore . Ofcourse if someone knows the answer , go ahead and write. I would still appriceatte it.
    here's the magic tag : <img src="ImageJSP.jsp" border="0"  > enjoy : )

  • What is the minimal number of open ports needed to use forms apps

    Hi,
    Our network administrators are doing a network segmentation / security project and they want to make it so that only authorized users can ping or see my oracle EBS server on the network, but they also want to lock down all ports that users can see, except for port 8000, which is the port we use to serve EBS on apache. I am having an argument with them. Because we use forms in socket mode, I am arguing that we need to keep all ports open because forms uses a port range and creates a socket with the users's PC in addition to holding/maintaining the Apache connection. My network administrator is saying no, it holds the socket connection in the background and they only need "access" to port 8000. I would agree with them if I was using servlet mode, but I don't think they are correct in socket mode. What port range do I need to make sure they allow through in addition to port 8000? BTW we use all the standard ports in EBS (eg 8000 is the out-of-the-box Apache port). Note also we have have single tier 11.5.10.2 installation on a solaris sparc server, so the ports that the 11i apps needs to interact / connect with itself is not relevant to the question. Also, the IT group (me) will still have access to all ports to do telnet, ssh, ping etc, we are only talking about from our end users's PCs. They are telling me to install Wireshark to find out more, and do some testing which I will - but I want to know what to expect.
    Thanks Marv

    Hussein,
    Ok I have read the above documentation extensively. One thing that is quite clear is that if I switched to servlet mode, then all traffic goes through the Apache port (in my case 8000) and that would be the only port users need access too -- and this would be like setting up a DMZ or firewall inside the intranet. However, given that I am having performance issues, I need to know how to do this using forms in socket mode.
    So for example in MOS 414439.1 it lists the entire ports and port pools. So I've taken that list, and separated it into groups One and Two (see below). My question is: To access EBS in the intranet by users, which of the ports in Group One is needed? And are all of the ports in group Two NOT needed? thanks in advance. Marv.
    Group One of Port Pool
    Web Listener Port s_webport      8000 ---> this is needed for sure.
    Forms Listener Port s_formsport 9000 -------> this seems to be needed for sure.
    Forms Servlet Port Range      s_forms_servlet_portrange      18000-18009 --> is this needed in socket mode?
    Forms Start Port      s_frmStartPort      20000 --> is this needed?
    Group Two of Port Pool - I believe that users do not need to have access to these ports for EBS, even
    in forms socket mode..
    Database Port      s_dbport      1521      
    RPC Port      s_rpcport      1626      
    Reports Port      s_repsport      7000      
    OPROC Manager Port      s_oprocmgr_port      8100
    Web PLSQL Port      s_webport_pls      8200
    Servlet Port      s_servletport      8800      
    Metrics Server Data Port      s_metdataport      9100      
    Metrics Server Req. Port      s_metreqport      9200
    JTF Fulfillment Server Port      s_jtfuf_port      9300      
    iMeeting Collaboration Server Port      s_imtsrvport      9500      
    iMeeting Recording Server Port      s_imtrecport      9600      
    iMeeting Monitor (iMon) Port      s_imtimonport      9700      
    Map Viewer Servlet Port      s_mapviewer_port      9800      
    OEM Web Utility Port      s_oemweb_port      10000
    VisiBroker OrbServer Agent Port      s_osagent_port      10100      
    MSCA Server Port      s_mwaPortNo      10200      
    MSCA Dispatcher Port      s_mwaDispatcherPort      10300      
    TCF Port      s_tcfport      15000      
    OACORE Servle Port Range      s_oacore_servlet_portrange      16000-16009      
    Discoverer Servlet Port Range      s_disco_servlet_portrange      17000-17009           
    XMLSVCS Servlet Port Range      s_xmlsvcs_servlet_portrange      19000-19009      
    Java Object Cache Port      s_java_object_cache_port      12345      
    -- end of port pool list--

  • Calling web service in Oracle Applications using Forms....

    Can I call a web service in Oracle Appications 11.5.10?
    I created a simple form on my local machine and invoked the webservice in that form and it works perfectly. I used Oracle forms 9i and 6i for this purpose and both are working perfectly.
    But when I created the same form on the UNIX server and imported the Java Class and placed that form in Oracle Applications and tried to invoke the web service it is not working.
    I am using Forms 6i for creating the form in Oracle Applications.
    Are there any other factors that I am neglecting?
    Any help is highly appreciated.
    Thanks.........

    Hi,
    could you please explain here the detailed steps (with code example if it's possible) to invoke a webservice from Oracle Applications?.. how did yo do it...?
    I've read differents posts here and the 33097.1 metalink note (by the way, the first recommended link in this note is broken...), but there are lots of theorical concepts and no real examples to see how/from where invoke the WS
    I'll have to call one webservice (I suppose the customer will give me the interface implementation)...but I've never did it with Applications so that's why I ask you for all the detailed steps...
    I work with Forms 6i, Apps 11.5.10.2 and DB 9.2.0.7.
    Thanks a lot.
    Jose.

  • Error while generating .plx from .pll using Forms 4.5 Generator

    I get frm-30312 error while trying to generate .plx from .pll
    using Forms 4.5 Generator. I have both Oracle 8i and Oracle 7 on
    my computer. I work under Windows 2000 with Service Pack 1.
    Could anyone help my with this bug? Forms 6i Compiler generates
    .plx but Forms 4.5 Generator fails.
    frm-30312 "Could not compile library."
    Raimundas

    Hi Kuldeep,
    The WSDLC task which you are using in WLS8.1 ehich is not correct..."weblogic.wsee.tools.anttasks.WsdlcTask" The above taskDef is present WLS9.x Onwards.
    Please use the following Task for WLS8.1 (http://download-llnw.oracle.com/docs/cd/E11035_01/wls100/webserv_ref/anttasks.html#wp1075710)
    <wsdl2service
    wsdl="wsdls/myService.wsdl"
    destDir="myService/implementation"
    packageName="example.ws2j.service"/>
    Thanks
    Jay Sensharma
    http://jaysensharma.wordpress.com/webservices/ (WebLogic Wonders Are Here)
    Edited by: Jay SenSharma on Feb 16, 2010 1:30 PM

  • Using FORM ENDFORM in ABAP OO

    Hi,
    I wrote the code like this .I am trying to use FORM which is defined in Report programm,But I am always getting error
    message "Error at parameter 2 ":what change should i do for this. earlier I used the same code  in ABAP ( not ABAP OO) it was working.
    First Programm :
    DATA : l_t_OTIFARR TYPE STANDARD TABLE OF /bic/aYO_SID0100,
                w_table_to_be_read(30) type c.
    w_table_to_be_read = '/bic/aYO_SID0100'.
      perform READ_ODS in program YBW1_OTIF__SI_INCLUDES
        tables SOURCE_PACKAGE
               l_t_OTIFARR
               using w_table_to_be_read.
    ****** REPPORT with FORM Definition
    REPORT  YBW1_OTIF__SI_INCLUDES.
    FORM READ_ODS
         TABLES SOURCE_PACKAGE structure /BIC/CS8YO_IGORD
                l_t_ODS type TABLE
          USING TABLE_TO_BE_READ TYPE C.
      refresh l_t_ODS.
      select * from (TABLE_TO_BE_READ) into table l_t_ODS
         for all entries in SOURCE_PACKAGE
       where /bic/ynv_order = SOURCE_PACKAGE-/bic/ynv_order.
    ENDFORM.
    Titled modified and code tags added by: kishan P on Oct 22, 2010 10:47 AM

    I was wrong about the parameters not working. I didn't spot the TYPE keyword.
    I've tested the idea that it's an OO problem, and still can't see that it is. With the following, I get no problem.
    data : l_t_otifarr type standard table of t100,
                w_table_to_be_read(30) type c.
    data: source_package type standard table of t000.
    *       CLASS tst DEFINITION
    class tst definition.
      public section.
        class-methods: main.
    endclass.                    "tst DEFINITION
    *       CLASS tst IMPLEMENTATION
    class tst implementation.
      method main.
        select * from t100 up to 10 rows into table l_t_otifarr.
        w_table_to_be_read = 'T100'.
        perform read_ods in program ymabitest1
          tables source_package
                 l_t_otifarr
                 using w_table_to_be_read.
      endmethod.                    "main
    endclass.                    "tst IMPLEMENTATION
    start-of-selection.
      tst=>main( ).
    YMABITEST1.
    *&      Form  READ_ODS
    *       text
    *      -->SOURCE_PACKAGE    text
    *      -->L_T_ODS           text
    *      -->TABLE_TO_BE_READ  text
    form read_ods
         tables source_package structure t100
                l_t_ods type table
          using table_to_be_read type c.
    endform.
    Edited by: Matt on Oct 22, 2010 4:57 PM

  • How to use a servlet in a Workflow process step.

    Hi
    I need am upgrading existing code from cq 5.4 to CQ 5.5.
    The exsiting code uses a servlet with an injected @MailService reference to send emails. It is currently used as a process step service.
    However, with CQ 5.5 I see that I need to implement the WorkFlowProcess interface, to see this class listed as in the Process step drop down list.
    The issue I have is if I keep the class as a Servlet extension , it does not show up in the drop down list of the process step.
    Is there a way to update the code to list this servlet as a process step?
    Or is there a way to inject the MailService reference into a class which only implements the "WorkflowProcess" interface and is not a servlet ?
    advice appreciated.
    thanks
    Ven

    The implementation of WorkflowProcess is to be deployed as an OSGi service, so you can @Reference the MailService in that class.
    http://dev.day.com/docs/en/cq/current/workflows/wf-extending.html#Defining a Process Step with a Java Class
    scott

  • Should I use a servlet? - please help

    Hi,
    This is my problem:
    I have a class (say, DBClass) that connects to the database - it has general functions for insertion, updation, and deletion.
    I have some other classes that use the DBClass to perform insert, update, delete operations on different tables.(e.g., User.java is the class that uses DBClass to add users to the UserMaster table)
    Now, I have a JSP that has a form (to accept user information). Is it right in instaniate a User object in the jsp itself, and call the addUser method (which will use the 'insert' method in DBClass and add it to the database), or will it be right to post the data to a servlet, and do the whole thing there?
    Which is the right way to do it?
    Please help. I am new to the JSP technology..
    Thank you,
    sangita

    Hi sangita,
    It is always recommended that for insertion in the database, u should use a Servlet and for retrieval of data, u should use a Java bean. U can write a DBClass, where u will write one method for returning the database connection and another for closing the connection. These methods u can access from your servlet as well as your bean.
    Hope it will help. Let me know.
    atanu

  • How to capture OK / Cancel Button response of warning type message in EBS D2K form using Form personalization

    Hi Experts
    We are working on one requirement in which on a standard D2K EBS form based on the response of a warning message we need to perform certain actions using Form Personalization.
    The problem is that we are not able to capture response of OK and Cancel buttons of the warning.
    If any one has come across such scenario, I would request to please share your valuable suggestions. 2898414
    Thank You
    Regards
    Mirza Tanzeel

    Figured out myself that this is mot possible using Form Personalization.
    Only option possible is to try implementing by modifying custom.pll
    Thanks
    Mirza Tanzeel

  • Using weblogic.servlet.security.ServletAuthentication

    I am currently using weblogic.servlet.security.ServletAuthentication.authenticate(Callback,
    request) to peform a weblogic form-based authentication/login and would like to
    see the session stored user info....
    The doc for authenticate states that a session will be created, but does this
    method also place user information into the session [after authentication]. If
    so, how exactly do I get the default user information stored in the session after
    this call?
    Is there a String title associated with the user info so that I can use getAttribute(String)?
    Using session.getAttributeNames(), I can see that the session has a "sessionContext"
    and "org.apache.struts.action.LOCALE". Is there a way I can user/parse these objects
    for the user information. Your help is very much appreciated, thanks!

    I think we have most of the functionality you've asked for.
    ServletAuthentication.runAs() associates a Subject with the session.
    weblogic.security.services.Authentication.authenticate() creates a Subject.
    ServletAuthentication.authenticate() is merely a convenience wrapper around
    these two methods. That is, it creates a CallbackHandler from the request,
    calls authenticate() and then calls runAs(). So, in answer to your question,
    yes, ServletAuthentication.authenticate() does associate the Subject with
    the current session.
    There is no direct way of getting the Subject associated with a session but
    we can give you the current Subject which is almost always the same thing
    (if you have a run-as tag the current Subject may be different than the one
    associated with the session). To get the current Subject call
    weblogic.security.Security.getCurrentSubject().
    - Neil
    "Richard " <[email protected]> wrote in message
    news:4002e8a6$[email protected]..
    >
    I am currently usingweblogic.servlet.security.ServletAuthentication.authenticate(Callback,
    request) to peform a weblogic form-based authentication/login and wouldlike to
    see the session stored user info....
    The doc for authenticate states that a session will be created, but doesthis
    method also place user information into the session [afterauthentication]. If
    so, how exactly do I get the default user information stored in thesession after
    this call?
    Is there a String title associated with the user info so that I can usegetAttribute(String)?
    >
    Using session.getAttributeNames(), I can see that the session has a"sessionContext"
    and "org.apache.struts.action.LOCALE". Is there a way I can user/parsethese objects
    for the user information. Your help is very much appreciated, thanks!

Maybe you are looking for