This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
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.
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