首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >maven,maven-glassfish-plugin,域创建

maven,maven-glassfish-plugin,域创建
EN

Stack Overflow用户
提问于 2012-11-28 01:12:45
回答 1查看 1.4K关注 0票数 0

我试着用maven创建域名。

代码语言:javascript
复制
<plugin>
    <groupId>org.glassfish.maven.plugin</groupId>
    <artifactId>maven-glassfish-plugin</artifactId>
    <version>2.1</version>
    <configuration>
        <glassfishDirectory>${glassfish.home}</glassfishDirectory>
        <user>${glassfish.username}</user>
        <adminPassword>${glassfish.password}</adminPassword>
        <autoCreate>true</autoCreate>
        <debug>true</debug>
        <echo>true</echo>
        <terse>true</terse>
        <domain>
            <name>${project.artifactId}</name>
            <adminPort>4048</adminPort>
            <httpPort>4080</httpPort>
            <httpsPort>4043</httpsPort>
            <iiopPort>4037</iiopPort>
            <reuse>false</reuse>
        </domain>
        <components>
            <component>
                <name>${project.artifactId}</name>
                <artifact>${project.build.directory}/${project.build.finalName}.war</artifact>
            </component>
        </components>
    </configuration>
</plugin>

域已创建但未启动

代码语言:javascript
复制
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building EventLogger
[INFO]    task-segment: [org.glassfish.maven.plugin:maven-glassfish-plugin:2.1:deploy]
[INFO] ------------------------------------------------------------------------
[INFO] [glassfish:deploy {execution: default-cli}]
[INFO] Domain event-logger isn't started. Starting it for you.
[INFO] Domain event-logger does not exist. Creating it for you.
[INFO] CLI031 Warning: Option "profile" is obsolete and will be ignored.
[INFO] asadmin --host localhost --port 4848 --user admin --passwordfile /tmp/mgfp1661748332213879832.tmp --interactive=false --echo=true --terse=true create-domain --adminport 4048 --profile developer --domaindir /home/makaka/glassfish3/glassfish/domains --instanceport 4080 --savemasterpassword=false --usemasterpassword=false --domainproperties http.ssl.port=4043:orb.listener.port=4037 --savelogin=false --nopassword=false --checkports=true event-logger
[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=ubuntu,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=ubuntu-instance,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US]
[INFO] No domain initializers found, bypassing customization step
[INFO] Domain event-logger created.
[INFO] Domain event-logger admin port is 4048.
[INFO] Domain event-logger admin user is "admin".
[INFO] asadmin --host localhost --port 4848 --user admin --passwordfile /tmp/mgfp1661748332213879832.tmp --interactive=false --echo=true --terse=true start-domain --verbose=false --upgrade=false --debug=true --_dry-run=false --domaindir /home/makaka/glassfish3/glassfish/domains event-logger
[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 "event-logger".
[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] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Unable to start domain "event-logger".
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14 seconds
[INFO] Finished at: Tue Nov 27 21:03:48 MSK 2012
[INFO] Final Memory: 4M/74M
[INFO] ------------------------------------------------------------------------

创建后,我可以手动启动域名,但无法登录到管理面板-无效的密码。

如果在创建后我手动重置了密码- Maven仍然无法启动域。但是我可以从命令行手动启动域名,然后登录到管理面板...

我试着用passwordFile代替adminPassword。什么都没变..。该文件的内容(我手动创建的):

代码语言:javascript
复制
AS_ADMIN_MASTERPASSWORD myPass
AS_ADMIN_USERPASSWORD myPass
AS_ADMIN_ALIASPASSWORD myPass

我也想知道为什么管理员需要主密码-它不是用来认证master pass description

知道出什么事了吗?

附注:我使用ubunutu 12.10,glassfish 3.1.2.2,使用开发人员配置文件安装glassfish

EN

回答 1

Stack Overflow用户

发布于 2012-11-28 01:37:59

我有一个错误的密码文件。它应该包含

代码语言:javascript
复制
AS_MASTER_PASSWORD=myPass1
AS_ADMIN_PASSWORD=myPass2
AS_ADMIN_USERPASSWORD=myPass3
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13589426

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档