CGI, PHP, etc...

2000-02-21 Thread Jeremy Pierson

Has anyone successfully managed to get PHP workingwith Orion?  Their is some
mention of "com.evermind.server.http.CGIServlet", but that doesn't seem to
come with the Orion package, and the evermind site is in German - or
something - and I can't find the classes. (I only speak english!:p)

What classes are available for a CGI servlet, and how do we obtain them?

Thanks,
Jeremy




EJB Demo Problems

2000-02-21 Thread Eric Richardson


Hi,
I'm trying to run the EJB demos and I'm having problems, some of which
I've resolved.
I followed the instructions in demo/ejb/install.txt
The first problem occurred during auto-deployment. Here is the text.
java -jar orion.jar
Auto-deploying ejbsamples...
Auto-deploying product...
Auto-creating table: create table MyProduct (id integer not null primary
key, price float null, name varchar (255) null, description varchar (255)
null)
done.
Auto-deploying cart... done.
Auto-deploying usermanager...
Auto-creating table: create table com_evermind_ejb_EJBUser (username
varchar (255) not null primary key, certificateSerial varchar (100) null,
locale varchar (5) null, description varchar (255) null, password varchar
(255) null, certificateIssuerDN varchar (255) null)
Auto-creating table: create table com_evermind_ejb_EJBUser_groups (value
varchar (255) not null, username varchar (255) not null, primary key (value,
username))
Warning: Error creating table: ORA-00972: identifier is too long
done.
Auto-deploying product... done.
Auto-deploying cart... done.
Orion/0.9.1g initialized
The problem is that the table name   com_evermind_ejb_EJBUser_groups
is too long (31 characters) for Oracle .
Resolution is to edit the demo/ejb/usermanager/orion/orion-ejb-jar.xml
file.
added the table attribute as follows:
    The next is that I can't run the client. The instructions are not quite
correct. The classpath should be ../../../ejb.jar etc instead of ../../ejb.jar
and could use a :. for unix to find the CartClient.
This is the output:
 java -classpath ../../../orion.jar:../../../ejb.jar:../../../jndi.jar:.
CartClient
Communication error: Lookup error: java.lang.SecurityException: Invalid
username/password
Any help on the security issue would be appreciated. BTW, I did modify
principles.xml as specified.
Thanks,
Eric
 
 



JSP set property

2000-02-21 Thread Bond - James D.


I've asked this a couple times and still haven't gotten a response:

How come setProperty with a * doesn't work?  Like this:








This code works in all other Servlet/JSP engines I've used, why doesn't it
work in Orion (I'm using .9g I believe) ??!!


James Dalrymple
Telesoft Corp.




Problems while connecting to ejb server

2000-02-21 Thread Jens Stutte

Hi again,
 
i tried to write a client for my freshly deployed bean and ran into a
problem about looking up the jndi context "the right way".
 
I assume, that the "application-client.xml" gives some hints about the jndi
names of the deployed bean(s) in an ejb-jar. And on creating the initial
context with the
"com.evermind.server.ApplicationClientInitialContextFactory" and an url like
"ormi://servername/appname", orion tries to look up an appropriate
application-client.xml for that application.
However, i get strange results with this.
 
First of all, i wasn't able to create an initial context for my application,
since orion complained about missing application client values.
Unfortunately i cannot reproduce this behaviour (see below) and therefore
cannot give the exact error message. I than had a look at the samples and
tried them:
 
I created an initial context for the samples like that:
   Hashtable h = new Hashtable();
 
h.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.ApplicationClient
InitialContextFactory");
   h.put(Context.PROVIDER_URL, "ormi://beatnix.net-media.de/ejbsamples");
   h.put(Context.SECURITY_PRINCIPAL, "admin");
   h.put(Context.SECURITY_CREDENTIALS, "123");
   Context context = new InitialContext(h);

with only one application in the server.xml, that is ejbsamples. This works,
even remote (actually i replaced the new InitialContext(); of the CartClient
sample).
 
Then i changed my server.xml to contain only my application's ear (created
with the j2ee deployment wizard) and changed the client appropriate:
   Hashtable h = new Hashtable();
 
h.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.ApplicationClient
InitialContextFactory");
   h.put(Context.PROVIDER_URL, "ormi://beatnix.net-media.de/BaseModule");
   h.put(Context.SECURITY_PRINCIPAL, "admin");
   h.put(Context.SECURITY_CREDENTIALS, "123");
   Context context = new InitialContext(h);

This leads to the following exception:
 
java.lang.InstantiationException: No location specified and no suitable
instance of the type 'Cart' found for the ejb-ref MyCart
at com.evermind.server.rmi.au.invokeMethod(JAX)
at com.evermind.server.rmi.al.invoke(JAX)
at Proxy0.getEJBHome(Unknown Source)
at com.evermind.server.fo.aca(JAX)
at
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext
(JAX)
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.(InitialContext.java:198)
at de.netmedia.ejb.test.clienttest.main(clienttest.java:59)
javax.naming.NamingException: Error reading application-client descriptor:
No location specified and no suitable instance of the type 'Cart' found for
the ejb-ref MyCart
at
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext
(JAX)
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.(InitialContext.java:198)
at de.netmedia.ejb.test.clienttest.main(clienttest.java:59)

 
What ? Cart ? MyCart ? I ensure, i uncommented the ejbsamples application in
my server.xml. And my Clients code not even mentions these names, neither
the beans code/xmls.
 
Am i missing something ? Is there any further information on how to set up
the application-client.xml and where to place it ? Is there any chance to
actually "see" which application-client.xml is used by orion (something like
a debug mode) ?
 
Any help would be very appreciated,
 
Jens Stutte


[EMAIL PROTECTED], http://www.net-media.de

NetMedia GmbH
Schubertstr. 8
66111 Saarbruecken
Germany

fon: +49 (0) 681 - 37 98 80
fax: +49 (0) 681 - 33 89 3


 



Some general questions

2000-02-21 Thread Jens Stutte

By the way, i have some general questions (which i cannot try out myself for
other problems, see my other mail):
 
- is it true, that an ear created with the j2ee deployment wizard should be
able to be deployed on orion without modifications ? If not, which are these
modifications (does this have to do with the application-client.xml ?) ?
 
- may an ear contain more than one ejb-jars (like the j2ee allows) ?
 
- are you planning some visual tools for deployment (like the j2ee
deployment wizard e.g.) and/or administration of the server ? I know, the
server itself isn't ready yet, but just to get some glance in the eyes..
 
Best regards,
 
Jens Stutte
 


[EMAIL PROTECTED], http://www.net-media.de

NetMedia GmbH
Schubertstr. 8
66111 Saarbruecken
Germany

fon: +49 (0) 681 - 37 98 80
fax: +49 (0) 681 - 33 89 3


 



Re: Orion in high load production environment

2000-02-21 Thread David Sierra Fernandez


Hullo, Orion users:

I'd like to know a short description of the hardware used with
Orion to get this performance of load handling: number of servers,
features of the servers (RAM, cache, processor,... ) OS, DataBase...

Thank you very much, special to Daniel Ockeloen.

-- Sierr@ --

On Mon, 21 Feb 2000, Daniel Ockeloen wrote:

> 
> 
> ASHWINJM wrote:
> 
> > Hi All,
> >
> > Has anyone here used / is using Orion in production with over 100,000
> > hits/day? I'm evaluating several products right now, and would like to know
> > this group's opinion on Orion's capabilities as far as load handling goes.
> >
> > Regards,
> > Ashwin
> 
> Yep, www.vpro.nl has been running orion for many moons now and is
> allways above
> >100k hits (say between 300k and 400k) since its a tv broadcasters site it also
> has peaks (when a show is on air) to higher numbers say 1M. We don't
> really
> expect problems with orion in this area.
> 
> Daniel Ockeloen.
> 
> 




Re: Orion in high load production environment

2000-02-21 Thread Daniel Ockeloen



ASHWINJM wrote:

> Hi All,
>
> Has anyone here used / is using Orion in production with over 100,000
> hits/day? I'm evaluating several products right now, and would like to know
> this group's opinion on Orion's capabilities as far as load handling goes.
>
> Regards,
> Ashwin

Yep, www.vpro.nl has been running orion for many moons now and is
allways above
>100k hits (say between 300k and 400k) since its a tv broadcasters site it also
has peaks (when a show is on air) to higher numbers say 1M. We don't
really
expect problems with orion in this area.

Daniel Ockeloen.