FORM based login ACTION

2000-09-19 Thread Guilherme Ceschiatti

Hi!

I'm having problems in loging into my application. I'm using FORM based login,
with a form with the ACTION="j_security_check". When I submit the form, Orion
just replies:

404 Not Found

Is it a bug? How do I fix it?

[]s
Guilherme Ceschiatti
[EMAIL PROTECTED]




RE: not about Orion, some JDBC questions...

2000-09-19 Thread Khan Kamran
Title: RE: not about Orion, some JDBC questions...





Hi Robert,


Actually these interfaces are implemented by the jdbc driver developers. for examples oracle gives you a thin driver so all the jdbc interfaces  are implemented by oracle .

Kamran
-Original Message-
From: Robert Krueger [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 19, 2000 6:19 PM
To: Orion-Interest
Subject: Re: not about Orion, some JDBC questions...




not trying to be an ***hole here but could you please post these questions 
to an appropriate forum (comp.lang.java.?) instead of one dedicated to 
issues regarding the use of orion application server.


thanks,


robert


p.s.: doesn't really make a difference if you "warn" about that in the subject



At 19:19 19.09.00 , you wrote:
>Hello:
>
>1. I view the source code of java.sql.*
>    found Connection, ResultSet are Interface.
>    I feel confuse where and how java implements those Interface really ?
>2. I want extend functions of ResultSet like add new method,
>    How should I do it ?
>
>Thanks in advance.
>
>bubble chen(2000/9/15 AM 08:46:42)
>[EMAIL PROTECTED]
>
>
>==
>  PC home §K¶O¹q¤l«H½c¡A¥Ó½Ð½Ð¦Ü: http://www.pchome.com.tw
>  PC home Online ºô¸ô®a®x¡@¡@ ·|­û²Ä¤@¡A¥xÆW³Ì¤jªº¤J¤fºô¯¸
>==


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





clustering problem

2000-09-19 Thread chenbin

hello everyone:

when i try to clustered two orion server ,i have some problem.
three computers run's orion and loadbalancer also is:
1) nts 4 + sp6a ,IE 5.01
2)sun jdk1.3 + hotspot 2.0 server version,
3)orion version 1.3.3 and 1.3.5
4)in my lan have a proxyserver : winproxy version 3.0 r1i.

when I cluster two server, the loadbalancer run and discovered two server (in one 
island 1)
Run Orion Server : java -Dhttp.cluster.debug=true -Dcluster.debug=true -jar orion.jar
Run loadbalancer : java -jar loadbalancer.jar -port 8080 -debug

IP Address:
loadbalancer : 172.23.128.160:8080
orion server 1 :172.23.128.191:8000
orion server 2 :172.23.128.192:8000
http proxyserver :172.23.128.5:8080

when use my broswer (IE 5.01) point to http://172.23.160.8080/ 
the loadbalancer's windows show the error:
java.lang.ArrayIndexOutOfBoundsException
at com.evermind.util.LongHashMap.cu(JAX)
at com.evermind.server.loadbalancer.bu.jk(JAX)
at com.evermind.server.loadbalancer.bu.i8(JAX)
at com.evermind.server.loadbalancer.LoadBalancer.i8(JAX)
at com.evermind.server.loadbalancer.bk.run(JAX)
at com.evermind.util.f.run(JAX)

but when my browser set http proxyserver ,then point http://172.23.160.8080/   
then the loadbalancer's windows show :
Routing connection from Proxyserver/172.23.128.5 to 172.23.128.191:8000
it seem ok ! and I shut down one orion server ,the browser can view the page, 
loadbalancer works right!
And at this time,though set my browser don't use proxyserver ,
the connection seems ok,too.! the loadbalancer's windows show message:
Routing connection from 172.23.128.160 to 172.23.128.191:8000

So I can't understand this .It seems that i must set IE use proxyserver first,then it 
can konw the route,
If not ,ie can't know the route ,and the ArrayIndexOutOfBoundsException raise,why???

question 2 :I can't know greatly about multicast works,it seems that must have 
software or hardware on lan,
then multicast can work. Is the loadbalancer.jar have this function ? or I must have 
another software 
like Resonate Dispatch SLB-now or some hardware the multicast and loadbalancer.jar can 
work right ?

question 3 :Is orion 1.3.5 have new config in web.xml  ?


Thanks a lot!


chenbin
[EMAIL PROTECTED]





Re: NULL/NOT NULL with autocreated tables

2000-09-19 Thread Porfiriev Sergey

The best way not to use tables autogeneration at all
Make optimal schema, write table api beans for your schema, write
application beans


- Original Message -
From: "KirkYarina" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Tuesday, September 19, 2000 12:33 PM
Subject: NULL/NOT NULL with autocreated tables


> I'm using orion-ejb-jar.xml to define many of the characteristics of our
> applications database table fields, and am unable to determine how I can
> specify NULL/NOT NULL constraints for these fields.  I rtfm (such as it
> is) and looked at the orion-ejb-jar dtd, and couldn't find an answer.
>
> We're switching between several DBMS's during development, using different
> databases for different programmers and tasks, and still tweaking the
> schema a bit.  It's convenient to let Orion automatically create tables
> while all this is going on but I need to be able to control whether null
> fields are allowed, and have been unable to figure out how to do so.  Can
> anyone help?
>
> Thanks!
>
>
>
> Kirk Yarina
> [EMAIL PROTECTED]
>





RE: Need some ideas

2000-09-19 Thread Duffey, Kevin

I haven't heard of it done this way. My understanding is that you would have
1 (or more if clustering) front-end web server/servlet/jsp engine on the
front tier. They would communicate with the middle-tier orion app servers
for ejb stuff. There you would have one or more clustered for fail-over.

Question on this..if anyone knows. If we use statless EJB, do we need a
clustered environment for fail-over? Or is there no use in fail-over for a
statless ejb setup? I definitely want to store session state on the
HttpSession side, so our JSP pages can dynamically access everything to
display. I heard if you use HttpSession state, then you should use EJB in a
statless method, so I am not sure if that means I should have a cluster of
EJB servers for fail-over. However, I would believe a cluster is good for
load-balancing. What is the setup in this manner?

Thanks.


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 19, 2000 2:27 PM
> To: Orion-Interest
> Subject: Need some ideas
> 
> 
> 
> 
> Dear all
> 
> Has anyone been able to set up 2 orion servers for EJB ?
> Server A has all modules, while Server B is just a client to it.
> I want to use Server B as servlet client to connect to Server A.
> 
> Is it possible and efficient to set up a distributed system 
> like this using 
> orion servers ?
> 
> How should i go about doing all this ?
> 
> Could anyone show me the steps ?
> 
> Thanks a lot.
> 
> -alex
> 
> 
> ps:  just don't understand why orion team has such bad documentation.
>   it's very frustrating to use their product.  i am very 
> sure it's wasting
>   a tremendous amount of time for a lot of people to 
> figure things out.
> 




Need some ideas

2000-09-19 Thread BAC10000



Dear all

Has anyone been able to set up 2 orion servers for EJB ?
Server A has all modules, while Server B is just a client to it.
I want to use Server B as servlet client to connect to Server A.

Is it possible and efficient to set up a distributed system like this using 
orion servers ?

How should i go about doing all this ?

Could anyone show me the steps ?

Thanks a lot.

-alex


ps:  just don't understand why orion team has such bad documentation.
  it's very frustrating to use their product.  i am very sure it's wasting
  a tremendous amount of time for a lot of people to figure things out.




RE: ATM example with PostgreSQL

2000-09-19 Thread Guilherme Ceschiatti

On Fri, 15 Sep 2000, Arved Sandstrom wrote:
> Hi, Guiga

Hi!

Thanks for your attention. I used to had the "null problem" too, but I fix it
changing null="null" to null="", as you said. Now, remains a error message
saying:

ERROR: parser error at or near ")" .

Any hint to fix it?

> What's the nature of the errors? I found that PostgreSQL 6.5.3, when I tried
> that with Orion and CMP, didn't like explicit NULL at all, so I edited
> "config/database-schemas/postgresql.xml" to change null="" rather than
> null="null". Then it worked fine. This strikes me as a bug in PostgreSQL
> 6.5.x, since the docs indicate that an explicit declaration of NULL on a
> column is OK. Don't know about PostgreSQL 7.0.

[]s
Guilherme Ceschiatti
[EMAIL PROTECTED]




Wap & url rewriting

2000-09-19 Thread Sven van 't Veer


In the code below, Orion automatically rewrites the URL, creating a
wrong link in the celphone. Is this rewriting default behaviour, and how
can i undo this?

<% if (checkBean.getContas() != null) { %>
contas encerradas
<% } else { %>
sem contas encerradas
<% } %>

<% if (checkBean.getTelefone() != null) { %>
Informações do tel
<% }%>

Sven
-- 
==
Sven E. van 't Veer  
http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
==




RE: Deletes with Complex OR Mapping

2000-09-19 Thread BSmith

What about the case where you are replacing a child. Example: Adding to a
collection or removing from a collection.

-Original Message-
From: Nick Newman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 19, 2000 2:10 PM
To: Orion-Interest
Subject: Re: Deletes with Complex OR Mapping


Hi Bill,

Inside the ejbRemove method (which is called automatically by the
container) just ask it to remove the "child" beans.

Nick

At 01:24 PM 9/19/00 -0400, you wrote:
>Is there a way to instruct the container to delete ejbs referenced from
>parent ejbs that are being deleting (something like a cascading delete)
when
>using CMP? If not, What is the best way to do this, expecially if you are
>passing a value object passed in through a session bean (Details pattern @
>www.theserverside.com)? I ask this because I've been spoiled by a feature
in
>TOPLink where you can define an object reference as "privately" owned and
it
>will be automatically deleted. If marked as not private, then you have to
>manually delete it.
>
>TIA,
>Bill
>
>=
>Bill Smith
>Senior Software Engineer
>iXL, Inc.
>4600 Cox Rd.
>Glen Allen, VA 23060
>
>tel: 804.217.
>fax: 804.217.8890 
>[EMAIL PROTECTED] 
>
>This message is intended only for the use of the Addressee and may contain
>information that is PRIVILEGED and CONFIDENTIAL. If you are not the
intended
>recipient, dissemination of this communication is prohibited. If you have
>received this communication in error, please erase all copies of the
message
>and its attachments and notify us immediately. 
>
>





RE: Online Orion Support

2000-09-19 Thread Joseph B. Ottinger

Um, www.orionsupport.com is not an official support channel. What's more,
I'm in the process of rewriting the back end to make it easier to use for
all and sundry.

On Tue, 19 Sep 2000, Kevin Duffey wrote:

> www.orionsupport.com  
>  
> What seems to be the problem?
> 
> -Original Message-
> From: Sanjay [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 19, 2000 2:11 AM
> To: Orion-Interest
> Subject: Online Orion Support 
> 
> 
> Hello there ,
> Is there any online Orion support available? 
> We have a licensed  verison of Orion but still i am unable to get support. 
>  
> thank you 
> Cheers
>  
>  
> 
> 

---
Joseph B. Ottinger   [EMAIL PROTECTED]
http://cupid.suninternet.com/~joeo  HOMES.COM Developer





Re: Deletes with Complex OR Mapping

2000-09-19 Thread Nick Newman

Hi Bill,

Inside the ejbRemove method (which is called automatically by the
container) just ask it to remove the "child" beans.

Nick

At 01:24 PM 9/19/00 -0400, you wrote:
>Is there a way to instruct the container to delete ejbs referenced from
>parent ejbs that are being deleting (something like a cascading delete) when
>using CMP? If not, What is the best way to do this, expecially if you are
>passing a value object passed in through a session bean (Details pattern @
>www.theserverside.com)? I ask this because I've been spoiled by a feature in
>TOPLink where you can define an object reference as "privately" owned and it
>will be automatically deleted. If marked as not private, then you have to
>manually delete it.
>
>TIA,
>Bill
>
>=
>Bill Smith
>Senior Software Engineer
>iXL, Inc.
>4600 Cox Rd.
>Glen Allen, VA 23060
>
>tel: 804.217.
>fax: 804.217.8890 
>[EMAIL PROTECTED] 
>
>This message is intended only for the use of the Addressee and may contain
>information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended
>recipient, dissemination of this communication is prohibited. If you have
>received this communication in error, please erase all copies of the message
>and its attachments and notify us immediately. 
>
>





Obscure JMSException

2000-09-19 Thread Vlad Petric

I get a:

java.lang.NullPointerException
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:317)
at com.evermind.server.jms.b5.(JAX)
at com.evermind.server.jms.b0.start(JAX)
at Subscriber.(Subscriber.java:33)
at Subscriber.main(Subscriber.java:75)

when doing a topicConnection.start

At the same time jmschat works just fine. Any idea what I'm doing wrong
?

Thanks in advance

Orion 1.2.7. jdk 1.3beta IBM/Linux

The code:

  InitialContext ic = new InitialContext();
  TopicConnectionFactory tcf = (TopicConnectionFactory)
   ic.lookup("java:comp/env/jms/topicConnectionFactory");

  topicConnection = tcf.createTopicConnection();

  topic = (Topic) ic.lookup("java:comp/env/jms/TheTopic");

  topicSession = topicConnection.createTopicSession(false,
   TopicSession.AUTO_ACKNOWLEDGE);


  topicSubscriber = topicSession.createSubscriber(topic, null, true);

  topicPublisher = topicSession.createPublisher(topic);

  topicSubscriber.setMessageListener(this);

  topicConnection.start();
==
application-client.xml:


http://java.sun.com/j2ee/dtds/application-client_1_2.dtd">

 Unnamed
 
  jms/topicConnectionFactory
  javax.jms.TopicConnectionFactory
  Container
 
 
  jms/TheTopic
  javax.jms.Topic
  Container
 






RE: Online Orion Support

2000-09-19 Thread Kevin Duffey



www.orionsupport.com
 
What 
seems to be the problem?

  -Original Message-From: Sanjay 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, September 19, 2000 2:11 
  AMTo: Orion-InterestSubject: Online Orion Support 
  
  Hello there ,
  Is there any online Orion support available? 
  
  We have a licensed  verison of 
  Orion but still i am unable to get support. 
   
  thank you 
  Cheers
   
   


Deletes with Complex OR Mapping

2000-09-19 Thread BSmith

Is there a way to instruct the container to delete ejbs referenced from
parent ejbs that are being deleting (something like a cascading delete) when
using CMP? If not, What is the best way to do this, expecially if you are
passing a value object passed in through a session bean (Details pattern @
www.theserverside.com)? I ask this because I've been spoiled by a feature in
TOPLink where you can define an object reference as "privately" owned and it
will be automatically deleted. If marked as not private, then you have to
manually delete it.

TIA,
Bill

=
Bill Smith
Senior Software Engineer
iXL, Inc.
4600 Cox Rd.
Glen Allen, VA 23060

tel: 804.217.
fax: 804.217.8890 
[EMAIL PROTECTED] 

This message is intended only for the use of the Addressee and may contain
information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended
recipient, dissemination of this communication is prohibited. If you have
received this communication in error, please erase all copies of the message
and its attachments and notify us immediately. 






RE: User/Group manager guide

2000-09-19 Thread Arved Sandstrom

Well, what I've tried is your suggestion from a few days ago to do exactly
that. I have a number of roles, and to use one ("agents") as an example, I
have "agents" specified as a group in principals.xml, and also mapped in
orion-application.xml and the relevant orion-ejb-jar.xml, as well as
appearing as the role name in the relevant ejb-jar.xml. That is, my group
names and role names match exactly, everywhere. :-)

I zap the complete app directory in application-deployments before every
run, so there is no legacy stuff. And when I look at the deployed
Orion-specific descriptors they _are_ what I expect.

I should add that when user managers are _not_ in use then I've had no
issues with EJB method-permissions.

I don't doubt that you have stumbled across a configuration that works for
you. In fact I think I had one for about 30 minutes late last week, and then
it went away. I'm not kidding, either. :-)

I'm putting this stuff aside for a bit to see what develops. I'm encouraged
that the Orion team is coming out with docs. I hope they don't just talk
about the role manager, which is robust and also the easiest to use.

Arved

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Nick Newman
Sent: Tuesday, September 19, 2000 12:28 PM
To: Orion-Interest
Subject: RE: User/Group manager guide


Hi Arved,

Can I suggest you try the following.  In the ejb-jar.xml file that
specifies the ejb security, specify the GROUP name instead of the ROLE
name. (Even though that's the wrong thing to do.)  Then delete the
orion-ejb-jar.xml file (to get rid of the old references to the role name
that are in there). Then redeploy and try again.

If that works, maybe you could throw your weight behind Bugzilla report #55
so we can get it fixed!

Nick

At 10:26 AM 9/19/00 -0300, you wrote:
>I'm looking forward to docs and examples myself.
>
>One thing that I've noticed, after copious experimentation with the
>DataSourceUserManager, is that the group <=> mapping is somewhat deficient.
>In other words, I have my users and groups tables set up, and I've made
>suitable mods and adjustments to principals.xml, orion-application.xml,
>ejb-jar.xml, and orion-ejb-jar.xml as required (or suggested). In some
cases
>I'm flailing about, frankly.
>
>In any case, a login with username and password is obviously finding the
>group, and mapping the group to role, because when I check the role after
>login it's OK. I don't have to hardcode it, which is vital.
>
>However, and I've tried everything, I don't believe this knowledge is being
>passed on to the EJB container. No role, however declared in the various
>J2EE/Orion descriptors, is able to access *any* method in an EJB that has
>method-permissions.
>
>So my assessment on the user/role managers is that it is reasonably useful:
>one can assign roles based on login, and test for that as required. But
>method-level security in EJBs does not work, at least not in a documented,
>demonstrated and reliable manner.
>
>The odd thing is, is that this may not be that much of a big deal. I've
been
>writing J2EE for pretty much a full year, and I have yet to see a situation
>where method-level permissions gain me anything at all. It's literally
never
>been necessary. It seems to be one of these J2EE things that made
ostensible
>sense at the time but has little practical value. Just a thought.
>
>The only reason it disturbs me is because it should work and doesn't. :-)
If
>an example can be supplied - complete with Orion-specific deployment
>descriptors - I'll be overjoyed.
>
>Arved Sandstrom
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Lawrence Fry
>Sent: Monday, September 18, 2000 6:36 PM
>To: Orion-Interest
>Subject: RE: User/Group manager guide
>
>
>Guilherme,
>
>Here Here! I'm glad somebody said it.
>
>But without documentation, you should look at the archives to this list,
>because many of these problems have already been worked out.
>
>For example...it isn't said anywhere in the documentation, but the
>EJBUserManager is the most useful device for ecommerce. With this, you can
>automatically login users and create users  for your website...without one
>call to the EJBUserManager stuff. In order to use this, you will have to
add
>the following to your orion-application.xml file:
>
>
> 
> 
>
>
>I found this tidbit in the mail archive. Then you can use the role manager
>to allow users access to ejb resources, and the role manager automatically
>uses the your databank with cmp to create userscreate a user like this:
>
>try
>{
>RoleManager roleManager = (RoleManager)new
>InitialContext().looku("java:comp/RoleManager");
>if(roleManager.getPrincipal(username) != null)
>   throw new DuplicateAccountException(username)
>Principal principal = roleManager.createPrincipal(username, password);
>roleManager.addToRole(principal, role);
>roleManager.store(

NULL/NOT NULL with autocreated tables

2000-09-19 Thread KirkYarina

I'm using orion-ejb-jar.xml to define many of the characteristics of our 
applications database table fields, and am unable to determine how I can 
specify NULL/NOT NULL constraints for these fields.  I rtfm (such as it 
is) and looked at the orion-ejb-jar dtd, and couldn't find an answer.

We're switching between several DBMS's during development, using different 
databases for different programmers and tasks, and still tweaking the 
schema a bit.  It's convenient to let Orion automatically create tables 
while all this is going on but I need to be able to control whether null 
fields are allowed, and have been unable to figure out how to do so.  Can 
anyone help?

Thanks!



Kirk Yarina
[EMAIL PROTECTED]





SSL Slow and precompiled JSPs?

2000-09-19 Thread Mike Fontenot

Has anyone else noticed that when you first start executing SSL protected
code, displaying that first page takes a long time?

I know that SSL requires server/client key generation/handshaking but I'm
wondering if a server installation such as Orion (JSSE?) would benefit from
hardware acceleration like CryptoSwift?  Anyone using hardware acceleration
like this in production with Orion, and do you notice any performance
benefits?

Second, is there a way to precompile all of your JSP pages before
deployment, and deploy those compiled servlets?

Thanks,
Mike


Mike Fontenot - Object Systems Architect
BrandMatrix, Ltd.
Golden, Colorado






Re:

2000-09-19 Thread Nick Newman

Sorry James,

I didn't realize that you were working with a remote client.  I'm not the
guy to be helping you with that...

Nick

At 07:34 PM 9/19/00 +1000, you wrote:
>On Mon, 18 Sep 2000 08:54:01 -0600, you wrote:
>
>Hi Nick,
>
>Um...I cannot have it as the same app...this is what my system looks
>like...
>
>EACH supplier, will have a EJB deployed, which can be called from this
>'virtual supplier'.  So the EJBs are deployed at the supplier's side,
>wheras the servlet is deployed at the virtual supplier side.. :((
>
>3) I have been told to use the global EJB name (or something like
>that) to lookup the EJB?  so I thought "Stamp" would be the one.. :((
>
>I've tried using java:comp/env/Stamp, it is just not found...maybe
>that's because they are in different apps...I think it would worth a
>try to deploy them locally in one app to test it out...
>
>4) What exactly is that passwd/id for in the context?  isn't that used
>to access the directory/naming service in Orion?  
>
>Sorry if I sound too silly, as I am a newbie in orion/EJB stuff. :)
>
>Thanks heaps for your help..
>
>regards, James.
>
>
>>Hi,
>>
>>1) I think the EJB and the servlet will have to be two modules in the same
>>application.
>>
>>2) The ejb-ref should NOT be commented out.
>>
>>3) The lookup string should be "java:comp/env/Stamp", not "Stamp"
>>
>>4) The context should be set calling just new InitialContext() without args
>>(the id/password being supplied in the datasource.xml).
>>
>>Good luck!
>>Nick
>>
>>
>>At 06:56 PM 9/18/00 +1100, you wrote:
>>>Hi all,
>>>
>>>I have a urgent problem regarding EJB and servlet, I cannot find the 
>>>home interface of the bean from the servlet (whereas a standalone 
>>>client works very well)...Can anyone pls give me some hint as to what 
>>>maybe be wrong here?  Below is the background info, sorry, it is kind 
>>>of long...
>>
>>
>>
>





RE: User/Group manager guide

2000-09-19 Thread Nick Newman

Hi Arved,

Can I suggest you try the following.  In the ejb-jar.xml file that
specifies the ejb security, specify the GROUP name instead of the ROLE
name. (Even though that's the wrong thing to do.)  Then delete the
orion-ejb-jar.xml file (to get rid of the old references to the role name
that are in there). Then redeploy and try again.

If that works, maybe you could throw your weight behind Bugzilla report #55
so we can get it fixed!

Nick

At 10:26 AM 9/19/00 -0300, you wrote:
>I'm looking forward to docs and examples myself.
>
>One thing that I've noticed, after copious experimentation with the
>DataSourceUserManager, is that the group <=> mapping is somewhat deficient.
>In other words, I have my users and groups tables set up, and I've made
>suitable mods and adjustments to principals.xml, orion-application.xml,
>ejb-jar.xml, and orion-ejb-jar.xml as required (or suggested). In some cases
>I'm flailing about, frankly.
>
>In any case, a login with username and password is obviously finding the
>group, and mapping the group to role, because when I check the role after
>login it's OK. I don't have to hardcode it, which is vital.
>
>However, and I've tried everything, I don't believe this knowledge is being
>passed on to the EJB container. No role, however declared in the various
>J2EE/Orion descriptors, is able to access *any* method in an EJB that has
>method-permissions.
>
>So my assessment on the user/role managers is that it is reasonably useful:
>one can assign roles based on login, and test for that as required. But
>method-level security in EJBs does not work, at least not in a documented,
>demonstrated and reliable manner.
>
>The odd thing is, is that this may not be that much of a big deal. I've been
>writing J2EE for pretty much a full year, and I have yet to see a situation
>where method-level permissions gain me anything at all. It's literally never
>been necessary. It seems to be one of these J2EE things that made ostensible
>sense at the time but has little practical value. Just a thought.
>
>The only reason it disturbs me is because it should work and doesn't. :-) If
>an example can be supplied - complete with Orion-specific deployment
>descriptors - I'll be overjoyed.
>
>Arved Sandstrom
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Lawrence Fry
>Sent: Monday, September 18, 2000 6:36 PM
>To: Orion-Interest
>Subject: RE: User/Group manager guide
>
>
>Guilherme,
>
>Here Here! I'm glad somebody said it.
>
>But without documentation, you should look at the archives to this list,
>because many of these problems have already been worked out.
>
>For example...it isn't said anywhere in the documentation, but the
>EJBUserManager is the most useful device for ecommerce. With this, you can
>automatically login users and create users  for your website...without one
>call to the EJBUserManager stuff. In order to use this, you will have to add
>the following to your orion-application.xml file:
>
>
> 
> 
>
>
>I found this tidbit in the mail archive. Then you can use the role manager
>to allow users access to ejb resources, and the role manager automatically
>uses the your databank with cmp to create userscreate a user like this:
>
>try
>{
>RoleManager roleManager = (RoleManager)new
>InitialContext().looku("java:comp/RoleManager");
>if(roleManager.getPrincipal(username) != null)
>   throw new DuplicateAccountException(username)
>Principal principal = roleManager.createPrincipal(username, password);
>roleManager.addToRole(principal, role);
>roleManager.store();
>}
>catch(NamingException e){}
>catch(UserAlreadyExistsException e){}
>catch(InstantiationException e){}
>catch(IOException e){}
>
>and like magic, a user database is created. Of course, you also have to make
>sure your roles are part of your groups.
>
>This is the great secret of orion...great stuff, no documentation! It took
>me weeks to figure this out. I wish there was a tutorial on these simple
>issues:
>
>How do you login in a client through a database of usernames/passwords?
>How do you enroll a client into a database of usernames/passwords?
>How do you control access to web resources (ejb's, jsp's, servlets)?
>
>The existing documentation on this is about as clear as mud.
>
>Regards,
>
>Lawrence
>
>
>
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Guilherme
>Ceschiatti
>Sent: Monday, September 18, 2000 1:58 PM
>To: Orion-Interest
>Subject: User/Group manager guide
>
>
>Hi!
>
>I'm almost leaving Orion because the lack of documentation, mainly about how
>to
>manage User/Groups. As many people have lots of doubts related to it too,
>I'm
>asking the Orion team or anybody else to write a tutorial about it.  I
>really
>don't want to leave Orion, because I've made good things on it, but I'm
>spending a lot of time trying to "decifrate" how to use the Orion API.
>
>Thanks.
>

Re: Doubts on finder methods & orion-ejb-ar.xml

2000-09-19 Thread Nick Newman

Hi Sven,

The field names should be the "name", not the "persistence-name".  So you
should use "$1 = $_fantasia".  You can check this by viewing the generated
SQL after deployment.

I'm not sure about the LIKE construction - but it sounds reasonable.

Nick

At 10:23 AM 9/19/00 -0300, you wrote:
>I have a couple of doubts concerning the  tag.
>specifically, I would like to implement a query like "select * from
>table where field LIKE '%value'"
>
>Considering I have:
>   persistence-name="FANTASIA" />
>in my orion-ejb-jar.xml.
>and the docs tell me:
>  
>I suppose (not really clear in the docs) that $1 is the value passed to
>the finder method and $MyField is the persistence name, in the above
>example FANTASIA and not _fantasia. Is that correct?
>
>in this case can I create a query like:
>   
>
>Sven
>-- 
>
>==
>Sven E. van 't Veer  
>http://www.cachoeiro.net
>Java Developer [EMAIL PROTECTED]
>
>==





Using JMS from an Applet

2000-09-19 Thread Andrew Panagos

Is it possible to use Orion's JMS implementation from an applet. I know
Fiorano does have classes you can use.

If not are there any plans to ?

Are there any good messaging alternatives ?

I have used TIBCO quite extensively and it is a good product but a bit on
the expensive side.

Thanks
Andrew




SSL Help required Urgent

2000-09-19 Thread Sanjay





 
I am facing a problem with Installing the Global 
certificate purchased from Verisign
there is no proper help and the help available is 
not sufficient 
 
I have installed the certificate on the server but 
when we get the site certificate alert messagebox it shows that 
the certificate is issued by the "client name" and not the "Verisign name" so 
can you help me where i have gone wrong
 
i have installed both the certificate into one keystore using different 
aliasesfor each.
Is this correct
thank you sanjay
 


RE: User/Group manager guide

2000-09-19 Thread Arved Sandstrom

I'm looking forward to docs and examples myself.

One thing that I've noticed, after copious experimentation with the
DataSourceUserManager, is that the group <=> mapping is somewhat deficient.
In other words, I have my users and groups tables set up, and I've made
suitable mods and adjustments to principals.xml, orion-application.xml,
ejb-jar.xml, and orion-ejb-jar.xml as required (or suggested). In some cases
I'm flailing about, frankly.

In any case, a login with username and password is obviously finding the
group, and mapping the group to role, because when I check the role after
login it's OK. I don't have to hardcode it, which is vital.

However, and I've tried everything, I don't believe this knowledge is being
passed on to the EJB container. No role, however declared in the various
J2EE/Orion descriptors, is able to access *any* method in an EJB that has
method-permissions.

So my assessment on the user/role managers is that it is reasonably useful:
one can assign roles based on login, and test for that as required. But
method-level security in EJBs does not work, at least not in a documented,
demonstrated and reliable manner.

The odd thing is, is that this may not be that much of a big deal. I've been
writing J2EE for pretty much a full year, and I have yet to see a situation
where method-level permissions gain me anything at all. It's literally never
been necessary. It seems to be one of these J2EE things that made ostensible
sense at the time but has little practical value. Just a thought.

The only reason it disturbs me is because it should work and doesn't. :-) If
an example can be supplied - complete with Orion-specific deployment
descriptors - I'll be overjoyed.

Arved Sandstrom

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Lawrence Fry
Sent: Monday, September 18, 2000 6:36 PM
To: Orion-Interest
Subject: RE: User/Group manager guide


Guilherme,

Here Here! I'm glad somebody said it.

But without documentation, you should look at the archives to this list,
because many of these problems have already been worked out.

For example...it isn't said anywhere in the documentation, but the
EJBUserManager is the most useful device for ecommerce. With this, you can
automatically login users and create users  for your website...without one
call to the EJBUserManager stuff. In order to use this, you will have to add
the following to your orion-application.xml file:


 
 


I found this tidbit in the mail archive. Then you can use the role manager
to allow users access to ejb resources, and the role manager automatically
uses the your databank with cmp to create userscreate a user like this:

try
{
RoleManager roleManager = (RoleManager)new
InitialContext().looku("java:comp/RoleManager");
if(roleManager.getPrincipal(username) != null)
throw new DuplicateAccountException(username)
Principal principal = roleManager.createPrincipal(username, password);
roleManager.addToRole(principal, role);
roleManager.store();
}
catch(NamingException e){}
catch(UserAlreadyExistsException e){}
catch(InstantiationException e){}
catch(IOException e){}

and like magic, a user database is created. Of course, you also have to make
sure your roles are part of your groups.

This is the great secret of orion...great stuff, no documentation! It took
me weeks to figure this out. I wish there was a tutorial on these simple
issues:

How do you login in a client through a database of usernames/passwords?
How do you enroll a client into a database of usernames/passwords?
How do you control access to web resources (ejb's, jsp's, servlets)?

The existing documentation on this is about as clear as mud.

Regards,

Lawrence




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Guilherme
Ceschiatti
Sent: Monday, September 18, 2000 1:58 PM
To: Orion-Interest
Subject: User/Group manager guide


Hi!

I'm almost leaving Orion because the lack of documentation, mainly about how
to
manage User/Groups. As many people have lots of doubts related to it too,
I'm
asking the Orion team or anybody else to write a tutorial about it.  I
really
don't want to leave Orion, because I've made good things on it, but I'm
spending a lot of time trying to "decifrate" how to use the Orion API.

Thanks.
Guilherme Ceschiatti
[EMAIL PROTECTED]







Doubts on finder methods & orion-ejb-ar.xml

2000-09-19 Thread Sven van 't Veer

I have a couple of doubts concerning the  tag.
specifically, I would like to implement a query like "select * from
table where field LIKE '%value'"

Considering I have:

in my orion-ejb-jar.xml.
and the docs tell me:
  
I suppose (not really clear in the docs) that $1 is the value passed to
the finder method and $MyField is the persistence name, in the above
example FANTASIA and not _fantasia. Is that correct?

in this case can I create a query like:


Sven
-- 
==
Sven E. van 't Veer  
http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
==




Re: not about Orion, some JDBC questions...

2000-09-19 Thread Sanjay

You just need to implement in your new interface and import into your class
file
i hope this should work

- Original Message -
From: "³¯§Ê¹Å" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Tuesday, September 19, 2000 12:19 PM
Subject: not about Orion, some JDBC questions...


> Hello:
>
> 1. I view the source code of java.sql.*
>found Connection, ResultSet are Interface.
>I feel confuse where and how java implements those Interface really ?
> 2. I want extend functions of ResultSet like add new method,
>How should I do it ?
>
> Thanks in advance.
>
> bubble chen(2000/9/15 AM 08:46:42)
> [EMAIL PROTECTED]
>
>
> ==
>  PC home §K¶O¹q¤l«H½c¡A¥Ó½Ð½Ð¦Ü: http://www.pchome.com.tw
>  PC home Online ºô¸ô®a®x¡@¡@ ·|­û²Ä¤@¡A¥xÆW³Ì¤jªº¤J¤fºô¯¸
> ==
>





RE: session and authenthication management (fwd)

2000-09-19 Thread Magnus Rydin
Title: RE: session and authenthication management (fwd)





Hi Truong.
In the web.xml you specify what page to use as a login form and a aditional login error form.
Then you just make sure that you protect the rest of your pages.
As there is no action in the FORM tag on the login page, whatever URL the user tried to reach (that was protected), is the target of the form.

The submit button is in the form of a IMAGE, so its there allright.
Hope this helps,
Magnus Rydin



> Hello,
> I would like to build a user login system. So I have studied the atm
> example, but anyway I didn't know how it is implemented. 
> Could you give
> me any hint?
> e.g. in the form tag there is no action attribute and submit
> button. Where is the session creation and user authenthication?
> Thanks in advance,
> Ly
> 
> 





Running servlets/jsps with security restrictions

2000-09-19 Thread Vlad Petric



   Is Orion able to run jsp pages/servlets in threads with security
restrictions  (different permission, maybe a different SecurityManager)?

My idea was to somehow change the generated servlet code for a JSP
and remove permissions at the beginning and put them back at the end

   Vlad






Re: not about Orion, some JDBC questions...

2000-09-19 Thread Robert Krueger


not trying to be an ***hole here but could you please post these questions 
to an appropriate forum (comp.lang.java.?) instead of one dedicated to 
issues regarding the use of orion application server.

thanks,

robert

p.s.: doesn't really make a difference if you "warn" about that in the subject


At 19:19 19.09.00 , you wrote:
>Hello:
>
>1. I view the source code of java.sql.*
>found Connection, ResultSet are Interface.
>I feel confuse where and how java implements those Interface really ?
>2. I want extend functions of ResultSet like add new method,
>How should I do it ?
>
>Thanks in advance.
>
>bubble chen(2000/9/15 AM 08:46:42)
>[EMAIL PROTECTED]
>
>
>==
>  PC home §K¶O¹q¤l«H½c¡A¥Ó½Ð½Ð¦Ü: http://www.pchome.com.tw
>  PC home Online ºô¸ô®a®x¡@¡@ ·|­û²Ä¤@¡A¥xÆW³Ì¤jªº¤J¤fºô¯¸
>==

(-) 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: Online Orion Support

2000-09-19 Thread Karl Avedal

Hello,

Orion-interest is not an official support channel, it's for discussion
among the orion user community.

Regards,
Karl Avedal

"J.T. Wenting" wrote:

> AFAIK this is it...
>
>  -Original Message-
>  From: [EMAIL PROTECTED]
>  [mailto:[EMAIL PROTECTED]]On Behalf Of
>  Sanjay
>  Sent: Tuesday, September 19, 2000 11:11
>  To: Orion-Interest
>  Subject: Online Orion Support
>
>  Hello there ,Is there any online Orion support available?We
>  have a licensed  verison of Orion but still i am unable to
>  get support. thank youCheers
>





session and authenthication management (fwd)

2000-09-19 Thread Joseph B. Ottinger

More stuff sent to me and not the list. :)

---
Joseph B. Ottinger   [EMAIL PROTECTED]
http://cupid.suninternet.com/~joeo  HOMES.COM Developer

-- Forwarded message --
Date: Mon, 18 Sep 2000 19:50:05 +0200
From: Truong Di Ly <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: session and authenthication management

Hello,
I would like to build a user login system. So I have studied the atm
example, but anyway I didn't know how it is implemented. Could you give
me any hint?
e.g. in the form tag there is no action attribute and submit
button. Where is the session creation and user authenthication?
Thanks in advance,
Ly





RE: 413 Request Entity Too Large

2000-09-19 Thread J.T. Wenting



please 
turn of capslock...

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of 
  SanjaySent: Tuesday, September 19, 2000 12:20To: 
  Orion-InterestCc: [EMAIL PROTECTED]Subject: Re: 
  413 Request Entity Too Large
  ERROR DUE TO oRION BUG USE LATEST 
  VERSION
  
- Original Message - 
From: 
Mike 
Cannon-Brookes 
To: Orion-Interest 
Cc: [EMAIL PROTECTED] 
Sent: Tuesday, September 19, 2000 9:59 
AM
Subject: 413 Request Entity Too 
Large

Sometimes 
I get this as the result of a jsp page
"413 Request Entity Too Large"
Reloading seems to fix 
it - why does this occur? Is it an Orion bug or a malformed request? Surely 
the former if reloading fixes it? Network problem?
 
Mike
 
Mike 
Cannon-Brookes - Associate Editor, Australiainternet.com Corporation - 
The Internet Industry Portal 
Ph: (612) 9251 3397 - Mob: 
0416 106090
- The Media Network @ http://australia.internet.com- Meet A Guru @ http://www.breakfastforums.com.au- Subscribe Online @ http://www.enewsletters.com.au
 


Re: not about Orion, some JDBC questions...

2000-09-19 Thread Ishpal

Hi,

The implementation of these interfaces is given by jdbc driver vendor.
If you see the source code given by the vendor, u'll find classes
instead of interfaces...

Hope this helps (if i'm not wrong )

Bye,
Ishpal

³¯§Ê¹Å wrote:
> 
> Hello:
> 
> 1. I view the source code of java.sql.*
>found Connection, ResultSet are Interface.
>I feel confuse where and how java implements those Interface really ?
> 2. I want extend functions of ResultSet like add new method,
>How should I do it ?
> 
> Thanks in advance.
> 
> bubble chen(2000/9/15 AM 08:46:42)
> [EMAIL PROTECTED]
> 
> ==
>  PC home §K¶O¹q¤l«H½c¡A¥Ó½Ð½Ð¦Ü: http://www.pchome.com.tw
>  PC home Online ºô¸ô®a®x¡@¡@ ·|­û²Ä¤@¡A¥xÆW³Ì¤jªº¤J¤fºô¯¸
> ==




RE: Online Orion Support

2000-09-19 Thread J.T. Wenting



AFAIK 
this is it...

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of 
  SanjaySent: Tuesday, September 19, 2000 11:11To: 
  Orion-InterestSubject: Online Orion Support 
  Hello there ,
  Is there any online Orion support available? 
  
  We have a licensed  verison of 
  Orion but still i am unable to get support. 
   
  thank you 
  Cheers
   
   


not about Orion, some JDBC questions...

2000-09-19 Thread 陳廷嘉

Hello:

1. I view the source code of java.sql.*
   found Connection, ResultSet are Interface.
   I feel confuse where and how java implements those Interface really ?
2. I want extend functions of ResultSet like add new method,
   How should I do it ?

Thanks in advance.

bubble chen(2000/9/15 AM 08:46:42)
[EMAIL PROTECTED]


==
 PC home §K¶O¹q¤l«H½c¡A¥Ó½Ð½Ð¦Ü: http://www.pchome.com.tw 
 PC home Online ºô¸ô®a®x¡@¡@ ·|­û²Ä¤@¡A¥xÆW³Ì¤jªº¤J¤fºô¯¸ 
==




RE: Accessin EJB from a stand alone client.

2000-09-19 Thread Peter Delahunty

create a file called jndi.properties and put it in your class path.
 
the content of the the JNDI  should look something like this.
 
java.naming.factory.initial=com.evermind.server.ApplicationClientInitialCont
extFactory

java.naming.provider.url=ormi://localhost/MyApp

java.naming.security.principal=admin

java.naming.security.credentials=123

where MyApp is replaced by the name of your application, the name you gave
it when you put an entry in the server.xml file. Also the principal and
credential should match a user in the principals.xml file.

 

 

 

 

-Original Message-
From: Martin Andersson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 19, 2000 9:29 AM
To: Orion-Interest
Subject: Accessin EJB from a stand alone client.



Please give me som pointers. I'm stuck in my work due to this problem...
 
I would like to know how to use a standalone client to access EJB in Orion.
I have no problem using these beans from a JSP-page within Orion but trying
to access them from outside Orion doesn't work.
It has something to do with the JNDI-context. It would save me a lot of time
if somewhone could tell med how to configure Orion the right way. 
 
Thanks in advance
 
/M Andersson





Re: 413 Request Entity Too Large

2000-09-19 Thread Sanjay



ERROR DUE TO oRION BUG USE LATEST 
VERSION

  - Original Message - 
  From: 
  Mike 
  Cannon-Brookes 
  To: Orion-Interest 
  Cc: [EMAIL PROTECTED] 
  Sent: Tuesday, September 19, 2000 9:59 
  AM
  Subject: 413 Request Entity Too 
  Large
  
  Sometimes I 
  get this as the result of a jsp page
  "413 Request Entity Too Large"
  Reloading seems to fix it 
  - why does this occur? Is it an Orion bug or a malformed request? Surely the 
  former if reloading fixes it? Network problem?
   
  Mike
   
  Mike 
  Cannon-Brookes - Associate Editor, Australiainternet.com Corporation - 
  The Internet Industry Portal 
  Ph: (612) 9251 3397 - Mob: 
  0416 106090
  - The Media Network @ http://australia.internet.com- 
  Meet A Guru @ http://www.breakfastforums.com.au- Subscribe Online @ http://www.enewsletters.com.au
   


Re: Online Orion Support

2000-09-19 Thread Karl Avedal

Hello Sanjay,

I am unable to find any support request from you (or any mail from you
to the support@ address).

To get support, follow the instructions you got when you bought the
license (mail [EMAIL PROTECTED] with your customernumber in the
subject). If you have already done so but the mails for some reason
haven't gotten here, can you please try again?

If you do not know your customernumber, you can mail
[EMAIL PROTECTED] with your information and they will give it to
you. I tried to look it up now, but couldn't find any tw2.com as a
customer, so I guess you used another name for the purchase. Of course,
if you need support and is a paying customer, we are not anal about you
providing your customer number, but it makes it much easier for us when
you provide it (we can sort all your support questions correctly so that
we can immediately know what you are doing when we get a new request.)

Orion-interest is not a support-forum.

Regards,
Karl Avedal

Sanjay wrote:

> Hello there ,Is there any online Orion support available?We have a
> licensed  verison of Orion but still i am unable to get support. thank
> youCheers





Re: Accessin EJB from a stand alone client.

2000-09-19 Thread Dave Smith



Try
http://www.orionsupport.com/jndi-ejb.html
 
Martin Andersson wrote:

Please
give me som pointers. I'm stuck in my work due to this problem... I
would like to know how to use a standalone client to access EJB in Orion.
I have no problem using these beans from a JSP-page within Orion but trying
to access them from outside Orion doesn't work.It
has something to do with the JNDI-context. It would save me a lot of time
if somewhone could tell med how to configure Orion the right way. Thanks
in advance /M Andersson

--
Dave Smith
Software Development Manager
e-Net Software Limited
Bath
United Kingdom
[EMAIL PROTECTED]
 



begin:vcard 
n:Smith;Dave
tel;cell:+44 797 0008867
tel;work:+44 1225 445610
x-mozilla-html:TRUE
url:http://www.enetgroup.co.uk
org:e-Net Software Ltd
adr:;;26-45 Cheltenham Street;Bath;;BA2 3EX;United Kingdom
version:2.1
email;internet:[EMAIL PROTECTED]
title:Software Development Manager
fn:Dave Smith
end:vcard



RE: Accessin EJB from a stand alone client.

2000-09-19 Thread J.T. Wenting



see 
the demo-applications and stop using ugly 
background-colors...
 

J.T. Wenting[EMAIL PROTECTED]Murphy was 
wrong, things that can't go wrong will anyway 

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Martin 
  AnderssonSent: Tuesday, September 19, 2000 10:29To: 
  Orion-InterestSubject: Accessin EJB from a stand alone 
  client.
  
  Please give me som pointers. I'm stuck in my work 
  due to this problem...
   
  I would like to know how to use a standalone 
  client to access EJB in Orion. I have no problem using these beans from a 
  JSP-page within Orion but trying to access them from outside Orion doesn't 
  work.
  It has something to do with the 
  JNDI-context. It would save me a lot of time if somewhone could tell med 
  how to configure Orion the right way. 
   
  Thanks in advance
   
  /M 
Andersson


Online Orion Support

2000-09-19 Thread Sanjay



Hello there ,
Is there any online Orion support available? 

We have a licensed  verison of 
Orion but still i am unable to get support. 
 
thank you 
Cheers
 
 


Re:

2000-09-19 Thread James Ho

On Mon, 18 Sep 2000 08:54:01 -0600, you wrote:

Hi Nick,

Um...I cannot have it as the same app...this is what my system looks
like...

EACH supplier, will have a EJB deployed, which can be called from this
'virtual supplier'.  So the EJBs are deployed at the supplier's side,
wheras the servlet is deployed at the virtual supplier side.. :((

3) I have been told to use the global EJB name (or something like
that) to lookup the EJB?  so I thought "Stamp" would be the one.. :((

I've tried using java:comp/env/Stamp, it is just not found...maybe
that's because they are in different apps...I think it would worth a
try to deploy them locally in one app to test it out...

4) What exactly is that passwd/id for in the context?  isn't that used
to access the directory/naming service in Orion?  

Sorry if I sound too silly, as I am a newbie in orion/EJB stuff. :)

Thanks heaps for your help..

regards, James.


>Hi,
>
>1) I think the EJB and the servlet will have to be two modules in the same
>application.
>
>2) The ejb-ref should NOT be commented out.
>
>3) The lookup string should be "java:comp/env/Stamp", not "Stamp"
>
>4) The context should be set calling just new InitialContext() without args
>(the id/password being supplied in the datasource.xml).
>
>Good luck!
>Nick
>
>
>At 06:56 PM 9/18/00 +1100, you wrote:
>>Hi all,
>>
>>I have a urgent problem regarding EJB and servlet, I cannot find the 
>>home interface of the bean from the servlet (whereas a standalone 
>>client works very well)...Can anyone pls give me some hint as to what 
>>maybe be wrong here?  Below is the background info, sorry, it is kind 
>>of long...
>
>
>





Re: 413 Request Entity Too Large

2000-09-19 Thread Magnus Stenman

For general instructions on how to find what you want but applied to this
specific scenario:

1. Go to http://www.orionserver.com/
2. Click "bugzilla".
3. Click "Query...".
4. Select all bug statuses (new, closed, etc).
4. Enter "Request Entity Too Large" in the description field.
5. Submit.
6. Click the found entry (leading to
http://www.orionserver.com/bugz/bugzilla-2.10/show_bug.cgi?id=35).
(7. Add additional info like reopening the bug if you feel it's still there
in any form. If so supply as many details as possible.)

Hope it helps!

/Magnus Stenman, the Orion team


- Original Message -
From: Mike Cannon-Brookes
To: Orion-Interest
Cc: [EMAIL PROTECTED]
Sent: Tuesday, September 19, 2000 10:59 AM
Subject: 413 Request Entity Too Large


Sometimes I get this as the result of a jsp page
"413 Request Entity Too Large"
Reloading seems to fix it - why does this occur? Is it an Orion bug or a
malformed request? Surely the former if reloading fixes it? Network problem?

Mike


Mike Cannon-Brookes - Associate Editor, Australia
internet.com Corporation - The Internet Industry Portal
Ph: (612) 9251 3397 - Mob: 0416 106090
- The Media Network @ http://australia.internet.com
- Meet A Guru @ http://www.breakfastforums.com.au
- Subscribe Online @ http://www.enewsletters.com.au






Accessin EJB from a stand alone client.

2000-09-19 Thread Martin Andersson




Please give me som pointers. I'm stuck in my work 
due to this problem...
 
I would like to know how to use a standalone client 
to access EJB in Orion. I have no problem using these beans from a JSP-page 
within Orion but trying to access them from outside Orion doesn't 
work.
It has something to do with the 
JNDI-context. It would save me a lot of time if somewhone could tell med 
how to configure Orion the right way. 
 
Thanks in advance
 
/M 
Andersson


Re: CMP java.util.Date property on Postgres

2000-09-19 Thread Markus Holmberg

On Mon, Sep 18, 2000 at 07:31:56PM +, [EMAIL PROTECTED] wrote:
> I have an entity bean that contains a java.util.Date property.  Creating
> works fine, but when I using a finder method, I get the following error:
> 
> com.evermind.server.rmi.OrionRemoteException: Database error: Bad Timestamp
> Format at 19 in 2000-09-18 14:08:47.86-04; nested exception is:
> Bad Timestamp Format at 19 in 2000-09-18 14:08:47.86-04
> 
> Has anyone seen this before using java.util.Date, CMP, orion and Postgres?

The problem is that a java.util.Date and a Date in Postgres is not the
same. A java.util.Date represents a moment in time (millisecond
precision), while a Date in Postgres represents a specific day (year,
month, day).

Use the Postgres type Timestamp instead and it will work. The
database-schema for Postgres distributed with Orion has java.util.Date
mapped to Date which isn't correct.



http://www.postgresql.org/users-lounge/docs/7.0/postgres/datatype1134.htm

Beware of that setting a column to new Date(0) will render it unreadable
for Java since Postgres will return the string 'epoch' for this which the
Java date parser won't recognize.

Regards, Markus.

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




413 Request Entity Too Large

2000-09-19 Thread Mike Cannon-Brookes



Sometimes I 
get this as the result of a jsp page
"413 Request Entity Too Large"
Reloading seems to fix it - 
why does this occur? Is it an Orion bug or a malformed request? Surely the 
former if reloading fixes it? Network problem?
 
Mike
 
Mike 
Cannon-Brookes - Associate Editor, Australiainternet.com Corporation - 
The Internet Industry Portal 
Ph: (612) 9251 3397 - Mob: 0416 
106090
- The Media Network @ http://australia.internet.com- 
Meet A Guru @ http://www.breakfastforums.com.au- Subscribe Online @ http://www.enewsletters.com.au
 


RE: User/Group manager guide

2000-09-19 Thread Michael Mok

Jason

Thanks for the reply. I was confused with the word "already" and "being
written".

Regards,

Michael Mok

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jason Rimmer
Sent: Tuesday, 19 September 2000 14:45
To: Orion-Interest
Subject: Re: User/Group manager guide

I think the operative phrase here is "being written", e.g. in
process.
When it's done I'm sure we'll hear about it first on this list.

Michael Mok wrote:
>
> Karl
>
> Where is this guide found? Any URL to the Orion Website or .HTML folder in
> the installed Orion directory?
>
> TIA
>
> Michael Mok
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Karl Avedal
> Sent: Tuesday, 19 September 2000 9:45
> To: Orion-Interest
> Subject: Re: User/Group manager guide
>
> Hello,
>
> There's already a guide about this being written.
>
> Regards,
> Karl Avedal
>
> Guilherme Ceschiatti wrote:
>
> > Hi!
> >
> > I'm almost leaving Orion because the lack of documentation, mainly about
> how to
> > manage User/Groups. As many people have lots of doubts related to it
too,
> I'm
> > asking the Orion team or anybody else to write a tutorial about it.  I
> really
> > don't want to leave Orion, because I've made good things on it, but I'm
> > spending a lot of time trying to "decifrate" how to use the Orion API.
> >
> > Thanks.
> > Guilherme Ceschiatti
> > [EMAIL PROTECTED]

--
Jason Rimmer
[EMAIL PROTECTED]