RE: Servlet Filters

2001-03-01 Thread Manne Fagerlind
If that doesn't work, you could try using the HttpServletRequest.getRequestURI() method to spot requests for /test/* and forward these requests to the right servlet or JSP. /Manne -Original Message- From: Trond Nilsen [mailto:[EMAIL PROTECTED]] Sent: 28 February 2001 22:51 To:

RE: CMP 2.0

2001-03-01 Thread Randahl Fink Isaksen
Title: RE: CMP 2.0 Thanks, Tim I just dived into chapter 16 (Transactions) and it is clear that there is definately important stuff there which needs to be taken into consideration to avoid errors. However, it turned out that the reason for the problem I described was the fact that I had

RE: In Orion, are tag handler instances reused or reinstantiated?

2001-03-01 Thread Randahl Fink Isaksen
Experience tells me they are reused in Orion. If I have an optional tag attribute on a tag and the tag is used multiple times on a page I have found out that I need to make sure that any contents set in the optional attribute must be cleared manually by me, or I will get whatever contents was set

RE: recreate tables for a cmp

2001-03-01 Thread Randahl Fink Isaksen
In fact if you just save your ejb-jar.xml and thereby change its time stamp that will make Orion recreate tables. I am not sure, but I think you can invoke orion.jar with a parameter to get it done (check out the docs), if you are looking for a nicer way... Yours Randahl -Original

RE: signoff EJB-INTEREST

2001-03-01 Thread Randahl Fink Isaksen
Please use the form at www.orionserver.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lu, Michael Sent: 28. februar 2001 20:47 To: Orion-Interest Subject: signoff EJB-INTEREST signoff EJB-INTEREST

RE: Database schema type mappings

2001-03-01 Thread Randahl Fink Isaksen
Jeff, about the bug you mention... that sounds very strange to me and it sure should not have anything to do with byte size, I think. The value millisInMonth easily fits into a long... So if you have a long representing the current time milliseconds and subtract one month of milliseconds, yes,

RE: CMP 2.0

2001-03-01 Thread Randahl Fink Isaksen
As I just posted, Jeff. The error was due to the fact that I had declared my primary keys as Integer but I returned the primitive type int from my ejbCreate methods. As soon as I changed this, everything worked fine. I am (to put it mildly) very surprised that Orion did _not_ give me a compile

RE: Database schema type mappings

2001-03-01 Thread Randahl Fink Isaksen
Thanks for the reply Jeff. Know I have two replies: One saying primary keys can be primitive types and one that says they can't. I am really looking forward to hearing your arguments, gentlemen ;-) BTW, Jeff: Your answer to question number 1 - do you have that from the specification, or...

RE: login security include file

2001-03-01 Thread Manne Fagerlind
Strangely enough, jsp:include always flushes the writer - i.e. the flush="false" is ignored. This is in the JSP 1.1 spec. Don't ask me why... /Manne -Original Message-From: Vaskin Kissoyan [mailto:[EMAIL PROTECTED]]Sent: 28 February 2001 22:36To: Orion-InterestSubject: login

JSP set-property bug

2001-03-01 Thread Falk Langhammer
Hi list, I believe that there is a bug in Orion's JSP engine (1.4.5). jsp:setProperty name="webpublish" property="*" / About 6 out of 53 properties are not set. When I set those explicitely as in jsp:setProperty name="webpublish" property="previewCheckBoxState" / everything is ok.

RE: EJB values into xml attributes (a little off topic, I know)

2001-03-01 Thread Randahl Fink Isaksen
I will rephrase my question then (still, a little off topic): On Orion at least, it seems transformation only works for element values NOT for attribute values. If I have !DOCTYPE doc [ !ENTITY "amp;" ] Then doc:p/doc:p will get transformed to pamp;/p But p x=""/ will just get

RE: Database schema type mappings

2001-03-01 Thread Jeff Schnitzer
Yes, it fits into a long, but by default constants like 1000 * 60 * 60 * 24 * 30 are ints, so the arithmetic is done using int math. Inconveniently, the value of that expression is (slightly) greater than Integer.MAX_VALUE so overflow occurs. Thus the negative value which gets assigned to

Re: Orion with tomcat!!!

2001-03-01 Thread Joe Walnes
At 16:54 28/02/2001 -0500, JangHo Ki wrote: Hello. I know it has been mentioned in serveral times. However, I could not make Orion as EJB server work with Apache Tomcat. A servlet is placed to access ejb at tomcat's WEB-INF/classes directory, along with application-client.xml under META-INF

RE: Database schema type mappings

2001-03-01 Thread Jeff Schnitzer
It's at the bottom of page 159 of Richard Monson-Haefel's _Enterprise Java Beans, 2nd Ed_: "Although primary keys can be primitive wrappers (Integer, Double, Long, etc.), primary keys cannot be primitive types (int, double, long, etc.)" I wasn't able to locate an explicit statement in the spec

Starting threads not permitted in servlet?

2001-03-01 Thread Manne Fagerlind
Somebody on this list said that you're not allowed to start threads inside a servlet container. Is this really in the spec (this was claimed), or is it implementation-dependent? /Manne

RE: CMP 2.0

2001-03-01 Thread Jeff Schnitzer
I've heard comments on this list in the past from Karl Magnus that bad, misleading, or missing error messages should be logged in Bugzilla as bugs. http://www.orionserver.com/bugzilla :-) Jeff -Original Message- From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]] Sent: Thursday,

Re: EJB values into xml attributes (a little off topic, I know)

2001-03-01 Thread Falk Langhammer
!DOCTYPE doc [ !ENTITY "amp;" ] I do not think this is legal. (1) Recursive entitity declaration (2) amp; is predefined, is reserved as entity prefix. I do not think that You can redefine the XML grammar by defining "" or "" as entities. In summary, You do not need the DOCTYPE at all. (I

Re: Form based authentication problem

2001-03-01 Thread Jonathan James
I get a 405 error. "The method POST is not supported by this URL" Jonathan - Original Message - From: cybermaster To: Orion-Interest Sent: Wednesday, February 28, 2001 10:22 AM Subject: RE: Form based authentication problem Post works for me in my

Re: Database schema type mappings

2001-03-01 Thread Falk Langhammer
- Original Message - long millisInMonth = (long)1000 * 60 * 60 * 24 * 30; This should probably go in some sort of Java-puzzle magazine article. :-) I think this is a standard situation in Java and C. Most programmers would probably write it as long millisInMonth = 1000L * 60L * 60L *

Re: In Orion, are tag handler instances reused or reinstantiated?

2001-03-01 Thread Jonathan James
Actually it's configurable. Just add "-Djsp.reuse.tags=[false|true]" to your command line when you launch the server. Jonathan - Original Message - From: "Randahl Fink Isaksen" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Thursday, March 01, 2001 2:47 AM Subject: RE: In

Re: Starting threads not permitted in servlet?

2001-03-01 Thread Falk Langhammer
Somebody on this list said that you're not allowed to start threads inside a servlet container. Is this really in the spec (this was claimed), or is it implementation-dependent? I am not sure for the web container. But the situation is even fuzzy for an EJB container. I believe that in Orion,

RE: I switch from X to Orion because:

2001-03-01 Thread Arved Sandstrom
Hi, Mike Any or all of the Apache products are open to criticism, just as any software should be. I guess my reaction to points like yours below would be: (1) severe bloat: by what definition? The core JAR size? The distribution size? The API size? For that matter, if we're talking APIs, the

RE: CMP 2.0

2001-03-01 Thread Matt Simmerson
Title: RE: CMP 2.0 But its java that compiles, not Orion. -Original Message- From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 01, 2001 9:19 AM To: Orion-Interest Subject: RE: CMP 2.0 As I just posted, Jeff. The error was due to the fact that I had

RE: Database schema type mappings

2001-03-01 Thread Randahl Fink Isaksen
Jeff wrote: This should probably go in some sort of Java-puzzle magazine article. :-) ROFL ! - I am glad you shared that top-secret-hard-to-find-under-cover-bug experience with us; I too might have used a lot of time finding out... in fact I think most developers would. Randahl -Original

Capturing the output of a JSP page as HTML

2001-03-01 Thread APapada
Can anyone tell me if this is possible. I have a JSP page that contains information about an order that was just entered (Essentially a confirmation page). What I want to do is somehow intercept the output stream inside the JSP page and write it to a file, as plain html, which I will later

RE: Database schema type mappings

2001-03-01 Thread Michael A Third
I went digging through the EJB 1.1 specification, and it doesn't specifically say you can't use primitive types, but it does say they primary key class needs to be serializable. I have created a number of EJB's using the primitive long as the primary key and have had no problems using them. So

RE: Database schema type mappings

2001-03-01 Thread Michael A Third
Correction: The last bullet should be: * The home interface must always include the findByPrimaryKey method, which is always a single-object finder. The method must declare the primary key class as the method argument. Michael -Original Message- From: Michael A Third [mailto:[EMAIL

RE: login security include file

2001-03-01 Thread Juan Lorandi (Chile)
andjsp:forward closes the outputstream too -Original Message-From: Manne Fagerlind [mailto:[EMAIL PROTECTED]]Sent: Thursday, March 01, 2001 6:20 AMTo: Orion-InterestSubject: RE: login security include file Strangely enough, jsp:include always flushes the writer -

RE: signoff EJB-INTEREST

2001-03-01 Thread Juan Lorandi (Chile)
should you use the form in http://archives.java.sun.com ??? if you wnat to unsubscribe from EJB-INTEREST, that is -Original Message- From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 01, 2001 5:53 AM To: Orion-Interest Subject: RE: signoff EJB-INTEREST

ejbload

2001-03-01 Thread Peng Yong
I have a BMP called UserEJB. when a client call the EJB by findByPrimaryKey, the EJB only call ejbload at the first time. then it is not synchronized with the DB. the EJB specification said BMP should called ejbload every time when a transaction begin. How can i ensure ejbload called every

RE: Capturing the output of a JSP page as HTML

2001-03-01 Thread elephantwalker
I think you can use a Filter to do that. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Thursday, March 01, 2001 8:32 AM To: Orion-Interest Subject: Capturing the output of a JSP page as HTML Can anyone tell me if this is

Re: Struts (was: I switch from X to Orion because: )

2001-03-01 Thread mascolino . mr
The reason for reimplementing ResourceBundle as MessageResources is that ResourceBundle is not Serializable. Some containers, notable WebLogic 6, have issues with non-serializable objects being stored in things like the application and session context. Its also very important that you only

RE: Orion with tomcat!!!

2001-03-01 Thread John de la Garza
Why would you use tomcat/apache and Orion? Can't Orion alone handle that? I'm just trying to understand Orion at this point. I'm looking to move from tomcat to another servlet container. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alex

need help getting started

2001-03-01 Thread John de la Garza
I have been using tomcat for some time now and am having issues with it... I am thinking about using Orion. I don't do any ejb stuff and only need a servlet container and web server. I am having trouble using formbased security. I couldn't get it to work with the users set up in the

RE: referring to a jar from an ejb-jar file/directory?

2001-03-01 Thread Andre Vanha
Gary, you can also add a library entry to your orion-application.xml. library path="D:\EDM\TPC\xml\bsf.jar" / I use this in my app to get access to third party libraries. I'm glad to hear the manifest method works. I've tried it before, but was never able to get it working. However, I have a

RE: Starting threads not permitted in servlet?

2001-03-01 Thread Andre Vanha
As far as I know, the EJB spec specifically forbids creating threads Sec 18.1.2. The servlet spec 2.2 Sec 1.2 says: "For example, high end application servers may limit certain action, such as the creation of a Thread object, to insure that other components of the container are not negatively

RE: CMP 2.0

2001-03-01 Thread Randahl Fink Isaksen
Title: RE: CMP 2.0 You are right, Matt, but I am afraid I consider that irrellevant. When the developerdeploys his application on Orion, he should not worry abouthow Orion builds the beansand whether ituses the JDK or anything else in the process of doing so - he should just expect it to do

RE: java.lang.NullPointerException in JMS

2001-03-01 Thread Edoardo Comar
Title: java.lang.NullPointerException in JMS I got the same problem. connection.start() throws an NPE Search for JMS in this list and you'll findsomething. I couldn't solve it - I loggedthe fact as blocking in bugzillaand had to switch to weblogic for the time being. Edo -Original

Re: Database schema type mappings

2001-03-01 Thread Chad Stansbury
Actually, a more proper way is to indicate to the compiler that you want long arithmetic by writing: long millisInMonth = 1000L * 60L * 60L * 24L * 30L Oh, and by the way, this is not really correct since you're assuming 30 days in a month. You should use the Calendar to figure out how many

Orion Tutorial, Parts 1 and 2

2001-03-01 Thread James Halloran
Hello Orion community, I cleaned up the tutorial I posted here a few days ago, and I added a Part 2 that explains connecting to Oracle. The only tools you need to use are javac, jar, and deploytool. You won't need to write any XML files either, aside from adding lines the Orion config

Re: Intro to Orion Tutorial

2001-03-01 Thread Geoff Marshall
Awesome, now if someone can translate it into Linux... -- -Geoff Marshall, Director of Development ... t e r r a s c o p e (415) 951-4944 54 Mint Street, Suite 110 direct (415) 625-0349 San Francisco, CA 94103

Orion and Cocoon anyone?

2001-03-01 Thread Robert_Lasch
Hi! I'm trying to use Cocoon 1.82 with Orion 1.45. I've followed the example on the orionsupport.com site, but I'm still getting an error. Here's the error message. Publishing Engine could not be initialized. java.lang.RuntimeException: Error while initializing XSP engine:

RE: Capturing the output of a JSP page as HTML

2001-03-01 Thread APapada
Hi, Thanks for the reply to my question. I am not familiar with filters. How would I do this?elephantwalker [EMAIL PROTECTED]Sent by: [EMAIL PROTECTED]03/01/2001 09:42 AM PSTPlease respond to Orion-Interest To: Orion-Interest [EMAIL PROTECTED] cc: bcc: Subject: RE: Capturing the output of a JSP

RE: Struts (was: I switch from X to Orion because: )

2001-03-01 Thread Jeff Schnitzer
Why on earth would you want to store a MessageResources/ResourceBundle in an application or session context? The static method ResourceBundle.getBundle(...) returns a fast hash lookup for the bundle from a table the framework maintains. It has the added bonus that if you pass in the appserver's

Re: login security include file

2001-03-01 Thread Geoff Marshall
According to all the books, as soon and you do a jsp:include / there are 3 things you can't do: 1) redirect 2) mess with your response headers 3) mess with cookies So all such code must reside before your first jsp:include / in a static file... -- -Geoff Marshall, Director of Development

Re: In Orion, are tag handler instances reused or reinstantiated?

2001-03-01 Thread Trevor Squires
Funny, I never managed to get it to *not* re-use tags (haven't rev'd up to latest release tho) regardless of the jsp.reuse.tags setting... Trevor On Thu, 1 Mar 2001, Jonathan James wrote: Actually it's configurable. Just add "-Djsp.reuse.tags=[false|true]" to your command line when you

RE: Database schema type mappings

2001-03-01 Thread Jeff Schnitzer
From: Chad Stansbury [mailto:[EMAIL PROTECTED]] Actually, a more proper way is to indicate to the compiler that you want long arithmetic by writing: long millisInMonth = 1000L * 60L * 60L * 24L * 30L I'm sure it all gets optimized out to the same thing in the end :-) But yes, you're right.

RE: java.lang.NullPointerException in JMS

2001-03-01 Thread Heikkinen, Jarno
Hi, I had the same problem, but with queue-connection-factory. It works for the very first time, but if you stop Orion and restart, the connection.start() gives NullPointerException. To me, it looks like Orion has problems rebinding the configured factories, if the factory exists already, the

RE: Database schema type mappings

2001-03-01 Thread Randahl Fink Isaksen
Thanks for your input. An additional argument here might be that if you are not the only developer working on your EJB system, and if the system is to be maintained and expanded over time by many different software developers in a large organisation, it would probably be best to use only a single

RE: CMP 2.0

2001-03-01 Thread Randahl Fink Isaksen
God point - I'll report it as a bug in Bugzilla. Randahl -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Schnitzer Sent: 1. marts 2001 12:16 To: Orion-Interest Subject: RE: CMP 2.0 I've heard comments on this list in the past from Karl Magnus

RE: Database schema type mappings

2001-03-01 Thread Randahl Fink Isaksen
The fact that you have found that quote in the book (even in the 2nd edition) definately indicates that at least at some point in time it has not been allowed to use primitive types as primary keys. Still, the specification is under constant development, and it seems to me the subject is

RE: need help getting started

2001-03-01 Thread Randahl Fink Isaksen
I would definately *NOT* recommend moving away from Tomcat if you only use JSP and servlets. Tomcat is the reference implementation, it is free, and unless you need a product with a lot of additional features (GUI helper tools, EJBs, remote debugging, etc.) there is no reason to open up a can of

RE: EJB values into xml attributes (a little off topic, I know)

2001-03-01 Thread Randahl Fink Isaksen
Falk wrote: (...) We do have the same problem and solve it by transforming all strings by our class XMLEscaper (...) I would be surprised if there existed some magic avoiding this step. (...) You are probably right. Still, I would very much like to hear from anybody who could prove you wrong.

Sending Serializable obj from ejb to servlet

2001-03-01 Thread John Hogan
All, I'm attempting to send a serializable object from an entity bean to a servlet, and am seeing the error below. Seems like it may be a deployment thing, perhaps with helper class PaidTransaction. If someone could point me at a summary for deployment requirements for helper classes

Re: In Orion, are tag handler instances reused or reinstantiated?

2001-03-01 Thread Huibert Aalbers Indaberea
Hi Bart, It seems that the tags are re-used only when called multiple times inside the same page. At least that is my experience with versions up to 1.4.5 Huibert on 3/1/01 2:25 PM, Trevor Squires at [EMAIL PROTECTED] wrote: Funny, I never managed to get it to *not* re-use tags (haven't

RE: Orion Tutorial, Parts 1 and 2

2001-03-01 Thread Kemp Randy-W18971
These tutorials are great and a wonderful aid for J2EE and Orion deployment. -Original Message- From: James Halloran To: Orion-Interest Sent: 3/1/01 12:56 PM Subject: Orion Tutorial, Parts 1 and 2 Hello Orion community, I cleaned up the tutorial I posted here a few days ago, and I

RE: Capturing the output of a JSP page as HTML

2001-03-01 Thread Alex 'Kazuma' Garbagnati
Can anyone tell me if this is possible. I have a JSP page that contains information about an order that was just entered (Essentially a confirmation page). What I want to do is somehow intercept the output stream inside the JSP page and write it to a file, as plain html, which I will later

Re: Orion Tutorial, Parts 1 and 2

2001-03-01 Thread Ernst de Haan
Although I've written my own Orion tutorials for starters, I heartily welcome your contributions! If you like I can give you my XML tutorial format plus an XSLT stylesheet that will convert it to a format similar to the Orion Primer: * http://jollem.com/orion-primer/ Ofcourse I'd welcome new

configuring an application

2001-03-01 Thread G.L. Grobe
After running 'java -jar orion.jar', I get the following output: Error initializing site C.A.I.S: No application named 'cais' found in the server Orion/1.4.5 initialized I can't seem to get the application setup correctly. I've included the following files: server.xml applicaton.xml

configuring an application

2001-03-01 Thread G.L. Grobe
After running 'java -jar orion.jar', I get the following output:Error initializing site C.A.I.S: No application named 'cais' found in theserverOrion/1.4.5 initializedI can't seem to get the application setup correctly. I've included thefollowing

JUGerNaut Upcoming Courses in Maryland USA

2001-03-01 Thread Michael Van
We are proud to announce that we'll be holding another peer-based-instruction group for programmers in the state of Maryland, USA. If you're interested in joining our organization, please e-mail me. This term we'll be focusing on Servlets, JSP's and XSLT's using Cocoon. If you'd like to start a

Re: need help getting started

2001-03-01 Thread johnd
my main reason for switching was that orion is much faster than tomcat. Isn't that so? But, you are right, I had the feeling that it was way over kill...I am also looking into resin, I guess that is over kill, too for functionality, but like I said I was looking for speed gains. - Original

JAAS Support?

2001-03-01 Thread Phan Anh Tran
Does Orion support JAAS? Anh

SV: need help getting started

2001-03-01 Thread Magnus Rydin
Title: SV: need help getting started IMHO, Orion is a better choice than Tomcat at this moment, even if just using JSP/Servlets. Im still waiting for some benchmarks to show me that Tomcat has matured and can be compared to the other application servers. As far as being the Reference