Principles sanity check. Please help - I'm going mad!

2000-07-25 Thread Dave Smith

Could somebody have a quick look at what I am doing and tell me if I am
going even vaguely in the right direction.

My problem is that as soon as I put security-roles in my ejb-jar.xml I am
unable to call the ejbs as I get the exception:

com.evermind.server.rmi.OrionRemoteException: guest is not allowed to call
the Table.findByPrimaryKey(...) method, check your security settings. 

How do I connect as a user other than guest?  OR
How do I grant permissions to guest?

I have an ejb-jar.xml with some security info in it:

assembly-descriptor
security-role
description
Aministrators
/description
role-nameadministrator/role-name
/security-role
security-role
description
All users
/description
role-nameeveryone/role-name
/security-role
security-role
description
Guests
/description
role-nameguest/role-name
/security-role

... method permissions here (everyone has everything at the
moment)

I now need to map those to the roles in principals.xml, so in my
orion-application.xml I have:

security-role-mapping name="everyone" impliesAll="true"
group name="guests" /
group name="users" /
group name="administrators" /
/security-role-mapping
security-role-mapping name="administrator" impliesAll="false"
group name="guests" /
group name="users" /
group name="administrators" /
/security-role-mapping
security-role-mapping name="guest" impliesAll="false"
group name="guests" /
group name="users" /
group name="administrators" /
/security-role-mapping
principals path="d:\orion\config\principals.xml" /

where guests,users and administrators are groups in principles.xml.

Is this the correct thing to do.


Dave Smith
Senior Team Leader
Aristocrat Technologies Australia Pty Ltd

mailto:[EMAIL PROTECTED]





Re: Certificate from Thawte? How?

2000-07-25 Thread Mattias Arbin



I have.
The only problem I had was when importing the 
certificate response. Keytool seems to be very sensitive to white 
charactersat the end of the certificate files.
It wouldnt import my certificate response until I 
added a returnat the end of the file. But that, of course, has nothing to 
do with Thawte.
I sent an email to Thawte about Orion not beeing on 
the list, but I havent got any answer. So Iselected Java WebServer. (I 
guess they will be surprised that somenone still uses that one...). I am pretty 
sure that it doesnt really matter which one you select. I guess it is for 
statistics. When you fetch your certifiacate you can choose from a number of 
types and formats. I chose PKCS#7 Certificate Chain.
Good luck.
/Mattias

  - Original Message - 
  From: 
  Steven Punte 
  
  To: Orion-Interest 
  Sent: Monday, July 24, 2000 11:38 
PM
  Subject: Certificate from Thawte? 
  How?
  
  Has anyone walked through the process of getting 
  a real
  certificate from Thawte?
   
  Any advice?
  
  In particular, Thawte asks what type of web 
  server one is running, but
  Orion is not listed. What have people been 
  selecting?
  
  Thanks in Advance:
   
  STeve Puntee-Business Software 
  ArchitectTechnologent Inc[EMAIL PROTECTED]


RE: Great speed up in Orion 1.1.30

2000-07-25 Thread Robert Krueger


it does crash occasionally, mostly when redeploying applications but it's 
stable enough for development and more stable than the ibm "final" and it's 
a lot faster than jdk1.2.2. wouldn't recommend using it in a production 
system, though (I doubt the license allows this with the beta anyway).

regards,

robert

At 23:06 25.07.00 , Brady Moritz wrote:
you mention using the sun 1.3 jdk, I tried using this and it woudl crash on
some of the test pages with orion... tried 1.2.2 and it works fine. this was
with orion 1.0.3, have tehse problems been repaired?


Thanks

Brady Moritz
Moritz Designs

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





AW: FollowUp: application-client.xml, initial context

2000-07-25 Thread Jens Stutte

Hi again,

just to let you know, how it works to use the
com.evermind.server.ApplicationClientInitialContextFactory:

For an application you should write one application-client.xml, that
contains ejb-refs to all beans used by this application. This file has to
reside in a META-INF folder located in the root of the application's jar -
respective in the root of (one of) your classpath(s).

It is intended to provide different application-client.xml files for each
client, listing only the needed beans - a bit difficult while developing,
since you should have an own class tree for each client application, so i
fear at the end the application-client.xml will simply contain all beans in
the server...

I know, that this likely will not be subject to change (depends on the
spec), but a possibility to assign JNDI names in the server on a
per-module-base would match my needs much better... well, we got to take it
like it is.

BTW, is there any intended use for the
com.evermind.server.rmi.RMIInitialContextFactory? Is it only for internal
use? Where do i assign names for objects in the server, that will show up in
this context?

Regards,

Jens Stutte

PS: Thanx to Martin Mavrov, he led me on the right way...

 -Ursprüngliche Nachricht-
 Von: Jens Stutte [mailto:[EMAIL PROTECTED]]
 Gesendet am: Dienstag, 25. Juli 2000 09:45
 An: Orion-Interest
 Betreff: FollowUp: application-client.xml, initial context
 
 Hi again,
 
 just to keep it clear: i am trying to access my beans from a 
 standalone
 client on a different machine.
 
 Regards
 
 Jens Stutte
 
  -Ursprüngliche Nachricht-
  Von: Jens Stutte [mailto:[EMAIL PROTECTED]]
  Gesendet am: Montag, 24. Juli 2000 19:15
  An: Orion-Interest
  Betreff: application-client.xml, initial context
  
  Hi,
  
  i think, there is some confusion out there what's the right 
  way to obtain an
  initial context and how to specify the bindings for ejbs (and 
  me too need a
  little help).
  
  There are (at least) two factorys provided by orion, the
  com.evermind.server.ApplicationClientInitialContextFactory and the
  com.evermind.server.rmi.RMIInitialContextFactory. 
  Up to version 1.1.21 orion automatically put a jndi binding 
  with the beans
  name specified in the ejb-jar.xml in the context which one 
 got via the
  RMIInitialContextFactory - a very handy thing, only that it 
  seems not to be
  covered by any spec... and the newest version does not offer 
  these bindings
  any more, so that clients relying on RMIInitialContextFactory 
  will fail in
  the future it seems (i discovered this, because i used this 
  feature, too).
  
  Now i'm trying out to use the 
  ApplicationClientInitialContextFactory, and
  found that documentation about the application-client.xml is 
  rare - not
  regarding the contents but regarding the place, where to put 
  it. I have for
  example an application with two modules, which reside 
  _unpacked_ in the
  application directory, like
  
  appname
  - META-INF
- application.xml
  - module1
- de (classes, this is actual a link to my classes dir)
- META-INF
  - ejb-jar.xml
  - module2
- de (classes, this is actual a link to my classes dir)
- META-INF
  - ejb-jar.xml
  
  each of these modules containing some beans, which are 
  deployed correctly,
  it seems.
  
  I tried to put two application-client.xml files in the 
  META-INFs of the two
  modules (on the server side), but the 
  ApplicationClientInitialContextFactory
  still complains, that it can't find the 
  META-INF/application-client.xml. So i suspected, i'll have to put it
  somewhere on the client side - but where? Or do i have to 
  specify some magic
  words in the application.xml?
  I do not want to pack my classes into a client jar, if 
  possible, but leave
  them unpacked in my CVS tree  (within Netbeans/forte) while 
  developing.
  
  Could someone please shed some light on the 
  application-client.xml and how
  it's intended to be used?
  
  Thanx,
  
  Jens Stutte
  
  
  [EMAIL PROTECTED], http://www.netmedia.de
  
  NetMedia GmbH
  Neugrabenweg 5-7
  66123 Saarbruecken
  Germany
  
  fon: +49 (0) 681 - 3 79 88 - 0
  fax: +49 (0) 681 - 3 79 88 - 99
  
  
  
 




RE: Great speed up in Orion 1.1.30

2000-07-25 Thread J.T. Wenting

Anything is more stable than the equivalent IBM product in my experience...
The notable exception being DB2.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Robert Krueger
 Sent: Tuesday, July 25, 2000 09:20
 To: Orion-Interest
 Subject: RE: Great speed up in Orion 1.1.30



 it does crash occasionally, mostly when redeploying applications but it's
 stable enough for development and more stable than the ibm
 "final" and it's
 a lot faster than jdk1.2.2. wouldn't recommend using it in a production
 system, though (I doubt the license allows this with the beta anyway).

 regards,

 robert

 At 23:06 25.07.00 , Brady Moritz wrote:
 you mention using the sun 1.3 jdk, I tried using this and it
 woudl crash on
 some of the test pages with orion... tried 1.2.2 and it works
 fine. this was
 with orion 1.0.3, have tehse problems been repaired?
 
 
 Thanks
 
 Brady Moritz
 Moritz Designs

 (-) 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: application-client.xml, initial context

2000-07-25 Thread wim veninga


Hi Jens,

you just put the application-client.xml at the client side in the META-INF
directorie at the beginning of your clients classpath:

for example :
  Suppose you have an client directory structure like this :
  C:\client\com\client\OrionEJBApplicationClient.class

   then you have to put the application-client.xml in the following
   directory C:\client\META-INF\application-client.xml

-Original Message-
From: Jens Stutte [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Date: Monday, July 24, 2000 10:34 PM
Subject: application-client.xml, initial context


Hi,

i think, there is some confusion out there what's the right way to obtain an
initial context and how to specify the bindings for ejbs (and me too need a
little help).

There are (at least) two factorys provided by orion, the
com.evermind.server.ApplicationClientInitialContextFactory and the
com.evermind.server.rmi.RMIInitialContextFactory.
Up to version 1.1.21 orion automatically put a jndi binding with the beans
name specified in the ejb-jar.xml in the context which one got via the
RMIInitialContextFactory - a very handy thing, only that it seems not to be
covered by any spec... and the newest version does not offer these bindings
any more, so that clients relying on RMIInitialContextFactory will fail in
the future it seems (i discovered this, because i used this feature, too).

Now i'm trying out to use the ApplicationClientInitialContextFactory, and
found that documentation about the application-client.xml is rare - not
regarding the contents but regarding the place, where to put it. I have for
example an application with two modules, which reside _unpacked_ in the
application directory, like

appname
- META-INF
  - application.xml
- module1
  - de (classes, this is actual a link to my classes dir)
  - META-INF
- ejb-jar.xml
- module2
  - de (classes, this is actual a link to my classes dir)
  - META-INF
- ejb-jar.xml

each of these modules containing some beans, which are deployed correctly,
it seems.

I tried to put two application-client.xml files in the META-INFs of the two
modules (on the server side), but the ApplicationClientInitialContextFactory
still complains, that it can't find the
META-INF/application-client.xml. So i suspected, i'll have to put it
somewhere on the client side - but where? Or do i have to specify some magic
words in the application.xml?
I do not want to pack my classes into a client jar, if possible, but leave
them unpacked in my CVS tree  (within Netbeans/forte) while developing.

Could someone please shed some light on the application-client.xml and how
it's intended to be used?

Thanx,

Jens Stutte


[EMAIL PROTECTED], http://www.netmedia.de

NetMedia GmbH
Neugrabenweg 5-7
66123 Saarbruecken
Germany

fon: +49 (0) 681 - 3 79 88 - 0
fax: +49 (0) 681 - 3 79 88 - 99








servlet directory (fwd)

2000-07-25 Thread Joseph B. Ottinger

-- Forwarded message --
Date: Tue, 25 Jul 2000 12:35:51 -0500
From: Ugur Karakaya [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: servlet directory

Hello,

How can I configure servlet directory in OrionServer.

For example ,default vaule http://localhost:8080/servlet/myservlet
and local directory is
D:\orion\default-web-app\Web-inf\classes\myservlet.class

I want to configure more servlet directory.

Thank you very much.


Ugur Karakaya






Switching from HTTP to HTTPS in an Application

2000-07-25 Thread Kalvar, Kirk

Where can I find some examples of switching an application from http to
https?  I've got Orion running Sun's JPS 1.0 with http and https but needed
some guidance.  I  think it would be reasonable once they log into the
application it would be in secure mode from then on, but I've also heard
others just secure individual pages.

Thanks in Advance,

Kirk S. Kalvar, Software Engineer
DRS Electronic Systems Group





Problem with restarting orion: Me too

2000-07-25 Thread Joe Peer

Hi! 

I have got _exactly_ the same problem. 

my config:
* win nt 4.0 service pack 5
* sun jdk 1.3

On the mailing list archive I read that various problems witch admin.jar are
platform specific - is that true?

will there be a fix of that problem?

or ist there already a workaround?

thanks,
joe peer
[EMAIL PROTECTED]

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im Auftrag von Ratz, Peter
Gesendet: Dienstag, 25. Juli 2000 08:33
An: Orion-Interest
Betreff: Problem with restarting orion


Hello,

im am new to orion server an i cannot restart/shutdown the server.
I type in the following command and get an exception:

C:\orionjava -jar admin.jar ormi://localhost admin 123  -restart
Error: com.evermind.reflect.UndeclaredExceptionTypeException:
java.lang.ClassNotFoundException

Thanks

Peter









___
Say Bye to Slow Internet!
http://www.home.com/xinbox/signup.html





Deploying and principals.xml

2000-07-25 Thread Rick Bos

Whenever I deploy an application for the first time, I get a message
saying :

application-deployments/app-name/principals.xml not found.

I then create a principals.xml in that location and the application
deploys correctly.

Is there a way to include the principals.xml in the .ear file or
application directory so
that it does not have to be put in the application-deployments
directory at run time?

I have a line in my server.xml that says:

principals path="./principals.xml" /

Thanks .








Re: Users groups and roles

2000-07-25 Thread Eric Richardson


Thanks Martin,
I'll take a look.
eric :-)
Martin Mavrov wrote:
The Orion patched Java Pet Store has code that uses
UserManager (orion
security adapter).
- Original Message -
From: Eric Richardson
To: Orion-Interest
Sent: Monday, July 24, 2000 10:38 PM
Subject: Users groups and roles
Hi,
I understand that orion has a UserManager that can be used instead
of the
principles.xml file.
Is this similar to what Apache does if you set up access via the RDBMS
ACLs
rather that the file based ones?
Which example uses this and can anyone give me more info about the
schema used etc.
Thanks in advance,
Eric :-)






Arrghhh!

2000-07-25 Thread Peter Giannopoulos

Hi again, no matter what I try I can't leave the list
Can any list administrator help?
Or at least reply


--


__

-- Codito ergo sum -- "I code therefore I am" --
__



begin:vcard 
n:Giannopoulos;Peter 
tel;pager:N/A
tel;cell:N/A
tel;fax:514-732-2301
tel;home:N/A
tel;work:514-732-2434
x-mozilla-html:FALSE
url:http://www.gemplus.com
org:Gemplus Canada inc.;CTO Group
adr:;;3 Place du Commerce;Ile des soeurs;Quebec;H3E 1H7;Canada
version:2.1
email;internet:[EMAIL PROTECTED]
title:Software Developer
note;quoted-printable:=0D=0A--- Codito, ergo sum - "I code, therefore I am" ---
fn:Peter Giannopoulos
end:vcard



Re: Deploying and principals.xml

2000-07-25 Thread alex

Hi,
You will find that there is a descriptor in the same directory as where the
principals.xml is located which actually points to the principls.xml that it can
not find or create. If your not using the principals.xml I suggest you just
remove the reference to the principals.xml and you wont get this problem. The
reference to the principals file is in orion-application.xml.
This is what I done to solve this problem. However in my case I did not need to
use the services of the principals.xml, so for me it was a solution.

Regards Alex Chudnovsky
(dude_ejb)

Rick Bos wrote:

 Whenever I deploy an application for the first time, I get a message
 saying :

 application-deployments/app-name/principals.xml not found.

 I then create a principals.xml in that location and the application
 deploys correctly.

 Is there a way to include the principals.xml in the .ear file or
 application directory so
 that it does not have to be put in the application-deployments
 directory at run time?

 I have a line in my server.xml that says:

 principals path="./principals.xml" /

 Thanks .





Re: Switching from HTTP to HTTPS in an Application

2000-07-25 Thread Steven Punte

Kirk:

I faced this same issue.

I ended up using  "response.sendRedirect( )" and composing
the necessary absolute URL through various string manipulations
(i.e. need absolute so that the URL can begin with https://).

Would really be nice to see a better method.

STeve Punte
e-Business Software Architect
Technologent Inc
[EMAIL PROTECTED]


- Original Message -
From: Kalvar, Kirk [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Tuesday, July 25, 2000 5:02 AM
Subject: Switching from HTTP to HTTPS in an Application


 Where can I find some examples of switching an application from http to
 https?  I've got Orion running Sun's JPS 1.0 with http and https but
needed
 some guidance.  I  think it would be reasonable once they log into the
 application it would be in secure mode from then on, but I've also heard
 others just secure individual pages.

 Thanks in Advance,

 Kirk S. Kalvar, Software Engineer
 DRS Electronic Systems Group






Classpath settings - Ver 1.1.30

2000-07-25 Thread Todd McGrath

Hello,

I having problems getting a helper jar in my classpath.  Servlets, my
own classes, ejb, jb, all working fine.

here's a code snippet from my servlet:

public void init(ServletConfig config) throws ServletException
{
super.init(config);

System.out.println("here?3");
   
System.out.println("Classpath="+System.getProperty("java.class.path"));
System.setProperty ("awt.toolkit", "com.eteks.awt.PJAToolkit");
System.setProperty ("java.awt.fonts",
"/usr/java/jdk1.3/jre/lib/fonts");
System.setProperty ("java.awt.graphicsenv",
"com.eteks.java2d.PJAGraphicsEnvironment");

--

Here's the error:

Error initializing servlet
java.lang.Error: Could not find class:
com.eteks.java2d.PJAGraphicsEnvironment
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi
ronment.java:61)
at java.awt.Window.init(Window.java:186)
at java.awt.Frame.init(Frame.java:315)
at java.awt.Frame.init(Frame.java:262)
at javax.swing.JFrame.init(JFrame.java:141)
at
com.securedchoice.web.servlet.GraphServlet.init(GraphServlet.java:43)
at com.evermind.server.http.HttpApplication.to(JAX)
at com.evermind.server.http.HttpApplication.ta(JAX)
at com.evermind.server.http.HttpApplication.rt(JAX)

---

I need those com.eteks.java2d.* and com.awt.* classes.

Whenever this servlet is called the System.out.println- Classpath =
orion.jar.

I have read this list and noticed a variety of ways for classpath
settings.  I have tried adding "library path" to orion-application.xml
and "classpath path" to orion-web.xml.   

Anything else I can try to get orion to find the classes?

Thanks in advance,
Todd




RE: EJB creation

2000-07-25 Thread Magnus Rydin
Title: RE: EJB creation





A lot of the examples that comes with the Orion application server uses the counter.jar utilities for handling unique Id:s in a J2EE compliant way.

IMHO, its a great tool.


 Is there a way to let the database take care of the primary key value 
 creation? I just want to create a new entity bean (and 
 therefore a new 
 record in the DB) without worrying about what its primary key 
 should be. i 
 want to let the DB take care of that. Can anyone help me 
 with this? is 
 this process server specific or j2ee specified? thanks for any help.
 





developers needed for short term contract

2000-07-25 Thread Shea Tisdale

We need a developer with EJB and JSP experience in Orion.  Actually, we need
several for a very short term project.

Shea Tisdale

President
NetworkArts, Inc.
308 West Rosemary Street
The Fountains, Suite 105
Chapel Hill, NC 27516
Phone: (919) 960-2660
FAX: (919) 960-4114
Mobile: (919) 225-4633







Filter bug in version 1.1.24 and 1.1.31

2000-07-25 Thread Joel Shellman

We are seeing very strange problems in using filters in Orion versions
1.1.24 and 1.1.31. It seems that occasionally the filter will not be called,
and it will show our default html page that should actually never show up
(as our filter handles (or sends a redirect) every request except for
images), or if remove that page it gives a 404 error.

Has anyone else experienced this problem?

Thank you,

Joel Shellman
http://www.ants.com/90589781





Re: Classpath settings - Ver 1.1.30

2000-07-25 Thread Eric Richardson


Hi Todd,
Do you have an EAR file or directory structure? If you do, I would
put the jars in the
web-app (your WAR inside the EAR) in the WEB-INF/lib directory.
Hope this helps,
Eric :-)
Todd McGrath wrote:
Hello,
I having problems getting a helper jar in my classpath. Servlets,
my
own classes, ejb, jb, all working fine.
here's a code snippet from my servlet:
public void init(ServletConfig config) throws ServletException
{
 super.init(config);
 System.out.println("here?3");
System.out.println("Classpath="+System.getProperty("java.class.path"));
 System.setProperty ("awt.toolkit", "com.eteks.awt.PJAToolkit");
 System.setProperty ("java.awt.fonts",
"/usr/java/jdk1.3/jre/lib/fonts");
 System.setProperty ("java.awt.graphicsenv",
"com.eteks.java2d.PJAGraphicsEnvironment");
--
Here's the error:
Error initializing servlet
java.lang.Error: Could not find class:
com.eteks.java2d.PJAGraphicsEnvironment
 at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi
ronment.java:61)
 at java.awt.Window.init>(Window.java:186)
 at java.awt.Frame.init>(Frame.java:315)
 at java.awt.Frame.init>(Frame.java:262)
 at javax.swing.JFrame.init>(JFrame.java:141)
 at
com.securedchoice.web.servlet.GraphServlet.init(GraphServlet.java:43)
 at com.evermind.server.http.HttpApplication.to(JAX)
 at com.evermind.server.http.HttpApplication.ta(JAX)
 at com.evermind.server.http.HttpApplication.rt(JAX)
---
I need those com.eteks.java2d.* and com.awt.* classes.
Whenever this servlet is called the System.out.println-> Classpath =
orion.jar.
I have read this list and noticed a variety of ways for classpath
settings. I have tried adding "library path" to orion-application.xml
and "classpath path" to orion-web.xml.
Anything else I can try to get orion to find the classes?
Thanks in advance,
Todd