This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hi Paul

 
Kalle Anka
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I purchased your book last week. This was after my very good experience with the SCWCD exam study kit by Deshmukh et al.

However I'm a little dissapointed right now. 4 days has gone and I havnt come any further than to trying to get the Fortune bean up. The appendix A doesnt seem to match my (latest? 2005Q1) version of suns application server. Neither does the book seem to give me enough information about writing the xml files properly myself to use another application server (like orion). Or perhaps its just me being really stupid. =) I'm not sure. I havnt changed any code in your examples. What I'm doing wrong?

Here are some error messages I received with todays experimentations. The first one is in swedish, but it basically says that runclient isnt a commando or a program:
1) E:\workspace\EJB-lekstuga>runclient -client FortuneApp.ear -name FortuneClient -textauth
runclient �r inte ett internt kommando, externt kommando,
program eller kommandofil.
2) E:\workspace\EJB-lekstuga>java -jar FortuneAppClient.jar
Failed to load Main-Class manifest attribute from
FortuneAppClient.jar
3) > java FortuneClient
Caught an exception!
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at FortuneClient.main(FortuneClient.java:13)
 
Raja Sagar Panamgipalli
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Every body in this forum have been suggested when preparing for SCBCD was to run their Beans inside Sun J2ee1.3 RI.
I think you should try it as well,its very simple and easy.(with a minor bug).


regds
Sagar
 
Paul Sanghera
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kalle:
As Raja Sagar said: please use the J2EE 1.3 RI from SUN to make the example run. Unfortunately, the book will not help you for the tasks that you are trying to accomplish, because they are out of the scope of the exam. My philisophy is: always start with the simplest thing, and take it from there. So, for the exam, just work with the J2EE 1.3 RI. After you make it work, then of course you can go on to do advance things...
Also feel free to use the Author Online forum (in case of any doubts)at
http://www.manning.com/sanghera
There you can share your experience with the topics in the book with other readers and ask for help.
Hope it helps.
Cheers.
Paul

Originally posted by Kalle Anka:
I purchased your book last week. This was after my very good experience with the SCWCD exam study kit by Deshmukh et al.

However I'm a little dissapointed right now. 4 days has gone and I havnt come any further than to trying to get the Fortune bean up. The appendix A doesnt seem to match my (latest? 2005Q1) version of suns application server. Neither does the book seem to give me enough information about writing the xml files properly myself to use another application server (like orion). Or perhaps its just me being really stupid. =) I'm not sure. I havnt changed any code in your examples. What I'm doing wrong?

Here are some error messages I received with todays experimentations. The first one is in swedish, but it basically says that runclient isnt a commando or a program:
1) E:\workspace\EJB-lekstuga>runclient -client FortuneApp.ear -name FortuneClient -textauth
runclient �r inte ett internt kommando, externt kommando,
program eller kommandofil.
2) E:\workspace\EJB-lekstuga>java -jar FortuneAppClient.jar
Failed to load Main-Class manifest attribute from
FortuneAppClient.jar
3) > java FortuneClient
Caught an exception!
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at FortuneClient.main(FortuneClient.java:13)
 
Kalle Anka
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
out of scope of the exam? But im only trying to use another application server... one of the major benefits of using j2ee...

oh well, im off adding the application server u recomend. I'm sure this will help. And I'm sure the rest of the book is excellent. Sorry if I sound frustrated, I dont mean anything mean about it... just tired that the computer doesnt know what u really mean when u're doing something wrong

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic