*
The moose likes Other Java Products and Servers and the fly likes sun one server problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "sun one server problem" Watch "sun one server problem" New topic
Author

sun one server problem

Ricky James
Ranch Hand

Joined: Mar 26, 2007
Posts: 83
Hello,

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

check:

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.

Thanks
Ricky
Dinesh Bang
Ranch Hand

Joined: Jun 15, 2006
Posts: 52
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, ???
Satya Maheshwari
Ranch Hand

Joined: Jan 01, 2007
Posts: 368
I am also having the same problem. Could somebody elaborate on the solution given.


Thanks and Regards
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

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
My Blog
Satya Maheshwari
Ranch Hand

Joined: Jan 01, 2007
Posts: 368
Thanks!! Yes its working now.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: sun one server problem
 
Similar Threads
Java EE5 Tutorial - 'ant create-tables' BUILD FAILED
J2EE 1.5 tutorial
passwordfile.txt not found!!!
error in depolyment
Sun JavaeeTutorial jaxB examples