RE: non-secure and secure site
Sorry, Greg, I was under the impression you were talking about authentication/access security. To set up https, look at the following (if you haven’t already done so): http://www.orionserver.com/docs/#deploying and follow the links there. Also, you might search for messages under the title “https problems…” and “https second session problems…” by Geoff Marshall, Jay Armstrong, Rafael Alvarez, and maybe others. --peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Greg Matthews Sent: Tuesday, March 06, 2001 5:25 PM To: Orion-Interest Subject: Re: non-secure and secure site looking at the online documentation, it seems (???) like this isn't really to do with SSL. i gave it a try anyway and got the windows dialog "save or download" appearing when i tried to open a jsp in the "/secure/" directory. does this work? i.e. have to put pages in the "/secure/" directory, and when you try to open them it switches to https ? thanks, greg. - Original Message - From: cybermaster To: Orion-Interest Sent: Wednesday, March 07, 2001 1:14 AM Subject: RE: non-secure and secure site Greg, all can be in one app. You have to specify a in web.xml, best specified as a sub-directory e.g. “/secure/*”, where you put your secure pages. --peter
UN SUBSCRIBE
UN SUBSCRIBE ME thanx
RE: HTML/WML from JSP
You can also use SiteMesh (awesome product if I do say so myself ;)) - http://www.opensymphony.com/sitemesh and use the AgentDecoratorMapper to use different page decorators (layouts basically, very simple to build, very advanced) based on the user agent and browser capabilities. -mike > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of SCOTT FARQUHAR > Sent: Wednesday, March 07, 2001 3:44 PM > To: Orion-Interest > Subject: RE: HTML/WML from JSP > > > Try looking at filters to parse the output using the user-agent info. > > You could use a servlet / jsp to produce xml, and then a filter > using a different XSL transformation to parse & send back to the client. > > It depends on how many pages you are going to produce whether it > is worth the hassle. > > Scott > > >>> [EMAIL PROTECTED] 03/07/01 08:41am >>> > If you want to determine the client and apply an appropriate xsl > transformation from the same .jsp you can > request.getHeader("USER-AGENT") and parse the result - this is > handy for formatting wap content for different phones. > I > don't know if there's an orion specific easier way to do this > as there is with cocoon (the 'user agents' section of > cocoon.properties) - does anyone else know? > > As an aside this isn't always the best way to do it as you incur > the overhead of the transformation for every hit. See > http://java.sun.com/products/jsp/html/JSPXML.html for more on this. > > cheers > daryl > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Smith > Sent: 06 March 2001 16:19 > To: Orion-Interest > Subject: RE: HTML/WML from JSP > > > Orion comes with some examples as part of it's default web site: > Try > http://localhost/examples/xsl/doc.jsp > > or look in your orion directory: > orion/default-web-app/examples/xsl > > -jason > > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of Kiss Tibor > > Sent: Tuesday, March 06, 2001 9:00 AM > > To: Orion-Interest > > Subject: HTML/WML from JSP > > > > > > Hi! > > > > I am quite new to Orion, but have some experience with > > XML/XSL/JSP/HTML/WML. > > > > I have read in the official FAQ, that it is possible to use the XML > > output of a JSP and format it with client dependent XSL-s for WML or > > HTML. However, I was unable to find any additional information. > > > > Could anyone help me or point me to an example? > > > > Thanks > > Tibor > > > > > > >
RE: HTML/WML from JSP
Try looking at filters to parse the output using the user-agent info. You could use a servlet / jsp to produce xml, and then a filter using a different XSL transformation to parse & send back to the client. It depends on how many pages you are going to produce whether it is worth the hassle. Scott >>> [EMAIL PROTECTED] 03/07/01 08:41am >>> If you want to determine the client and apply an appropriate xsl transformation from the same .jsp you can request.getHeader("USER-AGENT") and parse the result - this is handy for formatting wap content for different phones. I don't know if there's an orion specific easier way to do this as there is with cocoon (the 'user agents' section of cocoon.properties) - does anyone else know? As an aside this isn't always the best way to do it as you incur the overhead of the transformation for every hit. See http://java.sun.com/products/jsp/html/JSPXML.html for more on this. cheers daryl -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Smith Sent: 06 March 2001 16:19 To: Orion-Interest Subject: RE: HTML/WML from JSP Orion comes with some examples as part of it's default web site: Try http://localhost/examples/xsl/doc.jsp or look in your orion directory: orion/default-web-app/examples/xsl -jason > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Kiss Tibor > Sent: Tuesday, March 06, 2001 9:00 AM > To: Orion-Interest > Subject: HTML/WML from JSP > > > Hi! > > I am quite new to Orion, but have some experience with > XML/XSL/JSP/HTML/WML. > > I have read in the official FAQ, that it is possible to use the XML > output of a JSP and format it with client dependent XSL-s for WML or > HTML. However, I was unable to find any additional information. > > Could anyone help me or point me to an example? > > Thanks > Tibor
Re: Here is a SAP DB schema if interested...
Spelling 'length' would be a good start --- Ray Harrison <[EMAIL PROTECTED]> wrote: > Here is a SAP DB schema that I've been working with recently - I have not tried all >of the > elements so if anyone uses it and finds a problem - post it back to the list with >the fixfor > instance > I am not sure about some of the date/time stuff, among other things... > > Cheers > Ray Harrison > > > > "http://www.orionserver.com/dtds/database-schemas.dtd"> > >max-table-name-length="32"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > __ > Do You Yahoo!? > Get email at your own domain with Yahoo! Mail. > http://personal.mail.yahoo.com/ > __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Re: JSP Session setting
AFAIK the session object is implicit to the page, such as request, response etc. It is part of the spec. >>> [EMAIL PROTECTED] 03/07/01 01:43am >>> I'm not sure if this is the correct place to ask this question but is there a way to turn off the session tracking in the jsp compiling in orion? Currently, no matter how you set the tag in the configuration, when jsps are compiled the following line are ALWAYS there: HttpSession session; session = request.getSession(true); It seems that this will hinder performance in a clustered environment where only some of the applications require sessions. Is there a way to turn this off at a page or application level? Thanks Jim
RE: Applet BEAN JNDI Errors
Hi, Rather than resend the responses from Torgeir.Lerkerod to everyone, you can see them in the mailing list archives. The original message and responses for this were on 12Feb2001 and can be seen at www.orionserver.com by clicking on the "Mailing list" link, and then on "To read the archive of the list, look here." You'll have to click the "Earlier Messages" button about 5 times to get to Feb 12. Jay Armstrong [EMAIL PROTECTED] At 11:47 AM 3/6/01 -0700, you wrote: >Did you ever get a fix to this? We seem to be getting a similar error >trying to get an InitialContext from an object when load testing. >Unfortunately it is not consistently happening to where we have been able to >track the problem down. > >Any ideas? > >-Original Message- >From: John McManus [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, February 21, 2001 3:59 PM >To: Orion-Interest >Subject: Applet BEAN JNDI Errors > > >Make it stop :( > >I'm getting the following error trying when I do a new >InitialContext(env) in my applet. >After fighting thru security issues and whatnot, I not have the >following error: > >Opening >http://traveller.pc.peakss.com:8000/cems-primer/com/evermind/server/administ >ration/ApplicationServerAdminstrator.class > >Connecting >http://traveller.pc.peakss.com:8000/cems-primer/com/evermind/server/administ >ration/ApplicationServerAdminstrator.class >with no proxy > >*** Error in my applet follows * > >javax.naming.NamingException: Error reading application-client >descriptor: Error looking up EJBHome: Lookup error: >java.io.StreamCorruptedException: Caught EOFException while reading the >stream header; nested exception is: >java.io.StreamCorruptedException: Caught EOFException while reading the >stream header > >at >com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext >(JAX) > >at javax.naming.spi.NamingManager.getInitialContext(Unknown Source) > >at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) > >at javax.naming.InitialContext.init(Unknown Source) > >at javax.naming.InitialContext.(Unknown Source) > >at TestApplet2.jButton1_actionPerformed(TestApplet2 *Notice* that the >class ApplicationServerAdminstriator.class is *misspelled* >In my application log I get a 404 (not found) when I try to do a get of >the class that *SHOULD* >be: > >com.evermind.server.administrator.ApplicationServerAdministrator NOT >com.evermind.server.administrator.ApplicationServerAdminstrator (missing >an I??) > >Is this what's causing the NamingException and why I can't find the >bean? It appears to be deoplyed correctly if I use the console to see >my application. > >*Does anyone have an applet calling a bean via jndi that works with >orion?* I've been working on this for 1 week and have been fighting >thru various errors. > >Ag The pain the pain. > >Thanks for any help in advance. > > >-- >*** > |^^| > | | > | _ _| John B McManus > | (.)(.) email: [EMAIL PROTECTED] > @ _)phone: (303)734-6002 > | ,___| > | / > >*** > > >-- >*** > |^^| > | | > | _ _| John B McManus > | (.)(.) email: [EMAIL PROTECTED] > @ _)phone: (303)734-6002 > | ,___| > | / > > > > > >
un subscribe
Please un subscribe Thanx.. Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Re: non-secure and secure site
looking at the online documentation, it seems (???) like this isn't really to do with SSL. i gave it a try anyway and got the windows dialog "save or download" appearing when i tried to open a jsp in the "/secure/" directory. does this work? i.e. have to put pages in the "/secure/" directory, and when you try to open them it switches to https ? thanks, greg. - Original Message - From: cybermaster To: Orion-Interest Sent: Wednesday, March 07, 2001 1:14 AM Subject: RE: non-secure and secure site Greg, all can be in one app. You have to specify a in web.xml, best specified as a sub-directory e.g. “/secure/*”, where you put your secure pages. --peter
Re: un subscribe
Please use the form at www.orionserver.com --- Prasanna Kumar <[EMAIL PROTECTED]> wrote: > Please un subscribe > > Thanx.. > __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Here is a SAP DB schema if interested...
Here is a SAP DB schema that I've been working with recently - I have not tried all of the elements so if anyone uses it and finds a problem - post it back to the list with the fixfor instance I am not sure about some of the date/time stuff, among other things... Cheers Ray Harrison http://www.orionserver.com/dtds/database-schemas.dtd"> __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
UN SUBSCRIBE
Please un subscribe Thank you very much
Re: JSP Session setting
Hi All, Jim and I used to work together, so we had a reunion of sorts and solved this between us. For orion-interest, the up shot is that <%@ page session="false" %> needs to be set in the JSP page (at first, I'd suggested looking at the element in the two orion-web.xml files for the default web application and for Jim's web application, respectively). Have fun! Jay Armstrong [EMAIL PROTECTED] At 10:43 AM 3/6/01 -0500, you wrote: >I'm not sure if this is the correct place to ask this question but is there >a way to turn off the session tracking in the jsp compiling in orion? >Currently, no matter how you set the tag in the >configuration, when jsps are compiled the following line are ALWAYS there: > > HttpSession session; > session = request.getSession(true); > >It seems that this will hinder performance in a clustered environment where >only some of the applications require sessions. > >Is there a way to turn this off at a page or application level? > >Thanks >Jim > > >
RE: HTML/WML from JSP
If you want to determine the client and apply an appropriate xsl transformation from the same .jsp you can request.getHeader("USER-AGENT") and parse the result - this is handy for formatting wap content for different phones. I don't know if there's an orion specific easier way to do this as there is with cocoon (the 'user agents' section of cocoon.properties) - does anyone else know? As an aside this isn't always the best way to do it as you incur the overhead of the transformation for every hit. See http://java.sun.com/products/jsp/html/JSPXML.html for more on this. cheers daryl -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Smith Sent: 06 March 2001 16:19 To: Orion-Interest Subject: RE: HTML/WML from JSP Orion comes with some examples as part of it's default web site: Try http://localhost/examples/xsl/doc.jsp or look in your orion directory: orion/default-web-app/examples/xsl -jason > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Kiss Tibor > Sent: Tuesday, March 06, 2001 9:00 AM > To: Orion-Interest > Subject: HTML/WML from JSP > > > Hi! > > I am quite new to Orion, but have some experience with > XML/XSL/JSP/HTML/WML. > > I have read in the official FAQ, that it is possible to use the XML > output of a JSP and format it with client dependent XSL-s for WML or > HTML. However, I was unable to find any additional information. > > Could anyone help me or point me to an example? > > Thanks > Tibor
un subscribe
Please un subscribe Thanx..
RE: How to set orion to perform a timely task.. (CRON???)
you could use the cron or at to fire off a java class that hits the jsp using the java.net package -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Robert S. Sfeir Sent: 06 March 2001 17:18 To: Orion-Interest Subject: Re: How to set orion to perform a timely task.. (CRON???) Someone suggesting hitting a JSP with a cron... how can you hit a URL with a CRON or AT command, I didn't think you could do that! Perhaps I misunderstood the explanation? R Robert S. Sfeir Director of Software Development PERCEPTICON corporation San Francisco, CA 94123 w - http://www.percepticon.com/ e- [EMAIL PROTECTED] t - (415) 749-2900 x205
RE: JSP Session setting
Actually, Someone gave me the answer to this. Thanks. It's actually a page directive I missed. I should have thought to look there. Thanks anyway. Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Juan Lorandi (Chile) Sent: Tuesday, March 06, 2001 3:20 PM To: Orion-Interest Subject: RE: JSP Session setting tags in web.xml should do it... HTH JP > -Original Message- > From: Jim Carroll [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 06, 2001 12:44 PM > To: Orion-Interest > Subject: JSP Session setting > > > I'm not sure if this is the correct place to ask this > question but is there > a way to turn off the session tracking in the jsp compiling in orion? > Currently, no matter how you set the tag in the > configuration, when jsps are compiled the following line are > ALWAYS there: > > HttpSession session; > session = request.getSession(true); > > It seems that this will hinder performance in a clustered > environment where > only some of the applications require sessions. > > Is there a way to turn this off at a page or application level? > > Thanks > Jim > >
RE: How to set orion to perform a timely task.. (CRON???)
you can use wget in some *nix'es I have a java based tool that does basically the same work that wget does; I'll post it tomorrow > -Original Message- > From: Joseph B. Ottinger [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 06, 2001 3:40 PM > To: Orion-Interest > Subject: Re: How to set orion to perform a timely task.. (CRON???) > > > Sure you can. > > * * * * * lynx --dump http://myhost/hiteveryminute.jsp > /dev/null > > This submits something to hiteveryminute.jsp every, um, minute. > > On Tue, 6 Mar 2001, Robert S. Sfeir wrote: > > > Someone suggesting hitting a JSP with a cron... how can > you hit a URL with > > a CRON or AT command, I didn't think you could do that! Perhaps I > > misunderstood the explanation? > > > > R > > > > > > Robert S. Sfeir > > Director of Software Development > > PERCEPTICON corporation > > San Francisco, CA 94123 > > w - http://www.percepticon.com/ > > e- [EMAIL PROTECTED] > > t - (415) 749-2900 x205 > > > > > > --- > Joseph B. Ottinger [EMAIL PROTECTED] > http://epesh.com/ IT Consultant > >
RE: Problem retrieving dependents after Orion restart
So is most of your development using Entity/Session beans? Are you using EJB20 Entity style beans (using abstract methods?), or are you still using EJB1.1 style beans. Are EJB20 queries safe to use with Orion? Do they work? Thanks. -AP_ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dan North Sent: Tuesday, March 06, 2001 8:52 AM To: Orion-Interest Subject: RE: Problem retrieving dependents after Orion restart You can also enforce the dependency (cascade delete) by overriding void ejbRemove() throws RemoteException in your EJB class to find all dependents by your bean and .remove() them. Cheers, Dan. At 00:53 06/03/2001 -0800, you wrote: >IMHO, it is unwise to be using EJB2.0 dependent objects at this point >because this is a part of the spec which is likely to change wildly. >There have even been significant changes between pd1 (when Orion's >implementation was built) and pfd. > >You can circumvent the relationship table by creating a unidrectional >relationship from Phone to Person and a finder method for Phone which is >"findByPerson". If you put a getPhone() method on Person, it can hide >the call to the finder on Phone. > >Jeff > > >-Original Message- > >From: Alex Paransky [mailto:[EMAIL PROTECTED]] > >Sent: Monday, March 05, 2001 10:37 PM > >To: Orion-Interest > >Subject: RE: Problem retrieving dependents after Orion restart > > > > > >Has any one been able to get the Entity(1) to Dependent(N) relationship > >working? I am thinking of removing Dependent objects and just > >using Entity > >Beans. However, in the way Orion handles relationships, I will have an > >extra table I do not really need. > > > >If I have a PersonEntity relating to PhoneEntity in a 1-N > >scenario, then > >Orion attempts to create PersonEntity-PhoneEntity join table. > >Is there a > >way to modify orion-ejb-jar.xml to avoid this type of scenario. All my > >Entities are identified with integer key, so my phone table > >simply contains > >a field called 'ownerId'. Different types of entities can > >have phones, but > >since all the entities are identified with the same type of > >primary key, I > >can store that in the 'ownerId' field in the phone table. > > > >Thanks. > >-AP_ > > > >-Original Message- > >From: [EMAIL PROTECTED] > >[mailto:[EMAIL PROTECTED]]On Behalf Of Alex Paransky > >Sent: Monday, March 05, 2001 6:13 PM > >To: Orion-Interest > >Subject: RE: Problem retrieving dependents after Orion restart > > > > > >Here is an excerpt from orion-ejb-jar.xml, can someone tell me > >if I have > >something configured incorrectly. Again, the data is properly > >written to > >the database, it is just NOT READ when orion is restarted and > >getPhoneDependents() api is executed. > > > > >location="ejb.person.PersonEntity" > >wrapper="PersonEntityHome_EntityHomeWrapper33" > >table="ejb_person_PersonEntity" data-source="jdbc/siteDS"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >persistence-name="number" /> > > > > > > > > > > >persistence-name="ownerId" > >/> > > > > > > > > > > > > > > > > > > > > > > > > > >Again, the ejb.person.PersonEntity has a 1 to N relation with dependend > >ejb.pers.PersonPhone. > > > >Thanks. > >-AP_ > > > >-Original Message- > >From: [EMAIL PROTECTED] > >[mailto:[EMAIL PROTECTED]]On Behalf Of Alex Paransky > >Sent: Monday, March 05, 2001 1:18 PM > >To: Orion-Interest > >Subject: Problem retrieving dependents after Orion restart > > > > > >I have an entity bean with 1-N relationships to dependents. I have two > >clients, the first client executes a method on a session that > >populates and > >works with the data. The second client tries to access the > >data. When I > >run the first client followed by the second client, second client works > >correctly. When I run the first client, then RESTART ORION, > >then run second > >client, second client fails to find dependents (but they are > >there, in the > >table). > > > >Here is the output: > > > >Orion/1.4.7 initialized > >Create person entity > >Add phone1 > >Add phone2 > >Add phone3 > >Phone: 8551 (818) 541-0029 1 > >Phone: 8552 None 2 > >Phone: 8553 (310) 880-5962 3 > >Deleting last phone > >Phones: [Lejb.util.Value;@44006e > > > >[apara@junior orion]$ ./go > >Orion/1.4.7 initialized > >Phones: null > > > >First we create a new person entity, set the phones > >(dependents), then list > >the phones, finally delete the last phone. Then restarting > >orion, we try to > >lookup the phone dependents. Phones returns as null. The > >table contains > >correct values. Phones ARE there. > > > >What could be
RE: JSP Session setting
tags in web.xml should do it... HTH JP > -Original Message- > From: Jim Carroll [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 06, 2001 12:44 PM > To: Orion-Interest > Subject: JSP Session setting > > > I'm not sure if this is the correct place to ask this > question but is there > a way to turn off the session tracking in the jsp compiling in orion? > Currently, no matter how you set the tag in the > configuration, when jsps are compiled the following line are > ALWAYS there: > > HttpSession session; > session = request.getSession(true); > > It seems that this will hinder performance in a clustered > environment where > only some of the applications require sessions. > > Is there a way to turn this off at a page or application level? > > Thanks > Jim > >
Re: https second session problems...
Oops, I missed it in my last post... I got the same problem. What I did (and it worked, even as it seems that it shouldn't) was to store a session reference in the application context in the last non-secure page, and then retrieve it in the first secure page. Every object that was store in the session was retrieved. It's been working fine for over a month. Only be sure that you use a unique identifier to store it, and to remove the reference after you use it. It's not as clean as I wish it to be, but works... Final Note: I have the shared=true tag set, it suppose that Sessions are shared too, but they're not. Tuesday, March 06, 2001, 1:30:18 PM, you wrote: GM> First, a thank-you to Jay Armstrong for his SimplePortTester. Indeed, GM> Apache had port 443 locked up even though I thought I had stopped Apache. GM> Here's the problem of the day: GM> I'm only using JSP and Beans. It seems when I switch between http and https, GM> Orion crreates a 'second session'. I have inserted a System.err.println in GM> EVERY method of my SessionBean which has a single boolean property: GM> loggedOn. My comments (//) GM> Is this a bug or a feature? If it's a bug or a feature, is there a GM> work-around? It makes no sense to me why you would want to create a second GM> 'session'. -- Best regards, Rafaelmailto:[EMAIL PROTECTED]
RE: Problem retrieving dependents after Orion restart
I can find the EntityBean correctly, it's when the public abstract Collection getPhoneDependents() is called, that I get a null object from this call. If the server is not restarted between the creation of the Person entity, and adding some phone numbers, the getPhoneDependents() properly returns the collection. If the server IS restarted, then null is returned. Again, everything appears to be stored correctly in the database it's self. All the fields which need to be populated are. Thanks. -AP_ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Randahl Fink Isaksen Sent: Monday, March 05, 2001 11:59 PM To: Orion-Interest Subject: RE: Problem retrieving dependents after Orion restart I had the same symptom once, I had declared my primary keys as Integer and returned int rather than Integer in my ejbCreate methods. Have you accidently done the same??? Anyways, it seems Orion is quite non-informative about semantical errors, so I have entered a bug report about this issue (#349). R. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alex Paransky Sent: 6. marts 2001 04:59 To: Orion-Interest Subject: RE: Problem retrieving dependents after Orion restart I have been playing with the simple example some more, and still cannot resolve the issue. The strange thing is that it seems to write the data to the tables correctly. All the fields are filled in as expected, it just fails to read the data back after restart. I am not sure the best way to proceed. Here are the layout for the tables which are being used: Person Table: ++---+--+-+-+---+ | Field | Type | Null | Key | Default | Extra | ++---+--+-+-+---+ | id | bigint(20)| | PRI | 0 | | | salutation | varchar(255) | YES | | NULL| | | name | varchar(255) | YES | | NULL| | | email | varchar(255) | YES | | NULL| | | createDate | timestamp(14) | YES | | NULL| | | modifyDate | timestamp(14) | YES | | NULL| | | parentId | bigint(20)| YES | | NULL| | | parentRelation | bigint(20)| YES | | NULL| | ++---+--+-+-+---+ Phones Table: +-+--+--+-+-+---+ | Field | Type | Null | Key | Default | Extra | +-+--+--+-+-+---+ | id | bigint(20) | | | 0 | | | number | varchar(255) | YES | | NULL| | | ownerId | bigint(20) | YES | | NULL| | +-+--+--+-+-+---+ In the PhonesTable ownerId is the foreign key for person.id field. The following join properly returns the data: select * from ejb_person_PersonEntity pe, ejb_phones ph where pe.id = ph.ownerId; Does any one know what the problem is? Thanks. -AP_ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alex Paransky Sent: Monday, March 05, 2001 6:13 PM To: Orion-Interest Subject: RE: Problem retrieving dependents after Orion restart Here is an excerpt from orion-ejb-jar.xml, can someone tell me if I have something configured incorrectly. Again, the data is properly written to the database, it is just NOT READ when orion is restarted and getPhoneDependents() api is executed. Again, the ejb.person.PersonEntity has a 1 to N relation with dependend ejb.pers.PersonPhone. Thanks. -AP_ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alex Paransky Sent: Monday, March 05, 2001 1:18 PM To: Orion-Interest Subject: Problem retrieving dependents after Orion restart I have an entity bean with 1-N relationships to dependents. I have two clients, the first client executes a method on a session that populates and works with the data. The second client tries to access the data. When I run the first client followed by the second client, second client works correctly. When I run the first client, then RESTART ORION, then run second client, second client fails to find dependents (but they are there, in the table). Here is the output: Orion/1.4.7 initialized Create person entity Add phone1 Add phone2 Add phone3 Phone: 8551 (818) 541-0029 1 Phone: 8552 None 2 Phone: 8553 (310) 880-5962 3 Deleting last phone Phones: [Lejb.util.Value;@44006e [apara@junior orion]$ ./go Orion/1.4
Re: How to set orion to perform a timely task.. (CRON???)
One way is to write a simple Java program that uses URLConnection to hit your JSP page and have CRON drive your simple program. tim. > Someone suggesting hitting a JSP with a cron... how can you hit a URL with > a CRON or AT command, I didn't think you could do that! Perhaps I > misunderstood the explanation? > > R > > > Robert S. Sfeir > Director of Software Development > PERCEPTICON corporation > San Francisco, CA 94123 > w - http://www.percepticon.com/ > e- [EMAIL PROTECTED] > t - (415) 749-2900 x205 > >
RE: How to set orion to perform a timely task..
Title: SV: How to set orion to perform a timely task.. First of all, there is an option to load a servlet at startup so that you don't need to wait for the first request comes in. Secondly I prefer this way better. You could create a separate ejb client application to start your timer daemon thread and package with your ear file. Then configure your orion-application.xml to start your embeded ejb application at start-up. Conrad -Original Message-From: Yves Bossel [mailto:[EMAIL PROTECTED]]Sent: Tuesday, March 06, 2001 6:18 AMTo: Orion-InterestSubject: RE: How to set orion to perform a timely task.. Could you explain me the servlet solution with a Timer, please ? The point that I do not undestand is following: On one hand, the servlet cannot stay loaded forever, probably the server will detect and unload unused servlets.On the other hand, in order to activate a servlet, the server has to receive an HTTP request to the tcp/ip port that server is listening to, therefore the Timer should implemente a tcp/ip socket. So, how can I wake up my servlet without having to write a socket ? Thanks for explanations, Yves Bossel
Re: Session listener redirect
Hi Ron, This looks like another perfect opportunity to apply Orion's implementation of Servlet v2.3 filters. See the "Clickstream" example under "Web-Apps" at www.orionsupport.com. I'm including some earlier correspondence with Huibert Aalbeers about its use (from back in Jan 2001). Thanks to Michael Cannon-Brookes who authored the filter example and helped me a lot. Note the importance of using the correct version of orion.jar to get the Servlet v2.3 classes. Hope this helps. Jay Armstrong [EMAIL PROTECTED] * Hi Huibert, My suggestion would be to use the Java Servlet API v2.3, building on the Clickstream demo at OrionSupport. Basically, I think you could define a listener, filters, and filter mappings in your web.xml file, and have the filter servlet(s) parse the request, lookup the target site in your database, and then forward the request to the target. A note on the use of the Clickstream demo: it appears that the FilterChain class of Servlet API v2.3 is only in the orion.jar of Orion v1.4.4, not the previous Orion versions. I think you have to do an automatic update from the Orion startup command to get this orion.jar (that is, you cannot currently download v1.4.4 directly). Also, when I tried the Clickstream demo and put web.xml in a .war, put the .war in a .ear, and identified the application in server.xml as being in that .ear file, then Orion seemed to remove the necessary web.xml elements (, , and ). When I identified the application as a directory (instead of a .ear file) in server.xml, it worked fine. I submitted a Bugzilla report (#236) at http://www.orionserver.com. You could still do the filtering with previous versions of the servlet API and Orion, but using Servlet API v2.3 would be a really cool way -- and (IMHO) the way it should be done. Any thoughts on this, especially experience with Clickstream demo? Jay Armstrong [EMAIL PROTECTED] At 11:07 AM 1/4/01 -0600, you wrote: >Hi everyone, > >Since it seems that the list is alive and well, although with very >little traffic, I would like to ask a question which has been bothering >me for a while. > >I am trying to do what I would define as dynamic redirection. What that >means is that if someone writes an URL like http://myserver/name, I >would like to look for "name" in a database and redirect the user to >some other URL. This would allow me to avoid modifying manually the >configuration file every time a mapping is added,removed or modified. > >Is this possible? Any suggestions? > >Thanks in advance and Happy New Year! > >Huibert Aalbers > > > At 11:33 AM 3/6/01 -, you wrote: >I have created the following session listener class which works but now I >want to redirect the client to the start page of the application if they are >trying to enter the application from another page. > >Easy peasy lemon squeezey in asp using global.asa but at a loss with java. > >Any help greatly appreciated. > >Code shown below. > >Ron Quartel. > > > >import java.util.*; >import javax.servlet.*; >import javax.servlet.http.*; > >public class SessionListener implements HttpSessionListener{ > >public SessionListener() { >} > >public void sessionCreated(HttpSessionEvent hse) { >System.out.println("Session started"); >//redirect to start page if not alread there i.e index.jsp. >} > >public void sessionDestroyed(HttpSessionEvent hse) {} > >} > >
RE: Applet BEAN JNDI Errors
Did you ever get a fix to this? We seem to be getting a similar error trying to get an InitialContext from an object when load testing. Unfortunately it is not consistently happening to where we have been able to track the problem down. Any ideas? -Original Message- From: John McManus [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 21, 2001 3:59 PM To: Orion-Interest Subject: Applet BEAN JNDI Errors Make it stop :( I'm getting the following error trying when I do a new InitialContext(env) in my applet. After fighting thru security issues and whatnot, I not have the following error: Opening http://traveller.pc.peakss.com:8000/cems-primer/com/evermind/server/administ ration/ApplicationServerAdminstrator.class Connecting http://traveller.pc.peakss.com:8000/cems-primer/com/evermind/server/administ ration/ApplicationServerAdminstrator.class with no proxy *** Error in my applet follows * javax.naming.NamingException: Error reading application-client descriptor: Error looking up EJBHome: Lookup error: java.io.StreamCorruptedException: Caught EOFException while reading the stream header; nested exception is: java.io.StreamCorruptedException: Caught EOFException while reading the stream header at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext (JAX) at javax.naming.spi.NamingManager.getInitialContext(Unknown Source) at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) at javax.naming.InitialContext.init(Unknown Source) at javax.naming.InitialContext.(Unknown Source) at TestApplet2.jButton1_actionPerformed(TestApplet2 *Notice* that the class ApplicationServerAdminstriator.class is *misspelled* In my application log I get a 404 (not found) when I try to do a get of the class that *SHOULD* be: com.evermind.server.administrator.ApplicationServerAdministrator NOT com.evermind.server.administrator.ApplicationServerAdminstrator (missing an I??) Is this what's causing the NamingException and why I can't find the bean? It appears to be deoplyed correctly if I use the console to see my application. *Does anyone have an applet calling a bean via jndi that works with orion?* I've been working on this for 1 week and have been fighting thru various errors. Ag The pain the pain. Thanks for any help in advance. -- *** |^^| | | | _ _| John B McManus | (.)(.) email: [EMAIL PROTECTED] @ _)phone: (303)734-6002 | ,___| | / *** -- *** |^^| | | | _ _| John B McManus | (.)(.) email: [EMAIL PROTECTED] @ _)phone: (303)734-6002 | ,___| | /
Re: How to set orion to perform a timely task.. (CRON???)
Sure you can. * * * * * lynx --dump http://myhost/hiteveryminute.jsp > /dev/null This submits something to hiteveryminute.jsp every, um, minute. On Tue, 6 Mar 2001, Robert S. Sfeir wrote: > Someone suggesting hitting a JSP with a cron... how can you hit a URL with > a CRON or AT command, I didn't think you could do that! Perhaps I > misunderstood the explanation? > > R > > > Robert S. Sfeir > Director of Software Development > PERCEPTICON corporation > San Francisco, CA 94123 > w - http://www.percepticon.com/ > e- [EMAIL PROTECTED] > t - (415) 749-2900 x205 > > --- Joseph B. Ottinger [EMAIL PROTECTED] http://epesh.com/ IT Consultant
Re: How to set orion to perform a timely task.. (CRON???)
on unix, you could d/l and use the wget command mike - Original Message - From: "Robert S. Sfeir" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Tuesday, March 06, 2001 12:18 PM Subject: Re: How to set orion to perform a timely task.. (CRON???) > Someone suggesting hitting a JSP with a cron... how can you hit a URL with > a CRON or AT command, I didn't think you could do that! Perhaps I > misunderstood the explanation? > > R > > > Robert S. Sfeir > Director of Software Development > PERCEPTICON corporation > San Francisco, CA 94123 > w - http://www.percepticon.com/ > e- [EMAIL PROTECTED] > t - (415) 749-2900 x205 > > >
Re[2]: SV: How to set orion to perform a timely task..
If you put the code at the init function, you can force the servlet to load at startup by putting the tag priorityNumber in the servlet description in web.xml. priorityNumber defines the order in which the servlets will be loaded at startup. -- Best regards, Rafaelmailto:[EMAIL PROTECTED]
https second session problems...
First, a thank-you to Jay Armstrong for his SimplePortTester. Indeed, Apache had port 443 locked up even though I thought I had stopped Apache. Here's the problem of the day: I'm only using JSP and Beans. It seems when I switch between http and https, Orion crreates a 'second session'. I have inserted a System.err.println in EVERY method of my SessionBean which has a single boolean property: loggedOn. My comments (//) // run orion [root@daphne orion]# Orion/1.4.5 initialized // with browser hit my index page in http // index page instantiates two DataAccess objects, and // one SessionBean with session scope DataAccess.DataAccess() - constructing... DataAccess.DataAccess() - constructing... SessionBean.SessionBean() - constructing... SessionBean.getCustId() - SessionBean.isLoggedOn() - false // fill out log-on form on index page and log on (re-submits page as https) DataAccess.DataAccess() - constructing... DataAccess.DataAccess() - constructing... SessionBean.SessionBean() - constructing... // ...there you have it, all three session // beans are being instantiated again!!! // EVEN THOUGH my JSESSIONID does not change // (looked at it in my brower) SessionBean.getCustId() - SessionBean.setCustId() - SessionBean.logOn() - // cust now logged on in https // still there on next https page. SessionBean.isLoggedOn() - true SessionBean.getCustId() - 2 // switch to http page, and cust is gone. SessionBean.isLoggedOn() - false // back to https and cust is there again. SessionBean.isLoggedOn() - true SessionBean.getCustId() - 2 SessionBean.isLoggedOn() - false SessionBean.getCustId() - 2 Is this a bug or a feature? If it's a bug or a feature, is there a work-around? It makes no sense to me why you would want to create a second 'session'. -- -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 fax (415) 625-0306 ...
Re: How to set orion to perform a timely task.. (CRON???)
Someone suggesting hitting a JSP with a cron... how can you hit a URL with a CRON or AT command, I didn't think you could do that! Perhaps I misunderstood the explanation? R Robert S. Sfeir Director of Software Development PERCEPTICON corporation San Francisco, CA 94123 w - http://www.percepticon.com/ e- [EMAIL PROTECTED] t - (415) 749-2900 x205
RE: When does EJBOjbect.remove() not work
Are you using CMP or BMP? Does your EntityBeans ejbRemove get called? Are you catching any exceptions anywhere? > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Randahl Fink > Isaksen > Sent: Tuesday, March 06, 2001 3:49 AM > To: Orion-Interest > Subject: When does EJBOjbect.remove() not work > > > In many of my JSP files I invoke the .remove() method on an EJB to get it > permanently deleted. Sometimes, however, the EJB is NOT deleted > even though > I get no error messages. So, has anyone experienced that this does not > always work: > > while(myIteratorOfSomeEJBs.hasNext()) > ((EJBObject) myIteratorOfSomeEJBs.next()).remove(); > > I was thinking that maybe it did not work because of some transactional > issues (maybe rollbacks happens under some circumstances) - but > since I get > no error messages, I don't know if this is the case. > > > R. > >
Re: Using jakarta-struts with orion1.4.5
Have you put struts.jar in your WEB-INF/lib directory (correct) or in the orion/lib directory (incorrect)? Also struts needs to be patched to work with Orion (ActionServlet.java as I remember, its in the archives). Mark Kettner wrote: > > I'm trying to use jakarta-struts with orion1.4.5. I've subclassed the > ActionForm class to AttributeTypeForm, but after deployment I get the > following error: > > javax.servlet.jsp.JspException: Exception creating bean of class > com.fred.fredadmin.control.web.AttributeTypeForm: > java.lang.ClassNotFoundException: > com.fred.fredadmin.control.web.AttributeTypeForm >at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:527) >at > /editattributetype.jsp._jspService(/editattributetype.jsp.java:81) (JSP > page line 15) >at com.orionserver.http.OrionHttpJspPage.service(JAX) >at com.evermind.server.http.HttpApplication.xj(JAX) >at com.evermind.server.http.JSPServlet.service(JAX) >at com.evermind.server.http.d3.sw(JAX) >at com.evermind.server.http.d3.include(JAX) >at com.fred.fredadmin.taglib.InsertTag.doEndTag(InsertTag.java:61) >at /template.jsp._jspService(/template.jsp.java:48) >at com.orionserver.http.OrionHttpJspPage.service(JAX) >at com.evermind.server.http.HttpApplication.xj(JAX) >at com.evermind.server.http.JSPServlet.service(JAX) >at com.evermind.server.http.d3.sw(JAX) >at com.evermind.server.http.d3.su(JAX) >at com.evermind.server.http.d3.forward(JAX) >at > com.fred.fredadmin.control.web.MainServlet.doGet(MainServlet.java:63) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:190) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:302) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:329) >at com.evermind.server.http.d3.sw(JAX) >at com.evermind.server.http.d3.su(JAX) >at com.evermind.server.http.ef.s1(JAX) >at com.evermind.server.http.ef.do(JAX) >at com.evermind.util.f.run(JAX) > > The error message is a bit cryptic, becase when I create a jsp page that > accesses the AttributeTypeForm bean directly works. Also deploying the > application with struts on orion1.3.8 and J2EE works. > Has anyone experienced the same problem and/or solution? > > Mark -- David Smith Software Development Manager e-Net Software Ltd [EMAIL PROTECTED] begin:vcard n:Smith;Dave x-mozilla-html:FALSE url:http://www.enetsoftware.com org:e-Net Software Ltd version:2.1 email;internet:[EMAIL PROTECTED] title:Software Development Manager adr;quoted-printable:;;2530 The Quadrant=0D=0AAztec West=0D=0AAlmondsbury;Bristol;;BS32 4AW;England x-mozilla-cpt:;0 fn:Dave Smith end:vcard
SV: Session listener redirect
Title: SV: Session listener redirect I would go with a Filter instedad of an include. WR > -Ursprungligt meddelande- > Fran: Rafael Alvarez [mailto:[EMAIL PROTECTED]] > Skickat: den 6 mars 2001 07:07 > Till: Orion-Interest > Amne: Re: Session listener redirect > > > Hello Ron, > Two ideas: > > .- Use an include in all your pages to check for some value in the > session to see if the user enters from the start page. > .- Use a servlet mapped to jsp and html. Where a user request a jsp or > html the servlet is invoked. Then you can check the request referer > and act acordingly. > > Check the documentation of the web.xml file to see how servlet mapping > is defined. > > To get the referer from the request, use > request.getHeader("Referer") > > Tuesday, March 06, 2001, 7:33:01 AM, you wrote: > > RQ> I have created the following session listener class which > works but now I > RQ> want to redirect the client to the start page of the > application if they are > RQ> trying to enter the application from another page. > > -- > Best regards, > Rafael mailto:[EMAIL PROTECTED] > > >
RE: Problem retrieving dependents after Orion restart
You can also enforce the dependency (cascade delete) by overriding void ejbRemove() throws RemoteException in your EJB class to find all dependents by your bean and .remove() them. Cheers, Dan. At 00:53 06/03/2001 -0800, you wrote: >IMHO, it is unwise to be using EJB2.0 dependent objects at this point >because this is a part of the spec which is likely to change wildly. >There have even been significant changes between pd1 (when Orion's >implementation was built) and pfd. > >You can circumvent the relationship table by creating a unidrectional >relationship from Phone to Person and a finder method for Phone which is >"findByPerson". If you put a getPhone() method on Person, it can hide >the call to the finder on Phone. > >Jeff > > >-Original Message- > >From: Alex Paransky [mailto:[EMAIL PROTECTED]] > >Sent: Monday, March 05, 2001 10:37 PM > >To: Orion-Interest > >Subject: RE: Problem retrieving dependents after Orion restart > > > > > >Has any one been able to get the Entity(1) to Dependent(N) relationship > >working? I am thinking of removing Dependent objects and just > >using Entity > >Beans. However, in the way Orion handles relationships, I will have an > >extra table I do not really need. > > > >If I have a PersonEntity relating to PhoneEntity in a 1-N > >scenario, then > >Orion attempts to create PersonEntity-PhoneEntity join table. > >Is there a > >way to modify orion-ejb-jar.xml to avoid this type of scenario. All my > >Entities are identified with integer key, so my phone table > >simply contains > >a field called 'ownerId'. Different types of entities can > >have phones, but > >since all the entities are identified with the same type of > >primary key, I > >can store that in the 'ownerId' field in the phone table. > > > >Thanks. > >-AP_ > > > >-Original Message- > >From: [EMAIL PROTECTED] > >[mailto:[EMAIL PROTECTED]]On Behalf Of Alex Paransky > >Sent: Monday, March 05, 2001 6:13 PM > >To: Orion-Interest > >Subject: RE: Problem retrieving dependents after Orion restart > > > > > >Here is an excerpt from orion-ejb-jar.xml, can someone tell me > >if I have > >something configured incorrectly. Again, the data is properly > >written to > >the database, it is just NOT READ when orion is restarted and > >getPhoneDependents() api is executed. > > > > >location="ejb.person.PersonEntity" > >wrapper="PersonEntityHome_EntityHomeWrapper33" > >table="ejb_person_PersonEntity" data-source="jdbc/siteDS"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >persistence-name="number" /> > > > > > > > > > > >persistence-name="ownerId" > >/> > > > > > > > > > > > > > > > > > > > > > > > > > >Again, the ejb.person.PersonEntity has a 1 to N relation with dependend > >ejb.pers.PersonPhone. > > > >Thanks. > >-AP_ > > > >-Original Message- > >From: [EMAIL PROTECTED] > >[mailto:[EMAIL PROTECTED]]On Behalf Of Alex Paransky > >Sent: Monday, March 05, 2001 1:18 PM > >To: Orion-Interest > >Subject: Problem retrieving dependents after Orion restart > > > > > >I have an entity bean with 1-N relationships to dependents. I have two > >clients, the first client executes a method on a session that > >populates and > >works with the data. The second client tries to access the > >data. When I > >run the first client followed by the second client, second client works > >correctly. When I run the first client, then RESTART ORION, > >then run second > >client, second client fails to find dependents (but they are > >there, in the > >table). > > > >Here is the output: > > > >Orion/1.4.7 initialized > >Create person entity > >Add phone1 > >Add phone2 > >Add phone3 > >Phone: 8551 (818) 541-0029 1 > >Phone: 8552 None 2 > >Phone: 8553 (310) 880-5962 3 > >Deleting last phone > >Phones: [Lejb.util.Value;@44006e > > > >[apara@junior orion]$ ./go > >Orion/1.4.7 initialized > >Phones: null > > > >First we create a new person entity, set the phones > >(dependents), then list > >the phones, finally delete the last phone. Then restarting > >orion, we try to > >lookup the phone dependents. Phones returns as null. The > >table contains > >correct values. Phones ARE there. > > > >What could be wrong? > > > >-AP_ > > > > > > > > > > -- Dan North VP Development - Cadrion Software Ltd - +44 (0)20 7355 5160 CONFIDENTIALITY This e-mail and any attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose, or store or copy the information in any medium
RE: Using jakarta-struts with orion1.4.5
is your struts.jar is WEB-INF/lib ? > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Mark Kettner > Sent: Tuesday, March 06, 2001 9:23 AM > To: Orion-Interest > Subject: Using jakarta-struts with orion1.4.5 > > > I'm trying to use jakarta-struts with orion1.4.5. I've subclassed the > ActionForm class to AttributeTypeForm, but after deployment I get the > following error: > > javax.servlet.jsp.JspException: Exception creating bean of class > com.fred.fredadmin.control.web.AttributeTypeForm: > java.lang.ClassNotFoundException: > com.fred.fredadmin.control.web.AttributeTypeForm >at > org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:527) >at > /editattributetype.jsp._jspService(/editattributetype.jsp.java:81) (JSP > page line 15) >at com.orionserver.http.OrionHttpJspPage.service(JAX) >at com.evermind.server.http.HttpApplication.xj(JAX) >at com.evermind.server.http.JSPServlet.service(JAX) >at com.evermind.server.http.d3.sw(JAX) >at com.evermind.server.http.d3.include(JAX) >at com.fred.fredadmin.taglib.InsertTag.doEndTag(InsertTag.java:61) >at /template.jsp._jspService(/template.jsp.java:48) >at com.orionserver.http.OrionHttpJspPage.service(JAX) >at com.evermind.server.http.HttpApplication.xj(JAX) >at com.evermind.server.http.JSPServlet.service(JAX) >at com.evermind.server.http.d3.sw(JAX) >at com.evermind.server.http.d3.su(JAX) >at com.evermind.server.http.d3.forward(JAX) >at > com.fred.fredadmin.control.web.MainServlet.doGet(MainServlet.java:63) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:190) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:302) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:329) >at com.evermind.server.http.d3.sw(JAX) >at com.evermind.server.http.d3.su(JAX) >at com.evermind.server.http.ef.s1(JAX) >at com.evermind.server.http.ef.do(JAX) >at com.evermind.util.f.run(JAX) > > The error message is a bit cryptic, becase when I create a jsp page that > accesses the AttributeTypeForm bean directly works. Also deploying the > application with struts on orion1.3.8 and J2EE works. > Has anyone experienced the same problem and/or solution? > > Mark > > > >
RE: HTML/WML from JSP
Orion comes with some examples as part of it's default web site: Try http://localhost/examples/xsl/doc.jsp or look in your orion directory: orion/default-web-app/examples/xsl -jason > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Kiss Tibor > Sent: Tuesday, March 06, 2001 9:00 AM > To: Orion-Interest > Subject: HTML/WML from JSP > > > Hi! > > I am quite new to Orion, but have some experience with > XML/XSL/JSP/HTML/WML. > > I have read in the official FAQ, that it is possible to use the XML > output of a JSP and format it with client dependent XSL-s for WML or > HTML. However, I was unable to find any additional information. > > Could anyone help me or point me to an example? > > Thanks > Tibor
RE: non-secure and secure site
Greg, all can be in one app. You have to specify a in web.xml, best specified as a sub-directory e.g. “/secure/*”, where you put your secure pages. --peter
JSP Session setting
I'm not sure if this is the correct place to ask this question but is there a way to turn off the session tracking in the jsp compiling in orion? Currently, no matter how you set the tag in the configuration, when jsps are compiled the following line are ALWAYS there: HttpSession session; session = request.getSession(true); It seems that this will hinder performance in a clustered environment where only some of the applications require sessions. Is there a way to turn this off at a page or application level? Thanks Jim
Using jakarta-struts with orion1.4.5
I'm trying to use jakarta-struts with orion1.4.5. I've subclassed the ActionForm class to AttributeTypeForm, but after deployment I get the following error: javax.servlet.jsp.JspException: Exception creating bean of class com.fred.fredadmin.control.web.AttributeTypeForm: java.lang.ClassNotFoundException: com.fred.fredadmin.control.web.AttributeTypeForm at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:527) at /editattributetype.jsp._jspService(/editattributetype.jsp.java:81) (JSP page line 15) at com.orionserver.http.OrionHttpJspPage.service(JAX) at com.evermind.server.http.HttpApplication.xj(JAX) at com.evermind.server.http.JSPServlet.service(JAX) at com.evermind.server.http.d3.sw(JAX) at com.evermind.server.http.d3.include(JAX) at com.fred.fredadmin.taglib.InsertTag.doEndTag(InsertTag.java:61) at /template.jsp._jspService(/template.jsp.java:48) at com.orionserver.http.OrionHttpJspPage.service(JAX) at com.evermind.server.http.HttpApplication.xj(JAX) at com.evermind.server.http.JSPServlet.service(JAX) at com.evermind.server.http.d3.sw(JAX) at com.evermind.server.http.d3.su(JAX) at com.evermind.server.http.d3.forward(JAX) at com.fred.fredadmin.control.web.MainServlet.doGet(MainServlet.java:63) at javax.servlet.http.HttpServlet.service(HttpServlet.java:190) at javax.servlet.http.HttpServlet.service(HttpServlet.java:302) at javax.servlet.http.HttpServlet.service(HttpServlet.java:329) at com.evermind.server.http.d3.sw(JAX) at com.evermind.server.http.d3.su(JAX) at com.evermind.server.http.ef.s1(JAX) at com.evermind.server.http.ef.do(JAX) at com.evermind.util.f.run(JAX) The error message is a bit cryptic, becase when I create a jsp page that accesses the AttributeTypeForm bean directly works. Also deploying the application with struts on orion1.3.8 and J2EE works. Has anyone experienced the same problem and/or solution? Mark
Re: Session listener redirect
Hello Ron, Two ideas: .- Use an include in all your pages to check for some value in the session to see if the user enters from the start page. .- Use a servlet mapped to jsp and html. Where a user request a jsp or html the servlet is invoked. Then you can check the request referer and act acordingly. Check the documentation of the web.xml file to see how servlet mapping is defined. To get the referer from the request, use request.getHeader("Referer") Tuesday, March 06, 2001, 7:33:01 AM, you wrote: RQ> I have created the following session listener class which works but now I RQ> want to redirect the client to the start page of the application if they are RQ> trying to enter the application from another page. -- Best regards, Rafaelmailto:[EMAIL PROTECTED]
Re: EJB 2.0 again, again, please.
I'm no expert either. I have just started. Anyway, it seems like your are mixing some concepts here (IMHO). It seems like your trying to "normalize" your bean by having a foreign key (jobid) to Job. This, should be a reference to the class, i.e. public abstract setJob(Job ajob) not an integer. If you still wan't a foreign key, then I think you have to solve the relationships by your self and forget about it in the ejb-jar.xml (if I'm wrong please correct me. I'm a newbie at j2ee and orion). For good examples, look at www.orionsupport.com and Jim Archers examples (in the mailing list). Best regards, /Theis
HTML/WML from JSP
Hi! I am quite new to Orion, but have some experience with XML/XSL/JSP/HTML/WML. I have read in the official FAQ, that it is possible to use the XML output of a JSP and format it with client dependent XSL-s for WML or HTML. However, I was unable to find any additional information. Could anyone help me or point me to an example? Thanks Tibor
Re: non-secure and secure site
Hello Greg, To prevent the code duplication use the same app in both sites, and use the shared="true" flag so the ServletContext is shared over all the instances of the apps. Sometimes the session gets invalidate when going from secure to non-secure. We found a workaround to that, but it's a little tricky. Just store a reference to the session on the non-secure site in the ServletContext and retrieve it on the secure one. -- Best regards, Rafaelmailto:[EMAIL PROTECTED]
RE: SV: How to set orion to perform a timely task..
geez, you're right... I have built a java based equivalent of wget(comes with debian), which you could use to hit the jsp... I'll post it in my site tomorrow JP > -Original Message- > From: Jesse Schoch [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 05, 2001 9:31 PM > To: Orion-Interest > Subject: Re: SV: How to set orion to perform a timely task.. > > > a simple jsp that activated your functions activated by a > cron script (or > at on NT) would work great, and you wouldn't have to write a schedler > > -jesse schoch > > > On Mon, 5 Mar 2001, Magnus Rydin wrote: > > > how about an client-application that does some operation on > scheudled hours? > > WR > > > > > -Ursprungligt meddelande- > > > Fran: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > > Skickat: den 3 mars 2001 09:44 > > > Till: Orion-Interest > > > Amne: How to set orion to perform a timely task.. > > > > > > > > > Hello, > > > I need to have my EJB perform some DB operation at > midnight everyday. > > > How do I do that? > > > In PC, I could create a timer object to do that with > VC++, but in Java > > > it does not seem to have such a functionality. And I > think it's ideal > > > to handle it in the server side rather than play with Java. > > > In other words, orion may have such a cron function built in to do > > > something in a timely manner. > > > If anyone has any experience with this, please tell me how. > > > Thank you very much in advance. > > > > > > > > > Simon > > > > > > > > > >
RE: How to set orion to perform a timely task..
Title: SV: How to set orion to perform a timely task.. Could you explain me the servlet solution with a Timer, please ? The point that I do not undestand is following: On one hand, the servlet cannot stay loaded forever, probably the server will detect and unload unused servlets.On the other hand, in order to activate a servlet, the server has to receive an HTTP request to the tcp/ip port that server is listening to, therefore the Timer should implemente a tcp/ip socket. So, how can I wake up my servlet without having to write a socket ? Thanks for explanations, Yves Bossel
Re: https problems...
Hello Geoff, Check that there is no other process using the port you specified (or 443 by default for SSL). Also, if you're running a WinNT or Win2k machine stop the IIS web sites. By some mystical reason it seems to use the port 443 even wheren there is no certificate installed. -- Best regards, Rafaelmailto:[EMAIL PROTECTED]
RE: Has anyone written an EJBDoclet impl for Orion?
We were able to use EJBDoclet out of the box with no problems. We have extended it quite a bit, but nothing Orion specific, only project specific. Anyone using Orion should be able to use EJBDoclet with no problems, and I would highly recommend doing so. James Birchfield Ironmax a better way to buy, sell and rent construction equipment 5 Corporate Center 9960 Corporate Campus Drive, Suite 2000 Louisville, KY 40223 "Chris Bartling" <[EMAIL PROTECTED]> To: Orion-Interest <[EMAIL PROTECTED]> Sent by: cc: owner-orion-interest@orionSubject: RE: Has anyone written an EJBDoclet impl for Orion? server.com 03/05/01 06:49 PM Please respond to Orion-Interest Please note that Rickard and company have move EJBDoclet into SourceForge (http://www.sourceforge.org/projects/ejbdoclet). It would be nice if some of these Orion extensions could find their way back into the distro at SourceForge (hint hint ;-)). The EJBDoclet user community would be very appreciative. Just a thought from an EJBDoclet user. -- chris -- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Juan Lorandi (Chile) Sent: Monday, March 05, 2001 2:52 PM To: Orion-Interest Subject: RE: Has anyone written an EJBDoclet impl for Orion? Rickard Oberg wrote one that should work with any app server... HTH, otherwise, go right ahead! JP > -Original Message- > From: Michael A Third [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 05, 2001 2:49 PM > To: Orion-Interest > Subject: Has anyone written an EJBDoclet impl for Orion? > > > > If not, I'm probably going to write one. > > Thanks, > > Michael >
Re: EJB 2.0 again, again, please.
I'm probably way out of my league when I saying this. java.lang.Integer is a lot bigger than an int. An Integer object could easily handle a SQLBIG_INT, and therefore you should use int instead of Integer for this type of operation. Cannot stress enough the fact that I'm probably on very thin ice when saying this. - Original Message - From: fresnaULL To: Orion-Interest Sent: Tuesday, March 06, 2001 10:58 AM Subject: EJB 2.0 again, again, please. Hi, I have the following entity beans which have a 1-1 relationship: person(id(integer), name(varchar)) job(id(integer), name(varchar)) This is part of my ejb-jar.xml: 2.0Person PersonHome Person PersonBean java.lang.Integer False Container id name jobid id < description> 2.0Job JobHome Job JobBean java.lang.Integer False Container id name id And this is the relationship between them: Person-Job one Person Person Person jobid Job one Job Job Job Everything seems to work fine, I mean, the entities get deployed etc... The tables that Orion create are ok: Person(name(varchar(50)), jobid(integer), id (integer primary key not null)) Job(name(varchar(50)), id(integer primary key not null)) But when I try to create a new Person I get the following error: [ODBC SQL SERVER DRIVER] Optional feature not implemented I've made a trace to the ODBC driver and I've found out that Orion tries to fill the "jobid" field with a SQLBIG_INT type instead of a integer type. This is what I get in the log file: Preparing (SQLPrepare), hStmt=151987528, szSqlStr=insert into Person (name, jobid, id) VALUES (?, ?, ?)Number of parameter markers (SQLNumParams), hStmt=151987528 Number of parameter markers (SQLNumParams), hStmt=151987528value=3 --- This is the name field-- Registering Statement sun.jdbc.odbc.JdbcOdbcPreparedStatement@486be5 Binding IN NULL parameter (SQLBindParameter), hStmt=151987528, ipar=1, SQLtype=12 *PreparedStatement.setNull (1,12) ---This is the jobid field --- Binding IN NULL parameter (SQLBindParameter), hStmt=151987528, ipar=2, SQLtype=-5*PreparedStatement.setNull (2,-5) ---The type -5 is the SQLBIG_INT type. I think it must be 4 which is the integer type Binding IN NULL parameter (SQLBindParameter), hStmt=151987528, ipar=11, SQLtype=-5RETCODE = -1ERROR - Generating SQLException...SQLException: SQLState(S1C00) vendor code(0)java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Optional feature not implemented at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.SQLBindInParameterNull(Unknown Source) at sun.jdbc.odbc.JdbcOdbcPreparedStatement.setNull(Unknown Source) at com.evermind.sql.ao.setNull(JAX) at com.evermind.sql.ao.setNull(JAX) at PersonHome_EntityHomeWrapper13.create(PersonHome_EntityHomeWrapper13.java:402) at Nuevo.doGet(NewPerson.java:328) at javax.servlet.http.HttpServlet.service(HttpServlet.java:190) at javax.servlet.http.HttpServlet.service(HttpServlet.java:302) at javax.servlet.http.HttpServlet.service(HttpServlet.java:329) at com.evermind.server.http.d3.sw(JAX) at com.evermind.server.http.d3.su(JAX) at com.evermind.server.http.ef.s1(JAX) at com.evermind.server.http.ef.do(JAX) at com.evermind.util.f.run(JAX) In the squema for the sql-server I have the following mapping: but anyway it still replace the Integer by SQLBIG_INT Does anybody know what I'm doing wrong? Thanks in advance.
When does EJBOjbect.remove() not work
In many of my JSP files I invoke the .remove() method on an EJB to get it permanently deleted. Sometimes, however, the EJB is NOT deleted even though I get no error messages. So, has anyone experienced that this does not always work: while(myIteratorOfSomeEJBs.hasNext()) ((EJBObject) myIteratorOfSomeEJBs.next()).remove(); I was thinking that maybe it did not work because of some transactional issues (maybe rollbacks happens under some circumstances) - but since I get no error messages, I don't know if this is the case. R.
Session listener redirect
I have created the following session listener class which works but now I want to redirect the client to the start page of the application if they are trying to enter the application from another page. Easy peasy lemon squeezey in asp using global.asa but at a loss with java. Any help greatly appreciated. Code shown below. Ron Quartel. import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class SessionListener implements HttpSessionListener{ public SessionListener() { } public void sessionCreated(HttpSessionEvent hse) { System.out.println("Session started"); //redirect to start page if not alread there i.e index.jsp. } public void sessionDestroyed(HttpSessionEvent hse) {} }
RE: Problem retrieving dependents after Orion restart
According to Jim Archers example, it works with 1.4.4 and NOT with 1.4.5, this could indicate that it does not work properly with 1.4.7 but check Bugzilla for information about that. R. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alex Paransky Sent: 6. marts 2001 07:37 To: Orion-Interest Subject: RE: Problem retrieving dependents after Orion restart Has any one been able to get the Entity(1) to Dependent(N) relationship working? I am thinking of removing Dependent objects and just using Entity Beans. However, in the way Orion handles relationships, I will have an extra table I do not really need. If I have a PersonEntity relating to PhoneEntity in a 1-N scenario, then Orion attempts to create PersonEntity-PhoneEntity join table. Is there a way to modify orion-ejb-jar.xml to avoid this type of scenario. All my Entities are identified with integer key, so my phone table simply contains a field called 'ownerId'. Different types of entities can have phones, but since all the entities are identified with the same type of primary key, I can store that in the 'ownerId' field in the phone table. Thanks. -AP_ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alex Paransky Sent: Monday, March 05, 2001 6:13 PM To: Orion-Interest Subject: RE: Problem retrieving dependents after Orion restart Here is an excerpt from orion-ejb-jar.xml, can someone tell me if I have something configured incorrectly. Again, the data is properly written to the database, it is just NOT READ when orion is restarted and getPhoneDependents() api is executed. Again, the ejb.person.PersonEntity has a 1 to N relation with dependend ejb.pers.PersonPhone. Thanks. -AP_ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alex Paransky Sent: Monday, March 05, 2001 1:18 PM To: Orion-Interest Subject: Problem retrieving dependents after Orion restart I have an entity bean with 1-N relationships to dependents. I have two clients, the first client executes a method on a session that populates and works with the data. The second client tries to access the data. When I run the first client followed by the second client, second client works correctly. When I run the first client, then RESTART ORION, then run second client, second client fails to find dependents (but they are there, in the table). Here is the output: Orion/1.4.7 initialized Create person entity Add phone1 Add phone2 Add phone3 Phone: 8551 (818) 541-0029 1 Phone: 8552 None 2 Phone: 8553 (310) 880-5962 3 Deleting last phone Phones: [Lejb.util.Value;@44006e [apara@junior orion]$ ./go Orion/1.4.7 initialized Phones: null First we create a new person entity, set the phones (dependents), then list the phones, finally delete the last phone. Then restarting orion, we try to lookup the phone dependents. Phones returns as null. The table contains correct values. Phones ARE there. What could be wrong? -AP_
EJB 2.0 again, again, please.
Hi, I have the following entity beans which have a 1-1 relationship: person(id(integer), name(varchar)) job(id(integer), name(varchar)) This is part of my ejb-jar.xml: 2.0Person PersonHome Person PersonBean java.lang.Integer False Container id name jobid id < description> 2.0Job JobHome Job JobBean java.lang.Integer False Container id name id And this is the relationship between them: Person-Job one Person Person Person jobid Job one Job Job Job Everything seems to work fine, I mean, the entities get deployed etc... The tables that Orion create are ok: Person(name(varchar(50)), jobid(integer), id (integer primary key not null)) Job(name(varchar(50)), id(integer primary key not null)) But when I try to create a new Person I get the following error: [ODBC SQL SERVER DRIVER] Optional feature not implemented I've made a trace to the ODBC driver and I've found out that Orion tries to fill the "jobid" field with a SQLBIG_INT type instead of a integer type. This is what I get in the log file: Preparing (SQLPrepare), hStmt=151987528, szSqlStr=insert into Person (name, jobid, id) VALUES (?, ?, ?)Number of parameter markers (SQLNumParams), hStmt=151987528 Number of parameter markers (SQLNumParams), hStmt=151987528value=3 --- This is the name field-- Registering Statement sun.jdbc.odbc.JdbcOdbcPreparedStatement@486be5 Binding IN NULL parameter (SQLBindParameter), hStmt=151987528, ipar=1, SQLtype=12 *PreparedStatement.setNull (1,12) ---This is the jobid field --- Binding IN NULL parameter (SQLBindParameter), hStmt=151987528, ipar=2, SQLtype=-5*PreparedStatement.setNull (2,-5) ---The type -5 is the SQLBIG_INT type. I think it must be 4 which is the integer type Binding IN NULL parameter (SQLBindParameter), hStmt=151987528, ipar=11, SQLtype=-5RETCODE = -1ERROR - Generating SQLException...SQLException: SQLState(S1C00) vendor code(0)java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Optional feature not implemented at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.SQLBindInParameterNull(Unknown Source) at sun.jdbc.odbc.JdbcOdbcPreparedStatement.setNull(Unknown Source) at com.evermind.sql.ao.setNull(JAX) at com.evermind.sql.ao.setNull(JAX) at PersonHome_EntityHomeWrapper13.create(PersonHome_EntityHomeWrapper13.java:402) at Nuevo.doGet(NewPerson.java:328) at javax.servlet.http.HttpServlet.service(HttpServlet.java:190) at javax.servlet.http.HttpServlet.service(HttpServlet.java:302) at javax.servlet.http.HttpServlet.service(HttpServlet.java:329) at com.evermind.server.http.d3.sw(JAX) at com.evermind.server.http.d3.su(JAX) at com.evermind.server.http.ef.s1(JAX) at com.evermind.server.http.ef.do(JAX) at com.evermind.util.f.run(JAX) In the squema for the sql-server I have the following mapping: but anyway it still replace the Integer by SQLBIG_INT Does anybody know what I'm doing wrong? Thanks in advance.
RE: Problem retrieving dependents after Orion restart
IMHO, it is unwise to be using EJB2.0 dependent objects at this point because this is a part of the spec which is likely to change wildly. There have even been significant changes between pd1 (when Orion's implementation was built) and pfd. You can circumvent the relationship table by creating a unidrectional relationship from Phone to Person and a finder method for Phone which is "findByPerson". If you put a getPhone() method on Person, it can hide the call to the finder on Phone. Jeff >-Original Message- >From: Alex Paransky [mailto:[EMAIL PROTECTED]] >Sent: Monday, March 05, 2001 10:37 PM >To: Orion-Interest >Subject: RE: Problem retrieving dependents after Orion restart > > >Has any one been able to get the Entity(1) to Dependent(N) relationship >working? I am thinking of removing Dependent objects and just >using Entity >Beans. However, in the way Orion handles relationships, I will have an >extra table I do not really need. > >If I have a PersonEntity relating to PhoneEntity in a 1-N >scenario, then >Orion attempts to create PersonEntity-PhoneEntity join table. >Is there a >way to modify orion-ejb-jar.xml to avoid this type of scenario. All my >Entities are identified with integer key, so my phone table >simply contains >a field called 'ownerId'. Different types of entities can >have phones, but >since all the entities are identified with the same type of >primary key, I >can store that in the 'ownerId' field in the phone table. > >Thanks. >-AP_ > >-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED]]On Behalf Of Alex Paransky >Sent: Monday, March 05, 2001 6:13 PM >To: Orion-Interest >Subject: RE: Problem retrieving dependents after Orion restart > > >Here is an excerpt from orion-ejb-jar.xml, can someone tell me >if I have >something configured incorrectly. Again, the data is properly >written to >the database, it is just NOT READ when orion is restarted and >getPhoneDependents() api is executed. > >location="ejb.person.PersonEntity" >wrapper="PersonEntityHome_EntityHomeWrapper33" >table="ejb_person_PersonEntity" data-source="jdbc/siteDS"> > > > > > > > > > > > > > > > > > > > > > > > >persistence-name="number" /> > > > > >persistence-name="ownerId" >/> > > > > > > > > > > > > >Again, the ejb.person.PersonEntity has a 1 to N relation with dependend >ejb.pers.PersonPhone. > >Thanks. >-AP_ > >-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED]]On Behalf Of Alex Paransky >Sent: Monday, March 05, 2001 1:18 PM >To: Orion-Interest >Subject: Problem retrieving dependents after Orion restart > > >I have an entity bean with 1-N relationships to dependents. I have two >clients, the first client executes a method on a session that >populates and >works with the data. The second client tries to access the >data. When I >run the first client followed by the second client, second client works >correctly. When I run the first client, then RESTART ORION, >then run second >client, second client fails to find dependents (but they are >there, in the >table). > >Here is the output: > >Orion/1.4.7 initialized >Create person entity >Add phone1 >Add phone2 >Add phone3 >Phone: 8551 (818) 541-0029 1 >Phone: 8552 None 2 >Phone: 8553 (310) 880-5962 3 >Deleting last phone >Phones: [Lejb.util.Value;@44006e > >[apara@junior orion]$ ./go >Orion/1.4.7 initialized >Phones: null > >First we create a new person entity, set the phones >(dependents), then list >the phones, finally delete the last phone. Then restarting >orion, we try to >lookup the phone dependents. Phones returns as null. The >table contains >correct values. Phones ARE there. > >What could be wrong? > >-AP_ > > > > >