glassfish
  1. glassfish
  2. GLASSFISH-20908

create-domain command does not accept template parameter

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0
    • Fix Version/s: None
    • Component/s: command_line_interface
    • Labels:
      None
    • Environment:

      Ubuntu 13.04

      Description

      create-domain command is not accepting a template parameter as described in the administration-guide.
      The command "./asadmin create-domain --portbase 15100 --template template.xml domain2-test" is failing with message
      "Invalid --template value template.xml, option accepts only jar file location."

        Activity

        Hide
        deepakpn added a comment -

        I am facing the same issue, any updates on when this will be fix? Is there any work-around?

        Show
        deepakpn added a comment - I am facing the same issue, any updates on when this will be fix? Is there any work-around?
        Hide
        CarloMo added a comment -

        I'm also encountering this problem in Glassfish 4.1. Is there no way to use a custom template to create a domain in this version?

        Show
        CarloMo added a comment - I'm also encountering this problem in Glassfish 4.1. Is there no way to use a custom template to create a domain in this version?
        Hide
        jtcacct added a comment -

        Would be nice to get an update regarding this issue. My team also uses this feature. This seems to be completely broken in 4.1.

        Show
        jtcacct added a comment - Would be nice to get an update regarding this issue. My team also uses this feature. This seems to be completely broken in 4.1.
        Hide
        jtcacct added a comment -

        Hey guys, I think I figured this out.

        Check out the following directory: /opt/glassfish/glassfish/common/templates/gf

        In that directory there are two jars: appserver-domain.jar and nucleus-domain.jar. Within those jars there is the standard/typical directories that reside within the domain directory. For my use case I was able to extract the contents of nucleus-domain.jar, make the same changes that were in my old template XML file to the config/domain.xml file, re-jar up the contents, and use the resulting jar file as the --template cmd line option argument. This worked.

        Why this is not documented anywhere and I am the first person explaining on to do this on this ticket almost 2 years later is beyond me. I think it is safe to assume that this Jira instance is no longer being monitored by Oracle. Hopefully this post helps someone else out there through search engines.

        Show
        jtcacct added a comment - Hey guys, I think I figured this out. Check out the following directory: /opt/glassfish/glassfish/common/templates/gf In that directory there are two jars: appserver-domain.jar and nucleus-domain.jar. Within those jars there is the standard/typical directories that reside within the domain directory. For my use case I was able to extract the contents of nucleus-domain.jar, make the same changes that were in my old template XML file to the config/domain.xml file, re-jar up the contents, and use the resulting jar file as the --template cmd line option argument. This worked. Why this is not documented anywhere and I am the first person explaining on to do this on this ticket almost 2 years later is beyond me. I think it is safe to assume that this Jira instance is no longer being monitored by Oracle. Hopefully this post helps someone else out there through search engines.
        Hide
        jtcacct added a comment -

        Correction to the above: nucleus-domain.jar did not work for me at all. appserver-domain.jar did, however.

        Show
        jtcacct added a comment - Correction to the above: nucleus-domain.jar did not work for me at all. appserver-domain.jar did, however.
        Hide
        CarloMo added a comment -

        jtacct's solution worked for me as well.

        Show
        CarloMo added a comment - jtacct's solution worked for me as well.

          People

          • Assignee:
            martin.mares
            Reporter:
            hmashlah
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated: