RE: Aliases in Orion
In the orion-web.xml file, something like this: virtual-directory virtual-path=/reports real-path=/usr/develop/reports / THis file is in the application-deployments/default/defaultWebApp directory -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Juan Fuentes Sent: Thursday, October 04, 2001 7:56 AM To: Orion-Interest Subject: Re: Aliases in Orion Juan Fuentes wrote: Hi list! Does orion have any tag like the Apache's Alias?? Maybe using the virtual-directory tag ?? Thanks -- ·· Juan Fuentes Nieto Essi Projects [EMAIL PROTECTED]t +34 977 221 182 http://www.essiprojects.com f +34 977 230 170 ·· -- ·· Juan Fuentes Nieto Essi Projects [EMAIL PROTECTED]t +34 977 221 182 http://www.essiprojects.com f +34 977 230 170 ··
RE: Stupid CLASSPATH and Oracle JDBC drivers. Need help!
We had to put the Oracle jar/zip file into the JRE/lib/ext directory to be recognized on Win2K and solaris. We never figured out why this is the case. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dan Lee Sent: Wednesday, September 19, 2001 10:44 AM To: Orion-Interest Subject: Stupid CLASSPATH and Oracle JDBC drivers. Need help! Hi All, I simply trying to get Orion to see my Oracle JDBC drivers!! I've placed my classes12.zip in the [ORION_HOME]/lib directory but it cannot see it. I've also tried previous posted suggestions of modifying the shell $CLASSPATH variable and the library path located in the application.xml file. I have no problems on my Intel Win 2000 platform running Java 2 SDK 1.3.1-b24 and Orion 1.5.2. My problems are occurring on a PA-RISC platform running: Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.01-release-010816-12:37) Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.01-release-010816-13:34-PA_RISC2.0 PA2.0, mixed mode). I'm also using the same classes12.zip on both machines. I get the following error upon server startup: Error initializing data-source 'jdbc/OracleDSCore': DriverManagerDataSource driver 'oracle.jdbc.driverd.' Upon a login attempt to my app, which tries to use the Oracle Datasource, I get the following: 2001-09-17 17:18:12,498 [ApplicationServerThread] ERROR java.lang.Class - SQL Exception during getting userinfo java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(DriverManager.java:537) at java.sql.DriverManager.getConnection(DriverManager.java:177) at com.evermind.sql.DriverManagerDataSource.getConnection(Unknown Source) at com.sprint.framework.rdbms.RDBMSUtility.getConnection(RDBMSUtility.java:297) at com.sprint.nsp.auth.UserManager.getUserInfo(UserManager.java:41) at com.sprint.nsp.auth.LoginController.isValid(LoginController.java:94) at __jspPage1_Authenticate_jsp._jspService(__jspPage1_Authenticate_jsp.java:84) at com.orionserver.http.OrionHttpJspPage.service(Unknown Source) at com.evermind._ah._rad(Unknown Source) at com.evermind.server.http.JSPServlet.service(Unknown Source) at com.evermind._cxb._abe(Unknown Source) at com.evermind._cxb._uec(Unknown Source) at com.evermind._io._twc(Unknown Source) at com.evermind._io._gc(Unknown Source) at com.evermind._if.run(Unknown Source) Database error, Please try again. br If problem persist please contact administrator. Everything works OK if I unzip the JDBC drivers into the /lib directory...but this is a hack would like to know why it won't pick up my ZIP file. It works with other JARs I put inarghhg! Any help is MUCH appreciated. --Dan
RE: Stupid CLASSPATH and Oracle JDBC drivers. Need help!
Using: java -server -Xincgc -Xms70m -Xmx128m -jar ./orion.jar -out ./orion.log -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of The elephantwalker Sent: Wednesday, September 19, 2001 11:56 AM To: Orion-Interest Subject: RE: Stupid CLASSPATH and Oracle JDBC drivers. Need help! How do you start orion? should be java -jar orion.jar anything else may defeat the orion.jar class loader, which actually loads the *.jar and *.zip from the orion/lib directory. regards, the elephantwalker www.elephantwalker.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mike Fontenot Sent: Wednesday, September 19, 2001 10:34 AM To: Orion-Interest Subject: RE: Stupid CLASSPATH and Oracle JDBC drivers. Need help! We had to put the Oracle jar/zip file into the JRE/lib/ext directory to be recognized on Win2K and solaris. We never figured out why this is the case. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dan Lee Sent: Wednesday, September 19, 2001 10:44 AM To: Orion-Interest Subject: Stupid CLASSPATH and Oracle JDBC drivers. Need help! Hi All, I simply trying to get Orion to see my Oracle JDBC drivers!! I've placed my classes12.zip in the [ORION_HOME]/lib directory but it cannot see it. I've also tried previous posted suggestions of modifying the shell $CLASSPATH variable and the library path located in the application.xml file. I have no problems on my Intel Win 2000 platform running Java 2 SDK 1.3.1-b24 and Orion 1.5.2. My problems are occurring on a PA-RISC platform running: Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.01-release-010816-12:37) Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.01-release-010816-13:34-PA_RISC2.0 PA2.0, mixed mode). I'm also using the same classes12.zip on both machines. I get the following error upon server startup: Error initializing data-source 'jdbc/OracleDSCore': DriverManagerDataSource driver 'oracle.jdbc.driverd.' Upon a login attempt to my app, which tries to use the Oracle Datasource, I get the following: 2001-09-17 17:18:12,498 [ApplicationServerThread] ERROR java.lang.Class - SQL Exception during getting userinfo java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(DriverManager.java:537) at java.sql.DriverManager.getConnection(DriverManager.java:177) at com.evermind.sql.DriverManagerDataSource.getConnection(Unknown Source) at com.sprint.framework.rdbms.RDBMSUtility.getConnection(RDBMSUtility.java:297) at com.sprint.nsp.auth.UserManager.getUserInfo(UserManager.java:41) at com.sprint.nsp.auth.LoginController.isValid(LoginController.java:94) at __jspPage1_Authenticate_jsp._jspService(__jspPage1_Authenticate_jsp.java:84) at com.orionserver.http.OrionHttpJspPage.service(Unknown Source) at com.evermind._ah._rad(Unknown Source) at com.evermind.server.http.JSPServlet.service(Unknown Source) at com.evermind._cxb._abe(Unknown Source) at com.evermind._cxb._uec(Unknown Source) at com.evermind._io._twc(Unknown Source) at com.evermind._io._gc(Unknown Source) at com.evermind._if.run(Unknown Source) Database error, Please try again. br If problem persist please contact administrator. Everything works OK if I unzip the JDBC drivers into the /lib directory...but this is a hack would like to know why it won't pick up my ZIP file. It works with other JARs I put inarghhg! Any help is MUCH appreciated. --Dan
RE: BIG Problem with SSL
This is normal servlet engine behavior. Your HTTP and HTTPS are two separate sessions. Orion has a way to configure the default website to share sessions across HTTP and HTTPS websites. In the default-web-site.xml be sure to have this line: !-- The default web-app for this site, bound to the root -- default-web-app application=default name=defaultWebApp shared=true / You also need it in the SSL website xml config file. If you search the email archives you'll see this problem has been discussed. Good luck -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Robert S. Sfeir Sent: Tuesday, May 08, 2001 1:20 PM To: Orion-Interest Subject: BIG Problem with SSL When I setup SSL under Orion and I hit: http://www.domain.com then hit https://www.domain.com they both come up fine, but it looks like Orion is starting a new session!!! This is bad because if someone is logged in under https, it doesn't look like they're logged in when they're under the http server. Am I missing a setting with SSL or is this normal Orion behavior? Thanks for any prompt response you might have. R
Jikes 1.12 compiled code is bad!
I've been developing on Win2K, and deploying on Solaris. Works fine. I was using Jikes version 1.07 to compile my classes. Just switched to Jikes version 1.12 and now orion is breaking during startup. If I compile my classes with 1.12 and try to start orion, orion itself dies with an error message related to ArrayOutOfBounds. It never initializes or loads any ejbs, nothing. If I go back and recompile everything with 1.07 again, it works fine. Has anyone see this? I've searched the mail archive regarding this error and I've found somewhat related messages, but no real answers/solutions. Thanks in advance, Mike
RE: Application Client startup synchronization
John, I had this occur with servlets that started up and tried to work with Orion EJBs immediately. Orion itself had not finished its own initialization. The calling servlet would hang, and so would orion. I put a thread delay into my startup application servlet #init method, on the advice of Magnum. This seemed to do the trick. Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of John D'Ausilio Sent: Tuesday, January 09, 2001 7:18 AM To: Orion-Interest Subject: Application Client startup synchronization After playing for a few hours, I figured out how to have an Application Client class start up with the server .. but it seems that the server fires off the client before it has finished starting itself up! Anyone deal with this yet? Is there a safe way to detect from the client when the server is done starting up? john d
RE: SSL Ipaddres
as long as your domain remains the same you should have no trouble changing the actual port that SSL requests are serviced on. I'm curious to know exactly what kind of certificate you obtained from Thawte. A few months ago they were unable to produce an actual production cert for Orion. If they can now, let us know what kind you obtained. Regards, Mike Fontenot -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Todd Renner Sent: Friday, December 08, 2000 6:51 AM To: Orion-Interest Subject: SSL Ipaddres We have a Thawte cert. implemented successfully on our server and everything works ok, but now we want to move our server onto a different network, giving the machine a different ipaddress. Will this adversely effect our SSL even though the doname name is the same?Thanks. Todd Renner Bell Howell
RE: SSL Ipaddres
Thanks! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Todd Renner Sent: Friday, December 08, 2000 9:14 AM To: Orion-Interest Subject: Re: SSL Ipaddres We obtained our cert. about 2-3 weeks ago. Encryption type: RC4 w/40 bit enc We told thawte we were using orion and they seemed to know what we were talking about. I think the server to select is javasoft. Hope this helps Todd Mike Fontenot wrote: as long as your domain remains the same you should have no trouble changing the actual port that SSL requests are serviced on. I'm curious to know exactly what kind of certificate you obtained from Thawte. A few months ago they were unable to produce an actual production cert for Orion. If they can now, let us know what kind you obtained. Regards, Mike Fontenot -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Todd Renner Sent: Friday, December 08, 2000 6:51 AM To: Orion-Interest Subject: SSL Ipaddres We have a Thawte cert. implemented successfully on our server and everything works ok, but now we want to move our server onto a different network, giving the machine a different ipaddress. Will this adversely effect our SSL even though the doname name is the same?Thanks. Todd Renner Bell Howell
load balancer setup?
To clustered/load balanced Orion users, I was wondering if anyone has configured the Orion loadbalancer with non-SSL and SSL websites within the same server? We've got this configuration on our ecom apps and I'm not sure how to proceed with load balancer configs for this. I've looked in the archives for these areas but could find no details. 1. Since my website has SSL, I'm not sure how to configure this for use with the load balancer? Do I need to register the SSL webserver ports in the load balancer.xml too? Some clarification here would help. 2. My applications have a configuration file that tells my web apps/system things like: what is the base HREF for both non-SSL and SSL pages. Should I be reconfiguring these values to point back to the loadbalancer host/port or should these stay pointed to the actual instance of the application itself? Thanks in advance, Mike Mike Fontenot - Object Systems Architect BrandMatrix, Ltd. Golden, Colorado
Connection Pool hanging??
Hi all, Has anyone seen this behavior: Inside your EJB you go to aquire a pooled collection from one of your connection pools defined in data-sources.xml, and the orion server hangs for sometime before either: 1. delivering a connection 2. timing out. I have a helper class to get/close connections for a named connection pool. I can see in my code when going to get the connection, orion is hung. At other times it works fine. I've found no rhyme or reason for the delays in delivering a connection. Shouldn't the pool be already connected to the database!? My system is not under high load and this still occurs. Any ideas/suggestions/workarounds are appreciated. Mike Mike Fontenot - Object Systems Architect BrandMatrix, Ltd. Golden, Colorado
SSL Slow and precompiled JSPs?
Has anyone else noticed that when you first start executing SSL protected code, displaying that first page takes a long time? I know that SSL requires server/client key generation/handshaking but I'm wondering if a server installation such as Orion (JSSE?) would benefit from hardware acceleration like CryptoSwift? Anyone using hardware acceleration like this in production with Orion, and do you notice any performance benefits? Second, is there a way to precompile all of your JSP pages before deployment, and deploy those compiled servlets? Thanks, Mike Mike Fontenot - Object Systems Architect BrandMatrix, Ltd. Golden, Colorado
RE: SSL and non SSL within the same instance of the web application
You can do this all within a single running orion server process. You will need to define the two web applications using the default-web-site.xml as a starting point. I copied this and created a second file called ssl-web-site.xml. In both of these files you should refer to the same application using this line: default-web-app application="default" name="defaultWebApp" shared="true" / The 'shared="true"' setting allows both web applications to share HttpSession based objects so when you transfer from non-SSL to SSL your user sessions will stay intact. Access the SSL portion of your site using https:// Good luck, Mikef -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Terence KwanSent: Friday, September 08, 2000 8:18 PMTo: Orion-InterestSubject: SSL and non SSL within the same instance of the web application Hello, we can setup SSL on the application without problem. However, can we setup SSL enable part of the web application? For example, I just want to setup SSL enable on the member area of the web site but not the whole web application. Or do we need to setup 2 applications - one for SSL enable and one for non SSL enable. Thanks TK
RE: Obtaining an SSL Certificate
I got a 40 bit cert. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dale Bronk Sent: Tuesday, August 29, 2000 6:07 AM To: Orion-Interest Subject: Re: Obtaining an SSL Certificate Did you get a 40-bit or 128-bit cert? Orion informed me we can use 128-bit if we get the domestic JSSE from Sun. Dale - Original Message - From: Mike Fontenot [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, August 28, 2000 11:15 AM Subject: Obtaining an SSL Certificate Orion users, I wanted to let you know that I have obtained a production SSL certificate from Verisign and installed this into a production Orion application server running on Solaris. Maybe this is not big news to everyone but for me it is significant. After much development time with the Thawte Developer 'Test SSL Chained CA Cert', I found out that Thawte no longer sells this type of certificate. Also, after trying unsuccessfully to use one of their other certificates, they sent me to Verisign. The Verisign process is a bit murkier than the Thawte process, but no less byzantine. Aside from the mounds of paperwork you must produce to 'prove' you are who you say you are, the choices you are able to select when obtaining the cert are few, in fact there is only one choice. When asked what kind of server software/who manufactures my server software, the choice I made was 'JavaSoft'. That was it, after days of paperwork shuffling I was emailed a cert. I installed this into my keystore, and then into an Orion SSL website. It works. Steps to obtain a cert. 1. Using the Java 1.3 JDK on Windows, I followed the instructions for setting up a secure site using SSL as found on the Orion website and the OrionSupport. Fill out ALL of the fields when creating your original keystore. Example (I'm in the US): user firstname lastname: make this your website name - www.yoursite.com Organization: your company name - Acme Organizational Unit: your companies domain name - acme.com City/Locality: your city: AcmeVille State: your state, capitalize this - Colorado Country: the 2 letter code for country - US 2. Create a Certificate Signing Request - again, following the instructions on both Orion Orionsupport, the CSR is created. You will need this when filling out the Verisign website information. If there is anything funky in your CSR, Verisign will notify you right there and you will not be able to proceed until you fix whatever the error is. 3. Begin the paperwork process with Verisign. Their site details what is required so I won't repeat it here. Be advised that if you are in a hurry..., sit back, take a deep breath (maybe a glass of scotch), and chill out. They don't care. Nothing moves on their end until you produce ALL of the required paperwork. Now, you can help speed things a bit but quickly faxing everything they ask for, then following up with a phone call to customer support. 4. Magically, you will get an email from Verisign with a cert attached. Copy this to a file and import this into your keystore as described in Orion/Orionsupport. 5. Install your keystore into a SSL website. You should be good to go now. Now I would like to say this is a happy ending, and for the most part it is. However, I still cannot use Orion in production with SSL because of a weird problem when accessing the ORion SSL website using Netscape. Doing this causes the Orion JVM to go to 100% CPU utilization and the application crawls. It does not happen right away, but as soon as I do my first POST on a page after transferring into SSL from non-SSL, the cpu goes to 100% and stays there. I experience this on my development system, WindowsNT 4 (SP6). I have notified the Orion team about this and hopefully they are working on a solution. If anyone else has seen this and figured out a workaround, we'd love to hear from you. Regards, Mike Mike Fontenot - Object Systems Architect BrandMatrix, Ltd. Golden, Colorado
Obtaining an SSL Certificate
Orion users, I wanted to let you know that I have obtained a production SSL certificate from Verisign and installed this into a production Orion application server running on Solaris. Maybe this is not big news to everyone but for me it is significant. After much development time with the Thawte Developer 'Test SSL Chained CA Cert', I found out that Thawte no longer sells this type of certificate. Also, after trying unsuccessfully to use one of their other certificates, they sent me to Verisign. The Verisign process is a bit murkier than the Thawte process, but no less byzantine. Aside from the mounds of paperwork you must produce to 'prove' you are who you say you are, the choices you are able to select when obtaining the cert are few, in fact there is only one choice. When asked what kind of server software/who manufactures my server software, the choice I made was 'JavaSoft'. That was it, after days of paperwork shuffling I was emailed a cert. I installed this into my keystore, and then into an Orion SSL website. It works. Steps to obtain a cert. 1. Using the Java 1.3 JDK on Windows, I followed the instructions for setting up a secure site using SSL as found on the Orion website and the OrionSupport. Fill out ALL of the fields when creating your original keystore. Example (I'm in the US): user firstname lastname: make this your website name - www.yoursite.com Organization: your company name - Acme Organizational Unit: your companies domain name - acme.com City/Locality: your city: AcmeVille State: your state, capitalize this - Colorado Country: the 2 letter code for country - US 2. Create a Certificate Signing Request - again, following the instructions on both Orion Orionsupport, the CSR is created. You will need this when filling out the Verisign website information. If there is anything funky in your CSR, Verisign will notify you right there and you will not be able to proceed until you fix whatever the error is. 3. Begin the paperwork process with Verisign. Their site details what is required so I won't repeat it here. Be advised that if you are in a hurry..., sit back, take a deep breath (maybe a glass of scotch), and chill out. They don't care. Nothing moves on their end until you produce ALL of the required paperwork. Now, you can help speed things a bit but quickly faxing everything they ask for, then following up with a phone call to customer support. 4. Magically, you will get an email from Verisign with a cert attached. Copy this to a file and import this into your keystore as described in Orion/Orionsupport. 5. Install your keystore into a SSL website. You should be good to go now. Now I would like to say this is a happy ending, and for the most part it is. However, I still cannot use Orion in production with SSL because of a weird problem when accessing the ORion SSL website using Netscape. Doing this causes the Orion JVM to go to 100% CPU utilization and the application crawls. It does not happen right away, but as soon as I do my first POST on a page after transferring into SSL from non-SSL, the cpu goes to 100% and stays there. I experience this on my development system, WindowsNT 4 (SP6). I have notified the Orion team about this and hopefully they are working on a solution. If anyone else has seen this and figured out a workaround, we'd love to hear from you. Regards, Mike Mike Fontenot - Object Systems Architect BrandMatrix, Ltd. Golden, Colorado
Help - SSL Usage in Production - is it really possbile?
orion users, I've been using the test certificate from Thawte, as both the orion docs. and the OrionSupport suggested. That has been working fine. However, I am now ready to move to production with our e-commerce system and I have run into some major snags that leads me to think NO one is using Orion in a production SSL environment. After going through the Thawte process for getting a server cert, the 'pick your web server' does not list Orion. After talking with Thawte support they suggested picking 'Apache SSL' as a choice. Ok, that seems fine to me. However, they also said I would need to pick the certificate type: x509v3. Since I've been using the 'SSL Chained CA Cert' for development, I wanted to try this out with a development cert to be sure it would work. I tried this using a X509v3 development cert but it will not work. Again, after getting back in touch with Thawte support regarding X509v3 not working, I said I will need to just use the 'SSL Chained CA Cert'. They then informed me that they no longer sell this type of certificate, and that I must go to Verisign to obtain this type of certificate. Well, my first question to Thawte was 'If you dont sell this type of certificate, why is it available on your developers cert pages?' Answer from Thawte: 'Yeah, I've been meaning to talk to our developers to take that off the website.'. Guess how much hair I've lost so far!? Now I am in the 'process' of getting a certificate from Verisign. Of course they do not have 'Orion Server' listed in their pick list of valid webservers. Since I just started this process today I really dont know if they can/cannot support the type of SSL certificate I will need to work with Orion. I'll be the first to admit I'm not real familiar with the Java 1.3 keytool, and different certificate meanings. But, if anyone has really obtained a valid production level SSL certificate, from any Certificate Authority, and successfully integrated this with Orion, please let me/us know how this was accomplished. The only docs I've see are related to development certs, and as I stated earlier, I've got this working fine. I now need to graduate to real e-commerce transactions. Please dont make me go back to Apache/JRun, I feel Orion is so much better but this is a real show-stopper. I have looked through the orion mail archives and it seems all discussions are related to trying to get the developer certs to work, not production certs. Thanks in advance, Mike Mike Fontenot - Object Systems Architect BrandMatrix, Ltd. Golden, Colorado
Lost database connections using OrionServer?
Does Orionserver have a way for developers to reinitialize the data-sources.xml file and re-establish database connections without shutting down the entire server? This is a fault tolerance issue, having the database server go down behind your application. Our existing servlet apps have a connection pool that monitors the actual database server Unix box to help determine if connections should be re-initialized. Can/does Orionprovide this somehow? Thx Mike Fontenot - Object Systems Architect Polygon Network, Inc. Golden, Colorado
RE: nullpointer when database connection is lost
This is an excellent question. We had the same issues two years ago when developing a jdbc connection pool - how to tell if the database server has gone down. We accomplished it with pluggable helper classes for periodically checking server/database availablilty. Does Orionserver have a way for developers to reinitialize the data-sources.xml file and reestablish database connections without shutting down the server? Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Thomas Hertz Sent: Sunday, March 05, 2000 11:47 AM To: Orion-Interest Subject: nullpointer when database connection is lost Hello. I'm not sure this is a bug, but I don't think an applicationserver should throw a NullPointerException in this case: (Orion/0.9.4) I set up a small entity bean example with HypersonicSQL. Just for testing, I wanted to examine what happens, if orion can no longer access the database . So I closed the connection (stopped the HSQLwebserver) after Orion successfully started. Now every call of a EntityHome.create() method fails with a java.lang.NullPointerException at com.evermind.server.ejb.DataSourceConnection.close(JAX) at EntityHomeWrapper6.create(EntityHomeWrapper6.java:480) at de.hybris.jakarta.ejb.ProductCategoryEJB.createProductCategory(Pro ductCategoryEJB.java:55) at EntityBeanWrapper5.createProductCategory(EntityBeanWrapper5.java:485) at java.lang.reflect.Method.invoke(Native Method) at com.evermind.server.rmi.a2.fq(JAX) at com.evermind.server.rmi.a2.run(JAX) at com.evermind.util.b.run(JAX) The code fragment of ProductCategoryEJB.java:55 where I call the underlaying 'create' is ... ProductCategory cat = productCategoryHome.create( id ); ... If the HSQL-Server runs everything works fine, if I close it, I get the NullPointerException. When I wait until the ejbPassivate() is called on the enterprise java bean, I get a normal "Connection to server refused: No further information" exception. If you have any idea or need more information, please let me know. Greetings from Munich, Thomas Hert --- Thomas Hertz [EMAIL PROTECTED] hybris GmbH Schwere-Reiter-Str. 35 Gebaude 16 80797 Muenchen fon: +49 89 30 66 97 0 fax: +49 89 30 66 97 99 http://www.hybris.de solutions for an accelerating generation.
Help - How to config/load EJB server in 8.5b?
I'd like to clarify my question. I got the News appliacation working by following the instructions and Neville's tips on HypersonicSQL. However, it was all bundled neatly in an .ear file. I'm not sure how to get my own app into that kind of format, or something the EJB server recognizes. Actually, I just want to get my own version of the cart app working and its pure EJB, no web pages at all (baby steps). The line in my old ejb.xml file was something like: ejb-jar../demo/ejb/mikecart-app//ejb-jar This caused the server to auto load these beans. If I just want to get a plain old EJB application/beans loaded into the server (no web stuff at all)this kind of thing working again do you have any pointers? Thanks, Mike original question I just installed the orion 8.5 b and have trying to get the EJB server up and running. I've got the rmi/jms/datasources going but I can't find a way to enable the EJB server. The docs do not even mention a relationship from the server.xml file to the ejb.xml file anymore (based on my 8.2 experience). I've tried putting the following in the server.xml ejb path="./ejb.xml" / ejb-config path="./ejb.xml" / ejb-server path="./ejb.xml" / All of these give me a message: Unknown tag in xx/xxx/server.xml Can someone get me back on track using this thing for EJBs. Thanks in advance, Mike
Bug? - Client communication Error
Has anyone see this problem? I have a orion server running on my NT box (JDK 1.3) and a client on the same machine. The client loops every 10 seconds and calls the same method in the CartEJB on the server. I've added a database lookup, etc to the CartEJB method. After about 125 exections I get this error on the client: java.lang.NullPointerException at aq.invokeMethod(JAX) at ah.invoke(JAX) at Proxy0.create(Unknown Source) at mikecart.test.CartClient.testOrion(CartClient.java:80) at mikecart.test.CartClient.main(CartClient.java:22) System/communication error: IO Error: Disconnected The actual line it is erroring on is: Cart cart = (Cart)PortableRemoteObject.narrow(home.create(), Cart.class); The ejbserver system traces do not show any errors. Mike Fontenot - Object Systems Architect Polygon Network, Inc. Golden, Colorado
Specifying how many beans to pool?
Does anyone know how you tell the Orion server how many instances of a particular EJB to be made available in the pool, when the server starts up? Seems like each bean would have this parameter as a part of the ejb-jar.xml file, but I can't find any information for this. Thanks in advance. Mike Fontenot - Object Systems Architect Polygon Network, Inc. Golden, Colorado
FW: Please help - running Orion Examples and other config questions.
DataSource ds = (ConnectionPoolDataSource)context.lookup("jdbc/DefaultPooledDS"); pcon = ds.getPooledConnection(); System.out.println("PooledConnection gotten: "+pcon.toString()); con = pcon.getConnection(); System.out.println("connection gotten: "+con.toString()); Statement s = con.createStatement(); ResultSet rs = s.executeQuery("select * from country"); rs.close(); s.close(); } catch (NamingException e) { e.printStackTrace(); } catch (SQLException e) {e.printStackTrace(); } finally if (pcon != null) try{pcon.close();}catch(Exception e){} } Thanks in advance, Mike Mike Fontenot - Object Systems Architect Polygon Network, Inc. Golden, Colorado