Displaying image files stored in a database
Hi, I'm developing an web-based Employee Directory for my company. I've got it working all right. My problem is that I'd like to store the image files in a database (presently I'm using Hypersonic) and be able to display them as needed for each employee. However, I haven't been able to that. I worked aroud this problem by storing the images in the file system and entering a path to the required image file as a VARCHAR in the database. Eventhough it solved my problem, it is undesireable because I'd have to manually delete each image file that's no longer required instead of simply deleting a row in the database. I successfully stored each file as a Java object (in this case "File") but I just couldn't think of a way to display it on a web page. I'm sure this is a piece of cake for most of you out there but I just can't figure it out. Any he.lp would do. Thanks. Regards, Paul _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Displaying image files stored in a database
Hi, I'm developing an web-based Employee Directory for my company using Servlets and JSPs. I've got it working all right. My problem is that I'd like to store the image files in a database (presently I'm using Hypersonic) and be able to display them as needed for each employee. However, I haven't been able to that. I worked aroud this problem by storing the images in the file system and entering a path to the required image file as a VARCHAR in the database. Eventhough it solved my problem, it is undesireable because I'd have to manually delete each image file that's no longer required instead of simply deleting a row in the database. I successfully stored each file as a Java object (in this case "File") but I just couldn't think of a way to display it on a web page. I'm sure this is a piece of cake for most of you out there but I just can't figure it out. Any he.lp would do. Thanks. Regards, Paul _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Orion and SSL
Hi, I've already browsed the list archive and I've seen that many people have had this problem but I didn't find a solution. So my problem is the typical "Error listening to SSLServerSocket: No available certificate corresponds to the SSL cipher suites which are enabled" I already imported the certificate using "keytool -import -trustcacerts -file mycert.der -keystore keystore", the certificate has been granted to the same hostname which is specified in the mysite-web-site.xml file, the certificate is valid until october, created by Verisign, 1024 public-key..., SSLv1, it works fine with Apache. So, is there any log file where I can get a more specific error message? Have I forgotten to do something? Any hints? TIA, Dan --- Daniel Lopez Janariz ([EMAIL PROTECTED]) Web Services Computer Center Balearic Islands University ---
multi language support
Hi to all. i use orion with hypersonicsql.. is there any way to support greek characters ? i need some entries in the database in greek.. the Database Manager displays them but orion doesnt.. any workarounds? Thanks...
RE: Displaying image files stored in a database
Hi, I guess you could write the URL to all images from the database as '/databaseimage/primary key'. For example: '/databaseimage/13'. Then you map a servlet to /databaseimage. This servlet cheks the request URI for the primary key, reads the file from the database and then sends it on the response. Regards, Mikael Eriksson -Original Message- From: Paul Kofon [mailto:[EMAIL PROTECTED]] Sent: den 12 februari 2001 09:24 To: Orion-Interest Subject: Displaying image files stored in a database Hi, I'm developing an web-based Employee Directory for my company. I've got it working all right. My problem is that I'd like to store the image files in a database (presently I'm using Hypersonic) and be able to display them as needed for each employee. However, I haven't been able to that. I worked aroud this problem by storing the images in the file system and entering a path to the required image file as a VARCHAR in the database. Eventhough it solved my problem, it is undesireable because I'd have to manually delete each image file that's no longer required instead of simply deleting a row in the database. I successfully stored each file as a Java object (in this case "File") but I just couldn't think of a way to display it on a web page. I'm sure this is a piece of cake for most of you out there but I just can't figure it out. Any he.lp would do. Thanks. Regards, Paul __ ___ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Problems with servlet mapping
Okay, I have a web app that maps "/" to servlet X. According to the Servlet spec, this is supposed to make X the default servlet. Also, according to the spec, the container is supposed to do a recursive search for the longest matching path. Here's the problem, when requests come in for things like: /images/img.gif, the container is mapping those to X as well. Ouch! Basically, "/" is being interpreted to mean "/*". The strange thing is that, while playing around with it, I redeployed once and, all of a sudden, it worked correctly. Then, when I redeployed later (changing something totally unrelated and not web.xml), it went back to the incorrect behavior. Has anyone else encountered this behavior? Is this a bug? I'm using 1.4.5. Help would be greatly appreciated, Dan Cramer Chief Architect Dynamic Resolve, LLC Internet Solutions Consulting
Re: multi language support
It is probably because the shell that runs orion does not support greek characters... Try that... Or test run it using a Windows server. If it still does not work, I'm out of ideas. We had a similar problem, displaying swedish characters on a webpage, and the problem was the shell running did not have support for swe chars. - Original Message - From: "Christos Voyiagis" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Monday, February 12, 2001 10:10 AM Subject: multi language support Hi to all. i use orion with hypersonicsql.. is there any way to support greek characters ? i need some entries in the database in greek.. the Database Manager displays them but orion doesnt.. any workarounds? Thanks...
Unicode and Orion in Java-Client
Hi, I want to connect to orion from a java-client using interbase and unicode data. The data in unicode-format are stored correctly in the database, I just tested it with a java client connecting directly to the database. But I get garbled data when using a simple client connecting to orion. I think it is just a flag which has to been set to tell orion to work with unicode but I don't know which. Please could anyone tell me? Best regards Dirk Ohst.
Unicode and Orion in Java-Client
Hi, I want to connect to orion from a java-client using interbase and unicode data. The data in unicode-format are stored correctly in the database, I just tested it with a java client connecting directly to the database. But I get garbled data when using a simple client connecting to orion. I think it is just a flag which has to been set to tell orion to work with unicode but I don't know which. Please could anyone tell me? Best regards Dirk Ohst.
Internal error in http server
Running with orion 1.4.5 on a Sun Solaris I found the following message in the logfile: . . Internal error in http server ...nullpointer exception .. Anyone seen this before ? med venlig hilsen Henrik Skafsgaard Larsen
Using Session Variables
Hi. I'm having some difficulty using session variables. Here's a short abridgement of my code in evaluate.jsp: HttpSession thisSession = request.getSession(true); ... while(enum.hasMoreElements()){ intValue = fncFunction(...); switch(value){ case -1: thisSession.putValue("errorMsg","Error in fncFunction()"); response.sendRedirect(response.encodeRedirectURL("../errorpages/error.jsp")); break; case -2: ... } } The problem: the error.jsp page sometimes shows some of the HTML code in the evaluate.jsp page. The error.jsp pagelooks something like this: HttpSession thisSession = request.getSession(true); String strError=(String)thisSession.getValue("errorMsg");if (strError!=null strError!="") out.println(strError);else out.println("Ingen nærmere feilbeskjed er tilgjengelig.br"); What's the problem here?? It seems to me that the session variable includes much more than my simple errorMsg. Øystein
RE: Any news from Orion yet??
Weblogic (and the high priced products like Websphere) are great, if you want to pay the price. They come with nice tools like front end gui's, good documentation, paid support, etc. But if you look for the opinions of developers who have used these products, and compared them to Orion, jboss, etc., they would say the EJB capacies are no better then the other high priced products. In order of ranking, here's how I look at the other products. 1 Orion -- This product is ready now, but I haven't seen anyone from this list run a Sears store on it. 2. Jboss (www.jboss.org) -- The founders are very bright, have five hundred developers on the projects, have EJB heavies contributing to the list, and it's a very easy to use product. Personally, even though it is ready for production now, I would wait for it to mature a bit more. It's like a fine wine -- drink it now, and it is OK, or allow it to age a bit then drink it (like jboss 3.0 final). 3. Openejb (www.openejb.org) - this project has a very bright and well known person heading it, and it is slated to be intergrated with Tomcat and Apache. It has yet to prove itself, as it is not yet ready for production release. But it has good future promise. 4. Jonas (www.evidian.com/jonas) - This is a good product, but it is not as advanced as the other two open source products and I don't think they have as many people behind them. 5. Enhydra enterprise (www.enhydra.org). If you like the enhydra application server, this product has potential. But it is not production ready yet and it intergrates with the jonas server. In summary, Orion is here now but can it run Sears? Jboss is ready but I would let it mature a bit more for production environments. Openejb and Enhydra have great potential, but they are not ready yet and have to prove themselves. Jonas is OK but I prefer the other open source alternatives. -Original Message- From: Anthony W. Marino To: Orion-Interest Sent: 2/11/01 9:06 AM Subject: Re: Any news from Orion yet?? On another note, can you and/or someone, qualify/quantify what you mean by the following previously made statement : "For the most part, Orion is still very much ahead of the pack, and the speed is stil EXCELLENT." ? In the Apache Tomcat list I asked the following question: "Can someone suggest to me what Apache and/or other OpenSource products could be integrated to compete with functionally and/or considered in the same category as BEA WebLogic? I don't necessarily need all of what BEA has to offer at this time, however, I would like to know, generally, what it would take to get there without the big $ price tag." Thank You, Anthony On Monday 15 January 2001 15:20, you wrote: On Mon, 15 Jan 2001, Jason Boehle wrote: WL6 has support for EARs. They also support all of the EJB 2.0 spec except for dependent objects. In fact, I am currently using WL6 for development instead of Orion, due to the apparent lack of development going on in the Orion team on EJB 2.0. I had suggested to my boss that we use Orion, as I had been lurking and following it for several months, and saw that it always met the latest specs first, etc. - now I feel dumb for doing so, as they haven't had a new release in several months... Of course, this is a little unfair - weblogic hadn't had a new release for several months, either. They've just had a major release recently, which makes it seem like they're more active than Orion, when that's not necessarily the case. It might be, but that's not implied by the situation at present. For the most part, Orion is still very much ahead of the pack, and the speed is stil EXCELLENT. While I'm very much looking forward to a new round of released bug fixes, I'm still waiting for some things to shake out before I abandon ship. -Original Message- From: Santosh Kumar [mailto:[EMAIL PROTECTED]] Sent: Monday, January 15, 2001 12:57 AM To: Orion-Interest Subject: Re: Any news from Orion yet?? Hi kevin, As far as i have known WL5.1 or , there is no concept of ear files, does 6.0 include that. Doesn't the J2EE mandate (I am not sure!) the use of EAR = WAR + JAR + CAR(or JAR)? To deploy the JPS1.1.1 on Orion, it is a piece of cake, while deploying on WLS, i have to unpack the EAR files and dis-integrate them which is contrary to the essence of packaging the ear files, Even meddling with the ugly weblogic.properties frustrates one and all. Is that true with all WLS users? Orion is a neat impl of J2EE, is WLS6.0? Regards, Santosh. - Original Message - From: Kevin Duffey [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, January 15, 2001 12:07 PM Subject: RE: Any news from Orion yet?? I am not one to advocate another product, but WL6 looks nice. It is easy to work with compared to WL5.1. Orion is still the best. JBoss looks very interesting
Orion
hi all Can anybody send me some ejb tutorials bye then waheed _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
RE: The best way to get the context path
in your jsp, try application.getRealPath(). -Original Message- From: Randahl Fink Isaksen [SMTP:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 6:32 AM To: Orion-Interest Subject: The best way to get the context path Petr Podsednik wrote: img src="%=request.getContextPath()%/images/app-logo.gif" .. - I know that you often need your own context path in order to return a correct link to some resource in your web-app, but is there not a better way than calling request.getContextPath() ? It seems odd to me to ask for the context path on the request object - I am looking for something like pageContext.getServletContext().getInitParameter("the application context path") but I have not been able find out how to make this work... Any comments / suggestions would be appreciated R. -- CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately notify the sender by e-mail at the address shown. This e-mail transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance.
Re: Problems with a finder method in a cmp
Please don't laugh at me, but what IS a 'finder method in a CMP'?? Just a simple explanation or a pointer to more info, please... -- -Geoff Marshall, Director of Development ... t e r r a s c o p e (415) 951-4944 54 Mint Street, Suite 110 direct (415) 625-0349 San Francisco, CA 94103 fax (415) 625-0306 ... From: "mangesh laad" [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] Date: Fri, 09 Feb 2001 19:49:26 - To: Orion-Interest [EMAIL PROTECTED] Subject: Re: Problems with a finder method in a cmp Hi All u have to do is just write the findByName as u already have in the home interface . While deploying the orion will write the coresponding finder query for you in the orion--ejb-jar in its finder-method tag From: "fresnaULL" [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: Problems with a finder method in a cmp Date: Thu, 8 Feb 2001 14:01:28 - Hi all, I'm trying to define this finder method in a cmp: SELECT * FROM people WHERE people.name LIKE '%name%' which is correct in SQL SERVER 7.0 I put the following in the people home interface: String findByName_query = "people.name like '%$1%'"; . . . public java.util.Enumeration findByName(String value) throws java.rmi.RemoteException, javax.ejb.FinderException; but it doesn't work. Orion is able to deploy the cmp but when I try to use it I only get this error message: 500 Internal Server Error java.lang.NullPointerException at sun.jdbc.odbc.JdbcOdbcPreparedStatement.clearParameter(Unknown Source) at sun.jdbc.odbc.JdbcOdbcPreparedStatement.setChar(Unknown Source) at sun.jdbc.odbc.JdbcOdbcPreparedStatement.setString(Unknown Source) at com.evermind.sql.am.setString(JAX) at com.evermind.sql.am.setString(JAX) at PeopleHome_EntityHomeWrapper72.findByName(PeopleHome_EntityHomeWrapper72.jav a:1142) at Search.doGet(Search.java:46) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at com.evermind.server.http.d1.si(JAX) at com.evermind.server.http.d1.forward(JAX) at com.evermind.server.http.ed.sp(JAX) at com.evermind.server.http.ed.so(JAX) at com.evermind.util.f.run(JAX) Does anybody know how i can make it work? Thanks in advance _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Error page
I included an error-page option in my web.xml, but whenever I force an error I get a strange response... HTTP/1.1 500 Internal Server ErrorDate: Mon, 12 Feb 2001 15:41:28 GMTServer: Orion/1.4.5Transfer-Encoding: chunkedConnection: CloseContent-Type: application/octet-stream 0 My browser interprets this message as if it is about to download an unknown application. This is not the way it should be... Tried it on 1.3.8 and 1.4.5 (WinNT). Same message on both. My web.xml : ... error-pageerror-code500/error-codeexception-typejava.lang.NullPointerException/exception-type location/bb/se/batborsen_error.html/location /error-page ... Would appreciate a hint on where to look for the error. thanks, Johan Fredriksson Dalai Lama wisdom 10. Remember that silence is sometimes the best answer.
Re: Displaying image files stored in a database
Hi: How about creating an object that first deletes the image file referenced in the database then deletes the record itself? Stefan
Re: Displaying image files stored in a database
Hi: How about creating an object that first deletes the image file referenced in the database then deletes the record itself? Stefan
Re: R: Why is Netscape slower with Orion?
Netscape has been the bane of developers for years. I doubt that it will get better with version 6. How about Opera?
Re: R: Why is Netscape slower with Orion?
Netscape has been the bane of developers for years. I doubt that it will get better with version 6. How about Opera?
Re: R: Why is Netscape slower with Orion?
Netscape has been the bane of developers for years. I doubt that it will get better with version 6. How about Opera?
Re: Any news from Orion yet??
1 Orion -- This product is ready now, but I haven't seen anyone from this list run a Sears store on it. http://www.printpotato.co.uk/ is ran on orion, and is a fair sized application. Unfortunately tw2 who are developing it have just gone out of buisness.
Re: Displaying image files stored in a database
Hi: How about creating an object that first deletes the image file referenced in the database then deletes the record itself? Stefan
Installing application.
Hi: I have been trying to install an application using orion and I am having a terrible time of it. With what information I can find I have installed the application in the application direcotry of orion and set the refrence in the server.xml file but I get this error when starting up orion: C:\orionjava -jar orion.jarError instantiating application at file:/C:/orion/addressbook2: Unable to find/read assembly info for C:\orion/addressbook2 (IO error: unable to find addressbook2)Orion/1.3.8 initialized Any ideas? Are there any clear tutorials out there in setting up an application in orion? Thanks, Stefan
Re: Orion
Waheed - look at www.jollem.com, www.orionsupport.com. Also buy Richard Monson-Haefel's book - "Enterprise Java Beans" Look around the net - you will find a lot of stuff... Ray --- waheed_rahuman [EMAIL PROTECTED] wrote: hi all Can anybody send me some ejb tutorials bye then waheed _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
RE: Using Session Variables
If this is in a JSP page, you don't need to get the session from the request. Go to the java.sun.com site, select APIs, select Java Server Pages and print yourself out the JSP Syntax Card. It tells you what you can use in JSP. There is a session variable already defined for you. Also, there is a servlet context variable (application scope), and others as well. As for why one page is getting some HTML from the previous..it has nothing to do with your session use. That is just a Hashtable of objects stored by a key name. I don't remember for sure, but it has something to do with the way pages are being flushed. If you forward from one page to the next, you continue to build upon the html that goes back to the client. When you response.sendRedirect(), my guess is that the buffer is not completely flushed or something. I believe the JSP Syntax Card has an item that you can set at the top of a JSP page that flushes the buffer. Look for that and see if that helps. May I also suggest you use a simple MVC framework? If your using Servlet 2.1 I have made one that makes it very easy to develop with. Struts is another very good MVC framework more complete than my own. Let me know if you are interested in that approach, which will resolve this for you but require a bit different approach in coding (one that thus far most people believe is a better more manageable and more scalable approach than calling JSPs from other JSPs). -Original Message- From: ystein Walle To: Orion-Interest Sent: 2/12/2001 4:46 AM Subject: Using Session Variables Hi. I'm having some difficulty using session variables. Here's a short abridgement of my code in evaluate.jsp: HttpSession thisSession = request.getSession(true); ... while(enum.hasMoreElements()){ intValue = fncFunction(...); switch(value){ case -1: thisSession.putValue("errorMsg","Error in fncFunction()"); response.sendRedirect(response.encodeRedirectURL("../errorpages/error.js p")); break; case -2: ... } } The problem: the error.jsp page sometimes shows some of the HTML code in the evaluate.jsp page. The error.jsp page looks something like this: HttpSession thisSession = request.getSession(true); String strError=(String)thisSession.getValue("errorMsg"); if (strError!=null strError!="") out.println(strError); else out.println("Ingen nrmere feilbeskjed er tilgjengelig.br"); What's the problem here?? It seems to me that the session variable includes much more than my simple errorMsg. ystein
RE: Problems with a finder method in a cmp
Read O'Reilly - Enterprise JavaBeans 2nd ed. It will clear up a lot of your questions. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Geoff Marshall Sent: Monday, February 12, 2001 10:31 AM To: Orion-Interest Subject: Re: Problems with a finder method in a cmp Please don't laugh at me, but what IS a 'finder method in a CMP'?? Just a simple explanation or a pointer to more info, please... -- -Geoff Marshall, Director of Development ... t e r r a s c o p e (415) 951-4944 54 Mint Street, Suite 110 direct (415) 625-0349 San Francisco, CA 94103 fax (415) 625-0306 ... From: "mangesh laad" [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] Date: Fri, 09 Feb 2001 19:49:26 - To: Orion-Interest [EMAIL PROTECTED] Subject: Re: Problems with a finder method in a cmp Hi All u have to do is just write the findByName as u already have in the home interface . While deploying the orion will write the coresponding finder query for you in the orion--ejb-jar in its finder-method tag From: "fresnaULL" [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: Problems with a finder method in a cmp Date: Thu, 8 Feb 2001 14:01:28 - Hi all, I'm trying to define this finder method in a cmp: SELECT * FROM people WHERE people.name LIKE '%name%' which is correct in SQL SERVER 7.0 I put the following in the people home interface: String findByName_query = "people.name like '%$1%'"; . . . public java.util.Enumeration findByName(String value) throws java.rmi.RemoteException, javax.ejb.FinderException; but it doesn't work. Orion is able to deploy the cmp but when I try to use it I only get this error message: 500 Internal Server Error java.lang.NullPointerException at sun.jdbc.odbc.JdbcOdbcPreparedStatement.clearParameter(Unknown Source) at sun.jdbc.odbc.JdbcOdbcPreparedStatement.setChar(Unknown Source) at sun.jdbc.odbc.JdbcOdbcPreparedStatement.setString(Unknown Source) at com.evermind.sql.am.setString(JAX) at com.evermind.sql.am.setString(JAX) at PeopleHome_EntityHomeWrapper72.findByName(PeopleHome_EntityHomeWrapper72.jav a:1142) at Search.doGet(Search.java:46) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at com.evermind.server.http.d1.si(JAX) at com.evermind.server.http.d1.forward(JAX) at com.evermind.server.http.ed.sp(JAX) at com.evermind.server.http.ed.so(JAX) at com.evermind.util.f.run(JAX) Does anybody know how i can make it work? Thanks in advance _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
RE: Internal error in http server
Yes. Somewhere in your Servlet code you are getting a null pointer exception. Check your log file. Hope this helps, Dan Cramer -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Henrik Skafsgaard Larsen Sent: Monday, February 12, 2001 3:41 AM To: Orion-Interest Subject: Internal error in http server Running with orion 1.4.5 on a Sun Solaris I found the following message in the logfile: . . Internal error in http server ...nullpointer exception .. Anyone seen this before ? med venlig hilsen Henrik Skafsgaard Larsen
Re: Displaying image files stored in a database
Hi, I have recently done what you are looking for using (not surprisingly if you take a look at my e-mail) an Informix database. I stored the images as blobs in the database and used a singleton class (called through a JSP custom tag) to retrieve the images to the file system and manage a cache which can be easily configured (size of the cache area and time before an image expires). Informix provides a function called blobtofile which makes if very easy to transfer the file from the database to the filesystem. This allows me to bypass the jdbc calls which are slower. You should however be able to do something similar with a java database like InstantDB (I am not sure about Hypersonic, since I have never used it). By storing the image inside a database you make sure that you maintain the data integrity and the cache allows you to get file system like performance. The result is a clean readable code in the JSP page. Here is an example: ip:DownloadFromDB table="vs_images" column="image" indexColumn="content_id" index="%=document.getId()%" indexColumn2="order" index2="1" fromCache="false" ip:Success name="file" type="InstantPortal.ImageFile" IMG SRC="%=file.getImageURL()%" /ip:Success ip:NoResults Empty /ip:NoResults /ip:DownloadFromDB Regards, Huibert [EMAIL PROTECTED] wrote: Hi: How about creating an object that first deletes the image file referenced in the database then deletes the record itself? Stefan
RE: Problems with a finder method in a cmp
Suppose you had a widget CMP entity bean, with a handedness field, and wanted to get all the left handed widgets. You'd use a finder method, findByHandedness("left"), to return a collection of left handed widgets. Orion makes this easy; just define it and go. See http://www.orionsupport.com/ for details ( http://www.orionsupport.com/articles/ejbfinderquery.html ). More complicated finders ("left handed widgets sold on Mondays") takes a little more effort, also described on Orionsupport. BTW, Orionsupport is a private effort, not an official site. The maintainer occasionally uses the server hardware for other purposes, so if it doesn't respond wait a while and try again later. Kirk Yarina -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Geoff Marshall Sent: Monday, February 12, 2001 10:31 AM To: Orion-Interest Subject: Re: Problems with a finder method in a cmp Please don't laugh at me, but what IS a 'finder method in a CMP'?? Just a simple explanation or a pointer to more info, please... -- -Geoff Marshall, Director of Development ... t e r r a s c o p e (415) 951-4944 54 Mint Street, Suite 110 direct (415) 625-0349 San Francisco, CA 94103 fax (415) 625-0306 ...
Re: Installing application.
Hi - Go check out www.orionsupport.com and www.jollem.com (orion primer example) That should get you started Ray --- [EMAIL PROTECTED] wrote: Hi: I have been trying to install an application using orion and I am having a terrible time of it. With what information I can find I have installed the application in the application direcotry of orion and set the refrence in the server.xml file but I get this error when starting up orion: C:\orionjava -jar orion.jar Error instantiating application at file:/C:/orion/addressbook2: Unable to find/r ead assembly info for C:\orion/addressbook2 (IO error: unable to find addressboo k2) Orion/1.3.8 initialized Any ideas? Are there any clear tutorials out there in setting up an application in orion? Thanks, Stefan __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
JNDI Lookup from Applet
Does anyone have a simple example of an Applet doing a JNDI lookup of a bean? We are not using servlets, but a Swing Applet client contacting the beans directly and I'm getting the following exception: javax.xml.parsers.FactoryConfigurationError: com.sun.xml.parser.DocumentBuilderFactoryImpl at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:80) at com.evermind.xml.e.getJavaxDocument(JAX) at com.evermind.xml.XMLUtils.getDocument(JAX) at com.evermind.xml.XMLConfig.ay(JAX) at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(JAX) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246) Exactly what jars need to be on the client side? I'm using and HTML page to launch the applet and assuming the jars are downloaded via http... Thanks -- *** |^^| | | | _ _| John B McManus | (.)(.) email: [EMAIL PROTECTED] @ _)phone: (303)734-6002 | ,___| | / begin:vcard n:McManus;John tel;home:303-744-6818 tel;work:303-734-6002 x-mozilla-html:TRUE adr:;; version:2.1 email;internet:[EMAIL PROTECTED] fn:John McManus end:vcard
RE: JNDI Lookup from Applet
Hi, The simpel answer is everything. You need the include orion.jar and all it friends. I know this is a pain in the neck as it adds around 3mb to the application and hurts us a lot her. (Thats the one of the reasons why I am sitting her at the moment porting xml files to be valis so the works with sybase EAS 3.6.1. (Orion doesnt validate the ejb-jar.xml's properly so it was a huch task correcting them to spec. (with more that 1200 session and entitybeans its a pain.))) Back to your question her is how I load applets from a jsp page in orion: %@ page errorPage="/misc/errorpage.jsp" % %@ page language="java" import = " java.io.*, java.rmi.RemoteException, java.util.*, java.text.*, javax.naming.*, javax.rmi.PortableRemoteObject, java.net.*, javax.servlet.http.HttpServletRequest " % html head /head body jsp:plugin type="applet" code="com/telenor/mobil/planit/pakka/Pakka.class" codebase="/classes" align="bottom" height="600" width="800" jreversion="1.3" % jsp:params jsp:param name="cache_option" value="Plugin" / jsp:param name="cache_archive" value="sessionbeans.jar,PakkaApplet.jar,exense.jar,planitbeans.jar,ejb.jar,o rion.jar,jndi.jar,objectfx.jar,parser.jar,mail.jar,jaxp.jar,jdbc.jar,VisualN umerics.jar"/ jsp:param name="java.naming.factory.initial" value="com.evermind.server.ApplicationClientInitialContextFactory" / jsp:param name="java.naming.provider.url" value="ormi://nt-osl-8789/appit" / jsp:param name="java.naming.security.principal" value="someone" / jsp:param name="java.naming.security.credentials" value="something" / /jsp:params jsp:fallback This software requiers that you have installed the java plugin for Explorer/Netscape version 1.3. Contact helpdesk at 85150. /jsp:fallback /jsp:plugin /body /html Regards, Torgeir Lerkerd Nett/IT T +47 (227) 84588 M +47 91837430 -Original Message- From: John McManus [mailto:[EMAIL PROTECTED]] Sent: 12. februar 2001 20:11 To: Orion-Interest Subject: JNDI Lookup from Applet Does anyone have a simple example of an Applet doing a JNDI lookup of a bean? We are not using servlets, but a Swing Applet client contacting the beans directly and I'm getting the following exception: javax.xml.parsers.FactoryConfigurationError: com.sun.xml.parser.DocumentBuilderFactoryImpl at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory. java:80) at com.evermind.xml.e.getJavaxDocument(JAX) at com.evermind.xml.XMLUtils.getDocument(JAX) at com.evermind.xml.XMLConfig.ay(JAX) at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext (JAX) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246) Exactly what jars need to be on the client side? I'm using and HTML page to launch the applet and assuming the jars are downloaded via http... Thanks -- *** |^^| | | | _ _| John B McManus | (.)(.) email: [EMAIL PROTECTED] @ _)phone: (303)734-6002 | ,___| | /
RE: JNDI Lookup from Applet
Hi, Commenting on myself. I forgot to add the client side code Just remeber you can only make a context once from a client. Then you must reuse that one to get the ejb-instances. Her it is initialisation: java.util.Hashtable env = new java.util.Hashtable(); env.put(javax.naming.Context.APPLET, this); env.put(javax.naming.Context.SECURITY_PRINCIPAL, getParameter("java.naming.security.principal")); env.put(javax.naming.Context.SECURITY_CREDENTIALS, getParameter("java.naming.security.credentials")); AppitUtilities.setEnviroment(env); (AppitUtilities is a singelton which stores the information for later use) snip of code which we uses to collect final StringBuffer homeName = new StringBuffer("com.telenor.mobil.planit."); homeName.append(moduleName.replace('/', '.')); homeName.append(".ejb."); homeName.append(remoteInterfaceName); homeName.append("Home"); if (context == null) { context = new InitialContext(env); } final Object homeObject = context.lookup("java:comp/env/ejb/" + moduleName + "/" + remoteInterfaceName); final Class homeClass = Class.forName(homeName.toString()); final EJBHome home = (EJBHome) PortableRemoteObject.narrow(homeObject, homeClass); return home; } Regards, Torgeir Lerkerd Nett/IT T +47 (227) 84588 M +47 91837430 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 12. februar 2001 20:43 To: Orion-Interest Subject: RE: JNDI Lookup from Applet Hi, The simpel answer is everything. You need the include orion.jar and all it friends. I know this is a pain in the neck as it adds around 3mb to the application and hurts us a lot her. (Thats the one of the reasons why I am sitting her at the moment porting xml files to be valis so the works with sybase EAS 3.6.1. (Orion doesnt validate the ejb-jar.xml's properly so it was a huch task correcting them to spec. (with more that 1200 session and entitybeans its a pain.))) Back to your question her is how I load applets from a jsp page in orion: %@ page errorPage="/misc/errorpage.jsp" % %@ page language="java" import = " java.io.*, java.rmi.RemoteException, java.util.*, java.text.*, javax.naming.*, javax.rmi.PortableRemoteObject, java.net.*, javax.servlet.http.HttpServletRequest " % html head /head body jsp:plugin type="applet" code="com/telenor/mobil/planit/pakka/Pakka.class" codebase="/classes" align="bottom" height="600" width="800" jreversion="1.3" % jsp:params jsp:param name="cache_option" value="Plugin" / jsp:param name="cache_archive" value="sessionbeans.jar,PakkaApplet.jar,exense.jar,planitbeans.jar,ejb.jar,o rion.jar,jndi.jar,objectfx.jar,parser.jar,mail.jar,jaxp.jar,jdbc.jar,VisualN umerics.jar"/ jsp:param name="java.naming.factory.initial" value="com.evermind.server.ApplicationClientInitialContextFactory" / jsp:param name="java.naming.provider.url" value="ormi://nt-osl-8789/appit" / jsp:param name="java.naming.security.principal" value="someone" / jsp:param name="java.naming.security.credentials" value="something" / /jsp:params jsp:fallback This software requiers that you have installed the java plugin for Explorer/Netscape version 1.3. Contact helpdesk at 85150. /jsp:fallback /jsp:plugin /body /html Regards, Torgeir Lerkerd Nett/IT T +47 (227) 84588 M +47 91837430 -Original Message- From: John McManus [mailto:[EMAIL PROTECTED]] Sent: 12. februar 2001 20:11 To: Orion-Interest Subject: JNDI Lookup from Applet Does anyone have a simple example of an Applet doing a JNDI lookup of a bean? We are not using servlets, but a Swing Applet client contacting the beans directly and I'm getting the following exception: javax.xml.parsers.FactoryConfigurationError: com.sun.xml.parser.DocumentBuilderFactoryImpl at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory. java:80) at com.evermind.xml.e.getJavaxDocument(JAX) at com.evermind.xml.XMLUtils.getDocument(JAX) at com.evermind.xml.XMLConfig.ay(JAX) at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext (JAX) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668) at
RE: Does Orion support PNG formatted images
Tim, it wasn't any problem with Orion it was in my building of the war file a wasn't copying the PNG files into the war. My build only looked for GIF or JPG file extensions. Simple build error. Thanks, Joe Knudsen Optical Solutions Network Management Developer Email: [EMAIL PROTECTED] Phone: (763)268-3622 -Original Message- From: Tim Endres [SMTP:[EMAIL PROTECTED]] Sent: Friday, February 09, 2001 12:18 PM To: Knudsen, Joe Subject: RE: Does Orion support PNG formatted images Maybe you could post the fix for the benefit of the archive? tim I found my error it works just fine. Sorry Thanks, Joe Knudsen
OT: Excellent new EJB 2.0 CMP book available
I apologize that this is off topic, but its probably of interest to everyone here. For anyone interestred in EJB 2.0, there is a great book available at: http://www.mvcsoft.com Its included in their persistence manager product. BTW, that persistence manager is a complete implementation of EJB 2.0 PFD, so if you want to get a head start you can. Even if you don't need their code, the included PDF book is worth more than the $28 they ask for it. (No, I don't have anything to do with them... I just think its a great product that everyone can benefit from). Cheers! Jim
RE: Orion
Easy way is to go to a good search engine like www.northernlight.com and look for "EJB Tutorial". -Original Message- From: waheed_rahuman To: Orion-Interest Sent: 2/12/01 7:08 AM Subject: Orion hi all Can anybody send me some ejb tutorials bye then waheed _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Fault Tolerance in orion server's JMS service
Hi, Does anyone has the idea about fault tolerance in Orion application server's JMS service. And how to set it up. 1) One JMS client how to talk to more than two orion application servers' JMS service at the same time. 2) How to setup and register more than two orion server's JMS services in another JNDI server? Thanks, Songbo email: [EMAIL PROTECTED]
Why xsl:include seems to try to find files in /Orion folder and not web-app root?
Hi, When I use the xsl:include.. directive, it appears to look in server root dir, and not the web-app root its deployed in. I am not quite sure if this is something to do with Orion, or if all servers operate in this manner and therefore its an error of the XSLT technology. Or..perhaps its an error of the saxon library I am working with. Just wondering if anyone working with Orion and XSL have seen this problem or not? Thanks.
RE: Why xsl:include seems to try to find files in /Orion folder and not web-app root?
Yes, we had this problem. I think its an XSL thing rather than an Orion thing. We are using Xalan and call XsltInputSource.setSystemId() to set the root directory for transformations -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Duffey, Kevin Sent: Tuesday, 13 February 2001 11:47 AM To: Orion-Interest Subject: Why xsl:include seems to try to find files in /Orion folder and not web-app root? Hi, When I use the xsl:include.. directive, it appears to look in server root dir, and not the web-app root its deployed in. I am not quite sure if this is something to do with Orion, or if all servers operate in this manner and therefore its an error of the XSLT technology. Or..perhaps its an error of the saxon library I am working with. Just wondering if anyone working with Orion and XSL have seen this problem or not? Thanks.
Servlet Chaining?
More random stuff from Orion. I put a statement in my servlet: resp.setContentType("text/html"); All of a sudden I start getting this error: 500 Internal Server Error Failed to initialize chaining servlet for contenttype text/xml () I don't want any chaining, and haven't set any up. How do I prevent Orion from trying to chain this kind of stuff? Thanks, Dan Cramer Chief Architect Dynamic Resolve, LLC Internet Solutions Consulting
Re: Why xsl:include seems to try to find files in /Orion folder and not web-app root?
If you read the xalan source, you will see that this is a problem with xalan. The method that determines the location of the included file is written to be file-system and URL based. If has no concept of calling a method like "getRealPath()" to get a path relative to your webapp. The code is a mess. The xalan folks should rewrite this complicated code to simply call an interface that the programmer provides. Then your interface would be called to locate a file, allowing you to apply the getRealPath() method that you really want it to use. I am not sure if Xalan II addresses this or not. The only way Orion could fix this is to patch the xalan code, which I think would be a very bad idea. The way that we solved the problem was to pre-compile the xsl pages in place in our development tree, which presented XSL with a simple file-system to locate included files. We then load the compiled pages for XSLT processing. This also speeded up processing times. tim. Hi, When I use the xsl:include.. directive, it appears to look in server root dir, and not the web-app root its deployed in. I am not quite sure if this is something to do with Orion, or if all servers operate in this manner and therefore its an error of the XSLT technology. Or..perhaps its an error of the saxon library I am working with. Just wondering if anyone working with Orion and XSL have seen this problem or not? Thanks.
RE: Why xsl:include seems to try to find files in /Orion folder and n ot web-app root?
Orion should just replace Xalan for Saxon anyways... and use TraX instead of a propietary interface to Xalan... Xalan is Apache's excuse for having a XSLT processors, besides being one of the slowest in the crowd... -- Victor -Original Message- From: Tim Endres [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 1:07 AM To: Orion-Interest Cc: Duffey, Kevin Subject: Re: Why xsl:include seems to try to find files in /Orion folder and n ot web-app root? If you read the xalan source, you will see that this is a problem with xalan. The method that determines the location of the included file is written to be file-system and URL based. If has no concept of calling a method like "getRealPath()" to get a path relative to your webapp. The code is a mess. The xalan folks should rewrite this complicated code to simply call an interface that the programmer provides. Then your interface would be called to locate a file, allowing you to apply the getRealPath() method that you really want it to use. I am not sure if Xalan II addresses this or not. The only way Orion could fix this is to patch the xalan code, which I think would be a very bad idea. The way that we solved the problem was to pre-compile the xsl pages in place in our development tree, which presented XSL with a simple file-system to locate included files. We then load the compiled pages for XSLT processing. This also speeded up processing times. tim. Hi, When I use the xsl:include.. directive, it appears to look in server root dir, and not the web-app root its deployed in. I am not quite sure if this is something to do with Orion, or if all servers operate in this manner and therefore its an error of the XSLT technology. Or..perhaps its an error of the saxon library I am working with. Just wondering if anyone working with Orion and XSL have seen this problem or not? Thanks.
RE: Why xsl:include seems to try to find files in /Orion folder and not web-app root?
When you run Orion, are you starting it from /Orion? Try starting it from a different directory, and see if that changes where saxon searches for includes. My guess, is that it's just looking in the working directory by default. Look through the saxon doc's to see if you can set a property to tell it where to search for docs. I remember seeing something similar to this in Xalan. Hope this helps, Dan Cramer -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Duffey, Kevin Sent: Monday, February 12, 2001 5:47 PM To: Orion-Interest Subject: Why xsl:include seems to try to find files in /Orion folder and not web-app root? Hi, When I use the xsl:include.. directive, it appears to look in server root dir, and not the web-app root its deployed in. I am not quite sure if this is something to do with Orion, or if all servers operate in this manner and therefore its an error of the XSLT technology. Or..perhaps its an error of the saxon library I am working with. Just wondering if anyone working with Orion and XSL have seen this problem or not? Thanks.
Re: Displaying image files stored in a database
Hi, I have the same problem with Oracle Database Server 8.1.6 Please send me some information if you have any ideal I would very much appreciate your ideal. Thanks Best regards, Vinh Chu Xuan Software RD Department Vietnam Data Communication Company http://home.vnn.vn/vdc/index_e.html 1E Trung Chinh - Hanoi - Vietnam Paul Kofon wrote: Hi, I'm developing an web-based Employee Directory for my company using Servlets and JSPs. I've got it working all right. My problem is that I'd like to store the image files in a database (presently I'm using Hypersonic) and be able to display them as needed for each employee. However, I haven't been able to that. I worked aroud this problem by storing the images in the file system and entering a path to the required image file as a VARCHAR in the database. Eventhough it solved my problem, it is undesireable because I'd have to manually delete each image file that's no longer required instead of simply deleting a row in the database. I successfully stored each file as a Java object (in this case "File") but I just couldn't think of a way to display it on a web page. I'm sure this is a piece of cake for most of you out there but I just can't figure it out. Any he.lp would do. Thanks. Regards, Paul _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
SV: Installing application.
Are you sure that youreference your application correctly? In your text, you say that you have put your application in the application directory, but the error message looks like you have made a reference (in server.xml) to the path "C:/orion/addressbook2". Is that it? WR -Ursprungligt meddelande-Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Skickat: den 12 februari 2001 08:52Till: Orion-InterestÄmne: Installing application. Hi: I have been trying to install an application using orion and I am having a terrible time of it. With what information I can find I have installed the application in the application direcotry of orion and set the refrence in the server.xml file but I get this error when starting up orion: C:\orionjava -jar orion.jarError instantiating application at file:/C:/orion/addressbook2: Unable to find/read assembly info for C:\orion/addressbook2 (IO error: unable to find addressbook2)Orion/1.3.8 initialized Any ideas? Are there any clear tutorials out there in setting up an application in orion? Thanks, Stefan
SV: Displaying image files stored in a database
Title: SV: Displaying image files stored in a database Did you see the answer given by Mikael Eriksson on this topic? WR -Ursprungligt meddelande- Från: Vinh Chu Xuan [mailto:[EMAIL PROTECTED]] Skickat: den 12 februari 2001 22:32 Till: Orion-Interest Ämne: Re: Displaying image files stored in a database Hi, I have the same problem with Oracle Database Server 8.1.6 Please send me some information if you have any ideal I would very much appreciate your ideal. Thanks Best regards, Vinh Chu Xuan Software RD Department Vietnam Data Communication Company http://home.vnn.vn/vdc/index_e.html 1E Trung Chinh - Hanoi - Vietnam Paul Kofon wrote: Hi, I'm developing an web-based Employee Directory for my company using Servlets and JSPs. I've got it working all right. My problem is that I'd like to store the image files in a database (presently I'm using Hypersonic) and be able to display them as needed for each employee. However, I haven't been able to that. I worked aroud this problem by storing the images in the file system and entering a path to the required image file as a VARCHAR in the database. Eventhough it solved my problem, it is undesireable because I'd have to manually delete each image file that's no longer required instead of simply deleting a row in the database. I successfully stored each file as a Java object (in this case File) but I just couldn't think of a way to display it on a web page. I'm sure this is a piece of cake for most of you out there but I just can't figure it out. Any he.lp would do. Thanks. Regards, Paul __ ___ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Re: Installing application.
Try using relative paths instead. - Original Message - From: [EMAIL PROTECTED] To: Orion-Interest Sent: Monday, February 12, 2001 5:51 PM Subject: Installing application. Hi: I have been trying to install an application using orion and I am having a terrible time of it. With what information I can find I have installed the application in the application direcotry of orion and set the refrence in the server.xml file but I get this error when starting up orion: C:\orionjava -jar orion.jarError instantiating application at file:/C:/orion/addressbook2: Unable to find/read assembly info for C:\orion/addressbook2 (IO error: unable to find addressbook2)Orion/1.3.8 initialized Any ideas? Are there any clear tutorials out there in setting up an application in orion? Thanks, Stefan