RE: Re: Error deserializing EJB-session, anyone tell me why?
Hi I would suggest that you make the dbconnection variable transient. Would it be better to close the database connection prior to deserializing and then have the bean establish the connection again later. private transient Connection dbConnection = null; private transient ResultSet rs = null; Regards, Michael Mok -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Li You Sent: Thursday, 1 February 2001 11:50 To: Orion-Interest Cc: [EMAIL PROTECTED] Subject: Re:Re: Error deserializing EJB-session, anyone tell me why? -- Original Message -- From: "Li You" <[EMAIL PROTECTED]> Reply-To: <[EMAIL PROTECTED]> Date: Wed, 31 Jan 2001 20:20:38 -0700 Hi All, Dear Alexey Ryndin, Thanks for you help, I do it that you say, the errors was gone. but some new errors showing out. I don't know where i miss ? where Orion miss ? where Postgresql miss? and why!? please help me. thank you again, yours Urey *** my errors * 00-2-1 10:27 Error serializing EJB-bean java.io.NotSerializableException: org.postgresql.jdbc2.Connection at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366) at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1841) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480) at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366) at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1841) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480) at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366) at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1841) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480) at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366) at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1841) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480) at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366) at com.evermind.server.ejb.EJBContainer.ai4(JAX) at com.evermind.server.ejb.EJBPackageDeployment.ait(JAX) at com.evermind.server.ejb.EJBContainer.ait(JAX) at com.evermind.server.ejb.EJBContainer.b9(JAX) at com.evermind.server.Application.b9(JAX) at com.evermind.server.ApplicationServer.b9(JAX) at com.evermind.server.he.run(JAX) at java.lang.Thread.run(Thread.java:484) *** my code use connection only this one * public class DBAction implements java.io.Serializable{ private String stmtstring = null; private String msg = ""; private ResultSet rs = null; private int columncount; private int status = 0; private Vector v = new Vector(); private Connection dbConnection = null; private DataSource datasource = null; public DBAction() throws ApplicationDAOException { try { InitialContext ic = new InitialContext(); datasource = (DataSource) ic.lookup(JNDINames.GALACY_DATASOURCE); } catch (NamingException ne) { throw new ApplicationDAOException("Naming Exception while looking " + " up DataSource Connection " + JNDINames.GALACY_DATASOURCE + ": \n" + ne.getMessage()); } } /** * Method for get connection with database */ private void getDBConnection() throws ApplicationDAOException { try { dbConnection = datasource.getConnection(); } catch (SQLException se) { throw new ApplicationDAOException("SQL Exception while getting " + "DB connection : \n" + se); } return; } /** * Close database conection. */ private void closeConnection() throws ApplicationDAOException { try { if (dbConnection != null && !dbConnection.isClosed()) { dbConnection.close(); } } catch (SQLException se) { throw new ApplicationDAOException("SQL Exception while closing " + "DB connection : \n" + se);
RE: Sybase experience anyone?
Mike Which Sybase JDBC version are you using? I think their latest stable version is 5.2 (a type 4 JDBC 2.0 compliant driver). Regards, Michael Mok -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mike Cannon-Brookes Sent: Sunday, 21 January 2001 17:57 To: Orion-Interest Subject: RE: Sybase experience anyone? I can say that we're in the process of switching our app from Sybase 11.0.3 (on Linux) to PostgreSQL. The Sybase JDBC driver was fugged for us, it locks up at about 50 concurrent connections, sending the database spiralling and grabbing more and more CPU, until Orion just gives errors with every page and Sybase sits at 100% CPU. We rectified this buy buying a commercial Sybase driver (Inet I think). For the site revamp have decided to move to PostgreSQL, seems to be performing brilliantly so far. It also has a much more active developer community, a JDBC driver that I can fix myself, and plenty of places to get support. Never tried Interbase or SapDB. My $0.02. -mike > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Robert Krueger > Sent: Sunday, January 21, 2001 8:12 PM > To: Orion-Interest > Subject: Re: Sybase experience anyone? > > > At 18:58 20.01.2001 , you wrote: > >Hello, > > > >We are about to decide about the database platform on which we > will deploy > >our first J2EE application. Preferrably, it should be a > cost-free solution. > >First I would like to ask if anyone has experience to share about using > >Sybase 11.0.3 (the one that is free to deploy under Linux). I especially > >wonder about the JDBC driver (does it come with one?). > > > >I have read about people using Interbase and PostgreSQL > successfuly. I would > >still like to conduct a shootout between the following databases: > > > >Interbase > >PostgreSQL > >Sybase 11.0.3 > >SapDB > > We've had (/have?) the same problem and we settled for sapdb if nothing > unexpected happens. > > Reasoning: > > - We don't trust Postgresql to be as mature in areas like backup, > mirroring > as one of the commercial products (anyone comment on that?) > - Worked with Adabas for the past three years in production and > never had a > significant problem (one year in combination with orion). We were only > pissed at how unprofessionally Software AG handled development > and support > for Adabas Tools and drivers (JDBC and Perl). Now that that seems to be a > lot better with SAPDB (basically being the same as Adabas, I > think you told > me that Christian, thank you again for that hint :-) we only have minor > things that make SAPDB less fun to work with than Oracle (by far the best > RDBMS I've worked with but you know ...$$$). > - Sybase worked well in our tests here too but we thought what > could happen > when at some point Sybase decided not to support this (very old) free > version with new versions of JDBC drivers. Probably not relevant for the > next year or so but you never know. SAPDB feels a safer choice in > that regard. > - A very individual reason. We have Adabas know-how and > experience here and > the basic concepts are exactly the same, so we don't have to make all the > beginners' mistakes again with a new RDBMS. > - Interbase (on linux) initially worked very well (also with orion) but > proved to be VERY unstable (especially the JDBC driver) > > The only thing we haven't decided on is a low-cost failover solution for > the database. But we're experimenting. > > Anyone else got a comment on that? > > Robert > > > > > >anyone? > >thanks, > >Christian Sell > > > > (-) Robert Krüger > (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH > (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, > (-) Tel: 06151 665401, Fax: 06151 665373 > (-) [EMAIL PROTECTED], www.signal7.de > > >
RE: User/Group manager guide
Jason Thanks for the reply. I was confused with the word "already" and "being written". Regards, Michael Mok -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Rimmer Sent: Tuesday, 19 September 2000 14:45 To: Orion-Interest Subject: Re: User/Group manager guide I think the operative phrase here is "being written", e.g. in process. When it's done I'm sure we'll hear about it first on this list. Michael Mok wrote: > > Karl > > Where is this guide found? Any URL to the Orion Website or .HTML folder in > the installed Orion directory? > > TIA > > Michael Mok > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Karl Avedal > Sent: Tuesday, 19 September 2000 9:45 > To: Orion-Interest > Subject: Re: User/Group manager guide > > Hello, > > There's already a guide about this being written. > > Regards, > Karl Avedal > > Guilherme Ceschiatti wrote: > > > Hi! > > > > I'm almost leaving Orion because the lack of documentation, mainly about > how to > > manage User/Groups. As many people have lots of doubts related to it too, > I'm > > asking the Orion team or anybody else to write a tutorial about it. I > really > > don't want to leave Orion, because I've made good things on it, but I'm > > spending a lot of time trying to "decifrate" how to use the Orion API. > > > > Thanks. > > Guilherme Ceschiatti > > [EMAIL PROTECTED] -- Jason Rimmer [EMAIL PROTECTED]
RE: User/Group manager guide
Karl Where is this guide found? Any URL to the Orion Website or .HTML folder in the installed Orion directory? TIA Michael Mok -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Karl Avedal Sent: Tuesday, 19 September 2000 9:45 To: Orion-Interest Subject: Re: User/Group manager guide Hello, There's already a guide about this being written. Regards, Karl Avedal Guilherme Ceschiatti wrote: > Hi! > > I'm almost leaving Orion because the lack of documentation, mainly about how to > manage User/Groups. As many people have lots of doubts related to it too, I'm > asking the Orion team or anybody else to write a tutorial about it. I really > don't want to leave Orion, because I've made good things on it, but I'm > spending a lot of time trying to "decifrate" how to use the Orion API. > > Thanks. > Guilherme Ceschiatti > [EMAIL PROTECTED]
Orion 1.2.7 download broken
I tried to download Orion 1.2.7 from www.orionserver.com/orion1.2.7.zip . However the server reported that there is no such file. Anyone managed to download 1.2.7? Regards, Michael Mok
FW: How to deploy with Orion..including config files.
-Original Message- From: Michael Mok [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 30 August 2000 16:07 To: '[EMAIL PROTECTED]' Subject: How to deploy with Orion..including config files. Kevin The documentation you contribute was really helpful. I have the problems you reported earlier in regards getting Orion to run STRUTS. By some stroke of luck I managed to get Orion serving my application (first page only..). It loaded the database servlet and found the resource file ok. I have placed the struts.jar in the WEB-INF\lib directory and the taglib files in the WEB-INF directory. However Orion still complained about not being able to find the ValidationActionForm.class. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Orion/1.2.0 initialized createFormInstance: java.lang.NoClassDefFoundError: org/apache/struts/action/Va lidatingActionForm java.lang.NoClassDefFoundError: org/apache/struts/action/ValidatingActionForm at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java, Compiled Code) at com.evermind.naming.i5.findClass(JAX, Compiled Code) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java, Compiled Co de) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java, Compiled Code) at org.apache.struts.action.ActionMappingBase.createFormInstance(ActionM appingBase.java:409) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< I am running Orion 1.2.0 on Windows NT sp6 JDK 1.2.2. I also attached my config files if it helps. I would really appreciate if you can give me some help. Cheers Michael Mok My application.log files says 30/08/00 16:12 Started 30/08/00 16:12 portal-web: com.consultech.web.initialise.DatabaseServlet: init 30/08/00 16:12 portal-web: com.consultech.web.initialise.DatabaseServlet: Initializing database servlet 30/08/00 16:12 portal-web: org.apache.struts.action.ActionServlet: init 30/08/00 16:12 portal-web: org.apache.struts.action.ActionServlet: Loading application resources from resource com.consultech.web.initialise.ApplicationResources 30/08/00 16:12 portal-web: org.apache.struts.action.ActionServlet: Initializing configuration from resource path /WEB-INF/action.xml 30/08/00 16:12 portal-web: com.consultech.web.booking.WebBureauServlet: init 30/08/00 16:12 portal-web: 1.2.0 Started 30/08/00 16:12 portal-web: org.apache.struts.action.ActionServlet: Processing a GET for /editGuest 30/08/00 16:12 portal-web: org.apache.struts.action.ActionServlet: Looking for ActionForm bean under attribute 'guestregistrationForm' 30/08/00 16:12 portal-web: org.apache.struts.action.ActionServlet: Creating new ActionForm instance 30/08/00 16:12 portal-web: org.apache.struts.action.ActionServlet: Could not create an ActionInstance for '/editGuest' My orion server.xml application-directory="../applications" deployment-directory="../application-deployments" > My default-web-site.xml my application structure d:\devtools\orion\applications\fbs_portal d:\devtools\orion\applications\fbs_portal\ejb-web d:\devtools\orion\applications\fbs_portal\ejb-web\WEB-INF d:\devtools\orion\applications\fbs_portal\ejb-web\WEB-INF\lib d:\devtools\orion\applications\fbs_portal\ejb-web\WEB-INF\classes
Session bean accessing other Session bean HELP!
Hi I have just start to look at Orion and I am having problems getting my Session bean to access my other Session bean. I wrote a servlet to access my session which in turn calls another session bean to do something. I suspect it must have something to do with my deployment descriptors. I really appreciate if someone can help me out. The error message I am getting is Time stamp: Tue Aug 29 09:12:47 GMT+08:00 2000 Hello type: Hello_StatelessSessionBeanWrapper0 Error calling the Hello bean com.evermind.server.rmi.OrionRemoteException: javax.naming.NameNotFoundException: ejb/codeReferenceUtilHome not found in Hello; nested exception is: javax.naming.NameNotFoundException: ejb/codeReferenceUtilHome not found in Hello I am running Orion 1.2.0 on JDK 1.2.2 and I used KAWA 5.0 to develop my beans. I have been able to get the session to session bean talking in Sun J2EE RI. My two beans are Session Bean HelloEJB, Hello, HelloHome Entity CodeReferenceUtilEJB, CodeReferenceUtil, CodeReferenceUtilHome My META-INF\ejb-jar.xml is no description Hello com.consultech.portal.util.Hello com.consultech.portal.util.HelloHome com.consultech.portal.util.Hello com.consultech.portal.util.HelloEJB Stateless Bean ejb/codeReferenceUtil Session com.consultech.portal.util.CodeReferenceUtilHome com.consultech.portal.util.CodeReferenceUtil no description Code Reference com.consultech.portal.util.CodeReferenceUtil com.consultech.portal.util.CodeReferenceUtilHome com.consultech.portal.util.CodeReferenceUtil com.consultech.portal.util.CodeReferenceUtilEJB Stateless Bean jdbc/fbsPortalDataSource javax.sql.DataSource Container My HelloEJB.java session bean access method is protected Object getHome(String name, Class type) { try { Context context = new javax.naming.InitialContext(); Object ref = context.lookup("java:comp/env/ejb/"+name); return PortableRemoteObject.narrow(ref,type); } catch (javax.naming.NamingException ne) { throw new EJBException( ne); } } public String getHello2() { // // Get access to the sequence object... try { CodeReferenceUtilHome codehome = CodeReferenceUtilHome)this.getHome( "codeReferenceUtilHome", CodeReferenceUtilHome.class ); CodeReferenceUtil coderef = codehome.create(); Integer partytype = coderef.getIndividualType(); System.out.println("individual type returned is " + String.valueOf(partytype)); return "individual type return is " + String.valueOf(partytype); } catch (CreateException ce) { throw new EJBException("Fail to create keypool ejb"); } catch (RemoteException re) { throw new EJBException(re); } } My CodeReferenceUtilHome.java is public interface CodeReferenceUtilHome extends EJBHome { CodeReferenceUtil create() throws RemoteException, CreateException; }