about classpath and other stuff

2000-07-31 Thread Mario Pérez de Blanca



Hi all
When i try to run the examples such as news or atm 
i get the following exception:
 
java.lang.ExceptionInInitializerError: org.omg.CORBA.INITIALIZE: cannot instantiate com.netscape.ejb.client.Util  minor code: 0  completed: No
	at javax.rmi.CORBA.Util.createDelegateIfSpecified(Util.java:308)
	at javax.rmi.CORBA.Util.(Util.java:54)
	at javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemoteObject.java:182)
	at javax.rmi.PortableRemoteObject.(PortableRemoteObject.java:62)
	at com.evermind.ejb.taglib.UseHomeTag.doStartTag(UseHomeTag.java:30)
	at /news.jsp._jspService(/news.jsp.java:47) (JSP page line 5)
	at com.evermind.server.http.EvermindHttpJspPage.service(JAX)
	at com.evermind.server.http.HttpApplication.t5(JAX)
	at com.evermind.server.http.JSPServlet.service(JAX)
	at com.evermind.server.http.di.pw(JAX)
	at com.evermind.server.http.di.forward(JAX)
	at com.evermind.server.http.dr.p1(JAX)
	at com.evermind.server.http.dr.p0(JAX)
	at com.evermind.util.f.run(JAX)
Also i have problems with some tag classes. where should utiltags be exactly ? TIA Mario


RE: EJB MAKER

2000-07-31 Thread Magnus Rydin
Title: RE: EJB MAKER





Hi Kirk.
Try to expand the tools work-area as much as possible.
WR


> -Original Message-
> From: KirkYarina [mailto:[EMAIL PROTECTED]]
> Sent: den 31 juli 2000 23:19
> To: Orion-Interest
> Subject: Re: EJB MAKER
> 
> 
> Where does the dependent's section mentioned in the tutorial 
> come from?  I 
> have been unable to make this section appear.
> 
> Kirk Yarina
> 
> At 09:48 PM 7/31/00 +0200, you wrote:
> >Hello David
> >
> >David Sierra Fernandez wrote:
> >
> > > Anyone has used the ejbmaker graphical tool???
> > >
> > > I think it is used to map a entity bean to a table in a 
> DB or to generate
> > > the code of a entity bean but i'm not sure???
> > >
> >
> >It is used to generate Entity Beans quickly, there is a 
> tutorial about it at
> >http://www.orionserver.com/toolstut/lesson1/
> 
> 
> 





transaction difficulties - solved!

2000-07-31 Thread eml

I figured out my little transaction problem. The problem was that in
the ejb-jar.xml file I had this:

...



Category
*
Supports


...

every time I called the 'ejbCreate' for that entity bean, orion
started a new transaction - not what I was looking for! The following
worked, though:

...


Category
*
Supports

...

I just removed the '' tag. I'm not entirely sure how that tag
fits in - the orion documentation skips it, and it wasn't really
discussed in my EJB book. Matter of fact, I can't find documentation
for it anywhere anybody know where the dtd+description is?

Eric...




ejb client problem

2000-07-31 Thread Adam Cassar

would anyone have any idea what this exception means?

err: java.lang.ClassCastException: __Proxy2

The error occurs when I call the home create method.


-- 

Adam Cassar
Senior Web Developer
___
NetRegistry http://www.netregistry.au.com
Tel: +61 2 9699 6099 | Fax: +61 2 9699 6088
PO Box 270 Broadway NSW 2007 Australia





Mapping CMP fields to db columns

2000-07-31 Thread John Sinnott

How do I specify the mapping between a CMP bean's fields and a database
table's columns.  I have already setup ejb-jar.xml to properly specify what
fields of the bean will be container managed.  Now I just need to map them
to the database columns.

Thanks,
John Sinnott





failed transaction problem - new entity bean not erased

2000-07-31 Thread eml

Hi everybody -
 I've got a session bean that creates a new entity bean, pushes some
things around in the database, then [on purpose] throws an
EJBException to rollback the transaction. When I look at the database,
I see that all the stuff the session bean did to the database has been
[correctly] rolled back, but the entity bean that was created during
the transaction hasn't been removed from the database. Is this proper
behavior?

The session bean is stateless and declared as doing bean managed
transactions. The session bean 'requires' a transation for all method
calls. The UserTransaction.begin() method is called before creating
the entity bean. The entity bean does BMP, declares itself as
Container managed transactions, and 'supports' transactions.

I've been able to retrieve one of these entity beans, modify it's
contents, then rollback the transaction and that works perfectly.

I threw in some debugging statements, and the 'ejbRemove' method is
never called for the entity bean - shouldn't it do that after the
transaction is rolled back? I'm actually surprised it wasn't rolled
back, because I'm using the DefaultEJBDS. Should I be creating a
UserTransaction object for the entity bean and wrapping all operations
within begin() and end() calls?

Eric...




Re: EJB MAKER

2000-07-31 Thread KirkYarina

Where does the dependent's section mentioned in the tutorial come from?  I 
have been unable to make this section appear.

Kirk Yarina

At 09:48 PM 7/31/00 +0200, you wrote:
>Hello David
>
>David Sierra Fernandez wrote:
>
> > Anyone has used the ejbmaker graphical tool???
> >
> > I think it is used to map a entity bean to a table in a DB or to generate
> > the code of a entity bean but i'm not sure???
> >
>
>It is used to generate Entity Beans quickly, there is a tutorial about it at
>http://www.orionserver.com/toolstut/lesson1/






Clients

2000-07-31 Thread Daniel Beauregard

Do i need to change any settings from the primer's example of Hello when i
am trying to call it from a client??
Is there anything special i need in the client to run in the first place??

thanks
db






RMI

2000-07-31 Thread Daniel Beauregard

Everytime i start the server after adding:





to my rmi.xml, it just hangs meaning it does not say Orion 1.0.3 initialized
and my hello example stops working

What i am trying to do is make an client for the Hello example but the JNDI
context keeps prompting me for an ormi:URL

and user and password which i have no clue to what they are???




Please help



thanks

db







Re: EJB MAKER

2000-07-31 Thread Karl Avedal

Hello David

David Sierra Fernandez wrote:

> Anyone has used the ejbmaker graphical tool???
>
> I think it is used to map a entity bean to a table in a DB or to generate
> the code of a entity bean but i'm not sure???
>

It is used to generate Entity Beans quickly, there is a tutorial about it at
http://www.orionserver.com/toolstut/lesson1/

>
>
> To ORION TEAM:
>
> Where are the promissed improvements in doc??
> Are you on holidays??
>

We are constantly working on improving documentation, and there is a new
batch coming out in a few weeks, but as I am sure you understand, it is not
our only priority. We are still behind on the support side so documentation
time has sometimes become support time, and our new support system has been
delayed.

But we will get there :)

Regards,
Karl Avedal





RFI: Why deploy java client applications?

2000-07-31 Thread Erwin Brinkhuis

Hi all,

Maybe this is a stupid question, but I'm confused here.

Why should I deploy a java client application?

If I write a java client application I can access an EJB home interface stub
using the InitialContext and a lookup. If I want to actually execute a home
interface method,  I need the home interface class so I can narrow the stub
object.

After that i can create, remove etc EJB instances and to do so I need the
remote interface class.

So, as I see it now I could write a standalone java client application and
only need the home and remote interface classes (and libs like j2ee.jar of
course).

So why should I deploy the java client application on the server?

Everybody is doing it, so I guess I'm overlooking something? Is there
someone out there who's willing to explain it to me? The literature I read
was not very clear on all this.

TIA,

Erwin Brinkhuis





Postgres and Orion with big data

2000-07-31 Thread Lorin Kobashigawa

I am using Postgres as my datasource in orion to store data about a large
content-heavy site.  The CMP mappings are working great, and everything was
very straitforward to set up.  Definate props to the mailing list archives.
 Almost every question i've had has been answered at some point or another.

My problem:
I've been reading the PostGres documentation, and apparently there is an 8k
limit on row size.  My site is made up of large articles, some of which are
up to about 20k in size.

They generally recommend using pointers to flatfiles in the database and
storing the data on the filesystem.  Leaving aside that this seems like a
lame solution, I have no idea if that's possible with CMP.  What is the
reccomended solution for large text objects in Orion?

Thanks.
-Lkb


/** 
 * @author: Lorin Kobashigawa-Bates <[EMAIL PROTECTED]>
 * @title:  CodeMonkey / COO - Robot6 Inc. 
 * @phone:  415.345.8872
 * @addr:   1177 Polk St. San Francisco, CA 94109
 */




Starting Orion server programatically

2000-07-31 Thread Vidur Dhanda

Hello,

Could someone please point out what I'm doing wrong.  I'm sure I'm
missing something really simple here.  I can't get an Orion server to
run under program control and do some application specific
initialization.  I'm inlining some simplified code and output.

Thanks,
Vidur

import javax.naming.*;
import com.evermind.server.*;

public class Server {
public static void main(String[] args) {
try {
ApplicationServer.main(new String[] {"-userThreads"});
Context ctx = new InitialContext();
ctx.lookup ("foo");
}
catch (Exception ex) {
ex.printStackTrace();
System.err.println("Exiting ...");
System.exit (0);
}
}
}

The output is:
Orion/1.1.37 initialized
javax.naming.NamingException: Not in an application scope - start Orion
with the -userThreads switch if using user-created threads
 at com.evermind.server.f9.bh(JAX)
 at com.evermind.naming.i1.lookup(JAX)
 at javax.naming.InitialContext.lookup(InitialContext.java:350)
 at com.epistemic.km.server.Server.main(Server.java:11)
Exiting ...







Re: Error starting HTTP-Server: Permission denied

2000-07-31 Thread Mattias Arbin




> Mattias Arbin wrote:
>
> > I am trying to setup a linux user (Red Hat 6.2) to run orion.
> > When starting Orion I get the error:
> >
> > Error starting HTTP-Server: Permission denied
> > Orion/1.1.37 initialized
> >
> > Nothing in the logs.
> >
> > Any ideas?
> >
> > /Mattias
>
> Hi Mattias,
>
> Normally, that happens when you're trying to launch orion without root
> privileges. Ports below 1024 are reserved and can only be bound by
> root-owned programs.
> There are several solutions, but the easiest is to choose:
>
> 1 - You want Orion to listen to port 80 (the standard http port) and so
> you must launch it on a root prompt
> 2 - You don't mind if Orion does not listen to other port (say, for
> instance, 8080), but you want to launch it from an ordinary user
> account. In this case, you must edit the
> /config/default-web-site.xml
> and on the  port="8080".
>
> In theory either one of these solutions, will make the permission denied
> error go away
>
> Best Regards,
>
> Fábio

Thanks. That explains the error.
However, my problem was not that I could't start Orion. I have run it as
root until now.
I just thought that it might be good, for security reasons, to create a user
with
less priviliges than root, to run Orion.

/Thanks,
Mattias






Re: new to orion datasources one simple question

2000-07-31 Thread Robert Krueger

At 09:06 31.07.00 , Nick Newman wrote:
>Hi Robert,
>
>I certainly don't claim to fully understand, but it is my belief (from
>previous mailings - including from the Orion developers) that you should
>always be using the ejb-location.  So why are the others there? I don't 
>know..!

if you need an XADatasource (which you probably never will as an 
application programmer) you use the xa-location, if you don't need a 
datasource that is registered with a tm but still is pooled you use tha 
pooled-location etc.. they all server different purposes. if you only 
access your db via ejb you will probably only need the ejb-location.

robert

>Nick Newman, SCIENTECH Inc
>
>At 07:32 PM 7/30/00 -0400, you wrote:
> >Hi, I am using a JDBC 2.0 driver and configured the data-sources.xml with
> >this driver.
> >
> >I want to know which JNDI location I should be looking up to getConnection()
> >in my application to use connection pooling - these are the choices:
> >
> >location="jdbc/DefaultDS"
> >pooled-location="jdbc/DefaultPooledDS"
> >xa-location="jdbc/xa/DefaultXADS"
> >ejb-location="xx"
> >
> >Could someone explain when you use each of these contexts for a 2.0 driver.
> >I'm especially confused about using location or pooled-location contexts.
> >
> >
>

(-) 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: new to orion datasources one simple question

2000-07-31 Thread Robert Krueger

At 09:06 31.07.00 , Nick Newman wrote:
>Hi Robert,
>
>I certainly don't claim to fully understand, but it is my belief (from
>previous mailings - including from the Orion developers) that you should
>always be using the ejb-location.  So why are the others there? I don't 
>know..!

if you need an XADatasource (which you probably never will as an 
application programmer) you use the xa-location, if you don't need a 
datasource that is registered with a tm but still is pooled you use tha 
pooled-location etc.. they all server different purposes. if you only 
access your db via ejb you will probably only need the ejb-location.

robert

>Nick Newman, SCIENTECH Inc
>
>At 07:32 PM 7/30/00 -0400, you wrote:
> >Hi, I am using a JDBC 2.0 driver and configured the data-sources.xml with
> >this driver.
> >
> >I want to know which JNDI location I should be looking up to getConnection()
> >in my application to use connection pooling - these are the choices:
> >
> >location="jdbc/DefaultDS"
> >pooled-location="jdbc/DefaultPooledDS"
> >xa-location="jdbc/xa/DefaultXADS"
> >ejb-location="xx"
> >
> >Could someone explain when you use each of these contexts for a 2.0 driver.
> >I'm especially confused about using location or pooled-location contexts.
> >
> >
>

(-) 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





Resource temporarily unavailable

2000-07-31 Thread Joel Shellman

Can you give me some insight on what the following batch of exceptions
could mean and how I can fix it? It appears that this or something
related to this is bringing our site down twice or so daily.


00/07/31 08:20:04:766 [ID:10 *ERROR_SYSTEM*] RemoteException calling
((AuctionHome)EJBUtil.getEJBHome(AuctionHome  
.JNDI_NAME)).findByAuctionID(...)
com.evermind.server.rmi.OrionRemoteException: SQL Error opening
DataSource: Io exception: Resource temporarily unavailable: Resource
temporarily unavailable
at
com.evermind.server.ejb.DataSourceConnectionContainer.getConnection(JAX)
at
com.ants.ejb.session.bid.BidSessionBean.postBid(BidSessionBean.java:195)
at com.ants.pres.po.bid.Post.postBid(Post.java:213)
at com.ants.pres.po.bid.Post.run(Post.java:113)
at com.ants.pres.po.BasePO.service(BasePO.java:130)
at com.ants.pres.po.SuperServlet.service(SuperServlet.java:370)
at com.evermind.server.http.dr.p1(JAX)
at com.evermind.server.http.dr.p0(JAX)
at com.evermind.util.f.run(JAX)
java.sql.SQLException: Io exception: Resource temporarily unavailable:
Resource temporarily unavailable
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at com.evermind.sql.an.setTransactionIsolation(JAX)
at com.evermind.sql.an.setTransactionIsolation(JAX)
at com.evermind.server.ejb.DataSourceConnection.(JAX)
at
com.evermind.server.ejb.DataSourceConnectionContainer.getConnection(JAX)
at
com.ants.ejb.session.bid.BidSessionBean.postBid(BidSessionBean.java:195)
at com.ants.pres.po.bid.Post.postBid(Post.java:213)
at com.ants.pres.po.bid.Post.run(Post.java:113)
at com.ants.pres.po.BasePO.service(BasePO.java:130)
at com.ants.pres.po.SuperServlet.service(SuperServlet.java:370)
at com.evermind.server.http.dr.p1(JAX)
at com.evermind.server.http.dr.p0(JAX)
at com.evermind.util.f.run(JAX)
com.evermind.server.rmi.OrionRemoteException: SQL Error opening
DataSource: Io exception: Resource temporarily
un   available: Resource temporarily
unavailable
at
com.evermind.server.ejb.DataSourceConnectionContainer.getConnection(JAX)
at
com.ants.ejb.session.bid.BidSessionBean.postBid(BidSessionBean.java:195)
at com.ants.pres.po.bid.Post.postBid(Post.java:213)
at com.ants.pres.po.bid.Post.run(Post.java:113)
at com.ants.pres.po.BasePO.service(BasePO.java:130)
at com.ants.pres.po.SuperServlet.service(SuperServlet.java:370)
at com.evermind.server.http.dr.p1(JAX)
at com.evermind.server.http.dr.p0(JAX)
at com.evermind.util.f.run(JAX)
java.sql.SQLException: Io exception: Resource temporarily unavailable:
Resource temporarily unavailable
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at com.evermind.sql.an.setTransactionIsolation(JAX)
at com.evermind.sql.an.setTransactionIsolation(JAX)
at com.evermind.server.ejb.DataSourceConnection.(JAX)
at
com.evermind.server.ejb.DataSourceConnectionContainer.getConnection(JAX)
at
com.ants.ejb.session.bid.BidSessionBean.postBid(BidSessionBean.java:195)
at com.ants.pres.po.bid.Post.postBid(Post.java:213)
at com.ants.pres.po.bid.Post.run(Post.java:113)
at com.ants.pres.po.BasePO.service(BasePO.java:130)
at com.ants.pres.po.SuperServlet.service(SuperServlet.java:370)
at com.evermind.server.http.dr.p1(JAX)
at com.evermind.server.http.dr.p0(JAX)
at com.evermind.util.f.run(JAX)

Thanks,
-- 
Joel Shellman
Chief Software Architect
The virally-driven B2B marketplace for outsourcing projects
http://www.ants.com/90589781




EJB COMPILATION

2000-07-31 Thread David Sierra Fernandez


When I compile my beans I use a similar bat that in J2EE server
implementation:

set ORION=C:\orion
set CPATH=.;%ORION%\orion.jar;%ORION%\ejb.jar;%ORION%\jndi.jar;
javac -classpath %CPATH% AgendaSClient.java 


Am I correct or should I use a different classpath
Any other way of compilate my beans or servlets???


THANK YOU !!

-
David Sierra Fern ndez
Ingeniero Tecnico de Telecomunicaci¢n
AULA RETECAL (CEDETEL)   Universidad de Valladolid
Campus Miguel Delibes   E-Mail: [EMAIL PROTECTED]
47011 Valladolid (SPAIN)
--

 -- Sierr@ --





Re: Did someone get roles working ? How about Web Single Signon?

2000-07-31 Thread Nick Newman

Hi David,

I share some of your concern over this single-signon issue.  I too read the
specs and believe that they imply just what you say.  The best I can offer
as a solution today, however, is what I have already mentioned; use BASIC
authentication, and specify the SAME  for every web-app of
interest.  With that arrangment, the user will have to sign-on only once.

As for the other user manager classes, I don't have any source of
information other than the Orion-API section of the Orion docs.

Nick Newman, SCIENTECH Inc

At 11:09 AM 7/31/00 -0400, you wrote:
>
>>- With FORM authentication, the browser does NOT know that authentication
>>has been requested - it simply serves the login form like any other. That
>>means that it cannot re-send the login information for you. It is also my
>>belief that the session information (in which the authentication
>>information is stored on the server side) cannot be shared between
>>different apps /web-apps. (The "shared" option refers to sharing session
>>information between sites that serve the SAME web-app.) This means that
>>users will have to log-on to every app individually.
>
>According to the spec, "Web Single Signon" as specified in the J2EE 
>bluprints, Page 3-13.  It requires that the same login session represents a 
>user to all the applications that they access.  Can this be done for a 
>single web-site/multiple applications.instead of multiple web-sites and 
>applications?  I thought servers are required to support this.
>
>>- Also note that usernames and passwords do not HAVE to be supplied in the
>>principals.xml file. The Orion team has supplied methods to obtain them
>>from a database or from some other system via entity beans. Check the
>>different user managers for these features.
>>I hope this helps. Since it may be of interest to others I have copied it
>>to a few other groups. Hope you don't mind.
>
>I've noticed these classes, but have no idea how to use them.is there 
>documentation I don't know about?  Or should I just know from reading the 
>spec?  Most of the spec/blueprints is just theory w/some xml config.can 
>you write the steps, including modifications to all XML files..and how to 
>use the UserManger's?
>
>I'm really frustrated right now trying to get all my sites to work with a 
>single login and not making the user have to log in over and over.
>
>David





Re: "Wrapping" orion around an existing database

2000-07-31 Thread Nick Newman

Hi Jason,

The EJB 1.1 specs do not specify how, or even if, an entity bean can be
mapped on to an existing database.  So I guess the answer is no, there is
no correct way (nor incorrect way).  Changing the persistent field names in
the orion-ejb-jar.xml seems to be the best (only?) way to do it in Orion.

Nick Newman, SCIENTECH Inc

At 08:31 PM 7/30/00 -0700, you wrote:
>I'm looking into using orion to talk with a mySQL database that already
>exists (actually will exist).  Is there a 'correct' way to map EJB's to
>existing tables (or any tools)?  Or do I just create EJB's with the same
>name(s) and have persistent members that match the names of the existing
>table fields?
>
>Example table below:
>
>CREATE TABLE news
> (
> title TEXT NOT NULL,
> linktext TEXT,
> sm_date VARCHAR(12) NOT NULL,
> sm_time TIME NOT NULL,
> ctprovider VARCHAR(255),
> copyright VARCHAR(255),
> author VARCHAR(255),
> body TEXT NOT NULL,
> photo_count VARCHAR(12),
> doc_id VARCHAR(255),
> rev_id INT,
> abstract TEXT,
> filter VARCHAR(255) NOT NULL,
> id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
>)
>
>Thanks
>
>Jason Amy
>[EMAIL PROTECTED]
>





EJB MAKER

2000-07-31 Thread David Sierra Fernandez


Anyone has used the ejbmaker graphical tool???

I think it is used to map a entity bean to a table in a DB or to generate
the code of a entity bean but i'm not sure???

I fill in the fields with a example entity bean but I don't know what to
do with the resulting file 

Any ideas ? THANK YOU



To ORION TEAM:


Where are the promissed improvements in doc??
Are you on holidays??

-
David Sierra Fern ndez
Ingeniero Tecnico de Telecomunicaci¢n
AULA RETECAL (CEDETEL)   Universidad de Valladolid
Campus Miguel Delibes   E-Mail: [EMAIL PROTECTED]
47011 Valladolid (SPAIN)
--

 -- Sierr@ --





Re: Did someone get roles working ? How about Web Single Signon?

2000-07-31 Thread David Morton


>- With FORM authentication, the browser does NOT know that authentication
>has been requested - it simply serves the login form like any other. That
>means that it cannot re-send the login information for you. It is also my
>belief that the session information (in which the authentication
>information is stored on the server side) cannot be shared between
>different apps /web-apps. (The "shared" option refers to sharing session
>information between sites that serve the SAME web-app.) This means that
>users will have to log-on to every app individually.

According to the spec, "Web Single Signon" as specified in the J2EE 
bluprints, Page 3-13.  It requires that the same login session represents a 
user to all the applications that they access.  Can this be done for a 
single web-site/multiple applications.instead of multiple web-sites and 
applications?  I thought servers are required to support this.

>- Also note that usernames and passwords do not HAVE to be supplied in the
>principals.xml file. The Orion team has supplied methods to obtain them
>from a database or from some other system via entity beans. Check the
>different user managers for these features.
>I hope this helps. Since it may be of interest to others I have copied it
>to a few other groups. Hope you don't mind.

I've noticed these classes, but have no idea how to use them.is there 
documentation I don't know about?  Or should I just know from reading the 
spec?  Most of the spec/blueprints is just theory w/some xml config.can 
you write the steps, including modifications to all XML files..and how to 
use the UserManger's?

I'm really frustrated right now trying to get all my sites to work with a 
single login and not making the user have to log in over and over.

David





Re: new to orion datasources one simple question

2000-07-31 Thread Nick Newman

Hi Robert,

I certainly don't claim to fully understand, but it is my belief (from
previous mailings - including from the Orion developers) that you should
always be using the ejb-location.  So why are the others there? I don't know..!

Nick Newman, SCIENTECH Inc

At 07:32 PM 7/30/00 -0400, you wrote:
>Hi, I am using a JDBC 2.0 driver and configured the data-sources.xml with
>this driver.
>
>I want to know which JNDI location I should be looking up to getConnection()
>in my application to use connection pooling - these are the choices:
>
>location="jdbc/DefaultDS"
>pooled-location="jdbc/DefaultPooledDS"
>xa-location="jdbc/xa/DefaultXADS"
>ejb-location="xx"
>
>Could someone explain when you use each of these contexts for a 2.0 driver.
>I'm especially confused about using location or pooled-location contexts.
>
>





Re: HELP: Transaction was rolled back: timed out

2000-07-31 Thread Nick Newman

Hi Vidur,

I think that your problem stems from the specifications themselves.  See
the EJB1.1 spec section 9.1.11 about concurrent access to an entity bean.

As a work-around, you could perhaps copy the information from the entity
bean to a normal bean, and share that.

Nick Newman, SCIENTECH



At 04:53 AM 7/30/00 -0400, you wrote:
>Hello,
>
>I need help in working around this exception.  Here's the scenario.  In
>a stateful session bean, a particular method takes several seconds (and
>maybe even a minute or so) to execute.  While executing it _reads_
>another entity bean.  The session bean is marked "transaction required"
>and uses the default isolation setting.  At any given time, there are
>several such session beans executing.
>
>My understanding is that since Orion does not support optimistic
>concurrency, the entity bean is "locked" by the first session while it
>is executing.  Hence, any other session can not read the entity bean
>till the first session completes.  Is my understanding correct?  How can
>I workaround this?  Is there a more general pattern I can use for
>allowing multiple clients concurrent read-only access to the entity
>beans?
>
>Thanks,
>Vidur





PASSIVATE !!

2000-07-31 Thread David Sierra Fernandez


 I have a problem with my beans... when I execute the client, its function
is to create some records of an entity bean through a session bean, but
when it is doing so the entity passivates without any reason cause it has
passed no time to determinate that the bean it's not being used.

This is the output of the server:

NOTA-actualizarNota:Fijado parametro hora
NOTA-actualizarNota:Fijado parametro id_generador_nota
NOTA-actualizarNota:Fijado parametro id_nota
NOTA-ejbPassivate
com.evermind.transaction.MarshallingXAException
at com.evermind.server.ejb.EntityEJBObject.g2(JAX)
at com.evermind.server.ApplicationServerTransaction.commit(JAX,
Compiled
 Code)
at com.evermind.server.ApplicationServerTransaction.end(JAX)
at
StatefulSessionBeanWrapper4.introducirNotaAg(StatefulSessionBeanWrapp
er4.java, Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.a9.run(JAX)
at com.evermind.server.rmi.a7.gw(JAX, Compiled Code)
at com.evermind.server.rmi.a7.run(JAX, Compiled Code)
at com.evermind.util.e.run(JAX, Compiled Code)
NOTA-unsetEntityContext:Entramos en el método


...and in this point it hangs down.

The output of my client is:

C:\orion\APPLIC~1\Agenda\AGENDA~1>java -classpath
.;C:\orion\orion.jar;C:\orion\
ejb.jar;C:\orion\jndi.jar; AgendaSClient
Se realizo el contexto inicial
Se realizo el lookup
Se realizo el PortableRemoteObject
Se realizo metodo create de AgendaS
Lanzada una excepcion.
com.evermind.server.rmi.OrionRemoteException: Transaction was rolled
back: Error
 preparing bean instance: com.evermind.transaction.MarshallingXAException
at
StatefulSessionBeanWrapper4.introducirNotaAg(StatefulSessionBeanWrapp
er4.java, Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.a9.run(JAX)
at com.evermind.server.rmi.a7.gw(JAX, Compiled Code)
at com.evermind.server.rmi.a7.run(JAX, Compiled Code)
at com.evermind.util.e.run(JAX, Compiled Code)
at connection to localhost/127.0.0.1 as admin
at com.evermind.server.rmi.a7.invokeMethod(JAX, Compiled Code)
at com.evermind.server.rmi.az.invoke(JAX)
at com.evermind.server.rmi.a_.invoke(JAX, Compiled Code)
at __Proxy2.introducirNotaAg(Unknown Source)
at AgendaSClient.main(AgendaSClient.java:29)

Nested exception is:
com.evermind.transaction.MarshallingXAException
at com.evermind.server.rmi.OrionRemoteException.g_(JAX)
at com.evermind.server.rmi.a7.gu(JAX)
at com.evermind.server.rmi.a7.run(JAX, Compiled Code)
at java.lang.Thread.run(Thread.java:479)
Nested exception is:
javax.ejb.EJBException: NOTA-ejbStore:ORA-01407: cannot update
("JAVI"."NOTAS"."
DIA") to NULL

at NotaEJB.ejbStore(NotaEJB.java:98)
at EntityBeanWrapper2.saveState(EntityBeanWrapper2.java:1332)
at com.evermind.server.ejb.EntityEJBObject.g2(JAX)
at com.evermind.server.ApplicationServerTransaction.commit(JAX,
Compiled
 Code)
at com.evermind.server.ApplicationServerTransaction.end(JAX)
at
StatefulSessionBeanWrapper4.introducirNotaAg(StatefulSessionBeanWrapp
er4.java, Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.a9.run(JAX)
at com.evermind.server.rmi.a7.gw(JAX, Compiled Code)
at com.evermind.server.rmi.a7.run(JAX, Compiled Code)
at com.evermind.util.e.run(JAX, Compiled Code)
at connection to localhost/127.0.0.1
javax.ejb.EJBException: NOTA-ejbStore:ORA-01407: cannot update
("JAVI"."NOTAS"."
DIA") to NULL 

Why does it passivates if it has passed almost no time from the creation
of the bean

Is there any possibility to eliminate the passivate option in Orion???

What so you suggest?

THANK YOU !



-
David Sierra Fern ndez
Ingeniero Tecnico de Telecomunicaci¢n
AULA RETECAL (CEDETEL)   Universidad de Valladolid
Campus Miguel Delibes   E-Mail: [EMAIL PROTECTED]
47011 Valladolid (SPAIN)
--

 -- Sierr@ --






Any luck with virtual-hosts?

2000-07-31 Thread Dale Bronk

Anyone had any luck setting up virtual hosts?  I have multiple domains
pointing to the same IP, but I want them each to go to their own home page.
I have set up individual web-site.xml files and changed the
host="my.domain.com" and host="my.other.domain.com" and all I get is an
error at startup saying address already in use.  I assume because each host
points to the same ip.

Dale





Re: java.lang.IllegalArgumentException: shortname notspecified in TLD

2000-07-31 Thread Christian Sell

according to the JSP specs, the shortname element is NOT optional, so Orion
is right in complaining. From the spec, 5.3.5:




-Original Message-
From: Guilherme Ceschiatti <[EMAIL PROTECTED]>
To: Orion-Interest <[EMAIL PROTECTED]>
Cc: Orion-Interest <[EMAIL PROTECTED]>
Date: Montag, 31. Juli 2000 09:18
Subject: Re: java.lang.IllegalArgumentException: shortname notspecified in
TLD


>Thank you very much! It worked. But it's strange because the Sun J2EE do
>not need
>the  description.
>
>Lorin Kobashigawa wrote:
>>
>> What does your taglibrary's descriptor file look like? It looks like you
>> are missing a  description in your .tld file.
>>
>> The top of it should look something like...
>>
>> 
>> 1.0
>> 1.1
>> something
>> Unique identifier
>> a description of the tag library
>>
>> 
>> etc...
>>
>> -Lkb
>>






Re: Error starting HTTP-Server: Permission denied

2000-07-31 Thread Fabio Silva

Mattias Arbin wrote:

> I am trying to setup a linux user (Red Hat 6.2) to run orion.
> When starting Orion I get the error:
>
> Error starting HTTP-Server: Permission denied
> Orion/1.1.37 initialized
>
> Nothing in the logs.
>
> Any ideas?
>
> /Mattias

Hi Mattias,

Normally, that happens when you're trying to launch orion without root
privileges. Ports below 1024 are reserved and can only be bound by
root-owned programs.
There are several solutions, but the easiest is to choose:

1 - You want Orion to listen to port 80 (the standard http port) and so
you must launch it on a root prompt
2 - You don't mind if Orion does not listen to other port (say, for
instance, 8080), but you want to launch it from an ordinary user
account. In this case, you must edit the
/config/default-web-site.xml
and on the 


Server Console

2000-07-31 Thread Rick Bos

I have a question about the server console.

When I edit a web application with JSP files, I can edit
the JSP files right in the console if they are in the directory:
/ear/web/my.jsp.

I have put my files in 

/ear/web/jsp/my.jsp

to keep things more organized.

The console does not let me go into this subdirectory.

I am running Orion 1.0.3 because I have not been able to get
the autoupdate feature to work behind my firewall, and if I just 
download :

http://www.orionserver.com/orion/orion.jar

my datasources are no longer being accessed correctly.

Thanks.




Error starting HTTP-Server: Permission denied

2000-07-31 Thread Mattias Arbin

I am trying to setup a linux user (Red Hat 6.2) to run orion. 
When starting Orion I get the error:

Error starting HTTP-Server: Permission denied
Orion/1.1.37 initialized

Nothing in the logs.

Any ideas?

/Mattias





call-timeout

2000-07-31 Thread Vidur Dhanda

Hello,

Does Orion use the call-timeout attribute specified in session/entity
deployment section of orion-ejb-jar.xml?  From the docs I understand
that the value is specified as milliseconds in hex.  I provide a value
of call-timeout="493E0".  However, when the beans are deployed, the
resulting orion-ejb-jar.xml does not have the value and also I notice
that the beans throw a "Transaction was rolled back: timed out"
exception after 30-60 seconds depending upon server load.  Am I missing
something or is this feature not implemented n Orion 1.1.37.

Thanks,
Vidur






Re: ear deployment problem

2000-07-31 Thread Adam Cassar

Fixmed it,

Missing a  around the web.xml :)

On Mon, Jul 31, 2000 at 03:11:07PM +1000, Adam Cassar wrote:
> Greetings,
> 
> I am having a problem deploying a ear in orion.
> 
> The ejb appears to deploy however my war get the following error:
> 
> Error instantiating web-application
> 
> Error loading web-app 'domain-test-web' at 
>/usr/local/orion/apps/domain-test/domain-test/domain-test-web:
> /usr/local/orion/apps/domain-test/domain-test/domain-test-web contained a servlet 
>file, not an orion-web-app or a web-app file as expected 
> 
> Any hints on where to look?
> 
> -- 
> 
> Adam Cassar
> Senior Web Developer
> ___
> NetRegistry http://www.netregistry.au.com
> Tel: +61 2 9699 6099 | Fax: +61 2 9699 6088
> PO Box 270 Broadway NSW 2007 Australia
> 
> 

-- 

Adam Cassar
Senior Web Developer
___
NetRegistry http://www.netregistry.au.com
Tel: +61 2 9699 6099 | Fax: +61 2 9699 6088
PO Box 270 Broadway NSW 2007 Australia