【发布时间】:2013-01-18 10:51:22
【问题描述】:
我正在使用 Oracle 的 tutorial、Ant 1.8 和 Glassfish 3.1.2.2(在 Windows 7 中)研究 EJB 3。
在第一个 example 中,我正确构建了 EAR,但是当我运行时
ant deploy
通过cmd,我收到了这条消息
deploy:
[echo] deploys the application in cart - build/cart.ear
[echo] C:\installati\glassfish-3_1_2_2\glassfish3\glassfish/bin/asadmin.bat
--host localhost --port 4848 deploy --name cart --forc
e=true --upload=true --dbvendorname SQL92 build/cart.ear
[exec] Authentication failed for user: null
[exec] (Usually, this means invalid user name and/or password)
[exec] Command deploy failed.
本教程没有提到任何关于安全配置的内容,而且我对 Glassfish 也不是很了解。 我尝试使用命令 add-resources(遵循类似的thread),但我不知道该文件的语法。
我认为路径配置没有问题,因为bat运行正确...
我看到question的答案,但这不是我的情况……
有人发现过类似的问题吗?
【问题讨论】:
-
您是否尝试右键单击 -> 在 NetBeans 中部署?
-
我正在使用 Eclipse:我使用 cmd+ANT 来完成开发/部署的基本过程
标签: deployment ejb-3.0 glassfish-3