Hi All,
I have come acrossed a strange error when trying to add a jms resource to Glassfish v2r1 on XP as follows:
C:\javaeetutorial5\examples\ejb\simplemessage>ant
Buildfile: build.xml
.......
package:
[echo] building ear package
[mkdir] Created dir: C:\javaeetutorial5\examples\ejb\simplemessage\build\ear
[mkdir] Created dir: C:\javaeetutorial5\examples\ejb\simplemessage\build\ear
\META-INF
[copy] Warning: Could not find file C:\javaeetutorial5\examples\ejb\simplem
essage\src\conf\sun-application.xml to copy.
[copy] Warning: Could not find file C:\javaeetutorial5\examples\ejb\simplem
essage\src\conf\application.xml to copy.
BUILD SUCCESSFUL
Total time: 3 seconds
C:\javaeetutorial5\examples\ejb\simplemessage>ant deploy
Buildfile: build.xml
check:
tools:
-pre-deploy:
deploy:
[b][exec] CLI171 Command deploy failed : Deployment of application failed - In
valid user or password[/b]
deploy-url-message:
[echo] Application Deployed at:
http://localhost:8080/simplemessage
BUILD SUCCESSFUL
Total time: 1 second
C:\javaeetutorial5\examples\ejb\simplemessage>ant create-cf
Buildfile: build.xml
....
create-jms-connection-factory:
[b] [exec] Invalid user or password
[exec] CLI137 Command create-jms-resource failed.[/b]
BUILD SUCCESSFUL
Total time: 1 second
The content of C:\javaeetutorial5\examples\bp-project\build.properties are:
javaee.home=c:/Sun/AppServer
javaee.tutorial.home=C:/javaeetutorial5
# machine name (or the IP address) where the applications will be deployed.
javaee.server.name=localhost
# port number where the app-server is accessed by the users
javaee.server.port=8080
# port number where the admin server of the app-server is available
javaee.adminserver.port=4848
# Uncomment the property j2ee.server.username,
# and replace the administrator username of the app-server
javaee.server.username=admin
# Uncomment the property j2ee.server.passwordfile,
# and replace the following line to point to a file that
# contains the admin password for your app-server.
# The file should contain the password in the following line:
#
# AS_ADMIN_PASSWORD=adminadmin
#
# Notice that the password is adminadmin since this is
# the default password used by the glassfish app-server installation.
#
javaee.server.passwordfile=${javaee.tutorial.home}/examples/common/admin-password.txt
The content of ${javaee.tutorial.home}/examples/common/admin-password.txt is:
AS_ADMIN_PASSWORD=adminadmin
Below are some of the relevant environment variables set on this PC:
C:\javaeetutorial5\examples\ejb\simplemessage>set
ANT_HOME=C:\Sun\AppServer\lib\ant
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_16
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Ne
tBeans 6.7\java2\ant\bin;C:\Program Files\Java\jdk1.6.0_16\bin;C:\Program Files\
Java\jre6;C:\Sun\AppServer\bin;C:\Program Files\MySQL\MySQL Server 5.1\bin;
What is bizarre is that it only occurred on one of the 2 PCs.
I have tried all the suggested solutions available but still no success.
Any idea on why this is happening?
Thanks a lot,
Jack
[Message sent by forum member 'htran_888' (htran_888_at_yahoo.com.au)]
http://forums.java.net/jive/thread.jspa?messageID=390049