Debugging forms servlet

Hi
Can someone tell me how to turn on debugging on the middleware for forms 10g?
In 9i, you added &serverURL=/forms90/l90servlet/debug to the end of the url.

Added &serverURL=/forms/lservlet/debug and this to works.

Similar Messages

  • Casting problems getting a home I/F of an EJB in another app when debuging a servlet

    (Jdeveloper version = 9.0.2.798, OC4J Application Server version = Oracle9iAS (9.0.2.0.0))
    I am trying to debug a multi-tier application using the embedded application server. Servlets and EJBs within that application need to call EJBs contained within a second application (Horus).
    I have set up the embedded application server to run this second application automatically by adding the following entry into its server.xml
    <application auto-start="true" name="Horus" path="M:\Studio\build\production\java\Server\Obfuscate\J2EE_HOME\Horus\Horus.xml"/>
    I then start the embedded application server by debugging my servlet project, 'intermediateServlet'. I know the second application is running correctly in the embedded application server because I can access it from a separate client.
    In the 'intermediateServlet', I want to obtain a reference to a Dispatcher EJB held in the Horus application. This EJB has the following properties
         ejb-name     = com.internal.server.Dispatcher
         home interface     = com.internal.server.DispatcherHome
         bean class     = com.internal.server.DispatcherEJB
         remote interface= com.internal.server.Dispatcher
    The following code is executed during the container's call to my servlet init( context ) method to try and get the appropriate home interface.
    Context context = null;
    Object tempRemoteIF1 = null;
    Object tempRemoteIF2 = null;
    Properties h = null;
    h = new Properties();
    h.put( Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory" );
    h.put( Context.PROVIDER_URL, "ormi://127.0.0.1:23891/Horus");
    h.put( Context.SECURITY_PRINCIPAL, "user0" );
    h.put( Context.SECURITY_CREDENTIALS, "password" );
    context = new InitialContext (h);
    tempRemoteIF1 = context.lookup( "com.internal.server.Dispatcher" );
    tempRemoteIF2 = javax.rmi.PortableRemoteObject.narrow
    tempRemoteIF1,
    Class.forName( "com.internal.server.DispatcherHome" )
    The context.lookup call seems to work fine, returning an object of the class
         DispatcherHome_StatelessSessionHomeWrapper5
    Which I presume is a containter generated class implementing the home interface. To help confirm this,
    the object has a property beanName that has the value "com.internal.server.Dispatcher".
    The problem occurs on the next line, when I check whether I can cast the object to the home interface using ProtableRemoteObject.narrow(). This gives the following exception.
    java.lang.ClassCastException
         java.lang.Object com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(java.lang.Object, java.lang.Class)
              PortableRemoteObject.java:296
         java.lang.Object javax.rmi.PortableRemoteObject.narrow(java.lang.Object, java.lang.Class)
              PortableRemoteObject.java:137
         com.internal.server.Dispatcher com.Studio.servlet.intermediateServlet.getDispatcherRef(java.lang.String, java.lang.String, java.lang.String)
              intermediateServlet.java:601
         void com.Studio.servlet.intermediateServlet.init(javax.servlet.ServletConfig)
              intermediateServlet.java:150
         com.evermind.server.http.ServletInstanceInfo com.evermind.server.http.HttpApplication.loadServlet(com.evermind.util.ByteString)
              HttpApplication.java:1669
         com.evermind.server.http.ServletInstanceInfo com.evermind.server.http.HttpApplication.findServlet(com.evermind.util.ByteString)
              HttpApplication.java:4001
         javax.servlet.RequestDispatcher com.evermind.server.http.HttpApplication.getRequestDispatcher(com.evermind.util.ByteString, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse)
              HttpApplication.java:2200
         boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
              HttpRequestHandler.java:580
         void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
              HttpRequestHandler.java:243
         void com.evermind.util.ThreadPoolThread.run()
              ThreadPoolThread.java:62
    Interestingly, if I use practically the same code, to obtain the home interface of an EJB that is defined in the application that I am debugging, the cast works perfectly. The returned object looks identical, apart from the name to the DispatcherHome_StatelessSessionHomeWrapper5 mentioned above.
    Could the error possibly be because I need to declare 'Horus' as a parent application of the application I am debugging? If it is how do I do this?
    Many thanks in advance for any help with this one.
    Mark.

    (Jdeveloper version = 9.0.2.798, OC4J Application Server version = Oracle9iAS (9.0.2.0.0))
    I am trying to debug a multi-tier application using the embedded application server. Servlets and EJBs within that application need to call EJBs contained within a second application (Horus).
    I have set up the embedded application server to run this second application automatically by adding the following entry into its server.xml
    <application auto-start="true" name="Horus" path="M:\Studio\build\production\java\Server\Obfuscate\J2EE_HOME\Horus\Horus.xml"/>
    I then start the embedded application server by debugging my servlet project, 'intermediateServlet'. I know the second application is running correctly in the embedded application server because I can access it from a separate client.
    In the 'intermediateServlet', I want to obtain a reference to a Dispatcher EJB held in the Horus application. This EJB has the following properties
         ejb-name     = com.internal.server.Dispatcher
         home interface     = com.internal.server.DispatcherHome
         bean class     = com.internal.server.DispatcherEJB
         remote interface= com.internal.server.Dispatcher
    The following code is executed during the container's call to my servlet init( context ) method to try and get the appropriate home interface.
    Context context = null;
    Object tempRemoteIF1 = null;
    Object tempRemoteIF2 = null;
    Properties h = null;
    h = new Properties();
    h.put( Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory" );
    h.put( Context.PROVIDER_URL, "ormi://127.0.0.1:23891/Horus");
    h.put( Context.SECURITY_PRINCIPAL, "user0" );
    h.put( Context.SECURITY_CREDENTIALS, "password" );
    context = new InitialContext (h);
    tempRemoteIF1 = context.lookup( "com.internal.server.Dispatcher" );
    tempRemoteIF2 = javax.rmi.PortableRemoteObject.narrow
    tempRemoteIF1,
    Class.forName( "com.internal.server.DispatcherHome" )
    The context.lookup call seems to work fine, returning an object of the class
         DispatcherHome_StatelessSessionHomeWrapper5
    Which I presume is a containter generated class implementing the home interface. To help confirm this,
    the object has a property beanName that has the value "com.internal.server.Dispatcher".
    The problem occurs on the next line, when I check whether I can cast the object to the home interface using ProtableRemoteObject.narrow(). This gives the following exception.
    java.lang.ClassCastException
         java.lang.Object com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(java.lang.Object, java.lang.Class)
              PortableRemoteObject.java:296
         java.lang.Object javax.rmi.PortableRemoteObject.narrow(java.lang.Object, java.lang.Class)
              PortableRemoteObject.java:137
         com.internal.server.Dispatcher com.Studio.servlet.intermediateServlet.getDispatcherRef(java.lang.String, java.lang.String, java.lang.String)
              intermediateServlet.java:601
         void com.Studio.servlet.intermediateServlet.init(javax.servlet.ServletConfig)
              intermediateServlet.java:150
         com.evermind.server.http.ServletInstanceInfo com.evermind.server.http.HttpApplication.loadServlet(com.evermind.util.ByteString)
              HttpApplication.java:1669
         com.evermind.server.http.ServletInstanceInfo com.evermind.server.http.HttpApplication.findServlet(com.evermind.util.ByteString)
              HttpApplication.java:4001
         javax.servlet.RequestDispatcher com.evermind.server.http.HttpApplication.getRequestDispatcher(com.evermind.util.ByteString, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse)
              HttpApplication.java:2200
         boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
              HttpRequestHandler.java:580
         void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
              HttpRequestHandler.java:243
         void com.evermind.util.ThreadPoolThread.run()
              ThreadPoolThread.java:62
    Interestingly, if I use practically the same code, to obtain the home interface of an EJB that is defined in the application that I am debugging, the cast works perfectly. The returned object looks identical, apart from the name to the DispatcherHome_StatelessSessionHomeWrapper5 mentioned above.
    Could the error possibly be because I need to declare 'Horus' as a parent application of the application I am debugging? If it is how do I do this?
    Many thanks in advance for any help with this one.
    Mark. Try loading the home interface from the same classloader used to load the the returned home object.
    tempRemoteIF2 = javax.rmi.PortableRemoteObject.narrow
    ( tempRemoteIF1,
    tempRemoteIF1.getClass().getClassLoader().loadClass("com.internal.server.DispatcherHome" )
    Dhiraj

  • 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

  • Debug a servlet

    Is my understanding correct you cannot debug a servlet in weblogic8.1 - or am I
    suffering from finger trouble?
    I have a servlet with breakpoints that are never actioned - even though I know
    I executing the code, I can edit, build and change its behaviour - but the breakpoints
    are ignored!
    If a project contains a runnable object like a xxx.jws file the debugger launches
    as expected.
    John

    You might try connecting to your running server with a standard JPDA debugger like
    NetBeans or Eclipse, with a project pointing to your source code. That works
    fine for me. I'm assuming by implication that you're trying to use WebLogic Workshop
    to do this.
    "john" <[email protected]> wrote:
    >
    Is my understanding correct you cannot debug a servlet in weblogic8.1
    - or am I
    suffering from finger trouble?
    I have a servlet with breakpoints that are never actioned - even though
    I know
    I executing the code, I can edit, build and change its behaviour - but
    the breakpoints
    are ignored!
    If a project contains a runnable object like a xxx.jws file the debugger
    launches
    as expected.
    John

  • FRM-92052 error... unable to connect to server URL /forms/servlet;

    Hi all.
    I'm on forms 11g 11.1.2.1.0
    I'm configuring my form and when I try to run it I have this error:
    FRM-92052: unable to connect to server at URL /forms/servlet;
    I have start up weblogic server and everything is ok.
    When I try to run my form I have the error.
    How can I solve it?
    Thanks all for collaboration,
    Fabrizio

    I open my log file and I copy here error section:
    java.lang.NoSuchMethodError: oracle/forms/net/ConnectionException.<init>(ILjava/lang/String;Ljava/lang/Throwable;)V
         at oracle.forms.servlet.BaseServlet.getConnectionException(Unknown Source)
         at oracle.forms.servlet.BaseServlet.logException(Unknown Source)
         at oracle.forms.servlet.ListenerServlet$Request.getRunformSession(Unknown Source)
         at oracle.forms.servlet.ListenerServlet$Request.getInfo(Unknown Source)
         at oracle.forms.servlet.ListenerServlet$Request.doGet(Unknown Source)
         at oracle.forms.servlet.ListenerServlet$Request.access$100(Unknown Source)
         at oracle.forms.servlet.ListenerServlet.doGet(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >
    ####<5-feb-2013 14.42.40 CET> <Notice> <Diagnostics> <missuri377> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <2e61ea05cba29510:6243aa29:13caa961585:-8000-0000000000000024> <1360071760720> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'AdminServer' has triggered at 5-feb-2013 14.42.40 CET. Notification details:
    WatchRuleType: Log
    WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
    WatchData: DATE = 5-feb-2013 14.42.40 CET SERVER = AdminServer MESSAGE = [ServletContext@6140131[app:formsapp module:forms path:/forms spec-version:2.5 version:11.1.2]] Root cause of ServletException.
    java.lang.NoSuchMethodError: oracle/forms/net/ConnectionException.<init>(ILjava/lang/String;Ljava/lang/Throwable;)V
         at oracle.forms.servlet.BaseServlet.getConnectionException(Unknown Source)
         at oracle.forms.servlet.BaseServlet.logException(Unknown Source)
         at oracle.forms.servlet.ListenerServlet$Request.getRunformSession(Unknown Source)
         at oracle.forms.servlet.ListenerServlet$Request.getInfo(Unknown Source)
         at oracle.forms.servlet.ListenerServlet$Request.doGet(Unknown Source)
         at oracle.forms.servlet.ListenerServlet$Request.access$100(Unknown Source)
         at oracle.forms.servlet.ListenerServlet.doGet(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101017 MACHINE = missuri377 TXID = CONTEXTID = 2e61ea05cba29510:6243aa29:13caa961585:-8000-0000000000000022 TIMESTAMP = 1360071760564
    WatchAlarmType: AutomaticReset
    WatchAlarmResetPeriod: 30000
    >
    How can I solve my problem?
    Thanks all for collaboration,
    Fabrizio

  • Debug form builder

    Using Forms 6.0.8.28.0 on WinXP to develop custom forms. Compiling process gives error on all database objects or just hangs on some larger forms which before compiled without any problems. All database objects are valid. SQL Network connection is unchanged (Compiler works with forms 9i builder).
    how can we debug form builder

    jemar98 wrote:
    Using Forms 6.0.8.28.0 on WinXP to develop custom forms. Compiling process gives error on all database objects or just hangs on some larger forms which before compiled without any problems. All database objects are valid. SQL Network connection is unchanged (Compiler works with forms 9i builder).
    how can we debug form builderDo you have FMX file with FMB file in Folder. Or Try to rename Form and recompile it.

  • How call Forms servlet after installation

    I have ORacle EE 8.1.7.1 and Forms 6i Patch 6 installed on the same computer. So after installation and some custom setting. I try with this link and I see the test page: http://server/servlet/oracle.forms.servlet.ListenerServlet?config=servlet
    All work fine. But my question is what is the url I need to enter to run my forms (in servlet).
    Tanks you.
    Francois

    I think what you are looking for is: http://your_server/servlet/f60servlet?config=blah
    Have you read the whitepaper on the Forms Listener Servlet? It may help with other questions you come across. http://technet.oracle.com/doc.pdf/forms/p5_listenerservlet.pdf
    Regards,
    Candace Stover
    Forms Product Management

  • 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

  • Host a custom form on E-Business Suite Forms Servlet

    Hi.
    Is it possible to host my own form using the Forms engine integrated with E-Business Suite?. is this a good idea? or do i have to setup another forms servlet?
    I'm trying it with one form with a menu. I just Copied the mmx files and fmx files where all the fmx files of EBS suite reside. or do i need to recompile it inside linux forms compiler (adadmin) using .pll plx, fmb files?
    I manually type the url "domainname.com:8000/dev60cgi/f60cgi?formname.mmx?user=username?password=password"
    where user, password = database user (not apps user)
    when i did this, it still launched the applet but still goes to the main form of EBS? and the custom form doesn't get called..
    regards,
    anton

    I think you can do it.
    Should look in appsweb.cfg configuration file. usaually in $COMMON_TOP/html/bin
    ; 1) Runform Arguments
    ; The module argument defines the first form to be started.
    ; It is composed from parameters %prodTop%/forms/%lang%/%formName%
    ; The default looks like $APPL_TOP/fnd/<version>/forms/US/FNDSCSGN
    ; Following parameters and prodTop are used for composing module.
    ; Note: Personal Home Page modifies the lang setting automatically.
    formName=FNDSCSGN
    lang=US
    Forms servlet is just a mechanism to start the f60webmx processes on the application server (which also has the Forms listener servlet). So you will not need a seperate servlet in your case.
    HTH
    Bansi

  • Is it possible to secure Forms Servlet with a realm/jazn/jaas???

    Hi,
    Does anyone know how to secure the forms servlet (frmservlet 11g) with something like a realm or jazn/jaas ?
    What I would like to do is just permit access to the frmservlet with a simple login jsp page that would forbidden access to frmservlet for people that we're not authenticated... and with this i would not need the SSO...
    Regards
    Ricardo

    Hi,
    But the forms app is deployed as an ear file and there's an web.xml config for this app in the container... so... i guess that theorically it's possible isn't it?
    Take a look: http://java.dzone.com/articles/understanding-web-security
    Regards
    Ricardo
    Edited by: user12015527 on 15/Fev/2010 7:22

  • Debug 2 servlets at the same time please help!!!!

    I am using JDeveloper 3.1 and trying to Debug 2 servlets at the same time. I can debug either servlet individually, but I cannot seem to call Servlet 2 from Servlet1 while debugging. I keep getting Web-to-go cannot find URL. What am I doing wrong.
    Whenever I run a servlet in the debugger, the url shows: http://<myserver>/servlets/servlet regardless of the name of the servlet.
    How do I debug 2 servlets at the same time.

    Hi,
    It depends on how you call the second servlet from the first. You want to make sure to use a relative URL.
    For example, if both of your compiled servlet classes are in JDEV_HOME\myclasses\ServletProject, then make sure to call servlet2 from servlet1 directly. If servlet2 is in JDEV_HOME\myclasses\OtherServlets, then you want to use '..\OtherServlets\servlet2'
    I'm not sure why it resolves the url to servlets\servlet for everything.

  • How to debug a form (servlet) in the Forms and Reports Server

    Hi:
    I have a new install of an application that ran perfectly on a different host using the Forms and Reports Server.
    I have installed the FRS on the new host and it is working fine. I can run the test form.
    When I run my actual forms app, I only get a blank screen in the browser and on the status bar it reports "Applet Started'.
    Is there a way I can turn on debugging or something so I can see at what point it is failing or why the form is not opening properly?
    Any advise would be appreciated.
    Many thanks.
    Bruce

    Thanks for the reply Frank. I have looked all through the Start menu but see no "Configuration and Migration". I assume it's because I only installed the Forms and Reports option, so I only have Forms Services, Reports Services, and the Universal Installer. No big deal - I've already setup tnsnames manually. I just like to use the Net Assistant when I can.

  • Problem in debug a servlet

    hello all,
    i am using eclipse 3.2 and tomcat 5.0.28
    i made a servlet class ServletFetchingDataFromDatabase.java in this package ( given below )
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ServletDataBaseConnection\src\servlet
    and corresponding this java file .... its class file situated in this package ( given below )
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ServletDataBaseConnection\build\classes\servlet
    because of my java file in servlet package , i wrote this file ( given below )
    package servlet;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class ServletFetchingDataFromDatabase extends HttpServlet {
    private static final long serialVersionUID = 8572240412874905464L;
         String url = "jdbc:mysql://localhost/mokshadatabase";
         String user = "root";
         String password = "password";
         String jdbcDriver = "com.mysql.jdbc.Driver";
    public void doGet(HttpServletRequest request , HttpServletResponse response) throws ServletException , IOException{
              String query = null;
              response.setContentType("text/html");
              PrintWriter pw = response.getWriter();
              pw.println("<html>");          
              pw.println("<body>");
              pw.println("<form>");
              pw.println("Servlet DataBase Connection<br>");
              pw.println("Patient Master Table <br><br>");
              try{
                  Class.forName(jdbcDriver).newInstance();
                  Connection conn = DriverManager.getConnection(url, user, password);
                  query = "SELECT * FROM mhis_m_patientmaster";
                  PreparedStatement stmt = conn.prepareStatement(query);
                  stmt.executeQuery();
                  ResultSet rs = stmt.getResultSet();
                  pw.println("<table border = 1>");
                  pw.println("<tr>");
                  pw.println("<td>patient_Id</td>");
                  pw.println("<td>patient_Registration_Date</td>");
                  pw.println("<td>patient_Registration_Time</td>");
                  pw.println("<td>patient_First_Name</td>");
                  pw.println("<td>patient_Last_Name</td>");
                  pw.println("</tr>");
                  while(rs.next()){
                              pw.println("<tr>");
                       if("".equalsIgnoreCase(rs.getString(1))){
                            pw.println("<td>Null</td>");
                       }else{
                            pw.println("<td>" + rs.getString(1) + "</td>");
                       if("".equalsIgnoreCase(rs.getString(2))){
                            pw.println("<td>Null</td>");
                       }else{
                            pw.println("<td>" + rs.getString(2) + "</td>");
                       pw.println("</tr>");
                  pw.println("</table>");
             }catch(IllegalAccessException e){
                   pw.println("Error is : " + e.getMessage() + "<br>");
                   pw.println("Error is IllegalAccessException<br>");
              }catch (ClassNotFoundException e) {
                   pw.println("Error is : " + e.getMessage() + "<br>");
                   pw.println("Error is ClassNotFoundException<br>");
              }catch(InstantiationException e){
                   pw.println("Error is : " + e.getMessage() + "<br>");
                   pw.println("Error is InstantiationException<br>");
              }catch(SQLException e){
                   pw.println("Error is : " + e.getMessage() + "<br>");
                   pw.println("Error is SQLException<br>");
              pw.println("</form>");
              pw.println("</body>");          
              pw.println("</html>");
    }and web.xml .. i wrote
    <!--    ServletFetchingDataFromDatabase.java (In side servlet package )    -->
        <servlet>
            <servlet-name>servlet\ServletFetchingDataFromDatabase</servlet-name>
            <servlet-class>servlet.ServletFetchingDataFromDatabase</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>servlet\ServletFetchingDataFromDatabase</servlet-name>
            <url-pattern>/servlet/ServletFetchingDataFromDatabase.do</url-pattern>
        </servlet-mapping>now when i debug it then it gives error like that...
    HTTP Status 404 - /ServletDataBaseConnection/servlet/servlet.ServletFetchingDataFromDatabase.do
    type Status report
    message /ServletDataBaseConnection/servlet/servlet.ServletFetchingDataFromDatabase.do
    description The requested resource (/ServletDataBaseConnection/servlet/servlet.ServletFetchingDataFromDatabase.do) is not available.main thing is that when i check it from web browser
    ( http://localhost:8080/ServletDataBaseConnection/servlet/ServletFetchingDataFromDatabase.do ) then it gives correct out put .. no problem is there..but when i check it by debug using break point ...then it gives this error....
    i thing this problem is related to web.xml ... but if this web.xml is wrong then why this web.xml gives write out put from when i checked it by browser...

    Hi ,
    I really dont understand why you are making such a complicated folder structure for servlet.
    May be i m wrong, but if you are using eclipse everything is straight forward.
    Just create dynamic web project create servlet into src & jsp into webcontent . Everything place in your
    workspace thats all. Just simply call your servlet thats it
    Please Revert Back
    Sachin Kokcha

  • Run same 9i forms servlet in different browser windows

    Hi all,
    I'm using Oracle9iAS Forms Service to deploy the forms. The problem that I have, is that I'm not able to run the same forms 9i servlet in two different browser windows.
    I'm able to run the 9i test form with the following URL in browser window one: http://HOST:PORT/forms90/f90servlet
    When I then try to run the same URL in a second browser window I get the following error:
    FRM-92050: Failed to connect to the Server: /forms90/l90servlet:-1
    Details...
    Java Exception:
    oracle.forms.net.ConnectionException: Connection from new browser window not supported
    I'm using Jinitiator 1.3.1.9 to run the forms.
    Thanks,
    Oliver

    Iam trying to work with menus.
    I have created a menu item EMPLOYEE and calling the employee form like this
    BEGIN
         RUN_PRODUCT(FORMS, 'EMPLOYEE', SYNCHRONOUS, RUNTIME, FILESYSTEM, '', '');
    END;
    But what happens is iam getting the error
    FRM-92101: There was a failure in the form server during the startup. This can bappen due to invalid configuration. Please look into the webserver log file for detail.
    Oracle.Forms.Net.ConnectionException: Connection for new browser window not supported.
    Following is the content of Application.Log
    06/12/16 16:59:08 Started
    06/12/16 16:59:24 formsweb: jsp: init
    06/12/16 16:59:24 formsweb: frmservlet: init
    06/12/16 16:59:24 formsweb: FormsServlet init():
    configFileName: D:\DevSuiteHome_1/forms/server/formsweb.cfg
    testMode: false
    06/12/16 16:59:24 formsweb: Started
    06/12/16 16:59:33 formsweb: lservlet: init
    06/12/16 16:59:33 formsweb: ListenerServlet init()
    06/12/16 17:06:43 formsweb: Connection from new browser window not supported
    06/12/16 17:06:57 formsweb: Connection from new browser window not supported
    06/12/16 17:13:24 formsweb: Connection from new browser window not supported
    06/12/16 17:14:07 formsweb: Connection from new browser window not supported
    06/12/16 17:15:57 formsweb: Connection from new browser window not supported
    This happens when i try to run more than one form in a browser.
    When i try to run the employee form seperately i have no problem
    Iam using Forms [32 Bit] Version 10.1.2.0.2 (Production)
    can you help in this.

  • How to use jdb for debugging a servlet?

    I'm using Apache/JServ with jdk 1.4 (via Textpad on win2K SP 3).
    The 'gospel' I'm trying to follow is:
    'Start the server manually and record the password for remote debugging
    (this is displayed on the console).'
    'Start the Java debugger:'
    'jdb -host your_host -password the_password'
    'You should be able to debug your Java classes now using the jdb
    command.'
    My problem is that I can't find the password from Apache.
    I normally start/restart apache as a windows Service.
    If I start it from DOS I get:
    'C:\orant9i\Apache\Apache>apache -k start'
    'Oracle HTTP Server Powered by Apache/1.3.12 (Win32) ApacheJServ/1.1
    mod_ssl/2.6.4 OpenSSL/0.9.5a mod_perl/1.24 running...'
    I've searched the log, conf & property files but can't find any password.
    I've also searched the Apache website for 'jdb' without luck.
    I've printed out (and read!) the 'Using Apache with MS Windows' manual.
    I did a Google:
    --Someone suggested starting Apache using using the -X flag, but I don't
    seem to have this option.
    --Someone else suggested changing jvm12.conf, but I don't have one.
    I have tried the following, just-in-case I don't really need a password,
    but it doesn't tell me a lot, and I would appreciate some help:
    JDB -sourcepath E:\javaPackages org.apache.jserv.JServServletManager
    C:\orant9i\Apache\Apache>JDB org.apache.jserv.JServServletManager
    Initializing jdb ...
    > run
    run org.apache.jserv.JServServletManager
    Set uncaught java.lang.Throwable
    Set deferred uncaught java.lang.Throwable
    >
    VM Started:
    Exception occurred: java.lang.ClassNotFoundException (uncaught)"thread=main", java.net.URLClassLoader$1.run(), line=199 bci=72
    main[1] list
    Source file not found: URLClassLoader.java
    main[1]
    Thanks,
    Peter.
    Posted to alt.apache.configuration, comp.lang.java, http://groups.yahoo.com/group/win-apache and
    comp.infosystems.www.servers.misc with no response

    Hello
    You wrote:
    I added the following to jserv.properties:
    wrapper.bin.parameters=-Xdebug
    wrapper.bin.parameters=-Xrunjdwp:transport=dt_socket,address=2930,suspend=n,server=y
    and it ran the servlet okay.Fine so far. This means your debugee VM is started and running. The "suspend=n" means it
    will start running without waiting for a debugger to attach... so you can attach later whenever you
    decide to debug. Note that 'later' could be weeks later, or possibly never.
    Now: Time to attach jdb to the victim/debugee process you started above.
    You wrote:
    But I get the following when I try to start jdb:
    jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=2930 org.apache.jserv.JServServletManager
    gives:
    Cannot specify command line with connector:
    com.sun.jdi.SocketAttach:hostname=localhost,port=2930,
    and
    jdb -attach localhost:2930 org.apache.jserv.JServServletManager
    gives:
    Cannot specify command line with connector: com.sun.jdi.SharedMemoryAttach:name=localhost:2930,The problem here is that you are trying to supply too much information to jdb.
    When you are using the attach connectors, all you need to supply is the
    host name and socket (for the socket connectors), or the name of the shared memory
    area (for the shared memory connector). The connectors you tried above are throwing
    an error because you are trying to supply something extra (the class name).
    When doing an attach, the debugee VM is already launched. The debugger will
    attach to it and inspect the classes loaded.
    If you are still running with the wrapper.bin.parameters you listed above,
    then all you need to connect with jdb is:
      jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=2930 You should get a jdb prompt, and you will be able to inspect the debugee
    VM by entering commands such as threads and classes. Typically
    the next thing would be to set some breakpoints (stop in package.class.method,
    or stop at package.class:line. Then restart the debugee with a resume.

Maybe you are looking for