Multiple HTTP GET requests for individual classes

Hello,
I have a Java plug-in deployed under tomcat 6. JRE version is 1.6.0_16. All the required jars are deployed packed (pack.gz) and the applet tag has 'java_arguments' parameter defined as:
<param name='java_arguments' value='-Xms256m -Xmx512m -Djnlp.packEnabled=true -Djnlp.versionEnabled=true' />
All the jars get loaded nicely as I see in the Tomcat access log:
127.0.0.1 - - [03/Mar/2010:17:24:04 +0000] "GET /testapplet/lib/log4j-1.2.13.jar.pack.gz?version-id=1.2.13 HTTP/1.1" 200 0
but immediately I see a bunch of GET requests for the individual classes in the same log4j jar:
127.0.0.1 - - [03/Mar/2010:17:24:06 +0000] "GET /testapplet/lib/org/apache/log4j/Logger.class HTTP/1.1" 404 0
127.0.0.1 - - [03/Mar/2010:17:24:06 +0000] "GET /testapplet/lib/org/apache/log4j/Category.class HTTP/1.1" 404 0
127.0.0.1 - - [03/Mar/2010:17:24:06 +0000] "GET /testapplet/lib/org/apache/log4j/spi/AppenderAttachable.class HTTP/1.1" 404 0
As you can see each of these GET requests are returned a Http error code 404. While testing locally, this isn't adding any delays, but over a real deployment it's bound to be slow down the applet loading while the server is responding to each of these class requests.
Subsequently, the application itself runs without any issues and these bogus class requests failures have no effect (thankfully) on the functionality.
Any one seen this behavior? Appreciate any thoughts or help.
Regards,
Parag

http://forums.java.net/jive/thread.jspa?threadID=75990&tstart=0

Similar Messages

  • Can you make a HTTP GET request with JSC form element?

    It seems the form element in JSC make a HTTP POST request by default, but is it possible to make a HTTP GET request by the form element in JSC?
    (It is worth to mention here that HTTP GET request has its distinctive advantages like you can embed the parameters in a URL and bookmark it)
    Thank you very much.

    Jim,
    I am doing the sameway as you suggested to MISS_DUKE
    But have you face any problems in doing so? In otherwords its the page rendering correctly?
    On requesting the same page multiple times, Every time I get the page that was rendered for the first time.
    To see the correct results, I need to close the browser and check it .
    see my previous queries here
    http://swforum.sun.com/jive/thread.jspa?threadID=54379&messageID=208223#208223
    http://swforum.sun.com/jive/thread.jspa?threadID=56440&messageID=214302#214302
    http://swforum.sun.com/jive/thread.jspa?threadID=56676&messageID=214987#214987
    http://swforum.sun.com/jive/thread.jspa?threadID=56390&messageID=214139#214139
    And I am still expecting the answer from experts. But nobody turn arround
    Thanks,
    Sudhakar

  • Using ADFS authentication to perform SSO via HTTP GET request

    Hi,
    Can i authenticate users (those users are clients, at home) to a web application using ADFS without SAML tokens?
    The situation is that i want the clients to perform SSO to the website via a link they receive in their mailboxes. 
    I thought about a solution that combines JWT in a URL link that each user will get to his private mail. this link will contain the users' claim (such as ID Num, given from AD DS Server dedicated especially for them).
    Thus, the user will receive an email with a link that already contains a short period of time JWT to perform SSO to the webapp.
    Is it possible ? anybody heard about a similar solution ?

    Sandra
    Thanks for your message
    Here is the my requirment
    The basic flow of a Where 2 Get It REST API call is:
    1) create the required XML structure,
    2) URI encode it,
    3) make a HTTP GET request,
    4) then parse the return XML document.
    Currently i have some data in ABAP structure with 5 fields, i need to create XML from the those 5 fields,and needs to be URI
    encode it, and then needs to make a HTTP get request to connect Where to Get It REST API, finally it will return XML document via HTTP Get request , and then needs to convert the return XML to  ABAP structure for further processing .the above 4 points will be implemented in my report.
    Any  body could help on this

  • HTTP GET request to XI

    hi forum,
    i have been trying to send a HTTP GET request to XI using SOAP and HTTP adpaters (by designing objects in IR and ID), but failed to do so,
    the requirement is specifically sending HTTP GET, (no content in the body)
    Is there any way of achieving this using existing adapters,
    My observations:
    when i make a HTTP GET request to XI using sender HTTP adapter, it gives a response "Body is empty" with HTTP code 204-No content,
    when i use SOAP adapter, and make a HTTP GET request to intergration engine, using sender SOAP adapter, it gives a response
    <html>
    <head>MessageServlet</head>
    <body>
    Message Servlet is in Status OK
    Status information:
    Servlet com.sap.aii.af.mp.soap.web.MessageServlet (Version $Id: //tc/xi/NW04_23_REL/src/_adapters/_soap/java/com/sap/aii/af/mp/soap/web/MessageServlet.java#2 $) bound to /MessageServlet
    <br/>Classname ModuleProcessor: null
    <br/>Lookupname for localModuleProcessorLookupName: localejbs/ModuleProcessorBean
    <br/>Lookupname for remoteModuleProcessorLookupName: null
    <br/>ModuleProcessorClass not instantiated
    <br/>ModuleProcessorLocal is Instance of com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0_0
    <br/>ModuleProcessorRemote not instantiated
    </body></html>,
    and http response code 200 OK, but i cant find anything in the integration engine (from SXMB_MONI),
    pls help

    hi prateek..... lot of thanks,
    developing/deploying a proxy ejb for this purpose seems good,
    but, deploying a custom servlet (for calling that ejb) seems "not-so-standard" way,
    since i m very new to custom j2ee development in XI, i have certain queries:
    1. Is there any guidelines for developing and deploying custom j2ee components,
    2. Will SAP provide support in case of these components not working "as expected" or hampering other applications,
    thanks for help

  • When I boot up i keep getting requests for keychain password, about 6 different things asking for it before i can get to desktop, HELP !!!!!

    When I boot up I keep getting requests for keychain password from various things ive never heard of like cloudd
    Like this basically
    Any ideas how i stop this
    Pete

    Hi Lutonpete,
    Welcome to the Apple Support Communities!
    I understand that you are receiving repeated prompts for different “Local Items” keychain passwords and know how frustrating this situation can be. There is a solution to this issue however. Please use the steps and information in the attached article to resolve this issue. 
    OS X Mavericks v10.9.1: Repeated prompts to unlock "Local Items" keychain - Apple Support
    Cheers,
    Joe

  • HTTP PUT Request for File Uploads is returning a response header with content-length = 0

    After upgrading from CF9 to Coldfusion 10, I'm running into an odd issue, with `cURL` calls to a webservice that used to work.
    We are using an HTTP PUT Request with multipart="no" so that the request header content is the file itself, now the data is being sent properly in the content but it has a ~8k limit. This is fine for smaller files but some files are 60kb etc.
    Errors are odd too, near the 8KB limit we get a bad gateway error 502, and above that the webpage errors with a connection reset.
    It works fine with multipart="yes", but in a PUT request the file's data isn't even sent since it's looking for `httpparam formField` , the content-length from the target page's Headers show a content-length of 0 which causes `cURL` to fail with an error (56): http://curl.haxx.se/docs/manpage.html
    Here's example code to reproduce:
    <cfset sFilename = "C:\999\test4.txt">
    <cffile action="readBinary" file="#sFilename#" variable="fileRead">
    <cfset oFileInfo = GetFileInfo("#sFilename#")>
    <cfhttp           url="localhost/Clarence/diff_elt_test_output.cfm"
                                  method="PUT"
                                  username="******"
                                  password="******"
                                  multipart="yes"
                                  result="oHttp">
              <cfhttpparam type="header" name="Content-Type" value="text/plain" />
              <cfhttpparam type="header" name="Content-Length" value="#oFileInfo.Size#" />
              <cfhttpparam type="body" value="#fileRead#"/>
    </cfhttp>
    <cfdump var="#oHttp#">
    Dumping the response via GetHttpRequestData() shows that the header's content-length = 0 and content is blank.
    Whereas POST requests work fine, cURL has a -F form option which is our fallback but a solution to this would be great.
    Here's what I've tried:
    1. Changing CF post request limit sizes (64MB+)
    2. Changing IIS config web/webserver http runtime and security.request filtering request limits to much higher values
    3. AJP Connector between IIS and Tomcat has a default 8KB header limit, I changed that to 64k on both sides, still nothing
    Also am I missing something fundamental here? I thought at the network layer a packet is split up and rejoined, so large content in a http request body should work, what's wrong with Coldfusion 10?

    I am familiar with java.net package and know how to
    Read and Write Streams.
    However, what I do not know is what string
    represntation of PUT or POST resquests is?It's HttpURLConnection.setRequestMethod("PUT") or ("POST").
    Also you have to setDoOutput(true).
    Then you set the content type, possibly encode the input, set the content length, and write the file data to the stream.
    Using a Jakarta package may be easier, however.

  • How does Firefox handle xml:base when generating GET requests for SVG image elements?

    I am loading an SVG image at the following URL:
    http://localhost/howl/svg/id/543
    The source for this SVG code is:
    <svg xml:base="/howl/">
    <svg width="535" height="325" xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink">
    <image xlink:href="file/id/532" />
    </svg>
    </svg>
    As you can see, the SVG code is located at one path, but the <image> is relative to the root, hence the wrapping xml:base attribute.
    The actual requests in Firefox, according to Tomcat Logging are:
    GET /howl/svg/id/543
    GET /howl/file/id/532
    However, Firebug's Net tab shows these requests:
    GET /howl/svg/id/543
    GET /howl/svg/id/file/id/532 (Incorrect, doesn't happen)
    GET /howl/file/id/532
    When I test the same thing in Safari and Chrome, all three GET requests actually happen, the incorrect one resolving in a 404.
    I suspect that Firefox is generating all three requests, but discarding the incorrect one and Firebug is not aware of this. As a result, Firebug shows all three requests, but the incorrect one never resolves.
    So, I'm curious about the behavior or whether I am doing this incorrectly.
    Thanks!

    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25

  • Keep getting requests for a WPA password

    This problem only seems to have occurred since I got my new imac. We have a Belkin wireless router and I continuously get a small window opening asking for a WPA password.  I have been to the belkin website and followed various steps as best I could http://en-uk-support.belkin.com/app/answers/detail/a_id/1669 where you can set your own password.  but the windows continue to pop up with requests for said password.  whenever I submit the password it mostly just says connection timeout. I keep submitting and submitting  and then occasionally (sometimes after several hours of trying) the window just disappears at which stage it DOES re-connect me to the www.    It`s all a bit baffling.  I have tried telephoning belkin directly but so far have just had the usual infuriating recorded messages with a list of options followed by sub options which don`t help and don`t include getting through to a real human being.   hence my posting here. Though I don`t hold out much hope of being able to resolve this one through the apple boards. but you never know,  Many thanks,   Mark

    A question: Does this dialogue  area where you have to enter your password also have a checkbox on it that asks you if you want your password saved to keychain?
    If so, uncheck it first, then enter your password and recheck the box.
    Not sure if this is a solution or not but I thought I'd throw my two cents worth in, if it's worth 2 cents.

  • Http get requests fail after a few weeks

    All,
    I have a get request to a servlet that works for a few weeks, then it will suddenly stop.
    I change the code once, works,then it will fail after a few weeks.
    I change the code again, works, then it will fail after a few weeks.
    Servlet works like: send one request, wait, then send a second.
    Here are the last 2 code iterations:
    try {
            // Construct data
            String data = URLEncoder.encode("key1", "UTF-8") + "=" + URLEncoder.encode("value1", "UTF-8");
            data += "&" + URLEncoder.encode("key2", "UTF-8") + "=" + URLEncoder.encode("value2", "UTF-8");
              //String data = "";
            // Send data
            //URL url = new URL("http://localhost:8080/stocks?action=1&date=20080310");
            URL url = new URL("http://localhost:8080/stocks/monitor?action=1&date="+stringDate);
            URLConnection conn = url.openConnection();
            conn.setDoOutput(true);
            OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
            wr.write(data);
            wr.flush();
            // Get the response
            BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
            //System.out.println(rd.read());
            String line;
            int count =0;
            while ((line = rd.readLine()) != null) {
                // Process line...
                 System.out.println(count + line);
                 count++;
            wr.close();
            rd.close();
        } catch (Exception e) {
        try {
            // Construct data
            String data = URLEncoder.encode("key1", "UTF-8") + "=" + URLEncoder.encode("value1", "UTF-8");
            data += "&" + URLEncoder.encode("key2", "UTF-8") + "=" + URLEncoder.encode("value2", "UTF-8");
             //String data = "";
            // Send data
            URL url = new URL("http://localhost:8080/stocks/monitor?action=2");
            URLConnection conn = url.openConnection();
            conn.setDoOutput(true);
            OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
            wr.write(data);
            wr.flush();
            // Get the response
            BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
            String line;
            int count =0;
            while ((line = rd.readLine()) != null) {
                // Process line...
                 System.out.println(count + line);
                 count++;
            wr.close();
            rd.close();
        } catch (Exception e) {
        }I send this request twice with different params
    public static String sendGetRequest(String endpoint, String requestParameters)
    String result = null;
    if (endpoint.startsWith("http://"))
    // Send a GET request to the servlet
    try
    // Construct data
    StringBuffer data = new StringBuffer();
    // Send data
    String urlStr = endpoint;
    if (requestParameters != null && requestParameters.length () > 0)
    urlStr += "?" + requestParameters;
    URL url = new URL(urlStr);
    URLConnection conn = url.openConnection ();
    // Get the response
    BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
    StringBuffer sb = new StringBuffer();
    String line;
    while ((line = rd.readLine()) != null)
    sb.append(line);
    rd.close();
    result = sb.toString();
    } catch (Exception e)
    e.printStackTrace();
    return result;
    }Any ideas?
    Edited by: iketurna on Mar 13, 2008 7:21 AM

    You appear to have empty catch blocks. Which means you don't get the error message that would tell you what is failing.
    Put in code that logs the exception and the stack trace of the exception. If you can't figure out the error message, post it here.
    You should be closing streams in finally statements. Otherwise they might not get closed when there is an error -> you leak descriptors -> you run out of descriptors -> every stream open will fail -> more errors -> more descriptors get leaked -> etc -> everything stops working. Always do it like this:
        WhateverStream out = null;
        try {
            out = ...;
            ...use out...;
        } finally {
            try {
                if (out != null) out.close();
           } catch (IOException e) { ...log it... }
        }

  • Explicitly setting the query string in http get request

    Hi All,
    We are trying to use the query string parameter to send a GET request to a vendor. The parameter value is a string concatenated with xml ie. String=<xml></xml> It seems the vendor is reading this value as string and Looking for "<XML>" to strip out the values. The problem in OSB is when I concatenate the fn:concat("String=",<XML/>) the acutal value is translated to "String=&lt;XML/>. Is there a way to explicitly set the value so the < doesn't get encoded to &lt; ? the odd thing is that only the left less than bracket get encoded. Any help would be most appreciated...
    thanks,
    Matt
    version of OSB:
    Service Bus 10gR3
    Oracle Service Bus Version: [WebLogic Oracle Service Bus 10.3 Sat May 30 06:12:38 EDT 2009 1223943 ]
    Oracle Weblogic Server Version: [WebLogic Server 10.3 Fri Jul 25 16:30:05 EDT 2008 1137967 ]

    The left side bracket is actually getting encode as amplt; (this forum encoded it :))

  • Multiple Alerts getting raised for same Error

    Hi All,
    I have a Management Pack Which will will trigger an Exe. The Exe takes an input and that input is being provided as a parameter from the MP. Whenever the exe raises throws an error an event in the event viewer and also  we are raising an Alert.
    Now suppose say there are 3 inputs for which the Exe has to run. Now the Exe failed for Input 1 and passed for the rest 2. Since we have a exe failure we are raising an  event and firing an alert. But in the SCOM alerts i see 3 alerts with the Source
    Name as all the three inputs, but the error message and all other stuff are remaining the same
    Am I missing out on anything here?
    Any Help in this regard is much appreciated
    Regards, Mahadev Sundeep Maruvada

    <?xml version="1.0" encoding="utf-8"?><ManagementPack ContentReadable="true" SchemaVersion="2.0" OriginalSchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <Manifest>
    <Identity>
    <ID>AlertTestMP</ID>
    <Version>1.0.0.36</Version>
    </Identity>
    <Name>AlertTestMP</Name>
    <References>
    <Reference Alias="Windows">
    <ID>Microsoft.Windows.Library</ID>
    <Version>7.5.8501.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="Health">
    <ID>System.Health.Library</ID>
    <Version>7.0.8432.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="System">
    <ID>System.Library</ID>
    <Version>7.5.8501.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    </References>
    </Manifest>
    <TypeDefinitions>
    <EntityTypes>
    <ClassTypes>
    <ClassType ID="SDMonitoringSyntheticTest.SDDepot" Accessibility="Public" Abstract="false" Base="Windows!Microsoft.Windows.ApplicationComponent" Hosted="true" Singleton="false" Extension="false">
    <Property ID="ServerDetails" Type="string" AutoIncrement="false" Key="true" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false" Scale="0" />
    <Property ID="SDType" Type="string" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false" Scale="0" />
    </ClassType>
    <ClassType ID="SDMonitoringSyntheticTest.SDWatcher" Accessibility="Internal" Abstract="false" Base="Windows!Microsoft.Windows.LocalApplication" Hosted="true" Singleton="false" Extension="false">
    <Property ID="SDType" Type="string" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false" Scale="0" />
    </ClassType>
    </ClassTypes>
    <RelationshipTypes>
    <RelationshipType ID="SDMonitoringSyntheticTest.SDWatcher_To_SDDepot_Relationship" Accessibility="Internal" Abstract="false" Base="System!System.Hosting">
    <Source ID="Source" MinCardinality="0" MaxCardinality="2147483647" Type="SDMonitoringSyntheticTest.SDWatcher" />
    <Target ID="Target" MinCardinality="0" MaxCardinality="2147483647" Type="SDMonitoringSyntheticTest.SDDepot" />
    </RelationshipType>
    </RelationshipTypes>
    </EntityTypes>
    </TypeDefinitions>
    <Monitoring>
    <Discoveries>
    <Discovery ID="SourceDepot.SDMonitoringSyntheticTest.SDWatcherDiscovery" Enabled="true" Target="Windows!Microsoft.Windows.Computer" ConfirmDelivery="true" Remotable="true" Priority="Normal">
    <Category>Discovery</Category>
    <DiscoveryTypes>
    <DiscoveryClass TypeID="SDMonitoringSyntheticTest.SDWatcher">
    <Property TypeID="SDMonitoringSyntheticTest.SDWatcher" PropertyID="SDType" />
    </DiscoveryClass>
    </DiscoveryTypes>
    <DataSource ID="DS" TypeID="Windows!Microsoft.Windows.FilteredRegistryDiscoveryProvider">
    <ComputerName>
    $Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$
    </ComputerName>
    <RegistryAttributeDefinitions>
    <RegistryAttributeDefinition>
    <AttributeName>AppExists</AttributeName>
    <Path>Software\SDSynthetic\SDServers</Path>
    <PathType>0</PathType>
    <AttributeType>0</AttributeType>
    </RegistryAttributeDefinition>
    <RegistryAttributeDefinition>
    <AttributeName>SDType</AttributeName>
    <Path>Software\SDSynthetic\SDServers\SDType</Path>
    <PathType>1</PathType>
    <AttributeType>1</AttributeType>
    </RegistryAttributeDefinition>
    </RegistryAttributeDefinitions>
    <Frequency>600</Frequency>
    <ClassId>$MPElement[Name="SDMonitoringSyntheticTest.SDWatcher"]$</ClassId>
    <InstanceSettings>
    <Settings>
    <Setting>
    <Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
    <Value>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
    </Setting>
    <Setting>
    <Name>$MPElement[Name="SDMonitoringSyntheticTest.SDWatcher"]/SDType$</Name>
    <Value>$Data/Values/SDType$</Value>
    </Setting>
    <Setting>
    <Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
    <Value>SD Util Depot ($Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetbiosComputerName$)</Value>
    </Setting>
    </Settings>
    </InstanceSettings>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Values/AppExists</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="String">true</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    </DataSource>
    </Discovery>
    <Discovery ID="SourceDepot.SDMonitoringSyntheticTest.SDWatcher.SDDepotDiscovery" Enabled="true" Target="SDMonitoringSyntheticTest.SDWatcher" ConfirmDelivery="false" Remotable="true" Priority="Normal">
    <Category>Discovery</Category>
    <DiscoveryTypes>
    <DiscoveryClass TypeID="SDMonitoringSyntheticTest.SDDepot">
    <Property TypeID="SDMonitoringSyntheticTest.SDDepot" PropertyID="ServerDetails" />
    <Property TypeID="SDMonitoringSyntheticTest.SDDepot" PropertyID="SDType" />
    <Property TypeID="System!System.Entity" PropertyID="DisplayName" />
    </DiscoveryClass>
    </DiscoveryTypes>
    <DataSource ID="PS" TypeID="Windows!Microsoft.Windows.TimedPowerShell.DiscoveryProvider">
    <IntervalSeconds>600</IntervalSeconds>
    <SyncTime />
    <ScriptName>SDSyntheticServerDiscoverDepot.ps1</ScriptName>
    <ScriptBody>
    param($sourceId,$managedEntityId,$computerName,$SDType)
    $api = new-object -comObject 'MOM.ScriptAPI'
    $Script:LOG_ERROR = 1
    $Script:LOG_WARNING = 2
    $Script:LOG_INFORMATION = 4
    $Script:ScriptName = "SDMonitoringSyntheticTestSDDiscovery.ps1"
    function Write-ErrorInfo([string] $msg)
    $api.LogScriptEvent("$ScriptName",1728,$Script:LOG_ERROR,"`r$msg")
    function Write-OnlyInfo([string] $msg)
    $api.LogScriptEvent("$ScriptName",1727,$Script:LOG_INFORMATION,"`r$msg")
    Write-OnlyInfo "in SD servers discovery"
    $discoveryData = $api.CreateDiscoveryData(0, $SourceId, $ManagedEntityId)
    $SDServerList=Get-ChildItem "HKLM:\SOFTWARE\SDSynthetic\SDServers" | ForEach-Object {Get-ItemProperty $_.pspath}
    Foreach ($SDServer in $SDServerList)
    $Name = $SDServer.PSChildName
    $DisplayName = $SDServer.PSChildName
    Write-OnlyInfo $computerName
    $ServerDetails =$SDServer.servername+":"+$SDServer.port
    $instance = $discoveryData.CreateClassInstance("$MPElement[Name='SDMonitoringSyntheticTest.SDDepot']$")
    $instance.AddProperty("$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$", $computerName)
    $instance.AddProperty("$MPElement[Name='SDMonitoringSyntheticTest.SDDepot']/ServerDetails$", $ServerDetails)
    $instance.AddProperty("$MPElement[Name='SDMonitoringSyntheticTest.SDDepot']/SDType$", $SDType)
    $instance.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", $DisplayName)
    $discoveryData.AddInstance($instance)
    Write-OnlyInfo "$Name $ServerDetails"
    Write-OnlyInfo $discoveryData
    $discoveryData
    </ScriptBody>
    <Parameters>
    <Parameter>
    <Name>sourceID</Name>
    <Value>$MPElement$</Value>
    </Parameter>
    <Parameter>
    <Name>managedEntityID</Name>
    <Value>$Target/Id$</Value>
    </Parameter>
    <Parameter>
    <Name>computerName</Name>
    <Value>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
    </Parameter>
    <Parameter>
    <Name>SDType</Name>
    <Value>$Target/Property[Type="SDMonitoringSyntheticTest.SDWatcher"]/SDType$</Value>
    </Parameter>
    </Parameters>
    <TimeoutSeconds>300</TimeoutSeconds>
    </DataSource>
    </Discovery>
    </Discoveries>
    <Monitors>
    <UnitMonitor ID="AlertTestMP.AlertDiscTestMonitor" Accessibility="Internal" Enabled="true" Target="SDMonitoringSyntheticTest.SDDepot" ParentMonitorID="Health!System.Health.EntityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.2SingleEventLog2StateMonitorType" ConfirmDelivery="false">
    <Category>AvailabilityHealth</Category>
    <AlertSettings AlertMessage="AlertTestMP.AlertDiscTestMonitor.AlertMessage">
    <AlertOnState>Error</AlertOnState>
    <AutoResolve>true</AutoResolve>
    <AlertPriority>Normal</AlertPriority>
    <AlertSeverity>Error</AlertSeverity>
    <AlertParameters>
    <AlertParameter1>$Data[Default='']/Context/EventDescription$</AlertParameter1>
    </AlertParameters>
    </AlertSettings>
    <OperationalStates>
    <OperationalState ID="SecondEventRaised" MonitorTypeStateID="SecondEventRaised" HealthState="Success" />
    <OperationalState ID="FirstEventRaised" MonitorTypeStateID="FirstEventRaised" HealthState="Error" />
    </OperationalStates>
    <Configuration>
    <FirstComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</FirstComputerName>
    <FirstLogName>Application</FirstLogName>
    <FirstExpression>
    <And>
    <Expression>
    <RegExExpression>
    <ValueExpression>
    <XPathQuery Type="String">EventDescription</XPathQuery>
    </ValueExpression>
    <Operator>ContainsSubstring</Operator>
    <Pattern>WSAETIMEDOUT</Pattern>
    </RegExExpression>
    </Expression>
    <Expression>
    <Or>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="UnsignedInteger">7017</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="UnsignedInteger">7015</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="UnsignedInteger">7013</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    </Or>
    </Expression>
    </And>
    </FirstExpression>
    <SecondComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</SecondComputerName>
    <SecondLogName>Application</SecondLogName>
    <SecondExpression>
    <And>
    <Expression>
    <RegExExpression>
    <ValueExpression>
    <XPathQuery Type="String">PublisherName</XPathQuery>
    </ValueExpression>
    <Operator>ContainsSubstring</Operator>
    <Pattern>$Target/Property[Type="SDMonitoringSyntheticTest.SDDepot"]/ServerDetails$</Pattern>
    </RegExExpression>
    </Expression>
    <Expression>
    <RegExExpression>
    <ValueExpression>
    <XPathQuery Type="String">EventDescription</XPathQuery>
    </ValueExpression>
    <Operator>ContainsSubstring</Operator>
    <Pattern>executed Successfully</Pattern>
    </RegExExpression>
    </Expression>
    <Expression>
    <Or>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="UnsignedInteger">7012</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="UnsignedInteger">7014</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="UnsignedInteger">7016</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    </Or>
    </Expression>
    </And>
    </SecondExpression>
    </Configuration>
    </UnitMonitor>
    </Monitors>
    <Overrides>
    <MonitorPropertyOverride ID="OverrideForMonitorAlertTestMPAlertDiscTestMonitorForContextSDMonitoringSyntheticTestSDWatcherf3454dfab84141b68e1f7cda55c641f5" Context="SDMonitoringSyntheticTest.SDWatcher" Enforced="false" Monitor="AlertTestMP.AlertDiscTestMonitor" Property="Enabled">
    <Value>true</Value>
    </MonitorPropertyOverride>
    </Overrides>
    </Monitoring>
    <Presentation>
    <StringResources>
    <StringResource ID="AlertTestMP.AlertDiscTestMonitor.AlertMessage" />
    </StringResources>
    </Presentation>
    <LanguagePacks>
    <LanguagePack ID="ENU" IsDefault="true">
    <DisplayStrings>
    <DisplayString ElementID="AlertTestMP.AlertDiscTestMonitor">
    <Name>AlertDiscTestMonitor</Name>
    <Description>Description for the new unit monitor.</Description>
    </DisplayString>
    <DisplayString ElementID="AlertTestMP.AlertDiscTestMonitor.AlertMessage">
    <Name>TestAlertMonitor</Name>
    <Description>Event Description: {0}</Description>
    </DisplayString>
    <DisplayString ElementID="AlertTestMP.AlertDiscTestMonitor" SubElementID="FirstEventRaised">
    <Name>FirstEventRaised</Name>
    <Description>FirstEventRaised</Description>
    </DisplayString>
    <DisplayString ElementID="AlertTestMP.AlertDiscTestMonitor" SubElementID="SecondEventRaised">
    <Name>SecondEventRaised</Name>
    <Description>SecondEventRaised</Description>
    </DisplayString>
    </DisplayStrings>
    </LanguagePack>
    </LanguagePacks>
    </ManagementPack>
    Hi Yan,
    Attached is the MP that iam using.
    SourceDepot.SDMonitoringSyntheticTest.SDWatcher.SDDepotDiscovery is the class which actually discovers the inputs. As of now there is no probe action to trigger the exe, iam doing it manually, but still i see an alert raised for all of the inputs discovered
    even if only 1 input has failed.
    Regards, Mahadev Sundeep Maruvada

  • Log4j for individual classes

    Hi,
    I defined a log4j.properties file in my class directory:
    log4j.defaultInitOverride=false
    log4j.rootLogger=DEBUG, R, S
    log4j.appender.R=org.apache.log4j.RollingFileAppender
    log4j.appender.R.File=R.log
    log4j.appender.R.MaxFileSize=100KB
    log4j.appender.R.MaxBackupIndex=0
    log4j.appender.R.layout=org.apache.log4j.PatternLayout
    log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
    log4j.appender.S=org.apache.log4j.RollingFileAppender
    log4j.appender.S.File=S.log
    log4j.appender.S.MaxFileSize=100KB
    log4j.appender.S.MaxBackupIndex=0
    log4j.appender.S.layout=org.apache.log4j.PatternLayout
    log4j.appender.S.layout.ConversionPattern=%p %t %c - %m%n
    Then I used the Logger in loginAction.java:
    private Logger logger = Logger.getLogger("R");
    logger.setAdditivity(false);
    logger.info("LoginAction");
    and in OracleDAOFactory.java:
    private Logger logger = Logger.getLogger("S");
    logger.setAdditivity(false);
    logger.info("Connected to DB from customer DAO");
    what I want to achieve is to record the information for loginAction in R.log and record the information for OracleDAOFactory in S.log. But do NOT accumulate loginAction's information into OracleDAOFactory, and vice versa.
    The above codes work properly if I remove the line "logger.setAdditivity(false);". The result is both log files have the contents. But if I add the line "logger.setAdditivity(false);", I get the following error message:
    log4j:WARN No appenders could be found for logger (S).
    log4j:WARN Please initialize the log4j system properly.
    What is wrong with my above coding?
    Thanks for your help!
    Message was edited by:
    [email protected]
    Message was edited by:
    [email protected]

    http://forums.java.net/jive/thread.jspa?threadID=75990&tstart=0

  • Multiple beans getting created for a single jsf page

    Hi all,
    I am developing UI pages using JSF in 'IBM Websphere studio Application developer.'
    Suddenly I have started facing some weired problem.
    I have one jsp file 'Schedule_Process.jsp' and
    corresponding bean file 'Schedule_Process.java'.
    Everytime I run the jsp page a new bean file gets created with suffixes as 1,2,3...
    So i have 'Schedule_Process1.java', 'Schedule_Process2.java'.....for a single jsp file.
    The jsp file gets mapped to the newly created bean file. The mapping entry automatically comes in faces-config.xml file.
    Thus my bean code is divided into multiple beans.
    Sometimes this code run but sometimes it doesnot.
    To get everthing working i have to remove extra mapping entires from faces-config.xml. Also have to delete all new versions of bean files except the latest one. and then i have to rename the latest file(with number as suffix) to remove the suffix.
    This works sometimes but there no guarantee that it will work.
    I desparately want to know the reason behind this problem.
    Any help on this issue will be greatly appreciated.
    Thanks a lot in advance!!!

    Make sure in the faces-config.xml file you have
    your managed bean set a session.
    <managed-bean-scope>session</managed-bean-scope>
    and assure that you have the follwoing lines of code in the web.xml file
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    Hope this helps

  • Multiple processes getting created for weblogic instance.

    multiple process creating for weblogic instance. which lead to slow performance.
    /home/dz84tl> ptree 24524
    1464 zsched
    24524 /usr/bin/ksh /usr/local/bea/wls92/domains/gqts/bin/startWebLogic_gqts001 nodebu
    24547 /usr/local/bea/wls92/jdk150_22/bin/java -server -Xms1024m -Xmx1024m -XX:NewRati
    3401 /usr/local/bea/wls92/jdk150_22/bin/java -server -Xms1024m -Xmx1024m -XX:NewRati
    It is supposed to be only one child process but there are multiple.

    Hi,
    Nodemanager is not used to start the managed server.
    below is the snnipet:-
    Bgqts 26106 1464 0 May 11 ? 0:00 /usr/bin/ksh/usr/local/bea/wls92/domains/gqts/bin/startWeblogicgqts001_ nodebu
    Bgqts 22800 22799 0 08:51:35 ? 0:01 grep Bgqts
    Bgqts 26125 26106 1 May 11 ? 1004:14 /usr/local/bea/wls92/jdk105_22/bin/java -server -Xms1024m -Xmx1024m -XX:NewRati
    Bgqts 13775 26125 0 06:17:03 ? 0:0 /usr/local/bea/wls92/jdk105_22/bin/java -server -Xms1024m -Xmx1024m -XX:NewRati
    Bgqts 26646 1464 0 May 11 ? 0:00 /usr/bin/ksh/usr/local/bea/wls92/domains/gqt/sbin/startWeblogic.sh
    Bgqts 26678 26646 0 May 11 ? 9:05 /usr/local/bea/wls92/jdk105_22/bin/java -server -Xms512m -Xmx512m -XX:MaxPermSii
    Bgqts 24187 26125 0 11:20:32 ? 0:00 /usr/local/bea/wls92/jdk105_22/bin/java -server -Xms1024m -Xmx1024m -XX:NewRatii
    Bgqts 14710 26125 0 8:13:19 ? 0:00 /usr/local/bea/wls92/jdk105_22/bin/java -server -Xms1024m -Xmx1024m -XX:NewRati
    As I understood there is some time gap between this process creation.also we can see here even after using startWeblogic.sh instances are getting created.
    There are other two domains but in those domains this problem is not seen. only gqts domain has this issue.also in other two domains the same script is used.
    Really not getting what can be the reason behind this process creation.
    Does it mean startWeblogic.sh is creating processes?
    or the application which are deployed on managed servers are responsible for it?
    Thanks in Advance.

  • Multiple HTTP Servers, 1 for HTTP and other for HTTPS

    I am trying to install 9ias 1.0.2.2.2 on 2 machines both running solaris. 1st machine hosts the database (8.1.7.4) and the other hosts the App server (9ias), what i am tryin to achive is have 2 listeneres. One for HTTP traffic and other for HTTPS traffic. Have anyone configured this and could shed some light and enlighten me.
    With all the notes i have read i have understood that i need to basically install 2 instance of Apache in 2 different Oracle Homes. but my question is how can i just have one portal repository. or rather i should say if somebody could guide me from installing the 2 instance of Apache.
    Thanks
    Mir

    You left out Twixl.
    Bob

Maybe you are looking for

  • Call winhelp from ABAP programs

    Hi, I'm trying to display a windows help file in my ABAP application. The idea: by pressing the info-button it should display the file "Info.chm". I can display the file, if it is placed locally on the client machine, but I want to store it in the sy

  • PSE6 crashing after Vista update

    I had PSE6 open and last night I got a Microsoft update for Vista that automatically restarted my computer.  Now I can't open a psd without PSE6 crashing.   I can open a psd by right clicking on it and picking to open with PSE6, but I can't open it f

  • Portfolio building - Ideas?

    Hi folks, I'm trying to build a portfolio of eLearning content/Captivate projects. Nearly all of the Captivate projects I've worked on so far have been confidential or NDA projects that I can't share, and that has posed a problem for finding more wor

  • Purchasing/shopping cart issue

    My computer recently crashed and luckily I was able to re-load all my songs back from my ipod to iTunes - thanks to your help over here! But now my concern is something else: Since I first got iTunes, I have downloaded updates, but when my computer c

  • Where can i find the blocks of feedforward system?

    Hi, I would like to create a feedforward system. However from what i've learn in a feedforward system i'll need a gain, deadtime and lead-lag block, where can i find these 3 blocks? i'm using LB8.2 and in the example finder i can only find 1 example,