Update of FreeBSD port java/orion
Hi all, To all FreeBSD users: The java/orion port has been updated. It now correctly installs a `orionctl' script and a link to this script from /usr/local/etc/rc.d/orion.sh, so that Orion is started at boot time. Any comments and suggestions, or even improvements are welcome. To install the port, make sure your ports collection is up to date (typically maintained using cvsup). The version of the package should be 1.4.5_2. Then do the following as root: # cd /usr/ports/java/orion # make install Sincerely, Ernst -- Ernst de Haan Java Architect Jollem Information Technology Come to me all who are weary and burdened and I will give you rest -- Jesus Christ
Re: Orion Tutorial, Parts 1 and 2
Although I've written my own Orion tutorials for starters, I heartily welcome your contributions! If you like I can give you my XML tutorial format plus an XSLT stylesheet that will convert it to a format similar to the Orion Primer: * http://jollem.com/orion-primer/ Ofcourse I'd welcome new stylesheets as well, I already `uniquely' identified my stylesheet as `Classic' ;) I'd also be happy to host your tutorials at http://jollem.com/. In that case you can have a shell account and CVS access (to the other Orion tutorials too). If you want www.orionsupport.com to host your tutorials, they probably have their own XML format for documents posted there. Thanks again for your contribution! -- Ernst James Halloran wrote: Hello Orion community, I cleaned up the tutorial I posted here a few days ago, and I added a Part 2 that explains connecting to Oracle. The only tools you need to use are javac, jar, and deploytool. You won't need to write any XML files either, aside from adding lines the Orion config files. I hope these guides will be useful for newcomers to Orion, or even J2EE. http://www.4degreez.com/intro_part_1.html http://www.4degreez.com/intro_part_2.html I think everything will work properly, but it's possible that there is a mistake or two in there so let me know if you find any. If someone is able to follow through it and get it to work, I'd love to hear about it. In a few days, I'll see about getting it posted at orionsupport. _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: orion.jar needed for JNDI-lookup??
Hi Stefan, we are running a Swing-application accessing via HTTP/RMI to an EJB-server. To do the JNDI-lookup class "com.evermind.server.ApplicationClientInitialContextFactory" is used as describes in the orion-doc. Do you *need* to downcast to ApplicationClientInitialContextFactory, or can you perhaps use a superclass (InitialContextFactory) ? If so, then you only need the JNDI libraries. -- Ernst
Re: orion.jar needed for JNDI-lookup??
Ok, there is no superclass since InitialContextFactory is an interface which is implemented by ApplicationClientInitialContextFactory directly (so every vendor provides his own InitialContextFactoryClass...) Can you show that part of your code? Perhaps you can do smthng like this: // Perhaps this one is read from a configuration somehow String factoryClassName = "com.evermind.server.ApplicationClientInitialContextFactory"; InitialContextFactory factory; try { Class c = Class.forName(factoryClassName); } catch (Throwable t) { System.err.println("Unable to load initial context factory " + factoryClassName "."); t.printStackTrace(); } It should work like this: when the class is needed it should be loaded by the class loader over the net (this is a basic principle of JNDI: load the "driver" which is needed for current application, if not already installed on the client). Well, perhaps you're referencing the driver from your code, and perhaps you should try loading the class explicitly with the Class.forName() call? HTH, just my $ 0.02. -- Ernst To be more specific with my error: I get an error from the java.net.URLClassLoader which says he(she...?) can't find the specific class (ClassNotFoundException). Did I miss some setup somewhere ... ? Greetings, Stefan ----- Original Message - From: "Ernst de Haan" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Wednesday, February 28, 2001 3:54 PM Subject: Re: orion.jar needed for JNDI-lookup?? Hi Stefan, we are running a Swing-application accessing via HTTP/RMI to an EJB-server. To do the JNDI-lookup class "com.evermind.server.ApplicationClientInitialContextFactory" is used as describes in the orion-doc. Do you *need* to downcast to ApplicationClientInitialContextFactory, or can you perhaps use a superclass (InitialContextFactory) ? If so, then you only need the JNDI libraries. -- Ernst
Re: Good tutorial
Hey, While the Sun tools may be easier to use in the general case of deploying a J2EE application, Ant is a *generic* and extendible build tool, that can be used to perform from the simplest (copy, move, rename, delete files, compile, execute) to the most advanced (deploying complete J2EE applications, performing unit tests, translating source code to formatted HTML, checking Javadoc comments for completeness, etc.) And all of that in a platform-independant manner :) So IMHO comparing deploytool with Ant is a bit odd. -- Ernst Kemp Randy-W18971 wrote: This is a nice tutorial at www.4degreez.com and now that I am used to ant, the sun tools are much easier. And I, for one, and all for making my life easier.
Re: Beginner...
Luis, Try the Orion Primer: * http://www.jollem.com/orion-primer/ And perhaps the Orion CMP Primer after that (there's a link from that page). PS: Shouldn't there be a FAQ for this list? -- Ernst Luis Javier Beltran wrote: Thanks to all for your help, but I think I haven't found what I was looking for... I'm used to JSP and servlets, but I'm new to EJB. I just wanted to start up with a simple JSP, but reading your posts and questions, I see I'm missing something here... I'm a bit lost with this ear, war thing... So now I have to questions: 1) How can I simply test a JSP? 2) Where can I learn to use EJB?? (Urgent!! : ) ) Thanks a lot! Luis Javier
Re: Examples of XML / XSLT
Why would you need Orion if you want to have an introduction to XML and XSL/XSLT ? BTW: I don't know any good tutorials on XSLT. I just used an example XSLT stylesheet, written by Joseph, modified it, analyzed it, etc., until I figured out the idea. Then I used the XSL spec (at http://www.w3.org/ ) to get to the details. -- Ernst [EMAIL PROTECTED] wrote: are there any good / self-containted examples that use orion?
New Orion Primer (2nd try)
The new version of the Orion Primer is in place again. * http://www.jollem.com/orion-primer/ The old version is still available here: * http://www.jollem.com/~ernst/orion-primer_old/ Besides adding the source files that were missing, I've made the following changes since the previous version of the new Orion Primer: * Rearranged the directory structure a bit, moving all XML config files from "src/xml/" to "etc/" * Added a link to the source XML document (tutorial.xml) and to the stylesheet used to convert the document to HTML * Made the HTML document HTML 4.01 compliant (was 4.0) * Added the targets for creating the src archives to the Ant build file Any comments would be appreciated. If I don't get any, then I assume everything works as it should :) -- Ernst
New Orion Primer
A new version of the Orion Primer is available at: * http://www.jollem.com/orion-primer/ This document is a step-by-step tutorial for J2EE newbies. This version is based on an XML source document, an XSLT stylesheet is used to convert the XML source document to HTML. Please check that this document displays correctly in your browser. Future versions of the "Orion CMP Primer" and the "Orion Security Primer" will be based on the same XML structure and XSL stylesheet. Any comments with respect to the look and feel of the new version are also highly appreciated. Last, but not least I would like to thank Magnus Rydin and Joseph Ottinger for helping with the tutorials and stylesheet. -- Ernst
Re: Does OrionServer 1.3.8 work on SCO Unixware?
Hi Ismael, Orion *should* run on any operating system, as long as a working Java 2 implementation is available (J2SE 1.2 or later). Could you try setting JAVA_COMPILER=NONE, make sure that java -version indicates that no JIT is used and then report the exact trace again? Turning off the JIT *may* even solve the problem, but if it won't, then at least it will show more information w.r.t. line numbers. The version number of your JDK indicates you're working with a custom-compiled version of the JDK for your platform. Did you compile it yourself ? Is that version of the JDK considered alpha or beta quality ? -- Ernst Ismael Blesa Part wrote: I am trying to get it working with the installed java virtual machine: java version "1.2.2" Classic VM (build SCO-JDK-1.2.2-001:2000-Feb-17-03:54, green threads, sunwjit) When I try to lauch orion (java -jar orion.jar) it throws the following exception: bash-2.04# java -jar orion.jar java.lang.ClassFormatError: java/net/InetAddress (Code segment has wrong length) at java.lang.ClassLoader.findBootstrapClass(Native Method) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java, Compiled Code) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at com.evermind.net.i6.aqy(JAX, Compiled Code) at com.evermind.net.i6.clinit(JAX) at com.evermind.server.XMLServerConfig.bu(JAX, Compiled Code) at com.evermind.server.http.XMLHttpSiteConfig.bu(JAX, Compiled Code) at com.evermind.xml.XMLConfig.bs(JAX, Compiled Code) at com.evermind.xml.XMLConfig.ay(JAX, Compiled Code) at com.evermind.xml.XMLConfig.ay(JAX, Compiled Code) at com.evermind.server.http.XMLHttpSiteConfig.ay(JAX, Compiled Code) at com.evermind.server.XMLApplicationServerConfig.ali(JAX, Compiled Code) at com.evermind.server.XMLApplicationServerConfig.by(JAX, Compiled Code) at com.evermind.xml.XMLConfig.ay(JAX, Compiled Code) at com.evermind.xml.XMLConfig.ay(JAX, Compiled Code) at com.evermind.server.hc.run(JAX, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) at com.evermind.util.f.run(JAX, Compiled Code) Any idea?? Cheers
Re: New Orion Primer
Since the new primer does not link to the source files, I've linked * http://www.jollem.com/orion-primer/ to the old version of the Orion Primer. The new version, with source files, a modified directory structure and more comments should be available by the end of this week. -- Ernst Ernst de Haan wrote: A new version of the Orion Primer is available at: * http://www.jollem.com/orion-primer/ This document is a step-by-step tutorial for J2EE newbies. This version is based on an XML source document, an XSLT stylesheet is used to convert the XML source document to HTML. Please check that this document displays correctly in your browser. Future versions of the "Orion CMP Primer" and the "Orion Security Primer" will be based on the same XML structure and XSL stylesheet. Any comments with respect to the look and feel of the new version are also highly appreciated. Last, but not least I would like to thank Magnus Rydin and Joseph Ottinger for helping with the tutorials and stylesheet. -- Ernst
Re: SV: Not authorized to view this page
Hi Magnus, Scott, Magnus Rydin wrote: Dont be disapointed at the _product_ because a _tutorial_ lacks some information :) ---8--- I found the problem, it seem that the global-web-application.xml supplied in the tutorial didn't have an entry for html, I added it. Also had to rename index.htm to index.html, a little disapointing to have these hassles considering that were talking about a comercial product. Do you consider these bugs in the tutorial? If so, then please report them to the author (me), include some more details, and I will investigate them. As the Orion CMP Primer works for (virtually) everyone, and since I've had some other things on my mind lately, I didn't check the last 5 or so emails with remarks about the primers. Please send your remarks and I will look into the issues. -- Ernst -Original Message- From: Magnus Rydin [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 6:24 PM To: Orion-Interest Subject: SV: Not authorized to view this page Are the pages protected? Have you added a entry to your principals.xml for the app? What version of Orion are you running? More information needed. WR -Ursprungligt meddelande- Frn: Adamson, Scott [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Skickat: den 14 februari 2001 16:05 Till: Orion-Interest mne: Not authorized to view this page I get the message 'Not authorized to view this page' when trying to run the addressbook example from the CMP primer. I believe Orion is working correctly as I can run the orion-primer example. Any help much appreciated. Come on !! Someone must have had a similar problem, I'm running Orion on Win NT workstation trying to access the pge from the same machine, how can I not have access to something on my own machine ?? I've tried loging in as admin (normal account should have admin rights anyway !) no difference. If any Orion support people monitor this list please help as I'm evaluating Orion with the view to deploying it within a 10 server cluster ($$$). regards, Scott.
Re: Where are the perfumes bubble bath beads
And I heard that IBM doesn't provide support for WebsPhear if your box doesn't have at *least* 1 GB of internal memory (!) Can anyone confirm that ? And if so, what would they need 1 GB for ? Static caches or so I guess. *BIG* static caches. (Not that I wouldn't like to have a good reason to upgrade my workstation from the lousy 384 MB it's having now ;-P ) -- Ernst Kemp Randy-W18971 wrote: Here is a mystery I need help with. If all JSP engines and EJB servers are approximately equal, then what explains the size differences in the following examples? Latest production Orion - 10 MG Latest production Resin - 12.8 MG Latest productions Jboss/Tomcat - 23.3 Mg Latest production Unify Ewave Engine - 18.1 MG Latest production Iplanet 6.1 - Approximately 1 Gig Latest Productions Oracle 9I AS - Approximately 1 Gig In a past commercial for Motel 6, they talk about not having any perfumed bubble bath beads, like the higher priced hotels. So I ask these questions. What could possible take up 1 gig, when all JSP engines and EJB servers are supposed to have similar or identical functionality? Out of curiosity, how much space does Weblogic take up? Where are the perfumed bubble bath beads in the 1 gig space?
Re: SV: Not authorized to view this page
Hi, I would like to express my happiness wrt the fact that Orion is 100% pure Java code (not the TM-version of that term, perhaps) so it runs on my FreeBSD box too, with different JDKs (including FreeBSD JDK 1.2.2b10, Sun Linux JDK 1.3.0/1.3.0_01, Blackdown JDK 1.2, etc.) Actually we plan bringing our J2EE application server online in a few months on a FreeBSD box. It may not have the best Java implementation available, but we've run our prototypes on it for months, without any problems (no crashes whatsoever). Thanks guys! (hail hail!) ;) -- Ernst Tim Endres wrote: Orion's performance relative to other J2EE products is debatable, but I believe it is at the very top, if not the fastest. In addition, Orion is pure Java, so it is very portable (I actually develop on my Win98 laptop). I wanted to follow up and expound on this last parenthetical comment. I can't say enough about being able to run our entire application on a single Win98 box! It means that we can setup a demo on a portable PC, and have a marketing person show up at a meeting and run a full demo from that portable. We do not need an internet connection, nor a $10,000 machine. Also, this means that developers can take work home with them, and not worry about their connection to the office. It also means that developers can work complete independent of each other, without stepping on eachother with every little change to the deployment. If Orion were used only for development and demos, and your application was then deployed on a different app server, I think it is worth the $1500! tim.
Re: Where are the perfumes bubble bath beads
And I heard that IBM doesn't provide support for WebsPhear if your box doesn't have at *least* 1 GB of internal memory (!) Can anyone confirm that ? And if so, what would they need 1 GB for ? Static caches or so I guess. *BIG* static caches. (Not that I wouldn't like to have a good reason to upgrade my workstation from the lousy 384 MB it's having now ;-P ) -- Ernst Kemp Randy-W18971 wrote: Here is a mystery I need help with. If all JSP engines and EJB servers are approximately equal, then what explains the size differences in the following examples? Latest production Orion - 10 MG Latest production Resin - 12.8 MG Latest productions Jboss/Tomcat - 23.3 Mg Latest production Unify Ewave Engine - 18.1 MG Latest production Iplanet 6.1 - Approximately 1 Gig Latest Productions Oracle 9I AS - Approximately 1 Gig In a past commercial for Motel 6, they talk about not having any perfumed bubble bath beads, like the higher priced hotels. So I ask these questions. What could possible take up 1 gig, when all JSP engines and EJB servers are supposed to have similar or identical functionality? Out of curiosity, how much space does Weblogic take up? Where are the perfumed bubble bath beads in the 1 gig space?
Re: SV: Not authorized to view this page
Hi, I would like to express my happiness wrt the fact that Orion is 100% pure Java code (not the TM-version of that term, perhaps) so it runs on my FreeBSD box too, with different JDKs (including FreeBSD JDK 1.2.2b10, Sun Linux JDK 1.3.0/1.3.0_01, Blackdown JDK 1.2, etc.) Actually we plan bringing our J2EE application server online in a few months on a FreeBSD box. It may not have the best Java implementation available, but we've run our prototypes on it for months, without any problems (no crashes whatsoever). Thanks guys! (hail hail!) ;) -- Ernst Tim Endres wrote: Orion's performance relative to other J2EE products is debatable, but I believe it is at the very top, if not the fastest. In addition, Orion is pure Java, so it is very portable (I actually develop on my Win98 laptop). I wanted to follow up and expound on this last parenthetical comment. I can't say enough about being able to run our entire application on a single Win98 box! It means that we can setup a demo on a portable PC, and have a marketing person show up at a meeting and run a full demo from that portable. We do not need an internet connection, nor a $10,000 machine. Also, this means that developers can take work home with them, and not worry about their connection to the office. It also means that developers can work complete independent of each other, without stepping on eachother with every little change to the deployment. If Orion were used only for development and demos, and your application was then deployed on a different app server, I think it is worth the $1500! tim.
Re: www.jollem.com primers
Hi Stan, If you could mirror jollem.com then that would be great. I assume you have automated mirroring software installed? I run FreeBSD on the www.jollem.com server, if you need to run any software on it, let me know. -- Ernst Stan Ng wrote: I only have orionsupport mirrored right now, but I'd be glad to mirror the primers as well if jollem is willing... - Original Message - From: "Chad Stansbury" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Monday, January 22, 2001 8:51 AM Subject: www.jollem.com primers Hello, I have been trying to access the primers on www.jollem.com, but have been unable to connect to the site for the past 4 hours... Does anyone mirror the information on this site, or is anyone able to email me the orion and orion CMP primers they might have copied locally? Thanks in advance, Chad Stansbury
Re: orion generates extra lines in the returned result
Hi Thomas, The extra white line is in your JSP page. If you want to get rid of it, replace something like this: % blah blah blah % HTML with: % blah blah blah %HTML this will give you one less line break. -- Ernst Thomas Kwan wrote: Anyone knows how to get rid of the extra lines in HTML pages that are generated from Orion server? I am using jsp to dynamically return a file to the browser. The file somehow has 30-something empty lines in the begining. And I remember seeing this behaviour in the HTML pages also. thanks thomas
Re: Orion on unix systems
Hi Derek, Sure it can. Check out the FAQ on orionserver.com. I'm running Orion on FreeBSD myself. BTW: You should make your question more specific. What HPUX version (10, 11, etc) are you referring to, and what JRE/JDK did you have in mind (if any)? -- Ernst Derek Akers wrote: Question: can orion run on HPUX?
Re: FreeBSD port for Orion
Hi all, The FreeBSD port for Orion has been committed and is available in the current version of the source tree. Just make sure your ports tree is up to date (execute "cvsup /etc/cvsupfile" or something) and then: # cd /usr/ports/java/orion/ # make install orion1.4.0.zip doesn't seem to exist in /usr/ports/distfiles/. Attempting to fetch from ftp://ftp.sunet.se/pub/database/utils/orionserver/. Receiving orion1.4.0.zip (4878028 bytes): 100% 4878028 bytes transferred in 255.0 seconds (18.68 kBps) === Extracting for orion-1.4.0 Checksum OK for orion1.4.0.zip. === orion-1.4.0 depends on executable: unzip - found === Patching for orion-1.4.0 === Configuring for orion-1.4.0 === Installing for orion-1.4.0 === orion-1.4.0 depends on file: /usr/local/jdk1.2.2/bin/java - found === Generating temporary packing list === Registering installation for orion-1.4.0 # That's all there is to it B-) Now Orion 1.4.0 is installed in /usr/local/orion1.4.0/. You may want to check out the additional suggestions presented at http://www.orionsupport.com/. -- Ernst Ernst de Haan wrote: Hi to all fellow FreeBSD users on o-i, At the moment I am working on a port for Orion, and it is in beta stage. If anyone would like to comment on it, just poke it, and let me know. There's a tgz available at either of the following locations: * http://www.znerd.demon.nl/orion-port.tgz * http://www.jollem.com/~ernst/orion-port.tgz Or you can browse the files from either of these locations: * http://www.znerd.demon.nl/orion-port/ * http://www.jollem.com/~ernst/orion-port/ Any and all comments are welcome! To test this port thorougly, follow the procedure described at: * http://www.freebsd.org/porters-handbook/porting-testing.html Note that I tested this port with portlint, available from the devel/portlint port. Note for non-FreeBSD users: This will enable FreeBSD users to install and deinstall Orion in a very easy way. To install: # cd /usr/ports/java/orion/ make install And to deinstall: # cd /usr/ports/java/orion make deinstall Ernst
Re: Offtopic:Ant Build scripts
Aniket, I suggest you try the Orion Primer: * http://www.jollem.com/orion-primer/ Ernst Aniket V U wrote: Hi folks, can somebody please send me a sample ANT build file for making ears for orion. Thanks Aniket
Re: FreeBSD port for Orion
Anyway, I submitted a Problem Report, the status can be seen here: * http://www.freebsd.org/cgi/query-pr.cgi?pr=23867 Ernst Justen Stepka wrote: I'm on the list, I've just been busy with my book! Justen Stepka On Sat, 23 Dec 2000, Ernst de Haan wrote: Hey jstepka! Well, I more or less finished it. It is working, and I have some contacts in the Java/FreeBSD community. But if you have any improvements, suggestions, ideas, etc, please let me know! :) Oh, and join the freebsd-java mailing list, too! :) Ernst Justen Stepka wrote: Are you looking for any help on this port? I've been working on an internal copy and have yet to show anyone outside of my office. Justen Stepka On Sat, 23 Dec 2000, Ernst de Haan wrote: Hi to all fellow FreeBSD users on o-i, At the moment I am working on a port for Orion, and it is in beta stage. If anyone would like to comment on it, just poke it, and let me know. There's a tgz available at either of the following locations: * http://www.znerd.demon.nl/orion-port.tgz * http://www.jollem.com/~ernst/orion-port.tgz Or you can browse the files from either of these locations: * http://www.znerd.demon.nl/orion-port/ * http://www.jollem.com/~ernst/orion-port/ Any and all comments are welcome! To test this port thorougly, follow the procedure described at: * http://www.freebsd.org/porters-handbook/porting-testing.html Note that I tested this port with portlint, available from the devel/portlint port. Note for non-FreeBSD users: This will enable FreeBSD users to install and deinstall Orion in a very easy way. To install: # cd /usr/ports/java/orion/ make install And to deinstall: # cd /usr/ports/java/orion make deinstall Ernst
FreeBSD port for Orion
Hi to all fellow FreeBSD users on o-i, At the moment I am working on a port for Orion, and it is in beta stage. If anyone would like to comment on it, just poke it, and let me know. There's a tgz available at either of the following locations: * http://www.znerd.demon.nl/orion-port.tgz * http://www.jollem.com/~ernst/orion-port.tgz Or you can browse the files from either of these locations: * http://www.znerd.demon.nl/orion-port/ * http://www.jollem.com/~ernst/orion-port/ Any and all comments are welcome! To test this port thorougly, follow the procedure described at: * http://www.freebsd.org/porters-handbook/porting-testing.html Note that I tested this port with portlint, available from the devel/portlint port. Note for non-FreeBSD users: This will enable FreeBSD users to install and deinstall Orion in a very easy way. To install: # cd /usr/ports/java/orion/ make install And to deinstall: # cd /usr/ports/java/orion make deinstall Ernst
Re: Anyone heard from evermind?
Kemp, I suggest you better buy a few spare licenses, just in case! And who knows, perhaps you'll be able to seel them with profit later on! ;-) Ernst Kemp Randy-W18971 wrote: I hope the new company continues to keep the price of Orion reasonable, as the current price of $1500 is great. -Original Message- From: Faisal Khan [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 07, 2000 8:16 AM To: Orion-Interest Subject: RE: Anyone heard from evermind? I wish best of luck and great success to guys at Ironflare AB. You have done a great job giving us Orionserver now keep it up. :) Faisal Khan. www.stardeveloper.com
Re: Primary Key problem
Hi Amir, Have you added this to the Bugzilla bug database ? This way you will get the attention of the Orion development team and you (and the rest of us) will be able to track the status. :) Ernst Amir Peivandi wrote: Hi, I had a problem and it took me about five hours to find and fix it. I though it could be useful for everybody to know and maybe it's a bug in Orion. When you have a CMP Entity bean which maps to a table with a certain condition as I explain here, the remove method fails with a message which says the object is being used and is locked by another active connection. This happens when you have a table with one, two or more fields and the primary key is a multi field key, consist of all the fields in the table. It also happens when there is only one field in the table which is the primary key. To resolve this issue you need to add at least a field to the table which is not part of the primary key! I'm using SQL server with ODBC/JDBC connection. Regards, Amir
Re: LDAP
Hi David, You can use JNDI to access an LDAP server. See the documentation for JNDI: * http://java.sun.com/products/jndi/ Or specifically the LDAP service provider: * http://java.sun.com/products/jndi/#download I assume this is what you are really looking for. And Orion fully supports the JNDI standard. Ernst David Sierra Fernandez wrote: Hi all, I know that a ejb can make a request to an URL, send an e-mail, and manage other actions defined in methods of its superclasses. I want to know if it is possible to make a request to another port different to http port or STMP port?. I would like to make a request to port 389 (ILS). This port is the default port in almost all LDAP servers. If it is not possible, I will have to use ASP. Any ideas would be appreciated. TIA - David Sierra Fern ndez Ingeniero Tecnico de Telecomunicaci¢n PARQUE TECNOLOGICO DE BOECILLO (CEDETEL) AULA RETECAL (CEDETEL) Universidad de Valladolid Campus Miguel Delibes E-Mail: [EMAIL PROTECTED] 47011 Valladolid (SPAIN) -- -- Sierr@ --
Orion CMP Primer
There is a follow-up for the Orion Primer available. It shows you how to write and deploy a simple CMP entity bean, as there have been several requests for such a document. * Orion CMP Primer http://www.jollem.com/ Thanks to the Orion development team for providing such a great J2EE application server :) Any and all feedback is welcome at [EMAIL PROTECTED] Ernst
Re: How to use EJB2.0 on Orion
Hi `sb', S.Badrinarayanan wrote: I am intersted in 2 points mentioned below: 1. How do I get the 1.3.8 version; their server (www.orionserver.com) shows only 1.2.9 as the latest. Try autoupdating your version (java -jar autoupdate.jar). 2. Where can I find this document on "Ernst de Haan's approach"? You can find the Orion Primer, a simple introduction to Orion at: http://www.jollem.com/orion-primer/ Ernst Any help... Thanks sb On Thu, 21 September 2000, Magnus Rydin wrote: Hopefully, the future documentation that will look at one piece at the time, will make this application more usefull. The way it is right now, is more for advanced users to find an example of a certain functionality. It will continue to include as many functions as possible, but it will be given a documentation to make life easier for ppl. WR -Original Message- From: Joseph B. Ottinger [mailto:[EMAIL PROTECTED]] Sent: den 21 september 2000 05:21 To: Orion-Interest Subject: Re: How to use EJB2.0 on Orion Yeah, I know - and the example apps are good, but they're more than I'd like. (Incidentally, the ATM has been EJB 2.0 for a while now.) I like Ernst de Haan's approach - he covers one area and tries not to dress it too much. "Here I'll cover creating a simple app." "Here I'll create a CMP bean and use it." The ATM is good, but it does *everything* - which makes learning individual elements more difficult than it could be if you had, for example, an OR-mapping application or a security model application. On Wed, 20 Sep 2000, Vimal Kansal wrote: I jsu upgraded to Orion 1.3.8. And guess what ? :- it has the EJB2.0 based ATM application :-) Vimal --- "Joseph B. Ottinger" [EMAIL PROTECTED] wrote: Don't forget that EJB 2.0 isn't a standard yet. It's a draft. Personally, I'm mucking about with it a bit, and the parts I'm most interested in - the OR mapping - I've not really covered, so I'm in the same boat of wanting more information, but let's be real about it. It's not there unless we generate it ourselves; we can't expect the Orion team to do everything for us (we *are* developers, right?) so instead of griping about it, read the draft. Play with it. Try things out. Tell others about it, so we can ALL learn. (If I see stuff on it that I think is useful, as soon as the infrastructure is done for the new orionsupport, I'll put it online.) On Wed, 20 Sep 2000, Christian Sell wrote: I have been sending this mail for quite some time but to no avail. well, maybe there IS no avail. Not many of us have done EJB 2.0 yet, and as far as the orion core team goes, I hope (!!) they are busy writing documentation for the basic stuff (and improving orion in their spare time). regards --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer Chequemail.com - a free web based e-mail service that also pays!!! http://www.chequemail.com
Re: guest, prinicipals.xml, and security roles
This message was not intended to be sent to the mailing list :-/ Ernst de Haan wrote: Hi Jeff, I intend to write a document about Orions security model. If it's okay with I will contact you sometime soon. I will attempt to address the issues you presented too. Ernst -- http://www.jollem.com/orion-primer/ http://www.jollem.com/orion-cmp-primer/ Jeff Schnitzer wrote: Hi folks. I'm struggling with Orion's security model in an attempt to get my first entity bean working. It seems that no matter what configuration setting I tweak, I cannot successfully call a method on my bean's home interface. I always receive the exception: com.evermind.server.rmi.OrionRemoteException: guest is not allowed to call this EJB method, check your security settings (method-permission in ejb-jar.xml and security-role-mapping in orion-application.xml). The funny thing is that this is just about as vanilla a case as you can imagine. I'm calling the bean from a servlet, and I desire no authentication whatsoever. I want merely to anonymously call a method on the home interface. Here are a couple questions to which the answers might provide me much enlightenment: * Who is this "guest" person? In the default master principals.xml, there is a user called "anonymous" whose description implies that this will be the user automatically assigned to any unauthenticated user. Should that be "guest" so that I can assign a group (and thus a security-role-mapping) to the unauthenticated user? Is the name special, or is there some other flag that I can't see? I've tried adding a user with the name "guest", etc. Nothing I have tried works. * What is the relationship between the master principals.xml in the config directory and the principals.xml in the application deployment directory? I know the deployment orion-application.xml file points to the deployment principals.xml, but does this override or supplement the master config? Does it make sense to change the principals in the orion-application.xml to point to the master config, or is that redundant? * What does the namespace-access block do in the orion-application.xml file? * Do I have the basic concept right? 1) a user derives their name from authentication, or if there is no authentication, they are assigned some name (presumably "guest") by default. 2) the "user" belongs to one or more groups, defined by one (or both?) of the principals.xml files. 3) the groups are mapped to security roles in the deployment orion-application.xml file using security-role-mapping tags. 4) the security roles are mapped to actual bean method permissions in the bean's deployment descriptor. Somewhere this chain is broken for me, and I'm at a loss to figure out where. If it matters, the bean is an EJB 2.0 entity bean. The deployment descriptor defines a security role "users" which has wildcard(*) permission to the bean. The ear file's application.xml also defines this role. The default deployment orion-application.xml has the security-role-mapping of role "users" to group "users". The master principals.xml has both "anonymous" and "guest" as users which belong to the "users" group. Both the atm and news demos work fine. I presume it is because they explicitly authenticate somewhere in code, but I haven't been able to figure out how or why. Help? :-) Thanks, Jeff Schnitzer [EMAIL PROTECTED]
Re: Orion Primer
Al all, Al Fogleson wrote: OK weird question here, since I worked this problem and found that orion is placing the binding in the / heirarchy and not the java:comp/env heirarchy, is there any reason for that??? Maybe I am lost but isnt the java:comp/env/ejb heirarchy where they should go? (although I vaguely recall that in 1.1 it is not required to be placed there, it seems like every other app server I have used puts them there. I had to resort to using forte and its JNDI browser to find the hello bean that Ernst has made. once I found that it was a simple matter of changing his "java:comp/ejb/hello" call to a "hello.ejb.Hello" and it was found easily. Thanks for pointing this out. I tried to lookup entries under java:comp/env, but I could not find anything there. Magnus pointed out that there needs to be a reference in the web.xml to the bean used. So I added in the web.xml the following: ejb-ref ejb-ref-nameejb/hello/ejb-ref-name ejb-ref-typeSession/ejb-ref-type homehello.ejb.HelloHome/home remotehello.ejb.Hello/remote /ejb-ref According to section 7.3.1.1 in `Designing Enterprise Application with the Java 2 Platform, Enterprise Edition', that should do the trick. But it doesn't. I think this piece of XML should allow me to do the lookup as `java:comp/env/ejb/hello', can anybody point out where I go wrong? Is there a way to see what Orion thinks of a deployment descriptor? Some secret --verbose option, perhaps? I would like to see what it places in JNDI contexts. Probably something for Magnus or Karl to aqnswer for me. :) maybe i am just totally confused after evaluating so many servers. Thanks again, (P)Al :) Ernst
Re: Orion Primer
Christian, now, to me this discussion looks like there is a real problem. We have a complex product (full J2EE as opposed to JSP/servlet engines you get elsewhere), which is NOT open source sic and therefore comes without sourcecode. The documentation is rudimentary and so is the error logging (I remember getting my Jserv installation up and running mostly by looking at the logs). Yes, well, on one hand I think you have a point. Since Orion is not open-source, logging, documentation and support are very important. But on the other hand Orion is the best implementation of the latest and greatest standards I have seen so far. Ernst
False bug alarm [ was: Bug of RC2? - About Javac instantiating ]
Dear Jen, Please read what the message says, it's quite verbose :) This is not a bug, this is a feature. :) Ernst Jen Hsien Huang wrote: I have try the newest orion, but Javac seem can't work, under the same configuration, it works fine. So, this should be a bug Orion/1.0rc2 initialized Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a library path="the/path/to/tools.jar " / and restart
Re: orion webapp install???
Hi Christian, Perhaps you will find the Orion Primer useful. It shows you how to write, compile and deploy a simple EJB and servlet. If you find you do or don't like it, please let me know :) * Orion Primer http://www.znerd.demon.nl/ Ernst Christian Sell wrote: please, where are some consistent step-by step docs about how to install web applications in orion? I have sucessfully installed and run JServ, Tomcat, Enhydra, apache-httpd, IIS and others, but I cannot figure out how to get a JSP example running in Orion. the log data is of no help either
Re: Orion Primer
Hi Jason and other members of Orion-Interest, Is there anyone here that can help debug this persistent problem with Orion? I have set up a simple recipe for Orion newbies (including myself), and although everything looks fine, the servlet that should be created to handle requests cannot be instantiated, and Orion does not provide much information on what the problem might be. IMHO a simple step-by-step guide is very important for the success of Orion. Any help would be greatly appreciated. * Orion Primer http://www.znerd.demon.nl/orion-primer/ Jason wrote: I've followed the instructions and deleted/recreated everything 3 times. I keep getting to the point where I type in (step 12 second part): http://localhost:8080/orion-primer And just get a: "Document contained no data" Jason, first I suggest you upgrade to the latest version of Orion. There are multiple ways of doing that: * Download the orion-1.0rc1.zip but replace `rc1' with `rc2' * Auto-update using the command: java -jar autoupdate.jar * Replace your orion.jar with http://www.orionserver.com/orion/orion.jar Perhaps you should do a combination of the above. [ Question to the Orion team: What exactly is the recommended way to upgrade to the ever-changing `latest' version? :) ] Then concerning the problem you have: I had the same problem. So I upgraded using the rc2 download. Autodeployment went just fine. But when I pointed my browser to http://localhost:9092/orion-primer/ I got an exception that said there was an error instantiating the servlet. There was no extra information that allowed me to track the source of the problem. So I contacted Magic_EMC (Magnus Stenman) on the channel #orionserver or #java on EFnet (an IRC chat network). He said he would change the code so the complete stack trace would be printed in the log file (orion/application-deployments/orion-primer/application.log) But I had no luck autoupdating from my rc2.zip yet, so I haven't been able to check that the information now prints out. I currently get the following information printed in the application log file: 5/25/00 5:18 PM Started 5/25/00 5:20 PM orion-primer-web: Started 5/25/00 5:20 PM orion-primer-web: Servlet error javax.servlet.ServletException: Error instantiating default servlet 'hello.web.HelloServlet' at com.evermind.server.http.HttpApplication.rz(JAX, Compiled Code) at com.evermind.server.http.HttpApplication.qz(JAX, Compiled Code) at com.evermind.server.http.dk.o7(JAX) at com.evermind.util.e.run(JAX, Compiled Code) Any help would be greatly appreciated! Ernst From netscape? I notice after building the packages with ant, the orion terminal says: Auto-deploying orion-primer... Auto-deploying orion-primer-ejb.jar... done. Auto-deploying /usr/share/orion/default-web-app... Orion/1.0rc1 initialized Then just after hitting localhost:8080/orion-primer in netscape I see in the orion terminal window: Auto-deploying Orion Primer Web Application But nothing happens?? Any hints (I've been trying for 3 days to get the orion-primer up and running)?? I'm to my limits and am about to give up on the Orion server and try another one... any help would be appreciated! -Thanks, Jason PS: Do I need a jndi.properties and if I do, where does it go and what should be in it? Ernst de Haan wrote: Jason, I really want to thank you for writing the Orion Primer! There is NO documentation with the Orion Server, and this was needed... I found 2 subtle types: Now that should be `typos' I think, so it's 2-1 for you now :) Thank you very much for providing feedback, it really is invaluable to me! In step 6 save application.xml to orion-primer, not orion-server In step 7 save ejb-jar.xml to orion-primer/src/xml/ejb, not to orion-primer/xml/ejb Changed this. You should see revision 2.9 online now. And my final queston: After I started the orion server (step 12), it loaded/deployed everything correctly, but what now? I figure I'm supposed to type in the URL to the Hello servlet, but I can't figure out what that URL is! Could you please help out? See the new online version :) -Thanks Thanks again, Jason! Ernst
Re: Orion Primer
Hi all, Okay, Magnus Stenman helped me out with this problem. The problem was that the servlet was in the wrong directory in the .war file. It was located under the root directory while it should have been under the directory WEB-INF/classes in the .war. So next challenge is getting the servlet to find the EJB Home. I spent quite some time on this. If anyone is feeling enlightened, please look into this and let us know. The updated files are online again: * Orion Primer http://www.znerd.demon.nl/orion-primer/ Ernst Ernst de Haan wrote: Hi Jason and other members of Orion-Interest, Is there anyone here that can help debug this persistent problem with Orion? I have set up a simple recipe for Orion newbies (including myself), and although everything looks fine, the servlet that should be created to handle requests cannot be instantiated, and Orion does not provide much information on what the problem might be. IMHO a simple step-by-step guide is very important for the success of Orion. Any help would be greatly appreciated. * Orion Primer http://www.znerd.demon.nl/orion-primer/ Jason wrote: I've followed the instructions and deleted/recreated everything 3 times. I keep getting to the point where I type in (step 12 second part): http://localhost:8080/orion-primer And just get a: "Document contained no data" Jason, first I suggest you upgrade to the latest version of Orion. There are multiple ways of doing that: * Download the orion-1.0rc1.zip but replace `rc1' with `rc2' * Auto-update using the command: java -jar autoupdate.jar * Replace your orion.jar with http://www.orionserver.com/orion/orion.jar Perhaps you should do a combination of the above. [ Question to the Orion team: What exactly is the recommended way to upgrade to the ever-changing `latest' version? :) ] Then concerning the problem you have: I had the same problem. So I upgraded using the rc2 download. Autodeployment went just fine. But when I pointed my browser to http://localhost:9092/orion-primer/ I got an exception that said there was an error instantiating the servlet. There was no extra information that allowed me to track the source of the problem. So I contacted Magic_EMC (Magnus Stenman) on the channel #orionserver or #java on EFnet (an IRC chat network). He said he would change the code so the complete stack trace would be printed in the log file (orion/application-deployments/orion-primer/application.log) But I had no luck autoupdating from my rc2.zip yet, so I haven't been able to check that the information now prints out. I currently get the following information printed in the application log file: 5/25/00 5:18 PM Started 5/25/00 5:20 PM orion-primer-web: Started 5/25/00 5:20 PM orion-primer-web: Servlet error javax.servlet.ServletException: Error instantiating default servlet 'hello.web.HelloServlet' at com.evermind.server.http.HttpApplication.rz(JAX, Compiled Code) at com.evermind.server.http.HttpApplication.qz(JAX, Compiled Code) at com.evermind.server.http.dk.o7(JAX) at com.evermind.util.e.run(JAX, Compiled Code) Any help would be greatly appreciated! Ernst From netscape? I notice after building the packages with ant, the orion terminal says: Auto-deploying orion-primer... Auto-deploying orion-primer-ejb.jar... done. Auto-deploying /usr/share/orion/default-web-app... Orion/1.0rc1 initialized Then just after hitting localhost:8080/orion-primer in netscape I see in the orion terminal window: Auto-deploying Orion Primer Web Application But nothing happens?? Any hints (I've been trying for 3 days to get the orion-primer up and running)?? I'm to my limits and am about to give up on the Orion server and try another one... any help would be appreciated! -Thanks, Jason PS: Do I need a jndi.properties and if I do, where does it go and what should be in it? Ernst de Haan wrote: Jason, I really want to thank you for writing the Orion Primer! There is NO documentation with the Orion Server, and this was needed... I found 2 subtle types: Now that should be `typos' I think, so it's 2-1 for you now :) Thank you very much for providing feedback, it really is invaluable to me! In step 6 save application.xml to orion-primer, not orion-server In step 7 save ejb-jar.xml to orion-primer/src/xml/ejb, not to orion-primer/xml/ejb Changed this. You should see revision 2.9 online now. And my final queston: After I started the orion server (step 12), it loaded/deployed everything correctly, but what now? I figure I'm supposed to type in the URL to the Hello servlet, but I can't figure out what that URL is! Could you please help out? See the new online version :) -Thanks Thanks again, Jason! Ernst
Re: JMS access exception
You probably need to change the JNDI properties, and specify the security credentials there. I'm not sure where they are in Orion, however. I have been searching for those myself /:( Ernst Pedro Garcia Lopez wrote: Hi, I have tested several JMS examples in Orion and all works fine. My only problem is that I must always use the admin user. If I log as another user this exception occcurs: Any idea ? -- I am looking for an specific permission in principals.xml but I only found the Administration permission-- Thank you in advance. D:\apps\orion\demo\jms\jmspubjava -classpath ../../../orion.jar;. examples.jms. topic.TopicSend Exception in thread "main" java.lang.SecurityException: Not allowed to look up j ava:comp/ResourceFinder at com.evermind.server.rmi.a6.es(JAX) at com.evermind.server.rmi.RMIServer.es(JAX, Compiled Code) at com.evermind.server.rmi.RMIContext.lookup(JAX) at com.evermind.server.administration.LazyResourceFinder.es(JAX) at com.evermind.server.administration.LazyResourceFinder.getLocation(JAX ) at com.evermind.server.Application.ahs(JAX, Compiled Code) at com.evermind.server.ApplicationClientInitialContextFactory.getInitial Context(JAX) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6 72) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250 ) at javax.naming.InitialContext.init(InitialContext.java:226) at javax.naming.InitialContext.init(InitialContext.java:182) at examples.jms.topic.TopicSend.main(TopicSend.java:77) -- Ernst de Haan Freelance Java Architect "Come to me all who are weary and burdened, and I will give you rest" -- Jesus Christ begin:vcard n:de Haan;Ernst tel;fax:+31 (0)26 3645634 tel;work:+31 (0)26 3623895 x-mozilla-html:FALSE url:http://www.znerd.demon.nl/ org:Jollem adr:;;Rozendaalselaan 35;Velp;GLD;6881 KZ;Netherlands version:2.1 email;internet:[EMAIL PROTECTED] title:Java Architect fn:Ernst de Haan end:vcard
Re: What's rc2?
Autoupdate and you will have the same. It's not the `official' RC2 yet, I believe. java -jar autoupdate.jar Ernst KirkYarina wrote: Another post has an interesting line: Orion/1.0rc2 initialized This doesn't seem to be mentioned on www.orionserver.com. -- Ernst de Haan Freelance Java Architect "Come to me all who are weary and burdened, and I will give you rest" -- Jesus Christ begin:vcard n:de Haan;Ernst tel;fax:+31 (0)26 3645634 tel;work:+31 (0)26 3623895 x-mozilla-html:FALSE url:http://www.znerd.demon.nl/ org:Jollem adr:;;Rozendaalselaan 35;Velp;GLD;6881 KZ;Netherlands version:2.1 email;internet:[EMAIL PROTECTED] title:Java Architect fn:Ernst de Haan end:vcard
EFnet channel #orionserver is open
Hi, For Orion-specific discussions, join #orionserver on EFnet if you have IRC. You are welcome :) Ernst (zNerd) -- Ernst de Haan Freelance Java Architect "Come to me all who are weary and burdened, and I will give you rest" -- Jesus Christ begin:vcard n:de Haan;Ernst tel;fax:+31 (0)26 3645634 tel;work:+31 (0)26 3623895 x-mozilla-html:FALSE url:http://www.znerd.demon.nl/ org:Jollem adr:;;Rozendaalselaan 35;Velp;GLD;6881 KZ;Netherlands version:2.1 email;internet:[EMAIL PROTECTED] title:Java Architect fn:Ernst de Haan end:vcard
Ant build files
Would anyone be so kind to show/send me some build files that generate a .ear file, containing all the necessary META-INF directories, XML files, .jar files, .war files, etc. ? Perhaps we can develop a single build.xml file for use in most J2EE projects. Ernst -- Ernst de Haan Freelance Java Architect "Come to me all who are weary and burdened, and I will give you rest" -- Jesus Christ begin:vcard n:de Haan;Ernst tel;fax:+31 (0)26 3645634 tel;work:+31 (0)26 3623895 x-mozilla-html:FALSE url:http://www.znerd.demon.nl/ org:Jollem adr:;;Rozendaalselaan 35;Velp;GLD;6881 KZ;Netherlands version:2.1 email;internet:[EMAIL PROTECTED] title:Java Architect fn:Ernst de Haan end:vcard
Orion Primer: Very simple scenario, all the steps
Hi, I'm currently writing an Orion Primer, for myself and others, since I would like to have a small reference on what steps are involved in writing and deploying beans with Orion. I think this could be very useful for others too. Any help would be appreciated. The development of interfaces, bean classes, primary key classes, servlets and so on, is no problem for me. What I *am* struggling with is the deployment. I have done deployment with serialized descriptors with WebLogic Server previously, but I want to do it the right way, which is using XML. The document is available at: * http://www.znerd.demon.nl/orion-primer/ Ernst -- Ernst de Haan Freelance Java Architect "Come to me all who are weary and burdened, and I will give you rest" -- Jesus Christ begin:vcard n:de Haan;Ernst tel;fax:+31 (0)26 3645634 tel;work:+31 (0)26 3623895 x-mozilla-html:FALSE url:http://www.znerd.demon.nl/ org:Jollem adr:;;Rozendaalselaan 35;Velp;GLD;6881 KZ;Netherlands version:2.1 email;internet:[EMAIL PROTECTED] title:Java Architect fn:Ernst de Haan end:vcard
Orion Primer: Very simple scenario, all the steps
Hi, I'm currently writing an Orion Primer, for myself and others, since I would like to have a small reference on what steps are involved in writing and deploying beans with Orion. I think this could be very useful for others too. Any help would be appreciated. The development of interfaces, bean classes, primary key classes, servlets and so on, is no problem for me. What I *am* struggling with is the deployment. I have done deployment with serialized descriptors with WebLogic Server previously, but I want to do it the right way, which is using XML. The document is available at: * http://www.znerd.demon.nl/orion-primer/ Ernst -- Ernst de Haan Freelance Java Architect "Come to me all who are weary and burdened, and I will give you rest" -- Jesus Christ begin:vcard n:de Haan;Ernst tel;fax:+31 (0)26 3645634 tel;work:+31 (0)26 3623895 x-mozilla-html:FALSE url:http://www.znerd.demon.nl/ org:Jollem adr:;;Rozendaalselaan 35;Velp;GLD;6881 KZ;Netherlands version:2.1 email;internet:[EMAIL PROTECTED] title:Java Architect fn:Ernst de Haan end:vcard