Re: CMP default datasource
Add "default-data-source" to orion/config/application.xml like this: orion-application autocreate-tables="true" default-data-source="jdbc/OracleDS", if that dosn't work try to add your DS at the top of the data-sources.xml, like data-sorcemyDS/data-source data-sorcemyOther/data-source /Fredrik From: "Ashok Banerjee" [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: CMP default datasource Date: Thu, 05 Apr 2001 15:12:14 -0700 MIME-Version: 1.0 X-Originating-IP: [205.227.43.13] Received: from [195.58.126.196] by hotmail.com (3.2) with ESMTP id MHotMailBC965A0F005240043121C33A7EC40F670; Thu Apr 05 17:34:28 2001 Received: from druid.evermind.net (IDENT:[EMAIL PROTECTED] [195.58.126.196])by druid.evermind.net (8.9.3/8.9.3) with SMTP id AAA29296;Fri, 6 Apr 2001 00:18:02 -0100 Received: from hotmail.com (f304.law7.hotmail.com [216.33.236.182])by paladin.evermind.net (8.9.3/8.9.3) with ESMTP id CAA16023for [EMAIL PROTECTED]; Fri, 6 Apr 2001 02:10:13 -0400 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 5 Apr 2001 15:12:15 -0700 Received: from 205.227.43.13 by lw7fd.law7.hotmail.msn.com with HTTP; Thu, 05 Apr 2001 22:12:14 GMT From [EMAIL PROTECTED] Thu Apr 05 17:34:36 2001 Message-ID: [EMAIL PROTECTED] X-OriginalArrivalTime: 05 Apr 2001 22:12:15. (UTC) FILETIME=[786B4980:01C0BE1D] X-Mailer: Orion ListServer Sender: [EMAIL PROTECTED] I could change the cmt datasource (from HyperSonic to mySql) by changing in the application-deployments directory (thanks to pointer from UnicMan). But does anyone know what one can do in ones own ejbs to have the CMP bean persisted to mySql by default. Cheers, Ash _ Get your FREE download of MSN Explorer at http://explorer.msn.com _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Re: Where to put application parameters?
Try this: String path = "your-relative-path.xml" InputStream ins= null; try { ins = getClass().getClassLoader().getResourceAsStream(path); } catch (Throwable ex) { com.amaio.util.sys.prn("Error getting XML resource"+ex); } - Original Message - From: Toth [@FREEMAIL], Adam (E-mail) [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, April 05, 2001 5:12 PM Subject: Where to put application parameters? Hi, We're using a component in our sw, and that needs a config XML file. The following method is used currently: java -Dsomeparam=path-to.xml -jar orion.jar We don't have to source, and it's working ok I''ve tried to put this into web-inf/web.xml (into EAR in WAR of course) like this: [..] web-app context-param param-namesomeparam/param-name param-valuepath-to.xml/param-value /context-param [..] But it's not working. We're using absolute pathnames on WinNT (like C:\dir\dir2\this.xml). so it's not a problem of "where is this relative filename starts" Does anybody know how to solve this? It's not very elegant to deploy an app an use -D options, I think, is it. It would be nice to take a look at a working solution or hear some comments on this. Thank you in advance, Adam
Re: Including jar files in my web app ?
I was able to do this by simply printing out the current classloader. Write a simple servlet/JSP page that does this: response.getOutputStream().println( "classloader: " + this.getClass().getClassLoader().toString() ); Unfortunately, I had troubles getting the above code loaded in certain situations - a circular problem! I've been looking into my classloading issues more.. it seems there's something more subtle going on that I haven't nailed down yet. I think it may be some sort of class version conflict. I should have more to report soon. court Ed Bras wrote: Thanks for the feedback guys. Apearantly some people have problems including jar files. To me it's not clear what the problem is, but to solve it I need to know where Orion looks for jar files. Can someone please tell me that or tell me how to enable Orion to output his search locations/paths ?? Plaaase? Resume: If I just put my jar file in the lib, my web-app can't find it. If I include the jar file in a tablib entry, neither does it find it (but I think this isn't the way as the jar is not for JSP usage). I have tried about everyting, but ...nothing... and it's hard searching the problem if Orion doesn't tell me where he searches. Eddie. From: "Carter, Shane" [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: RE: Including jar files in my web app ? Date: Thu, 5 Apr 2001 08:04:51 -0500 I'm having the same problem with Orion. I'm getting NoSuchMethodError when I run this class in Orion. It works fine outside of Orion. I think Orion is picking up another package elsewhere. Below is the error message I'm getting. java.lang.NoSuchMethodError at org.jdom.input.SAXHandler.startElement(SAXBuilder.java:607) at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1289) at org.apache.xerces.framework.XMLParser.callStartElement(XMLParser.java:1922) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne r.java:1831) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM LDocumentScanner.java:1223) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner. java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1208) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:302) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:373) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:354) at com.psg.blkjck.control.RequestParser.loadNodeCollection(RequestParser.java:6 1) at com.psg.blkjck.control.RequestParser.clinit(RequestParser.java:44) at com.psg.blkjck.control.NavController.doGet(NavController.java:98) at com.psg.blkjck.control.NavController.doPost(NavController.java:56) at javax.servlet.http.HttpServlet.service(HttpServlet.java:204) 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) -Original Message- From: Eddie [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 5:47 AM To: Orion-Interest Subject: Re: Including jar files in my web app ? Thanks court but it doesn't work with me. I did what you suggested, put the velocity.jar file in the classes dir, removed the lib, unpacked it in the classes dir, put the org dir in the same package dir as where the java file is located, but no luck. Maybe because my class file is located in a package and I call it through a sevlet reference. It keeps on giving me that classDefnotFound error. I also validated my web.xml file, but nothing. Can someone please tell me where Orion looks ?? or how to debug this ?? as this is getting a bit fru... I also tried some debug options as explained on the site, but can't find one which shows where Orion looks ! Hope to get some help here as I am a bit stuck! Eddie - Original Message - From: Court Demas [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, April 05, 2001 9:36 AM Subject: Re: Including jar files in my web app ? I just had a similar problem. Orion saw classes *either* in WEB-INF/classes *or* in WEB-INF/lib. My solution was to either unpack all classes into WEB-INF/classes (removing the lib directory), or create one huge JAR file in WEB-INF/lib (removing the classes directory). I hope there's a better solution! court Eddie wrote: I don't seem be able to tell Orion 1.4.7 te read my bla.jar that is located in the WEB-INF/lib ?? To me it's not really clear how to do that. The
Re: Question on Deploying an Enterprise App
- Original Message - From: "Abhilash Koneri" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Friday, April 06, 2001 4:41 AM Subject: Re: Question on Deploying an Enterprise App Thanks a lot for the reply, I have some more questions : 1. If the helper classes are accessed by my servelets as well as EJBs whould the suggested Configuration still work? See the ejb 1.1 spec chapter 17, especially 17.3 and 17.4. Perhaps you need to use the classpath element in orion-web.xml, since it is not clear to me whether the jars that are referenced through the manifest class-path: entry in ejb.jar will be made available to your client. Orion does make available the classes contained in ejb.jar itself, as long as your web-app contains an ejb-ref for it. Just experiment a little and let us know. 2. Where do I put the class which are clients to my EJBs ? For example : Servlet A Class B EJB C. Where do I put my class B? These are helper classes to your servlets and jsp's so they go in your .war under WEB-INF/classes or jarred under WEB-INF/lib. Marcel
Re: Question on Deploying an Enterprise App
- Original Message - From: "Abhilash Koneri" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Friday, April 06, 2001 4:41 AM Subject: Re: Question on Deploying an Enterprise App Thanks a lot for the reply, I have some more questions : 1. If the helper classes are accessed by my servelets as well as EJBs whould the suggested Configuration still work? See the ejb 1.1 spec chapter 17, especially 17.3 and 17.4. Perhaps you need to use the classpath element in orion-web.xml, since it is not clear to me whether the jars that are referenced through the manifest class-path: entry in ejb.jar will be made available to your client. Orion does make available the classes contained in ejb.jar itself, as long as your web-app contains an ejb-ref for it. Just experiment a little and let us know. 2. Where do I put the class which are clients to my EJBs ? For example : Servlet A Class B EJB C. Where do I put my class B? These are helper classes to your servlets and jsp's so they go in your .war under WEB-INF/classes or jarred under WEB-INF/lib. Marcel
Re: Question on Deploying an Enterprise App
- Original Message - From: "Abhilash Koneri" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Friday, April 06, 2001 4:41 AM Subject: Re: Question on Deploying an Enterprise App Thanks a lot for the reply, I have some more questions : 1. If the helper classes are accessed by my servelets as well as EJBs whould the suggested Configuration still work? See the ejb 1.1 spec chapter 17, especially 17.3 and 17.4. Perhaps you need to use the classpath element in orion-web.xml, since it is not clear to me whether the jars that are referenced through the manifest class-path: entry in ejb.jar will be made available to your client. Orion does make available the classes contained in ejb.jar itself, as long as your web-app contains an ejb-ref for it. Just experiment a little and let us know. 2. Where do I put the class which are clients to my EJBs ? For example : Servlet A Class B EJB C. Where do I put my class B? These are helper classes to your servlets and jsp's so they go in your .war under WEB-INF/classes or jarred under WEB-INF/lib. Marcel
Re: Question on Deploying an Enterprise App
- Original Message - From: "Abhilash Koneri" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Friday, April 06, 2001 4:41 AM Subject: Re: Question on Deploying an Enterprise App Thanks a lot for the reply, I have some more questions : 1. If the helper classes are accessed by my servelets as well as EJBs whould the suggested Configuration still work? See the ejb 1.1 spec chapter 17, especially 17.3 and 17.4. Perhaps you need to use the classpath element in orion-web.xml, since it is not clear to me whether the jars that are referenced through the manifest class-path: entry in ejb.jar will be made available to your client. Orion does make available the classes contained in ejb.jar itself, as long as your web-app contains an ejb-ref for it. Just experiment a little and let us know. 2. Where do I put the class which are clients to my EJBs ? For example : Servlet A Class B EJB C. Where do I put my class B? These are helper classes to your servlets and jsp's so they go in your .war under WEB-INF/classes or jarred under WEB-INF/lib. Marcel
RE: WE NEED NEWS! We need to know Orion is alive well!
Nice analogy :o) And one day I'll be able to say that I had all their early albums before they became famous... Dan/tastapod At 13:02 05/04/2001 -0500, you wrote: How many people are actually working on Orion, and what is their forte? Most likely, it is probably developed and maintain by a small number (maybe under six). Sure, they are successful, and sell, but they could sell more. Think up them as an up and coming rock group. Add a good manager (CEO with a good business plan) and a promoter (a great technical writer working the documentation), and suddenly you have U2. -Original Message- From: Matthew E. Porter [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 11:57 AM To: Orion-Interest Subject: Re: WE NEED NEWS! We need to know Orion is alive well! I also would like to here from someone at Ironflare/Orion concerning the status of the company. My company is currently planning to build our internal infrastructure on the Orion server. -matthew porter elephantwalker wrote: I have tried to schedule phone calls with Orion by sending emails and faxes to ironflare, nothing seems to work. We are going to deploy soon, but if I can't talk to these guys at least once, there's no way we are forking over any money. We need that "nice fuzzy feeling" that you get by talking to a warm body. Are there any paying customers on the news service that are getting prompt and reliable service for Orion, either by email or phone? Regards, Elephantwalker -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Neville Burnell Sent: Wednesday, April 04, 2001 7:27 PM To: Orion-Interest Subject: WE NEED NEWS! We need to know Orion is alive well! Its been around 4 months since Orion went on "life-support" - ie - the website went on hold ... - Karl Magnus went silent on company futures except for rare emails promising news soon - the software development slowed to a crawl [by comparison to last year's "rush"] - bug fixes slowed to a crawl - my email to [EMAIL PROTECTED] went unanswered Please Karl, Magnus, give us some news, even if its only to understand whats happened in the last 4 months -Original Message- From: Aaron Tavistock [mailto:[EMAIL PROTECTED]] Sent: Thursday, 5 April 2001 11:48 AM To: Orion-Interest Subject: RE: Any news from Orion yet?? Wasn't this from *WAY* back in January... I know that Orion 1.4.5 was released around January 22nd, there has been the updates to 1.4.7, *AND* there were rumors about 1.4.8. But, there really hasn't been any news about the goings on of Evermind/IronFlare. How are you guys doing? Whats the state of IronFlare? It would be nice to hear whats going on... -- Dan North VP Development - Cadrion Software Ltd - +44 (0)20 7440 9550 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
Problem with authentication - login
Hi, a first here I am new to using the J2EE environment. All previous projects on Weblogic we have written our own custom authentication now there is java.security.principal and all that. The problem I have is I went through an example I found on the archive along with the one on orionsupport.com for setting up the the DataSourceUserManager I have copied to a T (as far as 3 of us can figure). firstly on ie 5.5 The form never happens, all that I get is BASIC authentication When I try and change the login-config to BASIC there users never login in the users table there is a petern/pass and assigned to the group user users NAMEPASSWORD petern pass USER_GROUPS NAMEUSR_NAME userpetern The configuration is as follows... (I would really like some help on this) I have had to write my own authentication for the servlets and JSP and would much rather create secure zones based on what should be available. AppName application.xml and web.xml have the following /myapp/application.xml has security-role role-nameuser/role-name descriptionRegisterd Users/description /security-role /myapp/web.xml has the following security-constraint web-resource-collection web-resource-namemyapp/web-resource-name descriptionmyapp default is all secure/description url-pattern/start.jsp/url-pattern http-method*/http-method /web-resource-collection auth-constraint descriptionThe users creating /description role-nameuser/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/loginbox.jsp/form-login-page form-error-page/login-error.html/form-error-page /form-login-config /login-config security-role role-nameuser/role-name descriptionRegisterd Users/description /security-role principals.xml in myapp in the application-deployments has groups group name="guest" / group name="user" / group name="admin" / /groups users /users in orion-application.xml there is principals path="principals.xml" / user-manager class="com.evermind.sql.DataSourceUserManager" property name="groupMembershipGroupFieldName" value="NAME" / property name="groupMembershipUsernameFieldName" value="NAME" / property name="table" value="USERS" / property name="passwordField" value="PASSWORD" / property name="groupMembershipTableName" value="---" / property name="usernameField" value="---" / property name="dataSource" value="ejb/default_myappDataSource" / /user-manager security-role-mapping name="user" group name="user" / /security-role-mapping _ This message has been checked for all known viruses by the MessageLabs Virus Control Centre. For further information visit http://www.messagelabs.com/stats.asp
RE: Where to put application parameters?
Hi, Petr: Thanks, but you misunderstood the problem (may be my fault). The problem is that the component - which doesn't have the .java source - uses this parameter. Yes, I think they use ins = getClass().getClassLoader().getResourceAsStream(path); It's OK but the problem is that I can't change the component's code. [freesrc vs "component based off-the-self" etc etc] The reason I'm asking for help is to put this parameter somehow to somewhere in the app's config files, so the customer doesn't have to care about orion's starting parameters after [s]he deployed the app. Of course it's working with java -Doption=value -jar orion.jar BR, Adam -Original Message- From: Petr Podsednik To: Orion-Interest Subject: Re: Where to put application parameters? Try this: String path = "your-relative-path.xml" InputStream ins= null; try { ins = getClass().getClassLoader().getResourceAsStream(path); } catch (Throwable ex) { com.amaio.util.sys.prn("Error getting XML resource"+ex); } - Original Message - From: Toth [@FREEMAIL], Adam (E-mail) [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, April 05, 2001 5:12 PM Subject: Where to put application parameters? Hi, We're using a component in our sw, and that needs a config XML file. The following method is used currently: java -Dsomeparam=path-to.xml -jar orion.jar We don't have to source, and it's working ok I''ve tried to put this into web-inf/web.xml (into EAR in WAR of course) like this: [..] web-app context-param param-namesomeparam/param-name param-valuepath-to.xml/param-value /context-param [..] But it's not working. We're using absolute pathnames on WinNT (like C:\dir\dir2\this.xml). so it's not a problem of "where is this relative filename starts" Does anybody know how to solve this? It's not very elegant to deploy an app an use -D options, I think, is it. It would be nice to take a look at a working solution or hear some comments on this. Thank you in advance, Adam
RE: Where to put application parameters?
Where/how do you try and get the parameter JSP String someparam = (String)application.getInitParameter("someparam"); Servlet in the init String someparam = (String)application.getInitParameter("someparam"); Sometimes this does not work if you try and use the getInitParameter in the service/post methods. try getting the configuration and the servletcontext from that. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Petr Podsednik Sent: 06 April 2001 08:55 To: Orion-Interest Subject: Re: Where to put application parameters? Try this: String path = "your-relative-path.xml" InputStream ins= null; try { ins = getClass().getClassLoader().getResourceAsStream(path); } catch (Throwable ex) { com.amaio.util.sys.prn("Error getting XML resource"+ex); } - Original Message - From: Toth [@FREEMAIL], Adam (E-mail) [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, April 05, 2001 5:12 PM Subject: Where to put application parameters? Hi, We're using a component in our sw, and that needs a config XML file. The following method is used currently: java -Dsomeparam=path-to.xml -jar orion.jar We don't have to source, and it's working ok I''ve tried to put this into web-inf/web.xml (into EAR in WAR of course) like this: [..] web-app context-param param-namesomeparam/param-name param-valuepath-to.xml/param-value /context-param [..] But it's not working. We're using absolute pathnames on WinNT (like C:\dir\dir2\this.xml). so it's not a problem of "where is this relative filename starts" Does anybody know how to solve this? It's not very elegant to deploy an app an use -D options, I think, is it. It would be nice to take a look at a working solution or hear some comments on this. Thank you in advance, Adam _ This message has been checked for all known viruses by the MessageLabs Virus Control Centre. For further information visit http://www.messagelabs.com/stats.asp
SV: Orion CMP
Title: SV: Orion CMP check out /orion/database there you find the hSQL files. WR -Ursprungligt meddelande- Från: Ashok Banerjee [mailto:[EMAIL PROTECTED]] Skickat: den 5 april 2001 12:13 Till: Orion-Interest Ämne: Orion CMP Where does Orion store its CMP data? I know it uses HSQL and I believe HSQL - where are the HSQL datafiles physically located? If I change in data-source.xml does that mean my CMP data is also now going to go to a different database? I modified data-sources.xml as below and yet I keep getting D:\Orion\orion\demo\ejb\productjava -classpath .;..\..\..\orion.jar;..\..\..\ej b.jar;..\..\..\jndi.jar ProductClient Communication error: Error reading application-client descriptor: Error looking up EJBHome: Lookup error: java.net.ConnectException: Connection refused: no furt her information; nested exception is: java.net.ConnectException: Connection refused: no further information Any further information on configuring orion to use Oracle DB as persistent store would help. Cheers, Ash -- -- ?xml version=1.0? !DOCTYPE data-sources PUBLIC Orion data-sources http://www.orionserver.com/dtds/data-sources.dtd data-sources !-- An example/default DataSource that uses an ordinary JDBC-driver (in this case hsql) to create the connections. This tag creates all the needed kinds of data-sources, transactional, pooled and EJB-aware sources. The source generally used in application code is the EJB one - it provides transactional safety and connection pooling. -- !-- data-source class=com.evermind.sql.DriverManagerDataSource name=Hypersonic location=jdbc/HypersonicCoreDS xa-location=jdbc/xa/HypersonicXADS ejb-location=jdbc/HypersonicDS connection-driver=org.hsql.jdbcDriver username=sa password= url=jdbc:HypersonicSQL:./database/defaultdb inactivity-timeout=30 /-- data-source class=com.evermind.sql.DriverManagerDataSource name=Oracle location=jdbc/OracleCoreDS xa-location=jdbc/xa/OracleXADS ejb-location=jdbc/OracleDS connection-driver=oracle.jdbc.driver.OracleDriver username=orion password=orion url=jdbc:oracle:thin:@mysun-box:1521:mydb inactivity-timeout=30 / /data-sources
RE: Datasource confusion
Dear All, I've nailed the problem. I removed the datasource definition from the ejb-jar.xml and placed one in ~orion/config/data-sources.xml. After rebuilding the application I stopped Orion, wiped out the ~orion/application-deployments directory, and restarted Orion. I now get remote access denied errors from the database server, which is good. :-) This line jdbc:mysql://luggage/log is not complete and consider mysql local. Umm. Well, this is the precise URL that I use now. Just for the record, the database server is named "luggage" and the database is called "log". MySQL server is running on the default port, so I don't have to specify that. Thanks for the quick responses. I'm going away now to get some harder problems for you to help me with. :-) off-topic Ah, while I'm on the line: I tried finding information about JMS, but all I can find are tutorials for local examples. I want to set up a message queue between two machines. I'd like to know a little about the implementation of JMS, so that I can get an idea about performance pitfalls and such. /off-topic Kees Jan You are only young once, but you can stay immature all your life.
Re: Including jar files in my web app ?
Or even better: getClass().getProtectionDomain().getCodeSource().getLocation() On Fri, 6 Apr 2001, Court Demas wrote: I was able to do this by simply printing out the current classloader. Write a simple servlet/JSP page that does this: response.getOutputStream().println( "classloader: " + this.getClass().getClassLoader().toString() ); Unfortunately, I had troubles getting the above code loaded in certain situations - a circular problem! I've been looking into my classloading issues more.. it seems there's something more subtle going on that I haven't nailed down yet. I think it may be some sort of class version conflict. I should have more to report soon. court Ed Bras wrote: Thanks for the feedback guys. Apearantly some people have problems including jar files. To me it's not clear what the problem is, but to solve it I need to know where Orion looks for jar files. Can someone please tell me that or tell me how to enable Orion to output his search locations/paths ?? Plaaase? Resume: If I just put my jar file in the lib, my web-app can't find it. If I include the jar file in a tablib entry, neither does it find it (but I think this isn't the way as the jar is not for JSP usage). I have tried about everyting, but ...nothing... and it's hard searching the problem if Orion doesn't tell me where he searches. Eddie. From: "Carter, Shane" [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: RE: Including jar files in my web app ? Date: Thu, 5 Apr 2001 08:04:51 -0500 I'm having the same problem with Orion. I'm getting NoSuchMethodError when I run this class in Orion. It works fine outside of Orion. I think Orion is picking up another package elsewhere. Below is the error message I'm getting. java.lang.NoSuchMethodError at org.jdom.input.SAXHandler.startElement(SAXBuilder.java:607) at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1289) at org.apache.xerces.framework.XMLParser.callStartElement(XMLParser.java:1922) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne r.java:1831) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM LDocumentScanner.java:1223) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner. java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1208) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:302) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:373) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:354) at com.psg.blkjck.control.RequestParser.loadNodeCollection(RequestParser.java:6 1) at com.psg.blkjck.control.RequestParser.clinit(RequestParser.java:44) at com.psg.blkjck.control.NavController.doGet(NavController.java:98) at com.psg.blkjck.control.NavController.doPost(NavController.java:56) at javax.servlet.http.HttpServlet.service(HttpServlet.java:204) 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) -Original Message- From: Eddie [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 5:47 AM To: Orion-Interest Subject: Re: Including jar files in my web app ? Thanks court but it doesn't work with me. I did what you suggested, put the velocity.jar file in the classes dir, removed the lib, unpacked it in the classes dir, put the org dir in the same package dir as where the java file is located, but no luck. Maybe because my class file is located in a package and I call it through a sevlet reference. It keeps on giving me that classDefnotFound error. I also validated my web.xml file, but nothing. Can someone please tell me where Orion looks ?? or how to debug this ?? as this is getting a bit fru... I also tried some debug options as explained on the site, but can't find one which shows where Orion looks ! Hope to get some help here as I am a bit stuck! Eddie - Original Message - From: Court Demas [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, April 05, 2001 9:36 AM Subject: Re: Including jar files in my web app ? I just had a similar problem. Orion saw classes *either* in WEB-INF/classes *or* in WEB-INF/lib. My solution was to either unpack all classes into WEB-INF/classes (removing the lib directory), or create one huge JAR file in WEB-INF/lib (removing the classes
Re: Finder methods on EJB fields
The orion finders are wonderfully straightforward in this regard (joins across entities), but you have to be a bit careful. Here's a quick example. An Employee bean has a reference to Office. The Office bean has an int numStaff attribute. I want to define a finder method that shows me all employees who work in offices with more than X many staff. So, in EmployeeHome.java I define: Collection findByMinimumStaff( int numStaff ) throws FinderException, RemoteException; In the orion-ejb-jar.xml for the Office bean's jar: entity-deployment name="Office" table="Office" !-- hard code table and field names because we will be using them in a finder elsewhere -- cmp-field-mapping name="id" persistence-name="id" / cmp-field-mapping name="numStaff" persistence-name="numStaff" / /entity-deployment In the orion-ejb-jar.xml for the Employee bean's jar: entity-deployment name="Employee" table="Employee !-- again, hard code the fields that appear in the finders -- cmp-field-mapping name="officeId" persistence-name="officeId" / !-- now we can write our finder, which is a join across Employee and Office -- !-- note: partial="false" means we are supplying the whole query, not just the WHERE clause -- finder-method partial="false" query="SELECT e.* FROM Employee e, Office o WHERE o.numStaff $1 AND e.officeId = o.id" method ejb-nameEmployee/ejb-name method-namefindByMinimumStaff/method-name method-params method-paramint/method-param /method-params /method /finder-method /entity-deployment Disclaimer: this is just off the top of my head - I haven't written an Employee and Office bean to test this, but it should give you an idea of the approach to take. Obviously you can join across more than two tables, have UNION ALL statements, etc. Just so long as you return no more or less than the fields for Employee.* so that orion gets back the columns it expects. Hope that helps, Dan/tastapod At 13:38 06/04/2001 +1000, you wrote: Hello, Does anyone on this list know if an EB using an Entity Reference as an attribute, can have a finder method search on that attribute? If so can you search on attributes of the afore mentioned entity reference? -- Adam Cassar Technical Development Manager ___ NetRegistry http://www.netregistry.au.com Tel: +61 2 9641 8609 | Fax: +61 2 9699 6088 PO Box 270 Broadway NSW 2007 Australia -- Dan North VP Development - Cadrion Software Ltd - +44 (0)20 7440 9550 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
mapping database fields with beans' variables....
Hi, I would like to know where to put the information regarding the database fields being used by my beans. I have worked on WebLogic and in that case we put the information in the weblogic-cmp-rdbms-jar.xml which maps the database fields with the beans' variables. My databse is Oracle and I have put this in the data-source.xml file. If anybody can send me a sample file it will be very helpful. Please help me. Rupesh.
Re: Bi-directional relations (my kludge)
Nice! Though Orion and Weblogic both support incomplete versions of 2.0 (and each different aspects at that) and all of that is subject to change, of course! I couldn't tell though if Weblogic supports m-n relationships in a solid manner. --- Reid Hartenbower [EMAIL PROTECTED] wrote: Hi Ray. The only vendors I know of who have EJB 2 implementations are Orion and WebLogic. I definitely prefer Orion's development environment, but there is no comparison in terms of support (and I mean free support; WebLogic staff developers routinely answer newsgroup questions and once, in response to a bug I submitted concerning compound primary keys, a WL developer not only identified himself as the one working on the problem, but asked me if I thought his proposed solution was acceptable. Wow.) Reid - Original Message - From: "Ray Harrison" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Thursday, April 05, 2001 6:47 PM Subject: Re: Bi-directional relations (my kludge) Hi Reid - What App Servers currently offer m-n relationships - I'm interested in exploring how some of them operate. Cheers Ray --- Reid Hartenbower [EMAIL PROTECTED] wrote: I have found the lack of bi-directional support very frustrating, and think that it so impedes CMP functionality that it should be qualified as a bug, and not a pending feature. I also don't see what the big technical challenge in implementing it would be. If Orion is going to be this sluggish with support and new features, I would ask them to consider going open source. Let me fix it if you won't--do you hear me Orion guys? My workaround is to manage the relations with a 'RelationManager' session bean. For n-m relations, I create my join tables with composite primary keys, as in (for hsql): CREATE TABLE User_Order ( userId CHAR(37)NOT NULL, orderIdCHAR(37)NOT NULL, PRIMARY KEY (userId, orderId)); Then in the session bean, I explicitly create both sides of the relationship (eg. user.addOrder(order) and order.addUser(user) ) and catch the duplicate key exception, as in: user.addOrder(order); if(NON_DIRECTIONAL_BUG) { try { order.addUser(user); } catch(EJBException e) { // for Orion 1.4.7 bidirectional bug; } } When (if) Orion fixes this bug, the modifications to my code will be slight. - Original Message - From: "Ray Harrison" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Thursday, April 05, 2001 10:50 AM Subject: Re: Bi-directional relations Nope. --- Patrik Andersson [EMAIL PROTECTED] wrote: Does bi-directional relations work yet? I'm pretty sure it did not work the last time I tried, but that was a fix fix versions ago. Any news on this issue? regards, Patrik Andersson __ 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/ __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
A modification to ejbtags.jar
Hello Karl, I made a modification to the ejbtags.jar you published in the website. I modified the Iterate tag so it accept an optional field that defines an ordering in the iteration over the collection. The question is: should I publish it to the list or you guys check it out and decide? -- Best regards, Rafael Alvarez [EMAIL PROTECTED] mtag.jar
RE: Datasource confusion
The reason you are probably getting remote access denied from the Mysql server, is that the grant tables must be set up with the com address (www.something.com) and localhost. If you are using mysql, I strongly recommend picking up Mysql by Paul DuBois (see page 429, A Privileged puzzle), and perhaps the O'Rielly book. -Original Message- From: Koster, K.J. [mailto:[EMAIL PROTECTED]] Sent: Friday, April 06, 2001 6:00 AM To: Orion-Interest Subject: RE: Datasource confusion Dear All, I've nailed the problem. I removed the datasource definition from the ejb-jar.xml and placed one in ~orion/config/data-sources.xml. After rebuilding the application I stopped Orion, wiped out the ~orion/application-deployments directory, and restarted Orion. I now get remote access denied errors from the database server, which is good. :-) This line jdbc:mysql://luggage/log is not complete and consider mysql local. Umm. Well, this is the precise URL that I use now. Just for the record, the database server is named "luggage" and the database is called "log". MySQL server is running on the default port, so I don't have to specify that. Thanks for the quick responses. I'm going away now to get some harder problems for you to help me with. :-) off-topic Ah, while I'm on the line: I tried finding information about JMS, but all I can find are tutorials for local examples. I want to set up a message queue between two machines. I'd like to know a little about the implementation of JMS, so that I can get an idea about performance pitfalls and such. /off-topic Kees Jan You are only young once, but you can stay immature all your life.
Un Subscribe
__ Do you want a free e-mail for life ? Get it at http://www.personal.ro/
Un Subscribe
__ Do you want a free e-mail for life ? Get it at http://www.personal.ro/
Short Orion/remote MySQL howto
Dear All, I've written a short howto on setting up Orion with MySQL on FreeBSD, including some info on how set up privileges to connect to a remote MySQL database. http://kjkoster.org/java/index.jsp?page=content/packages.jspid=hd07 Kees Jan You are only young once, but you can stay immature all your life.
Re: A modification to ejbtags.jar
Ok. that resolve it :) I made two mistakes: 1) This mail was intended for Karl, but I misclicked in my email manager. 2) The version I sent is not a working one. I just realized that I lost the last version in the last crash of our CVS... Mea culpa not having a backup. Anyway, here is the working version. I'm interested in performance metrics, since it uses reflection... -- Best regards, Rafaelmailto:[EMAIL PROTECTED] mtags.jar
Re: Where is the log file?
In "orion/application-deployments/yourapp/application.log". Regards, Markus. On Thu, Apr 05, 2001 at 06:33:21PM +0200, Muly Oved wrote: Hi My Servlet raise an exception during the init() where can I find the log file containing the call stack? do I need to turn on some parameter? -- Markus Holmberg | Give me Unix or give me a typewriter. [EMAIL PROTECTED] | http://www.freebsd.org/
RE: WE NEED NEWS! We need to know Orion is alive well!
where you from, I know it isn't a one hit wonder. Definitely not the ORION phenomena... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Fink, Paul Sent: 06 April 2001 15:21 To: Orion-Interest Subject: RE: WE NEED NEWS! We need to know Orion is alive well! Or like a rock band that had one hit single and are never heard from again. -Original Message- From: Kemp Randy-W18971 [SMTP:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 1:02 PM To: Orion-Interest Subject: RE: WE NEED NEWS! We need to know Orion is alive well! How many people are actually working on Orion, and what is their forte? Most likely, it is probably developed and maintain by a small number (maybe under six). Sure, they are successful, and sell, but they could sell more. Think up them as an up and coming rock group. Add a good manager (CEO with a good business plan) and a promoter (a great technical writer working the documentation), and suddenly you have U2. _ This message has been checked for all known viruses by the MessageLabs Virus Control Centre. For further information visit http://www.messagelabs.com/stats.asp
RE: How to set the X-Window DISPLAY on Orion
You just need to configure the DISPLAY variable for the environment that Orion runs in. Are you running Orion from a script? Set the DISPLAY variable in the script. I gotta warn you though, the xvfb renders some pretty awful output. The full X server doesn't do a whole lot better, at least not when fonts are concerned. Unfortunately I have to run my server on MS to get good-looking generated images. IMHO, 75% of what's wrong with Linux is X-Windows. Jeff -Original Message- From: [EMAIL PROTECTED] Sent: Thu 4/5/2001 6:34 AM To: Orion-Interest Cc: Subject: How to set the X-Window DISPLAY on Orion Hi, We're using Oracle Reports Server on UNIX with Orion. Oracle Reports requires an X-Windows session on UNIX platforms. Basic inquiries such as font availability and font metrics are resolved through X-Windows, not just rasterization of graphic images. Reports is a bitmapped product and needs a window runtime environment. So I've set up a Virtual Frame Buffer using Xvfb I did some testing and when I set the DISPLAY=:1.0 and run xclock the virtual frame buffer works just fine. But whenever we attempt to use Reports without an Xterm running we get "can't open display". So I believe the issue is actually with the Application Server not knowing where to look for the DISPLAY. My understanding is that with Apache's JServer you can tell it to use the Xvfb instead of the the normal X server by making an entry in the jserv.properties file. How can I do this with Orion? Thanks! Rob Lent Lead Database Analyst AXA Client Services winmail.dat
AdJuggler on Orion
Title: AdJuggler on Orion I am running AdJuggler Pro (http://thruport.com/adjuggler/) on Orion and have been getting the following error on occassion. Does the statement from Thruport Support sound accurate to you guys and should I be concerned about this occasional error? thanx, Larry -Original Message- Entered on 04/06/2001 at 14:25:34 by noc: The error is caused by a problem with the socket connections. They are not usually fatal in therms of the application. More often then not it is caused by an incompatibility in either the JVM or the servlet engine used. -Thruport Support -=- [EMAIL PROTECTED]: I am still receiving these errors on occasion. Any indication as to what to look at would be helpful. Or at least an explanation of what this error means. -Larry -Original Message- Sent: Wednesday, April 04, 2001 11:55 PM Subject: Internal Error In AdJuggler at site: AJ4 Banner Server Error from AdJuggler at site: AJ4 Banner Server Exception: java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read at com.thruport.adjuggler.b.m.a(m.java) at com.thruport.adjuggler.b.w.run(w.java) at com.thruport.adjuggler.i.c.g.run(g.java)
RE: Bi-directional relations (my kludge)
M-N relationships do work in Orion, although not bidirectionally. WebLogic has good support for most of the EJB2.0 spec, and there is a product that runs on top of JBoss that allows you to deploy EJB2.0 packages (it converts everything to the 1.1 format for JBoss to consume). I don't remember the name of it offhand, but I'm sure you'll find it if you look through the JBoss lists. Reid: I've got to agree with Hani; complaining with such bitterness about the incompleteness of Orion's EJB2.0 support is ludicrous, especially when you consider that Orion is one of ONLY TWO servers on the market to publicly offer *any* native EJB2.0 support. Incidentally, rather than putting that code of yours in a separate session bean, you can put it in the entities themselves, completely preserving the EJB2.0 relationship method illusion. Or better yet (I have found), you can simply hide a call to a finder within the getEntityCollection() business methods... this allows you to leave the relationship unidirectional in implementation. Jeff -Original Message- From: Ray Harrison Sent: Thu 4/5/2001 6:47 PM To: Orion-Interest Cc: Subject: Re: Bi-directional relations (my kludge) Hi Reid - What App Servers currently offer m-n relationships - I'm interested in exploring how some of them operate. Cheers Ray --- Reid Hartenbower [EMAIL PROTECTED] wrote: I have found the lack of bi-directional support very frustrating, and think that it so impedes CMP functionality that it should be qualified as a bug, and not a pending feature. I also don't see what the big technical challenge in implementing it would be. If Orion is going to be this sluggish with support and new features, I would ask them to consider going open source. Let me fix it if you won't--do you hear me Orion guys? My workaround is to manage the relations with a 'RelationManager' session bean. For n-m relations, I create my join tables with composite primary keys, as in (for hsql): CREATE TABLE User_Order ( userId CHAR(37)NOT NULL, orderIdCHAR(37)NOT NULL, PRIMARY KEY (userId, orderId)); Then in the session bean, I explicitly create both sides of the relationship (eg. user.addOrder(order) and order.addUser(user) ) and catch the duplicate key exception, as in: user.addOrder(order); if(NON_DIRECTIONAL_BUG) { try { order.addUser(user); } catch(EJBException e) { // for Orion 1.4.7 bidirectional bug; } } When (if) Orion fixes this bug, the modifications to my code will be slight. - Original Message - From: "Ray Harrison" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Thursday, April 05, 2001 10:50 AM Subject: Re: Bi-directional relations Nope. --- Patrik Andersson [EMAIL PROTECTED] wrote: Does bi-directional relations work yet? I'm pretty sure it did not work the last time I tried, but that was a fix fix versions ago. Any news on this issue? regards, Patrik Andersson __ 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/ winmail.dat
Re: AdJuggler on Orion
A more common reason for that error is that your database server, or the JDBC driver, has a timeout built into the connection. For instance, MySQL will timeout a connection after 8 hours. The MySQL JDBC driver has a option that you can turn on to "keepalive" the database connection. If it were an incompatibility with the JVM or servlet engine, seems it would happen constantly, not occasionally. Connection timeouts, on the other hand, do occur occasionally. I would not be concerned about the error, since it should not cause corruption, just failed requests. I would, however, be concerned about technocal support from Thruport. tim. I am running AdJuggler Pro (http://thruport.com/adjuggler/) on Orion and have been getting the following error on occassion. Does the statement from Thruport Support sound accurate to you guys and should I be concerned about this occasional error? thanx, Larry -Original Message- Entered on 04/06/2001 at 14:25:34 by noc: The error is caused by a problem with the socket connections. They are not usually fatal in therms of the application. More often then not it is caused by an incompatibility in either the JVM or the servlet engine used. -Thruport Support -=- [EMAIL PROTECTED]: I am still receiving these errors on occasion. Any indication as to what to look at would be helpful. Or at least an explanation of what this error means. -Larry -Original Message- Sent: Wednesday, April 04, 2001 11:55 PM Subject: Internal Error In AdJuggler at site: AJ4 Banner Server Error from AdJuggler at site: AJ4 Banner Server Exception: java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read at com.thruport.adjuggler.b.m.a(m.java) at com.thruport.adjuggler.b.w.run(w.java) at com.thruport.adjuggler.i.c.g.run(g.java)
Various levels transaction support on Orion...
Somewhere I read that Orion does not support client starting transactions. Is my web-application considered a client? Can I start a transaction inside of my web-application? What if web application is running on a server different from my EJB application (using the RMI.XML configuration)? Thanks. -AP_
Re: AdJuggler on Orion
Title: AdJuggler on Orion yeah that is a familiar exception. the most common scenario i've found is that the end-user will hit stop or reload on the browser while the page is still being read. should be ok, i think... - Original Message - From: Larry Velez To: Orion-Interest Sent: Friday, April 06, 2001 11:34 AM Subject: AdJuggler on Orion I am running AdJuggler Pro (http://thruport.com/adjuggler/) on Orion and have been getting the following error on occassion. Does the statement from Thruport Support sound accurate to you guys and should I be concerned about this occasional error? thanx, Larry -Original Message- Entered on 04/06/2001 at 14:25:34 by noc: The error is caused by a problem with the socket connections. They are not usually fatal in therms of the application. More often then not it is caused by an incompatibility in either the JVM or the servlet engine used. -Thruport Support -=- [EMAIL PROTECTED]: I am still receiving these errors on occasion. Any indication as to what to look at would be helpful. Or at least an explanation of what this error means. -Larry -Original Message- Sent: Wednesday, April 04, 2001 11:55 PM Subject: Internal Error In AdJuggler at site: AJ4 Banner Server Error from AdJuggler at site: AJ4 Banner Server Exception: java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read at com.thruport.adjuggler.b.m.a(m.java) at com.thruport.adjuggler.b.w.run(w.java) at com.thruport.adjuggler.i.c.g.run(g.java)
RE: A modification to ejbtags.jar
Since I had already modified the Iterate tag to support sliding windows, I went ahead and incorporated Rafael's sorting tag and enhanced it to support descending order. I've only attached the IterateTag.java and a sample tld if anyone would like to use it. Michael -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Rafael Alvarez Sent: Tuesday, March 06, 2001 9:42 AM To: Orion-Interest Subject: Re: A modification to ejbtags.jar Ok. that resolve it :) I made two mistakes: 1) This mail was intended for Karl, but I misclicked in my email manager. 2) The version I sent is not a working one. I just realized that I lost the last version in the last crash of our CVS... Mea culpa not having a backup. Anyway, here is the working version. I'm interested in performance metrics, since it uses reflection... -- Best regards, Rafaelmailto:[EMAIL PROTECTED] IterateTag.java iterate.tld
RE: AdJuggler on Orion
Title: AdJuggler on Orion This application has no users per se, it serves up ads to our website and all the usage comes from page requests from our web servers to the AdJugglerad server. Since site visitors will often quickly click through the site, it is possible that some connections are abruptly interrupted as asite visitornavigates throughout the site. Thanx, -Larry -Original Message-From: Stan Ng [mailto:[EMAIL PROTECTED]]Sent: Friday, April 06, 2001 5:19 PMTo: Orion-InterestSubject: Re: AdJuggler on Orion yeah that is a familiar exception. the most common scenario i've found is that the end-user will hit stop or reload on the browser while the page is still being read. should be ok, i think... - Original Message - From: Larry Velez To: Orion-Interest Sent: Friday, April 06, 2001 11:34 AM Subject: AdJuggler on Orion I am running AdJuggler Pro (http://thruport.com/adjuggler/) on Orion and have been getting the following error on occassion. Does the statement from Thruport Support sound accurate to you guys and should I be concerned about this occasional error? thanx, Larry -Original Message- Entered on 04/06/2001 at 14:25:34 by noc: The error is caused by a problem with the socket connections. They are not usually fatal in therms of the application. More often then not it is caused by an incompatibility in either the JVM or the servlet engine used. -Thruport Support -=- [EMAIL PROTECTED]: I am still receiving these errors on occasion. Any indication as to what to look at would be helpful. Or at least an explanation of what this error means. -Larry -Original Message- Sent: Wednesday, April 04, 2001 11:55 PM Subject: Internal Error In AdJuggler at site: AJ4 Banner Server Error from AdJuggler at site: AJ4 Banner Server Exception: java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read at com.thruport.adjuggler.b.m.a(m.java) at com.thruport.adjuggler.b.w.run(w.java) at com.thruport.adjuggler.i.c.g.run(g.java)
Re[2]: A modification to ejbtags.jar
Isn't it wonderful the opensource world? :) -- Best regards, Rafaelmailto:[EMAIL PROTECTED]
RE: How to set the X-Window DISPLAY on Orion
This issue should be solved with version 1.4 of the JDK from Sun. Check out this bug in Sun's bug parade for more information: http://developer.java.sun.com/developer/bugParade/bugs/4281163.html We're currently using Xvfb for handling image resizing under a headless Unix box and it works quite well. Launching Xvfb is non-trivial -- here are the settings we used: /usr/X11R6/bin/Xvfb :0 -screen 0 640x480x8 -fp "unix/:-1" This command launches Xvfb, and sets the X display to run on :0.0 The 'fp' setting sets the font setting to use unix/:-1, which is the xfs font server. To launch orion, make sure you set the DISPLAY environment variable. Our launch script looks like this: #!/bin/sh export DISPLAY=:0.0 /usr/java/jdk1.3/bin/java -jar orion.jar stdout.txt 2 errors.txt The first time it starts up, you'll get a bunch of errors (Font specified in font.properties...) from the JVM, but it seems to work fine after that. This is one of my biggest peeves in the current version of the JDK, and I'm looking forward to JDK 1.4 primarily for this reason (that and scroll mouse support!). Good luck, Darren. -- Darren Gibbons[EMAIL PROTECTED] OpenRoad Communications ph: 604.681.0516 Internet Application Development fax: 604.681.0916 Vancouver, B.C. http://www.openroad.ca -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Thursday, April 05, 2001 6:34 AM To: Orion-Interest Subject: How to set the X-Window DISPLAY on Orion Hi, We're using Oracle Reports Server on UNIX with Orion. Oracle Reports requires an X-Windows session on UNIX platforms. Basic inquiries such as font availability and font metrics are resolved through X-Windows, not just rasterization of graphic images. Reports is a bitmapped product and needs a window runtime environment. So I've set up a Virtual Frame Buffer using Xvfb I did some testing and when I set the DISPLAY=:1.0 and run xclock the virtual frame buffer works just fine. But whenever we attempt to use Reports without an Xterm running we get "can't open display". So I believe the issue is actually with the Application Server not knowing where to look for the DISPLAY. My understanding is that with Apache's JServer you can tell it to use the Xvfb instead of the the normal X server by making an entry in the jserv.properties file. How can I do this with Orion? Thanks! Rob Lent Lead Database Analyst AXA Client Services
RE: Where is the log file?
How about the log for EntityBean container to the SQL database? Is there any log containing the SQL statement that orion container sends to teh database? Thanks Andrew -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Markus Holmberg Sent: Friday, April 06, 2001 8:05 AM To: Orion-Interest Cc: Orion-Interest Subject: Re: Where is the log file? In "orion/application-deployments/yourapp/application.log". Regards, Markus. On Thu, Apr 05, 2001 at 06:33:21PM +0200, Muly Oved wrote: Hi My Servlet raise an exception during the init() where can I find the log file containing the call stack? do I need to turn on some parameter? -- Markus Holmberg | Give me Unix or give me a typewriter. [EMAIL PROTECTED] | http://www.freebsd.org/
RE: WE NEED NEWS! We need to know Orion is alive well!
Or like a rock band that had one hit single and are never heard from again. -Original Message- From: Kemp Randy-W18971 [SMTP:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 1:02 PM To: Orion-Interest Subject: RE: WE NEED NEWS! We need to know Orion is alive well! How many people are actually working on Orion, and what is their forte? Most likely, it is probably developed and maintain by a small number (maybe under six). Sure, they are successful, and sell, but they could sell more. Think up them as an up and coming rock group. Add a good manager (CEO with a good business plan) and a promoter (a great technical writer working the documentation), and suddenly you have U2.