security-constraint

2000-11-14 Thread Truong Di Ly

Hi Experts,

I have this problem:

Principals of role users can be authenticated, but not principals of
role projectchefs.

web.xml :
-

!--1.security-constraint--

security-constraint
web-resource-collection
web-resource-nameprogrammer/web-resource-name
url-pattern/index.jsp/url-pattern
url-pattern/programmer.jsp/url-pattern
url-pattern/parseRequestP.jsp/url-pattern
/web-resource-collection
auth-constraint
role-nameusers/role-name
/auth-constraint
/security-constraint

!--2.security-constraint--

security-constraint
web-resource-collection
web-resource-nameprojectchef/web-resource-name
url-pattern/index.jsp/url-pattern
url-pattern/projectchef.jsp/url-pattern
url-pattern/parseRequestPC.jsp/url-pattern
/web-resource-collection
auth-constraint
role-nameprojectchefs/role-name
/auth-constraint
/security-constraint

!--3.security-constraint--

security-constraint
web-resource-collection
web-resource-nameadmin/web-resource-name
url-pattern/index.jsp/url-pattern
url-pattern/admin.jsp/url-pattern
/web-resource-collection
auth-constraint
role-nameadministrators/role-name
/auth-constraint
/security-constraint

If I change 1. security-constraint with 2.security-constraint
then principals of role projectchefs can be authenticated, but not
principals of role users.

web.xml:


!--2.security-constraint--

security-constraint
web-resource-collection
web-resource-nameprojectchef/web-resource-name
url-pattern/index.jsp/url-pattern
url-pattern/projectchef.jsp/url-pattern
url-pattern/parseRequestPC.jsp/url-pattern
/web-resource-collection
auth-constraint
role-nameprojectchefs/role-name
/auth-constraint
/security-constraint

!--1.security-constraint--

security-constraint
web-resource-collection
web-resource-nameprogrammer/web-resource-name
url-pattern/index.jsp/url-pattern
url-pattern/programmer.jsp/url-pattern
url-pattern/parseRequestP.jsp/url-pattern
/web-resource-collection
auth-constraint
role-nameusers/role-name
/auth-constraint
/security-constraint

!--3.security-constraint--

security-constraint
web-resource-collection
web-resource-nameadmin/web-resource-name
url-pattern/index.jsp/url-pattern
url-pattern/admin.jsp/url-pattern
/web-resource-collection
auth-constraint
role-nameadministrators/role-name
/auth-constraint
/security-constraint




EJB.remove(pk-string) and relationship problem

2000-11-09 Thread Truong Di Ly

Hello EJB profis,


I have this relationship-removing problem:

A:EJB 1-* B:EJB 1-* C:EJB

calling c.remove(pk-string) in ... (e.g. parseRequest.jsp),

where c (is a C EJB ) is in a collection of b (is a B EJB),

does not remove c from the collection, but it does remove

c from the database.

Thanks,
Di




EJB.remove(pk-string) and relationship problem

2000-11-06 Thread Truong Di Ly

Hello EJB profis,


I have this relationship-removing problem:

A:EJB 1-* B:EJB 1-* C:EJB

calling c.remove(pk-string) in ... (e.g. parseRequest.jsp),

where c (is a C EJB ) is in a collection of b (is a B EJB),

does not remove c from the collection, but it does remove

b from the database.

Thanks,
Di




findByXXXX don't function

2000-10-18 Thread Truong Di Ly

Hi,
is orion's implementation of the findByXXX not implemented?

orion-ejb-jar.xml :
 
   ...
finder-method query="" 
  method
ejb-nameejb/Task/ejb-name
method-namefindAll/method-name
method-params/method-params
  /method
/finder-method
finder-method partial="true" query="$1 = $username"
   method
  ejb-nameejb/Task/ejb-name
  method-namefindByUsername/method-name
  method-paramsjava.util.String/method-params
   /method
/finder-method
  /entity-deployment

TaskHome.java :
---
public interface TaskHome  extends javax.ejb.EJBHome {

  ...
public Task findByPrimaryKey(String name) throws RemoteException,
FinderException;
public Collection findByUsername(String name) throws
RemoteException, FinderException; 
public Collection findAll() throws RemoteException, FinderException;
}

But findByUsername(String name) is the same as findAll() ?




EJB-EJB relationship example

2000-10-16 Thread Truong Di Ly

Hi,
has someone a short example with EJB2 which use EJB-EJB relationship.
The atm example doesn't run because i don't have a JMS server installed.
Thanks, Di




EJB-EJB relationship

2000-10-11 Thread Truong Di Ly

Hi,

how can i write EJB-EJB and EJB-Dependent-class relationships
without orion specific descriptor files
(without table mapping, etc.).

I have an orion specific example , time management app and
would like it to be application server independent.
Someone would like to see? Email me!

Thanks.
Di




EJB-EJB relationship

2000-10-11 Thread Truong Di Ly

Hi,

how can i write EJB-EJB and EJB-Dependent-class relationships
without orion specific descriptor files
(without table mapping, etc.).

I have an orion specific example , time management app and
would like it to be application server independent.
Someone would like to see? Email me!

Thanks.
Di




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




Re: Login System

2000-10-02 Thread Truong Di Ly

The realisation of a authentification is described in the servlet
specification. Catchword: form authentification.

Gareth White wrote:
 
 Hi, I've just started doing J2EE with Orion and I'm trying to get my head
 around the security system on Orion.
 What bug have you experienced, I'm getting some weird stuff going on but
 it's more likely to be due to my inexperience.
 
 Cheers,
 Gareth.
 
 - Original Message -
 From: "Truong Di Ly" [EMAIL PROTECTED]
 To: "Orion-Interest" [EMAIL PROTECTED]
 Sent: Wednesday, September 20, 2000 12:47 PM
 Subject: Login System
 
  Hi,
  first thanks to Magnus for one problem is fixed.
  But still there is a bug with my login web component.
  Try it!
 
  cd $orionhome/applications
 
  unzip login.zip
 
  change server.xml by adding this line:
  application name="login" path="../applications/login" /
 
  change default-web-site.xml by adding this line:
  web-app application="login" name="login-web" root="/login" /




Re: Login System

2000-09-22 Thread Truong Di Ly

Hi,
I get it. It was a mistake in the form tag

instead 
input type="password" name="j_password"

I wrote 
input type="j_password" name="password"

Thanks to all,
Di




Login System

2000-09-20 Thread Truong Di Ly

Hi,
first thanks to Magnus for one problem is fixed.
But still there is a bug with my login web component.
Try it!

cd $orionhome/applications

unzip login.zip

change server.xml by adding this line:
application name="login" path="../applications/login" /

change default-web-site.xml by adding this line:
web-app application="login" name="login-web" root="/login" /
 login.zip