How to create a domain without using the root user in Sunone Server

Hi,
I am having one requirement to create a domain without using root user in sunone application server 8.1. Does any body know the solution?
Message was edited by:
SPBP

Hi,
If you are using file-based installation, you can install as non-root user and create domains as usual. You can use asadmin command available at <AS_INSTALL>/bin to do this.
ex: ./asadmin create-domain domaindir /tmp/justfortest adminport 4850 --adminuser admin domain_nonroot_test
Did you face any problem doing this in non-root. Unless you have write permissions in domaindir, you won't be facing any problem.
Hope this clarifies your question.
Thanks,
-Balaji.

Similar Messages

  • How to create a inputstream without using the file operation

    Hi friends
    In my application, I have to create a Streamsource object using the below constructor:
    public StreamSource(InputStream inputStream)
        Construct a StreamSource from a byte stream. Normally, a stream should be used rather than a reader, so the XML parser can resolve character encoding specified by the XML declaration.
        If this constructor is used to process a stylesheet, normally setSystemId should also be called, so that relative URI references can be resolved.
    Parameters:
        inputStream - A valid InputStream reference to an XML stream.*[http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/stream/StreamSource.html#StreamSource(java.io.InputStream) |http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/stream/StreamSource.html#StreamSource(java.io.InputStream) ]*
    But for creating the inputstream, i am creating a tempory file, ie I am using fileinputstream.
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.StringReader;
    import javax.xml.transform.Source;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.transform.stream.StreamSource;
    public class SourceConvertor
        private static Source convertStaxToStream(Source request)
    // here the argument to this method is StaxSource and the return type is StreamSource
            TransformerFactory factory = TransformerFactory.newInstance();
            Transformer transformer = null;
            File fp = null;
            FileInputStream fInp = null;
            try
                transformer = factory.newTransformer();
                fp = new File("tempFile.txt");
                transformer.transform(request, new StreamResult(fp));
                fInp = new FileInputStream(fp);
            } catch (Exception e)
                e.printStackTrace();
            return new StreamSource(fInp);
        public static void main(String args[])
            try
                String message ="<author><name>Rai</name><book>GodOfSmallThings</book></author>";
                Source original = new StreamSource(new StringReader(message));
                Source converted = convertStaxToStream(original);
                TransformerFactory factory = TransformerFactory.newInstance();
                Transformer transformer = factory.newTransformer();
                transformer.transform(converted, new StreamResult(System.out));
            catch (Exception e)
                // TODO Auto-generated catch block
                e.printStackTrace();
    This is not at all a good aproach because evey time it is creating a new file.
    So can anyone suggest a better aproach or idea or a simple code snippet so that i can create the inputstream without creating a temporary file.
    Thanks in advance:
    *[http://www.javamilestone.blogspot.com/  |http://www.javamilestone.blogspot.com/  ] *

    Err, a StreamSource is a Source. Check the Javadoc. You can pass it directly to the transform.

  • How to create a domain for a non-root user using the JES installer

    Some questions have been circulating on what are the steps to create a whole domain configuration using a non-root user. Here is one method that you can try....
    - Login as user "testuser", all operations are using the user I want to start the whole domain with
    - cd to the testuser home directory and created apptest (mkdir apptest)
    -created domain
    /opt/SUNWappserver/appserver/bin/asadmin create-domain adminuser admin adminport 4849 --domaindir /testuser/apptest testdomain
    Please enter adminpassword>adminadmin
    Please enter adminpassword again>adminadmin
    Please enter the master password>adminadmin
    Please enter the master password again>adminadmin
    - created nodeagent
    /opt/SUNWappserver/appserver/bin/asadmin create-node-agent user admin port 4849 password adminadmin agentdir /testuser/apptest testnode
    Please enter the master password>adminadmin
    - Start the domain
    /opt/SUNWappserver/appserver/bin/asadmin start-domain domaindir /testuser/apptest user admin testdomain
    Please enter password>adminadmin
    Please enter the master password>adminadmin
    Domain testdomain started.
    - Start the nodeagent
    /opt/SUNWappserver/appserver/bin/asadmin start-node-agent user admin agentdir /testuser/apptest/ testnode
    Please enter password>adminadmin
    Please enter the master password>adminadmin
    Command start-node-agent executed successfully.
    - create instance
    /opt/SUNWappserver/appserver/bin/asadmin create-instance nodeagent testnode user admin i1
    Please enter password>adminadmin
    Command create-instance executed successfully.
    - start instance
    /opt/SUNWappserver/appserver/bin/asadmin start-instance --user admin i1
    Please enter password>adminadmin
    Command start-instance executed successfully.

    And this can be used to the incident priority (same technique can be used for problems):
    private int GetIncidentPriority(EnterpriseManagementGroup emg)
    try
    //Get the incident settings class
    ManagementPackClass mpc = emg.EntityTypes.GetClass(new Guid("613c9f3e-9b94-1fef-4088-16c33bfd0be1"));
    //Get the emo for the incident settings
    EnterpriseManagementObject emo = emg.EntityObjects.GetObject<EnterpriseManagementObject>(mpc.Id, ObjectQueryOptions.Default);
    //Get the priority maxtrix and convert to XML
    if (emo[mpc, "PriorityMatrix"].Value != null && emo[mpc, "PriorityMatrix"].Value.ToString() != "")
    string sMatrixXML = emo[mpc, "PriorityMatrix"].Value.ToString();
    XmlDocument xmlDoc = new XmlDocument();
    xmlDoc.LoadXml(sMatrixXML);
    //Get the guid strings for impact and urgency (note - xml goes by urgency then impact)
    string sUrgencyGuid = "04b28bfb-8898-9af3-009b-979e58837852";
    string sImpactGuid = "11756265-f18e-e090-eed2-3aa923a4c872";
    foreach (XmlNode urgencynode in xmlDoc.ChildNodes[0].ChildNodes)
    if (urgencynode.Attributes.Count == 1 && urgencynode.Attributes["Id"].Value.ToString().ToLower() == sUrgencyGuid)
    foreach (XmlNode impactnode in urgencynode.ChildNodes)
    if (impactnode.Attributes.Count == 1 && impactnode.Attributes["Id"].Value.ToString().ToLower() == sImpactGuid)
    XmlNode prioritynode = impactnode.ChildNodes[0];
    return Convert.ToInt32(prioritynode.InnerXml);
    return 0;
    catch
    return 0;
    Rob Ford scsmnz.net
    Cireson www.cireson.com
    For a free SCSM 2012 Notify Analyst app click
    here

  • How to create window key without using the trillium option

    Hi,
    I am having some problems when trying to create using the window key generator module in ODI data quality.
    I created a business data parser for cleansing my records. This had to pass thru 4 routines, the transformer, parser, window key generator and the matcher routines. The transformer and parser routines have run properly but they window key generator is asking me to specify the window key.( I created the rules for the window key. Like last 3 consonants of last name and 5 digits of some ID). But this is not getting accepted when i am running it and pops an error message.
    I also do not have the trillium module integrated with ODI as of now.
    Can anyone help me with this problem or anyone has faced the same situation and have tried a work around for it.
    Please let me know.
    Thanks,
    Chapanna

    Hi,
    If you are using file-based installation, you can install as non-root user and create domains as usual. You can use asadmin command available at <AS_INSTALL>/bin to do this.
    ex: ./asadmin create-domain domaindir /tmp/justfortest adminport 4850 --adminuser admin domain_nonroot_test
    Did you face any problem doing this in non-root. Unless you have write permissions in domaindir, you won't be facing any problem.
    Hope this clarifies your question.
    Thanks,
    -Balaji.

  • Hello! I'm out of the country and all my iWeb information is on my computer at home. Now I need to make changes on the webpage... how can i do that without using the computer i made the page on? Thank you!!

    Hello! I'm out of the country and all my iWeb information is on my computer at home. Now I need to make changes on the webpage... how can i do that without using the computer i made the page on? Thank you!!

    iWeb uses the domain.sites2 files to store its assets.
    You'll find it here :
    ~/Library/Application Support/iWeb/
    where ~ is your Home directory.
    If you take a computer with you, you have to store that file in the same location.
    It's not different from taking documents with you if you want to edit them.
    A solution is to remotely control your computer at home.
    TeamViewer, LogMeIn, Apple Remote Desktop or any VNC application you can use, like "Chicken of the VNC".

  • How to create Oracle Alert without metioning the email address in To Field

    Hi,
    I just wanna know that how to create Oracle Alert without metioning the email address in To Field.
    Please help thanks.

    If you don't enter anything in the email field, the alert email won't go out.
    If you just want to test or if you plan to use the history, you can put a non-existant email there.
    The alert will fire anyway.
    Hope this helps,
    Sandeep Gandhi

  • Can i create apple id without use the credit card?

    can i create apple id without use the credit card?

    I'm getting the same thing. I created a new Apple ID via the Internet (appleid.apple.com) When I go to my device to try to use it, I have to review it first and in that process, I'm asked for a credit card or iTunes gift card. There is NO 'none' option.
    I work in a school district and we'd like employees to use their own apple ID for free apps which will allow them the freedom to explore apps without weighing down our tech dept with myriad requests for random apps. I deal with a broad demographic and many users are suspicious of putting personal credit card info on an Internet-based account.
    However, it appears they are locked out of the store unless they have some form of payment on file. Even if they enter a gift card, what happens when it's used up? Will they get locked out of the store if they don't have a balance?
    Anyone have a work around? If not ... APPLE Please update your support materials to explain this, or fix the bug.
    Thanks!

  • TS1702 HI just brought a second user iMac which they purchased iPhoto ... at present there is an upgrade but i can't install because i didn't purchase is there anyway of upgrading iPhoto without using the fist users name and password

    HI just brought a second user iMac which they purchased iPhoto ... at present there is an upgrade but i can't install because i didn't purchase is there anyway of upgrading iPhoto without using the fist users name and password

    No, if they bought it, then its theirs. You may wish to contract iTS for options in case it was part of the Mac Acceptance.
    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • How to reference a class without using the new keyword

    I need to access some information from a class using the getter, but I don't want to use the new keyword because it will erase the information in the class. How can I reference the class without using the new keyword.
    ContactInfo c = new ContactInfo(); // problem is here because it erases the info in the class
    c.getFirstName();

    quedogf94 wrote:
    I need to access some information from a class using the getter, but I don't want to use the new keyword because it will erase the information in the class. How can I reference the class without using the new keyword.
    ContactInfo c = new ContactInfo(); // problem is here because it erases the info in the class
    c.getFirstName();No.
    Using new does not erase anything. There's nothing to erase. It's brand new. It creates a new instance, and whatever that constructor puts in there, is there. If you then change the contents of that instance, and you want to see them, you have to have maintained a reference to it somewhere, and access that instance's state through that reference.
    As already stated, you seem to be confused between class and instance, at the very least.
    Run this. Study the output carefully. Make sure you understand why you see what you do. Then, if you're still confused, try to rephrase your question in a way that makes some sense based on what you've observed.
    (And not that accessing a class (static) member through a reference, like foo1.getNumFoos() is syntactically legal, but is bad form, since it looks like you're accessing an instance (non-static) member. I do it here just for demonstration purposes.)
    public class Foo {
      private static int numFoos; // class variable
      private int x; // instance varaible
      public Foo(int x) {
        this.x = x;
        numFoos++;
      // class method
      public static int getNumFoos() {
        return numFoos;
      // instance method 
      public int getX() {
        return x;
      public static void main (String[] args) {
        System.out.println ("Foo.numFoos is " + Foo.getNumFoos ());
        System.out.println ();
        Foo foo1 = new Foo(42);
        System.out.println ("Foo.numFoos is " + Foo.getNumFoos ());
        System.out.println ("foo1.numFoos is " + foo1.getNumFoos ());
        System.out.println ("foo1.x is " + foo1.getX ());
        System.out.println ();
        Foo foo2 = new Foo(666);
        System.out.println ("Foo.numFoos is " + Foo.getNumFoos ());
        System.out.println ("foo1.numFoos is " + foo1.getNumFoos ());
        System.out.println ("foo1.x is " + foo1.getX ());
        System.out.println ("foo2.numFoos is " + foo2.getNumFoos ());
        System.out.println ("foo2.x is " + foo2.getX ());
        System.out.println ();
    }

  • RPM - How to re-process prices without using the front end.

    Hi all,
    There is a way of re-processing prices without using the front end? For instance, using the front end, a new clearance is created state in rpm_clearance ‘pricechange.State.conflictCheckforApproved’ and changed for ‘pricechange.State.worksheet’ after the conflict check.
    Now, I want to re-process the same clearance without using the front end. I’ve tried to change again the STATE to ‘pricechange.State.conflictCheckforApproved’ but no success. Any suggestions?
    Thanks in advance.
    Regards

    Can you please attach your VI?
    Prashanth N
    National Instruments

  • How do i install opensolaris without using the virtual box??

    hi.
    i am new to solaris
    i am currently using a windows XP OS
    i got down the opensolaris cd from SUN
    how do i install opensolaris without using a virtual box ?

    The OpenSolaris CD is a "Live CD". You can boot off of the CD, and either run the OpenSolaris operating system directly, or you can select the "Install" icon on the LiveCD desktop. You can find full instructions here: http://dlc.sun.com/osol/docs/content/IPS/getst1.html
    Do you want to keep your Windows OS on the disk? If so, then you want to follow the instructions for partitioning your disk (unless you already have a spare partition).
    -- Alan

  • How to install snow leopard without using the dvd drive?

    Is it possible to install snowleopard  without using the dvd ? i have a macbook and i have unfortunatly broken the cd and dvd player..

    Yes you can.
    How to use Migration Assistant:
    http://support.apple.com/kb/HT4889?viewlocale=en_US
    http://support.apple.com/kb/HT4413?viewlocale=en_US
    http://support.apple.com/kb/TS1963

  • How to create a simple app using the MVC approach?

    Hello gurus i'm trying to learn the SAPUI5 and i'm trying to create a simple app using the MVC i created the app and trying to add a lable to the view but there is nothing appear when i run it the code for the HTML page
    <!DOCTYPE HTML>
    <html>
      <head>
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>
      <script src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
      id="sap-ui-bootstrap"
      data-sap-ui-libs="sap.m"
      data-sap-ui-theme="sap_bluecrystal">
      </script>
      <!-- only load the mobile lib "sap.m" and the "sap_mvi" theme -->
      <script>
      sap.ui.localResources("mytestapp");
      var view = sap.ui.view({id:"idshell1", viewName:"mytestapp.shell", type:sap.ui.core.mvc.ViewType.JS});
      view.placeAt("content");
      </script>
      </head>
      <body class="sapUiBody" role="application">
      <div id="content"></div>
      </body>
    </html>
    the code for the view
    sap.ui.jsview("mytestapp.shell", {
      /** Specifies the Controller belonging to this View.
      * In the case that it is not implemented, or that "null" is returned, this View does not have a Controller.
      * @memberOf mytestapp.shell
      getControllerName : function() {
      return "mytestapp.shell";
      /** Is initially called once after the Controller has been instantiated. It is the place where the UI is constructed.
      * Since the Controller is given to this method, its event handlers can be attached right away.
      * @memberOf mytestapp.shell
      createContent : function(oController) {
      var oLabel = new sap.ui.commons.Label("l1");
      oLabel.setText("Test label");
      oLabel.placeAt("content");
    i dont know what is wrong or if i should use a container to display my controls
    any help will be appreciated
    thanks in advance

    Hi,
    Instead of   oLabel.placeAt("content"); use return oLabel;
    so it will as below,
    createContent : function(oController) {
      var oLabel = new sap.ui.commons.Label("l1");
      oLabel.setText("Test label");
      return oLable;
    Regards,
    Chandra

  • Create a entity without using the DBObjectName/Datasource tag in Entity.xml

    Hi,
    I am using Jdev11.1.13 version
    In our application we are trying to implement the custom framework classes for tuxedo calls.
    Before we are implemented(Tuxedo calls) using the Datasource entry in Entity.
    but right now we have to implement tuxedo calls without using the datasource approach.
    can anyone suggest
    Thanks in adv
    Raj

    Check out http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcadvvo.htm#sm0341
    Timo

  • How to create RFC Destination without using SM59?

    Hello all:
    We are troubleshooting an issue.   An user created a RFC destination.   He claims that he did not use SM59.   We checked his access and do not have SM59 in his roles.
    He configured VIRSA FireFighter.   During the configuration, he created RFC destination.   Document says use SM59 or contact BASIS Admin.     He claims that he used a config table and he don't remember the config table name.   RFC screen shows his ID as creator of the RFC.
    We are trying to understand how an RFC can be created (outside of SM59) and plug the security hole in the environment.
    Any insights would be appreciated.
    --Anand

    The FireFighter solution changes the RFC destination of the service user "on the fly" without S_TCODE checks for 'SM59'. But if I can remember correctly when looking into this, it does not create the RFC destination (in SM59) "on the fly".
    > He claims that he used a config table and he don't remember the config table name.
    Theoretically this is possible - a config table to define the name of the destination, and then create it if it does not exist yet (when used).
    Otherwise, see SAP note 587410 and restrict (remove) his authority for the test environment (concentrate on S_DEVELOP, not S_TCODE - as you have also experienced).
    Cheers,
    Julius

Maybe you are looking for

  • Agent Determination Rule Not Working

    I have created an new agent determination rule in PFAC. The category I used is "Agent Determination: Responsibilities". I have also selected the "Terminate if Rule Resolution has no Result" option. The container has one element in it which is NOT man

  • Error[#1314] Creating Process

    I'm receiving the below error when trying to execute a batch file. A windows agent is installed on the server where the batch files lives. The runtime user has admin rights on the server where the batch files lives as well. Does anyone have any insig

  • IPhoto attachment and missing images

    When I tried to load a photo as an attachment from iPhoto this morning, it would not open any of my photos in the media browser.  Then, when I actually opened iPhoto, all of my pictures (over 1,000) were gone!  Any ideas?

  • Verizon Turbo Dsl plan with Westell 6100 modem? Help?

    So I have a westell 6100 modem and on the 7th I upgraded my bundle i had 1 Mbps for Internet , verizon homephone freedom essentials, and Directv. Since fios is not available were I live. And my new bundle is Verizon Dsl 7.0-1 Mbps turbo plan, verizon

  • Image Resizing Problem

    Hello, I am working on image project. The task which I want to do is to resize the image. I am using normal java.awt.image package. The classes which I am using are AffineTransformOp for scaling an image, Graphics and BufferedImage etc. The problem i