I am using Sun Application Server 9 on my machine. I also have JaveEE and I was trying to deploy one of the sample ejb examples as described in the JavaEE Tutorial. In the tutorial, ant is used to build and deploy the project. When I typed ant it built and gave me all the necessary files but when I tried to deploy it using ant deploy, it gave me this error:
C:\Documents and Settings\HP_Administrator\Desktop\javaeetutorial5\examples\ejb\ converter>ant deploy Buildfile: build.xml
BUILD FAILED C:\Documents and Settings\HP_Administrator\Desktop\javaeetutorial5\examples\bp-p roject\app-server-ant.xml:417: Property javaee.server.passwordfile not specified. Please specify the javaee.server.passwordfile property in 'bp-project/build.properties'. You will also need to ensure that the passwordfile is present and contains AS_ADMIN_PASSWORD.
Total time: 0 seconds C:\Documents and Settings\HP_Administrator\Desktop\javaeetutorial5\examples\ejb\ converter>
I don't really understand what this error means. Can someone please help me with this.
Joined: Jun 15, 2006
in the ant script , in the deply task, you must have the --passwordfile "<speficy the password file path/name>" and in that file have that entry..
SCJP 1.4,SCBCD 1.3, SCWCD 1.5, ???
Joined: Jan 01, 2007
I am also having the same problem. Could somebody elaborate on the solution given.
In the tutorial, there is a build.properties.sample file in the javaeetutorial5/examples/bp-project. 1. Copy that file and rename it to build.properties. 2. In the build.properties, edit the javaee.home, javaee.tutorial.home to match your environment. 3. Uncomment the AS_ADMIN_PASSWORD and specify your application server admin password.
The easiest way is to use NetBeans to open the project. You just need to right click and deploy (assuming you already have the application server setup in NetBeans).
Hope that helps. [ August 09, 2007: Message edited by: Freddy Wong ]
SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4