RE: Some questions on Orion

2001-07-23 Thread Ernie Phelps

Some thoughts:

For support, check http://www.atlassian.com/ and http://www.orionsupport.com
in addition to this list.

For Education, see http://www.orionsupport.com, although I will agree that
this pales in comparison to the Oracle training available.

PL/SQL is built into the DB, and therefore not as cross platform compatible
as Java servlets. If the client wants to run SQL Server, what do you do?

For consultancy, check http://www.atlassian.com/ again, or just ask around
on the list. We have consultants here. However, I will concede that Oracle
has a much larger consultant and marketing base.

On the 20:1 ratio, that is actually quite low. 3 years ago (prices have
probably gone up) 1 Oracle sever with 16 client licenses and Silver yearly
support was almost 50,000 USD. That works out to over 30:1.

In the end, it is an individual decision, but I think cost will be a major
factor for many smaller shops.

- Ernie

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Brynolf
Andersson
Sent: Monday, July 23, 2001 12:53 PM
To: Orion-Interest
Subject: RE: Some questions on Orion


Hi,
my thoughts to this matter:

* Orion has NO support, besides this list which is a good one
* Orion has NO Education
* PL/SQL is not a servlet, it is built into the DB and is widely used.
* Oracle has consultancy, marketing and so forth which is important for
customers (not developers).

So the 20:1 (haven't checked that) is nothing compared to what you get from
Oracle.

Kalle,

PS.
You could get the 1 million dollars if you follow the rules, it i s easy to
win if you make up your own rules.
DS.


>From: "elephantwalker" <[EMAIL PROTECTED]>
>Reply-To: Orion-Interest <[EMAIL PROTECTED]>
>To: Orion-Interest <[EMAIL PROTECTED]>
>Subject: RE: Some questions on Orion
>Date: Sat, 14 Jul 2001 01:27:17 -0700
>
>Paolo,
>
>true.
>
>But you can use perl scripts in orion. Pl/sql, I mean, give me a break.
>That's just an Oracle servlet that could just as well be some other sql
>servlet. Likewise, if you have good cmp/ejbs, there is no need for pl/sql.
>Other developer tools are also integrated with orion. I use Forte to create
>Orion ejb's all of the time.
>
>Struts and other tools are just as good for form building and handling.
>Forte can also be used to automate your form building process with orion.
>
>If you use the opensympony cache, you can beat the Oracle web cache...I
>tried for a year to get the $1 million from Oracle (Larry's famous $1
>million challenge), but they would not let us use orion and opensymphony
>cache!
>
>Orion has one of the best user and role manager api's built into the
>server.
>
>The price difference is 20:1. I mean, give me a break!
>
>Regards,
>
>the elephantwalker
>
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Paolo Ramasso
>Sent: Saturday, July 14, 2001 12:45 AM
>To: Orion-Interest
>Cc: BUCCI,STEFANO
>Subject: Re: Some questions on Orion
>
>
>ciao
>just to clarify yes it is true orion is cheaper than 9ias
>but oc4j (orion) is a component of our application server, we have pl/sql,
>perl,
>form (developer), tools for application integration (worlflow,
>trasformation and
>messaging), business intelligence, intelligent web cache, all these pieces
>are
>included in 9ias, so it depend on your needs to choose the right product.
>ciao
>Paolo
>
>elephantwalker wrote:
>
> > see below...
> >
> > regards,
> >
> > the elephantwalker
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Florian Werner
> > Sent: Friday, July 13, 2001 9:53 AM
> > To: Orion-Interest
> > Subject: Some questions on Orion
> >
> > Hi!
> >
> > I'm currently evaluating Orion for internal use and a customer.
> > Does Orion support/include:
> >
> > RMI over JRMP   ?
> > any OODBMS ?
> > any ORMapping Tools ?
> > Realm-Integration  like LDAP, RDBMS ?
> >
> > > j2ee support for rmi uses the over the wire protocol ormi.
> > > AFAIK, If you can create a schema for the databank (should be easily
>done
> > with OODBMS) this should work.
> > > Like most j2ee vendors, Orion has its own OR mapping tool
> > > EJBUserManager and DataSourceUserManager can be used directly with a
> > database
> > >  and a new custom usermanager can easily use an LDAP server. There is
>also
> > a rolemanager api.
> >
> > Are the any IDEs supporting Orion (beside Kawa from Macromedia) ?
> >
> > > We use Sun's Forte debugging with Orion all of the time.
> >
> > Is ORACLE going to by Orion ?
> >
> > > Oracle has already licensed Orion as oc4j. So you can pay Oracle $30 k
>for
> > Orion, or pay Ironflare $1.5 k ;). oc4j is exactly the same as Orion.
> >
> > Regards
> >Florian Werner
>
>


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp





RE: how to disabled the function of URL rewriting ?

2001-06-18 Thread Ernie Phelps

You should be able to just turn it off in your orion-web.xml. Example:



- Ernie

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of ahfei
Sent: Monday, June 18, 2001 6:43 AM
To: Orion-Interest
Subject: how to disabled the function of URL rewriting ?


hi,everyone:
My application uses class java.net.URL to access a special URL ,and print
the content.
All pages that i want to get content are serviced by ORION server.
Beacuse my application can't accept cookies, so some HREFs in those pages i
got through my application were added "jsessionid=xx" .
I need erase the "jsessionid=xx"  from those HREFs ,so i think i must
disabled the function of URL rewriting in orion,how can i do it ?

thanks!!


ahfei
[EMAIL PROTECTED]






RE: >>>Re: ATM example -> deployment error -> PLEASE some HELP

2001-05-29 Thread Ernie Phelps

Eddie,

To persist the messages to disk when Orion shuts down, add a
persistence-file entry to your queue, like so:


Eye


In my limited experience, this works fine during normal Orion shutdowns, but
does not if Orion terminates abnormally (crashes, kill -9 or X the window).

HTH,

Ernie

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Eddie
Sent: Tuesday, May 29, 2001 7:59 AM
To: Orion-Interest
Subject: Re: >>>Re: ATM example -> deployment error -> PLEASE some HELP


Hellu there,

I already solved it myself.
How ???
I did an upgrade to 1.5.1. Spend some time, such that all my other
applications worked again.and yes the tiny jms application works as
well:

onMessage
Received new quote : Hello, World
Unknown command: -1
ejbRemove called
---

I only have still this Unknow command when I have "jms.debug set to true
when starting orion!!!

Another question: how are the queue's managed and how can I
monitor/influence this ??? For example: when I restart orion, my queues's
are lost or not ??? how does this works ??

Eddie

- Original Message -
From: Eddie <[EMAIL PROTECTED]>
To: Orion-Interest <[EMAIL PROTECTED]>
Sent: Monday, May 28, 2001 7:48 PM
Subject: >>>Re: ATM example -> deployment error -> PLEASE some HELP


> Ok... forgot something...
>
> I did some debugging by starting orion with the options:
> -Djms.debug=true -Dmulticast.debug=true
>
> I then receive the following when I run the client (sends a message):
> 
> Orion/1.4.7 initialized
> Unknown command: -1
> -
>
> Anyone any idea, what this means and where this comes from    :-(
> (I can't find this anywhere in my application nor the config dir of Orion)
>
> BTW: when I play around with atm I don't get this "unknown command" but
> mayby this is because I don't get to the logging part. When do I get to
this
> part ??
> Eddie
>
>
>
> - Original Message -
> From: Eddie <[EMAIL PROTECTED]>
> To: Orion-Interest <[EMAIL PROTECTED]>
> Sent: Monday, May 28, 2001 7:13 PM
> Subject: >>Re: ATM example -> deployment error -> PLEASE some HELP
>
>
> > Ok,
> > I now have my tiny jms client submitting messages, but the ejb doesn't
> > consume them.
> >
> > I use the atm example as guideline and have this running. However when I
> > have a look at the atm example, I notice that neither does atm logs !!1
> That
> > is, there doesn't appear anything in the table com_acme_atm_ejb_mainlog
> > table, whereas other tables are filled!!
> >
> > What are the specific orion requirements, such that the jms-ejb consumes
> the
> > message ?? ( I am running on 1.4.7) and how can I debug the problem
(look
> at
> > the topics's or somthing like that )?? I don't get any output from orion
> in
> > any log !! (strange!!!)
> >
> > I will shortly explain my client and ejb hereunder as they are really
> short:
> > The ejb-jar.xml:
> > 
> > 
> >  
> > 
> >   JMS logger
> >   Hello
> >   HelloMSGBean.HelloBean
> >   Container
> >   JMSType='mainLogMessage'
> >   
> > javax.jms.Topic
> >   
> > 
> >  
> > 
> > 
> >
> > The onmessage part in the ejb:
> > 
> >   public void onMessage(Message message) {
> > System.out.println("onMessage");
> >
> > TextMessage textmessage = null;
> > if (message instanceof TextMessage) {
> >   textmessage = (TextMessage)message;
> > } else {
> >   return;
> > }
> > --
> >
> > The client part:
> > ---
> >   ctx=new InitialContext(p);
> >
> >
>
tcf=(TopicConnectionFactory)ctx.lookup("java:comp/env/jms/theTopicConnection
> > Factory");
> >   tcon = tcf.createTopicConnection();
> >   tcon.start();
> >tsession = tcon.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
> >topic = (Topic)ctx.lookup("java:comp/env/jms/theTopic");
> >tpublisher = tsession.createPublisher(topic);
> >TextMessage message = tsession.createTextMessage();
> >message.setJMSType("mainLogMessage");
> >message.setText("Hello, World");
> >tpublisher.publish(message);
> > 
> >
> > The part in the jms.xml file (I am not sure if this is necessary!!!??):
> > -
> >  
> >   A dummy topic
> >  
> > --
> >
> > The application-client.xml:
> > -
> > 
> >  Something
> >  
> >   jms/theTopicConnectionFactory
> >   javax.jms.TopicConnectionFactory
> >   Container
> >  
> >  
> >   jms/theTopic
> >   javax.jms.Topic
> >   Container
> >  
> > 
> > 
> >
> > That's it, but the ejb doesn't print anything to the STDOUT.
> > What am I doing wrong .
> >
> > Eddie
> >
>
>





RE: JSP variable in nested Tags

2001-05-24 Thread Ernie Phelps

Thanks to all for the suggestions. I have two work arounds, thanks to ideas
from the list. However, I was looking to see if anyone could tell whether
the specification dealt with how this should be handled, or if it was
nebulous, or if it was specifically left up to the implementer to decide. I
looked it over, but really didn't see anything. Thanks again for all the
input and helpful suggestions.

- Ernie

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Hubbach
Sent: Thursday, May 24, 2001 9:31 AM
To: Orion-Interest
Subject: Re:JSP variable in nested Tags


Ernie,

I just had an idea. Why don't you put the whole string in the scriplet,
so instead of
"

That way you just avoid the whole thing.

Jeff.

--
Jeff Hubbach
Internet Developer
New Media Designs, Inc.
www.nmd.com







RE: JSP variable in nested Tags

2001-05-24 Thread Ernie Phelps

Scott,

Thanks for the tip, but in this case I went back and ensured that there were
no spaces between. Still have the same issue.

- E

-Original Message-
From: SCOTT FARQUHAR [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 24, 2001 6:13 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: JSP variable in nested Tags


I have a feeling that this is not orion-specific (websphere ie tomcat does
this too)

if you have any spaces between " and <% then you will encounter this
problem.



>>> [EMAIL PROTECTED] 05/24/01 04:58am >>>
I have an interesting little problem. I am using the Jakarta  tags inside an  tag. One of the attributes of the
 is name, which I am setting using name="<%=
myVar.getMyProp %>". This works fine, until I put text in front of the "<%".
If I do that, it sends the literal string instead of the value of the
variable.

Example 1 (Works):





Produces:



Example 2 (Fails):





Produces:



I have looked at the JSP 1.1 specification, but couldn't find anything that
said it should be processed one way or the other. I have a feeling that this
is an Orion specific issue, but can't find out which way is correct to
submit a bug report. Does anyone on the list have a resource to point me to
on this issue? Thanks in advance for your help.

OS: Win2k
Ver: Orion 1.5.1
JDK: 1.3

- Ernie Phelps






JSP variable in nested Tags

2001-05-23 Thread Ernie Phelps

I have an interesting little problem. I am using the Jakarta  tags inside an  tag. One of the attributes of the
 is name, which I am setting using name="<%=
myVar.getMyProp %>". This works fine, until I put text in front of the "<%".
If I do that, it sends the literal string instead of the value of the
variable.

Example 1 (Works):





Produces:



Example 2 (Fails):





Produces:



I have looked at the JSP 1.1 specification, but couldn't find anything that
said it should be processed one way or the other. I have a feeling that this
is an Orion specific issue, but can't find out which way is correct to
submit a bug report. Does anyone on the list have a resource to point me to
on this issue? Thanks in advance for your help.

OS: Win2k
Ver: Orion 1.5.1
JDK: 1.3

- Ernie Phelps





RE: Orion-based JSP bug -- The Case of the Exhibiting %00

2001-04-30 Thread Ernie Phelps



This 
does not happen on our configuration:
 
Win2k
JDK1.3
Orion 
1.4.8
 
- 
Ernie

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Rex 
  McFarlinSent: Monday, April 30, 2001 11:28 AMTo: 
  Orion-InterestSubject: Orion-based JSP bug -- The Case of the 
  Exhibiting %00 
  Can anyone help 
  us solve a perplexing JSP bug? We have been unsuccessful.
   
  If a "%00" is 
  attached to the end of a URL (as in, http://localhost:8008/dcr/index.jsp%00 ) 
  to a JSP page that is being served by Orion server, the user receives, not the 
  rendered HTML page that he or she might be expecting, but a textual output of 
  the raw JSP code for that page. 
   
  We have found 
  this to be true with the following configuration:
  Orion 
  1.4.1
  Win2K
  JDK1.3
   
  Thank 
  you,
   
  Rex 
  McFarlin
  [EMAIL PROTECTED]
   


RE: parsePostData

2001-04-09 Thread Ernie Phelps

Frank,

Is one of the form fields an input type="file"? If not, why not just use
request.getParameter("parameterName")? Could you give a little more info
about what you are trying to do?

- Ernie

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Frank LaRosa
Sent: Monday, April 09, 2001 12:51 AM
To: Orion-Interest
Subject: parsePostData


I'm having some trouble parsing form data in a JSP page.

I'm using this code:

Hashtable ht = HttpUtils.parsePostData( request.getContentLength(),
request.getInputStream() );

The result is always a Hashtable with a size of zero, even though there
should be data in the form.

I posted the form with . Can anyone
spot what I'm doing wrong? Thanks.





Problem with PostFileInputStream

2001-03-16 Thread Ernie Phelps

Is anyone else having problems with PostFileInputStream.read(byte[], int,
int) throwing ArrayIndexOutOfBoundsException's? I saw the post by Jason von
Nieda on September 27, 2000, but no responses or resolutions other than not
using it. I just entered a report into Bugzilla, #366. If anyone has any
insight, please let me know.

- Ernie Phelps





RE: Custom UserManager.

2001-03-16 Thread Ernie Phelps

Michael,

Are you using RoleManager to do a login? The call should look something like
this (pulled from our CheckLogin action):

// Login
InitialContext context = new InitialContext();
RoleManager roleManager = (RoleManager)
context.lookup("java:comp/RoleManager");
roleManager.login(username, password);

There is a little bit of documentation on it's use in the docs directory at:
\orion\docs\api\com\evermind\security\RoleManager.html

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Michael Gantz
Sent: Friday, March 16, 2001 12:40 AM
To: Orion-Interest
Subject: Custom UserManager.


Server : Orion-1.4.5

I've created a custom UserManager and referenced it in application.xml,
I've taken out the principal tags in all the other files.  Here is my
problem: my custom user manager loads up and the init method gets called
but that's it.  The server never calls getUser on my user manager.  I'm
very sure I'm missing something really silly and simple but I can't find
it due to the complete lack of adequate documentation.

Thanks in advance.

Michael L. Gantz





RE: jsp form-based authentication

2001-02-27 Thread Ernie Phelps



Roland,
 
Hope 
you are asking what I think you are. :) If this is about setting up your own 
user manager and calling it from role manager, keep reading. I am still trying 
to work out all the kinks on this for myself, but there is a message in the 
archives by Chris Miller, "Re: custom user management" on Oct 17, 2000 
that really got me started on this. He explains what to implement and override, 
with notes on methods that require special attention. There are a few things 
missing, be careful to implement shells of all the methods instead of just the 
ones he lists as needing special attention, but otherwise it is very concise. 
HTH,
 
- 
Ernie
 
 -Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Roland 
DongSent: Tuesday, February 27, 2001 3:07 AMTo: 
Orion-InterestSubject: RE: jsp form-based 
authentication

  Has 
  anyone responded to this message? I am also interested in 
  that...
   
  Roland
  
-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Vaskin 
KissoyanSent: Friday, February 23, 2001 10:46 AMTo: 
Orion-InterestSubject: jsp form-based 
authentication
I need a good example of looking up 
username/password in a database, how do you override the security so that it 
checks a database instead of checking the internal web.xml file and 
principals.xml?
 
 


Custom Role Manager?

2001-02-26 Thread Ernie Phelps

Is there a way in Orion to specify/create a custom implementation of
RoleManager? Basically, what I want is to have a method like this:

login(java.lang.String username, java.lang.String password, java.lang.String
thirdparameter)

where thirdparameter is a custom parameter that will narrow the
username/password lookup. The reason for this is we are handling multiple
e-commerce areas, where a customer can have different priveledges and rates
depending on the area (thirdparameter), even though the role remains the
same. If this is not possible currently, are there any plans for
implementing it? Also, does anyone have ideas for a workaround? Thus far the
workaround we have come up with is creating a compound
username+thirdparameter which is then separated by the custom UserManager,
but we would like a cleaner implementation. Thanks in advance.

- Ernie





RE: Customer User Manager problems

2001-02-22 Thread Ernie Phelps

Juan,

I found the problem thanks to your example. My implementation of
TMUserManager.getGroup was returning null, which always failed even when the
user was found and had a proper password. Fixed this and it works fine now.
Thank you very much for the assistance.

- Ernie

-Original Message-
From: Juan Lorandi (Chile) [mailto:[EMAIL PROTECTED]]



User usr = UserManagerImp.getUser("jlorandi");
System.out.println("User:"+usr.getName);
Group grp = UserManagerImp.getGroup("sr_guest");
System.out.println("Group:"+grp.getName);

System.out.println("isMember?"+usr.isMemberOf(grp));






RE: Customer User Manager problems

2001-02-22 Thread Ernie Phelps

Juan,

I have tried putting the user into the principals.xml file, although the
eventual goal is to not use this file at all (provide custom groups from the
database via our UserManager). This does not seem to have any effect. I am
not currently using a login error page, but I am not that worried about the
login repetition for failure at the moment.

My main concern is what is failing in the process, since authenticate is
returning true from TMUser. There is presumably other code that I have to
modify to get this to work, any idea's would be appreciated. Thanks.

- Ernie

-Original Message-
From: Juan Lorandi (Chile) [mailto:[EMAIL PROTECTED]]
Subject: RE: Customer User Manager problems

have you got a login error page? that's why the three times,
also, if a user doesn't belong to a sr_guest group, you won't have access

> -Original Message-----
> From: Ernie Phelps [mailto:[EMAIL PROTECTED]]
> Subject: Customer User Manager problems
>
> I am having difficulties getting a custom user manager to
> work. Here are the
> steps I have taken:
>
> Implemented User (as TMUser)
> Implemented Group (as TMGroup)
> Extended AbstractUserManager (as TMUserManager)
>
> Added the following to orion-application.xml:
>
>   
>
>   
>   
>   
>name="<jndi-user-role>">
>   
>   
>   
>   
>   
>   
>   
>   
>   
>name="<jndi-user-role>">
>   
>   
>   
>   
>   
>   
>   
>   
>
> Added the following to web.xml:
>
>   
>   
>   Main
>   /*
>   /list.jsp
>   
>
>   
>   sr_guest
>   
>   
>
>   
>   BASIC
>   TM
>   
>
>   
>   sr_guest
>   
>
> Here is the result:
>
> 1. I start Orion. It calls TMUserManager Init.
> 2. I start the browser, direct it to my controller. It pops the basic
> authentication dialog. I enter username and password.
> TMUserManager.getUser
> is called.
> TMUser.authenticate is called and returns true.
> 3. The basic authentication dialog pops again. This happens 3
> times then
> fails.
>
> Any idea what I am missing here? I feel I have missed
> something basic, but
> can't put
> my finger on it. TIA,
>
> - Ernie





Customer User Manager problems

2001-02-22 Thread Ernie Phelps

I am having difficulties getting a custom user manager to work. Here are the
steps I have taken:

Implemented User (as TMUser)
Implemented Group (as TMGroup)
Extended AbstractUserManager (as TMUserManager)

Added the following to orion-application.xml:


























Added the following to web.xml:



Main
/*
/list.jsp



sr_guest




BASIC
TM



sr_guest


Here is the result:

1. I start Orion. It calls TMUserManager Init.
2. I start the browser, direct it to my controller. It pops the basic
authentication dialog. I enter username and password. TMUserManager.getUser
is called.
TMUser.authenticate is called and returns true.
3. The basic authentication dialog pops again. This happens 3 times then
fails.

Any idea what I am missing here? I feel I have missed something basic, but
can't put
my finger on it. TIA,

- Ernie