users@glassfish.java.net

maven-glassfish plugin (error)

From: Felipe Gaúcho <fgaucho_at_gmail.com>
Date: Mon, 30 Mar 2009 12:57:06 +0200

I configured the plugin and it tried to start my domain1, but it
failed due to password problems..

I am using a default Glassfish 2.1 default installation, domain1 and
user=admin, password=adminadmin, java version 1.6.0_12

I copied below the plugin and the console output:

-------------------- plugin configuration:

                        <plugin>
                                <groupId>org.glassfish.maven.plugin</groupId>
                                <artifactId>maven-glassfish-plugin</artifactId>
                                <!-- version>2.1</version-->
                                <configuration>
                                        <glassfishDirectory>${glassfish.home}</glassfishDirectory>
                                        <user>${domain.username}</user>
                                        <adminPassword>${domain.password}</adminPassword>
                                        <!-- <passFile>path/to/asadmin/passfile</passFile> -->
                                        <autoCreate>false</autoCreate>
                                        <debug>true</debug>
                                        <echo>true</echo>
                                        <terse>true</terse>
                                        <skip>true</skip>
                                        <domain>
                                                <name>domain1</name>
                                                <adminPort>4848</adminPort>
                                                <httpPort>8080</httpPort>
                                                <httpsPort>8443</httpsPort>
                                                <iiopPort>3700</iiopPort>
                                                <jmsPort>7676</jmsPort>
                                                <reuse>${reuse.domain}</reuse>
                                                <jvmOptions>
                                                        <option/>
                                                </jvmOptions>
                                                <properties>
                                                        <property>
                                                                <name>server.log-service.file</name>
                                                                <value>${domain.log.dir}/server.log</value>
                                                        </property>
                                                </properties>
                                        </domain>
                                        <components>
                                                <!-- component>
                                                        <name>cejug-classifieds-login-ear</name>
                                                        <artifact>cejug-classifieds-login-ear/target/login-app.ear</artifact>
                                                </component-->
                                        </components>
                                </configuration>
                        </plugin>

        <properties>
                <glassfish.home>${env.AS_HOME}</glassfish.home>
                <domain.username>admin</domain.username>
                <domain.password>adminadmin</domain.password>
                <test.int.skip>false</test.int.skip>
                <domain.name>domain1</domain.name>
                <reuse.domain>false</reuse.domain>
                <domain.log.dir>${env.AS_HOME}/domains/domain1/logs/loginapp.log</domain.log.dir>
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        </properties>

------------- console output:


D:\oss\CEJUG-~1>mvn glassfish:start-domain
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] cejug-classifieds
[INFO] login-ejb: middleware and persistence
[INFO] login-war: restful web-service
[INFO] login-ear: jdbc realm based
[INFO] cejug-classifieds-core
[INFO] Searching repository for plugin with prefix: 'glassfish'.
WAGON_VERSION: 1.0-beta-2
[INFO] ------------------------------------------------------------------------
[INFO] Building cejug-classifieds
[INFO] task-segment: [glassfish:start-domain]
[INFO] ------------------------------------------------------------------------
[INFO] [glassfish:start-domain]
[INFO] start-domain --passwordfile
C:\DOCUME~1\fsilva\tions\Temp\mgfp8187429740238233472.tmp
--interactive=false --verbose=false --debug=true --
 admin --domaindir c:\data\glassfish\domains --terse=true domain1
[INFO] ------------------------------------------------------------------------
[INFO] Building login-ejb: middleware and persistence
[INFO] task-segment: [glassfish:start-domain]
[INFO] ------------------------------------------------------------------------
[INFO] [glassfish:start-domain]
[INFO] start-domain --passwordfile
C:\DOCUME~1\fsilva\tions\Temp\mgfp6656934283300809921.tmp
--interactive=false --verbose=false --debug=true --
 admin --domaindir c:\data\glassfish\domains --terse=true domain1
[INFO] ------------------------------------------------------------------------
[INFO] Building login-war: restful web-service
[INFO] task-segment: [glassfish:start-domain]
[INFO] ------------------------------------------------------------------------
[INFO] [glassfish:start-domain]
[INFO] start-domain --passwordfile
C:\DOCUME~1\fsilva\tions\Temp\mgfp2385132832014851005.tmp
--interactive=false --verbose=false --debug=true --
 admin --domaindir c:\data\glassfish\domains --terse=true domain1
[INFO] ------------------------------------------------------------------------
[INFO] Building login-ear: jdbc realm based
[INFO] task-segment: [glassfish:start-domain]
[INFO] ------------------------------------------------------------------------
[INFO] [glassfish:start-domain]
[INFO] start-domain --passwordfile
C:\DOCUME~1\fsilva\tions\Temp\mgfp1455360973377908145.tmp
--interactive=false --verbose=false --debug=true --
 admin --domaindir c:\data\glassfish\domains --terse=true domain1
[INFO] ------------------------------------------------------------------------
[INFO] Building cejug-classifieds-core
[INFO] task-segment: [glassfish:start-domain]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] One or more required plugin parameters are invalid/missing for
'glassfish:start-domain'

-- 
Please help to test this application:
http://fgaucho.dyndns.org:8080/cejug-classifieds-richfaces