How to apply metrics for different platform

Hi,
If a metric has different code for different platform, or the metric only runs on some specific type of system, how can we apply it to a group of hosts?
For example, I have a metric that checks only Sun T3 types of systems. I can create a group of hosts that are T3 type system, but how do I apply the metric to this group?
The other example is the way to collect data is different for Soaris and Linux platform, can I have 2 metrics, one apply to the group of Solaris machines, and the other apply to the group of Linux machines?
Thanks.

Hi,
You can use EM groups and monitoring templates to accomplish what you want to do. For example, create a group for Solaris hosts and a template to push out appropriate metric settings for the group.
Documentation links:
- EM groups:
http://docs.oracle.com/cd/E24628_01/doc.121/e24473/group_management.htm#DAFHBFCB
- Monitoring templates:
http://docs.oracle.com/cd/E24628_01/doc.121/e24473/monitor_overview.htm#sthref38
Regards,
- Loc

Similar Messages

  • How to apply license for SSM 7.5 & Netweaver CE 7.1?

    How to apply license for SSM 7.5 & Netweaver CE 7.1?
    My application server java in SAPMMC: appear message: no valid license found.
    Acually we already bought license and download,
    So, how to solve this license problem?

    Chamnap,
    When your NetWeaver license expires, it can be restarted, but will only run for 1/2 hour, to allow installing a new license.
    Step 1- Start NetWeaver CE from the control console
    Step 2 - Log on to NetWeaver Administrator http:///[server]:50000/nwa and go to Configuration tab then Infrastructure sub-tab, then Licenses
    Step 3 -  Make note of your System Number and Active Hardware Key in the System Parameters section
    Step 4 - Navigate to the Service Marketplace http://service.sap.com/licensekey
    Step 5 - You are looking for SAP Business Suite - SAP Products with ABAP Stack, Without ABAP stack (WEB AS Java-J2EE Engine) SAP Enterprise Portal link
    Step 6 - Fill in your Hardware Key and System # -  Make sure you choose this License Type: J2EE Engine - Web Application Server Java (it is not the default selection)
    Step 7 - A message at the bottom of the page will note a new key has been generated and you can Download the txt file needed (you also receive an email with the info as well)
    Step 8 - (Restart NetWeaver CE - if its timed-out) On the Licenses page of nwa click Install from File > Browse to the txt doc you downloaded and ADD
    You now have the new license install. Make note of the date to schedule the time for any future updates, so that service is not interrupted.
    If you cannot access the license key on the Service Marketplace you will need to contact your SAP account representative.
    Regards,
    Bob

  • How to view site on different platforms

    I am working on a site that I have nearly completed. I am
    using Windows XP
    and have tested it on the latest four major browsers. I do
    not have access
    to a Mac computer though or earlier additions of said
    browsers. I am
    interested in hearing how the page renders on different
    platforms. Would
    anyone here be interested in having a look at the sight, when
    I am done, and
    giving some feedback on how it renders on their screen etc?
    Or would this be
    frowned upon as outside the parameters of this forum? If so,
    could anyone
    direct me to a place where I might obtain this information?
    Thank you.
    Best Regards,
    Webdesigner

    Post a link....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Webdesigner" <[email protected]> wrote in message
    news:f2ulvp$qvq$[email protected]..
    >I am working on a site that I have nearly completed. I am
    using Windows XP
    >and have tested it on the latest four major browsers. I
    do not have access
    >to a Mac computer though or earlier additions of said
    browsers. I am
    >interested in hearing how the page renders on different
    platforms. Would
    >anyone here be interested in having a look at the sight,
    when I am done,
    >and giving some feedback on how it renders on their
    screen etc? Or would
    >this be frowned upon as outside the parameters of this
    forum? If so, could
    >anyone direct me to a place where I might obtain this
    information?
    >
    > Thank you.
    >
    > Best Regards,
    > Webdesigner
    >

  • How to Generate 997 for different trading partner with different Interchang

    How to Generate 997 for different trading partner with different InterchangIDS
    We are planning to use same working “ABC -> XYZ (Host)” 850 “ecs” file even for “EFG -> XYZ (Host)” 850 Transaction. And we have successfully implemented without any issues.
    We wanted to send 997 Acknowledgement in case of “EFG -> XYZ (Host)” 850 transaction.
    In this case also we would like to use same “ecs” file which has been used for “XYZ (Host) -> ABC”.
    After adding the 997 capabilities to Stanley I don’t see any extra capability added to “XYZ (Host)” trading partner.
    The generated 997 for Stanely EDI file doesn’t reflect the “XYZ (Host)” trading partner Interchange ID. It is getting reflected the previous 997 Transaction “XYZ (Host)” Intercahnge ID.
    We use following Interchange ID’s
    ABC = 005381447
    XYZ (Host) = 049894764
    EFZ = SWEOT30013
    XYZ (Host) = 5273851T
    The 997 which is generated has the InterchangeID as this “049894764” instead of “5273851T”
    Regards
    Ravi

    Hi Ravi,
    You have to have the two Delivery Channels under Host TP's communication capability. One host delivery channel should be used with one TP only and will have specific values to that TP.
    Go to the Exchange Protocol Parameters of Host TP (XYZ) delivery channel (which you are using in the agreement with EFZ) and provide the required values here. Revalidate and redeploy the agreements and run a test. Let us know if you still face issue.
    Regards,
    Anuj

  • How many MDM certificates for different MDM servers can be generated under one  Apple Developers  Subscription

    Hello All
    Please say how many MDM certificates for different MDM servers can be generated under one Apple Developers Subscription?
    Thanks in advance

    So no Meraki MDM?
    Supports Multiple VPP accounts, completely free, fully encrypted, and quite secure.
    Otherwise, you might want to take a look at the mdm that Spiceworks has.

  • Determine component height for different platform

    Hi, all
    It just came to me, how can I determine optimal component height for JLabel,JTextField while calling setPreferredSize on different platform? Different screen dpi,fonts,etc. Is there a guide line, so each component will be not too small?
    Thanks,
    Vincent Chen

    But I need to call setPreferredSize to arrange screen display while using flow layout. Under some situation, flow layout is my only choice. Any solution?

  • How to implement aggregation for different date periods

    We have a report which shows various metrics for a given date period, selected by date prompts.
    The problem is that one of the metrics should show data only for the first day in the range, selected by the prompt.
    So, for example, if user selects in the prompt the range Oct 1 - Oct 10, then that particular column should only show data for Oct 1, while all others - for Oct 1 - Oct 10.
    Any suggestions how to implement this would be appreciated.

    Please try to play around with case statements in the fact column.

  • How to track cost for different Vendors through SAP PM

    Hi
    Maintenance needs to discuss with SAP PM Consultant for tracking the different vendor for civil, painting and external services jobs from asset locations and class. It means that total expenses of Civil, Painting and external services jobs for different locations should be easily gathered.
    Also ,As temporary solution of identifying posting for different vendors, how maintenance will be able to find actual amount posted for different vendors
    Regards
    chand

    Hi
    can you tell me where we can make control
    When RFQ is created the PR is not allowed to change when the PR is manually created & it is working perfectly.
    but when PR is created thorugh work order then even if RFQ is created/released  it is allowing to change PR when created throogh work order
    Please tell me where is control
    Regards
    chand

  • How to Configure Adapter for different environments?

    Hi
    I wanted to know solution to a pratical problem. If a communication channel is created by configuring a adapter, how is the configuration managed for different phases of the life cycle  i,e when it goes from development to QA to Production. A adapter may need to be configured differently depending upon the environment it is in. I hope one doesn't have to change it every time it is taken from one environment to another. Is there any concept like properties file in XI?
    Vijay

    HI,
    In general the Same evironment should be in both Dev and QA and also in Prod .
    Whatever we developed in Dev environment , if you transport it to QA , the same should work, similarly in Prod also.
    We have certain fecilities like cutomising the Communication channel with the Communication Channel Template.With this we can configure as per our needs.
    Eventhough it is not sufficient to meet your BS requirement , then we need to have
    Dynamic configuration see the below link for more details
    Dynamic configuration in adapter modules - /people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules
    Dynamic Configuration of Some Communication Channel Parameters using Message Mapping -
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    Regards
    Chilla

  • How to do mosaic for different two georaster object?

    I have done mosaic for single georaster object, But I can't do it for different two georaster object. Oracle returned the error: ORA-13419.
    My PL/SQL code is:
    DECLARE
    gr sdo_georaster;
    BEGIN
    INSERT INTO georaster_table (georid, georaster) VALUES (1, sdo_geor.init('rdt_1')) RETURNING georaster INTO gr;
    sdo_geor.mosaic('city_images', 'image', gr, null);
    UPDATE georaster_table SET georaster=gr WHERE georid=1;
    END;
    There are two rows in city_images.I want to know how to set these data?

    Will,
    in general, all the images should be georeferenced. otherwise it would not make too much sense to do mosaic. so, you might want to load real image data from either georeferenced GeoTIFF files or TIFF plus TFW files.
    but GeoRaster doesn't require the images must be georeferenced. In GeoRaster, any image can have a different ULT coordinate, which doesn't have to be (0,0). This is a special feature of GeoRaster, in considering most formats always treat the upper-left corner pixel of an image as the origin (0,0) only. So in the cell space, non-georeferenced images can be co-located in different areas and so they can be mosaicked as well. specifically, you loaded two GIF files. their current ULT coordinates in georaster must be (0,0). If you setup the UTL coordinates of them differently and properly, then you shall be able to do the mosaicking. the functions you can use are getULTCoordinate and setULTCoordinate.
    hope this helps
    Jeffrey

  • How to apply condition for 3 countries out of 6 counties (in smartforms)

    Moved to correct forum
    hi friends,
    i have a requirement in SMARTFORMS...
    my requirement: i need to implement some logic which should effect only 3 countries out of 6 countries.
    now i implemented my logic but the thing is how to restric only for 3 countries?
    do i need to write the condition in program line like:
    IS_BIL_INVOICE-HD_ORG-SALESORG  = 'O110'
    IS_BIL_INVOICE-HD_ORG-SALESORG  = 'Y110'
    IS_BIL_INVOICE-HD_ORG-SALESORG  = 'W110'
    or
    do i need to write condition like:
    IS_BIL_INVOICE-HD_ORG-SALESORG  = 'O110'
    OR
    IS_BIL_INVOICE-HD_ORG-SALESORG  = 'Y110'
    OR
    IS_BIL_INVOICE-HD_ORG-SALESORG  = 'W110'
    please guide me...
    thanks in advance,
    Edited by: Matt on Mar 23, 2009 10:09 AM

    Hi,
    your 2 (second) option (with the OR) is the right one.
    Gr., Frank
    added the SAP help for the operands to inform GURU RAM.
    SAP Smart Forms: operand                                                                               
    Specification of a field name or operand                                                                               
    Use                                                                               
    Within a Smart Form a node and all inferior nodes are processed only if
        the respective output condition is true. A condition can either be a   
        logical expression on field values or consist of events or position    
        queries in the form processing.                                                                               
    You can determine a condition as logical expression using a table      
        control. Each line of the table control consists of a field name, a    
        comparison operator, and a comparison value. The comparison value can  
        itself be a field name. As compariosn operators, the ABAP operators  =,
        <>, <, >, <=, >=, CP (contains pattern) and NP (not contains pattern)  
        are allowed.                                                                               
    All lines of the table control are linked with the logical AND. In     
        addition, you can use a pushbutton of the table control to insert an OR
        link for comparisons. In the table control, it is displayed as line with
        gray background. The Check function checks whether all field names that
        appear in the comparisons are declared in the form interface or in the 
        global data of the form.                                                                               
    See also: Determining OutputConditions

  • How to Apply Databank for 2 or more than 2 fields?

    hi,
    Suppose on a form we have 2 fields like First name and Last name . So in .csv file I have given like First Name,Last Name (comma separated) and my databank file gets created.
    But before playing back the application , how can i attach the databank(.csv file) for 2 different script nodes in Tree View?
    If i try to substitue variable , where i have to apply databank then at the time of applying to First Name field it fetches the value for both of the fields value i.e First Name, Last Name
    So at the time of playback the application for First Name field it will fetch the value for both First name, Last Name.

    hi,
    Suppose my form contains the following fields as:
    Project,Category,Start Time,End Time,Task Assigned,Task Description
    and I want to apply databank values for these fields
    Steps which i do are as follows.
    1. First of all i Configure the databank file as:
    Project,Category,Start Time,End Time,Task Assigned,Task Description
    and the values pass are :
    Orgnization Process,General,13: 00,14 : 00,test1,test2(in the first row)
    NMDGF,General,14:00,15:00,test3,test4(in the second row).
    2. After configuring the databank file i have to link with Script node. But since there are more than one fields so how i can link the csv file with script node?
    as for the single variable script node , i just substitute the value and link with the databank file its work perfectly fine and it add the folowing code in java code
    getDatabank("Timesheet Project").getNextDatabankRecord(); in the starting of run function
    3. So i have to add custom code for fetching the value for the next field? As I am not so gud in Java Code so what wil be the code to fetch the values for the next field from CSV file

  • How Many Installs Allowed/ How To Apply to 3 different Macs?

    Since we are no longer dealing with a disc, can you install the new Lion upgrade on 3 different Macs, purchasing only one for the $29.00, or do you have to buy Lion for each individual computer?  If you can install onto other Macs with one purchase, how do you install on each individual Mac?  Thanks for any advice

    You are allooweed up to 5 Macs.
    However beware as the installer self distructs on use so you have to clone it *before* you upgrade.
    Simply Download from the Applestore and copy the installer to your two other Mac *then* run it.
    Make sure you do all the pre-installation checks, upgrades, compatibility checks and backups before you upgrade.
    Regards,
    Shawn

  • How to apply Authentication for a webservice getting SOAPFaultException :(

    Hi ,
    I am working with weblogic 10.1.3 and running build.xml in eclipse for EE
    I would like to know the steps to include security parameters to authenticate with weblogic server and call webservice
    I have written a build.xml that takes input as wsdl , When I run the build.xml it generates
    all the necessary stubs and interfaces
    I have written a main program that imports generated classes and invoke the webservice method
    below are buidl.xml and two classes( main program and one java class) which I used to invoke webservice
    Build.xml
    =====
    <project name="webservices-simple_client" default="all">
    <!-- set global properties for this -->
    <property name="wls.hostname" value="localhost" />
    <property name="wls.port" value="8002" />
    <property name="example-output" value="output" />
    <property name="clientclass-dir" value="${example-output}/srcclasses" />
    <property name="clientclassfiles-dir" value="${example-output}/classfiles" />
    <path id="client.class.path">
    <pathelement path="${clientclass-dir}" />
    <pathelement path="${java.class.path}" />
    </path>
    <taskdef name="clientgen" classname="weblogic.wsee.tools.anttasks.ClientGenTask" />
    <target name="clean">
    <delete dir="${clientclass-dir}" />
    <delete dir="../src/com/bea/wlcp/wlng/ws/presence" />
    <delete dir="../src/org/csapi/schema/paralyx/common/v2_1" />
    <delete dir="../src/org/csapi/schema/paralyx/presence/consumer/v2_3/local" />
    <delete dir="../src/org/csapi/schema/parlayx/presence/v2_3" />
    <echo message="Cleaning Completed" />
    </target>
    <target name="build-client">
    <clientgen wsdl="http://${wls.hostname}:${wls.port}/parlayx21/presence/PresenceConsumer?WSDL" destdir="${clientclass-dir}" generatepolicymethods="true" packageName="com.bea.wlcp.wlng.ws.presence" />
    <javac srcdir="${clientclass-dir}" destdir="${clientclassfiles-dir}" includes="*/.java" />
    <copy overwrite="true" todir="../src">
    <fileset dir="${clientclass-dir}" />
    </copy>
    <copy overwrite="true" todir="../src">
    <fileset dir="${clientclassfiles-dir}" />
    </copy>
    <delete dir="${clientclass-dir}" />
    <delete dir="${clientclassfiles-dir}" />
    <echo message="Building Completed" />
    </target>
    <target name="all" depends="clean,build-client" />
    </project>
    ======================================================
    import java.net.URI;
    import javax.xml.rpc.Stub;
    import javax.xml.ws.BindingProvider;
    import java.net.Proxy;
    import java.net.InetSocketAddress;
    import java.util.ArrayList;
    import java.util.List;
    import weblogic.webservice.wsdl.WsdlPort;
    import weblogic.wsee.connection.transport.http.HttpTransportInfo;
    import weblogic.wsee.jaxrpc.ServiceImpl;
    import org.csapi.schema.parlayx.common.v2_1.PolicyException;
    import org.csapi.schema.parlayx.common.v2_1.SimpleReference;
    import org.csapi.schema.parlayx.presence.consumer.v2_3.local.SubscribePresence;
    import org.csapi.schema.parlayx.presence.consumer.v2_3.local.SubscribePresenceResponse;
    import com.bea.wlcp.wlng.et.core.module.session_manager.GTUsernameTokenPolicy;
    import com.bea.wlcp.wlng.et.core.module.session_manager.SessionManagerService_Impl;
    import com.bea.wlcp.wlng.ws.presence.PresenceConsumer;
    import com.bea.wlcp.wlng.ws.presence.PresenceConsumerService_Impl;
    import com.bea.wlcp.wlng.ws.sessionmanager.SessionManager;
    import com.bea.wlcp.wlng.ws.sessionmanager.SessionManagerService;
    import weblogic.wsee.security.unt.ClientUNTCredentialProvider;
    import weblogic.xml.crypto.wss.WSSecurityContext;
    import weblogic.xml.crypto.wss.provider.CredentialProvider;
    @SuppressWarnings("deprecation")
    public class Main {
    @SuppressWarnings("unchecked")
    public static void main(String[] args) throws javax.xml.rpc.ServiceException,PolicyException{
    try{
    /*PresenceConsumerService_Impl pcs_impl = new PresenceConsumerService_Impl("http://localhost:8002/parlayx21/presence/PresenceConsumer?WSDL");
    PresenceConsumer pc = (PresenceConsumer) pcs_impl.getPresenceConsumer();
    UserCredentialsvalidation gt = new UserCredentialsvalidation("sdpai","sdp");*/
    SimpleReference rf = new SimpleReference();
    rf.setCorrelator("correlatorid");
    rf.setEndpoint(URI.create("http://localhost:8002/PresenceConsumerService/services/PresenceConsumer"));
    rf.setInterfaceName("PresenceConsumer");
    SubscribePresence sb = new SubscribePresence();
    sb.setApplication("sdp");
    sb.setPresentity(URI.create("tel:1234"));
    sb.setReference(rf);
    System.out.println(" Before calling subscribe presence ==" );
    //SubscribePresenceResponse spr = pc.subscribePresence(sb);
    System.out.println(" Hi There here 2226678565");
    System.out.println(" Hi There here 333");
    //raja
    String strUrl = "http://localhost:8002/parlayx21/presence/PresenceConsumer?WSDL";
    Stub objStub = (Stub) new PresenceConsumerService_Impl().getPresenceConsumer();
    objStub._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY,"sdpai");
    objStub._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY,"sdp");
    objStub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,strUrl);
    PresenceConsumer port = (PresenceConsumer) objStub;
    String returnVal = "";
    System.out.println(" Hi There here 77");
    SubscribePresenceResponse spr = port.subscribePresence(sb);
    System.out.println(spr);
    //ended here
    catch(Exception e)
    e.printStackTrace();
    =======================================
    UserCredentialsvalidation.java
    import com.bea.wlcp.wlng.et.core.module.session_manager.SessionManagerService_Impl;
    import com.bea.wlcp.wlng.schema.ews.common.ServiceException;
    import com.bea.wlcp.wlng.ws.sessionmanager.SessionManager;
    import com.bea.wlcp.wlng.ws.sessionmanager.SessionManagerService;
    import weblogic.wsee.security.unt.ClientUNTCredentialProvider;
    import javax.xml.rpc.Stub;
    import java.util.ArrayList;
    import java.util.List;
    public class UserCredentialsvalidation implements PolicyBase {
    private String username;
    private String password;
    public UserCredentialsvalidation(String username, String password) {
    this.username = username;
    this.password = password;
    String sessionManagerURL="http://localhost:8002/session_manager/SessionManager";
    SessionManagerService accessservice = null;
    try {
    accessservice = (SessionManagerService) new SessionManagerService_Impl(sessionManagerURL+"?WSDL");
    SessionManager port = accessservice.getSessionManager();
    System.out.println(" port >>>>>");
    System.out.println(" port >>>>>" +port);
    UserCredentialsvalidation pbase = new UserCredentialsvalidation();
    pbase.prepareStub((Stub)port,username,password);
    } catch (Exception e) {
    System.out.println(" helo helo");
    // TODO Auto-generated catch block
    e.printStackTrace();
    public UserCredentialsvalidation() {
    // TODO Auto-generated constructor stub
    public void prepareStub(Stub stub,String username,String password) throws Exception {
    List<ClientUNTCredentialProvider> credProviders = new ArrayList<ClientUNTCredentialProvider>();
    System.out.println(" username >>> " + username.getBytes());
    System.out.println(" password >>> " + password.getBytes());
    credProviders.add(new ClientUNTCredentialProvider(username.getBytes(),
    password.getBytes()));
    System.out.println("setting standard wssec");
    stub._setProperty("weblogic.wsee.security.wss.CredentialProviderList",
    credProviders);
    System.out.println("Getting property from stub== " + stub._getProperty("weblogic.wsee.security.wss.CredentialProviderList"));
    @Override
    public void prepareStub(Stub port) throws Exception {
    // TODO Auto-generated method stub
    =========================================
    When I run the main program I am getting below exception
    Before calling subscribe presence ==
    Hi There here 2226678565
    Hi There here 333
    Hi There here 77
    java.rmi.RemoteException: SOAPFaultException - FaultCode {http://schemas.xmlsoap.org/soap/envelope/}Server FaultString Unable to add security token for identity FaultActor nullNo Detail; nested exception is:
    weblogic.wsee.jaxrpc.soapfault.WLSOAPFaultException: Unable to add security token for identity
    at com.bea.wlcp.wlng.ws.presence.PresenceConsumer_Stub.subscribePresence(PresenceConsumer_Stub.java:37)
    at Main.main(Main.java:62)
    Caused by: weblogic.wsee.jaxrpc.soapfault.WLSOAPFaultException: Unable to add security token for identity
    at weblogic.wsee.codec.soap11.SoapCodec.decodeFault(SoapCodec.java:355)
    at weblogic.wsee.ws.dispatch.client.CodecHandler.decodeFault(CodecHandler.java:115)
    at weblogic.wsee.ws.dispatch.client.CodecHandler.decode(CodecHandler.java:100)
    at weblogic.wsee.ws.dispatch.client.CodecHandler.handleFault(CodecHandler.java:88)
    at weblogic.wsee.handler.HandlerIterator.handleFault(HandlerIterator.java:309)
    at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:269)
    at weblogic.wsee.ws.dispatch.client.ClientDispatcher.handleResponse(ClientDispatcher.java:213)
    at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:150)
    at weblogic.wsee.ws.WsStub.invoke(WsStub.java:87)
    at weblogic.wsee.jaxrpc.StubImpl._invoke(StubImpl.java:337)
    at com.bea.wlcp.wlng.ws.presence.PresenceConsumer_Stub.subscribePresence(PresenceConsumer_Stub.java:32)
    ... 1 more
    Caused by: weblogic.xml.crypto.wss.WSSecurityException: Unable to add security token for identity
    at weblogic.wsee.security.wss.SecurityPolicyDriver.processIdentity(SecurityPolicyDriver.java:175)
    at weblogic.wsee.security.wss.SecurityPolicyDriver.processOutbound(SecurityPolicyDriver.java:73)
    at weblogic.wsee.security.WssClientHandler.processOutbound(WssClientHandler.java:71)
    at weblogic.wsee.security.WssClientHandler.processRequest(WssClientHandler.java:55)
    at weblogic.wsee.security.WssHandler.handleRequest(WssHandler.java:74)
    at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:141)
    at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:107)
    at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:132)
    ... 4 more
    ==========================================================
    I am working for 3 days to solve this issue, but helpless
    Please tell me I am going in right way , I read many forums and implemented different ways , but getting same problem, that too before calling webservice method .
    Do i need to do anything more apart from adding username and password parameters
    Please tell me the exact steps how to perform authentication with webservices
    Your answer will help me a lot .
    Thanks in Advance
    Regards
    Rajasekhar

    Please find the modified file Main.java
    import java.net.URI;
    import javax.xml.rpc.Stub;
    import javax.xml.ws.BindingProvider;
    import java.net.Proxy;
    import java.net.InetSocketAddress;
    import java.util.ArrayList;
    import java.util.List;
    import weblogic.webservice.wsdl.WsdlPort;
    import weblogic.wsee.connection.transport.http.HttpTransportInfo;
    import weblogic.wsee.jaxrpc.ServiceImpl;
    import org.csapi.schema.parlayx.common.v2_1.PolicyException;
    import org.csapi.schema.parlayx.common.v2_1.SimpleReference;
    import org.csapi.schema.parlayx.presence.consumer.v2_3.local.SubscribePresence;
    import org.csapi.schema.parlayx.presence.consumer.v2_3.local.SubscribePresenceResponse;
    import com.bea.wlcp.wlng.et.core.module.session_manager.GTUsernameTokenPolicy;
    import com.bea.wlcp.wlng.et.core.module.session_manager.SessionManagerService_Impl;
    import com.bea.wlcp.wlng.ws.presence.PresenceConsumer;
    import com.bea.wlcp.wlng.ws.presence.PresenceConsumerService_Impl;
    import com.bea.wlcp.wlng.ws.sessionmanager.SessionManager;
    import com.bea.wlcp.wlng.ws.sessionmanager.SessionManagerService;
    import weblogic.wsee.security.unt.ClientUNTCredentialProvider;
    import weblogic.xml.crypto.wss.WSSecurityContext;
    import weblogic.xml.crypto.wss.provider.CredentialProvider;
    @SuppressWarnings("deprecation")
    public class Main {
         @SuppressWarnings("unchecked")
         public static void main(String[] args) throws javax.xml.rpc.ServiceException,PolicyException{
         try{
         /*PresenceConsumerService_Impl pcs_impl = new PresenceConsumerService_Impl("http://localhost:8002/parlayx21/presence/PresenceConsumer?WSDL");
         //PresenceConsumer pc = (PresenceConsumer) pcs_impl.getPresenceConsumer();*/
         UserCredentialsvalidation gt = new UserCredentialsvalidation("sdpai","sdp");
         SimpleReference rf = new SimpleReference();
         rf.setCorrelator("correlatorid");
         rf.setEndpoint(URI.create("http://localhost:8002/PresenceConsumerService/services/PresenceConsumer"));
         rf.setInterfaceName("PresenceConsumer");
         SubscribePresence sb = new SubscribePresence();
         sb.setApplication("sdp");
         sb.setPresentity(URI.create("tel:1234"));
         sb.setReference(rf);
         System.out.println(" Before calling subscribe presence ==" );
         //SubscribePresenceResponse spr = pc.subscribePresence(sb);
         System.out.println(" Hi There here 2226678565");
         System.out.println(" Hi There here 333");
         //raja
         String strUrl = "http://localhost:8002/parlayx21/presence/PresenceConsumer?WSDL";
         Stub objStub = (Stub) new PresenceConsumerService_Impl().getPresenceConsumer();
         objStub._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY,"sdpai");
         objStub._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY,"sdp");
         objStub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,strUrl);
         PresenceConsumer port = (PresenceConsumer) objStub;
         String returnVal = "";
         System.out.println(" Hi There here 77");
         SubscribePresenceResponse spr = port.subscribePresence(sb);
         System.out.println(spr);
         //ended here
              catch(Exception e)
                   e.printStackTrace();
    ==============================
    When I run the main program getting below exception
    port >>>>>
    port >>>>>com.bea.wlcp.wlng.ws.sessionmanager.SessionManager_Stub@19c0bd6
    username >>> [B@1cd280b
    password >>> [B@29ac
    setting standard wssec
    Getting property from stub== [[ClientUNTCredentialProvider: username=sdpai password=is set]]
    Before calling subscribe presence ==
    Hi There here 2226678565
    Hi There here 333
    Hi There here 77
    java.rmi.RemoteException: SOAPFaultException - FaultCode [{http://schemas.xmlsoap.org/soap/envelope/}Server] FaultString [Unable to add security token for identity] FaultActor [null]No Detail; nested exception is:
         weblogic.wsee.jaxrpc.soapfault.WLSOAPFaultException: Unable to add security token for identity
         at com.bea.wlcp.wlng.ws.presence.PresenceConsumer_Stub.subscribePresence(PresenceConsumer_Stub.java:37)
         at Main.main(Main.java:62)
    Caused by: weblogic.wsee.jaxrpc.soapfault.WLSOAPFaultException: Unable to add security token for identity
         at weblogic.wsee.codec.soap11.SoapCodec.decodeFault(SoapCodec.java:355)
         at weblogic.wsee.ws.dispatch.client.CodecHandler.decodeFault(CodecHandler.java:115)
         at weblogic.wsee.ws.dispatch.client.CodecHandler.decode(CodecHandler.java:100)
         at weblogic.wsee.ws.dispatch.client.CodecHandler.handleFault(CodecHandler.java:88)
         at weblogic.wsee.handler.HandlerIterator.handleFault(HandlerIterator.java:309)
         at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:269)
         at weblogic.wsee.ws.dispatch.client.ClientDispatcher.handleResponse(ClientDispatcher.java:213)
         at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:150)
         at weblogic.wsee.ws.WsStub.invoke(WsStub.java:87)
         at weblogic.wsee.jaxrpc.StubImpl._invoke(StubImpl.java:337)
         at com.bea.wlcp.wlng.ws.presence.PresenceConsumer_Stub.subscribePresence(PresenceConsumer_Stub.java:32)
         ... 1 more
    Caused by: weblogic.xml.crypto.wss.WSSecurityException: Unable to add security token for identity
         at weblogic.wsee.security.wss.SecurityPolicyDriver.processIdentity(SecurityPolicyDriver.java:175)
         at weblogic.wsee.security.wss.SecurityPolicyDriver.processOutbound(SecurityPolicyDriver.java:73)
         at weblogic.wsee.security.WssClientHandler.processOutbound(WssClientHandler.java:71)
         at weblogic.wsee.security.WssClientHandler.processRequest(WssClientHandler.java:55)
         at weblogic.wsee.security.WssHandler.handleRequest(WssHandler.java:74)
         at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:141)
         at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:107)
         at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:132)
         ... 4 more

  • How to view metrics for JVM on the database side

    I am using lob in a stored procedure. I understand that this uses the JVM.
    I would like to know how to easily view the JVM metrics.
    Thanks,
    Charles Li

    I am running a stored procedure that uses getXML. I would like to know how much memory its using up. I was told to increase the java pool, but it did not help with large query of getXML. What should I monitor for getXML?
    Thanks.

Maybe you are looking for

  • Setting Up A Password for Mac Mini

    Hello Due to Lion causing an issue with my wifi I had to downgrade to Snow Leopard which meant all my settings  etc were changed.  How do I set up a password for changing things on my computer and locking up  after changes Thank you rachealfromva

  • BAPI for Plant Maintenence Order

    Hi ALL Please provide me the BAPI for IW32 updataion process

  • How can i change favourites in finder

    i am not able to remove one video from favourite in finder

  • Struts Request Encoding Problems

    Hi, I am programming a sample struts application using Greek characters. I've got everything turned in UTF-8 (My resourceBundle file, contentType and pageEncoding attributes in the JSP page directive) and everything seems to work fine. However when I

  • ITunes too many http reconnects

    Too many http redirects when I try to open the Categories or Top 25 section on my iTunes, using my iPhone 4. I've tried resetting my network settings, signing in and out of my iTunes, and restarting my phone by pressing both my home button and power