javaee / glassfish-maven-plugin-legacy

Other
1 stars 5 forks source link

Unable to properly create-domain #12

Open glassfishrobot opened 12 years ago

glassfishrobot commented 12 years ago

Hi,

I have Glassfish 3.1.2 installed in "/opt/java/glassfish-3.1.2" and I was trying to create a Glassfish domain call "tdomain" through the maven-glassfish-plugin. My maven pom.xml snippet are as follow:

<plugin>
    <groupId>org.glassfish.maven.plugin</groupId>
    <artifactId>maven-glassfish-plugin</artifactId>
    <version>2.1</version>
    <configuration>
    <glassfishDirectory>/opt/java/glassfish-3.1.2/</glassfishDirectory>
    <domainDirectory>/opt/java/glassfish-3.1.2/glassfish/domains/</domainDirectory>
    <user>admin</user>
    <adminPassword>passwd123</adminPassword>
    <autoCreate>true</autoCreate>
    <debug>true</debug>
    <echo>true</echo>
    <domain>
        <name>tdomain</name>
        <adminPort>4848</adminPort>
        <httpPort>8080</httpPort>
        <httpsPort>8443</httpsPort>
        <iiopPort>3700</iiopPort>
        <jmsPort>7676</jmsPort>
        <reuse>false</reuse>
        <properties>
            <property>
<name>server.log-service.file</name>
<value>/opt/java/glassfish-3.1.2/glassfish/domains/tdomain/logs/server.log</value>
            </property>
        </properties>
    </domain>
    </configuration>
</plugin>

When I try to create the domain through "mvn glassfish:create-domain", I got the results below:

=================================================================================== [INFO] CLI031 Warning: Option "profile" is obsolete and will be ignored. [INFO] asadmin --host localhost --port 4848 --user admin --passwordfile /tmp/mgfp6340982924088776602.tmp --interactive=false --echo=true --terse=true create-domain --adminport 4848 --profile developer --domaindir /opt/java/glassfish-3.1.2/glassfish/domains --instanceport 8080 --savemasterpassword=false --usemasterpassword=false --domainproperties http.ssl.port=8443:orb.listener.port=3700:jms.port=7676 --savelogin=false --nopassword=false --checkports=true tdomain [INFO] The AS_ADMIN_ADMINPASSWORD option in the password file is deprecated. [INFO] Use AS_ADMIN_PASSWORD instead. [INFO] Distinguished Name of the self-signed X.509 Server Certificate is: [INFO] [CN=max-Inspiron-N4050,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US] [INFO] Distinguished Name of the self-signed X.509 Server Certificate is: [INFO] [CN=max-Inspiron-N4050-instance,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US] [INFO] No domain initializers found, bypassing customization step [INFO] Domain tdomain created. [INFO] Domain tdomain admin port is 4848. [INFO] Domain tdomain admin user is "admin". [INFO] asadmin --host localhost --port 4848 --user admin --passwordfile /tmp/mgfp6340982924088776602.tmp --interactive=false --echo=true --terse=true start-domain --verbose=false --upgrade=false --debug=true --_dry-run=false --domaindir /opt/java/glassfish-3.1.2/glassfish/domains tdomain [ERROR] The Master Password is required to start the domain. No console, no prompting possible. You should either create the domain with --savemasterpassword=true or provide a password file with the --passwordfile option. [ERROR] Unable to start domain "tdomain". [ERROR] For more detail on what might be causing the problem try running maven with the --debug option [ERROR] or setting the maven-glassfish-plugin "echo" property to "true". [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] AgencyManagement .................................. FAILURE [17.391s] [INFO] AgencyManagement-ear .............................. SKIPPED [INFO] AgencyManagement-ejb .............................. SKIPPED [INFO] AgencyManagement-web .............................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 17.686s [INFO] Finished at: Fri Apr 06 16:00:19 MYT 2012 [INFO] Final Memory: 7M/105M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.glassfish.maven.plugin:maven-glassfish-plugin:2.1:create-domain (default-cli) on project AgencyManagement: Unable to start domain "tdomain". -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

I've check on the domain directory and indeed "tdomain" was created and I can successfully start it with the "asadmin start-domain tdomain" command. So, coming back to the glassfish-maven-plugin, I believe the result should not be as stated above.

Do enlighten me and your help is very much appreciated.

Thank you.

Cordially, Max

Environment

Ubuntu 11.10, JDK6 (build 1.6.0_31-b04), Glassfish 3.1.2, Maven 3.0.4, maven-glassfish-plugin ver 2.1

Affected Versions

[current]

glassfishrobot commented 12 years ago

Reported by wargun02

glassfishrobot commented 12 years ago

timr99 said: Same with me. My configuration:

org.glassfish.maven.plugin maven-glassfish-plugin 2.1 admin password /home/tim/Java/glassfish3 $ {project.artifactId} 46005 39115 58594
glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA MAVEN_GLASSFISH_PLUGIN-12