• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

sun one server problem

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..
 
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am also having the same problem. Could somebody elaborate on the solution given.
 
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Satya Maheshwari
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks!! Yes its working now.
 
On my planet I'm considered quite beautiful. Thanks to the poetry in this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic