fundamental bugs in EJBmaker?

2001-02-23 Thread Schouten, Andreas


  Hello!
 
The EJBMaker has fundeamental bugs on my system. I can't read and
write .skelton files and don't see some options shown in the tutorial. I
tried EJBMaker form Orion1.4.5 and 1.4.0 with jdk 1.3 but it's the same
effect. 

Can someone tell me, if I have to configure something
(enviroment...)? 

  Thanks!
Andreas Schouten






RE: No influence on CMP 2.0 getter setter methods - a feature or abug?

2001-02-23 Thread Robert Krueger

At 14:54 22.02.2001 , you wrote:
My two cents ...

Putting checks in the EJB's will give you much better information on 
exactly what has gone wrong.  Adding checks in the DB as well can't hurt, 
but without the EJB checks it might be hard to know what action to take in 
the face of a generic SQL error.

Nick Newman

very true. that's why I would regard DB constraints only as an additional 
security measure to protect your data model integrity. depending on your 
jdbc driver the SQLException's error message can give you some information 
during development. however, if your client code has to react to the fact 
that a unique constraint on a non-pk key has been violated you have no 
choice but to put that check into the EJB tier and I would also generally 
regard that as better style.

regards,

robert

(-) Robert Krger
(-) SIGNAL 7 Gesellschaft fr Informationstechnologie mbH
(-) Brder-Knau-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de





Re: SAPDB experience and Datasource

2001-02-23 Thread Robert Krueger

At 00:44 23.02.2001 , you wrote:
Hello, I'd be interested in hearing the experiences from people who used
SAPDB with Orion CMP in terms of stability and performance on both linux and
nt.

SAPDB on linux in development for a little more than 3 months now and 
everything works fine. performance and stability is good. planning to go in 
production 4 weeks from now.

 data-source class="com.evermind.sql.ConnectionDataSource"
  inactivity-timeout="120"
  location="jdbc/SAPTestDBDS"
  name="SAPTest data-source"
  xa-location="jdbc/xa/SAPTestXADS"
  ejb-location="jdbc/SAPTestEJBDS"
  url="jdbc:sapdb://host/DBNAME"
  connection-driver="com.sap.dbtech.jdbc.DriverSapDB"
  username="SOMEUSER"
  password="SOMEPWD"
  /


Also if you have them available, can you share your database-schema ?

no special schema but we're not using the autocreate-tables feature anyway.

Thanks,

Christian


(-) Robert Krger
(-) SIGNAL 7 Gesellschaft fr Informationstechnologie mbH
(-) Brder-Knau-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de





No Subject

2001-02-23 Thread Schouten, Andreas

 Hello!

The EJBMaker has fundeamental bugs on my system. I can't read and
write .skelton files and don't see some options shown in the tutorial. I
tried EJBMaker form Orion1.4.5 and 1.4.0 with jdk 1.3 but it's the same
effect. 

Can someone tell me, if I have to configure something
(enviroment...)? 

  Thanks!
Andreas Schouten







RE: http 500 errors

2001-02-23 Thread Randahl Fink Isaksen



You 
would not happen to be using Internet Explorer, would you? If so, that is why 
you don't see the stack trace, someone mentioned earlier on. Go to the 
"Advanced" part of the "Internet Options" and disable the so-called "Show 
friendly http error messages". The so-called friendliness lies in the fact that 
the browser does not show the error itself, rather it shows an informative 
message to non-technical users about what they could try to do in case of the 
error, which occured.
I is 
still quite a puzzle to me why this browser does not include a link to the 
thorough error information on the so-called friendly error pages. Now THAT would 
have been friendly ;-)


Randahl

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Vaskin 
  KissoyanSent: 22. februar 2001 20:40To: 
  Orion-InterestSubject: http 500 errors
  I keep 
  getting internal server errors (HTTP 500), where do I go to debugthis? 
  Which log file has this stuff? I need a stacktrace! It's not popping up 
  on the console, and I couldn't find it in any of the obvious .log 
  files.Thanks in 
advance...


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: Win2k Pro. is messing up the DB

2001-02-23 Thread Randahl Fink Isaksen



I know 
this is a wild guess, but just to make sure, I would of course do a disk scan on 
that machine to make sure it is not a hardware problem - these things do happen, 
I am afraid.

Another good thing would be to run the application on a 
_different_ Win2K Pro. machine to make sure it is not just something which is 
specific to only her single machine.

BTW, I 
would doubt PostgreSQL more on Win2K than I would doubt Orion. Orion is a java 
application, which gives it a pretty good chance of running in the same way on 
different platforms. To the best of my knowledge PostgreSQL on Win2K is a port 
of the code from another platform, and from reading articles at PostgreSQL's 
web-site it seems it is not totally stable on Win2K. I have seen at least two 
posts on this list where people recommends *not* using PostgreSQL from Win NT 
based systems - not yet, anyway.
I have 
used Orion on Win2K with no problems - but then again I do *not* use 
PostgreSQL

Hope 
you find a solution

Yours
Randahl

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of 
  [EMAIL PROTECTED]Sent: 23. februar 2001 02:19To: 
  Orion-InterestSubject: Win2k Pro. is messing up the 
  DB
  Hello,
  I do not really know if this is because she's 
  using Window 2000 Professional.
  All our employees use Windows 2000 Servers or 
  Linuxes or Solarises except for one person.
  The exception is Windows 2000 Professional. The 
  problem occurs only at her computer.
  Once she updates a DB record, it messes up 
  another record. This does not
  happen all the time, but once in a blue moon. 
  This is why I can't catch the problem in my code.
  AndI do not think it is my code. I am 
  using CMPs and orion 1.3.8 with PostgreSQL.
  I doubted postgresql and orion in the beginning, 
  and now I narrowed it down to orion because
  it may be machine specific as I mentioned 
  earlier. Why does a DB server have to do with
  a specific machine? Then what? An App. Server 
  which holds a session to a machine?
  I am lost. Does anyone have any clue? I really 
  really hope it's my code.
  I appreciate your attention.
  
  
  Simon
  
  


RE: Browser crash under Orion/SSL

2001-02-23 Thread Cornel Masson

It seems the problem is not with IE, since it does the same with Netscape
and Opera: basically, the browser times out, because the server is not
responding to the request. I've had three different results from the
browsers:
1. it finally gives up and displays "Page cannot be displayed"
2. Opera just keeps on waiting
3. IE crashes sometimes (not always)

Thanks

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Van Dooren,
Damian
Sent: 22 February 2001 16:45
To: Orion-Interest
Subject: RE: Browser crash under Orion/SSL


It must be something else. We are running an SSL Orion site for the past 6
months, without any browsers crashes, both IE 5 and 5.5.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 22, 2001 9:43 AM
 To: Orion-Interest
 Subject: Browser crash under Orion/SSL


 Hi

 Thanks to the mailing list, I seem to have solved the
 well-known "Orion
 times out very quickly under SSL" problem. However, now my browser
 hangs/crashes at a specific point in my application. I've
 tested it on IE
 5.00 and IE 5.50 and it happens with both browsers. The
 problem does NOT
 occur under normal HTTP.

 Is Orion not a good choice for SSL, or could it be something else?

 Thanks
 Cornel Masson
 London.








RE: please tell me : does JMS work at all ?

2001-02-23 Thread Edoardo Comar

Thank you,
Pey Yen.

I don't understand how it can work for you, especially without editing
jms.xml.
I can avoid creating new connection factories, but I can't avoid declaring
my destinations !!!

If I do NOT edit jms.xml , I get
Error looking up objects: Error reading application-client descriptor: No
location set for Topic resource jms/theTopic

If I add a location=jms/theTopic attribute to orion-application-client.xml I
get :
Error looking up objects: Error reading application-client descriptor: Error
creating context: jms/theTopic not found

regardless of the location attribute, if I add the jms/theTopic to jms.xml,
then the lookup works (as expected) but I get :
Exception in thread "main" java.lang.NullPointerException
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:329)
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306)
at com.evermind.server.jms.ck.init(JAX)
at com.evermind.server.jms.b9.start(JAX)
at JMSChat.run(JMSChat.java:61)
at JMSChat.main(JMSChat.java:29)

So I maintain tha JMS does not work at all. I have tried to use weblogic and
my jms code works like a breeze.

cheers
Edo

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Chia, Pei Yen
 Sent: 23 February 2001 03:28
 To: Orion-Interest
 Subject: RE: please tell me : does JMS work at all ?


 Hi,

   The chat example works. You have to activate the JMS service in
 /config/server.xml file (uncomment jms-config path="./jms.xml" / ).

   Don't modify anything from the original jms.xml. Then do the steps as
 documented at "jmsdemo-readme.txt". It should be able to work.

   I encountered the same problem at connection.start() when i tried to
 include
 topic-connection-factory host=hostaddr
 location="jms/theTopicConnectionFactory" port="9127" /
 at my jms.xml file.

   I believe the chat example makes reference to the jndi.properties file.

   I hope this helps.

   I'm still trying to figure out why connection.start() fails as
 i'm trying
 to write a MEssageDrivenBean that needs to register the TopicFactory and
 Topic for other clients to subscribe to. Still not successful yet. Any
 pointers, anybody?

 Pei Yen

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Edoardo Comar
 Sent: 23 February 2001 02:47
 To: Orion-Interest
 Subject: please tell me : does JMS work at all ?


 Please, can anyone confirm that (as of 1.4.7) JMS does not work at all ?

 See my previous messages for details ... basically a connection.start()
 throws an NPE
 and a send doesn't work if the connection is not started (contrary to the
 spec which requires start() to be called for message delivery).

 Edo











Where to specify the sub-context of a bean at deploy time?

2001-02-23 Thread Frank Eggink

Hi,

I have succefully deployed more complex apps with a number of EJBs, but 
deploying one entity seems to be a pain for me. Can someone shed some 
light?

I'm refering to the bean in the code with 'ejb/appname/beanname'. So that 
is bean with 'beanname' in sub context 'ejb/appname'.

This works fine in the larger applications. I guess because they all have 
ejb-ref elements in the ejb-jar file defined. It does not work for my 
single been application, where I don't have any ejb-refs specified.

Best guessing I thought that you would need to specify the sub-context in 
the orion-application.xml, but I could not find out from the docs what I 
should do.


Frank Eggink
Swift Applications
[EMAIL PROTECTED]
+31 6 28847325 (voice)
+31 33 4532464 (fax)





sending to this list always produces an error mail

2001-02-23 Thread Edoardo Comar

Hi

sending to this mailing list always produces an error mail like the one
shown below.
I have tried to contact the postmaster mentioned in the error mail, but he
doesn't exist 

Edo

 -Original Message-
 From: mail [mailto:[EMAIL PROTECTED]]
 Sent: 23 February 2001 10:13
 To: Edoardo Comar
 Cc: [EMAIL PROTECTED]
 Subject: Your message concerning RE: please tell me : does JMS work at
 all ?



 The person you have tried to contact is no longer employed at Netch
 Technologies.  You may wish to contact us at [EMAIL PROTECTED] instead, or
 visit us on the web, http://www.netch.se/ .

 This message is probably caused by one of the following recipient
 adresses:


 [EMAIL PROTECTED]

 If you feel this message is in error, mail [EMAIL PROTECTED] to
 get in touch with the mail administrator.

 regards,
   /netch/

 The original message follows:

 From [EMAIL PROTECTED]  Fri Feb 23 11:12:55
 2001Received: from ernst-hugo.netch.se
 (IDENT:[EMAIL PROTECTED] [194.16.2.10])
   by atwood.netch.se (8.9.3/8.9.3) with ESMTP id LAA04056
   for [EMAIL PROTECTED]; Fri, 23 Feb 2001 11:12:55 +0100
 Received: from druid.evermind.net (IDENT:[EMAIL PROTECTED]
 [195.58.126.196])
   by ernst-hugo.netch.se (8.9.3/8.9.3) with ESMTP id LAA31261;
   Fri, 23 Feb 2001 11:12:55 +0100
 Received: from druid.evermind.net (IDENT:[EMAIL PROTECTED]
 [195.58.126.196])
   by druid.evermind.net (8.9.3/8.9.3) with SMTP id LAA13166;
   Fri, 23 Feb 2001 11:49:01 -0100
 Received: from maps.knowledgeview.co.uk (maps.knowledgeview.co.uk
 [193.114.95.2])
   by paladin.evermind.net (8.9.3/8.9.3) with ESMTP id MAA06179
   for [EMAIL PROTECTED]; Fri, 23 Feb 2001
 12:37:54 -0500
 Received: from edo ([193.114.95.145]) by
   maps.knowledgeview.co.uk (Netscape Messaging Server 4.15) with
   SMTP id G97EQG00.45D for [EMAIL PROTECTED]; Fri,
   23 Feb 2001 09:37:28 +
 From: "Edoardo Comar" [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Subject: RE: please tell me : does JMS work at all ?
 Date: Fri, 23 Feb 2001 09:41:48 -
 Message-ID: [EMAIL PROTECTED]
 MIME-Version: 1.0
 Content-Type: text/plain;
   charset="iso-8859-1"
 Content-Transfer-Encoding: 7bit
 X-Priority: 3 (Normal)
 X-MSMail-Priority: Normal
 X-Mailer: Orion ListServer
 In-Reply-To: [EMAIL PROTECTED]
 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
 Importance: Normal
 Reply-To: Orion-Interest [EMAIL PROTECTED]
 Sender: [EMAIL PROTECTED]

 Thank you,
 Pey Yen.

 I don't understand how it can work for you, especially without editing
 jms.xml.
 I can avoid creating new connection factories, but I can't avoid declaring
 my destinations !!!

 If I do NOT edit jms.xml , I get
 Error looking up objects: Error reading application-client descriptor: No
 location set for Topic resource jms/theTopic

 If I add a location=jms/theTopic attribute to
 orion-application-client.xml I
 get :
 Error looking up objects: Error reading application-client
 descriptor: Error
 creating context: jms/theTopic not found

 regardless of the location attribute, if I add the jms/theTopic
 to jms.xml,
 then the lookup works (as expected) but I get :
 Exception in thread "main" java.lang.NullPointerException
 at java.io.DataOutputStream.writeUTF(DataOutputStream.java:329)
 at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306)
 at com.evermind.server.jms.ck.init(JAX)
 at com.evermind.server.jms.b9.start(JAX)
 at JMSChat.run(JMSChat.java:61)
 at JMSChat.main(JMSChat.java:29)

 So I maintain tha JMS does not work at all. I have tried to use
 weblogic and
 my jms code works like a breeze.

 cheers
 Edo

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Chia, Pei Yen
  Sent: 23 February 2001 03:28
  To: Orion-Interest
  Subject: RE: please tell me : does JMS work at all ?
 
 
  Hi,
 
The chat example works. You have to activate the JMS service in
  /config/server.xml file (uncomment jms-config path="./jms.xml" / ).
 
Don't modify anything from the original jms.xml. Then do the steps as
  documented at "jmsdemo-readme.txt". It should be able to work.
 
I encountered the same problem at connection.start() when i tried to
  include
  topic-connection-factory host=hostaddr
  location="jms/theTopicConnectionFactory" port="9127" /
  at my jms.xml file.
 
I believe the chat example makes reference to the
 jndi.properties file.
 
I hope this helps.
 
I'm still trying to figure out why connection.start() fails as
  i'm trying
  to write a MEssageDrivenBean that needs to register the TopicFactory and
  Topic for other clients to subscribe to. Still not successful yet. Any
  pointers, anybody?
 
  Pei Yen
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Edoardo Comar
  Sent: 23 February 2001 02:47
  To: Orion-Interest
  Subject: please tell me : does JMS work at all ?
 
 

CLASSPATH setup

2001-02-23 Thread Peter Peltonen


I'm a beginner with Orion and Java setup with Linux. I would like to know if I
have setup my system correctly.

I have installed the following on my RedHat 6.2 system:

postgresql-jdbc-7.0.2-2
jdk-1.2.2
j2sdkee-1.2.1
orion-1.4.5

For everything work right, I should have the CLASSPATH variable setup right,
yes? I am a bit confused where to setup it, actually.


Java 2 SDK Enterprise Edition
-

Reading the j2sdkee-1.2.1 installation instructions  I added the postgres
jdbc-driver to the J2EE_CLASSPATH variable in
/usr/local/java/j2sdkee1.2.1/bin/userconfig.sh:

--snip--
J2EE_CLASSPATH=/usr/src/j2sdkee1.2.1/lib/j2ee.jar:/usr/src/j2sdkee1.2.1/lib/system/jdbc7.0-1.2.jar
export J2EE_CLASSPATH
--snip--

I tried running the userconfig.sh script but nothing seems to happen. My
J2EE_CLASSPATH variable did not appear to be existing when I ran echo. So,
when is this file read, then? 

And what does this warning mean (quoted from the installation instructions):

"Note: You should remove the driver .jar files from the CLASSPATH environment
variable."

So, what is the relation with J2EE_CLASSPATH and CLASSPATH?

In my setup (see below) J2EE_CLASSPATH is included in CLASSPATH, is this
wrong?



/etc/profile


As running usreconfig.sh did nothing, I configured the variables I needed in
/etc/profile. In my /etc/profile reads:

--snip--
JAVA_HOME=/usr/local/java/jdk1.2.2
J2EE_CLASSPATH=/usr/src/j2sdkee1.2.1/lib/system/jdbc7.0-1.2.jar
CLASSPATH=$JAVA_HOME:$J2EE_CLASSPATH

export JAVA_HOME J2EE_CLASSPATH CLASSPATH
--snip--

So, my current setup is this:

[peter@cayman orion]$ echo $CLASSPATH
/usr/local/java/jdk1.2.2:/usr/src/j2sdkee1.2.1/lib/system/jdbc7.0-1.2.jar

[peter@cayman orion]$ echo $JAVA_HOME
/usr/local/java/jdk1.2.2

[peter@cayman orion]$ echo $J2EE_CLASSPATH
/usr/src/j2sdkee1.2.1/lib/system/jdbc7.0-1.2.jar


Is this alright? Am I missing something etc.?


Regards,
Peter




RE: FAQ-O-MATIC (was: EJB Clustering -- ANYONE? [Urgent!])

2001-02-23 Thread Joseph B. Ottinger

It sort of has one... :) And I've installed faq-o-matic before - it kinda
bites.

On Thu, 22 Feb 2001, Tim Endres wrote:

  More than anything else, though, I think Orion needs a FAQ-O-MATIC.
 
 Seconded!
 
 

---
Joseph B. Ottinger   [EMAIL PROTECTED]
http://epesh.com/ IT Consultant





posting a message to the orion mailing list

2001-02-23 Thread Peter Peltonen


I got this reply while trying to send a message to the list. What's up, am I
sending my mails to the wrong address while trying to reach the Orion Server's
Mailing List?
I sent the message to the address [EMAIL PROTECTED]

Regards,
Peter


-- the bounce i received:

Subject: Your message concerning CLASSPATH setup
Date:Fri, 23 Feb 2001 14:03:25 +0100
From:mail [EMAIL PROTECTED]
To:  Peter Peltonen [EMAIL PROTECTED]
CC:  [EMAIL PROTECTED]

The person you have tried to contact is no longer employed at Netch
Technologies.  You may wish to contact us at [EMAIL PROTECTED] instead, or
visit us on the web, http://www.netch.se/ .

This message is probably caused by one of the following recipient
adresses:


[EMAIL PROTECTED]

If you feel this message is in error, mail [EMAIL PROTECTED] to 
get in touch with the mail administrator.

regards,
/netch/

The original message follows:

From [EMAIL PROTECTED]  Fri Feb 23 14:03:24 2001Received: from
ernst-hugo.netch.se
(IDENT:[EMAIL PROTECTED] [194.16.2.10])
by atwood.netch.se (8.9.3/8.9.3) with ESMTP id OAA00629
for [EMAIL PROTECTED]; Fri, 23 Feb 2001 14:03:23 +0100
Received: from druid.evermind.net (IDENT:[EMAIL PROTECTED]
[195.58.126.196])
by ernst-hugo.netch.se (8.9.3/8.9.3) with ESMTP id OAA18816;
Fri, 23 Feb 2001 14:03:23 +0100
Received: from druid.evermind.net (IDENT:[EMAIL PROTECTED]
[195.58.126.196])
by druid.evermind.net (8.9.3/8.9.3) with SMTP id OAA17563;
Fri, 23 Feb 2001 14:32:44 -0100
Received: from mandy.eunet.fi (mandy.eunet.fi [193.66.1.129])
by paladin.evermind.net (8.9.3/8.9.3) with ESMTP id PAA07702
for [EMAIL PROTECTED]; Fri, 23 Feb 2001 15:24:20 -0500
Received: from mail.fivetec.com (net130.fivetec.com [193.65.111.130])
by mandy.eunet.fi (8.9.3/8.9.3-KJN-spamaway) with SMTP id OAA15525
for [EMAIL PROTECTED] (origin
[EMAIL PROTECTED]); 
Fri, 23 Feb 2001 14:26:45 +0200 (EET)
Received: (qmail 15483 invoked from network); 23 Feb 2001 12:26:54 -
Received: from net190.fivetec.com (HELO fivetec.com) (@193.65.111.190)
  by net130.fivetec.com with SMTP; 23 Feb 2001 12:26:54 -
Sender: [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]
Date: Fri, 23 Feb 2001 14:26:44 +0200
From: Peter Peltonen [EMAIL PROTECTED]
Organization: Fivetec Solutions Oy
X-Mailer: Orion ListServer
X-Accept-Language: en
MIME-Version: 1.0
To: Orion-Interest [EMAIL PROTECTED]
Subject: CLASSPATH setup
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Reply-To: Orion-Interest [EMAIL PROTECTED]


I'm a beginner with Orion and Java setup with Linux. I would like to know if I
have setup my system correctly.

I have installed the following on my RedHat 6.2 system:

postgresql-jdbc-7.0.2-2
jdk-1.2.2
j2sdkee-1.2.1
orion-1.4.5

For everything work right, I should have the CLASSPATH variable setup right,
yes? I am a bit confused where to setup it, actually.


Java 2 SDK Enterprise Edition
-

Reading the j2sdkee-1.2.1 installation instructions  I added the postgres
jdbc-driver to the J2EE_CLASSPATH variable in
/usr/local/java/j2sdkee1.2.1/bin/userconfig.sh:

--snip--
J2EE_CLASSPATH=/usr/src/j2sdkee1.2.1/lib/j2ee.jar:/usr/src/j2sdkee1.2.1/lib/system/jdbc7.0-1.2.jar
export J2EE_CLASSPATH
--snip--

I tried running the userconfig.sh script but nothing seems to happen. My
J2EE_CLASSPATH variable did not appear to be existing when I ran echo. So,
when is this file read, then? 

And what does this warning mean (quoted from the installation instructions):

"Note: You should remove the driver .jar files from the CLASSPATH environment
variable."

So, what is the relation with J2EE_CLASSPATH and CLASSPATH?

In my setup (see below) J2EE_CLASSPATH is included in CLASSPATH, is this
wrong?



/etc/profile


As running usreconfig.sh did nothing, I configured the variables I needed in
/etc/profile. In my /etc/profile reads:

--snip--
JAVA_HOME=/usr/local/java/jdk1.2.2
J2EE_CLASSPATH=/usr/src/j2sdkee1.2.1/lib/system/jdbc7.0-1.2.jar
CLASSPATH=$JAVA_HOME:$J2EE_CLASSPATH

export JAVA_HOME J2EE_CLASSPATH CLASSPATH
--snip--

So, my current setup is this:

[peter@cayman orion]$ echo $CLASSPATH
/usr/local/java/jdk1.2.2:/usr/src/j2sdkee1.2.1/lib/system/jdbc7.0-1.2.jar

[peter@cayman orion]$ echo $JAVA_HOME
/usr/local/java/jdk1.2.2

[peter@cayman orion]$ echo $J2EE_CLASSPATH
/usr/src/j2sdkee1.2.1/lib/system/jdbc7.0-1.2.jar


Is this alright? Am I missing something etc.?


Regards,
Peter




SV: posting a message to the orion mailing list

2001-02-23 Thread Magnus Rydin
Title: SV: posting a message to the orion mailing list





I've mailed the Netch mail administrator and he promised to take care of it.
WR


 -Ursprungligt meddelande-
 Från: Peter Peltonen [mailto:[EMAIL PROTECTED]]
 Skickat: den 23 februari 2001 05:19
 Till: Orion-Interest
 Kopia: [EMAIL PROTECTED]
 Ämne: posting a message to the orion mailing list
 
 
 
 I got this reply while trying to send a message to the list. 
 What's up, am I
 sending my mails to the wrong address while trying to reach 
 the Orion Server's
 Mailing List?
 I sent the message to the address [EMAIL PROTECTED]
 
 Regards,
 Peter
 
 
 -- the bounce i received:
 
 Subject: Your message concerning CLASSPATH setup
 Date: Fri, 23 Feb 2001 14:03:25 +0100
 From: mail [EMAIL PROTECTED]
 To: Peter Peltonen [EMAIL PROTECTED]
 CC: [EMAIL PROTECTED]
 
 The person you have tried to contact is no longer employed at Netch
 Technologies. You may wish to contact us at [EMAIL PROTECTED] instead, or
 visit us on the web, http://www.netch.se/ .
 
 This message is probably caused by one of the following recipient
 adresses:
 
 
 [EMAIL PROTECTED]
 
 If you feel this message is in error, mail [EMAIL PROTECTED] to 
 get in touch with the mail administrator.
 
 regards,
 /netch/
 
 The original message follows:
 
 From [EMAIL PROTECTED] Fri Feb 23 14:03:24 
 2001Received: from
 ernst-hugo.netch.se
 (IDENT:[EMAIL PROTECTED] [194.16.2.10])
 by atwood.netch.se (8.9.3/8.9.3) with ESMTP id OAA00629
 for [EMAIL PROTECTED]; Fri, 23 Feb 2001 14:03:23 +0100
 Received: from druid.evermind.net (IDENT:[EMAIL PROTECTED]
 [195.58.126.196])
 by ernst-hugo.netch.se (8.9.3/8.9.3) with ESMTP id OAA18816;
 Fri, 23 Feb 2001 14:03:23 +0100
 Received: from druid.evermind.net (IDENT:[EMAIL PROTECTED]
 [195.58.126.196])
 by druid.evermind.net (8.9.3/8.9.3) with SMTP id OAA17563;
 Fri, 23 Feb 2001 14:32:44 -0100
 Received: from mandy.eunet.fi (mandy.eunet.fi [193.66.1.129])
 by paladin.evermind.net (8.9.3/8.9.3) with ESMTP id PAA07702
 for [EMAIL PROTECTED]; Fri, 23 Feb 
 2001 15:24:20 -0500
 Received: from mail.fivetec.com (net130.fivetec.com [193.65.111.130])
 by mandy.eunet.fi (8.9.3/8.9.3-KJN-spamaway) with 
 SMTP id OAA15525
 for [EMAIL PROTECTED] (origin
 [EMAIL PROTECTED]); 
 Fri, 23 Feb 2001 14:26:45 +0200 (EET)
 Received: (qmail 15483 invoked from network); 23 Feb 2001 
 12:26:54 -
 Received: from net190.fivetec.com (HELO fivetec.com) (@193.65.111.190)
 by net130.fivetec.com with SMTP; 23 Feb 2001 12:26:54 -
 Sender: [EMAIL PROTECTED]
 Message-ID: [EMAIL PROTECTED]
 Date: Fri, 23 Feb 2001 14:26:44 +0200
 From: Peter Peltonen [EMAIL PROTECTED]
 Organization: Fivetec Solutions Oy
 X-Mailer: Orion ListServer
 X-Accept-Language: en
 MIME-Version: 1.0
 To: Orion-Interest [EMAIL PROTECTED]
 Subject: CLASSPATH setup
 Content-Type: text/plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 Reply-To: Orion-Interest [EMAIL PROTECTED]
 
 
 I'm a beginner with Orion and Java setup with Linux. I would 
 like to know if I
 have setup my system correctly.
 
 I have installed the following on my RedHat 6.2 system:
 
 postgresql-jdbc-7.0.2-2
 jdk-1.2.2
 j2sdkee-1.2.1
 orion-1.4.5
 
 For everything work right, I should have the CLASSPATH 
 variable setup right,
 yes? I am a bit confused where to setup it, actually.
 
 
 Java 2 SDK Enterprise Edition
 -
 
 Reading the j2sdkee-1.2.1 installation instructions I added 
 the postgres
 jdbc-driver to the J2EE_CLASSPATH variable in
 /usr/local/java/j2sdkee1.2.1/bin/userconfig.sh:
 
 --snip--
 J2EE_CLASSPATH=/usr/src/j2sdkee1.2.1/lib/j2ee.jar:/usr/src/j2s
 dkee1.2.1/lib/system/jdbc7.0-1.2.jar
 export J2EE_CLASSPATH
 --snip--
 
 I tried running the userconfig.sh script but nothing seems to 
 happen. My
 J2EE_CLASSPATH variable did not appear to be existing when I 
 ran echo. So,
 when is this file read, then? 
 
 And what does this warning mean (quoted from the installation 
 instructions):
 
 Note: You should remove the driver .jar files from the 
 CLASSPATH environment
 variable.
 
 So, what is the relation with J2EE_CLASSPATH and CLASSPATH?
 
 In my setup (see below) J2EE_CLASSPATH is included in 
 CLASSPATH, is this
 wrong?
 
 
 
 /etc/profile
 
 
 As running usreconfig.sh did nothing, I configured the 
 variables I needed in
 /etc/profile. In my /etc/profile reads:
 
 --snip--
 JAVA_HOME=/usr/local/java/jdk1.2.2
 J2EE_CLASSPATH=/usr/src/j2sdkee1.2.1/lib/system/jdbc7.0-1.2.jar
 CLASSPATH=$JAVA_HOME:$J2EE_CLASSPATH
 
 export JAVA_HOME J2EE_CLASSPATH CLASSPATH
 --snip--
 
 So, my current setup is this:
 
 [peter@cayman orion]$ echo $CLASSPATH
 /usr/local/java/jdk1.2.2:/usr/src/j2sdkee1.2.1/lib/system/jdbc
 7.0-1.2.jar
 
 [peter@cayman orion]$ echo $JAVA_HOME
 /usr/local/java/jdk1.2.2
 
 [peter@cayman orion]$ echo $J2EE_CLASSPATH
 /usr/src/j2sdkee1.2.1/lib/system/jdbc7.0-1.2.jar
 
 
 Is this alright? Am I missing something etc.?
 
 
 Regards,
 Peter
 





RE: CLASSPATH setup

2001-02-23 Thread Arved Sandstrom

The one thing that will clear things up for you is to realize that APIs and
implementation are not one and the same. Sun specifies the J2EE APIs;
however, the j2sdkee is a _reference implementation_ of those APIs. In other
words, it does what Orion does, or what other application servers do.

So you don't need both. If you want to use Orion you don't need the j2sdkee
at all. The Orion distribution already includes the J2EE interfaces and any
third-party implementation (including Sun's) that it needs.

A lot of the Sun J2EE documentation is very good. But when it comes to
installation, configuration and server-specific deployment (like using the
deploytool) then refer to the docs that accompany the specific server you
are using.

Hope this helps.

Regards,
Arved Sandstrom

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Peter Peltonen
Sent: Friday, February 23, 2001 8:27 AM
To: Orion-Interest
Subject: CLASSPATH setup



I'm a beginner with Orion and Java setup with Linux. I would like to know if
I
have setup my system correctly.

I have installed the following on my RedHat 6.2 system:

postgresql-jdbc-7.0.2-2
jdk-1.2.2
j2sdkee-1.2.1
orion-1.4.5

For everything work right, I should have the CLASSPATH variable setup right,
yes? I am a bit confused where to setup it, actually.


Java 2 SDK Enterprise Edition
-

Reading the j2sdkee-1.2.1 installation instructions  I added the postgres
jdbc-driver to the J2EE_CLASSPATH variable in
/usr/local/java/j2sdkee1.2.1/bin/userconfig.sh:

--snip--
J2EE_CLASSPATH=/usr/src/j2sdkee1.2.1/lib/j2ee.jar:/usr/src/j2sdkee1.2.1/lib/
system/jdbc7.0-1.2.jar
export J2EE_CLASSPATH
--snip--

I tried running the userconfig.sh script but nothing seems to happen. My
J2EE_CLASSPATH variable did not appear to be existing when I ran echo. So,
when is this file read, then?

And what does this warning mean (quoted from the installation instructions):

"Note: You should remove the driver .jar files from the CLASSPATH
environment
variable."

So, what is the relation with J2EE_CLASSPATH and CLASSPATH?

In my setup (see below) J2EE_CLASSPATH is included in CLASSPATH, is this
wrong?



/etc/profile


As running usreconfig.sh did nothing, I configured the variables I needed in
/etc/profile. In my /etc/profile reads:

--snip--
JAVA_HOME=/usr/local/java/jdk1.2.2
J2EE_CLASSPATH=/usr/src/j2sdkee1.2.1/lib/system/jdbc7.0-1.2.jar
CLASSPATH=$JAVA_HOME:$J2EE_CLASSPATH

export JAVA_HOME J2EE_CLASSPATH CLASSPATH
--snip--

So, my current setup is this:

[peter@cayman orion]$ echo $CLASSPATH
/usr/local/java/jdk1.2.2:/usr/src/j2sdkee1.2.1/lib/system/jdbc7.0-1.2.jar

[peter@cayman orion]$ echo $JAVA_HOME
/usr/local/java/jdk1.2.2

[peter@cayman orion]$ echo $J2EE_CLASSPATH
/usr/src/j2sdkee1.2.1/lib/system/jdbc7.0-1.2.jar


Is this alright? Am I missing something etc.?


Regards,
Peter






RE: EJB Clustering -- ANYONE? [Urgent!]

2001-02-23 Thread Kemp Randy-W18971

This is the same point I have been hammering to Orion for a while.  Orion makes a 
wonderful product, but how do those outside of the Orion world know that?  If you 
never heard of the state of Hawaii, and I told you a hundred years ago it's a great 
island to sail to, would you believe me?  If I printed up some descriptive literature, 
and put pretty pictures in them, would you be inclined to take the trip?  So what does 
Orion need? A good, organized manual, with topic headings, like the jboss manual 
provides.  Detailed worked out examples, like the site www.jollem.com provides. Go to 
a site like Jrun or ewave, download the documentation, and review it.  Don't write the 
doc yourself, but hire a good tech writer.  If you need one, I can recommend one from 
my writing class that can make the Orion doc read like "Gone with the Wind".   Make 
the documentation so simple, I could give it to my janitor and he will say -- J2EE, 
yee haw!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 1:30 AM
To: Orion-Interest
Subject: EJB Clustering -- ANYONE? [Urgent!]


A better description of Orion as a product!

I have dedicated a lot of time of testing things that both work and does
not seem to work, for example JMS and otherthings. The feature list  on the
frontpage is accordingly to "thin".  And yes I have been reading the
mailing list, but is not easy for beginners.

So, some decsription, characterisation  (data sheet) or whatever of the
product, that tells the user or byuer what they get and what the
orionserver can handle.

And as pointed out before, the documentation could be better (sorry Magnus,
very general). Have you seen the new documentation for JBoss.

/Theis.





RE: Debugging and orion

2001-02-23 Thread Edoardo Comar

I've used jbuilder 4.0 (the free foundation version will be just fine) and
it is a great debugger.

you define a seprate project for orion server :
a project with no sources to compile but two libraries : one contains all
the orion binaries, one contains all your sources.
it has the orion server main class as main class, and the orion dir as
working dir.

select a source where you want to set a breakpoint (using the class
sleector, not the project pane because there you won't see your sources).
run the project in debug mode, use the browser or whatever client to invoke
your classes deployed in orion and jb will stop at your breakpoint.

BTW, exactly this same procedure works also with weblogic, jboss ... (well,
with wl6 you have to define a wrapper class that invokes weblogic server,
but apart form that it's the same).

Edo

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Kemp
 Randy-W18971
 Sent: 22 February 2001 20:07
 To: Orion-Interest
 Subject: RE: Debugging and orion


 Thanks, Mac.  I will give it a shot.

 -Original Message-
 From: Mac Ferguson [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 22, 2001 12:20 PM
 To: Orion-Interest
 Subject: RE: Debugging and orion


 start orion with the following options:

 java -Xdebug -Xnoagent -Djava.compiler=NONE
 -Xrunjdwp:transport=dt_socket,se
 rver=y,suspend=y,address=whatever port you're going to use -jar
 orion.jar

 then create a new project in Bugseeker, selected Remote as the
 project type,
 and accepted all other default properties. Then set the
 Debug|Remote|Attach
 to type socket, Hostname=your server ip and Port=the port you specified
 above

 I like this setup, particularly for EJBs, but I'll be interested to see if
 Kawa will work any better.

 Cheers,
 Mac Ferguson
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Kemp
  Randy-W18971
  Sent: Wednesday, February 21, 2001 1:39 PM
  To: Orion-Interest
  Subject: RE: Debugging and orion
 
 
  Mac
 I would be interested in what steps you took to get Bugseeker
  connected to your remote VM, as would other people on the list.
  Are the steps short enough to include in an Orion Interest email?
  Randy
 
  -Original Message-
  From: Mac Ferguson [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, February 21, 2001 10:59 AM
  To: Orion-Interest
  Subject: RE: Debugging and orion
 
 
  I was in contact with Allaire's Kawa support recently and they
  told me that
  Kawa will support running/debugging Orion directly in it's IDE in an
  upcoming service pack, how soon it will be released is not certain, so
  caveat emptor. I found Kawa to be a pretty good basic IDE (I
  don't like lots
  of frills, I just want codesense and debugging), although in
  addition to not
  yet supporting Orion it was not a simple affair to add .class
 files to the
  CodeSense. If you want a decent step-thru remote debugger, check out
  Bugseeker (http://www.karmira.com) it was a bit tricky to get
 it connected
  to my remote JVM, but once I figured it out it was pretty good,
  it's *very*
  affordable, too. I also have recently become aware of JSwat
  (http://www.bluemarsh.com/java/jswat/), an open-source debugger. I am
  currently using the combination of Visual Slickedit for
 editing, Bugseeker
  for debugging and ANT for building, I occasionally fire up Forte (only
  because I have 256 MB memory and lots of time!) to do visual
 Swing stuff.
 
  Hope this helps,
  Mac Ferguson
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]On Behalf Of Julian
   Richardson
   Sent: Wednesday, February 21, 2001 6:18 AM
   To: Orion-Interest
   Subject: Debugging and orion
  
  
   Hi,
  
   What tools / IDEs are people out there using to develop EJBs
  for use with
   Orion? At the moment we (as a project team, rather than company)
   are trying
   to standardise on an app server and IDE to use, requirements being the
   usual:
  
 cost
 speed
 flexibility
 resource usage
 debugging support from the IDE
  
   - I saw that someone mentioned using Kawa with Orion on the
 orionsupport
   website; has this combination been used by many people? (I'm new
   to the app
   server world, although I've been doing server-side Java work
 for several
   years now - I'm not used to environments where it's even possible
   to use an
   integrated debugger, but others on the team say it's necessary :-)
  
   Comments about the speed / flexibility / resource usage of Orion
   are welcome
   too, from the website it looks pretty slick and the
 documentation looks
   good, but time will tell... also if there's any major snags
  with orion in
   terms of things that the current version doesn't do correctly
 or doesn't
   implement...
  
   cheers
  
   Jules
  
   --
  
 
 








RE: CMP 2.0 OR mapping problem

2001-02-23 Thread Michael A Third


Thanks for the reply.  We were already doing this, and I realized how
repetitive it was and hoped that 1.4.7 could cut the time we spent doing
this (we have a lot of these relationships).  Does anyone have a guess as to
when full EJB 2.0 support will be available?

Thanks,

Michael

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Schnitzer
Sent: Thursday, February 22, 2001 8:18 PM
To: Orion-Interest
Subject: RE: CMP 2.0 OR mapping problem


Bidirectional relationships do not yet work.

There are two workarounds that have worked for me:

Manually add (and remove!) both sides of the relationship.  So your
Marketplace.addStorefront() method would look like this:

void addStorefront(Storefront front)
{
this.getStorefronts().add(front);

front.setMarketplace((Marketplace)this.ejbContext.getEJBObject());
}

etc.  Alternatively you can modify your
Marketplace.getMarketplaceStorefronts() method so that instead of
obtaining the storefronts from the internal collection it runs a
findByMarketplace finder method on the StorefrontHome.  Then you just
need to make sure that the storefronts-marketplace reference is kept
solid.

Jeff

-Original Message-
From: Michael A Third [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 3:37 PM
To: Orion-Interest
Subject: CMP 2.0 OR mapping problem


I have been trying to get Orion to correctly map a non-dependant
bidirectional 1:N relationship using EJB 2.0.  It tries to generate a
collection mapping that uses a third table to hold the
reference.  I was
able to deploy it properly using a unidirectional relationship.

Here is the relevant entries from ejb-jar.xml (edited for brevity):
   entity

ejb-namecom.trademotion.ejb.base.Marketplace/ejb-name

cmp-fieldfield-namemarketplaceID/field-name/cmp-field

cmp-fieldfield-namename/field-name/cmp-field

cmp-fieldfield-namestorefronts/field-name/cmp-field
   primkey-fieldmarketplaceID/primkey-field
   /entity
   entity

ejb-namecom.trademotion.ejb.base.Storefront/ejb-name

cmp-fieldfield-namestorefrontID/field-name/cmp-field

cmp-fieldfield-namename/field-name/cmp-field

cmp-fieldfield-namemarketplace/field-name/cmp-field
   primkey-fieldstorefrontID/primkey-field
   /entity

   relationships
   !-- 1:N (Marketplace Storefront) --
   ejb-relation

ejb-relation-nameMarketplace-Storefront/ejb-relation-name

   ejb-relationship-role

ejb-relationship-role-namemarketplace-has-storefronts
   /ejb-relationship-role-name
   multiplicityOne/multiplicity
   role-source

ejb-namecom.trademotion.ejb.base.Marketplace/ejb-name
   /role-source
   cmr-field

cmr-field-namestorefronts/cmr-field-name

cmr-field-typejava.util.Collection/cmr-field-type
   /cmr-field
   /ejb-relationship-role

   ejb-relationship-role

ejb-relationship-role-namestorefront-belongsto-marketplace
   /ejb-relationship-role-name
   multiplicityMany/multiplicity
   cascade-delete/
   role-source

ejb-namecom.trademotion.ejb.base.Storefront/ejb-name
   /role-source
   cmr-field

cmr-field-namemarketplace/cmr-field-name

cmr-field-typecom.trademotion.ejb.base.Marketplace
   /cmr-field-type
   /cmr-field
   /ejb-relationship-role
   /ejb-relation

   /relationships
Here is the generated orion-ejb-jar.xml (again, edited):
   entity-deployment
name="com.trademotion.ejb.base.Marketplace"
   primkey-mapping
   cmp-field-mapping
name="marketplaceID" persistence-
   name="marketplaceID" /
   /primkey-mapping
   cmp-field-mapping name="storefronts"
   collection-mapping

table="com_trademotion_ejb_base_Marketplace_storefronts"
   primkey-mapping

cmp-field-mapping name="marketplaceID" persistence-

name="marketplaceID" /
   /primkey-mapping
   value-mapping
type="com.trademotion.ejb.base.Storefront"

cmp-field-mapping name="value"
   entity-ref

home="com.trademotion.ejb.base.Storefront"

cmp-field-mapping name="value"
   persistence-name="value"
/
   /entity-ref
   

SV: CMP 2.0 OR mapping problem

2001-02-23 Thread Magnus Rydin
Title: SV: CMP 2.0 OR mapping problem





Please remember that the EJB 2.0 spec is not yet released.
Although the Orion Team has always be known to be fast to implement early specifications,
this is a costly arrangement as specifications change.


Personally I hope that EJB 2.0 relations will soon be fully implemented.
WR


 -Ursprungligt meddelande-
 Från: Michael A Third [mailto:[EMAIL PROTECTED]]
 Skickat: den 23 februari 2001 06:15
 Till: Orion-Interest
 Ämne: RE: CMP 2.0 OR mapping problem
 
 
 
 Thanks for the reply. We were already doing this, and I realized how
 repetitive it was and hoped that 1.4.7 could cut the time we 
 spent doing
 this (we have a lot of these relationships). Does anyone 
 have a guess as to
 when full EJB 2.0 support will be available?
 
 Thanks,
 
 Michael
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of 
 Jeff Schnitzer
 Sent: Thursday, February 22, 2001 8:18 PM
 To: Orion-Interest
 Subject: RE: CMP 2.0 OR mapping problem
 
 
 Bidirectional relationships do not yet work.
 
 There are two workarounds that have worked for me:
 
 Manually add (and remove!) both sides of the relationship. So your
 Marketplace.addStorefront() method would look like this:
 
 void addStorefront(Storefront front)
 {
  this.getStorefronts().add(front);
 
 front.setMarketplace((Marketplace)this.ejbContext.getEJBObject());
 }
 
 etc. Alternatively you can modify your
 Marketplace.getMarketplaceStorefronts() method so that instead of
 obtaining the storefronts from the internal collection it runs a
 findByMarketplace finder method on the StorefrontHome. Then you just
 need to make sure that the storefronts-marketplace reference is kept
 solid.
 
 Jeff
 
 -Original Message-
 From: Michael A Third [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 22, 2001 3:37 PM
 To: Orion-Interest
 Subject: CMP 2.0 OR mapping problem
 
 
 I have been trying to get Orion to correctly map a non-dependant
 bidirectional 1:N relationship using EJB 2.0. It tries to generate a
 collection mapping that uses a third table to hold the
 reference. I was
 able to deploy it properly using a unidirectional relationship.
 
 Here is the relevant entries from ejb-jar.xml (edited for brevity):
   entity
 
 ejb-namecom.trademotion.ejb.base.Marketplace/ejb-name
 
 cmp-fieldfield-namemarketplaceID/field-name/cmp-field
 
 cmp-fieldfield-namename/field-name/cmp-field
 
 cmp-fieldfield-namestorefronts/field-name/cmp-field
primkey-fieldmarketplaceID/primkey-field
   /entity
   entity
 
 ejb-namecom.trademotion.ejb.base.Storefront/ejb-name
 
 cmp-fieldfield-namestorefrontID/field-name/cmp-field
 
 cmp-fieldfield-namename/field-name/cmp-field
 
 cmp-fieldfield-namemarketplace/field-name/cmp-field
primkey-fieldstorefrontID/primkey-field
   /entity
 
  relationships
   !-- 1:N (Marketplace Storefront) --
   ejb-relation
 
 ejb-relation-nameMarketplace-Storefront/ejb-relation-name
 
ejb-relationship-role
 
 ejb-relationship-role-namemarketplace-has-storefronts
 /ejb-relationship-role-name
 multiplicityOne/multiplicity
 role-source
 
 ejb-namecom.trademotion.ejb.base.Marketplace/ejb-name
 /role-source
 cmr-field
 
 cmr-field-namestorefronts/cmr-field-name
 
 cmr-field-typejava.util.Collection/cmr-field-type
 /cmr-field
/ejb-relationship-role
 
ejb-relationship-role
 
 ejb-relationship-role-namestorefront-belongsto-marketplace
 /ejb-relationship-role-name
 multiplicityMany/multiplicity
 cascade-delete/
 role-source
 
 ejb-namecom.trademotion.ejb.base.Storefront/ejb-name
 /role-source
 cmr-field
 
 cmr-field-namemarketplace/cmr-field-name
 
 cmr-field-typecom.trademotion.ejb.base.Marketplace
  /cmr-field-type
 /cmr-field
/ejb-relationship-role
   /ejb-relation
 
  /relationships
 Here is the generated orion-ejb-jar.xml (again, edited):
   entity-deployment
 name=com.trademotion.ejb.base.Marketplace
primkey-mapping
 cmp-field-mapping
 name=marketplaceID persistence-
  name=marketplaceID /
/primkey-mapping
cmp-field-mapping name=storefronts
 collection-mapping
 
 table=com_trademotion_ejb_base_Marketplace_storefronts
  primkey-mapping
 
 cmp-field-mapping name=marketplaceID persistence-
 
 name=marketplaceID /
  /primkey-mapping
  value-mapping
 type=com.trademotion.ejb.base.Storefront
 
 cmp-field-mapping name=value
entity-ref
 
 home=com.trademotion.ejb.base.Storefront
 
 cmp-field-mapping name=value
   persistence-name=value
 /
/entity-ref
   /cmp-field-mapping
  /value-mapping
 /collection-mapping
/cmp-field-mapping
   /entity-deployment
 
 The Storefront side of relationship is generated correctly.
 From previous
 posts, Orion supports what I'm trying to do (btw, I'm using 1.4.7).
 
 Thanks,
 
 Michael A Third
 Parts.com
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of
 Robert Krueger
 

RE: FAQ-O-MATIC

2001-02-23 Thread David Kinnvall

On Thu, 22 Feb 2001, Tim Endres wrote:
  More than anything else, though, I think Orion needs a FAQ-O-MATIC.
 
 Seconded!

+1

-- 
David, [EMAIL PROTECTED]





Running the examples

2001-02-23 Thread Kemp Randy-W18971

In the new Jboss manual (www.jboss.org), there is a chapter on 
Running the Examples from Enterprise JavaBeans, by Richard Monson-Haefel
(Unix) 
which shows how do set them up on jboss, since the examples are free to
download
Perhaps something similar in Orion would be useful to newcomers.  




Re: http 500 errors

2001-02-23 Thread Vaskin Kissoyan



Thanks, that was it!


  - Original Message - 
  From: 
  Randahl Fink 
  Isaksen 
  To: Orion-Interest 
  Sent: Friday, February 23, 2001 3:52 
  AM
  Subject: RE: http 500 errors
  
  You 
  would not happen to be using Internet Explorer, would you? If so, that is why 
  you don't see the stack trace, someone mentioned earlier on. Go to the 
  "Advanced" part of the "Internet Options" and disable the so-called "Show 
  friendly http error messages". The so-called friendliness lies in the fact 
  that the browser does not show the error itself, rather it shows an 
  informative message to non-technical users about what they could try to do in 
  case of the error, which occured.
  I is 
  still quite a puzzle to me why this browser does not include a link to the 
  thorough error information on the so-called friendly error pages. Now THAT 
  would have been friendly ;-)
  
  
  Randahl
  
-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Vaskin 
KissoyanSent: 22. februar 2001 20:40To: 
Orion-InterestSubject: http 500 errors
I keep 
getting internal server errors (HTTP 500), where do I go to debugthis? 
Which log file has this stuff? I need a stacktrace! It's not popping 
up on the console, and I couldn't find it in any of the obvious .log 
files.Thanks in 
advance...


Re: sending to this list always produces an error mail

2001-02-23 Thread Luis Javier Beltran

Maybe the list administrator should unsubscribe that email address...


- Original Message -
From: "Edoardo Comar" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Friday, February 23, 2001 5:24 AM
Subject: sending to this list always produces an error mail


 Hi

 sending to this mailing list always produces an error mail like the one
 shown below.
 I have tried to contact the postmaster mentioned in the error mail, but he
 doesn't exist 

 Edo

  -Original Message-
  From: mail [mailto:[EMAIL PROTECTED]]
  Sent: 23 February 2001 10:13
  To: Edoardo Comar
  Cc: [EMAIL PROTECTED]
  Subject: Your message concerning RE: please tell me : does JMS work at
  all ?
 
 
 
  The person you have tried to contact is no longer employed at Netch
  Technologies.  You may wish to contact us at [EMAIL PROTECTED] instead, or
  visit us on the web, http://www.netch.se/ .
 
  This message is probably caused by one of the following recipient
  adresses:
 
 
  [EMAIL PROTECTED]
 
  If you feel this message is in error, mail [EMAIL PROTECTED] to
  get in touch with the mail administrator.
 
  regards,
  /netch/
 
  The original message follows:
 
  From [EMAIL PROTECTED]  Fri Feb 23 11:12:55
  2001Received: from ernst-hugo.netch.se
  (IDENT:[EMAIL PROTECTED] [194.16.2.10])
  by atwood.netch.se (8.9.3/8.9.3) with ESMTP id LAA04056
  for [EMAIL PROTECTED]; Fri, 23 Feb 2001 11:12:55 +0100
  Received: from druid.evermind.net (IDENT:[EMAIL PROTECTED]
  [195.58.126.196])
  by ernst-hugo.netch.se (8.9.3/8.9.3) with ESMTP id LAA31261;
  Fri, 23 Feb 2001 11:12:55 +0100
  Received: from druid.evermind.net (IDENT:[EMAIL PROTECTED]
  [195.58.126.196])
  by druid.evermind.net (8.9.3/8.9.3) with SMTP id LAA13166;
  Fri, 23 Feb 2001 11:49:01 -0100
  Received: from maps.knowledgeview.co.uk (maps.knowledgeview.co.uk
  [193.114.95.2])
  by paladin.evermind.net (8.9.3/8.9.3) with ESMTP id MAA06179
  for [EMAIL PROTECTED]; Fri, 23 Feb 2001
  12:37:54 -0500
  Received: from edo ([193.114.95.145]) by
maps.knowledgeview.co.uk (Netscape Messaging Server 4.15) with
SMTP id G97EQG00.45D for [EMAIL PROTECTED];
Fri,
23 Feb 2001 09:37:28 +
  From: "Edoardo Comar" [EMAIL PROTECTED]
  To: Orion-Interest [EMAIL PROTECTED]
  Subject: RE: please tell me : does JMS work at all ?
  Date: Fri, 23 Feb 2001 09:41:48 -
  Message-ID: [EMAIL PROTECTED]
  MIME-Version: 1.0
  Content-Type: text/plain;
  charset="iso-8859-1"
  Content-Transfer-Encoding: 7bit
  X-Priority: 3 (Normal)
  X-MSMail-Priority: Normal
  X-Mailer: Orion ListServer
  In-Reply-To: [EMAIL PROTECTED]
  X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
  Importance: Normal
  Reply-To: Orion-Interest [EMAIL PROTECTED]
  Sender: [EMAIL PROTECTED]
 
  Thank you,
  Pey Yen.
 
  I don't understand how it can work for you, especially without editing
  jms.xml.
  I can avoid creating new connection factories, but I can't avoid
declaring
  my destinations !!!
 
  If I do NOT edit jms.xml , I get
  Error looking up objects: Error reading application-client descriptor:
No
  location set for Topic resource jms/theTopic
 
  If I add a location=jms/theTopic attribute to
  orion-application-client.xml I
  get :
  Error looking up objects: Error reading application-client
  descriptor: Error
  creating context: jms/theTopic not found
 
  regardless of the location attribute, if I add the jms/theTopic
  to jms.xml,
  then the lookup works (as expected) but I get :
  Exception in thread "main" java.lang.NullPointerException
  at java.io.DataOutputStream.writeUTF(DataOutputStream.java:329)
  at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306)
  at com.evermind.server.jms.ck.init(JAX)
  at com.evermind.server.jms.b9.start(JAX)
  at JMSChat.run(JMSChat.java:61)
  at JMSChat.main(JMSChat.java:29)
 
  So I maintain tha JMS does not work at all. I have tried to use
  weblogic and
  my jms code works like a breeze.
 
  cheers
  Edo
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]On Behalf Of Chia, Pei
Yen
   Sent: 23 February 2001 03:28
   To: Orion-Interest
   Subject: RE: please tell me : does JMS work at all ?
  
  
   Hi,
  
 The chat example works. You have to activate the JMS service in
   /config/server.xml file (uncomment jms-config path="./jms.xml" / ).
  
 Don't modify anything from the original jms.xml. Then do the steps
as
   documented at "jmsdemo-readme.txt". It should be able to work.
  
 I encountered the same problem at connection.start() when i tried to
   include
   topic-connection-factory host=hostaddr
   location="jms/theTopicConnectionFactory" port="9127" /
   at my jms.xml file.
  
 I believe the chat example makes reference to the
  jndi.properties file.
  
 I hope this helps.
  
 I'm still trying to figure out why connection.start() fails as
   i'm trying
   to write a MEssageDrivenBean that 

RE: CLASSPATH setup

2001-02-23 Thread Jeff Schnitzer

The J2EE sdk is not necessary, and probably should be removed.  It is
the reference implementation of a J2EE server.  You will be using Orion
instead.

Why aren't you using the 1.3 jdk?

Put the postgres jdbc driver in the orion/lib directory.

That should work :-)

Jeff

-Original Message-
From: Peter Peltonen [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 4:27 AM
To: Orion-Interest
Subject: CLASSPATH setup



I'm a beginner with Orion and Java setup with Linux. I would 
like to know if I
have setup my system correctly.

I have installed the following on my RedHat 6.2 system:

postgresql-jdbc-7.0.2-2
jdk-1.2.2
j2sdkee-1.2.1
orion-1.4.5

For everything work right, I should have the CLASSPATH 
variable setup right,
yes? I am a bit confused where to setup it, actually.


Java 2 SDK Enterprise Edition
-

Reading the j2sdkee-1.2.1 installation instructions  I added 
the postgres
jdbc-driver to the J2EE_CLASSPATH variable in
/usr/local/java/j2sdkee1.2.1/bin/userconfig.sh:

--snip--
J2EE_CLASSPATH=/usr/src/j2sdkee1.2.1/lib/j2ee.jar:/usr/src/j2sd
kee1.2.1/lib/system/jdbc7.0-1.2.jar
export J2EE_CLASSPATH
--snip--

I tried running the userconfig.sh script but nothing seems to 
happen. My
J2EE_CLASSPATH variable did not appear to be existing when I 
ran echo. So,
when is this file read, then? 

And what does this warning mean (quoted from the installation 
instructions):

"Note: You should remove the driver .jar files from the 
CLASSPATH environment
variable."

So, what is the relation with J2EE_CLASSPATH and CLASSPATH?

In my setup (see below) J2EE_CLASSPATH is included in 
CLASSPATH, is this
wrong?



/etc/profile


As running usreconfig.sh did nothing, I configured the 
variables I needed in
/etc/profile. In my /etc/profile reads:

--snip--
JAVA_HOME=/usr/local/java/jdk1.2.2
J2EE_CLASSPATH=/usr/src/j2sdkee1.2.1/lib/system/jdbc7.0-1.2.jar
CLASSPATH=$JAVA_HOME:$J2EE_CLASSPATH

export JAVA_HOME J2EE_CLASSPATH CLASSPATH
--snip--

So, my current setup is this:

[peter@cayman orion]$ echo $CLASSPATH
/usr/local/java/jdk1.2.2:/usr/src/j2sdkee1.2.1/lib/system/jdbc7
.0-1.2.jar

[peter@cayman orion]$ echo $JAVA_HOME
/usr/local/java/jdk1.2.2

[peter@cayman orion]$ echo $J2EE_CLASSPATH
/usr/src/j2sdkee1.2.1/lib/system/jdbc7.0-1.2.jar


Is this alright? Am I missing something etc.?


Regards,
Peter






RE: Any way to forward to j_security_check?

2001-02-23 Thread michael . kaufman

Thanks to everyone for the replies, useful info on Orion apart from anything
else !

Main ideas seem to be:

a). Programmatic login using RoleManager - Had looked at this, very useful but
the authentication isn't really the problem. What's needed after some code of
our own is the normal j_security_check behaviour, in particular go to the
originally requested page if sign-on succeessful. To use programmatic login
we'd need a way to identify the original url that triggered the sign-on page.
At worst one could program the entire security onself, but this seems
undesirable.

b). Servlet filter - Good idea, but have similar problems of what URL pattern
will select the post to j_security_check. Haven't yet found a pattern that
selects it.

But more generally, I'm finding I can't even use j_security_check by giving it
as the form action as per Servlet spec. If sign-on fails, the failed page is
displayed ok, but if sign-on succeeds, I get page not found with a url of
...appcontext.../j_security_check. I suspect this is the real problem, or at
least part of the story.

By the way, I gather from the Sun java forums that they're aware of the
limitations of the sign-on and user-admin aspects of the spec but have
deferred enhancements till after Servlet 2.3 so it can be looked into properly
rather than rushing minor tweaks into 2.3.

For info, I'm on Orion 1.4.5, just evaluating it as one of the possible
alternatives to our current IBM Websphere. Trying to keep to a single
code-base for both Websphere and J2EE-compliant servers, extending to allow
for any others we try.

Thanks
Mike


   
   
   
   
   
   
   
   
   
   
   
  !
   
***
NIG
The National Insurance 
Guarantee Corporation PLC

Reg. Office :
Crown House
145 City Road
London
EC1V 1LP

Registered in England  Wales No : 42133
***
Legal disclaimer :
This message is confidential and for use by the addressee only.  If the
message is received by anyone other than the addressee, please return
the message to the sender by replying to it and then delete the message
from your computer.

NIG does not accept responsibility for changes made to this message
after it was sent.





RE: CLASSPATH setup

2001-02-23 Thread SureTicket.com

The way i do it is modify /etc/profile,
there is already PATH variable setuped, so
just setup CLASSPATH in a same manner and
it going to be available for all users.

Hope this helps

-Anton aka sigg-

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Peter Peltonen
Sent: Friday, February 23, 2001 7:27 AM
To: Orion-Interest
Subject: CLASSPATH setup



I'm a beginner with Orion and Java setup with Linux. I would like to know if
I
have setup my system correctly.

I have installed the following on my RedHat 6.2 system:

postgresql-jdbc-7.0.2-2
jdk-1.2.2
j2sdkee-1.2.1
orion-1.4.5

For everything work right, I should have the CLASSPATH variable setup right,
yes? I am a bit confused where to setup it, actually.


Java 2 SDK Enterprise Edition
-

Reading the j2sdkee-1.2.1 installation instructions  I added the postgres
jdbc-driver to the J2EE_CLASSPATH variable in
/usr/local/java/j2sdkee1.2.1/bin/userconfig.sh:

--snip--
J2EE_CLASSPATH=/usr/src/j2sdkee1.2.1/lib/j2ee.jar:/usr/src/j2sdkee1.2.1/lib/
system/jdbc7.0-1.2.jar
export J2EE_CLASSPATH
--snip--

I tried running the userconfig.sh script but nothing seems to happen. My
J2EE_CLASSPATH variable did not appear to be existing when I ran echo. So,
when is this file read, then?

And what does this warning mean (quoted from the installation instructions):

"Note: You should remove the driver .jar files from the CLASSPATH
environment
variable."

So, what is the relation with J2EE_CLASSPATH and CLASSPATH?

In my setup (see below) J2EE_CLASSPATH is included in CLASSPATH, is this
wrong?



/etc/profile


As running usreconfig.sh did nothing, I configured the variables I needed in
/etc/profile. In my /etc/profile reads:

--snip--
JAVA_HOME=/usr/local/java/jdk1.2.2
J2EE_CLASSPATH=/usr/src/j2sdkee1.2.1/lib/system/jdbc7.0-1.2.jar
CLASSPATH=$JAVA_HOME:$J2EE_CLASSPATH

export JAVA_HOME J2EE_CLASSPATH CLASSPATH
--snip--

So, my current setup is this:

[peter@cayman orion]$ echo $CLASSPATH
/usr/local/java/jdk1.2.2:/usr/src/j2sdkee1.2.1/lib/system/jdbc7.0-1.2.jar

[peter@cayman orion]$ echo $JAVA_HOME
/usr/local/java/jdk1.2.2

[peter@cayman orion]$ echo $J2EE_CLASSPATH
/usr/src/j2sdkee1.2.1/lib/system/jdbc7.0-1.2.jar


Is this alright? Am I missing something etc.?


Regards,
Peter






Re: Win2k Pro. is messing up the DB

2001-02-23 Thread orion



Hello Randahl,
First of all, I appreciate your idea.
Yes, we came to the near conclusion that it was not 
orion but it was postgresql.
To tell the truth, I believe in orionbut not 
very much so in postgresql.
As a matter of fact, we are using a CVS version of 
PostgreSQL because
the released version of postgresql does not yet 
support the right join sql statement.
To make matters worse, the Linux JDBC driver was 
not working properly on the timestamp
field before I made a modification on the driver. 
We were totally forgetting all about this.
Our Windows developershave had no problems 
with ODBC drivers so far, out of which
we can guess it is not the DB itself but it is the 
Linux JDBC driver.
What are your thoughts?
Once again, thank you very much.



Simon







  - Original Message - 
  From: 
  Randahl Fink 
  Isaksen 
  To: Orion-Interest 
  Sent: Friday, February 23, 2001 1:07 
  AM
  Subject: RE: Win2k Pro. is messing up the 
  DB
  
  I 
  know this is a wild guess, but just to make sure, I would of course do a disk 
  scan on that machine to make sure it is not a hardware problem - these things 
  do happen, I am afraid.
  
  Another good thing would be to run the application on 
  a _different_ Win2K Pro. machine to make sure it is not just something which 
  is specific to only her single machine.
  
  BTW, 
  I would doubt PostgreSQL more on Win2K than I would doubt Orion. Orion is a 
  java application, which gives it a pretty good chance of running in the same 
  way on different platforms. To the best of my knowledge PostgreSQL on Win2K is 
  a port of the code from another platform, and from reading articles at 
  PostgreSQL's web-site it seems it is not totally stable on Win2K. I have seen 
  at least two posts on this list where people recommends *not* using PostgreSQL 
  from Win NT based systems - not yet, anyway.
  I 
  have used Orion on Win2K with no problems - but then again I do *not* use 
  PostgreSQL
  
  Hope 
  you find a solution
  
  Yours
  Randahl
  
-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of 
[EMAIL PROTECTED]Sent: 23. februar 2001 02:19To: 
Orion-InterestSubject: Win2k Pro. is messing up the 
DB
Hello,
I do not really know if this is because she's 
using Window 2000 Professional.
All our employees use Windows 2000 Servers or 
Linuxes or Solarises except for one person.
The exception is Windows 2000 Professional. The 
problem occurs only at her computer.
Once she updates a DB record, it messes up 
another record. This does not
happen all the time, but once in a blue moon. 
This is why I can't catch the problem in my code.
AndI do not think it is my code. I 
am using CMPs and orion 1.3.8 with PostgreSQL.
I doubted postgresql and orion in the 
beginning, and now I narrowed it down to orion because
it may be machine specific as I mentioned 
earlier. Why does a DB server have to do with
a specific machine? Then what? An App. Server 
which holds a session to a machine?
I am lost. Does anyone have any clue? I really 
really hope it's my code.
I appreciate your attention.


Simon




Re: sending to this list always produces an error mail

2001-02-23 Thread KirkYarina

It's can be tough to find the address they're originally sent to, 
especially if there's more than one address in that domain subscribed or 
(worse yet) if it's an alias in a different domain.  The error message is 
generated via an alias (quit@...) and everything identifying the original 
address is missing from the message or headers.

Some lists handle this with periodic probes, sending a unique message to 
every address on the list that can identify the original address, and 
looking at the bounces.  It's can be a bit of work to create these if the 
list software doesn't support it, however.

Kirk Yarina

At 04:22 PM 2/23/01 -0500, you wrote:
Maybe the list administrator should unsubscribe that email address...


- Original Message -
From: "Edoardo Comar" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Friday, February 23, 2001 5:24 AM
Subject: sending to this list always produces an error mail


  Hi
 
  sending to this mailing list always produces an error mail like the one
  shown below.
  I have tried to contact the postmaster mentioned in the error mail, but he
  doesn't exist 
 
  Edo
 
   -Original Message-
   From: mail [mailto:[EMAIL PROTECTED]]
   Sent: 23 February 2001 10:13
   To: Edoardo Comar
   Cc: [EMAIL PROTECTED]
   Subject: Your message concerning RE: please tell me : does JMS work at
   all ?
  
  
  
   The person you have tried to contact is no longer employed at Netch
   Technologies.  You may wish to contact us at [EMAIL PROTECTED] instead, or
   visit us on the web, http://www.netch.se/ .
  
   This message is probably caused by one of the following recipient
   adresses:
  
  
   [EMAIL PROTECTED]
  
   If you feel this message is in error, mail [EMAIL PROTECTED] to
   get in touch with the mail administrator.
  
   regards,
   /netch/
  
   The original message follows:
  
   From [EMAIL PROTECTED]  Fri Feb 23 11:12:55
   2001Received: from ernst-hugo.netch.se
   (IDENT:[EMAIL PROTECTED] [194.16.2.10])
   by atwood.netch.se (8.9.3/8.9.3) with ESMTP id LAA04056
   for [EMAIL PROTECTED]; Fri, 23 Feb 2001 11:12:55 +0100
   Received: from druid.evermind.net (IDENT:[EMAIL PROTECTED]
   [195.58.126.196])
   by ernst-hugo.netch.se (8.9.3/8.9.3) with ESMTP id LAA31261;
   Fri, 23 Feb 2001 11:12:55 +0100
   Received: from druid.evermind.net (IDENT:[EMAIL PROTECTED]
   [195.58.126.196])
   by druid.evermind.net (8.9.3/8.9.3) with SMTP id LAA13166;
   Fri, 23 Feb 2001 11:49:01 -0100
   Received: from maps.knowledgeview.co.uk (maps.knowledgeview.co.uk
   [193.114.95.2])
   by paladin.evermind.net (8.9.3/8.9.3) with ESMTP id MAA06179
   for [EMAIL PROTECTED]; Fri, 23 Feb 2001
   12:37:54 -0500
   Received: from edo ([193.114.95.145]) by
 maps.knowledgeview.co.uk (Netscape Messaging Server 4.15) with
 SMTP id G97EQG00.45D for [EMAIL PROTECTED];
Fri,
 23 Feb 2001 09:37:28 +
   From: "Edoardo Comar" [EMAIL PROTECTED]
   To: Orion-Interest [EMAIL PROTECTED]
   Subject: RE: please tell me : does JMS work at all ?
   Date: Fri, 23 Feb 2001 09:41:48 -
   Message-ID: [EMAIL PROTECTED]
   MIME-Version: 1.0
   Content-Type: text/plain;
   charset="iso-8859-1"
   Content-Transfer-Encoding: 7bit
   X-Priority: 3 (Normal)
   X-MSMail-Priority: Normal
   X-Mailer: Orion ListServer
   In-Reply-To: [EMAIL PROTECTED]
   X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
   Importance: Normal
   Reply-To: Orion-Interest [EMAIL PROTECTED]
   Sender: [EMAIL PROTECTED]
  





RE: fundamental bugs in EJBmaker?

2001-02-23 Thread Frank Eggink

As I can remember from previous postings it had to do with the UI for 
selecting the skeleton file. If you check the mailing archive on 
www.orionserver.com you'l find an answer.

FE

On Friday, February 23, 2001 9:02 AM, Schouten, Andreas 
[SMTP:[EMAIL PROTECTED]] wrote:

   Hello!
 
   The EJBMaker has fundeamental bugs on my system. I can't read and
 write .skelton files and don't see some options shown in the tutorial. I
 tried EJBMaker form Orion1.4.5 and 1.4.0 with jdk 1.3 but it's the same
 effect.

   Can someone tell me, if I have to configure something
 (enviroment...)?

 Thanks!
   Andreas Schouten


 




Setting up ProductServlet

2001-02-23 Thread Diego Amicabile

RUNNING THE PRODUCT SERVLET FROM ORION

Assuming you have done what is described in 
\orion\ejb\demo\install.txt

Add the following lines to the files :

/orion/config/default-web-site.xml
   web-app application="ejbsamples" name="product"
root="/product" /
/orion/config/server.xml
  application name="ejbsamples" path="../demo/ejb" /

/orion/application-deployments/ejbsamples/orion-application.xml
  web-module id="product" path="product" /

Create the file : /orion/
application-deployments/ejbsamples/product/orion-web.xml

 ?xml version="1.0"?
!DOCTYPE orion-web-app PUBLIC "-//Evermind//DTD Orion
Web Application 2.3//EN"
"http://www.orionserver.com/dtds/orion-web.dtd"

orion-web-app
deployment-version="1.4.5"
jsp-cache-directory="./persistence"
temporary-directory="./temp"
servlet-webdir="/servlet/"

session-tracking /
/orion-web-app

Create the directory :
/orion/ejb/demo/product/Web-inf/classes

Move the ProductServlet.* stuff to this newly created
directory.


Add to the file :
/orion/ejb/demo/Meta-inf/application.xml

module 
   web 
   web-uriproduct/web-uri 
   context-root/product/context-root 
/web 
/module

Create the file :
/orion/ejb/demo/product/Web-inf/web.xml

?xml version="1.0"?
!DOCTYPE web-app PUBLIC "-//Sun Microsystems,
Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_3.dtd"

web-app
servlet
servlet-nameProductServlet/servlet-name
display-nameProduct Servlet/display-name
servlet-classProductServlet/servlet-class
/servlet
login-config
auth-methodBASIC/auth-method
/login-config
/web-app

Now you should be able to reach the servlet typing

http://localhost/product/servlet/ProductServlet



__
Do You Yahoo!?
Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it




A Question

2001-02-23 Thread Richard Doust

I'm not sure if I'm doing this right, but since I'm receiving e-mails from
this address, I'll try sending a question to it.
I am developing server side code that is using JAXP 1.0. The jaxp download
from sun includes a DocumentBuilderFactoryImpl class that comes from apache
that is in the crimson.jar file. Orion requires the same class and loads the
one provided by sun in parser.jar which does not implement the same methods
as the one in crimson.jar. I want to use the one in crimson.jar. I cannot
figure out how to get Orion to use this one. According to the docs on the
DocumentBuilderFactory interface, this can be established via System
Properties. I don't know what those are. I have looked at the .properties
files in Orion's distribution and I don't see anything that looks like it
would specify this.
Any help?
Thanks





jsp form-based authentication

2001-02-23 Thread Vaskin Kissoyan



I need a good example of looking up 
username/password in a database, how do you override the security so that it 
checks a database instead of checking the internal web.xml file and 
principals.xml?




Re: Test20Cmp / Jim Archers example

2001-02-23 Thread Jim Archer

Yes, I know why they are there...

At one point with some version of Orion way back when, failing to 
initialize the fields to something caused an error (I don't remember 
exactly what error) when the bean was persisted or activated or something 
like that. Much of my code from which pieces of the examples were taken 
didn't populate all fields in the bean, just the key field, in the create 
method. This example, I believe, does not work that way (I would have to 
check and don't remember off the top of my head).

So prehaps the need for this was long ago removed by a fix or upgrade. This 
is an old example now. Mostly, the three examples I wrote, I feel, are 
usefull for demonstrating how to make EJB 2.0 CMP work under Orion. Orion's 
implementation veries a bit from the proposed final draft, so these 
examples do whats needed to make the code work.

BTW, Joe and whoever else maintains OrionSupport.com, could you guys add my 
other two examples to the site? I get many requests for these files from 
people who said they looked there first...

Jim


--On Thursday, February 22, 2001 1:02 PM -0500 Tim Endres 
[EMAIL PROTECTED] wrote:

 I am not certain about Jim's example. However, we use this style of code
 to null out "transient" fields that get filled in during the use of an
 entity bean. The problem is that these fields are not "cleared" between
 passivation and re-activation. Thus, you can have fields with invalid
 values from a pervious incantation of the bean. Clearing these fields
 solves that problem.

 tim.

 I just read Arhcer's Test20Cmp example (posted on this list earlier on).
 I am unaware of the need for the initToNull() method (see below); does
 anyone know why its there - its is repeated in the later examples aswell.

 Well, I know at least one guy who knows... but if anyone else but Jim
 himself knows, you are of course also very welcome to reply ;-). Thanks.


 Randahl



 public String ejbCreate() {
  trace("ejbCreate() entered");

  initToNull();

  setUserId("jarcher");
  setFirstName("Jim");
  setLastName("Archer");
  setEmail("[EMAIL PROTECTED]");

  trace("ejbCreate() exiting");

   // In CMP, should return null.
   return null;
 }


 // 
  private void initToNull()
  {
  trace("initToNull() entered");

  setUserId(null);
  setFirstName(null);
  setLastName(null);
  setEmail(null);

  trace("initToNull() exiting");
  }







I shall be telling this with a sigh
Somewhere ages and ages hence:
Two roads diverged in a wood, and I -
I took the one less traveled by,
And that has made all the difference.

- Robert Frost, 1916





RE: Accessing Orion as EJB Server

2001-02-23 Thread Fyffe Carl

Tibor,

I suggest you check out http://www.jollem.com   They have two orion primers
that are very helpful in understanding the relationships between ejb,
servlets, jsps and how orion implements them.  Specifically for your
question please check out the Orion
Primer(http://www.jollem.com/orion-primer/).  This will give you an example
of how to do an EJB with a servlet and what is required to make it all work.

Carl

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Tibor Hegyi
Sent: Friday, February 23, 2001 2:33 AM
To: Orion-Interest
Subject: Accessing Orion as EJB Server


Hi Guys,

Well, the topic was touched a couple of times but I could not figure the
answer out from teh archive, so please be patient!

I want to access my EJBs deployed in Orion remotely from a Servlet deployed
in Tomcat. I know that I must set up jndi properties (URL, principal,
password, InitialContextFactory). Two questions I have:

1. What reference should I use in the ctx.lookup method call in the Servlet?
"java:comp/env/ejb/EJBName" or "com.somepackage.EJBRemoteInterface"?

2. What files do I need on the client (servlet) side in order to compile and
run my servlet?
Only the Home and Remote interfaces or some helper classes too? How can I
generate the helper classes with Orion?

Please help with these above!

Best regards and keep on! The list is nice!

Tibor






RE: CMP 2.0 OR mapping problem

2001-02-23 Thread Jim Archer

Heck, I would love to know a guess on when the darned spec will be available! The 
sooner the better!

Jim

--On Friday, February 23, 2001 9:15 AM -0500 Michael A Third [EMAIL PROTECTED] wrote:


 Thanks for the reply.  We were already doing this, and I realized how
 repetitive it was and hoped that 1.4.7 could cut the time we spent doing
 this (we have a lot of these relationships).  Does anyone have a guess as
 to when full EJB 2.0 support will be available?

 Thanks,

 Michael

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Schnitzer
 Sent: Thursday, February 22, 2001 8:18 PM
 To: Orion-Interest
 Subject: RE: CMP 2.0 OR mapping problem


 Bidirectional relationships do not yet work.

 There are two workarounds that have worked for me:

 Manually add (and remove!) both sides of the relationship.  So your
 Marketplace.addStorefront() method would look like this:

 void addStorefront(Storefront front)
 {
this.getStorefronts().add(front);

 front.setMarketplace((Marketplace)this.ejbContext.getEJBObject());
 }

 etc.  Alternatively you can modify your
 Marketplace.getMarketplaceStorefronts() method so that instead of
 obtaining the storefronts from the internal collection it runs a
 findByMarketplace finder method on the StorefrontHome.  Then you just
 need to make sure that the storefronts-marketplace reference is kept
 solid.

 Jeff

 -Original Message-
 From: Michael A Third [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 22, 2001 3:37 PM
 To: Orion-Interest
 Subject: CMP 2.0 OR mapping problem


 I have been trying to get Orion to correctly map a non-dependant
 bidirectional 1:N relationship using EJB 2.0.  It tries to generate a
 collection mapping that uses a third table to hold the
 reference.  I was
 able to deploy it properly using a unidirectional relationship.

 Here is the relevant entries from ejb-jar.xml (edited for brevity):
  entity

 ejb-namecom.trademotion.ejb.base.Marketplace/ejb-name

 cmp-fieldfield-namemarketplaceID/field-name/cmp-field

 cmp-fieldfield-namename/field-name/cmp-field

 cmp-fieldfield-namestorefronts/field-name/cmp-field
  primkey-fieldmarketplaceID/primkey-field
  /entity
  entity

 ejb-namecom.trademotion.ejb.base.Storefront/ejb-name

 cmp-fieldfield-namestorefrontID/field-name/cmp-field

 cmp-fieldfield-namename/field-name/cmp-field

 cmp-fieldfield-namemarketplace/field-name/cmp-field
  primkey-fieldstorefrontID/primkey-field
  /entity

  relationships
  !-- 1:N (Marketplace Storefront) --
  ejb-relation

 ejb-relation-nameMarketplace-Storefront/ejb-relation-name

  ejb-relationship-role

 ejb-relationship-role-namemarketplace-has-storefronts
  /ejb-relationship-role-name
  multiplicityOne/multiplicity
  role-source

 ejb-namecom.trademotion.ejb.base.Marketplace/ejb-name
  /role-source
  cmr-field

 cmr-field-namestorefronts/cmr-field-name

 cmr-field-typejava.util.Collection/cmr-field-type
  /cmr-field
  /ejb-relationship-role

  ejb-relationship-role

 ejb-relationship-role-namestorefront-belongsto-marketplace
  /ejb-relationship-role-name
  multiplicityMany/multiplicity
  cascade-delete/
  role-source

 ejb-namecom.trademotion.ejb.base.Storefront/ejb-name
  /role-source
  cmr-field

 cmr-field-namemarketplace/cmr-field-name

 cmr-field-typecom.trademotion.ejb.base.Marketplace
  /cmr-field-type
  /cmr-field
  /ejb-relationship-role
  /ejb-relation

  /relationships
 Here is the generated orion-ejb-jar.xml (again, edited):
  entity-deployment
 name="com.trademotion.ejb.base.Marketplace"
  primkey-mapping
  cmp-field-mapping
 name="marketplaceID" persistence-
  name="marketplaceID" /
  /primkey-mapping
  cmp-field-mapping name="storefronts"
  collection-mapping

 table="com_trademotion_ejb_base_Marketplace_storefronts"
  primkey-mapping

 cmp-field-mapping name="marketplaceID" persistence-

 name="marketplaceID" /
  /primkey-mapping
  value-mapping
 type="com.trademotion.ejb.base.Storefront"

 cmp-field-mapping name="value"
  entity-ref

 

Configuring security for EJB - what's my error?

2001-02-23 Thread Falk Langhammer

Hi,

I start to use Orion 1.4.5 which seems to be a great product.
To get things started I ported our show-case J2EE application (a
conference management tool) over to Orion and I am almost done. Except
for this problem:

Whenever I call an EJB method I get the following exception:
---8---
com.evermind.server.rmi.OrionRemoteException: falk is not allowed to
call this EJB method, check your security settings (method-permission in
ejb-jar.xml and security-role-mapping in orion-application.xml).
at com.livis.livingtalks.model.LTUtils.handleException(LTUtils.java:72)
at com.livis.livingtalks.model.LTUtils.createManage(LTUtils.java:163)
at com.livis.livingtalks.web.TypeWebImpl.init(TypeWebImpl.java:24)
at /types.jsp._jspService(/types.jsp.java:35)
...
---8---
(Tracking in the code it is a a create()-method on the home-interface of
the 'ManageBean'. It is the first bean method called - so no method
presumable may be invoked.)

User 'falk' is a valid user which I configured and which I have
successfully logged in on the web tier.
User 'falk' has the following mapping in the corresponding files:

ejb-jar.xml (for the ManageBean which contains the EJB method):
---8---
method-permission
role-namemaster/role-name
method
ejb-nameManageBean/ejb-name
method-name*/method-name
/method
/method-permission
---8---
orion-application.xml:
---8---
security-role-mapping name="master"
group name="ltroot" /
/security-role-mapping
---8---
principal.xml:
---8---
principals
groups
group name="ltroot"
descriptionltroot/description
permission name="rmi:login" /
permission name="com.evermind.server.rmi.RMIPermission" /
/group
...
/groups
users
user username="falk" password="123"
descriptionThe master/description
group-membership group="ltroot" /
/user
...
/users
/principals
---8---
This should mean that 'falk' is logged in and is in role 'master' and
may execute any method in the ManageBean.

Where is the problem
Without any roles and corresponding mappings everything works ok.
It works fine, eg. in Sun's RI with roles.
I tried without 'permission name="rmi...' - no change.

I run out of ideas. Any help?
I also cannot see any documentation, sample code, not on orionserver or
orionsupport or the security-primer.


Thanks,
Falk
-- 
Dr. Falk Langhammer
Living Pages Research GmbH
Holzstr. 19  D-80469 Munich, Germany
mailto:[EMAIL PROTECTED]  http://www.living-pages.de
Phone +49 (89) 260 255 32Fax +49 (89) 260 255 35
Mobil +49 (171) 79 39 667
mailto:[EMAIL PROTECTED]  (urgent SMS with subject header)




deployment

2001-02-23 Thread Siling Zhang

Does anyone know how to deploy a servlet and html form page on orion? What
should go into the Action=" " on the html form?
FROM METHOD = "get" ACTION = "??.." 

Siling

 lesson1.zip


RE: CMP 2.0 OR mapping problem

2001-02-23 Thread Michael A Third

Sorry!  I didn't intend to offend anyone.

I know the 2.0 spec is only in public draft, but I thought that CMP
relationships were pretty stable.  Having n:m support would be great, but I
would settle for 1:n support right now.

Again, thanks for all your help.

Michael

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Magnus Rydin
Sent: Friday, February 23, 2001 9:49 AM
To: Orion-Interest
Subject: SV: CMP 2.0 OR mapping problem


Please remember that the EJB 2.0 spec is not yet released.
Although the Orion Team has always be known to be fast to implement early
specifications,
this is a costly arrangement as specifications change.
Personally I hope that EJB 2.0 relations will soon be fully implemented.
WR
 -Ursprungligt meddelande-
 Frn: Michael A Third [mailto:[EMAIL PROTECTED]]
 Skickat: den 23 februari 2001 06:15
 Till: Orion-Interest
 mne: RE: CMP 2.0 OR mapping problem



 Thanks for the reply.  We were already doing this, and I realized how
 repetitive it was and hoped that 1.4.7 could cut the time we
 spent doing
 this (we have a lot of these relationships).  Does anyone
 have a guess as to
 when full EJB 2.0 support will be available?

 Thanks,

 Michael

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of
 Jeff Schnitzer
 Sent: Thursday, February 22, 2001 8:18 PM
 To: Orion-Interest
 Subject: RE: CMP 2.0 OR mapping problem


 Bidirectional relationships do not yet work.

 There are two workarounds that have worked for me:

 Manually add (and remove!) both sides of the relationship.  So your
 Marketplace.addStorefront() method would look like this:

 void addStorefront(Storefront front)
 {
   this.getStorefronts().add(front);

 front.setMarketplace((Marketplace)this.ejbContext.getEJBObject());
 }

 etc.  Alternatively you can modify your
 Marketplace.getMarketplaceStorefronts() method so that instead of
 obtaining the storefronts from the internal collection it runs a
 findByMarketplace finder method on the StorefrontHome.  Then you just
 need to make sure that the storefronts-marketplace reference is kept
 solid.

 Jeff

 -Original Message-
 From: Michael A Third [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 22, 2001 3:37 PM
 To: Orion-Interest
 Subject: CMP 2.0 OR mapping problem
 
 
 I have been trying to get Orion to correctly map a non-dependant
 bidirectional 1:N relationship using EJB 2.0.  It tries to generate a
 collection mapping that uses a third table to hold the
 reference.  I was
 able to deploy it properly using a unidirectional relationship.
 
 Here is the relevant entries from ejb-jar.xml (edited for brevity):
  entity
 
 ejb-namecom.trademotion.ejb.base.Marketplace/ejb-name
 
 cmp-fieldfield-namemarketplaceID/field-name/cmp-field
 
 cmp-fieldfield-namename/field-name/cmp-field
 
 cmp-fieldfield-namestorefronts/field-name/cmp-field
  primkey-fieldmarketplaceID/primkey-field
  /entity
  entity
 
 ejb-namecom.trademotion.ejb.base.Storefront/ejb-name
 
 cmp-fieldfield-namestorefrontID/field-name/cmp-field
 
 cmp-fieldfield-namename/field-name/cmp-field
 
 cmp-fieldfield-namemarketplace/field-name/cmp-field
  primkey-fieldstorefrontID/primkey-field
  /entity
 
  relationships
  !-- 1:N (Marketplace Storefront) --
  ejb-relation
 
 ejb-relation-nameMarketplace-Storefront/ejb-relation-name
 
  ejb-relationship-role
 
 ejb-relationship-role-namemarketplace-has-storefronts
  /ejb-relationship-role-name
  multiplicityOne/multiplicity
  role-source
 
 ejb-namecom.trademotion.ejb.base.Marketplace/ejb-name
  /role-source
  cmr-field
 
 cmr-field-namestorefronts/cmr-field-name
 
 cmr-field-typejava.util.Collection/cmr-field-type
  /cmr-field
  /ejb-relationship-role
 
  ejb-relationship-role
 
 ejb-relationship-role-namestorefront-belongsto-marketplace
  /ejb-relationship-role-name
  multiplicityMany/multiplicity
  cascade-delete/
  role-source
 
 ejb-namecom.trademotion.ejb.base.Storefront/ejb-name
  /role-source
  cmr-field
 
 cmr-field-namemarketplace/cmr-field-name
 
 cmr-field-typecom.trademotion.ejb.base.Marketplace
  /cmr-field-type
  /cmr-field
  /ejb-relationship-role
  /ejb-relation
 
  /relationships
 Here is the generated orion-ejb-jar.xml (again, edited):
  entity-deployment
 name="com.trademotion.ejb.base.Marketplace"
  primkey-mapping
  

RE: deployment

2001-02-23 Thread Richard Doust

There's more to deploying the servlet than just setting the correct values
in the FORM tag, here's some thoughts:
Use "POST" as the method for processing the FORM. That's basically what it's
meant for.
The ACTION attribute should be the name of your servlet. If you've
configured your servlet in the .xml files that Orion uses for that purpose,
there's more to it than if you simply deploy your Servlet.class file to the
default directory which I think is /orion/default-web-app/WEB-INF/Classes.
Assuming you put it in the default directory, your servlet should get
invoked when you click on the form's submit button.
Try:
ACTION="/servlet/MyServlet"
/servlet is set up as the default servlet-webdir in the
global-web-application.xml file.
Rich

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Siling Zhang
Sent: Friday, February 23, 2001 3:11 PM
To: Orion-Interest
Cc: [EMAIL PROTECTED]
Subject: deployment


Does anyone know how to deploy a servlet and html form page on orion? What
should go into the Action=" " on the html form?
FROM METHOD = "get" ACTION = "??.."

Siling





configuring jdbc with oracle...

2001-02-23 Thread Paul Wilcox





I am having great problems trying to connect to oracle thru 
JDBC on orion. Here is my data-sources file:
//
data-source
class=com.evermind.sql.DriverManagerDataSource
name=Oracle
location=jdbc/DefaultCoreDS
xa-location=jdbc/xa/DefaultXADS
ejb-location=jdbc/DefaultDS
connection-driver=oracle.jdbc.driver.OracleDriver
username=webluser
password=webluser
url=jdbc:oracle:thin:@ultra:1521:dual
inactivity-timeout=30
/
/
and here is the JSP page I am using to test...

///
%@ page import=java.sql.*, javax.sql.DataSource, 
javax.naming.InitialContext %
%  InitialContext ctx = new 
InitialContext(); DataSource ds = 
(DataSource) 
ctx.lookup(jdbc/DefaultDS); 
Connection con = null; Statement stmt = 
null; con = 
ds.getConnection();  
try { 
 
stmt = 
con.createStatement(); 
out.println(statement); 
ResultSet rs = stmt.executeQuery(SELECT * FROM 
dual); 
out.println(query); 
} catch(Exception 
e) 
{ 
out.println(BOOM!!!); 
} 
finally 
{ 
con.close();  }%

the output from my page is: BOOM!!!
The line stmt = con.createStatement(); is blowing 
up, and i cant figure out why. It seems to make the connection alright, but can 
see why createStatement() is expolding?
Any ideas?
Paul Wilcox
[EMAIL PROTECTED]



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: Configuring security for EJB - what's my error?

2001-02-23 Thread Falk Langhammer

Falk Langhammer wrote:
 
 This should mean that 'falk' is logged in and is in role 'master' and

I have verified that 'request.isUserInRole("master")==true' in the
web-tier. There must be a problem in the EJB container.

BTW

I meanwhile found a posting:
From: Peter Delahunty 
Subject: I have solved the security problem in Orion 
Date: Wed, 15 Nov 2000 05:30:38 -0800 

This posting states that more than one role accessing a method cannot be
configured. This INHO would be a severe bug and would render the J2EE
security model close to useless with Orion.

We *do* have this situation: 4 roles of 'master', 'editor', 'publisher'
and 'any'.

In another posting I found that role and group names must be equal.

In turn this means that only one group can access any bean method.

Thus, do I have to leave Orion alone when it comes to security issues?
Any bugfixes which have appeared or which are announced. I have a hard
time to believe that these basics dont func.


Bye,
Falk
-- 
Dr. Falk Langhammer
Living Pages Research GmbH
Holzstr. 19  D-80469 Munich, Germany
mailto:[EMAIL PROTECTED]  http://www.living-pages.de
Phone +49 (89) 260 255 32Fax +49 (89) 260 255 35
Mobil +49 (171) 79 39 667
mailto:[EMAIL PROTECTED]  (urgent SMS with subject header)




RE: Debugging and orion

2001-02-23 Thread chris . chang

Is it possible to debug JSP using JBuilder with Orion?

Thanks in advance!

-Original Message-
From: Edoardo Comar [mailto:[EMAIL PROTECTED]]
Sent: February 23, 2001 7:13 AM
To: Orion-Interest
Subject: RE: Debugging and orion


I've used jbuilder 4.0 (the free foundation version will be just fine) and
it is a great debugger.

you define a seprate project for orion server :
a project with no sources to compile but two libraries : one contains all
the orion binaries, one contains all your sources.
it has the orion server main class as main class, and the orion dir as
working dir.

select a source where you want to set a breakpoint (using the class
sleector, not the project pane because there you won't see your sources).
run the project in debug mode, use the browser or whatever client to invoke
your classes deployed in orion and jb will stop at your breakpoint.

BTW, exactly this same procedure works also with weblogic, jboss ... (well,
with wl6 you have to define a wrapper class that invokes weblogic server,
but apart form that it's the same).

Edo

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Kemp
 Randy-W18971
 Sent: 22 February 2001 20:07
 To: Orion-Interest
 Subject: RE: Debugging and orion


 Thanks, Mac.  I will give it a shot.

 -Original Message-
 From: Mac Ferguson [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 22, 2001 12:20 PM
 To: Orion-Interest
 Subject: RE: Debugging and orion


 start orion with the following options:

 java -Xdebug -Xnoagent -Djava.compiler=NONE
 -Xrunjdwp:transport=dt_socket,se
 rver=y,suspend=y,address=whatever port you're going to use -jar
 orion.jar

 then create a new project in Bugseeker, selected Remote as the
 project type,
 and accepted all other default properties. Then set the
 Debug|Remote|Attach
 to type socket, Hostname=your server ip and Port=the port you specified
 above

 I like this setup, particularly for EJBs, but I'll be interested to see if
 Kawa will work any better.

 Cheers,
 Mac Ferguson
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Kemp
  Randy-W18971
  Sent: Wednesday, February 21, 2001 1:39 PM
  To: Orion-Interest
  Subject: RE: Debugging and orion
 
 
  Mac
 I would be interested in what steps you took to get Bugseeker
  connected to your remote VM, as would other people on the list.
  Are the steps short enough to include in an Orion Interest email?
  Randy
 
  -Original Message-
  From: Mac Ferguson [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, February 21, 2001 10:59 AM
  To: Orion-Interest
  Subject: RE: Debugging and orion
 
 
  I was in contact with Allaire's Kawa support recently and they
  told me that
  Kawa will support running/debugging Orion directly in it's IDE in an
  upcoming service pack, how soon it will be released is not certain, so
  caveat emptor. I found Kawa to be a pretty good basic IDE (I
  don't like lots
  of frills, I just want codesense and debugging), although in
  addition to not
  yet supporting Orion it was not a simple affair to add .class
 files to the
  CodeSense. If you want a decent step-thru remote debugger, check out
  Bugseeker (http://www.karmira.com) it was a bit tricky to get
 it connected
  to my remote JVM, but once I figured it out it was pretty good,
  it's *very*
  affordable, too. I also have recently become aware of JSwat
  (http://www.bluemarsh.com/java/jswat/), an open-source debugger. I am
  currently using the combination of Visual Slickedit for
 editing, Bugseeker
  for debugging and ANT for building, I occasionally fire up Forte (only
  because I have 256 MB memory and lots of time!) to do visual
 Swing stuff.
 
  Hope this helps,
  Mac Ferguson
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]On Behalf Of Julian
   Richardson
   Sent: Wednesday, February 21, 2001 6:18 AM
   To: Orion-Interest
   Subject: Debugging and orion
  
  
   Hi,
  
   What tools / IDEs are people out there using to develop EJBs
  for use with
   Orion? At the moment we (as a project team, rather than company)
   are trying
   to standardise on an app server and IDE to use, requirements being the
   usual:
  
 cost
 speed
 flexibility
 resource usage
 debugging support from the IDE
  
   - I saw that someone mentioned using Kawa with Orion on the
 orionsupport
   website; has this combination been used by many people? (I'm new
   to the app
   server world, although I've been doing server-side Java work
 for several
   years now - I'm not used to environments where it's even possible
   to use an
   integrated debugger, but others on the team say it's necessary :-)
  
   Comments about the speed / flexibility / resource usage of Orion
   are welcome
   too, from the website it looks pretty slick and the
 documentation looks
   good, but time will tell... also if there's any major snags
  with orion in
   terms of things that 

EJBUserManager, what am i missing?

2001-02-23 Thread Christian Billen

I want to implement EJBUserManager in my application, but the authentication
from the web doesn't accept my credentials and keep popping up until finally
I get a 401.

Here's how I'm doing it:

1) I defined the EJBUserManager in ejb-jar.xml and it gets instantiated
properly: tables COM_EVERMIND_EJB_EJBUSER and
COM_EVERMIND_EJB_EJBUSER_GROUPS get created

2) I created a user "joeuser" with a password in the user table and made
that user belong to "usergroup" in groups

3) In my web.xml I created a constraint on a resource:
security-constraint
web-resource-collection
web-resource-name/protectedurl/web-resource-name
/web-resource-collection
auth-constraint
role-nameusergroup/role-name
/auth-constraint
/security-constraint
login-config
auth-methodBASIC/auth-method
realm-namemyapp-basic-realm/realm-name
/login-config
security-role
role-nameusergroup/role-name
/security-role

4) In my application.xml I have a role defined:
security-role
role-namemanager/role-name
/security-role

5) In my orion-application.xml I have defined the user manager and the
role-group mapping:

user-manager class="com.evermind.ejb.EJBUserManager"
property name="home" value="com.evermind.ejb.EJBUser" /
property name="defaultGroups" value="users" /
/user-manager
security-role-mapping name="usergroup"
group name="usergroup" /
/security-role-mapping

6) I also removed the reference to principals.xml from orion-application.xml
(If I leave it I get a 403 right away)

7) I finally, suggested by searching the list archive, defined the groups in
my principals.xml:
principals
groups
group name="manager"/
/groups
/principals

Everthing starts ok, no error message, if I try to access the /protectedurl
I get the basic authentication prompt, I try to fill in "joeuser" with his
password but Orion doesn't take it and prompt me again until I get a 401
Unauthorized.

What am I missing?

Thanks,

Christian





RE: Debugging and orion

2001-02-23 Thread Richard Doust

There are lots of posts in the archive available in the Orion Support
web-site on how to do this.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Friday, February 23, 2001 4:55 PM
To: Orion-Interest
Subject: RE: Debugging and orion


Is it possible to debug JSP using JBuilder with Orion?

Thanks in advance!

-Original Message-
From: Edoardo Comar [mailto:[EMAIL PROTECTED]]
Sent: February 23, 2001 7:13 AM
To: Orion-Interest
Subject: RE: Debugging and orion


I've used jbuilder 4.0 (the free foundation version will be just fine) and
it is a great debugger.

you define a seprate project for orion server :
a project with no sources to compile but two libraries : one contains all
the orion binaries, one contains all your sources.
it has the orion server main class as main class, and the orion dir as
working dir.

select a source where you want to set a breakpoint (using the class
sleector, not the project pane because there you won't see your sources).
run the project in debug mode, use the browser or whatever client to invoke
your classes deployed in orion and jb will stop at your breakpoint.

BTW, exactly this same procedure works also with weblogic, jboss ... (well,
with wl6 you have to define a wrapper class that invokes weblogic server,
but apart form that it's the same).

Edo

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Kemp
 Randy-W18971
 Sent: 22 February 2001 20:07
 To: Orion-Interest
 Subject: RE: Debugging and orion


 Thanks, Mac.  I will give it a shot.

 -Original Message-
 From: Mac Ferguson [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 22, 2001 12:20 PM
 To: Orion-Interest
 Subject: RE: Debugging and orion


 start orion with the following options:

 java -Xdebug -Xnoagent -Djava.compiler=NONE
 -Xrunjdwp:transport=dt_socket,se
 rver=y,suspend=y,address=whatever port you're going to use -jar
 orion.jar

 then create a new project in Bugseeker, selected Remote as the
 project type,
 and accepted all other default properties. Then set the
 Debug|Remote|Attach
 to type socket, Hostname=your server ip and Port=the port you specified
 above

 I like this setup, particularly for EJBs, but I'll be interested to see if
 Kawa will work any better.

 Cheers,
 Mac Ferguson
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Kemp
  Randy-W18971
  Sent: Wednesday, February 21, 2001 1:39 PM
  To: Orion-Interest
  Subject: RE: Debugging and orion
 
 
  Mac
 I would be interested in what steps you took to get Bugseeker
  connected to your remote VM, as would other people on the list.
  Are the steps short enough to include in an Orion Interest email?
  Randy
 
  -Original Message-
  From: Mac Ferguson [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, February 21, 2001 10:59 AM
  To: Orion-Interest
  Subject: RE: Debugging and orion
 
 
  I was in contact with Allaire's Kawa support recently and they
  told me that
  Kawa will support running/debugging Orion directly in it's IDE in an
  upcoming service pack, how soon it will be released is not certain, so
  caveat emptor. I found Kawa to be a pretty good basic IDE (I
  don't like lots
  of frills, I just want codesense and debugging), although in
  addition to not
  yet supporting Orion it was not a simple affair to add .class
 files to the
  CodeSense. If you want a decent step-thru remote debugger, check out
  Bugseeker (http://www.karmira.com) it was a bit tricky to get
 it connected
  to my remote JVM, but once I figured it out it was pretty good,
  it's *very*
  affordable, too. I also have recently become aware of JSwat
  (http://www.bluemarsh.com/java/jswat/), an open-source debugger. I am
  currently using the combination of Visual Slickedit for
 editing, Bugseeker
  for debugging and ANT for building, I occasionally fire up Forte (only
  because I have 256 MB memory and lots of time!) to do visual
 Swing stuff.
 
  Hope this helps,
  Mac Ferguson
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]On Behalf Of Julian
   Richardson
   Sent: Wednesday, February 21, 2001 6:18 AM
   To: Orion-Interest
   Subject: Debugging and orion
  
  
   Hi,
  
   What tools / IDEs are people out there using to develop EJBs
  for use with
   Orion? At the moment we (as a project team, rather than company)
   are trying
   to standardise on an app server and IDE to use, requirements being the
   usual:
  
 cost
 speed
 flexibility
 resource usage
 debugging support from the IDE
  
   - I saw that someone mentioned using Kawa with Orion on the
 orionsupport
   website; has this combination been used by many people? (I'm new
   to the app
   server world, although I've been doing server-side Java work
 for several
   years now - I'm not used to environments where it's even possible
   to use an
   integrated debugger, but others 

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: Configuring security for EJB - what's my error?

2001-02-23 Thread Falk Langhammer

Falk Langhammer schrieb:
 
 This posting states that more than one role accessing a method cannot be
 configured. This INHO would be a severe bug and would render the J2EE
 security model close to useless with Orion.

Peter posted a workaround to bugzilla as bug#193.

I verified that this solves my problem. Thanxs to the mailing-list
archive!

The bug was reported on 11/16/00 for version 1.4.4 and still has status
NEW...

Depending on what tools for EJB DD editing You use, your application
will deploy or not (when using roles).

Bye,
Falk
-- 
Dr. Falk Langhammer
Living Pages Research GmbH
Holzstr. 19  D-80469 Munich, Germany
mailto:[EMAIL PROTECTED]  http://www.living-pages.de
Phone +49 (89) 260 255 32Fax +49 (89) 260 255 35
Mobil +49 (171) 79 39 667
mailto:[EMAIL PROTECTED]  (urgent SMS with subject header)




RE: EJBUserManager, what am i missing?

2001-02-23 Thread Mike Cannon-Brookes

You have no group "usergroup" specified in your principals.xml as far as I
can see.

Create a principals.xml like this:

principals
groups
group name="usergroup"/
/groups
/principals

And then reference that from orion-application.xml.

-mike

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Christian
 Billen
 Sent: Saturday, February 24, 2001 9:43 AM
 To: Orion-Interest
 Subject: EJBUserManager, what am i missing?


 I want to implement EJBUserManager in my application, but the
 authentication
 from the web doesn't accept my credentials and keep popping up
 until finally
 I get a 401.

 Here's how I'm doing it:

 1) I defined the EJBUserManager in ejb-jar.xml and it gets instantiated
 properly: tables COM_EVERMIND_EJB_EJBUSER and
 COM_EVERMIND_EJB_EJBUSER_GROUPS get created

 2) I created a user "joeuser" with a password in the user table and made
 that user belong to "usergroup" in groups

 3) In my web.xml I created a constraint on a resource:
 security-constraint
   web-resource-collection
   web-resource-name/protectedurl/web-resource-name
   /web-resource-collection
   auth-constraint
   role-nameusergroup/role-name
   /auth-constraint
 /security-constraint
 login-config
   auth-methodBASIC/auth-method
   realm-namemyapp-basic-realm/realm-name
 /login-config
 security-role
   role-nameusergroup/role-name
 /security-role

 4) In my application.xml I have a role defined:
 security-role
   role-namemanager/role-name
 /security-role

 5) In my orion-application.xml I have defined the user manager and the
 role-group mapping:

 user-manager class="com.evermind.ejb.EJBUserManager"
 property name="home" value="com.evermind.ejb.EJBUser" /
 property name="defaultGroups" value="users" /
 /user-manager
 security-role-mapping name="usergroup"
   group name="usergroup" /
 /security-role-mapping

 6) I also removed the reference to principals.xml from
 orion-application.xml
 (If I leave it I get a 403 right away)

 7) I finally, suggested by searching the list archive, defined
 the groups in
 my principals.xml:
 principals
   groups
 group name="manager"/
   /groups
 /principals

 Everthing starts ok, no error message, if I try to access the
 /protectedurl
 I get the basic authentication prompt, I try to fill in "joeuser" with his
 password but Orion doesn't take it and prompt me again until I get a 401
 Unauthorized.

 What am I missing?

 Thanks,

 Christian








RE: Win2k Pro. is mess... choosing the right database product

2001-02-23 Thread Randahl Fink Isaksen



You 
are probably right in your asumptions. Might I ask why you have chosen to go for 
PostgreSQL? To me it seems a bit too uncertain to have two pieces of 
experimental software in one project. Personally I was thinking of switching to 
either MySQL or Interbase once my system goes on-line. I have used Interbase 
quite a lot, just not with EJBs, and it is totally free and open source 
nowadays. I have no experience with MySQL, but as far as I have read on this 
list, quite many people are fond of it, and it seems that the use of MySQL is a 
question of once needs for transactions (which MySQL does not 
support).

I am 
wondering if anyone is using the prepackaged Hypersonic database in 
production... It has not given me any trouble during this development project... 
yet... - I would feel MUCH better about using a 10+ years old well-tested 
database like Interbase, and I simply do not know why more people are not using 
it.


Any 
comments anyone?


Randahl



-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of 
[EMAIL PROTECTED]Sent: 23. februar 2001 18:39To: 
Orion-InterestSubject: Re: Win2k Pro. is messing up the 
DB

  Hello Randahl,
  First of all, I appreciate your 
idea.
  Yes, we came to the near conclusion that it was 
  not orion but it was postgresql.
  To tell the truth, I believe in orionbut 
  not very much so in postgresql.
  As a matter of fact, we are using a CVS version 
  of PostgreSQL because
  the released version of postgresql does not yet 
  support the right join sql statement.
  To make matters worse, the Linux JDBC driver was 
  not working properly on the timestamp
  field before I made a modification on the driver. 
  We were totally forgetting all about this.
  Our Windows developershave had no problems 
  with ODBC drivers so far, out of which
  we can guess it is not the DB itself but it is 
  the Linux JDBC driver.
  What are your thoughts?
  Once again, thank you very much.
  
  
  
  Simon
  
  
  
  
  
  
  
- Original Message - 
From: 
Randahl Fink 
Isaksen 
To: Orion-Interest 
Sent: Friday, February 23, 2001 1:07 
AM
Subject: RE: Win2k Pro. is messing up 
the DB

I 
know this is a wild guess, but just to make sure, I would of course do a 
disk scan on that machine to make sure it is not a hardware problem - these 
things do happen, I am afraid.

Another good thing would be to run the application 
on a _different_ Win2K Pro. machine to make sure it is not just something 
which is specific to only her single machine.

BTW, I would doubt PostgreSQL more on Win2K than I 
would doubt Orion. Orion is a java application, which gives it a pretty good 
chance of running in the same way on different platforms. To the best of my 
knowledge PostgreSQL on Win2K is a port of the code from another platform, 
and from reading articles at PostgreSQL's web-site it seems it is not 
totally stable on Win2K. I have seen at least two posts on this list where 
people recommends *not* using PostgreSQL from Win NT based systems - not 
yet, anyway.
I 
have used Orion on Win2K with no problems - but then again I do *not* use 
PostgreSQL

Hope you find a solution

Yours
Randahl

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of 
  [EMAIL PROTECTED]Sent: 23. februar 2001 02:19To: 
  Orion-InterestSubject: Win2k Pro. is messing up the 
  DB
  Hello,
  I do not really know if this is because she's 
  using Window 2000 Professional.
  All our employees use Windows 2000 Servers or 
  Linuxes or Solarises except for one person.
  The exception is Windows 2000 Professional. 
  The problem occurs only at her computer.
  Once she updates a DB record, it messes up 
  another record. This does not
  happen all the time, but once in a blue moon. 
  This is why I can't catch the problem in my code.
  AndI do not think it is my code. 
  I am using CMPs and orion 1.3.8 with PostgreSQL.
  I doubted postgresql and orion in the 
  beginning, and now I narrowed it down to orion because
  it may be machine specific as I mentioned 
  earlier. Why does a DB server have to do with
  a specific machine? Then what? An App. Server 
  which holds a session to a machine?
  I am lost. Does anyone have any clue? I 
  really really hope it's my code.
  I appreciate your attention.
  
  
  Simon
  
  


Re: configuring jdbc with oracle...

2001-02-23 Thread Rafael Alvarez

Hello Paul,

A stack trace would be useful. That way it's easier to find the
error.






I know it does NOT work... but does it ???

2001-02-23 Thread Randahl Fink Isaksen

I know bidirectional N-M relationships are said not to work... but does
unidirectional N-M relationships work on Orion? - On which version?

Thanks
Randahl





RE: deployment

2001-02-23 Thread Jeff Schnitzer

A side note:

In the current Orion release, you need to specify the action as

action="%= request.encodeURL("/servlet/MyServlet") %"

For some reason, Orion does not automatically rewrite action urls with
the session id like it does with other urls in pages.  I've logged this
in Bugzilla.

It's worthwhile stepping through your application with cookies turned
off to find the problem spots.

Jeff

-Original Message-
From: Richard Doust [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 12:42 PM
To: Orion-Interest
Cc: [EMAIL PROTECTED]
Subject: RE: deployment


There's more to deploying the servlet than just setting the 
correct values
in the FORM tag, here's some thoughts:
Use "POST" as the method for processing the FORM. That's 
basically what it's
meant for.
The ACTION attribute should be the name of your servlet. If you've
configured your servlet in the .xml files that Orion uses for 
that purpose,
there's more to it than if you simply deploy your 
Servlet.class file to the
default directory which I think is 
/orion/default-web-app/WEB-INF/Classes.
Assuming you put it in the default directory, your servlet should get
invoked when you click on the form's submit button.
Try:
   ACTION="/servlet/MyServlet"
/servlet is set up as the default servlet-webdir in the
global-web-application.xml file.
Rich

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Siling Zhang
Sent: Friday, February 23, 2001 3:11 PM
To: Orion-Interest
Cc: [EMAIL PROTECTED]
Subject: deployment


Does anyone know how to deploy a servlet and html form page on 
orion? What
should go into the Action=" " on the html form?
FROM METHOD = "get" ACTION = "??.."

Siling







JAXP

2001-02-23 Thread Richard Doust

I have been working on this problem all day. I have posted once before and
no one responded. I will try again.
I'm no Java expert and this is just my ignorance, but can anyone tell me if
I'm correct in my assumptions on this.
I am trying to develop server side code that runs under Orion that uses the
JAXP code that Sun has recently released. There are different versions of
parser.jar, xalan.jar and jaxp.jar distributed with Orion. Older ones. I
have tried replacing the older ones with the newer ones because my code
requires the newer ones and I guess that my code will be running in the same
image as Orion. Orion fails to start due to an exception while trying to
parse its configuration files. Putting the old .jar files back, it works
again. So, now it occurs to me that I'm basically stuck running with
whatever version of support code the tools I'm using are dependent on.
If I'm right, that means I can't use the latest version of JAXP until Orion
does? Is that right?
Anyone?
Thanks,
Rich





RE: Win2k Pro. is mess... choosing the right database product

2001-02-23 Thread Tim Endres

MySQL has "support" for transactions. However, I think you have to download
a special build of MySQL, and it is only supported for berkley db tables. This
is a stop gap measure until 4.0, which will have much better tx support.

tim.

 You are probably right in your asumptions. Might I ask why you have chosen
 to go for PostgreSQL? To me it seems a bit too uncertain to have two pieces
 of experimental software in one project. Personally I was thinking of
 switching to either MySQL or Interbase once my system goes on-line. I have
 used Interbase quite a lot, just not with EJBs, and it is totally free and
 open source nowadays. I have no experience with MySQL, but as far as I have
 read on this list, quite many people are fond of it, and it seems that the
 use of MySQL is a question of once needs for transactions (which MySQL does
 not support).
 
 I am wondering if anyone is using the prepackaged Hypersonic database in
 production... It has not given me any trouble during this development
 project... yet... - I would feel MUCH better about using a 10+ years old
 well-tested database like Interbase, and I simply do not know why more
 people are not using it.
 
 Any comments anyone?
 
 Randahl
 
  -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED]
 Sent: 23. februar 2001 18:39
 To: Orion-Interest
 Subject: Re: Win2k Pro. is messing up the DB
 
 
   Hello Randahl,
   First of all, I appreciate your idea.
   Yes, we came to the near conclusion that it was not orion but it was
 postgresql.
   To tell the truth, I believe in orion but not very much so in postgresql.
   As a matter of fact, we are using a CVS version of PostgreSQL because
   the released version of postgresql does not yet support the right join sql
 statement.
   To make matters worse, the Linux JDBC driver was not working properly on
 the timestamp
   field before I made a modification on the driver. We were totally
 forgetting all about this.
   Our Windows developers have had no problems with ODBC drivers so far, out
 of which
   we can guess it is not the DB itself but it is the Linux JDBC driver.
   What are your thoughts?
   Once again, thank you very much.
 
   Simon

 - Original Message -
 From: Randahl Fink Isaksen
 To: Orion-Interest
 Sent: Friday, February 23, 2001 1:07 AM
 Subject: RE: Win2k Pro. is messing up the DB
 
 
 I know this is a wild guess, but just to make sure, I would of course do
 a disk scan on that machine to make sure it is not a hardware problem -
 these things do happen, I am afraid.
 
 Another good thing would be to run the application on a _different_
 Win2K Pro. machine to make sure it is not just something which is specific
 to only her single machine.
 
 BTW, I would doubt PostgreSQL more on Win2K than I would doubt Orion.
 Orion is a java application, which gives it a pretty good chance of running
 in the same way on different platforms. To the best of my knowledge
 PostgreSQL on Win2K is a port of the code from another platform, and from
 reading articles at PostgreSQL's web-site it seems it is not totally stable
 on Win2K. I have seen at least two posts on this list where people
 recommends *not* using PostgreSQL from Win NT based systems - not yet,
 anyway.
 I have used Orion on Win2K with no problems - but then again I do *not*
 use PostgreSQL
 
 Hope you find a solution
 
 Yours
 Randahl
   -Original Message-
   From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED]
   Sent: 23. februar 2001 02:19
   To: Orion-Interest
   Subject: Win2k Pro. is messing up the DB
 
 
   Hello,
   I do not really know if this is because she's using Window 2000
 Professional.
   All our employees use Windows 2000 Servers or Linuxes or Solarises
 except for one person.
   The exception is Windows 2000 Professional. The problem occurs only at
 her computer.
   Once she updates a DB record, it messes up another record. This does
 not
   happen all the time, but once in a blue moon. This is why I can't
 catch the problem in my code.
   And I do not think it is my code.  I am using CMPs and orion 1.3.8
 with PostgreSQL.
   I doubted postgresql and orion in the beginning, and now I narrowed it
 down to orion because
   it may be machine specific as I mentioned earlier. Why does a DB
 server have to do with
   a specific machine? Then what? An App. Server which holds a session to
 a machine?
   I am lost. Does anyone have any clue? I really really hope it's my
 code.
   I appreciate your attention.
 
 
   Simon
 
 





A HelloWorld war file

2001-02-23 Thread Paul Wheaton

I have a kind of "HelloWorld" EJB here, but I must be screwing something up and am 
going
nuts trying to figure out what.  

I'm trying to stuff everything into a war file and go to
http://localhost/servlet/FarmServlet and see the message. 

Here is everything I have to make this go.  Can anyone tell me what I'm doing wrong?  
Or,
can you tell me that you can get this to work (so I must have something configured
wrong)?  

The problem I'm having is that the orion server seems to deploy everything okay, but 
when
I try to pull up the servlet, it's as if the servlet isn't even there.

Here are the relevant files to creating what I have:

- build.bat

@echo off

echo ** compiling EJB 
javac eieio\*.java

echo ** creating EJB jar 
  
del critters.jar  
jar -cf critters.jar META-INF\ejb-jar.xml eieio\*.class

echo ** compiling servlet 

javac FarmServlet.java

echo ** creating war 
  
del farm.war  
jar -cf farm.war WEB-INF\web.xml FarmServlet.class

echo ** creating ear 
  
del oldmcdonald.ear
jar -cf oldmcdonald.ear META-INF\application.xml critters.jar farm.war

echo ** copying ear to orion 

copy oldmcdonald.ear \orion\applications

echo ** done.


- CowRemote.java

package eieio ;

import javax.ejb.* ;
import java.rmi.* ;

public interface CowRemote extends EJBObject
{
public String getText() throws RemoteException;
}

- CowHome.java

package eieio ;

import javax.ejb.* ;
import java.rmi.* ;

public interface CowHome extends EJBHome
{
public CowRemote create() throws CreateException, RemoteException;
}

- CowBean.java

package eieio ;

import java.util.*;
import javax.ejb.*;

public class CowBean implements SessionBean 
{

public String getText()
{
return "Mooo ...";
}

public void setSessionContext( SessionContext ctx ){}
public void ejbCreate() throws CreateException{}
public void ejbRemove(){}
public void ejbActivate(){}
public void ejbPassivate(){}

}


- ejb-jar.xml

?xml version="1.0"?

!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN'
'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'

ejb-jar
display-nameAnimalBeans/display-name
enterprise-beans
session
ejb-nameCowEJB/ejb-name
homeeieio.CowHome/home
remoteeieio.CowRemote/remote
ejb-classeieio.CowBean/ejb-class
session-typeStateless/session-type
transaction-typeContainer/transaction-type
/session
/enterprise-beans
/ejb-jar


- FarmServlet.java

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.naming.*;
import eieio.* ;

public class FarmServlet extends HttpServlet 
{

public void doGet( HttpServletRequest req , HttpServletResponse resp )
{
try
{
PrintWriter out = resp.getWriter();
try 
{
resp.setContentType("text/html");
InitialContext context = new InitialContext();
CowHome home = (CowHome)context.lookup( "CowEJB" );
CowRemote cow = home.create();
out.println( cow.getText() );
}
catch( Exception e ) 
{
out.println( "damn! " + e );
}
finally
{
out.close();
}
}
catch ( Exception e )
{
System.out.println( "could not get writer! " + e );
}

}
}



- web.xml


web-app

  display-nameOld McDonald's Farm/display-name 
  
  servlet
servlet-nameFarmServlet/servlet-name 
descriptionServlet that calls the CowBean/description 
servlet-classFarmServlet/servlet-class 
  /servlet
  
  ejb-ref
ejb-ref-nameCowEJB/ejb-ref-name 
ejb-ref-typeSession/ejb-ref-type 
homeeieio.CowHome/home 
remoteeieio.CowRemote/remote 
  /ejb-ref
  
  servlet-mapping
servlet-nameFarmServlet/servlet-name 
url-pattern//url-pattern 
  /servlet-mapping
  
/web-app
  



- application.xml

application

  display-nameThe Old McDonald Farm Application/display-name 
  
  module
ejbcritters.jar/ejb 
  /module

  module
web
  web-urifarm.war/web-uri 
  context-root//context-root 
/web
  /module

/application




I think the build.bat file makes it clear where everything goes.  

Any ideas?




__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/




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]






Re: JAXP

2001-02-23 Thread Tim Endres

Hi Rich,

Could you narrow it down? Specifically which JAR breaks Orion. We have replaced
the xalan.jar and xerces.jar files with version 1.2.2 and Orion is happy. Is it
just the jaxp.jar file that is the issue?

Also, I believe that somewhere in the mailing list archives, you will find posts
related to JAXP, but I do not know if they will address your specific question.

tim.

 I have been working on this problem all day. I have posted once before and
 no one responded. I will try again.
 I'm no Java expert and this is just my ignorance, but can anyone tell me if
 I'm correct in my assumptions on this.
 I am trying to develop server side code that runs under Orion that uses the
 JAXP code that Sun has recently released. There are different versions of
 parser.jar, xalan.jar and jaxp.jar distributed with Orion. Older ones. I
 have tried replacing the older ones with the newer ones because my code
 requires the newer ones and I guess that my code will be running in the same
 image as Orion. Orion fails to start due to an exception while trying to
 parse its configuration files. Putting the old .jar files back, it works
 again. So, now it occurs to me that I'm basically stuck running with
 whatever version of support code the tools I'm using are dependent on.
 If I'm right, that means I can't use the latest version of JAXP until Orion
 does? Is that right?
 Anyone?
 Thanks,
 Rich
 
 





RE: JAXP

2001-02-23 Thread Richard Doust

Tim,
Thanks for trying to help. I'll take a look in the mailing list archives. I
looked through the first set and didn't find anything, but I can look at
older stuff.
In the meantime, I'm replacing the jaxp.jar, parser.jar, and xalan.jar that
came with Orion (latest version) with crimson.jar, jaxp.jar and xalan.jar
from JAXP 1.1. After a thorough analysis of these jar files, I found that
xalan.jar and crimson.jar have most of what jaxp.jar and parser.jar have
plus a lot more.
One of the problems I have is that ant, jdk1.3, orion, and jaxp1.1 each come
with a different version of jaxp.jar. Orion, jdk1.3 and jaxp1.1 each comes
with a different version of xalan.jar. Orion and ant come with different
versions of parser.jar. (I have all four of these installed.) ant worked
okay after replacing its jaxp.jar and parser.jar with jaxp1.1's xalan.jar
and crimson.jar.
I start Orion with a classpath that includes the crimson.jar and xalan.jar
from jaxp 1.1. During the startup, when its trying to parse its config files
(I guess) I get a NoSuchMethodError at
org.apache.crimson.tree.AttributeSet.init(AttributeSet.java:139). I guess
I can't tell from this what method it's trying to call. It would be helpful
if I could. Somehow, it sounds internal to JAXP, and not like it's really a
problem of Orion.
Any more ideas now that I've given all these details? Love to hear from you
again!
Rich


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Tim Endres
Sent: Friday, February 23, 2001 8:33 PM
To: Orion-Interest
Subject: Re: JAXP


Hi Rich,

Could you narrow it down? Specifically which JAR breaks Orion. We have
replaced
the xalan.jar and xerces.jar files with version 1.2.2 and Orion is happy. Is
it
just the jaxp.jar file that is the issue?

Also, I believe that somewhere in the mailing list archives, you will find
posts
related to JAXP, but I do not know if they will address your specific
question.

tim.

 I have been working on this problem all day. I have posted once before and
 no one responded. I will try again.
 I'm no Java expert and this is just my ignorance, but can anyone tell me
if
 I'm correct in my assumptions on this.
 I am trying to develop server side code that runs under Orion that uses
the
 JAXP code that Sun has recently released. There are different versions of
 parser.jar, xalan.jar and jaxp.jar distributed with Orion. Older ones. I
 have tried replacing the older ones with the newer ones because my code
 requires the newer ones and I guess that my code will be running in the
same
 image as Orion. Orion fails to start due to an exception while trying to
 parse its configuration files. Putting the old .jar files back, it works
 again. So, now it occurs to me that I'm basically stuck running with
 whatever version of support code the tools I'm using are dependent on.
 If I'm right, that means I can't use the latest version of JAXP until
Orion
 does? Is that right?
 Anyone?
 Thanks,
 Rich








RE: JAXP

2001-02-23 Thread Richard Doust

Here's some verbose output from java on the attempt to start Orion:

[Loaded org.apache.crimson.tree.DomEx]
[Loaded org.w3c.dom.DocumentType]
[Loaded org.apache.crimson.tree.XmlWriteContext]
[Loaded org.apache.crimson.tree.XmlDocument$ExtWriteContext]
[Loaded org.w3c.dom.ProcessingInstruction]
[Loaded org.apache.crimson.tree.PINode]
[Loaded org.w3c.dom.EntityReference]
[Loaded org.apache.crimson.tree.XmlDocument$EntityRefNode]
[Loaded org.w3c.dom.DocumentFragment]
[Loaded org.apache.crimson.tree.XmlDocument$DocFragNode]
[Loaded org.w3c.dom.Comment]
[Loaded org.apache.crimson.tree.CommentNode]
[Loaded org.w3c.dom.CDATASection]
[Loaded org.apache.crimson.tree.CDataNode]
[Loaded org.w3c.dom.Attr]
[Loaded org.apache.crimson.tree.AttributeNode]
[Loaded org.apache.crimson.tree.XmlDocument$Catalog]
[Loaded org.apache.crimson.tree.DataNode$NodeListImpl]
[Loaded org.apache.crimson.util.XmlChars]
[Loaded org.w3c.dom.DOMImplementation]
[Loaded org.apache.crimson.tree.DOMImplementationImpl]
[Loaded org.apache.crimson.tree.Doctype]
[Loaded org.w3c.dom.NamedNodeMap]
[Loaded org.w3c.dom.Notation]
[Loaded org.apache.crimson.tree.Doctype$NotationNode]
[Loaded org.w3c.dom.Entity]
[Loaded org.apache.crimson.tree.Doctype$EntityNode]
[Loaded org.apache.crimson.tree.Doctype$Nodemap]
[Loaded org.apache.crimson.tree.AttributeSet]
[Loaded java.lang.IncompatibleClassChangeError from C:\Program
Files\JavaSoft\JR
E\1.3\lib\rt.jar]
[Loaded java.lang.NoSuchMethodError from C:\Program
Files\JavaSoft\JRE\1.3\lib\r
t.jar]
java.lang.NoSuchMethodError
at
org.apache.crimson.tree.AttributeSet.init(AttributeSet.java:139)
at
org.apache.crimson.tree.XmlDocumentBuilder.startElement(XmlDocumentBu
ilder.java:463)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1449)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)

at
org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl
.java:179)
at com.evermind.xml.e.getJavaxDocument(JAX)
at com.evermind.xml.XMLUtils.getDocument(JAX)
at com.evermind.xml.XMLConfig.ay(JAX)
at com.evermind.xml.XMLConfig.ay(JAX)
at com.evermind.server.hg.run(JAX)
at java.lang.Thread.run(Unknown Source)
at com.evermind.util.f.run(JAX)
[Loaded java.lang.Shutdown$Lock from C:\Program
Files\JavaSoft\JRE\1.3\lib\rt.ja
r]

Thanks again,
Rich
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Tim Endres
Sent: Friday, February 23, 2001 8:33 PM
To: Orion-Interest
Subject: Re: JAXP


Hi Rich,

Could you narrow it down? Specifically which JAR breaks Orion. We have
replaced
the xalan.jar and xerces.jar files with version 1.2.2 and Orion is happy. Is
it
just the jaxp.jar file that is the issue?

Also, I believe that somewhere in the mailing list archives, you will find
posts
related to JAXP, but I do not know if they will address your specific
question.

tim.

 I have been working on this problem all day. I have posted once before and
 no one responded. I will try again.
 I'm no Java expert and this is just my ignorance, but can anyone tell me
if
 I'm correct in my assumptions on this.
 I am trying to develop server side code that runs under Orion that uses
the
 JAXP code that Sun has recently released. There are different versions of
 parser.jar, xalan.jar and jaxp.jar distributed with Orion. Older ones. I
 have tried replacing the older ones with the newer ones because my code
 requires the newer ones and I guess that my code will be running in the
same
 image as Orion. Orion fails to start due to an exception while trying to
 parse its configuration files. Putting the old .jar files back, it works
 again. So, now it occurs to me that I'm basically stuck running with
 whatever version of support code the tools I'm using are dependent on.
 If I'm right, that means I can't use the latest version of JAXP until
Orion
 does? Is that right?
 Anyone?
 Thanks,
 Rich








RE: JAXP

2001-02-23 Thread Tim Endres

 [Loaded java.lang.NoSuchMethodError from C:\Program
 Files\JavaSoft\JRE\1.3\lib\r
 t.jar]
 java.lang.NoSuchMethodError
 at
 org.apache.crimson.tree.AttributeSet.init(AttributeSet.java:139)

Richard, do you have the source code for that line it is croaking on?
tim.





RE: EJBUserManager, what am i missing?

2001-02-23 Thread Christian Billen

Sorry that was a typo, my principals.xml is exactly like the one you show.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Mike
 Cannon-Brookes
 Sent: Friday, February 23, 2001 5:24 PM
 To: Orion-Interest
 Subject: RE: EJBUserManager, what am i missing?


 You have no group "usergroup" specified in your principals.xml as far as I
 can see.

 Create a principals.xml like this:

 principals
   groups
   group name="usergroup"/
   /groups
 /principals

 And then reference that from orion-application.xml.

 -mike

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Christian
  Billen
  Sent: Saturday, February 24, 2001 9:43 AM
  To: Orion-Interest
  Subject: EJBUserManager, what am i missing?
 
 
  I want to implement EJBUserManager in my application, but the
  authentication
  from the web doesn't accept my credentials and keep popping up
  until finally
  I get a 401.
 
  Here's how I'm doing it:
 
  1) I defined the EJBUserManager in ejb-jar.xml and it gets instantiated
  properly: tables COM_EVERMIND_EJB_EJBUSER and
  COM_EVERMIND_EJB_EJBUSER_GROUPS get created
 
  2) I created a user "joeuser" with a password in the user table and made
  that user belong to "usergroup" in groups
 
  3) In my web.xml I created a constraint on a resource:
  security-constraint
  web-resource-collection
  web-resource-name/protectedurl/web-resource-name
  /web-resource-collection
  auth-constraint
  role-nameusergroup/role-name
  /auth-constraint
  /security-constraint
  login-config
  auth-methodBASIC/auth-method
  realm-namemyapp-basic-realm/realm-name
  /login-config
  security-role
  role-nameusergroup/role-name
  /security-role
 
  4) In my application.xml I have a role defined:
  security-role
  role-namemanager/role-name
  /security-role
 
  5) In my orion-application.xml I have defined the user manager and the
  role-group mapping:
 
  user-manager class="com.evermind.ejb.EJBUserManager"
  property name="home" value="com.evermind.ejb.EJBUser" /
  property name="defaultGroups" value="users" /
  /user-manager
  security-role-mapping name="usergroup"
  group name="usergroup" /
  /security-role-mapping
 
  6) I also removed the reference to principals.xml from
  orion-application.xml
  (If I leave it I get a 403 right away)
 
  7) I finally, suggested by searching the list archive, defined
  the groups in
  my principals.xml:
  principals
  groups
  group name="manager"/
  /groups
  /principals
 
  Everthing starts ok, no error message, if I try to access the
  /protectedurl
  I get the basic authentication prompt, I try to fill in
 "joeuser" with his
  password but Orion doesn't take it and prompt me again until I get a 401
  Unauthorized.
 
  What am I missing?
 
  Thanks,
 
  Christian
 
 
 









RE: deployment

2001-02-23 Thread Siling Zhang

action="%= request.encodeURL("/servlet/MyServlet") %"
The line above is for jsp file or also for html file? What is the syntax
for html file?

I put my servlet class BonusServlet.class in
/orion/default-web-app/WEB-INF/Classes.
But when I click on the submit button, the session bean file cannot be
found(java.lang.NoClassDefFoundError: ejb/Calc). I don't think I should put the
ejb package in /orion/default-web-app/WEB-INF/Classes also. what do you
think?

If the ejb-name is MyCalc, is the following lookup in the
BonusServlet.java file correct?
InitialContext ctx = new InitialContext();
Object objref = ctx.lookup("java:comp/env/MyCalc");

Siling
*






On Fri, 23 Feb 2001, Jeff Schnitzer wrote:

 A side note:
 
 In the current Orion release, you need to specify the action as
 
 action="%= request.encodeURL("/servlet/MyServlet") %"
 
 For some reason, Orion does not automatically rewrite action urls with
 the session id like it does with other urls in pages.  I've logged this
 in Bugzilla.
 
 It's worthwhile stepping through your application with cookies turned
 off to find the problem spots.
 
 Jeff
 
 -Original Message-
 From: Richard Doust [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 23, 2001 12:42 PM
 To: Orion-Interest
 Cc: [EMAIL PROTECTED]
 Subject: RE: deployment
 
 
 There's more to deploying the servlet than just setting the 
 correct values
 in the FORM tag, here's some thoughts:
 Use "POST" as the method for processing the FORM. That's 
 basically what it's
 meant for.
 The ACTION attribute should be the name of your servlet. If you've
 configured your servlet in the .xml files that Orion uses for 
 that purpose,
 there's more to it than if you simply deploy your 
 Servlet.class file to the
 default directory which I think is 
 /orion/default-web-app/WEB-INF/Classes.
 Assuming you put it in the default directory, your servlet should get
 invoked when you click on the form's submit button.
 Try:
  ACTION="/servlet/MyServlet"
 /servlet is set up as the default servlet-webdir in the
 global-web-application.xml file.
 Rich
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Siling Zhang
 Sent: Friday, February 23, 2001 3:11 PM
 To: Orion-Interest
 Cc: [EMAIL PROTECTED]
 Subject: deployment
 
 
 Does anyone know how to deploy a servlet and html form page on 
 orion? What
 should go into the Action=" " on the html form?
 FROM METHOD = "get" ACTION = "??.."
 
 Siling
 
 
 
 
 





Re: configuring jdbc with oracle...

2001-02-23 Thread DSmith


It may be that you're using the "ejb-location" name
rather than the "location" name of the data source.
I've used both the standard Orion datasource and
the pooled datasource with Oracle, and it has worked fine.

Good luck,

Doug
--
Doug Smith
http://www.eviciti.com
mailto:[EMAIL PROTECTED]



   
 
"Paul Wilcox"  
 
[EMAIL PROTECTED] To: Orion-Interest   
 
Sent by:  [EMAIL PROTECTED] 
 
owner-orion-interest@orioncc:  
 
server.comSubject: configuring jdbc 
with
  oracle...
 
   
 
02/23/2001 12:49 PM
 
Please respond to  
 
Orion-Interest 
 
   
 
   
 




I am having great problems trying to connect to oracle thru JDBC on orion.
Here is my data-sources file:


//


data-source


class="com.evermind.sql.DriverManagerDataSource"


name="Oracle"


location="jdbc/DefaultCoreDS"


xa-location="jdbc/xa/DefaultXADS"


ejb-location="jdbc/DefaultDS"


connection-driver="oracle.jdbc.driver.OracleDriver"


username="webluser"


password="webluser"


url="jdbc:oracle:thin:@ultra:1521:dual"


inactivity-timeout="30"


/


/


and here is the JSP page I am using to test...





///


%@ page import="java.sql.*, javax.sql.DataSource,
javax.naming.InitialContext" %


%
   InitialContext ctx = new InitialContext();
   DataSource ds = (DataSource) ctx.lookup("jdbc/DefaultDS");
   Connection con = null;
   Statement stmt = null;
   con = ds.getConnection();

   try
   {
 stmt = con.createStatement();
 out.println("statement");
 ResultSet rs = stmt.executeQuery("SELECT * FROM dual");
 out.println("query");
   }
   catch(Exception e)
   {
 out.println("BOOM!!!");
   }
   finally
   {
 con.close();
   }
%





the output from my page is:  BOOM!!!


The line stmt = con.createStatement(); is blowing up, and i cant figure out
why. It seems to make the connection alright, but can see why
createStatement() is expolding?


Any ideas?


Paul Wilcox


[EMAIL PROTECTED]