EJB help for a beginner

2001-10-23 Thread Sujith Menon S



Hi Everybody,

 I am a beginner in Orion and am trying to 
deploy the example EJB.Follwoing the steps as given , I get the 
following error.

While running the CartClient and Product Client i get the 
follwoing error

Product Client
Exception in thread "main" java.lang.SecurityException: 
Invalid username/password for ejbsamples 
(admin) at 
com.evermind._cd._mu(Unknown 
Source) at 
com.evermind._cd._mu(Unknown 
Source) at 
com.evermind._cd._np(Unknown 
Source) at 
com.evermind._ce._np(Compiled 
Code) at 
com.evermind.server.rmi.RMIContext.lookup(Unknown 
Source) at 
com.evermind.server.administration.LazyResourceFinder._np(Unknown 
Source) at 
com.evermind.server.administration.LazyResourceFinder.getEJBHome(Unknown 
Source) at 
com.evermind._ck._ho(Compiled 
Code) at 
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(Compiled 
Code) at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672) 
at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250) 
at 
javax.naming.InitialContext.init(InitialContext.java:226) 
at 
javax.naming.InitialContext.init(InitialContext.java:182) 
at ProductClient.main(ProductClient.java:18)



Cart Client
Exception in thread "main" java.lang.SecurityException: 
Invalid username/password for ejbsamples 
(admin) at 
com.evermind._cd._mu(Unknown 
Source) at 
com.evermind._cd._mu(Unknown 
Source) at 
com.evermind._cd._np(Unknown 
Source) at 
com.evermind._ce._np(Compiled 
Code) at 
com.evermind.server.rmi.RMIContext.lookup(Unknown 
Source) at 
com.evermind.server.administration.LazyResourceFinder._np(Unknown 
Source) at 
com.evermind.server.administration.LazyResourceFinder.getEJBHome(Unknown 
Source) at 
com.evermind._ck._ho(Compiled 
Code) at 
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(Compiled 
Code) at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672) 
at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250) 
at 
javax.naming.InitialContext.init(InitialContext.java:226) 
at 
javax.naming.InitialContext.init(InitialContext.java:182) 
at CartClient.main(CartClient.java:17)
When i continue and restart the server i get the 
following. 
Auto-deploying product (No previous deployment found)... Error 
compiling C:\Sujith\Techy\Orion\orion\demo\ejb\product: No default 
cmt-datasource and no source specifiedAuto-deploying usermanager (No 
previous deployment found)... Error compiling 
C:\Sujith\Techy\Orion\orion\demo\ejb\usermanager: No default cmt-datasource 
and nosource specifiedError instantiating application 'ejbsamples' at 
file:/C:/Sujith/Techy/Orion/orion/demo/ejb/: Error initializing userManager 
'com.evermind.ejb.EJBUserManager': NamingException: com.evermind.ejb.EJBUser 
not foundWarning: Error reading transaction-log file 
(/C:/Sujith/Techy/Orion/orion/persistence/transaction.state) for recovery: 
premature end of fileForced or abrubt (crash etc) server shutdown detected, 
starting recovery process...Recovery completed, 0 connections committed 
and 0 rolled back...Orion/1.5.2 initialized

Wud be grateful if you cud help me.. 
 
Thanks in Advance,

Sujith


RE: Beginner...

2001-02-24 Thread Kemp Randy-W18971

 To learn to use EJB, it is the SIG (in name) site.  If you go to 
www.northernlight.com, search for EJB tutorial, it is in the first ten sites, and they 
have a whole section on tutorials.  You can also go to www.theserverside.com and 
download Masterning Enterprise Javabeans.  

-Original Message-
From: Luis Javier Beltran
To: Orion-Interest
Sent: 2/23/01 8:53 PM
Subject: Re: Beginner...

Thanks to all for your help, but I think I haven't found what
I was looking for...

I'm used to JSP and servlets, but I'm new to EJB. I just wanted to start
up
with a simple JSP, but reading your posts and questions, I see I'm
missing
something here... I'm a bit lost with this ear, war thing... So now I
have
to questions:

1) How can I simply test a JSP?

2) Where can I learn to use EJB?? (Urgent!! : ) )

Thanks a lot!

Luis Javier






RE: Beginner...

2001-02-23 Thread Randahl Fink Isaksen



You 
need to check out the "Orion Primer" at jollem.com. The easiest way to find it 
is to go to www.orionserver.com , click 
on "Documentation" and locate the link to it on that page.

R.

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Luis Javier 
  BeltranSent: 23. februar 2001 06:28To: 
  Orion-InterestSubject: Beginner...
  Hi all,
  
  I've just started using Orion server My 
  question is, how do I create a new application?? What files should I modify, 
  what lines should I add, to register it?
  
  Thanks!!
  
  Luis Javier


Re: Beginner...

2001-02-23 Thread Luis Javier Beltran

Thanks to all for your help, but I think I haven't found what
I was looking for...

I'm used to JSP and servlets, but I'm new to EJB. I just wanted to start up
with a simple JSP, but reading your posts and questions, I see I'm missing
something here... I'm a bit lost with this ear, war thing... So now I have
to questions:

1) How can I simply test a JSP?

2) Where can I learn to use EJB?? (Urgent!! : ) )

Thanks a lot!

Luis Javier






Re: Beginner...

2001-02-23 Thread Ernst de Haan

Luis,

Try the Orion Primer:

   * http://www.jollem.com/orion-primer/

And perhaps the Orion CMP Primer after that (there's a link from that page).

PS: Shouldn't there be a FAQ for this list?

--
Ernst

Luis Javier Beltran wrote:
 Thanks to all for your help, but I think I haven't found what
 I was looking for...
 
 I'm used to JSP and servlets, but I'm new to EJB. I just wanted to start up
 with a simple JSP, but reading your posts and questions, I see I'm missing
 something here... I'm a bit lost with this ear, war thing... So now I have
 to questions:
 
 1) How can I simply test a JSP?
 
 2) Where can I learn to use EJB?? (Urgent!! : ) )
 
 Thanks a lot!
 
 Luis Javier
 
 
 
 




Re[2]: Beginner...

2001-02-23 Thread Rafael Alvarez

Hello Luis,

Friday, February 23, 2001, 10:53:26 PM, you wrote:

LJB 1) How can I simply test a JSP?
Put it under default-web-app/web directory on a fresh unziped
orion distribution. After that, just run orion and point the browser
to http://localhost/yourjsppage.jsp

It can get a lot more complicated (building apps, etc) but not more
difficult.

LJB 2) Where can I learn to use EJB?? (Urgent!! : ) )
First, I recommend you the book:
Enterprise Javabeans by Richard Monson-Haefel (the O'Reilly book)

Also, check out the developer's connection at java.sun.com


Hope this help-










-- 
Best regards,
 Rafaelmailto:[EMAIL PROTECTED]






Beginner...

2001-02-22 Thread Luis Javier Beltran



Hi all,

I've just started using Orion server My 
question is, how do I create a new application?? What files should I modify, 
what lines should I add, to register it?

Thanks!!

Luis Javier


Re: Beginner...

2001-02-22 Thread Ray Harrison

Hi Luis -
A good place to start is to look at:

www.jollem.com
www.orionsupport.com

There are some examples there to get you started


--- Luis Javier Beltran [EMAIL PROTECTED] wrote:
 Hi all,
 
 I've just started using Orion server My question is, how do I create a new 
application??
 What files should I modify, what lines should I add, to register it?
 
 Thanks!!
 
 Luis Javier
 


__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/




SV: Beginner...

2001-02-22 Thread Magnus Rydin
Title: SV: Beginner...





You can also check out the application setup howto at
http://www.orionserver.com/docs/application-creation-howto.html
WR


 -Ursprungligt meddelande-
 Från: Ray Harrison [mailto:[EMAIL PROTECTED]]
 Skickat: den 22 februari 2001 18:31
 Till: Orion-Interest
 Ämne: Re: Beginner...
 
 
 Hi Luis -
 A good place to start is to look at:
 
 www.jollem.com
 www.orionsupport.com
 
 There are some examples there to get you started
 
 
 --- Luis Javier Beltran [EMAIL PROTECTED] wrote:
  Hi all,
  
  I've just started using Orion server My question is, 
 how do I create a new application??
  What files should I modify, what lines should I add, to register it?
  
  Thanks!!
  
  Luis Javier
  
 
 
 __
 Do You Yahoo!?
 Yahoo! Auctions - Buy the things you want at great prices! 
 http://auctions.yahoo.com/
 





RE: Beginner: Step by step tutorial?

2000-11-06 Thread Kemp Randy-W18971

Winnie:
   Teach yourself Java in 21 days is a very excellent book and I have it myself.  You 
could also use a search engine like www.northernlight.com and search for something 
like Java Tutorials.
Randy

-Original Message-
From: Winnie Leung [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 04, 2000 2:49 AM
To: Orion-Interest
Subject: RE: Beginner: Step by step tutorial?


Thanks Randy, but I dont like that website at all! It is probably for people
who are into Java already. I am an ASP and Cold Fusion programmer, and I
have just completed my first "Teach yourself Java in 21 days". I believe I
am ready for JSP now.

Thanks anyway,
Winnie.



 |  -Original Message-
 |  From: On Behalf Of Kemp  Randy-W18971
 |  Sent: Saturday, November 04, 2000 3:06 AM
 |  To: Orion-Interest
 |  Subject: RE: Beginner: Step by step tutorial?
 |
 |
 |  I found an excellent resource recently at
 |  http://www.execpc.com/~gopalan/java/ejb.html.  I recommend it
 |  to everyone.
 |



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.198 / Virus Database: 95 - Release Date: 04-Oct-00





RE: Beginner: Step by step tutorial?

2000-11-04 Thread Winnie Leung

Thanks Randy, but I dont like that website at all! It is probably for people
who are into Java already. I am an ASP and Cold Fusion programmer, and I
have just completed my first "Teach yourself Java in 21 days". I believe I
am ready for JSP now.

Thanks anyway,
Winnie.



 |  -Original Message-
 |  From: On Behalf Of Kemp  Randy-W18971
 |  Sent: Saturday, November 04, 2000 3:06 AM
 |  To: Orion-Interest
 |  Subject: RE: Beginner: Step by step tutorial?
 |
 |
 |  I found an excellent resource recently at
 |  http://www.execpc.com/~gopalan/java/ejb.html.  I recommend it
 |  to everyone.
 |



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.198 / Virus Database: 95 - Release Date: 04-Oct-00





Beginner: Step by step tutorial?

2000-11-03 Thread Winnie Leung

HI,

I am a total beginner to Orion (and somewhat of a beginner to Java). I would
be really grateful if some one could point me to a really beginner's
step-by-step tutorial on how to write a servlet, to do standard web type
stuff like (a) post form variables, and (b) access data from the database
(oracle -- is there a way to use OCI directly, instead of JDBC?)

Thanks very much in advance,
Winnie






RE: Beginner: Step by step tutorial?

2000-11-03 Thread J.T. Wenting

http://www.novocode.com/doc/servlet-essentials/ gives a good intro into
servlets (though I think the O'Reilly book is better).
As to not using JDBC, I don't think so (unless you write your own... which
would be reinventing JDBC). JDBC is good, why not use it?

Jeroen T Wenting
[EMAIL PROTECTED]
ICQ UIN #9191966

It's the end of the world as we know it and I feel fine (Michael Stipe)

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Winnie Leung
 Sent: 03 November 2000 18:31
 To: Orion-Interest
 Subject: Beginner: Step by step tutorial?


 HI,

 I am a total beginner to Orion (and somewhat of a beginner to
 Java). I would
 be really grateful if some one could point me to a really beginner's
 step-by-step tutorial on how to write a servlet, to do
 standard web type
 stuff like (a) post form variables, and (b) access data from
 the database
 (oracle -- is there a way to use OCI directly, instead of JDBC?)

 Thanks very much in advance,
 Winnie








Re: Beginner: Step by step tutorial?

2000-11-03 Thread Cory Adams

You  would always use JDBC.  You do have a choice of which driver to use
though.  If you want to use the OCI native drivers you can specify those in
the JDBC datasource. 

Download the Oracle JDBC drivers from Oracle's site and you can choose
between using the Thin or OCI drivers.

There are some great servlet jsp books like the Sun Press book Core
Servlets and Java Server Pages

Cory

At 01:31 AM 11/4/00 +0800, Winnie Leung wrote:
HI,

I am a total beginner to Orion (and somewhat of a beginner to Java). I would
be really grateful if some one could point me to a really beginner's
step-by-step tutorial on how to write a servlet, to do standard web type
stuff like (a) post form variables, and (b) access data from the database
(oracle -- is there a way to use OCI directly, instead of JDBC?)

Thanks very much in advance,
Winnie








RE: Beginner: Step by step tutorial?

2000-11-03 Thread Kemp Randy-W18971

I found an excellent resource recently at 
http://www.execpc.com/~gopalan/java/ejb.html.  I recommend it to everyone.  

-Original Message-
From: Winnie Leung [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 03, 2000 11:31 AM
To: Orion-Interest
Subject: Beginner: Step by step tutorial?


HI,

I am a total beginner to Orion (and somewhat of a beginner to Java). I would
be really grateful if some one could point me to a really beginner's
step-by-step tutorial on how to write a servlet, to do standard web type
stuff like (a) post form variables, and (b) access data from the database
(oracle -- is there a way to use OCI directly, instead of JDBC?)

Thanks very much in advance,
Winnie






RE: Beginner: Step by step tutorial?

2000-11-03 Thread Duffey, Kevin

May I suggest something...

Being that J2EE is already available in most app servers, and the next
version is just about to have its specs closed upon, why not move full
fledge into a J2EE type of development, where you use JSP pages (instead of
Servlets returning HTML in the code (via response)), and if your up to it,
use a MVC pattern where you have all requests submitted to a single
controller servlet, have that servlet call upon an "action" class, that can
then use EJB to perform the logic (or do the logic right there in your
action class..until you are up to speed and ready to dive in to EJB).
Finally, populate a javabean and forward to a JSP page that uses the
javabean to display dynamic content.


 -Original Message-
 From: Cory Adams [mailto:[EMAIL PROTECTED]]
 Sent: Friday, November 03, 2000 8:13 AM
 To: Orion-Interest
 Subject: Re: Beginner: Step by step tutorial?
 
 
 You  would always use JDBC.  You do have a choice of which 
 driver to use
 though.  If you want to use the OCI native drivers you can 
 specify those in
 the JDBC datasource. 
 
 Download the Oracle JDBC drivers from Oracle's site and you can choose
 between using the Thin or OCI drivers.
 
 There are some great servlet jsp books like the Sun Press book Core
 Servlets and Java Server Pages
 
 Cory
 
 At 01:31 AM 11/4/00 +0800, Winnie Leung wrote:
 HI,
 
 I am a total beginner to Orion (and somewhat of a beginner 
 to Java). I would
 be really grateful if some one could point me to a really beginner's
 step-by-step tutorial on how to write a servlet, to do 
 standard web type
 stuff like (a) post form variables, and (b) access data from 
 the database
 (oracle -- is there a way to use OCI directly, instead of JDBC?)
 
 Thanks very much in advance,
 Winnie
 
 
 
 
 




Some beginner questions

2000-06-04 Thread Benjamin Lorenz

Hello all,

I am experimenting with Orion for some days now -- checking out
its features. Must say: Congratulations to the developer team,
very good work already. Some notes and questions, though:

 - In the FAQ, there is announced a (GUI?) admin tool for november
   (1999, I think..). Is it available somewhere? Looking for such
   fundamental things like shutting down the server...
   (I know that admin.jar can do that, but I have no success
invoking it correctly...)

 - The "hot plugging" feature of Orion is cool -- it works nicely
   for all my JSP pages and underlying beans. But it does _not_ work
   for my ejbs? When I recompile one of them, I have to kill the
   orion server (ctrl-c) and restart it. This can't be true, is it?
   BTW: When deploying, orion prints the (xml-)display-name of my web-app,
   but NOT the display-name of the ejb-app, here it just says
   "Auto-deploying directory... done". Bug or feature?

 - In the applications orion-web.xml, I define a classpath where to
   look for my jsp-beans (../beans). For some funny reasons, Orion
   copies the .class files of my ejbs into this directory when
   deploying. So, I have two locations for them (my app is named ic,
   the ejbs are in package staff):

ic/ic-web/beans/staff/foo-ejb.class
ic/ic-ejb/staff/foo-ejb.class

   Bug of feature?

That's for now, thank you for your help,
Greetings,
Benjamin Lorenz


-- 
Benjamin Lorenz {http://,mail@}benjamin-lorenz.com
60323 Frankfurt   Voice: +49 179 597 6163  Fax: +49 89 1488 201577