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.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_
RE: Subject: unsubscribe
use the form at orionserver.com -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tony DanielloSent: 6. marts 2001 02:56To: Orion-InterestSubject: Subject: unsubscribePlease remove me from your mailing list. -- Tony Daniello Phone: (301) 572-1694 System Support Engineer [EMAIL PROTECTED] Harbor Branch pager [EMAIL PROTECTED]
RE: Again EJB 2.0
Sounds like the database you are using does not support a type called "int" which you are mapping all "Integer"s to. You need to instead have Integer mapped to some 4-byte wide integer value supported, so you would have to check your database documentation for such a type. Anyways, according to the specification, you should fill out the cmp-version field with 2.x, not 2.0. Hope this gets you going Randahl -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of fresnaULLSent: 5. marts 2001 16:08To: Orion-InterestSubject: Again EJB 2.0 Hi, I have the following entity beans: person(id(integer), name(varchar)) job(id(integer), name(varchar)) So, this is my ejb-jar.xml: Person EJB CMP 2.0Person person.PersonHome person.Person person.PersonBean java.lang.Integer False Container id name jobid id Person EJB CMP 2.0Job JobHome Job JobBean java.lang.Integer False Container id name id Person-Job one Job Job Job jobid Job one Person Person Person Everything seems to work fine, I mean, the entities get deployed etc... but when I try to create a new Person Orion seems to map the Integer field to SQLBIG_INT so I get the following error: [ODBC SQL SERVER DRIVER] Optional feature not implemented 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
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_
SV: problems using JDBC 2.0 functions
I've got an old sin of my own (a JDBC solution) that works perfectly. Can you elaborate a bit on your setup, such as version of Orion, JDBC driver, the actual code performed and your database setup? It does not sound as a Orion problem but a JDBC driver problem. WR -Ursprungligt meddelande-Från: Paul Wilcox [mailto:[EMAIL PROTECTED]]Skickat: den 5 mars 2001 08:05Till: Orion-InterestÄmne: problems using JDBC 2.0 functions Hi all, I cant seem to use JDBC 2.0 functions on Orion. Any time I attempt to use a JDBC 2.0 function (such as ResultSet.isLast(), ResultSet.previous(), etc.) I get this error: java.lang.NullPointerException at /ert/Prod_ApplServ.jsp._jspService(/ert/Prod_ApplServ.jsp.java, Compiled Code) 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, Compiled Code) at com.evermind.server.http.d3.su(JAX) at com.evermind.server.http.ef.s1(JAX, Compiled Code) at com.evermind.server.http.ef.do(JAX, Compiled Code) at com.evermind.util.f.run(JAX, Compiled Code) I have gone as far as adding JDBC 3.0 (jdbc-3_0-pfd-classes.jar), but this did not help. Any suggestions? Paul Wilcox
hasPermission
Hi, I noticed that the implementation of EJBUser.hasPermission(Permission p) always return false, has anyone been implementing this method for permission checking of your users? any tip on best approach to use Permission with the use of Principal for application level permission checking (how to store them, etc) ? Thanks, Christian
non-secure and secure site
dear all, what's the standard way to structure an app where some pages are non-secure and other are secure? i can set up a secure site, and redirect from the non-secure site to the secure site, and wondered what the best way is to transfer context to the secure site to continue processing. e.g. non-secure => search for products non-secure => add products to cart non-secure => press checkout, write cart details to database non-secure => redirect to secure-site sending cart number secure => get user to login again secure => reload cart details from database secure => verify shipping address secure => process credit card through payment gateway secure => redirect back to non-secure site this would also involve duplicating a lot of the code between the applications that would run in the secure and non-secure sites, like code to read/write cart contents, read/write user details for login. is there a better way? are they any pitfalls i've missed? thanks, greg.
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.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_
Cannot dispatch url with session id?
Hi there, I found that when requesting a RequestDispatcher's path is url encoded with session id, the returned object will be null. e.g. RequestDispatcher rd = request.getRequestDispatcher(response.encodeURL("/index.jsp")); this rd will return null if the encodeURL produces "/index.jsp;jsessionid=OOLKMGKDDCMA" Is this a bug cause I have no problem with other application server? Regards, Nevin Ng
Re: https problems...
I'm guessing that you have something running on the same port as ssl (443). Check that you don't have anything else running on those boxes that might be listening on that port. >>> [EMAIL PROTECTED] 03/06/01 06:58am >>> I've read the two documents on setting up https and have performed the steps five times using Linux and Windows. But I can't seem to get Orion to slip into SSL. The only clue I have is this message at Orion startup: # Error starting HTTP-Server: Unable to intialize SSLServerSocketFactory 'com.evermind.ssl.JSSESSLServerSocketFactory': Address already in use Orion/1.4.5 initialized What address?? Does Orion mean port?? What port is it trying to use?? -- -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: significance of web-site.xml
Greg, Is the paying customer thing dynamic? or do you know who and how many at any one time? I don't have any experience with clustering, so I'll be answering this question with one server in mind. It sounds like you want each customer to access a different copy of the same web-app, under the same root URL (www.ourdomain.com). Maybe someone else on this list might have a better idea to solve this with filters (I don't have any experience with those, either, so I'm just guessing about that), but what you could do is have multiple lines in your server.xml, corresponding to multiple lines in your web-site.xml, and mount each one on a different directory (ie customer1, customer2, ... customerN) but point them all to the same .war file or codebase. >does creating a new web-site.xml literally correspond to a new registered >domain name? yes. I hope this helps, and if anyone else on this list has more input regarding differences in a clustered environment or a more elegant solution with filters, please chime in. Jeff Hubbach >> >dear all, >> > >> >i've been trying to run multiple copies of an application >> >with each copy having its own config\-web-site.xml file. >> > >> >what's the significance of doing this? do i require a network card >> >for each app that i want to run this way? >> > >> >i can run multiple apps in they're all configured in the >default-web-site.xml >> >file but not when each app has it's own web-site.xml file. >> > >> >i believe this has something to do with the "host" attribute within >> >the element, but don't know what to change it to. >> > >> >i've read the various faqs on orionserver and orionsupport, and >> >read the virtual-hosts faq, but not had any success. >> > >> >thanks, >> >greg. >> >
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_
Subject: unsubscribe
Please remove me from your mailing list. -- Tony Daniello Phone: (301) 572-1694 System Support Engineer [EMAIL PROTECTED] Harbor Branch pager [EMAIL PROTECTED]
RE: classloader does not implement getResourceAsStream ?
You're still going to run into problems when you try to use message resources (used prolifically for internal messages). Struts PropertyMessageResources calls getResourceAsStream() like this: is = this.getClass().getClassLoader().getResourceAsStream(name); ...and if you look at the Orion classloader, it does not implement getResourceAsStream(). This is what produces the "Cannot find message resources under org.apache.struts.action.MESSAGE" error. Look through the struts code for the source of that message; it has nothing to do with loading the dtds. The change described below is not necessary on Orion 1.4.5 or 1.4.7 (the only versions I have tested struts on). My current struts code has this.getClass().getResource(), and I see on the Orion console the correct Digester registration methods for the dtds. this.getClass().getClassLoader().getResource() is returning the correct thing. ...browsing the (decompiled) source, it is amusing to note that the Orion ServletContext (com.evermind.server.http.HttpApplication) does implement getResourceAsStream(), but from the Struts PropertyMessageResources you do not have access to the servlet context so it's no use :-) Jeff >-Original Message- >From: Tim Endres [mailto:[EMAIL PROTECTED]] >Sent: Monday, March 05, 2001 11:50 AM >To: Orion-Interest >Subject: RE: classloader does not implement getResourceAsStream ? > > >> This line (about line 881 in my version): >> URL url = this.getClass().getResource(registrations[i+1]); >> >> Must be replaced by this: >> URL url = getServletContext().getResource(registrations[i+1]); > >Gee, that makes it look like a bug in Struts, as opposed to the >reported bug in Orion. I believe that your patch is considered >the "valid" way to get a resource in a J2EE servlet environment, >is it not? > >tim. > > >
Re: https problems...
Geoff, I believe the default port for SSL is supposed to be port number 443 -- I assume that's what Orion uses. Following is a simple port tester program (for your local host): import java.net.*; import java.io.*; public class SimplePortTester { public static void main(String[] args) { if ( args.length <= 0 ) { System.out.println( "Usage: java SimplePortTester portNumber" ); return; } int portNum = Integer.parseInt( args[0] ); try { // Try to establish a socket connection. If the port was open, // then the connection should be made; otherwise it will fail. System.out.println( "Attempting ServerSocket connection on portNum " + portNum + "." ); ServerSocket serverSocket = new ServerSocket( portNum ); System.out.println( "Connection established (port " + portNum + " was available)." + "\nClosing connection and releasing port..." ); serverSocket.close(); } catch (IOException e) { System.out.println( "ServerSocket connection already exists on portNum " + portNum + "."); } // end try } } To check your default web server port: > java SimplePortTester 80 To check for an in-use (or hung) SSL port: > java SimplePortTester 443 If you are running a web server on port 80, the exception should be thrown with it's message. If the port is available, then the connection should be opened and closed. So, try it with port 473 to see if you have some process hanging onto the SSL port. Sometimes a program opens a socket connection, but fails to close it before the program ends, thus causing a socket connection to hang. This is one of the inherent problems with IP sockets. Eventually, the operating system should release the socket, but different operating systems implement socket timeouts in different ways (I think the default timeout on Solaris is 4 minutes). If you're running NT, you may have to go into the task manager and try to find the program that's hanging onto the port, then kill it. In Unix/Linux, use "ps -ef" to find the offending process. Hope this helps. Jay Armstrong [EMAIL PROTECTED] At 12:58 PM 3/5/01 -0800, you wrote: >I've read the two documents on setting up https and have performed the steps >five times using Linux and Windows. But I can't seem to get Orion to slip >into SSL. > >The only clue I have is this message at Orion startup: > ># Error starting HTTP-Server: Unable to intialize SSLServerSocketFactory >'com.evermind.ssl.JSSESSLServerSocketFactory': Address already in use >Orion/1.4.5 initialized > >What address?? Does Orion mean port?? What port is it trying to use?? > > >-- > >-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 >... > > >
JAXP, Saxon 6.2 and Orion
I am using Saxon 6.2, from a JSP Tag Extension and am experiencing the following situation. I have a compiled code base runs fine with versions 1.3.8 and 1.4.5. However, when I move to 1.4.7 I experience the following runtime exceptions. java.lang.NoSuchMethodError: javax.xml.transform.TransformerConfigurationException: method (Ljava/lang/Exception;)V not found at /index.jsp._jspService(/index.jsp.java:105) at com.orionserver.http.OrionHttpJspPage.service(JAX) at com.evermind.server.http.HttpApplication.xu(JAX) at com.evermind.server.http.JSPServlet.service(JAX) at com.evermind.server.http.d4.s3(JAX) at com.evermind.server.http.d4.s1(JAX) at com.evermind.server.http.eg.s9(JAX) at com.evermind.server.http.eg.dr(JAX) at com.evermind.util.f.run(JAX) OR java.lang.NoSuchMethodError at com.icl.saxon.TransformerFactoryImpl.getAssociatedStylesheet(Transformer FactoryImpl.java:219) at com.apama.apps.util.TransformManager.buildCompositeStyleSheet(TransformM anager.java:147) at com.apama.apps.jsp.taglibs.xsl.ApplyXSLTag.getTransformManager(ApplyXSLT ag.java:263) at com.apama.apps.jsp.taglibs.xsl.ApplyXSLTag.processXML(ApplyXSLTag.java:1 94) at com.apama.apps.jsp.taglibs.xsl.ApplyXSLTag.processContent(ApplyXSLTag.ja va:175) at com.apama.apps.jsp.taglibs.xsl.ApplyXSLTag.doEndTag(ApplyXSLTag.java:135 ) at /index.jsp._jspService(/index.jsp.java:100) at com.orionserver.http.OrionHttpJspPage.service(JAX) at com.evermind.server.http.HttpApplication.xu(JAX) at com.evermind.server.http.JSPServlet.service(JAX) at com.evermind.server.http.d4.s3(JAX) at com.evermind.server.http.d4.s1(JAX) at com.evermind.server.http.eg.s9(JAX) at com.evermind.server.http.eg.dr(JAX) at com.evermind.util.f.run(JAX) The first exception is being thrown when the code is debugged attatching to Orion, the second is when being run without an attatched debug process. I am curious if anyone has experience issues with Orion's version of JAXP and the one used by Saxon. I understand the details here are very vague, but I am not having much luck tracking down specifics in this particular situation. Thanks, Ted Rice winmail.dat
Re: How to configure connectionpool to the database for orion.
look at the data-sources.xml definition it is layed out there -jesse schoch On Mon, 5 Mar 2001, Deepak Yadwad wrote: > Orion has given connectionpool class to connect to the database. How > to configure that. is there any documents for that. > I have downloaded the orion documentation but I didn't any relavent > documentation. Please help me regarding this. > > Thanxs in advance > Deepak > >
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: Has anyone written an EJBDoclet impl for Orion?
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: Orion crashed under load test
I received the following question: - Original Message - From: "Tony Cleverley" <[EMAIL PROTECTED]> > What tools were you using to load test Orion and are > they in the public domain? Well, we used our own showcase application (which we actually have put into the public domain (cf. http://www.livis.de/projects/livingtalks). However, the Orion version of it (version 1.1a rather than v1.1) is not on this server. If there is interest for it, I may release it, maybe also as a showcase application for orion-support. It is a conference management system with EJB and CMP running on real conference data (http://www.netobjectdays.org). We simulated traffic with a couple of scripts containing lynx commands with multiple processes and running on multiple boxes. As a side note: v1.1 (Sun's RI with Cloudscape) needs 210 minutes for the import of data in a single transaction while v1.1a (Orion with Firebird) needs 0.75 minutes... Must be a bug in Cloudscape ?! Bye, Falk
Re: significance of web-site.xml
good question. clustering islands seem to be only specified in a web-site.xml file. i'm more of a java programmer than a network/webserver administrator so apologies if this is a bit of a dumb question. if i want to run copies of my app for different paying customers, and cluster each individually then i'm under the impression that i need each copy of the app configured in separate web-site.xml files. i understand (and have tried) everything that you've included in your email but i still don't have an answer to my question. does creating a new web-site.xml literally correspond to a new registered domain name? is there a way to have, www.ourdomain.com/customer1/myApp and www.ourdomain.com/customer2/myApp and so on setup, where customer1 and customer2 have been set up in separate web-site.xml files, and are also clustered in separate islands. i've got clustering going, and i've got multiple apps configured but all using default-web-site.xml which is not what we're after. i've also followed the virtual-hosts tutorial but it also didn't go the extra step and explain what a new web-site.xml meant. thanks, greg. - Original Message - From: "Jeff Hubbach" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Monday, March 05, 2001 2:38 PM Subject: Re: significance of web-site.xml > Greg, > > I guess the first question is why are you trying to do this? The web-site is associated with a distinct web site. If you have multiple applications you want under the same web site, ie www.blah.com, then you just make multiple applications in the web-site file that points its host to www.blah.com. If you want 2 distinct websites, ie www.foo.com and www.bar.com, then you make 2 separate web-site.xml files and point the host of each one to these separate URLs. > > Jeff Hubbach > > On Mon, 5 Mar 2001 09:22:51 +1000 > "Greg Matthews" <[EMAIL PROTECTED]> wrote: > > >dear all, > > > >i've been trying to run multiple copies of an application > >with each copy having its own config\-web-site.xml file. > > > >what's the significance of doing this? do i require a network card > >for each app that i want to run this way? > > > >i can run multiple apps in they're all configured in the default-web-site.xml > >file but not when each app has it's own web-site.xml file. > > > >i believe this has something to do with the "host" attribute within > >the element, but don't know what to change it to. > > > >i've read the various faqs on orionserver and orionsupport, and > >read the virtual-hosts faq, but not had any success. > > > >thanks, > >greg. > > >
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_
https problems...
I've read the two documents on setting up https and have performed the steps five times using Linux and Windows. But I can't seem to get Orion to slip into SSL. The only clue I have is this message at Orion startup: # Error starting HTTP-Server: Unable to intialize SSLServerSocketFactory 'com.evermind.ssl.JSSESSLServerSocketFactory': Address already in use Orion/1.4.5 initialized What address?? Does Orion mean port?? What port is it trying to use?? -- -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: 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: Has anyone written an EJBDoclet impl for Orion?
Title: RE: Has anyone written an EJBDoclet impl for Orion? I'm in the process of writing one. It currently generates the home, remote, and data classes. I'm working on the ejb-jar portion now. Features that Rickard's does not have: 1) ejb 2.0 2) real xml templates 3) ejb-jar portions for each bean that get merged into any ejb-jar at a later time 4) eventually, it will generate the files without messing with your edits in those files. (as soon as I figure out the best way to do that) -tim > -Original Message- > From: Michael A Third [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 05, 2001 12: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: classloader does not implement getResourceAsStream ?
> This line (about line 881 in my version): > URL url = this.getClass().getResource(registrations[i+1]); > > Must be replaced by this: > URL url = getServletContext().getResource(registrations[i+1]); Gee, that makes it look like a bug in Struts, as opposed to the reported bug in Orion. I believe that your patch is considered the "valid" way to get a resource in a J2EE servlet environment, is it not? tim.
Re: Simple classpath prob
Put it in a jar file in a lib somewhere, and add the line: to $ORION/config/server.xml At 11:41 05/03/2001 +, Daryl Hall wrote: >Hi - pls someone help me before I go nuts! > >I've written a servlet in development=true mode that implements an interface >class. How do I tell orion where to find this class? The interface is in >the same package as the servlet and I've tried the following: > > Dropping the interface.class file in the same directory as as the >autocompiled servlet.class > Creating a .jar file with the interface.class file in and > dropping that in >both WEB-INF/lib and WEB-INF/classes > Starting the orion server with a java -classpath >%path-to-jar%;%other-paths% com.evermind.server.ApplicationServer instead of >the java -jar orion.jar > >But nothing has worked - someone please put me out of my misery!! > >cheers >daryl -- 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: Has anyone written an EJBDoclet impl for Orion?
We use EJBDoclet. We have it set to generate all our Homes and Remotes, our descriptiors, and our utility classes that return handles to all our Homes. Sweet tool ,and easy to extend. 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 "Michael A Third" <[EMAIL PROTECTED]>To: Orion-Interest <[EMAIL PROTECTED]> Sent by: cc: owner-orion-interest@orionSubject: Has anyone written an EJBDoclet impl for Orion? server.com 03/05/01 12:49 PM Please respond to Orion-Interest If not, I'm probably going to write one. Thanks, Michael
Has anyone written an EJBDoclet impl for Orion?
If not, I'm probably going to write one. Thanks, Michael
RE: Simple classpath prob
Did you set your source-directory in orion-web.xml? Did you make sure your browser doesn't do any caching? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Daryl Hall Sent: Monday, March 05, 2001 4:47 AM To: Orion-Interest Subject: Simple classpath prob Hi - pls someone help me before I go nuts! I've written a servlet in development=true mode that implements an interface class. How do I tell orion where to find this class? The interface is in the same package as the servlet and I've tried the following: .
un subscribe
un subscribe -Original Message- From: joonkim [mailto:[EMAIL PROTECTED]] Sent: Monday, March 05, 2001 3:41 AM To: Orion-Interest Subject: un subscribe un subscribe
RE: un subscribe
sorry bout that -Original Message- From: joonkim [mailto:[EMAIL PROTECTED]] Sent: Monday, March 05, 2001 3:41 AM To: Orion-Interest Subject: un subscribe un subscribe
problems using JDBC 2.0 functions
Hi all, I cant seem to use JDBC 2.0 functions on Orion. Any time I attempt to use a JDBC 2.0 function (such as ResultSet.isLast(), ResultSet.previous(), etc.) I get this error: java.lang.NullPointerException at /ert/Prod_ApplServ.jsp._jspService(/ert/Prod_ApplServ.jsp.java, Compiled Code) 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, Compiled Code) at com.evermind.server.http.d3.su(JAX) at com.evermind.server.http.ef.s1(JAX, Compiled Code) at com.evermind.server.http.ef.do(JAX, Compiled Code) at com.evermind.util.f.run(JAX, Compiled Code) I have gone as far as adding JDBC 3.0 (jdbc-3_0-pfd-classes.jar), but this did not help. Any suggestions? Paul Wilcox
Again EJB 2.0
Hi, I have the following entity beans: person(id(integer), name(varchar)) job(id(integer), name(varchar)) So, this is my ejb-jar.xml: Person EJB CMP 2.0Person person.PersonHome person.Person person.PersonBean java.lang.Integer False Container id name jobid id Person EJB CMP 2.0Job JobHome Job JobBean java.lang.Integer False Container id name id Person-Job one Job Job Job jobid Job one Person Person Person Everything seems to work fine, I mean, the entities get deployed etc... but when I try to create a new Person Orion seems to map the Integer field to SQLBIG_INT so I get the following error: [ODBC SQL SERVER DRIVER] Optional feature not implemented 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.
Request for your comments: Possible improvement of Orion CMP 2.0
I noticed that CMP 2.0 getXYZ-methods like customer.getAccounts() return a Collection which does not use isIdentical() to test whether it contains some element. I.e. when you invoke customer.getAccounts().contains(myAccount); this does not work. It seems to me that the collection returned by Orion is as incompatible with EJB as is the Java Collections Framework. This raises the question: Should not Orion return a collection which is compatible with EJB? - After all, it is an EJB server, and a pretty good one too, I might add. Yours Randahl
RE: un subscribe
please use the form at www.orionserver.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of joonkim Sent: 5. marts 2001 10:41 To: Orion-Interest Subject: un subscribe un subscribe
RE: How to set orion to perform a timely task..
Title: SV: How to set orion to perform a timely task.. We use a client application that runs in the orion vm that uses a scheduled TIMER - they've been added in JDK1.3 Timer t = new Timer(true); t.schedule(new Job(), 0, 20); Jaco -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Magnus RydinSent: 05 March 2001 10:08To: Orion-InterestSubject: SV: How to set orion to perform a timely task.. 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.. We use a client application that runs in the orion vm that uses a scheduled TIMER - they've been added in JDK1.3 Timer t = new Timer(true); t.schedule(new Job(), 0, 20); Jaco -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Magnus RydinSent: 05 March 2001 10:08To: Orion-InterestSubject: SV: How to set orion to perform a timely task.. 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.. Or if you're using JDK 1.3 there's always java.util.Timer (vastly underused IMHO). -mike -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Magnus RydinSent: Monday, March 05, 2001 7:08 PMTo: Orion-InterestSubject: SV: How to set orion to perform a timely task.. 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 > >
Simple classpath prob
Hi - pls someone help me before I go nuts! I've written a servlet in development=true mode that implements an interface class. How do I tell orion where to find this class? The interface is in the same package as the servlet and I've tried the following: Dropping the interface.class file in the same directory as as the autocompiled servlet.class Creating a .jar file with the interface.class file in and dropping that in both WEB-INF/lib and WEB-INF/classes Starting the orion server with a java -classpath %path-to-jar%;%other-paths% com.evermind.server.ApplicationServer instead of the java -jar orion.jar But nothing has worked - someone please put me out of my misery!! cheers daryl
Simple classpath prob
Hi - pls someone help me before I go nuts! I've written a servlet in development=true mode that implements an interface class. How do I tell orion where to find this class? The interface is in the same package as the servlet and I've tried the following: Dropping the interface.class file in the same directory as as the autocompiled servlet.class Creating a .jar file with the interface.class file in and dropping that in both WEB-INF/lib and WEB-INF/classes Starting the orion server with a java -classpath %path-to-jar%;%other-paths% com.evermind.server.ApplicationServer instead of the java -jar orion.jar But nothing has worked - someone please put me out of my misery!! cheers daryl
RE: Orion crashed under load test
Title: Orion crashed under load test Was wondering what you used to test it with? -Original Message-From: Eyal Litman (Kamoon IL) [mailto:[EMAIL PROTECTED]]Sent: 04 March 2001 09:29To: Orion-InterestSubject: Orion crashed under load test Hi, I load tested orion under linux red hat 7 and IBM 1.3 JDK. Orion crashed after few minutes of "easy" load. Does anybody had some similar problems ? Could IBM 1.3 JDK could be the cause ? Thanks in advance, Eyal Litman Server Side Team, Kamoon Ltd. BUY YOUR 2001 ISA AT INTERACTIVE INVESTOR'S NEW ISA CENTRE - visit http://www.iii.co.uk/isa for a choice of 400+ funds, market leading discounts and access to expert advice. FANCY A FREE ISA? Enter our competition now at http://www.iii.co.uk/isa Terms and Conditions apply and are available online. Issued by Interactive Investor Trading Limited, regulated by the SFA.
RE: un subscribe
please use the form at orionserver.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Abhishek Sehgal Sent: 5. marts 2001 06:34 To: Orion-Interest Subject: un subscribe un subscribe __ FREE Personalized Email at Mail.com Sign up at http://www.mail.com/?sr=signup
How to configure connectionpool to the database for orion.
Orion has given connectionpool class to connect to the database. How to configure that. is there any documents for that. I have downloaded the orion documentation but I didn't any relavent documentation. Please help me regarding this. Thanxs in advance Deepak
un subscribe
un subscribe
Re: Finding my images
Try this: ear ejb . Meta-Inf web *.jsp *.html . images *.gif Meta-Inf Web-Inf You can then in your jsp pages use this construction to find images (or in case of servlets you can generate the element bellow through your code): . To: Orion-Interest <[EMAIL PROTECTED]> Sent: Friday, March 02, 2001 11:51 PM Subject: Finding my images > Hi, > > I have set up a web.xml file in the > default-web-app directory, it reads > as follows: > > > MyApp > com.testing.test > 1 > > MyApp >*.tnt > > > > I have images that don't show up in the > servlet and I believe I don't have the > image directory in the right location > > If I access the servlet like this > http://localhost/MyApp/GetListing.tnt > > When the page is served, my images don't > show up, and they show the following path > http://localhost/MyApp/myimage.gif > > Q1) Where should the images be placed to be > found. > > Q2) Do I need to do an image mapping someplace?? > > thanks, > > Paul
SV: How to set orion to perform a timely task..
Title: SV: How to set orion to perform a timely task.. 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 > >