Configuring OEM to detect servlet.init() failures

I'm trying to move some one-time initialization into a servlet .init() method and I wanted to see what would happen in OEM (Oracle Enterprise Manager) when this servlet's init() method failed (by throwing ServletException). I wrote a simple Servlet that does nothing but fail when it attempts to initialize. I was hoping to see a Stop Sign or something in OEM when I deloyed it, but instead OEM thinks everything is fine. Does anyone know how to make OEM aware of the actual state of the Servlets deployed under the OC4J containers?
Bob
package demos;
import org.apache.struts.action.ActionServlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletContext;
public class MyActionServlet extends ActionServlet {
public MyActionServlet() { }
public void init() throws ServletException {
super.init();
throw new ServletException( new Exception("I failed to init...DO SOMETHING!"));

Maybe if I format the source better someone will render an opinion? I'm looking for ways to have the Oracle Enterprise Manager detect and report on .init() problems in my servlets. Here is a sample servlet that does nothing but throw and exception at .init() time. How can I configure OEM to react to and report this condition?
package demos;
import org.apache.struts.action.ActionServlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletContext;
public class MyActionServlet extends ActionServlet {
  public MyActionServlet() { }
  public void init() throws ServletException {
    super.init();
    ServletContext sc = this.getServletContext();
    sc.setAttribute("AppScopeAttribute", "sc.toString()=" + sc.toString());
    sc.setAttribute("MyInitParam", this.getInitParameter("MyInitParam"));
    throw new ServletException( new Exception("This sucks...that sucks...everything sucks"));
}

Similar Messages

  • OEM doesn't detect Servlet .init() failure!?!

    I'm trying to move some one-time initialization into a servlet .init() method and I wanted to see what would happen in OEM (Oracle Enterprise Manager) when this servlet's init() method failed (by throwing ServletException). I was hoping to see a Stop Sign or something...but instead OEM thinks everything is fine. Does anyone know how to make OEM aware of the actual state of the Servlets deployed under the OC4J containers it maintains?
    Bob
    package demos;
    import org.apache.struts.action.ActionServlet;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;
    import javax.servlet.ServletContext;
    public class MyActionServlet extends ActionServlet {
    public MyActionServlet() { }
    public void init() throws ServletException {
    super.init();
    ServletContext sc = this.getServletContext();
    sc.setAttribute("AppScopeAttribute",
    "sc.toString()=" + sc.toString());
    sc.setAttribute("MyInitParam",
    this.getInitParameter("MyInitParam"));
    throw new ServletException(
    new Exception("This sucks...that sucks...everything sucks")
    }

    Maybe if I format the source better someone will render an opinion? I'm looking for ways to have the Oracle Enterprise Manager detect and report on .init() problems in my servlets. Here is a sample servlet that does nothing but throw and exception at .init() time. How can I configure OEM to react to and report this condition?
    package demos;
    import org.apache.struts.action.ActionServlet;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;
    import javax.servlet.ServletContext;
    public class MyActionServlet extends ActionServlet {
      public MyActionServlet() { }
      public void init() throws ServletException {
        super.init();
        ServletContext sc = this.getServletContext();
        sc.setAttribute("AppScopeAttribute", "sc.toString()=" + sc.toString());
        sc.setAttribute("MyInitParam", this.getInitParameter("MyInitParam"));
        throw new ServletException( new Exception("This sucks...that sucks...everything sucks"));
    }

  • Stuck by Upg BW 7.01 to 7.3 Step Configuration-Check Instances Detected

    Hello,
    i have a problem during the Step Check Instances Detected Phase  (Configuration)
    the following error is shown:
    An error has occurred during the execution of the CHECK_INSTANCES_DETECTED phase.
    There is a mismatch between the dialog instances detected by the maintenance procedure and the dialog instances read from Configuration Manager. Possible reasons can be: Dialog instances were removed before starting the maintenance procedure and
    SAP Note 871523 was not applied afterwards. Some of the dialog instances were not up and running when the procedure was started. Dialog instances detected by the maintenance procedure: DVEBMGS00 on svrsid02 with profile:/usr/sap/SID/SYS/profile/SID_DVEBMGS00_svrctw02 Dialog instances read from Configuration Manager: none
    You can find more information in the log file /usr/sap/SID/upg/java/log/CHECK_INSTANCES_DETECTED_CID_06.LOG.
    do anybody have an answer for this problem ?
    Thanks a lot
    Steven

    Hi DatabaseSap,
    yes i did, but i do´t know where the problem is !
    Is there a problem with my profiles ?
    What is the Configuration Manager -> Log = Dialog instances read from Configuration Manager: none
    i cleaned up the upgade directory for the third time, restart the server, cleanipc, searching in config tool for an old Instanz ID or anything else ... nothing help to release the problem.
    Thanks
    Steven
    Oct 18, 2011 2:51:11 PM :                      com.sap.sdt.ucp.phases.AbstractPhaseType.initialize(AbstractPhaseType.java:751) [Thread[main,5,main]]: Phase PREPARE/INIT/CHECK_INSTANCES_DETECTED has been started.
    Oct 18, 2011 2:51:11 PM :                      com.sap.sdt.ucp.phases.AbstractPhaseType.initialize(AbstractPhaseType.java:752) [Thread[main,5,main]]: Phase type is com.sap.sdt.j2ee.phases.PhaseTypeCheckDialogInstances.
    Oct 18, 2011 2:51:11 PM :                   com.sap.sdt.ucp.phases.AbstractPhaseType.logParameters(AbstractPhaseType.java:403) [Thread[main,5,main]]:   Parameter action=detect
    Oct 18, 2011 2:51:12 PM : com.sap.sdt.j2ee.tools.configutils.AbstractConfigUtils.getAllInstanceNumbers(AbstractConfigUtils.java:286) [Thread[main,5,main]]: Found instance ID3397250 in configuration manager.
    Oct 18, 2011 2:51:12 PM : com.sap.sdt.j2ee.services.servicesimpl.CheckInstancesService.logInfo(CheckInstancesService.java:186) [Thread[main,5,main]]: Instance ID33972 in configuration manager was detected as central instance.
    Oct 18, 2011 2:51:12 PM :                       com.sap.sdt.ucp.phases.AbstractPhaseType.doExecute(AbstractPhaseType.java:883) [Thread[main,5,main]]: Exception has occurred during the execution of the phase.
    Oct 18, 2011 2:51:12 PM : com.sap.sdt.j2ee.services.servicesimpl.CheckInstancesService.checkDialogInstancesDetected(CheckInstancesService.java:131) [Thread[main,5,main]]: There is a mismatch between the dialog instances detected by the maintenance procedure and
    the dialog instances read from Configuration Manager. Possible reasons can be:
    Dialog instances were removed before starting the maintenance procedure and SAP Note 871523 was not applied afterwards.
    Some of the dialog instances were not up and running when the procedure was started.
    Dialog instances detected by the maintenance procedure:
    DVEBMGS00 on svrsid02
    with profile:/usr/sap/sid/SYS/profile/sid_DVEBMGS00_svrsid02
    Dialog instances read from Configuration Manager: noneOct 18, 2011 2:51:12 PM :                         com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:925) [Thread[main,5,main]]: Phase PREPARE/INIT/CHECK_INSTANCES_DETECTED has been completed.
    Oct 18, 2011 2:51:12 PM :                         com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:926) [Thread[main,5,main]]: Start time: 2011/10/18 14:51:11.
    Oct 18, 2011 2:51:12 PM :                         com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:928) [Thread[main,5,main]]: End time: 2011/10/18 14:51:12.
    Oct 18, 2011 2:51:12 PM :                         com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:930) [Thread[main,5,main]]: Duration: 0:00:00.512.
    Oct 18, 2011 2:51:12 PM :                         com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:931) [Thread[main,5,main]]: Phase status is error.
    Edited by: Steven Bier on Oct 19, 2011 6:46 AM
    Edited by: Steven Bier on Oct 19, 2011 6:48 AM

  • Does Weblogic12c support Application Failover ? If yes, then how does Weblogic12c detect an application failure (OutOfMemoryException)?

    Hi all,
    Need help to setup High Availability at my workplace, can somebody please tell that Weblogic12c support Application Failover ?
    If yes, then how does Weblogic12c detect an application failure (OutOfMemoryException)?
    WebLogic Server - General@

    Hi there user,
    you can achieve HA in different levels:
    1. On a single machine - here you need to set up nodemanager. When started by nodemanager, any server failures will be detected and the nodemanager will try to restart it. OOME is an exception thrown by the JVM and the server state should go FAILED at some point then the NM will try to restart it. Nodemanager is the simplest HA solution you can and must implement for production environment;
    2. On redundant machine - you can configure WLS clustering, but you will need more complex environment, i.e. you will need a load balancer in front of the cluster to reverse proxy the requests. This scenario is can also use nodemanager to control the WLS instances on each machine
    3. Cluster with server/service migration - the most complex scenario where in cases of machine failure the WLS cluster can "relocate" resources (services and whole severs) to spare machines.
    In your case OOME should cause the JVM respectively WLS to be unresponsive, hence the nodemanager will detect this at some point and will try to restart the WLS.
    Hope this helps,
    A.

  • Configure oem on oracle 10g

    Hi,
    I am trying to configure oem in 10..2.0.3 database, but it gives me the below error
    emca -config dbcontrol db -repos createIncorrect usage:
    oracle.sysman.emcp.EMConfigAssistant [options] [list of parameters]
    Options:
    -a :configure for an ASM database
    -b :configure for automatic backup
    -c :configure a cluster database
    -e <node> :remove a node from the cluster
    -f <file> :specify the file name that contains parameter values
    -h :help
    -m :configure EM for a central agent
    -n <node> :add a new node to the cluster
    -r :skip creation of repository schema
    -s :silent mode (no user prompts
    -x <db> :deletion of a SID or DB
    -RMI_PORT <port> :specify the RMI port for DB Control
    -JMS_PORT <port> :specify the JMS port for DB Control
    -AGENT_PORT <port> :specify the EM agent port
    -DBCONSOLE_HTTP_PORT <port> :specify the DB Control HTTP port
    The script will prompt for any required data that is not specified in a configuration file. The script always prompts for all required passwords. If you use a configuration file, the file may contain any of the following specifications, as shown, with the specified values correctly filled in:
    Parameters for single instance databases:
    HOST=<Database hostname>
    SID=<Database SID>
    PORT=<Listener port number>
    ORACLE_HOME=<Database ORACLE_HOME>
    LISTENER=<Listener name>
    HOST_USER=<Host user name for automatic backup>
    HOST_USER_PWD=<Host user password for automatic backup>
    BACKUP_HOUR=<Automatic backup hour in number>
    BACKUP_MINUTE=<Automatic backup minute in number>
    ARCHIVE_LOG=<Archive log>
    EMAIL_ADDRESS=<Email address for automatic notification>
    MAIL_SERVER_NAME=<Email gateway for automatic notification>
    ASM_OH=<ASM ORACLE_HOME>
    ASM_SID=<ASM SID>
    ASM_PORT=<ASM port>
    ASM_USER_ROLE=<ASM user role>
    ASM_USER_NAME=<ASM user name>
    ASM_USER_PWD=<ASM user password>
    EM_HOME=<Enterprise Manager ORACLE_HOME>
    DBSNMP_PWD=<Password for dbsnmp>
    SYSMAN_PWD=<Password for sysman>
    SYS_PWD=<Password for sys>
    Parameters for cluster databses:
    HOST=<Database Instance hostname>
    PORT=<Listener port number>
    LISTENER=<Listener name>
    ORACLE_HOME=<Database ORACLE_HOME>
    CLUSTER_NAME=<Cluster name>
    DB_NAME=<Database name>
    SERVICE_NAME=<Service name>
    HOST_USER=<Host user name for automatic backup>
    HOST_USER_PWD=<Host user password for automatic backup>
    BACKUP_HOUR=<Automatic backup hour in number>
    BACKUP_MINUTE=<Automatic backup minute in number>
    ARCHIVE_LOG=<Archive log>
    EMAIL_ADDRESS=<Email address for automatic notification>
    MAIL_SERVER_NAME=<Email gateway for automatic notification>
    ASM_OH=<ASM ORACLE_HOME>
    ASM_PORT=<ASM port>
    ASM_USER_ROLE=<ASM user role>
    ASM_USER_NAME=<ASM user name>
    ASM_USER_PWD=<ASM user password>
    EM_HOME=<Enterprise Manager ORACLE_HOME>
    DBSNMP_PWD=<Password for dbsnmp>
    SYSMAN_PWD=<Password for sysman>
    SYS_PWD=<Password for sys>
    Please suggest
    Regards

    it seems database install was not successful some binaries is missing in your OH.
    Can you check by installing another database

  • Servlet init() method called multiple times

    We have a Servlet-based application which does lengthy initialization.
    We've noticed that when multiple requests arrive,
    but the Servlet's init() method has not returned yet
    for the first request, the application server calls init() multiple times.
    You can even see this with the Fortune sample
    Servlet. Starting the app server and sending 20 or 30
    simultaneous requests causes multiple Fortune Servlet init messages to appear in the kjs log.
    Why is this? We do not implement SingleThreadModel.
    Doesn't the J2EE 1.2 spec say init will be called
    only once?
    How do we prevent it?
    A Startup class which inits our
    Servlet?
    Or a synchronized block within our init method, with some checks of static member variables
    so that the initialization work only happens once?
    Or is there some kregedit magic or deployment descriptor change I could make?
    Again, it's not a SingleThreadModel issue, so don't
    point me there.
    This is iAS 6.0 SP4, on Solaris, by the way.

    Hi
    Yes,you are right. In iAS6.0 SP4 When multiple requests arrive,and the Servlet's init() method has not returned yet for the first request, the application server calls init()multiple times. This problem is resolved in iAS 6.5.
    There is no kregedit magic that will solve this problem.
    Right now the workaround is any of the solution you proposed. Or use iAS6.5. I have tested it with fortune.
    Please download it and check with your application.
    you can find free download at http://developer.iplanet.com/appserver/testdrive/testdrive_65.html
    Thanks

  • How to configure CCMS alert to monitor Authorization failures?

    Dear All,
    How to configure CCMS alert to monitor Authorization failures?
    Thanks
    Ashok

    Hello,
    in case you have not yet set up your monitoring infrastructure, the following link will provide you with the information needed:
    http://service.sap.com/monitoring
    If everything is set up (Agents are installed and connected to your central monitoring system, ...) you can go to transaction RZ21, select Technical Infrastructure - Configure Central System - Assign Central Autoreactions to set up your alerts.
    For the Update errors use the MTE CLass AbapErrorInUpdate. For the Lock please use the search Option.
    Regards
    Christian
    Edited by: Christian Rose on Apr 25, 2011 7:59 PM

  • Error while configuring OEM

    Dear all,
    While manually configuring OEM in my database with the command emca -config dbcontrol db in the directory $ORACLE_HOME/bin, I am facing the following error immediately
    $ORACLE_HOME/jdk/bin/java: No such file or directory
    db version 11g
    platfrom linux
    Pl help
    Regards,
    Charan

    Hi;
    While manually configuring OEM in my database with the command emca -config dbcontrol db in the directory $ORACLE_HOME/bin, I am facing the following error immediately
    $ORACLE_HOME/jdk/bin/java: No such file or directoryPlease be sure you source env file and echo $ORACLE_HOME return correct path
    Also see:
    How to create OEM 10g in EBS?
    How To Drop, Create And Recreate DB Control In A 10g Database [ID 278100.1]
    Problem - emctl start dbconsole Fails with Error OC4J Configuration issue OC4J_DBConsole__ not found [ID 555218.1]
    Regard
    Helios

  • Portal servlet init() failed

    I sat Portal for s1as with remote existing s1ds (from another Identity server). Portal servlet failed when server started:
    CORE1116: Sun ONE Application Server 7.0
    INFO: CORE3016: daemon is running as super-user
    INFO: CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.4.1_01] from [Sun Microsystems Inc.]
    INFO: JMS5023: JMS service successfully started. Instance Name = domain1_server1, Home = [usr/bin].
    INFO: JTS5014: Recoverable JTS instance, serverId = [100]
    INFO: RAR5060: Install JDBC Datasources ...
    INFO: JMS5015: Install JMS resources ...
    INFO: WEB0100: Loading web module [amserver] in virtual server [server1] at [amserver]
    INFO: WEB0100: Loading web module [amconsole] in virtual server [server1] at [amconsole]
    INFO: WEB0100: Loading web module [portal] in virtual server [server1] at [portal]
    SEVERE: WebModule[portal]: Servlet /portal threw load() exception
    javax.servlet.ServletException: Servlet.init() for servlet desktopServlet threw exception
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:949)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3346)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3592)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:345)
    at org.apache.catalina.startup.Embedded.start(Embedded.java:957)
    at com.iplanet.ias.web.WebContainer.start(WebContainer.java:426)
    at com.iplanet.ias.web.WebContainer.start(WebContainer.java:426)
    at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:514)
    at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:170)
    ----- Root Cause -----
    com.sun.portal.desktop.context.ContextError: DSAMEConnection.getGlobalAttributes(): SunPortalDesktoa
    at com.sun.portal.desktop.context.DSAMEConnection.getGlobalAttributes(DSAMEConnection.java:)
    at com.sun.portal.desktop.context.DSAMEConnection.getGlobalAttributeMultiValueFromROC(DSAME)
    at com.sun.portal.desktop.context.DSAMEConnection.getGlobalAttributeFromROC(DSAMEConnection)
    at com.sun.portal.desktop.context.DSAMEServiceAppContext.getDebugContextClassName(DSAMEServ)
    at com.sun.portal.desktop.context.PSDesktopAppContext.getDebugContextClassName(PSDesktopApp)
    at com.sun.portal.desktop.context.PSDesktopAppContext.getNewDebugContext(PSDesktopAppContex)
    at com.sun.portal.desktop.context.PSDesktopAppContext.initDebugContext(PSDesktopAppContext.)
    at com.sun.portal.desktop.context.PSDesktopAppContext.init(PSDesktopAppContext.java:72)
    at com.sun.portal.desktop.context.PSDesktopContextFactory.initDesktopAppContext(PSDesktopCo)
    at com.sun.portal.desktop.context.PSDesktopContextFactory.init(PSDesktopContextFactory.java)
    at com.sun.portal.desktop.DesktopServlet.getDesktopContextFactory(DesktopServlet.java:189)
    at com.sun.portal.desktop.DesktopServlet.init(DesktopServlet.java:248)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:921)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3346)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3592)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:345)
    at org.apache.catalina.startup.Embedded.start(Embedded.java:957)
    at com.iplanet.ias.web.WebContainer.start(WebContainer.java:426)
    at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:514)
    at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:170)
    com.iplanet.am.sdk.AMException: Unable to get service schema
    at com.iplanet.am.sdk.AMStoreConnection.getSchema(AMStoreConnection.java:699)
    at com.sun.portal.desktop.context.DSAMEConnection.getGlobalAttributes(DSAMEConnection.java:)
    at com.sun.portal.desktop.context.DSAMEConnection.getGlobalAttributeMultiValueFromROC(DSAME)
    at com.sun.portal.desktop.context.DSAMEConnection.getGlobalAttributeFromROC(DSAMEConnection)
    at com.sun.portal.desktop.context.DSAMEServiceAppContext.getDebugContextClassName(DSAMEServ)
    at com.sun.portal.desktop.context.PSDesktopAppContext.getDebugContextClassName(PSDesktopApp)
    at com.sun.portal.desktop.context.
    INFO: HTTP3072: HTTP listener http-listener-1 [http://sundevel.in.rosprint.ru:88] ready to accept rs
    startup: server started successfully
    What I have to do ?
    Regards.

    check amSDK and deploy.log for errors.
    located at /var/opt/SUNWam/debug
    It seems like your installation of portal was not successful in updating the directory server

  • Configuring OEM in oracle 9i version

    In oracle 10g we can use emca command to configure oem..
    is there any command to configure oem in 9i data base .

    Yasser, -prelim is feature of Sql*Plus 10g and latter.
    So as long you have any Sql*Plus 10g or latter version (ex. from client installation) and a valid net service name to connect to your 9i database you should be able to establish a "backdoor" connection.
    You can do the following:
    $sqlplus -prelim /nologand once you are in, just connect to the database using SYSDBA account
    SQL> connect sys/password@net_service_name as sysdba
    Prelim connection establishedCheers,
    Mihajlo

  • Silent database creation won't configure OEM

    Hi All,
    Windows Vista 64-bit Oracle 11.1.0.7
    I am doing a silent creation of the database which creates the database fine but the OEM - Web front end is not created. I have run netca to create a listener before database creation. Here is my exact syntax I am using from the command prompt:
    dbca -silent -sysPassword oracle -systemPassword oracle -continueOnNonFatalErrors true -gdbName 11GORA01 -createDatabase -templateName Test11g -emConfiguration LOCAL -dbsnmpPassword oracle -sysmanPassword oracle
    If I then use dbca to try & configure the database options there is an error saying there is no appropriate listener found. There is one thing I did notice that when I did lsnrctl status the database name was in lower case and using the dbca the message 'Configure additional components for database "11GORA01" - is in upper case. Not sure if this is the problem.
    Any help would be fantastic
    Thanks
    Vic

    Hi,
    Silent database creation won't configure OEM
    AFAIK, NO you have to configure separately.
    Regards,
    Taj

  • Configure OEM after cold cloning

    Dear All
    After performing cold cloning ,I am trying to configure OEM which shows me error message in logfile,
    CONFIG: ORA-20001: SYSMAN already exists..
    Do I need to drop DBSNMP and SYSMAN schema and create repos from the beginning, if yes then is there any effect on database if I drop schemas.
    kindly post steps about configuring OEM after cold cloning .
    Database Version : 11.2.0.1
    Thanks.

    I'm not sure what you mean by "cold cloning." What version of EM are you using, and what is it you want to do?

  • Configuring OEM alerts to Mobile

    Can someone send me the metalink note how to configure OEM alerts to mobile........

    hi,
    could you explain how to configure mobile alerts in 9i amd 10g.

  • Servlet init block doesn't work with getServletContext().getRequestDispat..

    Hi Everyone,
    I am getting null pointer exception when i have coded init method inside my servlet(inside that i am fetching init parameter passed from web,xml file) and while getting requestdispatcher from context.
    if i get requestdispatcher from request then it works fine. i dont understand reason behind this behaviour.
    please give your valueable comment.
    find code below:
    public void init(ServletConfig config) throws ServletException
    enum1 = config.getInitParameterNames();
    while(enum1.hasMoreElements()){
    init_paramNm = (String)enum1.nextElement();
    init_paramVal = config.getInitParameter(init_paramNm);
    System.out.println("Name = "init_paramNm" and value = "+init_paramVal);
    getting null pointer exception with this
    RequestDispatcher rd = getServletContext().getRequestDispatcher("/ObjJSPtoServlet.jsp");
    rd.forward(request, response);
    work fine with
    RequestDispatcher rd = request.getRequestDispatcher("/ObjJSPtoServlet.jsp");
    rd.forward(request, response);

    public void init(ServletConfig config)
    throws ServletException
    Called by the servlet container to indicate to a servlet that the servlet is being placed into service. See Servlet.init(javax.servlet.ServletConfig).
    This implementation stores the ServletConfig object it receives from the servlet container for later use. When overriding this form of the method, call super.init(config). ...
    [More Info|http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/GenericServlet.html#init%28javax.servlet.ServletConfig%29]

  • Configure OEM for alert

    Hi,
    I want to configure OEM to check alert log every 15mins for a messge ORA-xxxx and send out a email when it see that error message. Can someone tell me how to configure this in OEM.

    Hi,
    BTW, I have my notes here on general OEM alerts:
    http://www.dba-oracle.com/oracle10g_tuning/t_oem_alerts.htm
    I want to configure OEM to check alert log every 15mins for a messge ORA-xxxx and send out a emailOEM will not do that, out of the box, but you can easily write your own. Here is how I do it:
    http://www.dba-oracle.com/t_alert_log_monitoring_errors.htm
    Hope this helps. . .
    Donald K. Burleson
    Oracle Press author
    Author of "Oracle Tuning: The Definitive Reference":
    http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm

Maybe you are looking for

  • Acrobat 9.1  Mac How do you change from Radio buttons to Check boxes?

    I have a DMV Form I Downloaded and had to convert to PS then back to PDF (written originally on PC Acrobat was in XML format). So on new form, I am able to add fields. I used the the Forms manager to automatically create the fields. Fields that were

  • Problem saving an already created file

    I use AI version CS3, every time try to save a change to an already saved file I get the following error message: "The file may be read-only, or another user may have it open.  Please save the document with a different name or in a different folder".

  • SAP XI 3.0 training (formal courses)

    Hi all, I am in South Africa and enquired about SAP XI courses and was told that the current courses will be on SAP XI 2.0. Can anybody out there please tell me where XI 3.0 courses are held, specifically which countries and if you have the costs it

  • How do I change a URL to "https" in Business Catalyst?

    I'm trying to change the URL on this page {http://www.girlscoutsgcnwi.org/donate-with-form} to display "https" in Business Catalyst. Can you help?

  • IPhone 5 suddenly unable to connect to Exchange

    Having worked fine for many months, I can no longer connect to Exchange for work emails or to sync my calendar.  Started yesterday by not allowing me to add an appoinment on my phone - now all past information has been erased. I have deleted the exch