Deployment GlassFish中部署的身份验证配置
我正在用Oracle、Ant 1.8和Glassfish 3.1.2.2(在Windows 7中)研究EJB3 首先,我正确地构建了耳朵,但当我跑步时Deployment GlassFish中部署的身份验证配置,deployment,ejb-3.0,glassfish-3,Deployment,Ejb 3.0,Glassfish 3,我正在用Oracle、Ant 1.8和Glassfish 3.1.2.2(在Windows 7中)研究EJB3 首先,我正确地构建了耳朵,但当我跑步时 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.ba
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也不是很了解。
我尝试使用addresources命令(如下所示),但我不知道该文件的语法
我认为路径的配置没有问题,因为bat的运行是正确的
我知道答案,但这不是我的情况
有人发现过类似的问题吗 我解决了:我是一条玻璃鱼 重新安装后,大多数示例(并非全部)在没有验证假设的情况下正常工作
也许我的问题是使用在web上找到的解决方案来解决另一个问题的,我无意中误导了部署的GlasshFish过程。你在NetBeans中尝试过右键单击->部署吗?我正在使用Eclipse:我使用cmd+ANT进行开发的基本过程