AddApplication Method requires public key to create child app. Connection Factory expects child app public key alias to contain app id

I'm working on implementing the AddApplication method so I can create child apps for my java web application. 
The AddApplication method schema requires a public key. I'm assuming this must be different than the public key associated with the parent app, as it failed when I tried that, so I've created a new one.
The ConnectionFactory code that will later access this public key to connect expects the public key to have an alias that is:
{appid}.keyname
This creates a chicken/egg scenario. The public key I'm using to create the child app cannot have an alias that includes the app id, as it hasn't been created yet.
Can someone tell me how other folks are doing this? Or what the intended process is?
Do I have to create one public key for use in creating the child app, then create another one once I have the child app id, and update the app with it?
Thanks!

Hi Joanne,
I am reviewing the Java SDK source in an effort to understand how they are abstracting the Master/Child methods provided by the HealthVault platform XML API. I will provide an answer as soon as I have it.
Thanks
-Sean

Similar Messages

  • Error when creating a new JMS connection factory in GlassFish V3 b57

    When I use the admin console and try to create a new JMS connection factory in GlassFish V3 b57, the operation fails with the error message
    An error has occurred: Can't find ConfigModel.Property for attr -connection-validation-required on interface com.sun.enterprise.config.serverbeans.ConnectorConnectionPool
    Should I better report this in the GlassFish news forum (http://forums.java.net/jive/forum.jspa?forumID=56&start=0)?
    p.s. I launch the admin console from within NetBeans 6.7.1 (the server started before the IDE). WIth version b 56, creating a JMS connection factory worked fine.
    Best regards,
    Michael Justin

    This bug does not apear in the nightly build (b58) now so everything looks fine again.
    Greetings,
    Michael

  • Error creating JCA connection factory in NWA

    Hi,
    I need to load an file with idoc content into a XML.
    So parameter IDOCXmlToFlatConvertor is required  and it's necessary to create a JCA Connection Factory in NWA.
    I'm trying to do it using :
    /people/william.li/blog/2009/04/01/how-to-use-user-module-for-conversion-of-idoc-messages-between-flat-and-xml-formats
    http://help.sap.com/saphelp_nwpi711/helpdata/en/b5/bd93642dd3410f90ebea702399fac4/frameset.htm
    But, when i try to create a JCA Connection Factory in NWA, systems returns next error:
    com.sap.engine.services.connector.exceptions.BaseDeploymentException: Can not set authentication user store "null" in security context "MRD_300" for connector "MRD_300" in application "sap.com/tc~sapjra".
    at com.sap.engine.services.connector.deploy.util.security.SecurityUtils.deploySecurity(SecurityUtils.java:507)
    However, creating JCA connection as indicated in this blog, security tab doesn't allow any change  and field user store can't be modified.
    How to do it?
    Carme

    Hello Carme,
    From the error , I can see that the name of the JCA Connection Factory that you are trying to create in NWA is: "MRD_300".
    This beautiful blog by William will surely help you rectify the problem.
    /people/william.li/blog/2009/04/01/how-to-use-user-module-for-conversion-of-idoc-messages-between-flat-and-xml-formats
    Kindly check if you have done the following in your configuration:
    1. Copy and create new dependent JCA Connection Factory from the JCA resource: "SAPJavaResourceAdapter15" 
    2. You have to go to the "Configuration Properties" tab (and not Security tab) of your JCA connection Factory (MRD_300) to enter the credentials that will be used by this CF. Make sure that you enter the details properly. Eg. In your case, just check if the password is entered.
    3. Also, check if the JCA resource "SAPJavaResourceAdapter15" is up and running (green traffic light). Else, restart the corresponding Java Service from NWA -> Operations Management -> Start & Stop -> Java Services
    I hope this should solve your problem.
    Regards, Gaurav.

  • Unable to create Queue Connection factory

    Hello All,
    I am configuring JMS listner with my enterprise appliaction using Sun application Server 8.2 PE.
    Let me tell you my setup first: I have created a connection factory *'TCSQCF'* on appliaction server (sun app ser 8.2) which is directing to Sun MQ 4.1 broker listning on port 7677 using this address list 'mq://10.44.5.14:7677/'
    My JNDI configurations through which I can acess and post a mess on queues using my simple application employing following setup. (My simple app contains appserv-admin.jar, appserv-rt.jar, imqjmsra.jar and j2ee.jar files ONLY in lib directory)
    props.setProperty(Context.INITIAL_CONTEXT_FACTORY,"com.sun.appserv.naming.S1ASCtxFactory");
    props.setProperty(Context.PROVIDER_URL,"iiop://10.44.5.14:3700");
    String jmsConnectionFactoryName = "TCSQCF";
    Object obj = jmsContext.lookup(jmsConnectionFactoryName);
    Now when i copy all these four jar files into my enterprise application *'ext'* directory and uses the same setup as shown above I am having the following error??:(
    2008-12-03 16:11:57,104 [JMSListener-Thread-12] DEBUG jmslistener - JMSListener.run(), Listener thread started
    2008-12-03 16:11:57,119 [JMSListener-Thread-12] INFO jmslistener - **** JMSListener version 1.1.1 ****
    2008-12-03 16:11:57,119 [JMSListener-Thread-12] DEBUG jmslistener - Input Queue : INQ
    2008-12-03 16:11:57,119 [JMSListener-Thread-12] DEBUG jmslistener - Output Queue : OUTQ
    2008-12-03 16:11:57,119 [JMSListener-Thread-12] DEBUG jmslistener - Dead Letter Queue :
    2008-12-03 16:11:57,119 [JMSListener-Thread-12] DEBUG jmslistener - Use transactional queues : false
    2008-12-03 16:11:57,120 [JMSListener-Thread-12] DEBUG jmslistener - Number of threads : 5
    2008-12-03 16:11:57,120 [JMSListener-Thread-12] DEBUG jmslistener - JNDI Factory Name : TCSQCF
    2008-12-03 16:11:57,120 [JMSListener-Thread-12] DEBUG jmslistener - JNDI Initial Factory : com.sun.appserv.naming.S1ASCtxFactory
    2008-12-03 16:11:57,132 [JMSListener-Thread-12] DEBUG jmslistener - JNDI Provider URL : iiop://10.44.5.14:3700
    2008-12-03 16:11:57,133 [JMSListener-Thread-12] DEBUG jmslistener - JNDI Security Principal :
    2008-12-03 16:11:57,133 [JMSListener-Thread-12] DEBUG jmslistener - JNDI Security Credentials :
    2008-12-03 16:11:57,133 [JMSListener-Thread-12] DEBUG jmslistener - ****
    2008-12-03 16:12:01,878 [JMSListener-Thread-12] ERROR commonjms - jndiLookup : JNDI lookup failed for:TCSQCF:
    javax.naming.CommunicationException: serial context communication ex [Root exception is com.sun.enterprise.connectors.ConnectorRuntimeException: Failed to look up ConnectorDescriptor from JNDI]
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:317)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at com.temenos.tocf.commonjms.JMSUtil.jndiLookup(Unknown Source)
    at com.temenos.tocf.commonjms.JMSUtil.getQueueConnectionFactory(Unknown Source)
    at com.temenos.plugin.jmslistener.JMSListener.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: com.sun.enterprise.connectors.ConnectorRuntimeException: Failed to look up ConnectorDescriptor from JNDI
    at com.sun.enterprise.naming.factory.ConnectorObjectFactory.getObjectInstance(ConnectorObjectFactory.java:68)
    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:293)
    ... 5 more
    2008-12-03 16:12:01,881 [JMSListener-Thread-12] ERROR jmslistener - run : Unable to create a queue connection factory... Stopping
    Please Note that my enterprise 'ext' directory contains 20-30 other jar files and I researched on it that MIGHT BE one of the existing 'jar' file are conflicting with the new 4 jar files i have mentioned. I am unable to find out whats wrong and I do not have nay idea which one is causing this issue and how to resolve it.???
    Please reply if you have information regarding this issue and if you need anyother information please let me know.
    Thanks.

    Finally I found the problem which takes me over a week to understand and its SILLY. I am posting here for all of us to never forget this atleast :-)
    anyway the above problem as i mentioned earlier is that my newly added JAR files and existing were conflicting somehow.
    I just had to add a class path of all of my new four JAR files to force my application to use these jar only not any other
    which was missing and my application fails but test application works using ECLIPSE as i did not had anyother files in its 'lib' directory. I edit my script code from BEFORE to After and it all worked. (SILLY SILLY SILLY)
    Before _
    java -jar ../lib/MyApplication.jar $*
    After_
    java -cp ../ext/appserv-admin.jar:../ext/appserv-rt.jar:../ext/imqjmsra.jar:../ext/j2ee.jar:../lib/MyApplication.jar $*Hope this helps for people like me :-(
    Thanks for your help. Best of luck
    Regards

  • How to create Child record at the time of master record creation.

    Hi,
    I have MasterVO and ChildVO. And association between both are 1 to *. I have a requirement like, I need to create row in ChildVO at the time of MasterVO row creation.
    I have used entity based association to create view link. This view link created ChildVO accessor in MasterRowImpl as type RowIterator.
    Actually my idea is to override create method in MasterVORowImpl and call ChildVO ViewObject and call .createRow() method on it. But I don't have access to ViewObject, instead it gave access to RowIterator.
    Could you please provide any pointer to achieve above functionality?
    Many thanks in advance.
    Jdev version - 11.1.1.7.0
    Regards,
    Dileep.

    Hi Tim,
    Now it is creating child record at the time of master row creation. But it is working only through BC tester. But when I drag the child VO instance in the jsff page, only master is get created as editable only, child is displayed as read only without populating any default values like child VO surrogate key and other default attributes. But through BC tester it is working fine.
    Am I missing anything here while implementing in UI?
    Thanks,
    Dileep.

  • How to write hasCode() & equals(0) methods in Compound Key Class

    Hi Java Helpdesk,
    I am wondering how to write the hashCode() and equals() methods that is mandatory when creating composite
    @IdClass. Below is the combination of primary @Id keys that I would like to make up in a compound key class:
    public final class PatientKey implements java.io.Serializable
        private String firstnameId;
        private String SurnameId;
        private String DateOfBirthID;
        private String Sex;
        public int hashCode()
        public boolean equals(Object otherOb)
    }The Order application in Java EE 5 Tutorial (page 841) is made up of only 2 primary keys.
    Thanks,
    Jack

    Hi,
    Thanks for your very brief response and I had a look at both EqualsBuilder and HashCodeBuilder from the URL links you have provided. These methods may improve the comparison accuracy but I was more interested on how to implement the equals() and hashCode methods when comparing 3 or more primary keys in order to make up a primary key class. Below is my first attempt to compose the PatientPK primary key class:
    1. public class PatientPK implements java.io.Serializable {
    2.
    3.     private String firstName;
    4.     private String lastName;
    5.     private String dateOfBirth;
    6.     private Char sex;
    7.
    8.     public PatientPK() {}
    9.
    10.   public PatientPK(String firstName, String lastName, Date dateOfBirth, Char sex)
    11.   {
    12.       this.firstName = firstName;
    13.       this.lastName = lastName;
    14.       this.dateOfBirth = dateOfBirth;
    15.       this.sex = sex;
    16.   }
    17.
    18.   public String getFirstName() { return this.firstName; }
    19.   public void setFirstName(String firstname) { this.firstName = firstName; }
    20.
    21.   public String getlastName() { return this.lastName; }
    22.   public void setLastname(String lastName) { this.lastName = lastName; }
    23.
    24.   public String getDateOfBirth() { return this.dateOfBirth; }
    25.   public void setDateOfBirth(String dateOfBirth) { this.dateOfBirth = dateOfBirth; }
    26.
    27.   public Char getSex() { return this.sex; }
    28.   public void setSex(String sex) { this.sex = sex; }
    29.
    30.   public boolean equals(Object obj)
    31.   {
    32.       if (obj == this) return true;
    33.       if (!(obj instanceof PatientPK)) return false;
    34.       PatientPK pk = (PatientPK) obj;
    35.       if (!firstName.equals(pk.firstName)) return false;
    36.       if (!lastName.equals(pk.lastName)) return false;
    37.       if (!dateOfBirth.equals(pk.dateOfBirth)) return false;
    38.       if (!sex.equals(pk.sex)) return false;
    39.       return true;
    40.   }
    41.
    42.   public hashCode()
    43.   {
    44.       return firstName.hashCode() + lastName.hashCode() + dateOfBirth.hashCode() + sex.hashCode();
    45.   }
    46.}Please advice whether both these equals() and hashCode() implementations are correct.
    Thanks in advance,
    Jack

  • BEST PRACTICES FOR CREATING DISCOVERER DATABASE CONNECTION -PUBLIC VS. PRIV

    I have enabled SSO for Discoverer. So when you browse to http://host:port/discoverer/viewer you get prompted for your SSO
    username/password. I have enabled users to create their own private
    connections. I log in as portal and created a private connection. I then from
    Oracle Portal create a portlet and add a discoverer worksheet using the private
    connection that I created as the portal user. This works fine...users access
    the portal they can see the worksheet. When they click the analyze link, the
    users are prompted to enter a password for the private connection. The
    following message is displayed:
    The item you are requesting requires you to enter a password. This could occur because this is a private connection or
    because the public connection password was invalid. Please enter the correct
    password now to continue.
    I originally created a public connection...and then follow the same steps from Oracle portal to create the portlet and display the
    worksheet. Worksheet is displayed properly from Portal, when users click the
    analyze link they are taken to Discoverer Viewer without having to enter a
    password. The problem with this is that when a user browses to
    http://host:port/discoverer/viewer they enter their SSO information and then
    any user with an SSO account can see the public connection...very insecure!
    When private connections are used, no connection information is displayed to
    SSO users when logging into Discoverer Viewer.
    For the very first step, when editing the Worksheet portlet from Portal, I enter the following for Database
    Connections:
    Publisher: I choose either the private or public connection that I created
    Users Logged In: Display same data to all users using connection (Publisher's Connection)
    Users Not Logged In: Do no display data
    My question is what are the best practices for creating Discoverer Database
    Connections.
    Is there a way to create a public connection, but not display it in at http://host:port/discoverer/viewer?
    Can I restrict access to http://host:port/discoverer/viewer to specific SSO users?
    So overall, I want roughly 40 users to have access to my Portal Page Group. I then want to
    display portlets with Discoverer worksheets. Certain worksheets I want to have
    the ability to display the analyze link. When the SSO user clicks on this they
    will be taken to Discoverer Viewer and prompted for no logon information. All
    SSO users will see the same data...there is no need to restrict access based on
    SSO username...1 database user will be set up in either the public or private
    connection.

    You can make it happen by creating a private connection for 40 users by capi script and when creating portlet select 2nd option in Users Logged in section. In this the portlet uses there own private connection every time user logs in.
    So that it won't ask for password.
    Another thing is there is an option of entering password or not in ASC in discoverer section, if your version 10.1.2.2. Let me know if you need more information
    thnaks
    kiran

  • Fastest way to create child class from parent?

    As the subject states, what do you folks find is fastest when creating child classes directly from the parent? (esp. when the parent is in a lvlib) I thought I'd post up and ask because the fastest way I've found to get working takes a few steps.
    Any suggestions ae appreciatized!
    -pat

    Thanks for the quick response Ben!
    Yea, I apologize, in your response I realize my OP was more than vague haha (it hapens when you get used to your own way of doing things I guess huh)- I'm trying to create a child from a parent so that it has all of the methods that the parent has.
    In order to do so I currently have to open and close LV a few times during my current process so that vi's in memory dont get mixed up- Currently I save a copy of the parent class in a sub dir of where it is saved, close out of LV, open the new 'copy of parent.lvclass', save as>>rename 'child class.lvclass', close LV, and open up the project to 'add file', then right click>>properties>>inheritance.
    Is this the only way to do this?
    Thanks again!
    -pat
    p.s. I'm tempted to steal your cell phone sig, hope you dont mind haha good stuff!

  • Com.bea.xml.XmlException error for "could not create child element"

    In Workshop 9.2, after I created a project with XMLBeans Builder Builder against the xsd's and created a web service control against a wsdl, I inserted the control in a client project for consumption. However, when calling into a method of the control, I got a com.bea.xml.XmlException, saying "could not create child element" for an object parameter passed in the call to the method. The relevant info in the server console looks like this:
    Caused by: com.bea.xml.XmlException: could not create child element 'wirelessPhoneNumber' for Wrapped XMLBean operation on '<?xml version="1.0" encoding="UTF-8
    "?><m:sendSMSMessage xmlns:m="http://service.xyz.com/provider/mobile/abc/sendSMSMessage/200701/"><ns:behaviorVersion xmlns:ns="http://service.xyz.com/entity/message/2003/">0</ns:behaviorVersion><ns:custNbr xmlns:ns="http
    ://service.xyz.com/entity/party/2003/">Hello</ns:custNbr></m:sendSMSMessage>'
    Does any have an idea what this is trying to tell me?
    Thanks in advance for any help,
    Jason

    Looking into it further, I think it's the parameter wirelessPhoneNumber, which is a complex type from xsd and a java object passed to the call sendSMSMessage, that is having a namespace problem, or other problem.
    This parameter object was from XMLBeans java binding. I created and set it up like this before passing it to the call:
    PhoneNumberType phoneNumberType = phoneNumberType.Factory.newInstance();
    phoneNumberType.setFormat(PhoneNumberFormatEnum.FREEFORM);
    phoneNumberType.setFullNumber(phoneNumber);
    Obviously, com.bea.xbeanmarshal.buildtime.internal.util.XmlBeanUtil.createWrappedXBeanTopElement of XmlBeanUtil.java had a problem creating a wrapper element for it.
    Any clue from anyone?
    Jason

  • I can't select a Payment Method and a key for Terms of Payment Key...

    Hi All,
    I've created a G/L account with open item management but it isn't a reconciliation account.
    When I post a document on this G/L account, I'd like to select a Payment Method and a key for Terms of Payment Key.
    I can't find the fields to select them....
    Why does it happen?
    Thanks

    Hi Umberto Gandalf,
    I got you. Payment Terms are objects used to excecute incoming and aoutgoing payments, and Payment Method are used to define net due date and conced discounts.
    Srikanth said above a way to post an invoice by FB01. If you are trying to post an invoice you should not use an Open Item acount. You must use Customes and Vendors Master data to do it. Your GL Account must be assigned in those masters data to take place on GL balance. Payment Terms and Payments Mathods will be entered during Invoice posting process.

  • How to call a method from a class without creating an instance fromthisclas

    I want to create a class with methods but I want to call methods from this class without creating an instance from this class. Is this possible?
    Is there in Java something like class methods and object methods????

    keyword 'static' my friend.
    public class foo {
    public static void bar {
    System.out.println ("hello");
    foo.bar()

  • Policy requires confidentialityenc key : 0

    Hi,
    I published a package as WebService(J2EE 1.4 JAX-RPC) by JDeveloper 10.1.3.2.0.4066, deploied it to Oracle Application Server10g 10.1.3
    Then I created JKS keystore as shown in example:
    http://www.oracle.com/technology/products/jdev/howtos/1013/wssecure/10gwssecurity_howto.html
    Set SecureWebService, in AuthenticationOptions used X509DigitalCertificate, in OutboundConfidentiality set UsePublicKeyToEncrypt same as in KeystoreOptions encryption key alias
    I deploied Keystore.deploy.
    And when I test web service in Oracle Application Server, it shows:
    <env:Fault
    xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <faultcode>wsse:InvalidSecurity</faultcode>
    <faultstring>Policy requires confidentialityenc key : 0</faultstring>
    <faultactor/>
    </env:Fault>
    Please help me to solve this problem.
    Regards, Tim

    Somebody from Oracle JDeveloper, please advice

  • Is it possible to restrict the user from creating a sibling and allow him to ONLY create child nodes in DRM?

    When in a hierarchy, a user right clicks on a node to crate a new node, he has two options
    -Child
    -Sibling
    Is it possible to restrict the user from creating a sibling and allow him to ONLY create child nodes?
    Business cases:
    1. different level nodes need to have different prefixes.
    - Thus, the default prefix property definition uses the level number to assign a prefix
    - Also, a validation, to ensure the correct prefix, uses the level number
    But if the user can create a child and a sibling then the default prefix will only be right for a single case and not both.
    Thanks

    If the images are exactly the same size then make sure the layer with the mask
    is the active layer and in the other documents go to Select>Load Selection and choose
    your document with the layer mask under Source document and under channel choose the layer mask.
    After the selection loads press the layer mask icon at the bottom of the layers panel.
    MTSTUNER

  • Payment Method Required - MIRO and MIR7

    We need to make the Payment Method Required for Logistics Credit Memo's.  If possible we would also like to customize the error/warning message when the user leaves out a Payment Method.
    Thank you, David Tanner

    hi,
    Use MIRO for verifying  the invoice
    In some case they use MIR7 to park and finally they post the same.
    What is your exact question Please tell in details
    G.Ganesh Kumar

  • How to create child part from Parent Item - BLOW UP Master - Automatically

    Hi to All,
    Have any one defined this process?
    To create child part from Parent Item - BLOW UP Master - Automatically ie. we receive FG from customer which we need to blow up to its child part. In that case, FG should be consumed & child parts should be generated in stock.
    We tried with recursive, but the stock of FG was again generating with recursive.
    Ex. FG after receiving from customer in stock 1
    Child parts (with offtake 1) X1, X2, X3 in stock zero.
    After processing, FG stock should be zero & X1, X2, X3 = 1.
    Regards
    Nitin

    Create a BOM for one of the "child" parts that has the "FG from customer" as a component and all the other child parts are negative quantity components (by products).
    To make it simple have all the components backflushed and auto goods receipt the child in the BOM header.  Create a production order, then process the confirmation (this will auto goods receipt the 1st child, consume by backflush the "FG from customer" and put the other child parts into stock as by products.
    You will need to get your material prices correct first so that there is minimal variance in the production order.

Maybe you are looking for

  • Creation of PO using BAPI from SRM

    Hi all,       When PR is transfered to SRM from ERP,When i try to create PO in ERP using BAPI,i am getting a error message.SRM also uses the same BAPI to replicate PO In ERP,but then we dont get any error message. According to my understanding in bot

  • CS4  hang after using Nik Sharpener   - on Snow Leopard

    Hello everyone, coming from Windows to MAC - to avoid trouble - I see it is not trouble free ... ??    While using the Nik Complete collection filters, all filters work fine with CS4 - except Nik Sharpener.  It looks to me that the Filter works OK, o

  • Configuration files 2

    Im still a litlle confused. Let me explain We have an application which uses there types of configuration files: - default - dynamic - customer created What we know: Dynamic .cfg files are created by our application which can then be cached locally w

  • X220 - does not start

    hi have a new x220. after programming whole last day, i tried this morning to start up the laptop again.  but it does not work.  first i pressed the power button and the green power light was going on and after less than 1 sec it was out again, like

  • Troubleshooting wizard will not run--win 8 oper system

    The troubleshooter wizard will not run.