Re: Orion 0.9.6 [was: Re: Error in ejbPassivate: java.lang.InternalError: Werent current caller]

2000-04-11 Thread James Birchfield

run 'java -jar autoupdate.jar' in the orion directory to update.
- Original Message -
From: Garret Wilson [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Tuesday, April 11, 2000 10:51 AM
Subject: Orion 0.9.6 [was: Re: Error in ejbPassivate:
java.lang.InternalError: Werent current caller]


 - Original Message -
 From: Jens Stutte [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Sent: Tuesday, April 11, 2000 5:53 AM
 Subject: Error in ejbPassivate: java.lang.InternalError: Werent current
 caller


  i tried out orion 0.9.6. I still have a problem with beans calling other

 Where is everyone getting 0.9.6? The latest at www.orionserver.com that I
 can find is 0.9.4.

 Furthermore, has anyone at Orion (or anyone else) seen the auto-reload
 problems I reported earlier?

 Thanks,

 Garret Wilson
 GlobalMentor, Inc.








Context Problems...

2000-04-01 Thread James Birchfield

Probably a newbie question, but I am trying to access a session beean
from within a web page.  I want to be able to use this from any server,
so I am trying to avoid using the custom EJB tag library.  I have this
in the top of the JSP:

%@ page import="com.es.ejb.Operator.OperatorHome" %
%@ page import="javax.ejb.*" %
%@ page import="javax.naming.*" %
%@ page import="javax.rmi.*" %
%@ page import="javax.sql.DataSource" %
jsp:useBean id="search" scope="page" class="Search" /
jsp:setProperty name="search" property="*" /
 
html
head
titleSearch Results/title
/head
%
Context context = new InitialContext();
System.out.println("Created context...");
OperatorHome ohome =
(OperatorHome)PortableRemoteObject.narrow(context.lookup("java:comp/env/ejb/Operator"),
OperatorHome.class);
%  


I get this error:

javax.naming.NamingException: Error instantiating web-app JDNI-context:
Unknown resource type: java.sql.Datasource
at
com.evermind.server.http.HttpApplication.getEnvironmentContext(JAX,
Compiled Code)
at com.evermind.server.fu.lookup(JAX, Compiled Code)
at javax.naming.InitialContext.lookup(InitialContext.java,
Compiled Code)
at __jspPage21._jspService(__jspPage21.java:56)
at com.evermind.server.http.EvermindHttpJspPage.service(JAX,
Compiled Code)
at com.evermind.server.http.HttpApplication.pk(JAX, Compiled
Code)
at com.evermind.server.http.JSPServlet.service(JAX, Compiled
Code)
at com.evermind.server.http.c1.l_(JAX)
at com.evermind.server.http.c1.forward(JAX)
at com.evermind.server.http.dc.ca(JAX)
at com.evermind.util.b.run(JAX, Compiled Code)


Any ideas anyone?  The news-app works fine for me.

Jim




null's in the auto create of an entity bean

2000-03-31 Thread James Birchfield

When my entity bean is getting the table auto-created, I get some null's
showing up.  I am using the example that was posted to this site a few
days ago as a test.  Following is what I get as an error:

Auto-deploying ejb...
Auto-creating table: create table Person (name char(255) not null
primary key, nick char(255) null, description char(255) null, phone
char(255) null)
Warning: Error creating table: ERROR:  parser: parse error at or near
"null"
 
done.
Orion/0.9.4 initialized   


Where are the null's coming from?

I'll be happy to post the rest of the code if it would help...

Jim




Re: null's in the auto create of an entity bean

2000-03-31 Thread James Birchfield

Never mind.  I changed the databases-schemas/postgresql.xml file and
took out the null="null" and changed it null="".  It works, but nmot
sure of the consequences...

Jim

James Birchfield wrote:
 
 When my entity bean is getting the table auto-created, I get some null's
 showing up.  I am using the example that was posted to this site a few
 days ago as a test.  Following is what I get as an error:
 
 Auto-deploying ejb...
 Auto-creating table: create table Person (name char(255) not null
 primary key, nick char(255) null, description char(255) null, phone
 char(255) null)
 Warning: Error creating table: ERROR:  parser: parse error at or near
 "null"
 
 done.
 Orion/0.9.4 initialized
 
 Where are the null's coming from?
 
 I'll be happy to post the rest of the code if it would help...
 
 Jim