ANSWER: How to use pooled connections in Orion?

2000-10-06 Thread Goel, Deepak

Hello everyone,

I've seen that many people are confused over how to setup pooled connections
in Orion (even I was initially). Now since I figured out through
documentation and through some hit and try, I would like to share these
instructions. Keep in mind that this is only one way of setting it up and
there are other ways to setup depending on capabilities of the driver.

1. Basically, the first step is to create a non-pooled version of your data
source. This can be done by adding something like this to your
data-sources.xml:



The above example is for a SQL Server data source using i-net driver.
Remeber to change the connection-driver, username, password and url.

2. Now, the following step will add the pooled version. Add the following
lines to data-sources.xml.



Note that the source-location should correspond to location in the 1st step.
"max-connections" can be changed to suit your requirements. I'm not sure
whether url and connection-driver are required here.

The above steps should work for any JDBC drivers. If your driver vendor
supplies a data source, step 1 will be little bit different. Also, some of
the driver vendors directly provide pooled data source implementation in
which case 2 steps are not needed. I could successfully use i-net OPTA
PooledDataSource with Orion.

--Deepak




Re: Oracle pooled connections?

2000-10-06 Thread Gary Shea

On Today, Nick Newman ([EMAIL PROTECTED]) wrote:
> Hi Gary,
> 
> The JNDI name should be "java:comp/env/jdbc/OracleEJBDS" - you missed the
> "env".
> 
> Odd thing about the com.evermind.sql.ConnectionDataSource class.  I assumed
> it would be in the orion.jar, but I don't see it there.  Perhaps something
> to do with the obfuscation technique that they use?
> 
> Nick

Ah yes, the infamous orion obfuscation technique, which,
coupled with ignorance, has been known to be downright dangerous!

I actually ran a foreach over all the jars in the orion directory
searching for ConnectionDataSource, and never found it.  Pretty
weird.

Anyway, I sure hope the lack of 'env' is all that's wrong... should
I see an 'env' JNDI Context when listing 'java:comp'?  And
a 'jdbc' Context when listing 'java:comp/env'?  I tried
both of those things today... I'm only fishing for ideas
because from home I can't access the machine with the test
stuff on it...

Thanks!

Gary

> 
> At 04:29 PM 10/6/00 -0600, you wrote:
> >I have set up the data-sources.xml file using Oracle, following the
> >advice of Magnus R. at orion, the result looks like:
> >
> >
> > >"http://www.orionserver.com/dtds/data-sources.dtd">
> >
> >
> >  > class="com.evermind.sql.ConnectionDataSource"
> > connection-driver="oracle.jdbc.driver.OracleDriver"
> > connection-retry-interval="1"
> > ejb-location="jdbc/OracleEJBDS"
> > inactivity-timeout="30"
> > location="jdbc/OracleDS"
> > max-connect-attempts="3"
> > max-connections="100"
> > name="oracle-inst1"
> > password="change_on_install"
> > pooled-location="jdbc/OraclePooledDS"
> > schema="database-schemas/oracle.xml"
> > url="jdbc:oracle:thin:@localhost:1521:inst1"
> > username="sys"
> > xa-location="jdbc/xa/OracleXADS"
> > />
> >
> >
> >With this data-sources file I don't even have a java:comp/jdbc
> >Context, much less the right entries.  I am unable to verify
> >that a class named ConnectionDataSource even exists.
> >
> >Magnus said to use the jdbc/OracleEJBDS source for connections,
> >claiming they would be automatically pooled.  So far I'm not
> >getting anywhere!
> >
> >Ideas?
> >
> > Gary
> >
> 
> 
> 






Re: 1.3.8 on NT causing Dr. Watson (Linux threads)

2000-10-06 Thread Sam Whedbee

The PS command in linux is unusual because it lists each native thread
of a process as if it were a separate processes.  If you look at the
memory size of all these seemingly different "processes", you'll notice
they are all exactly the same size.  Also if you kill any one of the
"processes" they all go away.

This is actually kind of useful because you can easily check for thread
starvation in your multi threaded app.  Just run "top", while you are
testing.  It's pretty easy to "goof up" and have a large critical
section or a "hot lock" that leads to contention and thread starvation.

-Sam

> You probably get numerous processes because you are using native threads
> with jdk1.3 under linux, and it forks a new process for every thread spawned
> by java. Linux doesn't handle threads like NT and java has to either do it's
> own
> thread handling (green threads using only one process) or put each thread in
> a new process (native threads). I belive you can make threads work better
> with
> the linux-thread path to glibc.




RE: WinNT 4, SP5/6 and Orion consistently crashing..

2000-10-06 Thread Duffey, Kevin

I think the problem is the remote accessing of the server that its running
on. It appeared to run ok for a while, but whenever we logged in to it using
our remote access software, it caused a problem.


> -Original Message-
> From: Paul Knepper [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 06, 2000 12:42 PM
> To: Orion-Interest
> Subject: RE: WinNT 4, SP5/6 and Orion consistently crashing..
> 
> 
> We've been running NT4 sp6 and Orion 1.2.9 with jdk 1.2.2 
> with no problems,
> so far...
> 
> -Original Message-
> From: Duffey, Kevin [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 06, 2000 10:50 AM
> To: Orion-Interest
> Subject: RE: WinNT 4, SP5/6 and Orion consistently crashing..
> 
> 
> Interesting. I am running Orin on Win2K and JDK 1.3 pretty 
> fine now. Been
> 1.5 days solid with only a few connection leaks occurring 
> (using our own
> connection pool class). Other than that..everything seems 
> fine. I assume SP6
> had some bugs in it or something.
> 
> > Kevin,
> > 
> > We had regular (once a day) Dr Watsons when using Orion 1.2.9 
> > on SP6 and
> > JDK1.2.2. We switched to JDK1.3 a couple of weeks ago and the 
> > problem has
> > gone away.
> > 
> > Regards,
> > Rob Hargreaves
> > 
> > 
> > -Original Message-
> > From: Duffey, Kevin [mailto:[EMAIL PROTECTED]]
> > Sent: 04 October 2000 23:10
> > To: Orion-Interest
> > Subject: WinNT 4, SP5/6 and Orion consistently crashing..
> > 
> > 
> > Hi all,
> > 
> > I am not sure why..but it appears that Orion 1.2.9 (and 
> 1.3.7) crashes
> > whenever we "remote" into our server to do some work on it. 
> > We have NT4 with
> > SP5 on one machine, and SP6 on another. I have Orion using 
> > run_as_service to
> > put it in as a service. Even when I run it as an application, 
> > this happens.
> > It seems to work fine for a while, then it crashes. I know 
> > our code is bad,
> > but it seems to me with only 4 people using the thing for 
> > testing, it should
> > be fine. Has anyone been experiencing problems with Orion 
> > crashing on NT
> > with SP5 or SP6? Does the remote access do something to the 
> > JVM? Its using
> > JDK 1.2.2-05 JRE.
> > 
> > On the subject..does anyone know of a Win2K program that will 
> > put Java apps
> > as services? The run_as_service doesn't appear to work..keeps 
> > giving some
> > i/o problem.
> > 
> > Thanks.
> > 
> 




Re: Oracle pooled connections?

2000-10-06 Thread Nick Newman

Hi Gary,

The JNDI name should be "java:comp/env/jdbc/OracleEJBDS" - you missed the
"env".

Odd thing about the com.evermind.sql.ConnectionDataSource class.  I assumed
it would be in the orion.jar, but I don't see it there.  Perhaps something
to do with the obfuscation technique that they use?

Nick

At 04:29 PM 10/6/00 -0600, you wrote:
>I have set up the data-sources.xml file using Oracle, following the
>advice of Magnus R. at orion, the result looks like:
>
>
>"http://www.orionserver.com/dtds/data-sources.dtd">
>
>
>  class="com.evermind.sql.ConnectionDataSource"
>   connection-driver="oracle.jdbc.driver.OracleDriver"
>   connection-retry-interval="1"
>   ejb-location="jdbc/OracleEJBDS"
>   inactivity-timeout="30"
>   location="jdbc/OracleDS"
>   max-connect-attempts="3"
>   max-connections="100"
>   name="oracle-inst1"
>   password="change_on_install"
>   pooled-location="jdbc/OraclePooledDS"
>   schema="database-schemas/oracle.xml"
>   url="jdbc:oracle:thin:@localhost:1521:inst1"
>   username="sys"
>   xa-location="jdbc/xa/OracleXADS"
>   />
>
>
>With this data-sources file I don't even have a java:comp/jdbc
>Context, much less the right entries.  I am unable to verify
>that a class named ConnectionDataSource even exists.
>
>Magnus said to use the jdbc/OracleEJBDS source for connections,
>claiming they would be automatically pooled.  So far I'm not
>getting anywhere!
>
>Ideas?
>
>   Gary
>





Oracle pooled connections?

2000-10-06 Thread Gary Shea

I have set up the data-sources.xml file using Oracle, following the
advice of Magnus R. at orion, the result looks like:


http://www.orionserver.com/dtds/data-sources.dtd">





With this data-sources file I don't even have a java:comp/jdbc
Context, much less the right entries.  I am unable to verify
that a class named ConnectionDataSource even exists.

Magnus said to use the jdbc/OracleEJBDS source for connections,
claiming they would be automatically pooled.  So far I'm not
getting anywhere!

Ideas?

Gary





RE: Client application Please Help

2000-10-06 Thread Pantelis, Thomas
Title: RE: Client application Please Help



You're 
not having a good day are you? Make sure the client jar has the 
application-client.xml in the META-INF
directory. 
 
 -Original Message-From: 
Daniel C. DiCesare [mailto:[EMAIL PROTECTED]]Sent: Friday, 
October 06, 2000 8:15 AMTo: Orion-InterestSubject: Re: 
Client application Please Help

  Thank you for your response. I have tried your 
  suggestion and here is what I get:
  javax.naming.NamingException: 
  META-INF/application-client.xml resource not found at 
          
  com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(JAX, 
  Compiled Code)    at 
  javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)    
  at 
  javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)    
  at 
  javax.naming.InitialContext.init(InitialContext.java:226)    
  at 
  javax.naming.InitialContext.(InitialContext.java:182)    
  at TeamRandomTrade.main(TeamRandomTrade.java, Compiled Code)
   
   
  My team-client.jar has application-client.xml in 
  it. I do not understand why it can not be found. 
   
  Any further help would be 
  appreciated.
  -Danno
   
  >From: "Pantelis, Thomas" <[EMAIL PROTECTED]>>Reply-To: 
  Orion-Interest >To: 
  Orion-Interest >Subject: 
  RE: Client application Please Help>Date: Fri, 6 Oct 2000 10:31:00 
  -0400>>The correct lookup is "java:comp/env/TeamBean". I assume 
  you're running you're client>outside of Orion? Make sure your 
  provider_url JNDI prop points to>"ormi://localhost/" 
  where  is the name of the TeamBean app 
  in>server.xml.>>-Original Message->From: 
  Frank Eggink [mailto:[EMAIL PROTECTED]]>Sent: 
  Friday, October 06, 2000 8:05 AM>To: Orion-Interest>Subject: RE: 
  Client application Please Help>>>I bet you'll have to 
  change ic.lookup("TeamBean") in 
  to>ic.lookup("comp:/java/env/TeamBean"), a bit depending on what's 
  defined in>your *.xml files.>>These files define the name 
  under which the bean gets registered.>"comp:/java/env/" is a fixed? 
  prefix.>>Frank>>On Thursday, October 05, 2000 7:18 
  PM, Daniel C. DiCesare>[SMTP:[EMAIL PROTECTED]] 
  wrote:> > Frank,> > I checked out your example but I am 
  continuing to experience problems.>Here> > is what I have. I 
  have included the script for my xml files below.> >> > I 
  have deployed an EJB called Team onto Orion. It sits in a EAR 
  file>which> > within it has a Team.jar file. The JAR file 
  contains the following:> > Team.class -  ( remote interface 
  )> > TeamHome.class - ( home interface )> > TeamEJB - ( 
  EJB )> > ejb-jar.xml - ( deployment descriptor )> 
  >> > I then created a team-client.jar which consists of the 
  following:> > TeamClient.class - ( client )> > 
  application-client.xml - ( client xml )> >> > In my 
  TeamClient I attempt to connect to the TeamEJB as follows:> > 
  Context ic  = new InitialContext();> > Object  obj = 
  ic.lookup( "TeamBean" );> > _TeamHome   = ( TeamHome 
  )PortableRemoteObject.narrow( obj,> > TeamHome.class );> 
  >> >> >> >> >> > When I 
  try to run the client I get the following message:> > 
  javax.naming.NamingException: Error reading 
  application-client>descriptor:> > No location specified and 
  no suitable instance of the type 'Team' found>for> > the 
  ejb-ref TeamBean> > 
  at> 
  >>com.evermind.server.ApplicationClientInitialContextFactory.getInitialCon>text> 
  > (JAX, Compiled Code)> 
  > at> > 
  javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)> 
  > at> > 
  javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)> 
  > at 
  javax.naming.InitialContext.init(InitialContext.java:226)> 
  > at 
  javax.naming.InitialContext.(InitialContext.java:182)> 
  > at 
  TeamRandomTrade.main(TeamRandomTrade.java, Compiled Code)> >> 
  >> > Can you or anyone please advise as to what I am doing 
  wrong?> >> > Thanks in advance.> > 
  -Danno> >> >> >> > The ejb-jar.xml 
  looks as follows:> >> > > > > > JavaBeans 1.1//EN' 
  'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>> >> > 
  > >   no 
  description> >   
  TeamEJB> >   
  > > 
  > >   
  no description> 
  >   
  TeamBean> 
  >   
  TeamBean> 
  >   
  TeamHome> 
  >   
  Team> 
  >   
  TeamEJB> 
  >   
  Bean> 
  >   
  java.lang.Integer> 
  >   
  False> 
  >   > 
  >  A description for 
  ResourceRefName> >  
  jdbc/SF> >  
  javax.sql.DataSource> >  
  Container> 
  >   > 
  > > >   
  > > > >> 
  >> >> > My application-client.xml file looks as 
  follows:> > > > > > 
  Application Client 1.2//EN"> > "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd">> 
  > > >  
  SportsFund> >  
  > >  
  > >   
  TeamBean> >   
  Session> >   
  TeamHome> >   
  Team> >  > 
  > > >
  
- Original Message - 
From: 
Pantelis, Thomas

RE: WinNT 4, SP5/6 and Orion consistently crashing..

2000-10-06 Thread Paul Knepper

We've been running NT4 sp6 and Orion 1.2.9 with jdk 1.2.2 with no problems,
so far...

-Original Message-
From: Duffey, Kevin [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 06, 2000 10:50 AM
To: Orion-Interest
Subject: RE: WinNT 4, SP5/6 and Orion consistently crashing..


Interesting. I am running Orin on Win2K and JDK 1.3 pretty fine now. Been
1.5 days solid with only a few connection leaks occurring (using our own
connection pool class). Other than that..everything seems fine. I assume SP6
had some bugs in it or something.

> Kevin,
> 
> We had regular (once a day) Dr Watsons when using Orion 1.2.9 
> on SP6 and
> JDK1.2.2. We switched to JDK1.3 a couple of weeks ago and the 
> problem has
> gone away.
> 
> Regards,
> Rob Hargreaves
> 
> 
> -Original Message-
> From: Duffey, Kevin [mailto:[EMAIL PROTECTED]]
> Sent: 04 October 2000 23:10
> To: Orion-Interest
> Subject: WinNT 4, SP5/6 and Orion consistently crashing..
> 
> 
> Hi all,
> 
> I am not sure why..but it appears that Orion 1.2.9 (and 1.3.7) crashes
> whenever we "remote" into our server to do some work on it. 
> We have NT4 with
> SP5 on one machine, and SP6 on another. I have Orion using 
> run_as_service to
> put it in as a service. Even when I run it as an application, 
> this happens.
> It seems to work fine for a while, then it crashes. I know 
> our code is bad,
> but it seems to me with only 4 people using the thing for 
> testing, it should
> be fine. Has anyone been experiencing problems with Orion 
> crashing on NT
> with SP5 or SP6? Does the remote access do something to the 
> JVM? Its using
> JDK 1.2.2-05 JRE.
> 
> On the subject..does anyone know of a Win2K program that will 
> put Java apps
> as services? The run_as_service doesn't appear to work..keeps 
> giving some
> i/o problem.
> 
> Thanks.
> 




RE: Client application

2000-10-06 Thread Kurt Hoyt
Title: RE: Client application





I've gotten that same error, usually the first time I run a client program. I run it again, and it works fine with no NamingException. Very strange.

Kurt in Atlanta


>-Original Message-
>From: Daniel C. DiCesare [mailto:[EMAIL PROTECTED]]
>Sent: Friday, October 06, 2000 8:27 AM
>To: Orion-Interest
>Subject: Re: Client application
>
>
>Thanks for your response Robert. You were right about the 
>typo. It really
>was in my email. The path that I use is
>;\orion\orion.jar;\orion\ejb.jar;\orion\jdbc.jar;\orion\jndi.ja
>r;\orion\mai
>l.jar;orion-primer-client.jar
>
>
>Since this email I have gotten the client to run, now I get 
>the following
>error:
>
>Unable to get initial JNDI context: javax.naming.NamingException: Error
>reading application-client descriptor: No location specified 
>and no suitable
>instance of the type 'hello.ejb.Hello' found for the ejb-ref 
>ejb/HelloHome
>Exception in thread "main" java.lang.Exception: We're going to 
>the dogs!
>    at hello.client.HelloClient.main(HelloClient.java:26)
>
>- Original Message -
>From: "Robert Krueger" <[EMAIL PROTECTED]>
>To: "Orion-Interest" <[EMAIL PROTECTED]>
>Sent: Friday, October 06, 2000 4:33 PM
>Subject: Re: Client application
>
>
>At 09:48 06.10.00 , you wrote:
>>Frank,
>>I followed your example and deployed the orion-primer 
>application. I copied
>>the necessary JAR's into my directory along with the 
>jndi.properties file.
>I
>>also copied the orion-primer-client.jar into my directory. I 
>then ran the
>>following
>>
>>java -classpath .:orion.jar:ejb.jar:jndi.jar:orion-primer-clinet.jar
>>
>>hello.client.HelloClient
>>
>>I got the following error:
>>Exception in thread "main" java.lang.NoClassDefFoundError:
>>hello/client/HelloClient
>>
>>Any idea?
>
>it obviously doesn't find the class. a typo in the classpath maybe ;-)
>
>robert
>
>>-Danno
>
>(-) Robert Krüger
>(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
>(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
>(-) Tel: 06151 665401, Fax: 06151 665373
>(-) [EMAIL PROTECTED], www.signal7.de
>
>
>
>





RE: Client certificate authentication

2000-10-06 Thread Lopez Esteban

Hi Luciano:
I could fix the 403 Forbidden problem!!! It's easy:

In the WEB.XML file you must do anything like this:



MySecurity
/servlet/MainMenu
*


users



I I had forgotten to put:

users

and then no Role cuold have access.

Remember that in the WEB.XML we need to map the "users"  Role:



users
  

I hope this help you.

Esteban Lopez


> -Original Message-
> From: Montebove Luciano [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, October 04, 2000 4:55 AM
> To:   Orion-Interest
> Cc:   [EMAIL PROTECTED]
> Subject:  Re: Client certificate authentication
> 
> Hi Lopez,
> 
> Can you detail your "manual" identification?
> 
> Luciano
> 
> -Messaggio originale-
> Da: Lopez Esteban [mailto:[EMAIL PROTECTED]]
> Inviato: martedì 3 ottobre 2000 21.53
> A: Orion-Interest
> Oggetto: RE: Client certificate authentication
> 
> 
> 
>   I don't solve the 403 problem yet, but I can identify users using
> client certificates. I accept or not the user.  
>   If you are interested in this "manual" identification I can explain
> you more.
> 
> > -Mensaje original-
> > De: Montebove Luciano [SMTP:[EMAIL PROTECTED]]
> > Enviado el: Martes, 03 de Octubre de 2000 04:59 a.m.
> > Para:   Orion-Interest
> > Asunto: R: Client certificate authentication
> > 
> > I can help you partially. I had the same 403 Forbidden problem and I'm
> > waiting for a response from official support (5 days).
> > For the Cert ID use the sample page ssl-user-registration.jsp in demo
> SSL.
> > It will show the cert id you are looking for.
> > If you solve the 403 problem tell me.
> > 
> > ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤øø
> > Luciano Montebove - Software Architect - Finsiel S.p.a
> > E-mail: [EMAIL PROTECTED]  Phone:  (+39) 06-4142-7663
> > "If you don't fail now and again, it's a sign you're playing it safe"
> > -W. Allen
> > ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤øø
> > 
> > 
> > 
> > -Messaggio originale-
> > Da: Lopez Esteban [mailto:[EMAIL PROTECTED]]
> > Inviato: lunedì 2 ottobre 2000 14.57
> > A: Orion-Interest
> > Oggetto: Client certificate authentication
> > 
> > 
> > Hi
> > 
> > I need to authenticate clients with digital certificates, I have a
> > VeriSign
> > trial client certificate and I'm using IE 5.0. The certificate is well
> > installed in IE.
> > I'm working with Orion 1.2.9 and HTTPS. I'm using
> > CLIENT-CERT in de login config of WEB.XML
> file.
> > When I connect to the WEB site I see the follow error:
> > 403 Forbidden
> > Your cert's user does not have access to this resource
> > 
> > Please, anybody could help me about this?
> > 
> > Note: In the PRINCIPAL.XML file when I set the user that has a
> certificate
> > I
> > do the follow:
> > 
> > 
> > no description
> > CN = VeriSign Class 1 CA
> > Individual Subscriber-Persona Not Validated, OU =
> > www.verisign.com/repository/RPA Incorp. By Ref.,LIAB.LTD(c)98, OU =
> > VeriSign
> > Trust Network, O = VeriSign, Inc.
> > I don't
> > know
> > 
> > 
> > 
> > 
> > In   tag I've an hexa number and when I put this
> > serial number in it, the Orion throws the follow exception:
> > java.lang.NumberFormatException: 297D6F02EA75C1
> > at java.lang.Long.parseLong(Unknown Source)
> > at java.math.BigInteger.(Unknown Source)
> > at java.math.BigInteger.(Unknown Source)
> > at com.evermind.server.gs.(JAX)
> > at com.evermind.server.XMLUserManager.ajf(JAX)
> > at com.evermind.server.XMLUserManager.ajd(JAX)
> > at com.evermind.server.XMLUserManager.bw(JAX)
> > at com.evermind.xml.XMLConfig.br(JAX)
> > at com.evermind.xml.XMLConfig.ax(JAX)
> > at com.evermind.xml.XMLConfig.ax(JAX)
> > at com.evermind.xml.XMLConfig.update(JAX)
> > at com.evermind.server.gw.run(JAX)
> > at com.evermind.util.g.run(JAX)
> > at com.evermind.util.f.run(JAX)
> > 
> > What serial number I must to put in this tag?
> > 
> > Thanks, Esteban
> > 




RE: MySQL Identity Columns

2000-10-06 Thread Jesse Schoch

I have used it in the past, it works fine for me but you have to be aware
that it is per Db session and if you are using connection pooling you may
get the wrong last statement.  I solved the problem by putting my id into a
bean, and then using that as for the where for my updates.

Statement get_last_insert = con.createStatement();
String q = "select last_insert_id();"
ResultSet rs = con.executeQuery(q);


Jesse Schoch

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Holmes, George
(TWIi London)
Sent: Friday, October 06, 2000 9:52 AM
To: Orion-Interest
Subject: MySQL Identity Columns


Hi,

Does anyone have any code fragments for retrieving a MySQL identity value
using getLastInsertID() [ org.gjt.mm.mysql drivers ] under Orion?  The
documentation says that you have to cast the bespoke
statement/preparedstatement to a java.sql statement/preparedstatement?
Every time I get a ClassCastException?

Any help would be greatly appreciated.

Thanks

George

GEORGE HOLMES

TWI Interactive
Media House
Burlington Lane
LONDON
W4 2TH
ENGLAND

TEL: +44 208 233 5631
FAX: +44 208 233 7701
CELL: +44 7968 918813







RE: Client application

2000-10-06 Thread Dan DiCesare

Not to my understanding, I think you need to include the necessary orion 
jars
-Danno


>From: "Pantelis, Thomas" <[EMAIL PROTECTED]>
>Reply-To: Orion-Interest <[EMAIL PROTECTED]>
>To: Orion-Interest <[EMAIL PROTECTED]>
>Subject: RE: Client application
>Date: Fri, 6 Oct 2000 12:55:02 -0400
>
>Shouldn't it be orion-primer-client.jar?
>
>-Original Message-
>From: Daniel C. DiCesare [mailto:[EMAIL PROTECTED]]
>Sent: Friday, October 06, 2000 4:48 AM
>To: Orion-Interest
>Subject: Re: Client application
>
>
>Frank,
>I followed your example and deployed the orion-primer application. I copied
>the necessary JAR's into my directory along with the jndi.properties file. 
>I
>also copied the orion-primer-client.jar into my directory. I then ran the
>following
>
>java -classpath .:orion.jar:ejb.jar:jndi.jar:orion-primer-clinet.jar
>hello.client.HelloClient
>
>I got the following error:
>Exception in thread "main" java.lang.NoClassDefFoundError:
>hello/client/HelloClient
>
>Any idea?
>
>-Danno

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.





Re: Orion logging..is it a performance hit?

2000-10-06 Thread Sarathy Mattaparti

Yes..
  you can get answers for your questions in documentation. i customized 
the log file..

Sarathy

>
>I am curious..I look in the .log file created by each web-app and I see a
>timestamp for every hit (each jsp page, gif, etc). I am wondering if this 
>is
>a performance hit..writing this info out on a regular basis (or is it
>buffered and written when the server shuts down?). Also, is there a way to
>turn it off if I don't much care for the hits. Finally..is there any way it
>can be formatted so when opening it with WordPad or something it shows up
>line by line, instead of without line breaks?
>
>Thanks.
>

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.





Re: xalan

2000-10-06 Thread Mike Muffett

Does the xalan processor support the document() function...

Mike Muff





Orion logging..is it a performance hit?

2000-10-06 Thread Duffey, Kevin

I am curious..I look in the .log file created by each web-app and I see a
timestamp for every hit (each jsp page, gif, etc). I am wondering if this is
a performance hit..writing this info out on a regular basis (or is it
buffered and written when the server shuts down?). Also, is there a way to
turn it off if I don't much care for the hits. Finally..is there any way it
can be formatted so when opening it with WordPad or something it shows up
line by line, instead of without line breaks?

Thanks.




RE: WinNT 4, SP5/6 and Orion consistently crashing..

2000-10-06 Thread Duffey, Kevin

Interesting. I am running Orin on Win2K and JDK 1.3 pretty fine now. Been
1.5 days solid with only a few connection leaks occurring (using our own
connection pool class). Other than that..everything seems fine. I assume SP6
had some bugs in it or something.

> Kevin,
> 
> We had regular (once a day) Dr Watsons when using Orion 1.2.9 
> on SP6 and
> JDK1.2.2. We switched to JDK1.3 a couple of weeks ago and the 
> problem has
> gone away.
> 
> Regards,
> Rob Hargreaves
> 
> 
> -Original Message-
> From: Duffey, Kevin [mailto:[EMAIL PROTECTED]]
> Sent: 04 October 2000 23:10
> To: Orion-Interest
> Subject: WinNT 4, SP5/6 and Orion consistently crashing..
> 
> 
> Hi all,
> 
> I am not sure why..but it appears that Orion 1.2.9 (and 1.3.7) crashes
> whenever we "remote" into our server to do some work on it. 
> We have NT4 with
> SP5 on one machine, and SP6 on another. I have Orion using 
> run_as_service to
> put it in as a service. Even when I run it as an application, 
> this happens.
> It seems to work fine for a while, then it crashes. I know 
> our code is bad,
> but it seems to me with only 4 people using the thing for 
> testing, it should
> be fine. Has anyone been experiencing problems with Orion 
> crashing on NT
> with SP5 or SP6? Does the remote access do something to the 
> JVM? Its using
> JDK 1.2.2-05 JRE.
> 
> On the subject..does anyone know of a Win2K program that will 
> put Java apps
> as services? The run_as_service doesn't appear to work..keeps 
> giving some
> i/o problem.
> 
> Thanks.
> 




Re: Client application

2000-10-06 Thread Daniel C. DiCesare

Thanks for your response Robert. You were right about the typo. It really
was in my email. The path that I use is
;\orion\orion.jar;\orion\ejb.jar;\orion\jdbc.jar;\orion\jndi.jar;\orion\mai
l.jar;orion-primer-client.jar


Since this email I have gotten the client to run, now I get the following
error:

Unable to get initial JNDI context: javax.naming.NamingException: Error
reading application-client descriptor: No location specified and no suitable
instance of the type 'hello.ejb.Hello' found for the ejb-ref ejb/HelloHome
Exception in thread "main" java.lang.Exception: We're going to the dogs!
at hello.client.HelloClient.main(HelloClient.java:26)

- Original Message -
From: "Robert Krueger" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Friday, October 06, 2000 4:33 PM
Subject: Re: Client application


At 09:48 06.10.00 , you wrote:
>Frank,
>I followed your example and deployed the orion-primer application. I copied
>the necessary JAR's into my directory along with the jndi.properties file.
I
>also copied the orion-primer-client.jar into my directory. I then ran the
>following
>
>java -classpath .:orion.jar:ejb.jar:jndi.jar:orion-primer-clinet.jar
>
>hello.client.HelloClient
>
>I got the following error:
>Exception in thread "main" java.lang.NoClassDefFoundError:
>hello/client/HelloClient
>
>Any idea?

it obviously doesn't find the class. a typo in the classpath maybe ;-)

robert

>-Danno

(-) Robert Krüger
(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de







Re: Run Orion as a daemon in Linux

2000-10-06 Thread Sach Jobb

We use something very similar to this, only we change the ownership to a
normal user.

On Thu, 5 Oct 2000, Tony Abbott wrote:

> This is off the top of my head but something like this should work...
> 
> #!/bin/sh
> 
> case "$1" in
>start)
>   cd /usr/local/orion && (java -server -Xmx128m -jar orion.jar &)
>   ;;
>stop)
>   cd /usr/local/orion && java -jar admin.jar ormi://localhost admin 123 -shutdown
>   ;;
> esac
> 
> 
> -t
> 
> 
> 
> 
> On Thu, Oct 05, 2000 at 06:51:06PM -0400, Sean Han wrote:
> > Hi, everyone:
> > 
> > I know some of you guys use linux as the platform for running Orion server.
> > Do you use the Sys V script to startup and shutdown the Orion server? If you
> > do, could you please send me a copy of the script? If not, is there any
> > solution to startup the Orion server when the OS bootup?
> > 
> > thanks!
> > 
> > Sean
> > 
> 
> -- 
> 
>Tony Abbott[EMAIL PROTECTED]
> 
> 





Re: Client application Please Help

2000-10-06 Thread Daniel C. DiCesare
Title: RE: Client application Please Help



Thank you for your response. I have tried your 
suggestion and here is what I get:
javax.naming.NamingException: 
META-INF/application-client.xml resource not found at 
        
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(JAX, 
Compiled Code)    at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)    
at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)    
at 
javax.naming.InitialContext.init(InitialContext.java:226)    
at 
javax.naming.InitialContext.(InitialContext.java:182)    
at TeamRandomTrade.main(TeamRandomTrade.java, Compiled Code)
 
 
My team-client.jar has application-client.xml in 
it. I do not understand why it can not be found. 
 
Any further help would be appreciated.
-Danno
 
>From: "Pantelis, Thomas" <[EMAIL PROTECTED]>>Reply-To: 
Orion-Interest >To: 
Orion-Interest >Subject: 
RE: Client application Please Help>Date: Fri, 6 Oct 2000 10:31:00 
-0400>>The correct lookup is "java:comp/env/TeamBean". I assume 
you're running you're client>outside of Orion? Make sure your 
provider_url JNDI prop points to>"ormi://localhost/" 
where  is the name of the TeamBean app 
in>server.xml.>>-Original Message->From: 
Frank Eggink [mailto:[EMAIL PROTECTED]]>Sent: 
Friday, October 06, 2000 8:05 AM>To: Orion-Interest>Subject: RE: 
Client application Please Help>>>I bet you'll have to 
change ic.lookup("TeamBean") in to>ic.lookup("comp:/java/env/TeamBean"), 
a bit depending on what's defined in>your *.xml 
files.>>These files define the name under which the bean gets 
registered.>"comp:/java/env/" is a fixed? 
prefix.>>Frank>>On Thursday, October 05, 2000 7:18 
PM, Daniel C. DiCesare>[SMTP:[EMAIL PROTECTED]] 
wrote:> > Frank,> > I checked out your example but I am 
continuing to experience problems.>Here> > is what I have. I 
have included the script for my xml files below.> >> > I 
have deployed an EJB called Team onto Orion. It sits in a EAR 
file>which> > within it has a Team.jar file. The JAR file 
contains the following:> > Team.class -  ( remote interface 
)> > TeamHome.class - ( home interface )> > TeamEJB - ( EJB 
)> > ejb-jar.xml - ( deployment descriptor )> >> > 
I then created a team-client.jar which consists of the following:> > 
TeamClient.class - ( client )> > application-client.xml - ( client xml 
)> >> > In my TeamClient I attempt to connect to the TeamEJB 
as follows:> > Context ic  = new InitialContext();> > 
Object  obj = ic.lookup( "TeamBean" );> > _TeamHome   = 
( TeamHome )PortableRemoteObject.narrow( obj,> > TeamHome.class 
);> >> >> >> >> >> > 
When I try to run the client I get the following message:> > 
javax.naming.NamingException: Error reading 
application-client>descriptor:> > No location specified and no 
suitable instance of the type 'Team' found>for> > the ejb-ref 
TeamBean> > at> 
>>com.evermind.server.ApplicationClientInitialContextFactory.getInitialCon>text> 
> (JAX, Compiled Code)> 
> at> > 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)> 
> at> > 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)> 
> at 
javax.naming.InitialContext.init(InitialContext.java:226)> 
> at 
javax.naming.InitialContext.(InitialContext.java:182)> 
> at 
TeamRandomTrade.main(TeamRandomTrade.java, Compiled Code)> >> 
>> > Can you or anyone please advise as to what I am doing 
wrong?> >> > Thanks in advance.> > -Danno> 
>> >> >> > The ejb-jar.xml looks as 
follows:> >> > > > > > JavaBeans 1.1//EN' 
'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>> >> > 
> >   no 
description> >   
TeamEJB> >   
> > 
> >   
no description> 
>   
TeamBean> 
>   
TeamBean> 
>   
TeamHome> 
>   
Team> 
>   
TeamEJB> 
>   
Bean> 
>   
java.lang.Integer> 
>   
False> 
>   > >  
A description for ResourceRefName> 
>  jdbc/SF> >  
javax.sql.DataSource> >  
Container> 
>   > 
> > >   
> > > >> 
>> >> > My application-client.xml file looks as 
follows:> > > > > > 
Application Client 1.2//EN"> > "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd">> 
> > >  
SportsFund> >  
> >  
> >   
TeamBean> >   
Session> >   
TeamHome> >   
Team> >  > 
> > >

  - Original Message - 
  From: 
  Pantelis, 
  Thomas 
  To: Orion-Interest 
  Sent: Friday, October 06, 2000 3:31 
  PM
  Subject: RE: Client application Please 
  Help
  
  The correct lookup is "java:comp/env/TeamBean". I assume 
  you're running you're client outside of Orion? Make 
  sure your provider_url JNDI prop points to "ormi://localhost/" where  is the name 
  of the TeamBean app in server.xml. 
  -Original Message- From: Frank 
  Eggink [mailto:[EMAIL PROTECTED]] 
  Sent: Friday, October 06, 2000 8:05 AM To: Orion-Interest Subject: RE: Client 
  application Please Help 
  I bet you'll have 

RE: Client application

2000-10-06 Thread Pantelis, Thomas
Title: RE: Client application





Shouldn't it be orion-primer-client.jar?


-Original Message-
From: Daniel C. DiCesare [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 06, 2000 4:48 AM
To: Orion-Interest
Subject: Re: Client application



Frank,
I followed your example and deployed the orion-primer application. I copied
the necessary JAR's into my directory along with the jndi.properties file. I
also copied the orion-primer-client.jar into my directory. I then ran the
following


java -classpath .:orion.jar:ejb.jar:jndi.jar:orion-primer-clinet.jar
hello.client.HelloClient


I got the following error:
Exception in thread "main" java.lang.NoClassDefFoundError:
hello/client/HelloClient


Any idea?


-Danno





MySQL Identity Columns

2000-10-06 Thread Holmes, George (TWIi London)

Hi,

Does anyone have any code fragments for retrieving a MySQL identity value
using getLastInsertID() [ org.gjt.mm.mysql drivers ] under Orion?  The
documentation says that you have to cast the bespoke
statement/preparedstatement to a java.sql statement/preparedstatement?
Every time I get a ClassCastException?

Any help would be greatly appreciated.

Thanks

George

GEORGE HOLMES

TWI Interactive
Media House
Burlington Lane
LONDON
W4 2TH
ENGLAND

TEL: +44 208 233 5631
FAX: +44 208 233 7701
CELL: +44 7968 918813





Re: Orion server logging clock broken

2000-10-06 Thread Robert Krueger


please file that with bugzilla. it's the appropriate place for bug reports. 
then the orion team is guaranteed to look at it.

regards,

robert

At 17:15 06.10.00 , you wrote:




>The log writer of Orion with the configuration:
>
> format='$ip $user $user [$time] "$request" $status $size
>  "$referer" "$agent" [-]' split="day" suffix="MMdd" />
>
>keeps on getting stuck at a miscellaneous point - sometimes just after
>a restart, sometimes after the server has been running for a few
>hours/days.
>It then records the same time for all incoming requests.
>
>The only thing that seems to fix this is to restart orion.
>
>When the clock gets stuck. the server also does not split its log files,
>since
>it thinks that it is still the same day.
>
>I have upgraded to the latest version of Orion without any luck.
>
>Thanks
>
>Warren
>
>

(-) Robert Krüger
(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de





Orion server logging clock broken

2000-10-06 Thread Warren Van der Woude





The log writer of Orion with the configuration:



keeps on getting stuck at a miscellaneous point - sometimes just after
a restart, sometimes after the server has been running for a few
hours/days.
It then records the same time for all incoming requests.

The only thing that seems to fix this is to restart orion.

When the clock gets stuck. the server also does not split its log files,
since
it thinks that it is still the same day.

I have upgraded to the latest version of Orion without any luck.

Thanks

Warren






Re: Client application Please Help

2000-10-06 Thread Daniel C. DiCesare

Hi Frank,
Thanks again for following up. I have tried your suggestion and now I am
getting a different message. Here it is:
javax.naming.NamingException: META-INF/application-client.xml resource not
found at

com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext
(JAX, Compiled Code)
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)
at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
at javax.naming.InitialContext.init(InitialContext.java:226)
at javax.naming.InitialContext.(InitialContext.java:182)
at TeamRandomTrade.main(TeamRandomTrade.java, Compiled Code)


Any idea on what I can do?

Thanks
-Danno
- Original Message -
From: "Frank Eggink" <>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Friday, October 06, 2000 1:05 PM
Subject: RE: Client application Please Help


> I bet you'll have to change ic.lookup("TeamBean") in to
> ic.lookup("comp:/java/env/TeamBean"), a bit depending on what's defined in
> your *.xml files.
>
> These files define the name under which the bean gets registered.
> "comp:/java/env/" is a fixed? prefix.
>
> Frank
>
> On Thursday, October 05, 2000 7:18 PM, Daniel C. DiCesare
> [SMTP:[EMAIL PROTECTED]] wrote:
> > Frank,
> > I checked out your example but I am continuing to experience problems.
> Here
> > is what I have. I have included the script for my xml files below.
> >
> > I have deployed an EJB called Team onto Orion. It sits in a EAR file
> which
> > within it has a Team.jar file. The JAR file contains the following:
> > Team.class -  ( remote interface )
> > TeamHome.class - ( home interface )
> > TeamEJB - ( EJB )
> > ejb-jar.xml - ( deployment descriptor )
> >
> > I then created a team-client.jar which consists of the following:
> > TeamClient.class - ( client )
> > application-client.xml - ( client xml )
> >
> > In my TeamClient I attempt to connect to the TeamEJB as follows:
> > Context ic  = new InitialContext();
> > Object  obj = ic.lookup( "TeamBean" );
> > _TeamHome   = ( TeamHome )PortableRemoteObject.narrow( obj,
> > TeamHome.class );
> >
> >
> >
> >
> >
> > When I try to run the client I get the following message:
> > javax.naming.NamingException: Error reading application-client
> descriptor:
> > No location specified and no suitable instance of the type 'Team' found
> for
> > the ejb-ref TeamBean
> > at
> >
> com.evermind.server.ApplicationClientInitialContextFactory.getInitialCon
> text
> > (JAX, Compiled Code)
> > at
> > javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)
> > at
> > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
> > at javax.naming.InitialContext.init(InitialContext.java:226)
> > at javax.naming.InitialContext.(InitialContext.java:182)
> > at TeamRandomTrade.main(TeamRandomTrade.java, Compiled Code)
> >
> >
> > Can you or anyone please advise as to what I am doing wrong?
> >
> > Thanks in advance.
> > -Danno
> >
> >
> >
> > The ejb-jar.xml looks as follows:
> >
> > 
> >  > JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
> >
> > 
> >   no description
> >   TeamEJB
> >   
> > 
> >   no description
> >   TeamBean
> >   TeamBean
> >   TeamHome
> >   Team
> >   TeamEJB
> >   Bean
> >   java.lang.Integer
> >   False
> >   
> >  A description for ResourceRefName
> >  jdbc/SF
> >  javax.sql.DataSource
> >  Container
> >   
> > 
> >   
> > 
> >
> >
> >
> > My application-client.xml file looks as follows:
> > 
> >  > Application Client 1.2//EN"
> > "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd">
> > 
> >  SportsFund
> >  
> >  
> >   TeamBean
> >   Session
> >   TeamHome
> >   Team
> >  
> > 
> >
>
>




Re: Client application

2000-10-06 Thread Robert Krueger

At 09:48 06.10.00 , you wrote:
>Frank,
>I followed your example and deployed the orion-primer application. I copied
>the necessary JAR's into my directory along with the jndi.properties file. I
>also copied the orion-primer-client.jar into my directory. I then ran the
>following
>
>java -classpath .:orion.jar:ejb.jar:jndi.jar:orion-primer-clinet.jar
>
>hello.client.HelloClient
>
>I got the following error:
>Exception in thread "main" java.lang.NoClassDefFoundError:
>hello/client/HelloClient
>
>Any idea?

it obviously doesn't find the class. a typo in the classpath maybe ;-)

robert

>-Danno

(-) Robert Krüger
(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de





Re: Client application Please Help

2000-10-06 Thread Daniel C. DiCesare

Thanks for your response Luis. I do have the jndi.properties in my
classpath. To ensure this I copied it to the directory I am working out of.

Thanks again,
-Danno
- Original Message -
From: "Luis M Bernardo" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Friday, October 06, 2000 2:02 PM
Subject: Re: Client application Please Help


>
>
>
> do you have the jndi.properties file in the classpath? if you just create
> an initial context by calling the no argument constructor you need to
> include that file in the classpath.
>
> luis
>
>
> On Thu, 5 Oct 2000, Daniel C. DiCesare wrote:
>
> > Frank,
> > I checked out your example but I am continuing to experience problems.
Here
> > is what I have. I have included the script for my xml files below.
> >
> > I have deployed an EJB called Team onto Orion. It sits in a EAR file
which
> > within it has a Team.jar file. The JAR file contains the following:
> > Team.class -  ( remote interface )
> > TeamHome.class - ( home interface )
> > TeamEJB - ( EJB )
> > ejb-jar.xml - ( deployment descriptor )
> >
> > I then created a team-client.jar which consists of the following:
> > TeamClient.class - ( client )
> > application-client.xml - ( client xml )
> >
> > In my TeamClient I attempt to connect to the TeamEJB as follows:
> > Context ic  = new InitialContext();
> > Object  obj = ic.lookup( "TeamBean" );
> > _TeamHome   = ( TeamHome )PortableRemoteObject.narrow( obj,
> > TeamHome.class );
> >
> >
> >
> >
> >
> > When I try to run the client I get the following message:
> > javax.naming.NamingException: Error reading application-client
descriptor:
> > No location specified and no suitable instance of the type 'Team' found
for
> > the ejb-ref TeamBean
> > at
> >
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext
> > (JAX, Compiled Code)
> > at
> > javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)
> > at
> > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
> > at javax.naming.InitialContext.init(InitialContext.java:226)
> > at javax.naming.InitialContext.(InitialContext.java:182)
> > at TeamRandomTrade.main(TeamRandomTrade.java, Compiled Code)
> >
> >
> > Can you or anyone please advise as to what I am doing wrong?
> >
> > Thanks in advance.
> > -Danno
> >
> >
> >
> > The ejb-jar.xml looks as follows:
> >
> > 
> >  > JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
> >
> > 
> >   no description
> >   TeamEJB
> >   
> > 
> >   no description
> >   TeamBean
> >   TeamBean
> >   TeamHome
> >   Team
> >   TeamEJB
> >   Bean
> >   java.lang.Integer
> >   False
> >   
> >  A description for ResourceRefName
> >  jdbc/SF
> >  javax.sql.DataSource
> >  Container
> >   
> > 
> >   
> > 
> >
> >
> >
> > My application-client.xml file looks as follows:
> > 
> >  > Application Client 1.2//EN"
> > "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd">
> > 
> >  SportsFund
> >  
> >  
> >   TeamBean
> >   Session
> >   TeamHome
> >   Team
> >  
> > 
> >
> >
>
>
>




RE: Server.xml and datasources

2000-10-06 Thread Russ White

in orion-application.xml

set



to whatever data-sources.xml you need.


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Magnus Nilsson
> Sent: Friday, October 06, 2000 9:42 AM
> To: Orion-Interest
> Subject: Server.xml and datasources
> 
> 
> In the new Orion documentation it says:
> 
> "The server.xml file also contains references
> to the other configuration files.
> Specifically, in the server.xml you specify
> 
> - Where the data-source configuration is located"
> 
> Line 596 in http://www.orionserver.com/docs/index.html
> 
> Is this correct?
> 
> I can't find any references in the actual DTD or the tag description
> of server.xml that you can specify where to look for data sources.
> 
> More to the point: Can I have a local data-sources.xml for each
> enterprise application that I deploy?
> 
> /Magnus
> 
> 




DB2 CMP

2000-10-06 Thread Russ White

 I have CMP entity beans that can store null fields. I use DB2 and the DB2 jdbc
driver does not allow setNull(FLOAT) on FLOAT fields, but it does allow
setObject(null) on a FLOAT field. Which way does Orion do this? Is it
configurable? Can I implement my own JDBC accessor class for CMP?

I am seriously considering Orion to deploy my beans, but I want to be sure that
these beans can be made to work.

Thanks!

BTW: What I have seen so far of Orion just rocks! Thanks for a slick product!





Re: Run Orion as a daemon in Linux

2000-10-06 Thread KirkYarina

This works for us; it goes in /etc/rc.d/init.d/orion, with the usual links 
to rc.X.  We're using a script in the orion directory for convenience, and 
we haven't sorted out running Orion as something other than root, both of 
which are security holes.

This isn't adequate for Internet accessible production, but works for our 
development machine.  Blackdown's not the speediest JVM ever, either...

BTW, has anyone tried to run Orion chrooted?  Did you get it to work?

Kirk Yarina

At 06:51 PM 10/5/00 -0400, you wrote:
>Hi, everyone:
>
>I know some of you guys use linux as the platform for running Orion server.
>Do you use the Sys V script to startup and shutdown the Orion server? If you
>do, could you please send me a copy of the script? If not, is there any
>solution to startup the Orion server when the OS bootup?
>
>thanks!
>
>Sean

#!/bin/sh
#
# Startup script for the Orion App Server
#
# processname: java


# Source function library.
. /etc/rc.d/init.d/functions

PATH=$PATH:/local/Blackdown/jdk1.2.2/bin
export PATH

ORION_HOME=

# See how we were called.
case "$1" in
   start)
 echo -n "Starting orion: "
 daemon $ORION_HOME/start.sh
 echo
 touch /var/lock/subsys/orion
 ;;
   stop)
 echo -n "Shutting down orion: "
 (
 cd $ORION_HOME
 java -jar admin.jar ormi://localhost/ admin 123 -shutdown
 ) && success "orion shutdown" || failure "orion shutdown"
 echo
 rm -f /var/lock/subsys/orion
 ;;
   status)
 # status httpd
 echo No status available from rc.d script.
 echo Use the orion status monitor program.
 echo
 ;;
   restart)
 $0 stop
 $0 start
 ;;
   reload)
 echo Orion does not dynamically reload, use restart.
 echo
 ;;
   *)
 echo "Usage: $0 {start|stop|restart|reload|status}"
 exit 1
esac

exit 0

And $ORION_HOME/start.sh

#! /bin/sh

PATH=$PATH:/local/Blackdown/jdk1.2.2/bin
ORION_HOME=

(
 cd $ORION_HOME
 nohup /bin/sh -c "/local/Blackdown/jdk1.2.2/bin/java -Xmx128m -jar 
orion
.jar > out.log 2> err.log" &
)


Kirk Yarina
[EMAIL PROTECTED]





RE: Client application Please Help

2000-10-06 Thread Pantelis, Thomas
Title: RE: Client application Please Help





The correct lookup is "java:comp/env/TeamBean". I assume you're running you're client
outside of Orion? Make sure your provider_url JNDI prop points to
"ormi://localhost/" where  is the name of the TeamBean app in
server.xml.


-Original Message-
From: Frank Eggink [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 06, 2000 8:05 AM
To: Orion-Interest
Subject: RE: Client application Please Help



I bet you'll have to change ic.lookup("TeamBean") in to 
ic.lookup("comp:/java/env/TeamBean"), a bit depending on what's defined in 
your *.xml files.


These files define the name under which the bean gets registered. 
"comp:/java/env/" is a fixed? prefix.


Frank


On Thursday, October 05, 2000 7:18 PM, Daniel C. DiCesare 
[SMTP:[EMAIL PROTECTED]] wrote:
> Frank,
> I checked out your example but I am continuing to experience problems. 
Here
> is what I have. I have included the script for my xml files below.
>
> I have deployed an EJB called Team onto Orion. It sits in a EAR file 
which
> within it has a Team.jar file. The JAR file contains the following:
> Team.class -  ( remote interface )
> TeamHome.class - ( home interface )
> TeamEJB - ( EJB )
> ejb-jar.xml - ( deployment descriptor )
>
> I then created a team-client.jar which consists of the following:
> TeamClient.class - ( client )
> application-client.xml - ( client xml )
>
> In my TeamClient I attempt to connect to the TeamEJB as follows:
> Context ic  = new InitialContext();
> Object  obj = ic.lookup( "TeamBean" );
> _TeamHome   = ( TeamHome )PortableRemoteObject.narrow( obj,
> TeamHome.class );
>
>
>
>
>
> When I try to run the client I get the following message:
> javax.naming.NamingException: Error reading application-client 
descriptor:
> No location specified and no suitable instance of the type 'Team' found 
for
> the ejb-ref TeamBean
> at
> 
com.evermind.server.ApplicationClientInitialContextFactory.getInitialCon  
text
> (JAX, Compiled Code)
> at
> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)
> at
> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
> at javax.naming.InitialContext.init(InitialContext.java:226)
> at javax.naming.InitialContext.(InitialContext.java:182)
> at TeamRandomTrade.main(TeamRandomTrade.java, Compiled Code)
>
>
> Can you or anyone please advise as to what I am doing wrong?
>
> Thanks in advance.
> -Danno
>
>
>
> The ejb-jar.xml looks as follows:
>
> 
> 
> JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
>
> 
>   no description
>   TeamEJB
>   
> 
>   no description
>   TeamBean
>   TeamBean
>   TeamHome
>   Team
>   TeamEJB
>   Bean
>   java.lang.Integer
>   False
>   
>  A description for ResourceRefName
>  jdbc/SF
>  javax.sql.DataSource
>  Container
>   
> 
>   
> 
>
>
>
> My application-client.xml file looks as follows:
> 
> 
> Application Client 1.2//EN"
> "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd">
> 
>  SportsFund
>  
>  
>   TeamBean
>   Session
>   TeamHome
>   Team
>  
> 
> 





Re: Server.xml and datasources

2000-10-06 Thread Robert Krueger

At 15:41 06.10.00 , you wrote:
>In the new Orion documentation it says:
>
>"The server.xml file also contains references
>to the other configuration files.
>Specifically, in the server.xml you specify
>
>- Where the data-source configuration is located"
>
>Line 596 in http://www.orionserver.com/docs/index.html
>
>Is this correct?

no, it's outdated. as you have assumed data-sources are specified at the 
application level (see dtd for orion-application.xml) + you have the option 
to put the datasources you want to have "globally" in the 
global-application.xml. so you have all the flexibility you need. the only 
thing i would like to have additionally is the ability to map a "local" 
datasource name to a "global" datasource so I'd have all the stuff related 
to the local database installation in one place but still have the ability 
to define application-local datasources.

>I can't find any references in the actual DTD or the tag description
>of server.xml that you can specify where to look for data sources.

see above

>More to the point: Can I have a local data-sources.xml for each
>enterprise application that I deploy?

see above

HTH,

robert

>/Magnus

(-) Robert Krüger
(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de





RE: HTTP Tunneling

2000-10-06 Thread Frank Eggink

I'm not really into details on plain rmi, but as far as my understanding of 
things go ?all? appserver-vendors supply their own protocol. For orion it 
is ormi. My bet is that http tunneling included in the orion package works 
for ormi and orion only.

On Wednesday, October 04, 2000 11:04 PM, Lopez Esteban 
[SMTP:[EMAIL PROTECTED]] wrote:
> Thanks, but i see the enable HTTP Tunneling documentation and it talk 
about
> ormi and http:ormi protocols and I'm using rmi protocol for an 
application
> server independent application. What about this?, It's the same?
>
> > -Mensaje original-
> > De: Frank Eggink [SMTP:[EMAIL PROTECTED]]
> > Enviado el: Viernes, 29 de Septiembre de 2000 04:57 a.m.
> > Para:   Orion-Interest
> > Asunto: RE: HTTP Tunneling
> >
> > I just tried it this week: piece of cake. See the Orion Documentation:
> > RMI-HTTP tunneling. It is in the section about deployment in a 
production
> > environment.
> >
> > Frank
> >
> > On Thursday, September 28, 2000 3:14 PM, Lopez Esteban
> > [SMTP:[EMAIL PROTECTED]] wrote:
> > > Hi All
> > > Please, explain me how to use RMI in orionserver. And I'd like to 
know
> > how
> > > to start http tunneling in orionserver.
> > > Any help appreciated, Esteban Lopez
> > >
> > >
> 




Re: Run Orion as a daemon in Linux

2000-10-06 Thread Gary Shea

On Thu, 5 Oct 2000, Sean Han wrote:
> Hi, everyone:
> 
> I know some of you guys use linux as the platform for running Orion server.
> Do you use the Sys V script to startup and shutdown the Orion server? If you
> do, could you please send me a copy of the script? If not, is there any
> solution to startup the Orion server when the OS bootup?
> 
> thanks!
> 
> Sean
> 
> 
> 

#! /bin/sh

OWNER=root
PREFIX=/usr/local/orion
OUT=/var/orion/out.log
ERR=/var/orion/err.log
USERNAME=whatever
PASSWORD=likewise

case "$1" in
'start')
[ ! -f $PREFIX/orion.jar ] && exit 0

cd $PREFIX
su - $OWNER -c "cd $PREFIX; exec java -jar $PREFIX/orion.jar -out $OUT -err 
$ERR &"
;;

'stop')
[ ! -f $PREFIX/admin.jar ] && exit 0

cd $PREFIX
su - $OWNER -c "cd $PREFIX; java -jar $PREFIX/admin.jar 
ormi://localhost.local.net $USERNAME $PASSWORD -shutdown"
;;

*)
echo "Usage: $0 { start | stop }"
exit 1
;;
esac
exit 0





Re: Client application Please Help

2000-10-06 Thread Daniel C. DiCesare

Thanks for your input Matt.  I think that the ejb-jar.xml is correct,
otherwise I would not be able to deploy the ejb.

Thanks again,
-Danno

- Original Message -
From: "Matt Brunner" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Friday, October 06, 2000 12:38 AM
Subject: Re: Client application Please Help


> It seems that you just need to use the standard structure for your ejb jar
and
> client app jar files.
> The ejb jar file structure is shown in the orion and cmp primers on
> www.jollem.com -- and the
> application client jar should be structured like this:
>
> app-client.jar
> app-client.class
> META-INF/
>   application-client.xml
>
>
> hope this helps
> Matt
>
>
> "Daniel C. DiCesare" wrote:
>
> > Frank,
> > I checked out your example but I am continuing to experience problems.
Here
> > is what I have. I have included the script for my xml files below.
> >
> > I have deployed an EJB called Team onto Orion. It sits in a EAR file
which
> > within it has a Team.jar file. The JAR file contains the following:
> > Team.class -  ( remote interface )
> > TeamHome.class - ( home interface )
> > TeamEJB - ( EJB )
> > ejb-jar.xml - ( deployment descriptor )
> >
> > I then created a team-client.jar which consists of the following:
> > TeamClient.class - ( client )
> > application-client.xml - ( client xml )
> >
> > In my TeamClient I attempt to connect to the TeamEJB as follows:
> > Context ic  = new InitialContext();
> > Object  obj = ic.lookup( "TeamBean" );
> > _TeamHome   = ( TeamHome )PortableRemoteObject.narrow( obj,
> > TeamHome.class );
> >
> > When I try to run the client I get the following message:
> > javax.naming.NamingException: Error reading application-client
descriptor:
> > No location specified and no suitable instance of the type 'Team' found
for
> > the ejb-ref TeamBean
> > at
> >
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext
> > (JAX, Compiled Code)
> > at
> > javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)
> > at
> > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
> > at javax.naming.InitialContext.init(InitialContext.java:226)
> > at javax.naming.InitialContext.(InitialContext.java:182)
> > at TeamRandomTrade.main(TeamRandomTrade.java, Compiled Code)
> >
> > Can you or anyone please advise as to what I am doing wrong?
> >
> > Thanks in advance.
> > -Danno
> >
> > The ejb-jar.xml looks as follows:
> >
> > 
> >  > JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
> >
> > 
> >   no description
> >   TeamEJB
> >   
> > 
> >   no description
> >   TeamBean
> >   TeamBean
> >   TeamHome
> >   Team
> >   TeamEJB
> >   Bean
> >   java.lang.Integer
> >   False
> >   
> >  A description for ResourceRefName
> >  jdbc/SF
> >  javax.sql.DataSource
> >  Container
> >   
> > 
> >   
> > 
> >
> > My application-client.xml file looks as follows:
> > 
> >  > Application Client 1.2//EN"
> > "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd">
> > 
> >  SportsFund
> >  
> >  
> >   TeamBean
> >   Session
> >   TeamHome
> >   Team
> >  
> > 
>
>
>




Re: Client application

2000-10-06 Thread Daniel C. DiCesare

Thanks Christain, I am not sure that this is the way that we should be
connecting though I could see how it would might work.

-Danno
- Original Message -
From: "Christian Eichinger" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Tuesday, October 03, 2000 5:00 PM
Subject: Re: Client application


> Look at the example in ..\demo\rmi\RMIApp.java. It shows how
> you can access the EJB-Server using its JNDI functionality.
>
> Christian
>
> > "Daniel C. DiCesare" wrote:
> >
> > Hello,
> > I have an EJB which I need to invoke from a Java application. I am
> > trying to create the Client jar file so that my application can invoke
> > the EJB. I have not been able to do so. I had hoped to use the
> > deployment tool that comes with Sun to create the client jar but I
> > have not been able to do so. Can anyone advise on how I can create
> > this jar or how I can connect a client app to utilize my EJB's.
> >
> > Thanks
> > -Dan




Re: Client application

2000-10-06 Thread Daniel C. DiCesare

Frank,
I followed your example and deployed the orion-primer application. I copied
the necessary JAR's into my directory along with the jndi.properties file. I
also copied the orion-primer-client.jar into my directory. I then ran the
following

java -classpath .:orion.jar:ejb.jar:jndi.jar:orion-primer-clinet.jar
hello.client.HelloClient

I got the following error:
Exception in thread "main" java.lang.NoClassDefFoundError:
hello/client/HelloClient

Any idea?

-Danno




JSP Question

2000-10-06 Thread Magnus Nilsson

Hi,

Is it possible to create a JSP custom tag and package
the same class under different names in the tld description
and from inside the tag class determine the name that
was used to invoke it. Some kind of implicit parameter
passing.

Example:


  A
  X
  empty


  B
  X
  empty


  C
  X
  empty


public class X extends TagSupport
{
  public int doStartTag()
throws JspException
  {
// Get the name of the tag that
// that was used to invoke the call: A, B or C
String name = ...;
};

I see from the spec. that the info is available
in the class TagInfo, but I can't see how I can
get hold of an instance (if possible).

Regards
/Magnus




Server.xml and datasources

2000-10-06 Thread Magnus Nilsson

In the new Orion documentation it says:

"The server.xml file also contains references
to the other configuration files.
Specifically, in the server.xml you specify

- Where the data-source configuration is located"

Line 596 in http://www.orionserver.com/docs/index.html

Is this correct?

I can't find any references in the actual DTD or the tag description
of server.xml that you can specify where to look for data sources.

More to the point: Can I have a local data-sources.xml for each
enterprise application that I deploy?

/Magnus




Re: Client application Please Help

2000-10-06 Thread Luis M Bernardo




do you have the jndi.properties file in the classpath? if you just create
an initial context by calling the no argument constructor you need to
include that file in the classpath.

luis


On Thu, 5 Oct 2000, Daniel C. DiCesare wrote:

> Frank,
> I checked out your example but I am continuing to experience problems. Here
> is what I have. I have included the script for my xml files below.
> 
> I have deployed an EJB called Team onto Orion. It sits in a EAR file which
> within it has a Team.jar file. The JAR file contains the following:
> Team.class -  ( remote interface )
> TeamHome.class - ( home interface )
> TeamEJB - ( EJB )
> ejb-jar.xml - ( deployment descriptor )
> 
> I then created a team-client.jar which consists of the following:
> TeamClient.class - ( client )
> application-client.xml - ( client xml )
> 
> In my TeamClient I attempt to connect to the TeamEJB as follows:
> Context ic  = new InitialContext();
> Object  obj = ic.lookup( "TeamBean" );
> _TeamHome   = ( TeamHome )PortableRemoteObject.narrow( obj,
> TeamHome.class );
> 
> 
> 
> 
> 
> When I try to run the client I get the following message:
> javax.naming.NamingException: Error reading application-client descriptor:
> No location specified and no suitable instance of the type 'Team' found for
> the ejb-ref TeamBean
> at
> com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext
> (JAX, Compiled Code)
> at
> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)
> at
> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
> at javax.naming.InitialContext.init(InitialContext.java:226)
> at javax.naming.InitialContext.(InitialContext.java:182)
> at TeamRandomTrade.main(TeamRandomTrade.java, Compiled Code)
> 
> 
> Can you or anyone please advise as to what I am doing wrong?
> 
> Thanks in advance.
> -Danno
> 
> 
> 
> The ejb-jar.xml looks as follows:
> 
> 
>  JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
> 
> 
>   no description
>   TeamEJB
>   
> 
>   no description
>   TeamBean
>   TeamBean
>   TeamHome
>   Team
>   TeamEJB
>   Bean
>   java.lang.Integer
>   False
>   
>  A description for ResourceRefName
>  jdbc/SF
>  javax.sql.DataSource
>  Container
>   
> 
>   
> 
> 
> 
> 
> My application-client.xml file looks as follows:
> 
>  Application Client 1.2//EN"
> "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd">
> 
>  SportsFund
>  
>  
>   TeamBean
>   Session
>   TeamHome
>   Team
>  
> 
> 
> 





RE: Client application Please Help

2000-10-06 Thread Frank Eggink

I bet you'll have to change ic.lookup("TeamBean") in to 
ic.lookup("comp:/java/env/TeamBean"), a bit depending on what's defined in 
your *.xml files.

These files define the name under which the bean gets registered. 
"comp:/java/env/" is a fixed? prefix.

Frank

On Thursday, October 05, 2000 7:18 PM, Daniel C. DiCesare 
[SMTP:[EMAIL PROTECTED]] wrote:
> Frank,
> I checked out your example but I am continuing to experience problems. 
Here
> is what I have. I have included the script for my xml files below.
>
> I have deployed an EJB called Team onto Orion. It sits in a EAR file 
which
> within it has a Team.jar file. The JAR file contains the following:
> Team.class -  ( remote interface )
> TeamHome.class - ( home interface )
> TeamEJB - ( EJB )
> ejb-jar.xml - ( deployment descriptor )
>
> I then created a team-client.jar which consists of the following:
> TeamClient.class - ( client )
> application-client.xml - ( client xml )
>
> In my TeamClient I attempt to connect to the TeamEJB as follows:
> Context ic  = new InitialContext();
> Object  obj = ic.lookup( "TeamBean" );
> _TeamHome   = ( TeamHome )PortableRemoteObject.narrow( obj,
> TeamHome.class );
>
>
>
>
>
> When I try to run the client I get the following message:
> javax.naming.NamingException: Error reading application-client 
descriptor:
> No location specified and no suitable instance of the type 'Team' found 
for
> the ejb-ref TeamBean
> at
> 
com.evermind.server.ApplicationClientInitialContextFactory.getInitialCon  
text
> (JAX, Compiled Code)
> at
> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)
> at
> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
> at javax.naming.InitialContext.init(InitialContext.java:226)
> at javax.naming.InitialContext.(InitialContext.java:182)
> at TeamRandomTrade.main(TeamRandomTrade.java, Compiled Code)
>
>
> Can you or anyone please advise as to what I am doing wrong?
>
> Thanks in advance.
> -Danno
>
>
>
> The ejb-jar.xml looks as follows:
>
> 
>  JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
>
> 
>   no description
>   TeamEJB
>   
> 
>   no description
>   TeamBean
>   TeamBean
>   TeamHome
>   Team
>   TeamEJB
>   Bean
>   java.lang.Integer
>   False
>   
>  A description for ResourceRefName
>  jdbc/SF
>  javax.sql.DataSource
>  Container
>   
> 
>   
> 
>
>
>
> My application-client.xml file looks as follows:
> 
>  Application Client 1.2//EN"
> "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd">
> 
>  SportsFund
>  
>  
>   TeamBean
>   Session
>   TeamHome
>   Team
>  
> 
> 




Problem with atm example on orion1.3.8

2000-10-06 Thread Truong Di Ly

Hi,
first, can i run atm without an JMS server.
I know nothing about JMS.
I tried without a JMS server and got this 

javax.servlet.jsp.JspException:
NamingException:
com.acme.atm.ejb.AccountOwnerManager not found

Thanks in advance!
Di




LogicalDriverManagerXAConnection not closed

2000-10-06 Thread Jaco van Rooijen

I am developing against the stable 1.3.8

I get an output stating:
LogicalDriverManagerXAConnection not closed, check your code!
Created at:
java.lang.Throwable: OrionCMTConnection created
at com.evermind.sql.ai.(JAX)
at com.evermind.sql.OrionCMTDataSource.getConnection(JAX)
at com.agri24.data.LegalEntityBean.getConnection(LegalEntityBean.java:843)
at com.agri24.data.LegalEntityBean.ejbFindByAgri24ID(LegalEntityBean.java:463)
at 
LegalEntityHome_EntityHomeWrapper55.findByAgri24ID(LegalEntityHome_EntityHomeWrapper55.java:1122)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.bd.run(JAX)
at com.evermind.server.rmi.bb.hy(JAX)
at com.evermind.server.rmi.bb.run(JAX)
at com.evermind.util.f.run(JAX)

LegalEntityBean.java:843 says - 
  Connection newConn = 
((javax.sql.DataSource)ctx.lookup("java:comp/env/jdbc/LegalEntityDataSource")).getConnection();
  
The call goes through, but the console has this exception on it.  What does that mean?

Regards
Jaco





RE: Run Orion as a daemon in Linux

2000-10-06 Thread Frank Eggink

Check 'man nohup'. A line like 'nohup (cd ; java -jar orion.jar) 
&' in a file called /etc/rc.d/boot.local will do the trick, a bit quick and 
sirty though.

In the /etc/rc.d directory you'll find a lot of startup scripts to start an 
stop services. To integrate it even better in your system-administration 
you can copy one of those scripts and create one special for orion (i 
haven't created one yet). In that case you can setup your system for 
instance only to run orion when the system runs in network mode (e.g. init 
level 2 or 3 for SuSE).

Frank


On Friday, October 06, 2000 12:51 AM, Sean Han [SMTP:[EMAIL PROTECTED]] 
wrote:
>  << File: ATT1.txt; charset = big5 >> 




RE: WinNT 4, SP5/6 and Orion consistently crashing..

2000-10-06 Thread Robert Hargreaves

Kevin,

We had regular (once a day) Dr Watsons when using Orion 1.2.9 on SP6 and
JDK1.2.2. We switched to JDK1.3 a couple of weeks ago and the problem has
gone away.

Regards,
Rob Hargreaves


-Original Message-
From: Duffey, Kevin [mailto:[EMAIL PROTECTED]]
Sent: 04 October 2000 23:10
To: Orion-Interest
Subject: WinNT 4, SP5/6 and Orion consistently crashing..


Hi all,

I am not sure why..but it appears that Orion 1.2.9 (and 1.3.7) crashes
whenever we "remote" into our server to do some work on it. We have NT4 with
SP5 on one machine, and SP6 on another. I have Orion using run_as_service to
put it in as a service. Even when I run it as an application, this happens.
It seems to work fine for a while, then it crashes. I know our code is bad,
but it seems to me with only 4 people using the thing for testing, it should
be fine. Has anyone been experiencing problems with Orion crashing on NT
with SP5 or SP6? Does the remote access do something to the JVM? Its using
JDK 1.2.2-05 JRE.

On the subject..does anyone know of a Win2K program that will put Java apps
as services? The run_as_service doesn't appear to work..keeps giving some
i/o problem.

Thanks.




access MailSession from outside the orion server

2000-10-06 Thread aloe_vera

I have created a stand-alone admin component outside the orion server, which use the 
MailerEJB functions to send emails. An exception will be thrown in MailHelper when I 
start running the stand-alone admin program, which is "java:com\env\mail\MailSession 
not found".
here is  tag in ejb-jar.xml and web.xml

mail/MailSession
javax.mail.Session


and here is  tag in server.xml






Is anything missed? Kindly please reply this message.




___
http://www.SINA.com - #1 Destination Site for Chinese Worldwide