Re: -Xconcurrentio + J2SE 1.3
Yes we use it. It indeed increases productivity. Alexey Ryndin
Re: Where are the perfumes bubble bath beads
Hmmm, as for WebsPhear ( really liked that one:) ) and IBM support they don't give you support if you're not $1.000.000.000 company. Well, sometimes they do but only if you get ugly with them on phones and harass them enough. They don't care about small businesses... At least that is the case in Sweden. Don't know about the rest of the world, but it's probably similar. And unconfirmed sources say there is only 1 (one) expert at WebsPhere in Europe, and he works at a lab in France. The waiting list for him is something like 8 months. Johan - Original Message - From: "Ernst de Haan" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Friday, February 16, 2001 9:11 PM Subject: 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: Applet AccessDeniedException
It sounds like it has to do with applet security not ejb specific. - Original Message - From: "John McManus" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Friday, February 16, 2001 11:36 PM Subject: Applet AccessDeniedException I saw a posting about this with not answer so months ago, so here goes. Short story is an Applet looking up a session bean using jndi. I get an AccessControlException access denied message. I have an application-client.xml file, what I believe is the right principal and credentials that I'm putting into the env before doing the lookup. I'm using the user=admin, group is users and password is 123 as show in the principals.cml file. Any ideas on this one? Thanks in Advance -- *** |^^| | | | _ _| John B McManus | (.)(.) email: [EMAIL PROTECTED] @ _)phone: (303)734-6002 | ,___| | /
Re: Is it just me?
I'm going to be a little more drastic... I'll probably set up a rule to discard all messages from POSTMASTER. Johan - Original Message - From: "Arved Sandstrom" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Saturday, February 17, 2001 12:39 AM Subject: RE: Is it just me? No, it's not just you. I'm starting to develop some hostility, actually. I think I'll unsubscribe for a week and check the archives until I see that this Hydra finally died. :-) Regards, Arved Sandstrom -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dan Cramer Sent: Friday, February 16, 2001 2:32 PM To: Orion-Interest Cc: [EMAIL PROTECTED] Subject: Is it just me? My inbox is being inundated by e-mails saying that mail couldn't be delivered to [EMAIL PROTECTED] They are all coming from [EMAIL PROTECTED] Whoever the owner of this list is, please, take that e-mail address off the list. Sincerely, Dan Cramer Chief Architect Dynamic Resolve, LLC Internet Solutions Consulting
Re: Dependent-to-dependent relationships
hello, I was surfing the Orion mail archive this we; I have to study this more carefully, but isn't the "dependent object" paradigm the solution of our problems? thanks all, Vincent. Tim Drury wrote: I entered this as bug #185 back in November. Nothing has been resolved yet. This isn't a huge issue since the workaround is simple: use ejb's for everything. this isn't as slow as it sounds since intra-container ejb method calls are direct and do not use rmi. -tim drury -Original Message- From: Vincent ALEXANDRE [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 10:56 AM To: Orion-Interest Subject: Dependent-to-dependent relationships hello, I am experimenting this same problem as John did in November 00: http://www.mail-archive.com/orion-interest@orionserver.com/msg 06636.html : I am trying to create a dependent to dependent relationship using Orion. I have noticed that Orion does not automatically create the OR mappings for these types of relationships as it does for other types. I have two questions really: 1) Does orion support this type of relationship? 2) If so, how should the orion-ejb-jar.xml file be configured to do this? I have posted below the error message I receive upon attempting to deploy as well as the relevant section from the orion-ejb-jar.xml file that I created. C:\app\orionjava -jar orion.jar Auto-deploying lib\higherlending.jar (Classes where updated)... java.lang.NullPointerException at com.evermind.server.ejb.deployment.fi.z2(JAX) at com.evermind.server.ejb.compilation.f6.ahe(JAX) at com.evermind.server.ejb.compilation.f6.ahe(JAX) at com.evermind.server.ejb.compilation.f6.ahe(JAX) at com.evermind.server.ejb.compilation.f6.ahe(JAX) at com.evermind.server.ejb.compilation.fy.aft(JAX) at com.evermind.server.ejb.compilation.fz.sz(JAX) at com.evermind.server.ejb.compilation.f6.sz(JAX) at com.evermind.server.ejb.compilation.gc.sz(JAX) at com.evermind.server.ejb.EJBContainer.bz(JAX) at com.evermind.server.Application.bz(JAX) at com.evermind.server.Application.gf(JAX) at com.evermind.server.ApplicationServer.ru(JAX) at com.evermind.server.ApplicationServer.ap6(JAX) at com.evermind.server.ApplicationServer.gf(JAX) at com.evermind.server.hi.run(JAX) at java.lang.Thread.run(Thread.java:484) at com.evermind.util.f.run(JAX) entity-deployment name="Form" location="Form" wrapper="FormHome_EntityHomeWrapper22" table="Form" data-source="jdbc/HigherLending" primkey-mapping cmp-field-mapping fields cmp-field-mapping name="formId" persistence-name="form_Id" / /fields /cmp-field-mapping /primkey-mapping cmp-field-mapping name="formName" persistence-name="form_Name" / cmp-field-mapping name="formDescription" persistence-name="form_Description" / cmp-field-mapping name="formType" persistence-name="form_Type" / cmp-field-mapping name="formQueries" collection-mapping table="form_Query" primkey-mapping cmp-field-mapping fields cmp-field-mapping name="formId" persistence-name="form_Id" / /fields /cmp-field-mapping /primkey-mapping value-mapping type="com.higherlending.ejb.entity.form.FormQuery" cmp-field-mapping name="value" properties cmp-field-mapping name="queryPosition" persistence-name="Query_Position" / cmp-field-mapping name="dataType" persistence-name="Data_Type" / cmp-field-mapping name="dependency" persistence-name="Dependency" / cmp-field-mapping name="expression" persistence-name="Expression" / cmp-field-mapping name="elements" collection-mapping table="form_Query_element" primkey-mapping cmp-field-mapping fields cmp-field-mapping name="formId" persistence-name="form_Id" / cmp-field-mapping name="queryPosition"
Re: Unsent Message Returned to Sender
I must say that bounces not should be sent to the list but to the /dev/null or for some stupid reason to a log file. - Original Message - From: "Bernhard Broo" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Saturday, February 17, 2001 1:39 PM Subject: AW: Unsent Message Returned to Sender oK, I have send now 2 mails to the Request-Heandler of this list [[EMAIL PROTECTED]] to unsubscribe [[EMAIL PROTECTED]] [[EMAIL PROTECTED]]. Is [[EMAIL PROTECTED]] the right or do the Postmaster shorten something on the address?? I'm also an normal user of this list, but I think this is the normal way to handle this on ML-Request-Heandlers. So I hope this works[pleeease] Berni found on the orion-HP: To unsubscribe from this list: If you want to unsubscribe, simply send a mail to [EMAIL PROTECTED] with the following command in the body of your email message: unsubscribe Or from another account, besides the email account you subscribed to: unsubscribe email address
Re: Is there anyone there ?
use the web based form at the orion site. - Original Message - From: Andy Dwelly To: Orion-Interest Sent: Saturday, February 17, 2001 4:48 PM Subject: Is there anyone there ? I've made several unsucessful attempts to get off this list, by sending requests to: [EMAIL PROTECTED] as requested. The software keeps telling me that I'm not a member but the postings keep turning up anyway. Is there anyone actually alive at Orion who can control this list ? Is it possible to get off or am I doomed to download up to 100 messages a day, half from [EMAIL PROTECTED]presumably from someone who got away by changing their email address (in despair I guess). I'm at the end of a low bandwidth link for the next little while and this is becoming annoying. Come on Orion; poor list management is beginning to make you guys look unprofessional. Andy Dwelly
AW: -Xconcurrentio + J2SE 1.3
PLEASE UNSUBSCRIBE -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von [EMAIL PROTECTED] Gesendet: Montag, 19. Februar 2001 10:00 An: Orion-Interest Betreff: Re: -Xconcurrentio + J2SE 1.3 Yes we use it. It indeed increases productivity. Alexey Ryndin
AW: Using Log4j With Orion
Sorry if this is already answered Log4J ist on www.apache.org (Subproject jakarta). One thing to mention: there is diskussion to include a similar-featured logging api in SUN Java JDK 1.4 - has anyone seen this api ? Manfred Regele ADIG Investment GmbH 22 MethodenTools Richard-Reitzner-Allee 2 85540 Haar Tel: 089/46268-308 mailto:[EMAIL PROTECTED] http://www.adig.de -Ursprngliche Nachricht- Von: Steven Gardell [SMTP:[EMAIL PROTECTED]] Gesendet am: Samstag, 17. Februar 2001 14:36 An: Orion-Interest Betreff: Re: Using Log4j With Orion And could someone provide a valid pointer to Log4j proper? Can't seem to get to it at IBM's web site. Thanks Steven Gardell Iperia, Inc. - Original Message - From: Hee Meng, Poh [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, February 15, 2001 8:50 PM Subject: Using Log4j With Orion Hi, Anyone uses Log4j with Orion? Think of providing logging facilites for both web and ejb components. What's the good way to specify a PropertyConfigurator? Thanks for any info. Regards
Application clients howto?
Hi, i'm trying to call an EJB from an application client but orion throws a NamingException saying: "META-INF/application-client.xml resource not found". Now I have two questions: * Where should I put the application-client.xml file? * How can I put the application-client.xml file into the correct naming context? thanks, Alexander Jerusalem [EMAIL PROTECTED] vknn
RE: Using Log4j With Orion
We also use log4j. A servlet makes the initialization, by reading the configuration file. It is has been of great help: 1. It avoids tons of System.out 2. When we have a problem we just turn on debugging on the desired category. This has proven very usefull when refactoring classes. Hint: use log4j with JSP, it may save you a lot of debugging time. We use one category per page i.e. "jsp.dir.dir.page" Could anyone give me some clues about NDC, i.e. how to use it, what is the value of it, and its cost ? May I use directly cat.debug("message") or have I to use JMS ... I heard that the app server is not obliged to open a stream ? Thanks, Yves Bossel, Programmer - Neoris.com
SV: Using Log4j With Orion
Title: SV: Using Log4j With Orion There is also a log-taglib if you prefer that to scripting. Check out http://epesh.com/logtags.jsp. As per usual, using tags is so much nicer than scripting :) WR -Ursprungligt meddelande- Från: Yves Bossel [mailto:[EMAIL PROTECTED]] Skickat: den 19 februari 2001 03:18 Till: Orion-Interest Ämne: RE: Using Log4j With Orion We also use log4j. A servlet makes the initialization, by reading the configuration file. It is has been of great help: 1. It avoids tons of System.out 2. When we have a problem we just turn on debugging on the desired category. This has proven very usefull when refactoring classes. Hint: use log4j with JSP, it may save you a lot of debugging time. We use one category per page i.e. jsp.dir.dir.page Could anyone give me some clues about NDC, i.e. how to use it, what is the value of it, and its cost ? May I use directly cat.debug(message) or have I to use JMS ... I heard that the app server is not obliged to open a stream ? Thanks, Yves Bossel, Programmer - Neoris.com
Re: SV: Not authorized to view this page
Title: SV: SV: Not authorized to view this page please get me off this list ...I'm switching domain names and I would not want to send a delivery DEMON to this list...I will enlist with the new email...thanks ...hope its enough time to delete my email... - Original Message - From: Magnus Rydin To: Orion-Interest Sent: Monday, February 19, 2001 2:20 AM Subject: SV: SV: Not authorized to view this page Now can someone please make me an Arm Linux JDK 1.2 so that I can run Orion on a IPAC/Yopy?! :) WR -Ursprungligt meddelande- Från: Ernst de Haan [mailto:[EMAIL PROTECTED]] Skickat: den 16 februari 2001 12:08 Till: Orion-Interest Ämne: 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: Using Log4j With Orion
Hi, cat.debug("message")and friends works on most appservers. What the spesification says is that you can't open a file input/outputstream directly from an ejb and this is because of portability. So output to screen should always be possible from an ejb. And this is what log4j does its realy just a System.out whit dynamic filters on it. Regards, Torgeir -Original Message- From: Yves Bossel [mailto:[EMAIL PROTECTED]] Sent: Monday, February 19, 2001 12:18 PM To: Orion-Interest Subject: RE: Using Log4j With Orion We also use log4j. A servlet makes the initialization, by reading the configuration file. It is has been of great help: 1. It avoids tons of System.out 2. When we have a problem we just turn on debugging on the desired category. This has proven very usefull when refactoring classes. Hint: use log4j with JSP, it may save you a lot of debugging time. We use one category per page i.e. "jsp.dir.dir.page" Could anyone give me some clues about NDC, i.e. how to use it, what is the value of it, and its cost ? May I use directly cat.debug("message") or have I to use JMS ... I heard that the app server is not obliged to open a stream ? Thanks, Yves Bossel, Programmer - Neoris.com
Re:
please remove my email from this list [EMAIL PROTECTED] ...it will change as of today...sorry for the short notice...last minute domain name changes ...hope its enough time... Raul - Original Message - From: Magnus Rydin To: Orion-Interest Sent: Monday, February 19, 2001 2:19 AM Subject: SV: What application is that? You probably have secured your JSP pages with basic authentication. -Ursprungligt meddelande-Från: Eduardo Estefano [mailto:[EMAIL PROTECTED]]Skickat: den 16 februari 2001 10:43Till: Orion-InterestÄmne: When I run the application, a java login box pops up when I try to access an EJB. How can I override that? Thanks
Re: Applets in J2EE Presentation Layer
On Sun, 18 Feb 2001, Jay Abraham wrote: A few months ago there was a spirited discussion about the possible demise of the applet wrt to J2EE application development. I'm unable to find this thread in the archives. Does anyone have any link to it? I don't, not offhand, but I can see the logic. However, there's no need for J2EE, if applets are dying; they're a neato gadget whose time has largely come and gone, IMHO. Great for *very* vertical applications, lousy for everything else. (And yes, online games are "vertical apps," because the users are generally willing to do what's necessary to get them to run.) Also, is there anyone who is currently using, or has previously successfully used, applets in a production orion application? I would appreciate knowing your experiences. I've used them; the #java faq (http://epesh.com/java) has references to at least one applet in it; orion has no bearing on applets in the general case. The exception, of course, is the applet that uses JNDI to locate things: don't do this. An applet like that is wayyy too heavy. --- Joseph B. Ottinger [EMAIL PROTECTED] http://epesh.com/ IT Consultant
Does OrionServer 1.3.8 work on SCO Unixware?
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
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: Security between applications?
I think what you need here is to define the datasource.xml for each application. This is then placed in the deployment folder for the application just like the principles.xml. This bind a datasource or multipule datasources to the app and not to the server. SnowWolf Wagner, MAIP -Original Message- From: Cliff Rowley [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 2:09 PM To: Orion-Interest Subject: Security between applications? Greetings, We are currently evaluating the various J2EE solutions available for a venture that we hope to deliver to the world in a few months. Whilst reading the documentation for each, I dont appear to be able to configure Orion to suit the way the project will work. In order for our application to be of any use, we need to be able to implement a fair amount of security, since JSP pages may be at the mercy of people who are not us. Basically the application will provide a farm of hosts on which we will be offering certain services. Each application needs to have a data source that it, and only it has access to. The current problem as I see it is that if I define a connection in data-sources.xml, then every web application deployed on the server or cluster of servers has access to it. We need some way of securing that while still being able to use EJB in all its glory. We need to be able to offer the opportunity of creating and editing content without compromising the security of other applications on the system. Could anyone give us some tips and pointers on this? Thanks Cliff Rowley
wanting off the list
please remove me from the list our domain name has changed ...as of today...sorry for the inconvenience
Re: Is there anyone there ?
I have also been trying to get off this bloody newsgroup for about a month now without success I unsubscribed once and got the message [EMAIL PROTECTED] is now unsubscribed from Orion-Interest. Unfortunately the messages kept coming so I tried again but all I got then and every subsequent time was unsubscribe attempt from [EMAIL PROTECTED] failed. [EMAIL PROTECTED] is not subscribed to the list. If anyone knows what we can do then please help as I am getting sick of discarding dozens of messages every morning and it is becoming increasingly difficult to convince my boss that orion are a professional outfit that we can take seriously. Gary. The HSBC Group's website is at http://www.hsbc.com HSBC Bank plc, which is regulated in the UK by SFA, has issued the information contained in this message (including any attached documents) for its non-private customers only. This message and any attachments are not an invitation to buy or sell securities or related financial instruments, are confidential to the named recipient and may also be privileged. The information should not be reproduced and/or distributed to any other person. Internet communications are not secure and HSBC Bank plc accepts no legal responsibility for the contents of this message. HSBC Bank plc makes no representation and accepts no responsibility or liability as to the completeness and accuracy of the information contained in this message. Opinions may change without notice and members of the HSBC Group may have positions in, or trade in instruments mentioned in this message. Each page attached hereto must be read in conjunction with any disclosure which forms part of it.
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
Relationships between components!
Hi everbody! I'm trying to create relationships between components, both within the same jar and outside to another jar. In the first alternative, i.e. within the same jar, I succeded in creating the relationship, but unfortunately orion maps this to a blob. I have been playing around with orion-ejb-jar.xml without any success. Have anyone succeded with this? In the second alternative, i.e. relationship to an outside jar, it does'nt find the class (java.lang.NoClassDefFoundError). Does orion support this kind of relationships. Regards /Theis.
Relationships between components
Hi everbody! I'm trying to create relationships between components, both within the same jar and outside to another jar. In the first alternative, i.e. within the same jar, I succeded in creating the relationship, but unfortunately orion maps this to a blob. I have been playing around with orion-ejb-jar.xml without any success. Have anyone succeded with this? In the second alternative, i.e. relationship to an outside jar, it does'nt find the class (java.lang.NoClassDefFoundError). Does orion support this kind of relationships. Regards /Theis.
Sears and Orion - a hardware question
In following the discussions from the person working with Iplanet, I understand that you could have a hardware solution with multiple Orion servers. Did I understand that correctly? Let me pose a hypothetical question: Suppose a company the size of Sears, picked Orion and Gemstone as the solutions to run their e-business, and the site would have a magnitude of traffic. The Gemstone respondent mentioned that VM's max out at 100-200 concurrent users, and that Gemstone would start or use another VM. Could a solution be found with hardware and Orion, that would equal the Gemstone solution, should money be no object? If so, then what would it be and how would you configure it (high level)? Out of curiosity, what would be the more cost effective solution?
Re: NOVICE Question about orion and mysql
Hi Andres, I have some custom CMP EJBs working with MySQL 3.23. My datasource.xml entry is similar to yours. A couple thoughts: 1. Make sure you have removed the attribute "ejb-location" from the hsql datasource. 2. Make sure you have a schema for mysql in the orion/config/database-schemas directory. Here is the one I use (named mysql.xml): -- ?xml version="1.0"? !DOCTYPE database-schema PUBLIC "-//Evermind//- Database schema" "http://www.orionserver.com/dtds/database-schemas.dtd" database-schema name="Mysql" not-null="not null" null="" primary-key ="primary key" type-mapping type="java.lang.String" name="varchar(255)" / type-mapping type="int" name="integer" / type-mapping type="float" name="float" / type-mapping type="double" name="double" / type-mapping type="byte" name="smallint" / type-mapping type="char" name="char(1)" / type-mapping type="short" name="integer" / type-mapping type="boolean" name="bit" / type-mapping type="java.util.Date" name="datetime" / disallowed-field name="password" / disallowed-field name="username" / disallowed-field name="date" / disallowed-field name="text" / /database-schema -- Good luck, Doug "Andres Garcia Hourcade" [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent by: cc: owner-orion-interest@orionSubject: NOVICE Question about orion and mysql server.com 02/16/2001 02:31 PM Please respond to Orion-Interest i changed orion-primer-cmp to use mysql 3.22 the mysql server is up and running, the app. works fine with hsql, but in mysql i have to create database and tables manually, because it cannot auto-create them what else may i config, or where i could find any tips ? thanks in advanced attached config/datasource.xml data-source name="mysql" class ="com.evermind.sql.DriverManagerDataSource" location ="jdbc/mysqlCore" pooled-location ="jdbc/mysqlPooled" xa-location ="jdbc/xa/mysqlXA" ejb-location ="jdbc/mysql" username ="sist" password ="" url ="jdbc:mysql://10.1.1.107:3306/defaultdb" connection-driver="org.gjt.mm.mysql.Driver" /
Exception
Hello everybody, Does any of you got the following exception: javax.naming.NamingException: Error reading application-client descriptor: Error communicating with server: Disconnected: Pos was more than bufferSize at com.evermind.server.ApplicationCl ientInitialContextFactory.getInitialContext(JAX) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246) at javax.naming.InitialContext.init(InitialContext.java:222) at javax.naming.InitialContext.init(InitialContext.java:198) My case is the following: I use a standalone client to access Orion under https tunnelling. I get this exception when I try to communicate with server after a long period of inactivity (about 45 minutes) - looks like the SSL connection was disconnected. Any help greatly appreciated. Bernard
RE: Incremental Development with Orion
You should use the orion ear assembler and make sure you use the orion directory structure (when you save, it will prompt you).You wont need to package any ejbs. All you need to do is compile your files into the appropriate directories and redeploy the application from the console. - Eduardo Estefano Integrated Information Systems 480.317.8549 -Original Message- From: Phan Anh Tran [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 17, 2001 9:00 PM To: Orion-Interest Subject: Incremental Development with Orion How should one setup Orion for rapid and incremental Servlets,JSP, and EJB development? I got the Servlets and JSP setup done, but the EJB setup is still a bit iffy (thanks Faisal for your notes). I expectour developers to develop ourEJBsin a veryincrementalfashion,so I would like to get ideas on a setup which can support a fast code,debug,code cycle. Thanks. Anh
Re: Application Client Security
Arved - or anybody - have you found a solution to this problem? Our application uses DataSourceUserManager and accessing it from servlets works reasonable well so far. However, when accessing it from an application-client any credentials not declared in the principals.xml file are rejected. Even worse, when a datasource user is defined with the same login name, even credentials that are in principals.xml get rejected. How does one use applications-clients to access applications that use DataSourceUserManager? P. Pontbriand Canlink Interactive Technologies Inc. - Original Message - From: "Arved Sandstrom" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Wed, 13 Sep 2000 10:08:19 -0700 Subject: Application Client Security Hi, all I sort of asked about this before. Still haven't come up with a solution. A simple Yes or No as to feasibility would be helpful. In a nutshell, I switched over to a DataSourceUserManager plus the RoleManager. No real difficulty with EJB's, but using Orion API's for user management knocked an application-client out of the loop. No users, whether declared in the principals.xml or in the user database, are recognized anymore. I've tried all the obvious permutations, and am sort of at wits' end as to whether I can even use J2EE application clients once a user manager is in the picture. Any ideas? Arved Sandstrom
Where do you specify the IP address of an application?
Hi: I want to specify the IP address of an application. Would this be entered in the server.xml file? If so could someone give me an example? I am running Orion 1.3.8 on win2k and am planning on using the orion webserver as well. Thanks, Stefan
Mixing secure non-secure pages in the same application
I have jumped through the Verisign hoops and have installed my certificate. Here is my issue: How do you serve both secure and non-secure pages from the same application Right now, my entire application is secure and served from port 443. If someone types in the URL, the server does not respond because I am not running anything on port 80. For a VERY temporary fix, I turned on IIS on the same box, and do a redirect from IIS:80 to Orion:443. My goal is to have one application, serve the splash screen in non-secure mode, and serve the rest of the screens in secure mode. I searched the documentation / mailing list, but did not find anything. Thanks, Tom Pridham Software Engineer Computer Management Consultants 6951 Pistol Range Road Tampa, FL 33536 813-935-7332 ext. 165 813-854-4538 - Fax http://www.cmctpa.com http://www.oakscape.com
JMS client sender to queue fails
Hi. I was trying orion (1.4.7) with some code samples taken from Sun's J2EE1.3 JMS tutorial. one of the simplest is a client that sends a message to a queue : snip jndiContext = new InitialContext(); queueConnectionFactory = (QueueConnectionFactory)jndiContext.lookup(INames.QUEUE_CONNECTION_FACTORY); queue = (Queue) jndiContext.lookup(INames.AREGON_TEST_QUEUE_1); queueConnection = queueConnectionFactory.createQueueConnection(); queueSession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); queueSender = queueSession.createSender(queue); TextMessage _message = null; String _msgText = "Here is a message "; _message = queueSession.createTextMessage(); for (int i = 0; i 5; i++) { _message.setText(_msgText + (i + 1)); System.out.println("Sending message: " + _message.getText()); queueSender.send(_message); } /snip I managed to set up everything correctly (server.xml, jms.xml, application-client.xml) I think, but at the queueSender.send(_message); line, an exception is thrown : javax.jms.JMSException: QueueConnection not started at com.evermind.server.jms.c6.send(JAX) at com.evermind.server.jms.c6.send(JAX) at com.evermind.server.jms.c6.send(JAX) at com.knowledgeview.aregon.test.environment.TestCaseQueueSenderClient.testSend FiveMessages(TestCaseQueueSenderClient.java:65) Sun documentation does not require the connection to be started before SENDING messages (it has to before RECEIVING). Anyway, if I try and start the connection I get another exception : java.lang.NullPointerException at java.io.DataOutputStream.writeUTF(DataOutputStream.java:329) at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306) at com.evermind.server.jms.ck.init(JAX) at com.evermind.server.jms.EvermindQueueConnection.start(JAX) at com.knowledgeview.aregon.test.environment.TestCaseQueueSenderClient.setUp(Te stCaseQueueSenderClient.java:43) hints anyone ? I found no knonw bugs about it so I'm submitting it to bugzilla. bye, Edo
RE: Application Client Security
Hi, Peter No, I did not arrive at a solution. OTOH, we stopped using application clients in production...didn't really need them. I'm not convinced it doesn't work, it's just we didn't need to solve that problem that badly. Regards, Arved -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Peter Pontbriand Sent: Monday, February 19, 2001 1:39 PM To: Orion-Interest Subject: Re: Application Client Security Arved - or anybody - have you found a solution to this problem? Our application uses DataSourceUserManager and accessing it from servlets works reasonable well so far. However, when accessing it from an application-client any credentials not declared in the principals.xml file are rejected. Even worse, when a datasource user is defined with the same login name, even credentials that are in principals.xml get rejected. How does one use applications-clients to access applications that use DataSourceUserManager? P. Pontbriand Canlink Interactive Technologies Inc. - Original Message - From: "Arved Sandstrom" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Wed, 13 Sep 2000 10:08:19 -0700 Subject: Application Client Security Hi, all I sort of asked about this before. Still haven't come up with a solution. A simple Yes or No as to feasibility would be helpful. In a nutshell, I switched over to a DataSourceUserManager plus the RoleManager. No real difficulty with EJB's, but using Orion API's for user management knocked an application-client out of the loop. No users, whether declared in the principals.xml or in the user database, are recognized anymore. I've tried all the obvious permutations, and am sort of at wits' end as to whether I can even use J2EE application clients once a user manager is in the picture. Any ideas? Arved Sandstrom
RE: Any news from Orion yet??
Thank you for pointing me out to the site again, and I do love that site. The article on Uncle Gates not liking open source is interesting. It could be due to a government decision in September to allow government sites to bid on open source (I think the announcement is www.mysql.com, under NASA headlines). I find just the opposite position was taken when someone from Gates company complemented the Perl and Python usage for their net products (www.activestate.com, a while back). Does that mean Uncle Bill embraces open source, when it is to the advantage of Microsoft, but fronds on it when it affects the bottom line? At least one good thing about J2EE technology -- it helps to give Gates some competition. -Original Message- From: Jim Archer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 9:31 PM To: Orion-Interest Cc: Kemp Randy-W18971 Subject: RE: Any news from Orion yet?? As the lower cost and open source products continue to mature, we may see prices come down. Check out The server side today. http://www.theserverside.com JIm --On Tuesday, February 13, 2001 6:37 PM -0600 Kemp Randy-W18971 [EMAIL PROTECTED] wrote: I don't knock the higher priced products, and they do have the lion's share of the market, and many large companies run big applications on them. Personally, I feel as many low price (Orion) and open source (jboss, etc.) mature, more people will ride that path. Look at the history of Apache, and now 60 % of the world's servers run it. Developers see that the low priced and open source options are maturing and proving themselves. It's just a matter of time. -Original Message- From: Konstantin Polyzois To: Orion-Interest Sent: 2/13/01 6:56 AM Subject: RE: Any news from Orion yet?? "Weblogic (and the high priced products like Websphere) are great..." Speaking as someone who has done development using Websphere (3.0 3.02): It sucks! Don't use it for anything but JSP or servlets. It has so many flaws that I don't even want to get in to them!! /korre -Original Message- From: Kemp Randy-W18971 To: Orion-Interest Sent: 2001-02-12 13:58 Subject: 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
Re: Is there anyone there ?
Then you are most likely (very likely) subscribed with a second address. What that address is you have much better chance of knowing than we do, it is *impossible* for us to unsubscribe people who dont even know themselves which address they're subscribed with, so it is important when you join a list that you remember the exact address you subscribed with. And even if it was possible we would not spend resources on that kind of activity - this list is a 'self serving' list and it's important to remember that. Some common mistakes: subscribing with [EMAIL PROTECTED] and then attempting to unsubscribe [EMAIL PROTECTED] subscribing with [EMAIL PROTECTED] and then attempting to unsubscribe [EMAIL PROTECTED] or vice versa. subscribing with [EMAIL PROTECTED] and then attempting to unsubscribe [EMAIL PROTECTED] or any combination of the above (there are other variants as well). The simplest way to unsubscribe is to go to http://www.orionserver.com - mailinglist and enter the *address you used when you subscribed* (casing does not matter however) and click unsubscribe. There is a quirk however; the message you receive will be erronous (saying that you have subscribed) but dont worry, the action taken is still correct (we'll try to fix this in the near future to avoid confusion). Of course there could be a bug in the listserver causing your phenomena, it's just unlikely (and we dont know of any such occurances so far) and it's a lot more common for users to have subscribed with multiple addresses that they forgot about. Side note; there's been a lot of inquiries regarding a digest version of the list; the answer is that it's not possible right now. The best option is probably to unsubscribe if you have problems with the quantity of mails and instead follow it via the archives (external service, but linked at http://www.orionserver.com/ - mailinglist). Another thing is for posters to go through the usual "does this benefit the subscribers of the list?" sanity check. For instance general J2EE technology (including servlets/JSP, EJB etc) questions are often better off at the 'neutral' ***-interest lists hosts by Sun, as is general server comparisons/questions etc. Meanwhile Orion-Interest is geared towards technical issues related to Orion usage (and to view it from the other perspective: those questions should not pollute the 'neutral' interest forums since they belong here and not there). Lastly; be sure to appreciate people who respond to your/others queries, and not to be annoyed if your particular query - they're taking time helping you simply out of friendliness, and that should be appreciated. Hope it helps! /Magnus Stenman, the Orion team - Original Message - From: [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Monday, February 19, 2001 2:31 PM Subject: Re: Is there anyone there ? I have also been trying to get off this bloody newsgroup for about a month now without success I unsubscribed once and got the message [EMAIL PROTECTED] is now unsubscribed from Orion-Interest. Unfortunately the messages kept coming so I tried again but all I got then and every subsequent time was unsubscribe attempt from [EMAIL PROTECTED] failed. [EMAIL PROTECTED] is not subscribed to the list. If anyone knows what we can do then please help as I am getting sick of discarding dozens of messages every morning and it is becoming increasingly difficult to convince my boss that orion are a professional outfit that we can take seriously. Gary. The HSBC Group's website is at http://www.hsbc.com HSBC Bank plc, which is regulated in the UK by SFA, has issued the information contained in this message (including any attached documents) for its non-private customers only. This message and any attachments are not an invitation to buy or sell securities or related financial instruments, are confidential to the named recipient and may also be privileged. The information should not be reproduced and/or distributed to any other person. Internet communications are not secure and HSBC Bank plc accepts no legal responsibility for the contents of this message. HSBC Bank plc makes no representation and accepts no responsibility or liability as to the completeness and accuracy of the information contained in this message. Opinions may change without notice and members of the HSBC Group may have positions in, or trade in instruments mentioned in this message. Each page attached hereto must be read in conjunction with any disclosure which forms part of it.
RE: Global Directories
Aniket, I added this virtual directory to the default web app deployment descriptor orion-web.xml. The file resides under orion/application-deployments/default/defaultWebApp. Since the default web app is bound to the root, the content defined in these virtual folders is accessible from all of my applications. I've used the approach for static contents such as html and images, but it probably won't work if you plan to use the forward and include calls on the content in the virtual directories. virtual-directory virtual-path="/HTMLS" real-path="D:\EDM\HTMLS" / Andre -Original Message- From: Aniket V U [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 17, 2001 12:34 AM To: Orion-Interest Subject: Global Directories Hi, I was wondering if I can define a global Virtual directory i.e a directory that can be accessed from any application deployed in Orion?? I tried setting the Virtual Directory in Global-Web-Application.xml but i couldnt access the directory. The virtual directories work fine if I define them at each application level in orion-web.xml. Im using orion 1.4.5, jdk 1.3, W2K. Any pointers would be much appreciated. Thanks and Regards Aniket
Sending a PDF via a servlet to IE 5
Has anyone encountered an issue with sending a PDF back to IE 5? Here's my situation. I generate a PDF dynamically then store it in a database. I then retrieve the PDF from the DB via a servlet that sets the mime-type then outputs to the response stream. This works fine with Netscape and IE 5.5 but with IE 5 it displays an (mostly) empty page with a cube icon on it (looks like an ActiveX icon). When you click on the icon it pops up a dialog saying "Error Locating Object Handler". If I request a static PDF IE 5 display that fine. So I'm assuming I'm not setting something on the response properly. Any one hae any ideas? - Damian Van Dooren Information Technology The Investment Centre (519) 672-4389 x718
Re: Sending a PDF via a servlet to IE 5
At 02:51 PM 2/19/01 -0500, you wrote: Has anyone encountered an issue with sending a PDF back to IE 5? Here's my situation. I generate a PDF dynamically then store it in a database. I then retrieve the PDF from the DB via a servlet that sets the mime-type then outputs to the response stream. This works fine with Netscape and IE 5.5 but with IE 5 it displays an (mostly) empty page with a cube icon on it (looks like an ActiveX icon). When you click on the icon it pops up a dialog saying Error Locating Object Handler. If I request a static PDF IE 5 display that fine. So I'm assuming I'm not setting something on the response properly. Any one hae any ideas? I don't know if this is exactly your problem, be we have encountered errors in IE's handling of PDF files if the content length in not correctly set in the header. Try something like this: // The technique of writing to a byte array output stream and then setting the content length was // taken from Paulo Soares (see the FAQ for the iText library). If the content length is not set then the PDF // plugin for IE has problems with the file, especially if it is small. // CREATE AND SEND THE DOCUMENT. response.setContentType( application/pdf ); ByteArrayOutputStream ba = new ByteArrayOutputStream(); createPdfDocument( ba ); // Stream the PDF file to ba response.setContentLength( ba.size() ); ServletOutputStream out = response.getOutputStream(); ba.writeTo( out ); out.flush(); Good luck! -mark Mark Meuer Software Engineer Life Navigator, Inc. (612) 333-8018 http://www.lifenavigator.com [EMAIL PROTECTED]
Is xerces.jar too old ?
Our application uses XML data exchange wrapped into HTTP. It is handled by a servlet running under Orion and doing its own XML parsing and generating. We are using pretty convenient XML API (Jdom ) from http://www.jdom.org which I highly recommend. The jdom.jar bundle comes with the latest (?) xerces.jar which I also copied into /Orion/lib directory. My standalone code worked fine, but after I placed it into servlet it did throw NoSuchMethodException complaining at some xerces code. Apparently Orion's classloader uses xerces.jar from the Orion root directory prior to the one placed in Orion/lib directory. Everything works fine after I replaced the old xerces.jar in the Orion root directory with the new one which came with jdom.jar bundle. I don't like that hack because it's an alteration to Orion distribution and hell knows what side effects it may cause. So, my question are : Is there any way to force servlet in using certain library if there is some naming conflict with the one in Orion root ? Orion team, are you going to update xerces.jar in distribution ? Does it involve any licensing issue ? Thanks ~boris
Re: Mixing secure non-secure pages in the same application
In ${orion_home}/default-web-app make an index.html that redirect to port 443 that should do it. Matt Thomas Pridham wrote: I have jumped through the Verisign hoops and have installed my certificate. Here is my issue: How do you serve both secure and non-secure pages from the same application Right now, my entire application is secure and served from port 443. If someone types in the URL, the server does not respond because I am not running anything on port 80. For a VERY temporary fix, I turned on IIS on the same box, and do a redirect from IIS:80 to Orion:443. My goal is to have one application, serve the splash screen in non-secure mode, and serve the rest of the screens in secure mode. I searched the documentation / mailing list, but did not find anything. Thanks, Tom Pridham Software Engineer Computer Management Consultants 6951 Pistol Range Road Tampa, FL 33536 813-935-7332 ext. 165 813-854-4538 - Fax http://www.cmctpa.com http://www.oakscape.com
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
Best practices: How to initialize state in EntityBean's superclass
Suppose you have two EntityBean classes A and B which share some common functionality and state by inheriting from the same superclass S. Then, if S has some member variable, say a java.util.Vector called "foos", which is part of the persistent state of both A and B, my question is this: When should "foos" be initialized? I am positive that the ejbCreate methods of A and B could include an instantiation like "foos = new Vector();" but if I use this model, I have to remember to write this instantiation into every subclass of S, and if S has many member variables (and many subclasses) that becomes error prone. - Not to mention that if I add a new member variable to S I have to modify all subclasses A, B, etc. to make their ejbCreate(...) instantiate this new variable. My own suggestion is to define a method in S, lets call it "void instantiateS()" and have subclasses A, B, etc. invoke this method in their ejbCreate(...). I believe this method should *not* be the (no-arg) constructor of S as I expect this contructor will be called everytime an instance of A or B is loaded from persistant storage (which is unnecessary). What are your suggestions? What do you do when using inheritance in your beans? Any comments would be appreciated. Randahl.
Servlet Method size limit? -- Illegal target of jump or branch
I get the following error using Orion 1.4.7 w/ JDK 1.3 on Redhat. Error creating jsp-page instance: java.lang.VerifyError: (class: __jspPage11_register_regstep2_jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo nse;)V) Illegal target of jump or branch It is due to a large JSP file (mainly due to a lot of tags, not a lot of logic). If I start eliminating some of the tags (doesn't matter which ones) the problem goes away. I've tried increasing my JVM heap. No luck. Where is this limitation coming from? My JVM? Orion? The only way to get around it that works is by writing taglibs to eliminate the amount of code in the JSP. Any other suggestions?
RE: Best practices: How to initialize state in EntityBean's superclass
I am doing something very similar to what you described. My base class is actually coded like a Entity bean so that it has all the ejbActivate, ejbLoad, ejbStore etc. Hence it is a self-contained entity bean which handles its own state information nicely and my subclasses are not required to re-declare those dummy functions if they do not need to. Something like the following: - abstract class MyBase implements EntityBean { protected transient EntityContext ctx; Vector states; /** My pseudo ejbCreate function */ public void ejbCreate() { states = new Vector(); } public void setEntityContext(EntityContext ctx) { this.ctx = ctx; } public void unsetEntityContext() { this.ctx = null; } public void ejbActivate() { states = new Vector(); } public void ejbPassivate() { states = null; } public void ejbRemove() { stats = null; } public void ejbLoad() { } public void ejbStore() { } } public class MySubclass extends MyBase implements EntityBean { String value; public Integer ejbCreate(String value) { super.ejbCreate(); this.value = value; return null; } } Conrad -Original Message- From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]] Sent: Monday, February 19, 2001 4:18 PM To: Orion-Interest Subject: Best practices: How to initialize state in EntityBean's superclass Suppose you have two EntityBean classes A and B which share some common functionality and state by inheriting from the same superclass S. Then, if S has some member variable, say a java.util.Vector called "foos", which is part of the persistent state of both A and B, my question is this: When should "foos" be initialized? I am positive that the ejbCreate methods of A and B could include an instantiation like "foos = new Vector();" but if I use this model, I have to remember to write this instantiation into every subclass of S, and if S has many member variables (and many subclasses) that becomes error prone. - Not to mention that if I add a new member variable to S I have to modify all subclasses A, B, etc. to make their ejbCreate(...) instantiate this new variable. My own suggestion is to define a method in S, lets call it "void instantiateS()" and have subclasses A, B, etc. invoke this method in their ejbCreate(...). I believe this method should *not* be the (no-arg) constructor of S as I expect this contructor will be called everytime an instance of A or B is loaded from persistant storage (which is unnecessary). What are your suggestions? What do you do when using inheritance in your beans? Any comments would be appreciated. Randahl.
Re: Mixing secure non-secure pages in the same application
That solution doesn't get around having multiple pages secure and some non secure though. Ibelieve you need to use URL redirection within your servlets and that should work. It would be good if we could do something similar to Apache with the .htaccess files as that is how I have worked this solution (only for static web site though). Mark In ${orion_home}/default-web-app make an index.html that redirect to port 443 that should do it. Matt Thomas Pridham wrote: I have jumped through the Verisign hoops and have installed my certificate. Here is my issue: How do you serve both secure and non-secure pages from the same application Right now, my entire application is secure and served from port 443. If someone types in the URL, the server does not respond because I am not running anything on port 80. For a VERY temporary fix, I turned on IIS on the same box, and do a redirect from IIS:80 to Orion:443. My goal is to have one application, serve the splash screen in non-secure mode, and serve the rest of the screens in secure mode. I searched the documentation / mailing list, but did not find anything. Thanks, Tom Pridham Software Engineer Computer Management Consultants 6951 Pistol Range Road Tampa, FL 33536 813-935-7332 ext. 165 813-854-4538 - Fax http://www.cmctpa.com http://www.oakscape.com
RE: Best practices: How to initialize state in EntityBean's superclass
Why not just put the superclass initialization in ejbCreate() and require all the subclasses to call super.ejbCreate()? Jeff -Original Message- From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]] Sent: Monday, February 19, 2001 4:18 PM To: Orion-Interest Subject: Best practices: How to initialize state in EntityBean's superclass Suppose you have two EntityBean classes A and B which share some common functionality and state by inheriting from the same superclass S. Then, if S has some member variable, say a java.util.Vector called "foos", which is part of the persistent state of both A and B, my question is this: When should "foos" be initialized? I am positive that the ejbCreate methods of A and B could include an instantiation like "foos = new Vector();" but if I use this model, I have to remember to write this instantiation into every subclass of S, and if S has many member variables (and many subclasses) that becomes error prone. - Not to mention that if I add a new member variable to S I have to modify all subclasses A, B, etc. to make their ejbCreate(...) instantiate this new variable. My own suggestion is to define a method in S, lets call it "void instantiateS()" and have subclasses A, B, etc. invoke this method in their ejbCreate(...). I believe this method should *not* be the (no-arg) constructor of S as I expect this contructor will be called everytime an instance of A or B is loaded from persistant storage (which is unnecessary). What are your suggestions? What do you do when using inheritance in your beans? Any comments would be appreciated. Randahl.
RE: Global Directories
Please take me off the mailing list Have a nice day Best Regards, Christine Hall Sales Marketing www.TrafficMagnet.net -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andre Vanha Sent: Tuesday, February 20, 2001 3:52 AM To: Orion-Interest Subject: RE: Global Directories Aniket, I added this virtual directory to the default web app deployment descriptor orion-web.xml. The file resides under orion/application-deployments/default/defaultWebApp. Since the default web app is bound to the root, the content defined in these virtual folders is accessible from all of my applications. I've used the approach for static contents such as html and images, but it probably won't work if you plan to use the forward and include calls on the content in the virtual directories. virtual-directory virtual-path="/HTMLS" real-path="D:\EDM\HTMLS" / Andre -Original Message- From: Aniket V U [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 17, 2001 12:34 AM To: Orion-Interest Subject: Global Directories Hi, I was wondering if I can define a global Virtual directory i.e a directory that can be accessed from any application deployed in Orion?? I tried setting the Virtual Directory in Global-Web-Application.xml but i couldnt access the directory. The virtual directories work fine if I define them at each application level in orion-web.xml. Im using orion 1.4.5, jdk 1.3, W2K. Any pointers would be much appreciated. Thanks and Regards Aniket
Re: Servlet Method size limit? -- Illegal target of jump or branch
This has been discussed before, so there are postings in the archive. The problem lies in the Class files themselves. Java Class files have 16 bits limitations, as well as others. The primary issue appears to be the large number of string constants generated by JSP pages. I believe that workarounds were suggested in the previous postings. tim. I get the following error using Orion 1.4.7 w/ JDK 1.3 on Redhat. Error creating jsp-page instance: java.lang.VerifyError: (class: __jspPage11_register_regstep2_jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo nse;)V) Illegal target of jump or branch It is due to a large JSP file (mainly due to a lot of tags, not a lot of logic). If I start eliminating some of the tags (doesn't matter which ones) the problem goes away. I've tried increasing my JVM heap. No luck. Where is this limitation coming from? My JVM? Orion? The only way to get around it that works is by writing taglibs to eliminate the amount of code in the JSP. Any other suggestions?
Re: New Orion Primer
Thank you so much, excellent service. Konrad - Original Message - From: "Ernst de Haan" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Monday, February 19, 2001 7:19 PM Subject: 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
Port 23791
Hi All... Does anyone know why Orion is listening on port 23791? Thanks... Jim I shall be telling this with a sigh Somewhere ages and ages hence: Two roads diverged in a wood, and I - I took the one less traveled by, And that has made all the difference. - Robert Frost, 1916
Re:One Build.xml
You can use ant.properties. In your build.xml property name="component" value="${ant.properties.component} / On the dos prompt: ant -Dcomponent=your_component target /Theis.
RE: Is xerces.jar too old ?
Hi, We just had the same problems. The $ORION_HOME/xerces.jar version is old and could not handle our need in XML parsing. We have replaced this file by a new version and all is fine! We use Orion 1.4.4, old xerces.jar was 589 KO, and new one is 769 KO (don't know how to check version...). I know this is not a good solution, but Orion seems to give his own CLASSPATH to the application he ran, so even if you had the new xerces.jar in the CLASSPATH specified with LIB tag it'll be hidden by the Orion's one. If some have idears on this subject... PHiL -Message d'origine- De : Boris Erukhimov [mailto:[EMAIL PROTECTED]] Envoy : lundi 19 fvrier 2001 17:50 : Orion-Interest Objet : Is xerces.jar too old ? Our application uses XML data exchange wrapped into HTTP. It is handled by a servlet running under Orion and doing its own XML parsing and generating. We are using pretty convenient XML API (Jdom ) from http://www.jdom.org which I highly recommend. The jdom.jar bundle comes with the latest (?) xerces.jar which I also copied into /Orion/lib directory. My standalone code worked fine, but after I placed it into servlet it did throw NoSuchMethodException complaining at some xerces code. Apparently Orion's classloader uses xerces.jar from the Orion root directory prior to the one placed in Orion/lib directory. Everything works fine after I replaced the old xerces.jar in the Orion root directory with the new one which came with jdom.jar bundle. I don't like that hack because it's an alteration to Orion distribution and hell knows what side effects it may cause. So, my question are : Is there any way to force servlet in using certain library if there is some naming conflict with the one in Orion root ? Orion team, are you going to update xerces.jar in distribution ? Does it involve any licensing issue ? Thanks ~boris
Problems deploying a MessageDrivenBean
Hi, I am currently trying to deploy a very simple Message Driven Bean (MDB) in Orion 1.4.5. The MDB is subscribing to a topic. To do this I have studied the atm application and the logging MDB used there. Orion deploy's my MDB without any error messages but the bean is not responding when a message is published on the topic. To me it seems like the MDB doesn't know or understand what topic it should subscribe to. I use a client to publish a message on the topic. If I start another client subscribing to the same topic, everything works fine. The jms.xml file seems to be ok. I think I am missing something connecting the MBD with the topic in the ejb-jar.xml file. When I created my ejb-jar.xml file I copied the relevant parts from the atm ejb-jar.xml file. I have studied other MDB examples and tried to modify my ejb-jar.xml file according to those examples but so far nothing has worked. My MDB is the src.java.ejb.NewOrderBean and the topic name is orderTopic. This is my ejb-jar.xml file: ejb-jar enterprise-beans message-driven ejb-namesrc.java.ejb.NewOrderBean/ejb-name ejb-classsrc.java.ejb.NewOrderBean/ejb-class message-selectorJMSType='orderTopic'/message-selector message-driven-destination destination-typejavax.jms.Topic/destination-type /message-driven-destination /message-driven /enterprise-beans /ejb-jar My hopes are that someone could help in this matter. Best regards Johan Staaf Malm, Sweden