Orion 1.5.2 and IBM 1.3 for windows
Sorry, IBM version is java version 1.3.0 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0) Classic VM (build 1.3.0, J2RE 1.3.0 IBM build cn130-20010329 (JIT enabled: jitc) ) Has any of you make Orion 1.52. work with IBM 1.3 for windows ? I have copied tools.jar into orion1.5.2 folder and I get the following error when I start OrionServer. java.lang.NoSuchMethodError: org.xml.sax.Attributes: method getQName(I)Ljava/lan g/String; not found at org.apache.crimson.tree.AttributeSet.init(AttributeSet.java:139) at org.apache.crimson.tree.XmlDocumentBuilder.startElement(XmlDocumentBu ilder.java:463) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1449) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499) at org.apache.crimson.parser.Parser2.parse(Parser2.java:304) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433) at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl .java:179) at com.evermind._un.getJavaxDocument(Unknown Source) at com.evermind.xml.XMLUtils.getDocument(Unknown Source) at com.evermind.xml.XMLConfig._cg(Unknown Source) at com.evermind.xml.XMLConfig._cg(Unknown Source) at com.evermind._in.run(Unknown Source) at java.lang.Thread.run(Thread.java:498) at com.evermind._if.run(Unknown Source) Is there any solution for this ? Regards, Ismael
Re: Concurrency
More info: Took me some time to see, that you are using 1.4.5 as I think (maybe even more recent, but definitely not the latest 1.5.2). com.evermind.server.rmi.RmiServer has: java.util.List eb; snatch public final void gb(ba ba1) { synchronized(eb) { eb.remove(ba1); } } /snatch snatch public RMIServer(ApplicationServer applicationserver) { . blah blah blah . eb = new ArrayList(); . blah blah blah . } /snatch This is it... I don't however know what is the eb used for. It looks ok (there is syncronized working with the list), however something does not work right. My guess: Move to 1.5.2 maybe? Lachezar. Hi ted, You are right, but the exeption is in an AbstractList and I'm not using any extension of AbstractList. In addition, the exeption is in com.evermind pakage. I have analyzed this package and I've seen that the method com.evermind.server.rmi.RMIServer.gb uses a java.util.List. Therefore I suppose that it is an orion problem when the SLSB is created. Thanks, Esteban -Original Message- From: Rice, Ted [mailto:[EMAIL PROTECTED]] Sent: Friday, July 27, 2001 1:45 PM To: Orion-Interest Subject: RE: Concurrency you are working with a non-synchronized collection. if you get an iterator and attempt to modify the backing list with multiple threads you will receive a ConcurrentModificationException. synchronize on the the iterator or list. ./ted -Original Message- From: Lopez Esteban [mailto:[EMAIL PROTECTED]] Sent: Friday, July 27, 2001 3:44 AM To: Orion-Interest Subject: Concurrency Hi Please help me. I am working with a stateless EJB and I have about 250 clients which has to use this EJB. When the clients access to the SLEJB concurretly, the Orion crash, and the server.log shows: 7/4/01 6:45 PM Internal server error java.util.ConcurrentModificationException at java.util.AbstractList$Itr.checkForComodification(Unknown Source) at java.util.AbstractList$Itr.next(Unknown Source) at java.util.AbstractCollection.remove(Unknown Source) at com.evermind.server.rmi.RMIServer.gb(JAX) at com.evermind.server.rmi.ba.run(JAX) at com.evermind.util.f.run(JAX) Anyone knows something about this. Thanks! Esteban.
SV: Orion 1.5.2 and IBM 1.3 for windows
Title: SV: Orion 1.5.2 and IBM 1.3 for windows Check the Ibm jdk directory for xml4j.jar and other files that have to do with xml manipulation. Try removing them! regards, Patrik Andersson -Ursprungligt meddelande- Från: Ismael [mailto:[EMAIL PROTECTED]] Skickat: den 6 augusti 2001 10:00 Till: Orion-Interest Ämne: Orion 1.5.2 and IBM 1.3 for windows Sorry, IBM version is java version 1.3.0 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0) Classic VM (build 1.3.0, J2RE 1.3.0 IBM build cn130-20010329 (JIT enabled: jitc) ) Has any of you make Orion 1.52. work with IBM 1.3 for windows ? I have copied tools.jar into orion1.5.2 folder and I get the following error when I start OrionServer. java.lang.NoSuchMethodError: org.xml.sax.Attributes: method getQName(I)Ljava/lan g/String; not found at org.apache.crimson.tree.AttributeSet.init(AttributeSet.java:139) at org.apache.crimson.tree.XmlDocumentBuilder.startElement(XmlDocumentBu ilder.java:463) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1449) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499) at org.apache.crimson.parser.Parser2.parse(Parser2.java:304) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433) at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl .java:179) at com.evermind._un.getJavaxDocument(Unknown Source) at com.evermind.xml.XMLUtils.getDocument(Unknown Source) at com.evermind.xml.XMLConfig._cg(Unknown Source) at com.evermind.xml.XMLConfig._cg(Unknown Source) at com.evermind._in.run(Unknown Source) at java.lang.Thread.run(Thread.java:498) at com.evermind._if.run(Unknown Source) Is there any solution for this ? Regards, Ismael
Re: Transaction question
I already replyed to this message but noticed that it never came through... so here it is again... Thanks for the earlier reply. My reaction: I understand what you do below, but how must I define all this, such that - All me methods still have the trans-attribute set to Required (as before). - Only the new method B has the trans-attribute set to RequiredNew ? So what I am looking for is, some kind of default trans-attribute for all methods, if the trans-attribute isn't defined for the method in the xml file. As in the example below, I need to specify the trans-attribute for ALL my methods separately, which isn't a nice way, as I have a lot of methods, and it is easy to forget one, especialy when you add a new method. How do I do this ? (isn't there a way to set the trans-attribute property for methods with a regular expression or something like that ??) Eddie - Original Message - From: Simon Evans [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, July 26, 2001 7:49 PM Subject: RE: Transaction question i think you need transaction attribute 'RequiresNew' in B, and 'Requires' on A. then A has to catch B's remote exception. ejb-jar.xml like: container-transaction method descriptionTransaction-handling for the SmsManager/description ejb-namenl.unwired.sgs.sms.SmsManager/ejb-name method-intfRemote/method-intf method-nameA/method-name /method trans-attributeRequired/trans-attribute /container-transaction container-transaction method descriptionTransaction-handling for the SmsManager/description ejb-namenl.unwired.sgs.sms.SmsManager/ejb-name method-intfRemote/method-intf method-nameB/method-name /method trans-attributeRequiresNew/trans-attribute /container-transaction code like: A(){ try{ b(); } catch(Exception ex){} } so B will execute in a new transaction and rollback when an exception is thrown. A will finish wihtout throwing an exception and commit its own transaction. -Original Message- From: Eddie [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 26, 2001 8:08 AM To: Orion-Interest Subject: Re: Transaction question Hellu hellu, Please some advise on the question I posted some days ago (see below)? Eddie - Original Message - From: Eddie [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, July 24, 2001 10:47 AM Subject: Transaction question Hellu, I don't know how to configure the following transaction scenario with CMP. Please some help or maybe a little example: I have two bean methods: A and B. A calls B and I want that when B throws a RemoteException that A intercepts, that B performs a rollback and A not ! I know how to do that in the code (I think): A just catches the remoteException of B and doesn't throw it outside his method. However how do I configure this in the xml file ?? I now have the following in my ejb-jar.xml, which mean that all the methods execute in the same transaction: container-transaction method descriptionTransaction-handling for the SmsManager/description ejb-namenl.unwired.sgs.sms.SmsManager/ejb-name method-intfRemote/method-intf method-name*/method-name /method trans-attributeRequired/trans-attribute /container-transaction As far as I understand it, I have to configure that method B has RequiresNew set, but how do I configure this in the xml file, such that the rest still use Required ?? And is this the correct way to do it ?? Please some help as I can't find anything on the Internet (mail-archive etc..), Eddie
Problems with the TEI classes in lesson 5
Hi I tried to lesson 5 : TEI class example with the orion 1.5.2. The configuration is done from the tutorial guide. The error message is following: 500 Internal Server Error Error parsing JSP page /testi.jsp line 48 Undefined bean: 'contact' The configuration of the orion server is same as the tutorial defines. I have tested this feature in linux and in windows nt with the same results. I tried also the ejbtags.jar with the same results. Thank you for your help in advance. Yours, Jouko Johansson
Server sometime stop responding (prompt of server is freezed)
hi, I have an application on an orion server who stop responding for unknown reasons. But I have no way to find what's is wrong. A CTRL-C comand make it go again (not stop and restart, just unfreeze the prompt ) Does any know why, and how to fix it? -- Decornet Christophe Ingénieur Développement Tel :01.44.97.71.44 Société Fluxus 28/30 rue du chateau des rentiers 75013 Paris
Re: Test
ya got it. - Original Message - From: Kevin Duffey [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, August 06, 2001 10:46 AM Subject: RE: Test Got it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Michael J. Cannon Sent: Sunday, August 05, 2001 12:55 PM To: Orion-Interest Cc: Magnus Rydin; [EMAIL PROTECTED] Subject: Re: Test Test received... Chicago, IL USA RCN is the ISP Also at 3rd level from Kattare Internet Michael J. Cannon hsqldb.org, Inc. mailto:[EMAIL PROTECTED] - Original Message - From: Magnus Rydin [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Sunday, August 05, 2001 12:36 PM Subject: Re: Test Another test - Original Message - From: Karl Avedal [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Sunday, August 05, 2001 12:21 PM Subject: Test Another test mail, please ignore. -Karl * Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. * Visit us at http://www.mahindrabt.com
PoolMan works on Orion 1.4.5 and fails on 1.5.2
Trying to use PoolMan as connection pool I get some errors. When Poolman tries to load its xml configuration file it fails warning that org.apache.xerces.parsers.SAXParser class is not found. I have put xerces.jar and PoolMan.jar on the ../applications/myapp/web-app/WEB-INF/lib folder. I have tested it with Orion 1.4.5 and it works fine, then we think that there is something wrong with Orion 1.5.2. Regards, Ismael
Re: PoolMan works on Orion 1.4.5 and fails on 1.5.2
I'd recommend using the bit mechanic pool manager (or even better, Orion's own pooling). PoolMan does bad things with the classpath in order to work with tomcat's broken classloading. It tries to look many of its classes through the system classloader. On Mon, 6 Aug 2001, Ismael wrote: Trying to use PoolMan as connection pool I get some errors. When Poolman tries to load its xml configuration file it fails warning that org.apache.xerces.parsers.SAXParser class is not found. I have put xerces.jar and PoolMan.jar on the ../applications/myapp/web-app/WEB-INF/lib folder. I have tested it with Orion 1.4.5 and it works fine, then we think that there is something wrong with Orion 1.5.2. Regards, Ismael
Re: Orion 1.5.2 and IBM 1.3 for windows
Ismael, I had the same problem. The reason it occurs is because there is a jaxp.jar in the jre/lib/ext directory of the IBM VM, which means this will be used as standard by the VM (before the jaxp.jar in the orion directory). There must be some version incompatibility between Orion and the IBM one - I also had the same problem. Remove the one from jre/lib/ext directory, and it should work. Regards, Nicki -Original Message- From: Ismael [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Date: Monday, August 06, 2001 1:25 PM Subject: Orion 1.5.2 and IBM 1.3 for windows Sorry, IBM version is java version 1.3.0 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0) Classic VM (build 1.3.0, J2RE 1.3.0 IBM build cn130-20010329 (JIT enabled: jitc) ) Has any of you make Orion 1.52. work with IBM 1.3 for windows ? I have copied tools.jar into orion1.5.2 folder and I get the following error when I start OrionServer. java.lang.NoSuchMethodError: org.xml.sax.Attributes: method getQName(I)Ljava/lan g/String; not found at org.apache.crimson.tree.AttributeSet.init(AttributeSet.java:139) at org.apache.crimson.tree.XmlDocumentBuilder.startElement(XmlDocumentBu ilder.java:463) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1449) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499) at org.apache.crimson.parser.Parser2.parse(Parser2.java:304) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433) at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl .java:179) at com.evermind._un.getJavaxDocument(Unknown Source) at com.evermind.xml.XMLUtils.getDocument(Unknown Source) at com.evermind.xml.XMLConfig._cg(Unknown Source) at com.evermind.xml.XMLConfig._cg(Unknown Source) at com.evermind._in.run(Unknown Source) at java.lang.Thread.run(Thread.java:498) at com.evermind._if.run(Unknown Source) Is there any solution for this ? Regards, Ismael
What happened to this mailing list???
The mailing list seems to have gone quiet. Is there something we should know about?
Error binding to server...... Exception
Hi, i am facing a strange problem i have deployed some CMP beans. I can see their respective entry in the application-deployment folder, their respective orion-ejb-jar.xml are also created but now as i change the application.xml file and the server redeployes the beans it throws an error saying This Perticular problem is with a few CMP beans only the rest are working fine with the same setting. Error binding to server: javax.naming.NamingException: No location specified and no suitable instance of the type 'MpSellerManager' found for the ejb-ref MpSellerManagerHome Please help me out with this i am using JDK 1.3 with Orion Version. 1.5.2. Regards, Vikas * Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. * Visit us at http://www.mahindrabt.com
RE: Transaction question
Set up a default transaction-attribute for your bean. This is from the EJB 2.0 draft. Page 353 Section 17.4.1 Use a * for the method-name. method ejb-nameEJBNAME/ejb-name method-name*/method-name /method - Seth [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Post Sent: Monday, August 06, 2001 4:48 AM To: Orion-Interest Subject: Re: Transaction question I already replyed to this message but noticed that it never came through... so here it is again... Thanks for the earlier reply. My reaction: I understand what you do below, but how must I define all this, such that - All me methods still have the trans-attribute set to Required (as before). - Only the new method B has the trans-attribute set to RequiredNew ? So what I am looking for is, some kind of default trans-attribute for all methods, if the trans-attribute isn't defined for the method in the xml file. As in the example below, I need to specify the trans-attribute for ALL my methods separately, which isn't a nice way, as I have a lot of methods, and it is easy to forget one, especialy when you add a new method. How do I do this ? (isn't there a way to set the trans-attribute property for methods with a regular expression or something like that ??) Eddie - Original Message - From: Simon Evans [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, July 26, 2001 7:49 PM Subject: RE: Transaction question i think you need transaction attribute 'RequiresNew' in B, and 'Requires' on A. then A has to catch B's remote exception. ejb-jar.xml like: container-transaction method descriptionTransaction-handling for the SmsManager/description ejb-namenl.unwired.sgs.sms.SmsManager/ejb-name method-intfRemote/method-intf method-nameA/method-name /method trans-attributeRequired/trans-attribute /container-transaction container-transaction method descriptionTransaction-handling for the SmsManager/description ejb-namenl.unwired.sgs.sms.SmsManager/ejb-name method-intfRemote/method-intf method-nameB/method-name /method trans-attributeRequiresNew/trans-attribute /container-transaction code like: A(){ try{ b(); } catch(Exception ex){} } so B will execute in a new transaction and rollback when an exception is thrown. A will finish wihtout throwing an exception and commit its own transaction. -Original Message- From: Eddie [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 26, 2001 8:08 AM To: Orion-Interest Subject: Re: Transaction question Hellu hellu, Please some advise on the question I posted some days ago (see below)? Eddie - Original Message - From: Eddie [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, July 24, 2001 10:47 AM Subject: Transaction question Hellu, I don't know how to configure the following transaction scenario with CMP. Please some help or maybe a little example: I have two bean methods: A and B. A calls B and I want that when B throws a RemoteException that A intercepts, that B performs a rollback and A not ! I know how to do that in the code (I think): A just catches the remoteException of B and doesn't throw it outside his method. However how do I configure this in the xml file ?? I now have the following in my ejb-jar.xml, which mean that all the methods execute in the same transaction: container-transaction method descriptionTransaction-handling for the SmsManager/description ejb-namenl.unwired.sgs.sms.SmsManager/ejb-name method-intfRemote/method-intf method-name*/method-name /method trans-attributeRequired/trans-attribute /container-transaction As far as I understand it, I have to configure that method B has RequiresNew set, but how do I configure this in the xml file, such that the rest still use Required ?? And is this the correct way to do it ?? Please some help as I can't find anything on the Internet (mail-archive etc..), Eddie
IE on Mac Troubles
Hello We're QA'ng our web application on IE 5 for the MacIntosh. And it takes forever to load even the simplest of JSP files. This seems to not be a strictly MacIntosh problem, as the exact same page loads quickly on Netscape for MacIntosh. Also, all other sites seem to load fine on IE 5--MacIntosh. And this seems to not be a rendering issue, as when we load the resulting page statically from the harddrive it is near instantaneous. So my only guess is that it has something to do with the HTTP headers that are being sent by the browser, maybe Orion doesn't recognize them? Also, when we go to orionserver.com on the same browser, we continously get an error trace (something about too many file handles open), while there is never a problem on IE Windows. Has anyone seen this sort of problem before? Also, could someone respond with an URL for their site that is running Orion so we can determine if it's something in our site or not. Thanks.
Re: What happened to this mailing list???
I think it was just jacked up for a little while - it seems to do this every-so-often --- Simon Harris [EMAIL PROTECTED] wrote: The mailing list seems to have gone quiet. Is there something we should know about? __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: Concurrency
Hi. Reposting this message. the next has already been received. This list lacks stability a lot. Not sure, if this has something to do with your problem. 1: java.util.List is an Interface. You can't have the Interface live, except in a class/object, implementing this interface. For an instance the class java.util.AbstractList is the first one, that implements this interface. so having a parameter/return value of type java.util.List means actualy an instance of a class implementing java.util.List. 2. Orion subclasses AbstractList in many places to implement it's lists. Quite handy. One place is the list OR-mapping, com.evermind.server.ejb.ORList. Are you sure, you don't use container managed Lists? BTW. I'm not exactly sure how do you access Concurently a StateLess Session Bean? I tried and got no result... Hmmm... Be well: Lachezar Hi ted, You are right, but the exeption is in an AbstractList and I'm not using any extension of AbstractList. In addition, the exeption is in com.evermind pakage. I have analyzed this package and I've seen that the method com.evermind.server.rmi.RMIServer.gb uses a java.util.List. Therefore I suppose that it is an orion problem when the SLSB is created. Thanks, Esteban -Original Message- From: Rice, Ted [mailto:[EMAIL PROTECTED]] Sent: Friday, July 27, 2001 1:45 PM To: Orion-Interest Subject: RE: Concurrency you are working with a non-synchronized collection. if you get an iterator and attempt to modify the backing list with multiple threads you will receive a ConcurrentModificationException. synchronize on the the iterator or list. ./ted -Original Message- From: Lopez Esteban [mailto:[EMAIL PROTECTED]] Sent: Friday, July 27, 2001 3:44 AM To: Orion-Interest Subject: Concurrency Hi Please help me. I am working with a stateless EJB and I have about 250 clients which has to use this EJB. When the clients access to the SLEJB concurretly, the Orion crash, and the server.log shows: 7/4/01 6:45 PM Internal server error java.util.ConcurrentModificationException at java.util.AbstractList$Itr.checkForComodification(Unknown Source) at java.util.AbstractList$Itr.next(Unknown Source) at java.util.AbstractCollection.remove(Unknown Source) at com.evermind.server.rmi.RMIServer.gb(JAX) at com.evermind.server.rmi.ba.run(JAX) at com.evermind.util.f.run(JAX) Anyone knows something about this. Thanks! Esteban.
RE: Transaction question
from the ejb-2.0 spec, it is a little unclear, but it says that putting a deafault transaction attribute is ok, and the default will be used for all methods that are not explicitly defined to have a different transaction attribute. so this should work, but if it does not, maybe orion interpreted the spec differently or has not implemented it correctly container-transaction method descriptionTransaction-handling for the SmsManager/description ejb-namenl.unwired.sgs.sms.SmsManager/ejb-name method-intfRemote/method-intf method-name*/method-name /method trans-attributeRequired/trans-attribute /container-transaction container-transaction method descriptionTransaction-handling for the SmsManager/description ejb-namenl.unwired.sgs.sms.SmsManager/ejb-name method-intfRemote/method-intf method-nameB/method-name /method trans-attributeRequiresNew/trans-attribute /container-transaction -Original Message- From: Eddie Post [mailto:[EMAIL PROTECTED]] Sent: Monday, August 06, 2001 1:48 AM To: Orion-Interest Subject: Re: Transaction question I already replyed to this message but noticed that it never came through... so here it is again... Thanks for the earlier reply. My reaction: I understand what you do below, but how must I define all this, such that - All me methods still have the trans-attribute set to Required (as before). - Only the new method B has the trans-attribute set to RequiredNew ? So what I am looking for is, some kind of default trans-attribute for all methods, if the trans-attribute isn't defined for the method in the xml file. As in the example below, I need to specify the trans-attribute for ALL my methods separately, which isn't a nice way, as I have a lot of methods, and it is easy to forget one, especialy when you add a new method. How do I do this ? (isn't there a way to set the trans-attribute property for methods with a regular expression or something like that ??) Eddie - Original Message - From: Simon Evans [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, July 26, 2001 7:49 PM Subject: RE: Transaction question i think you need transaction attribute 'RequiresNew' in B, and 'Requires' on A. then A has to catch B's remote exception. ejb-jar.xml like: container-transaction method descriptionTransaction-handling for the SmsManager/description ejb-namenl.unwired.sgs.sms.SmsManager/ejb-name method-intfRemote/method-intf method-nameA/method-name /method trans-attributeRequired/trans-attribute /container-transaction container-transaction method descriptionTransaction-handling for the SmsManager/description ejb-namenl.unwired.sgs.sms.SmsManager/ejb-name method-intfRemote/method-intf method-nameB/method-name /method trans-attributeRequiresNew/trans-attribute /container-transaction code like: A(){ try{ b(); } catch(Exception ex){} } so B will execute in a new transaction and rollback when an exception is thrown. A will finish wihtout throwing an exception and commit its own transaction. -Original Message- From: Eddie [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 26, 2001 8:08 AM To: Orion-Interest Subject: Re: Transaction question Hellu hellu, Please some advise on the question I posted some days ago (see below)? Eddie - Original Message - From: Eddie [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, July 24, 2001 10:47 AM Subject: Transaction question Hellu, I don't know how to configure the following transaction scenario with CMP. Please some help or maybe a little example: I have two bean methods: A and B. A calls B and I want that when B throws a RemoteException that A intercepts, that B performs a rollback and A not ! I know how to do that in the code (I think): A just catches the remoteException of B and doesn't throw it outside his method. However how do I configure this in the xml file ?? I now have the following in my ejb-jar.xml, which mean that all the methods execute in the same transaction: container-transaction method descriptionTransaction-handling for the SmsManager/description ejb-namenl.unwired.sgs.sms.SmsManager/ejb-name method-intfRemote/method-intf method-name*/method-name /method trans-attributeRequired/trans-attribute /container-transaction As far as I understand it, I have to configure that method B has RequiresNew set, but how do I configure this in the xml file, such that the rest still use Required ?? And is this the correct way to do it ??
Re: Server sometime stop responding (prompt of server is freezed)
Yes, you are probably running windows and had some text in the command prompt screen selected. Windows locks up all processes run from that windows if text is selected. Pressing enter will also unfreeze this. My suggestion: be careful with what you select :) -Pat At 12:02 PM 8/6/2001 +0200, you wrote: hi, I have an application on an orion server who stop responding for unknown reasons. But I have no way to find what's is wrong. A CTRL-C comand make it go again (not stop and restart, just unfreeze the prompt ) Does any know why, and how to fix it? -- Decornet Christophe Ingénieur Développement Tel :01.44.97.71.44 Société Fluxus 28/30 rue du chateau des rentiers 75013 Paris
Re: Transaction question
Seth, Thanks Seth I will try that, does the order in the xml file matters ? (first the default, and than the customized transaction attributes for example ). Eddie - Original Message - From: Seth Osher [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, August 06, 2001 4:57 PM Subject: RE: Transaction question Set up a default transaction-attribute for your bean. This is from the EJB 2.0 draft. Page 353 Section 17.4.1 Use a * for the method-name. method ejb-nameEJBNAME/ejb-name method-name*/method-name /method - Seth [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Post Sent: Monday, August 06, 2001 4:48 AM To: Orion-Interest Subject: Re: Transaction question I already replyed to this message but noticed that it never came through... so here it is again... Thanks for the earlier reply. My reaction: I understand what you do below, but how must I define all this, such that - All me methods still have the trans-attribute set to Required (as before). - Only the new method B has the trans-attribute set to RequiredNew ? So what I am looking for is, some kind of default trans-attribute for all methods, if the trans-attribute isn't defined for the method in the xml file. As in the example below, I need to specify the trans-attribute for ALL my methods separately, which isn't a nice way, as I have a lot of methods, and it is easy to forget one, especialy when you add a new method. How do I do this ? (isn't there a way to set the trans-attribute property for methods with a regular expression or something like that ??) Eddie - Original Message - From: Simon Evans [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, July 26, 2001 7:49 PM Subject: RE: Transaction question i think you need transaction attribute 'RequiresNew' in B, and 'Requires' on A. then A has to catch B's remote exception. ejb-jar.xml like: container-transaction method descriptionTransaction-handling for the SmsManager/description ejb-namenl.unwired.sgs.sms.SmsManager/ejb-name method-intfRemote/method-intf method-nameA/method-name /method trans-attributeRequired/trans-attribute /container-transaction container-transaction method descriptionTransaction-handling for the SmsManager/description ejb-namenl.unwired.sgs.sms.SmsManager/ejb-name method-intfRemote/method-intf method-nameB/method-name /method trans-attributeRequiresNew/trans-attribute /container-transaction code like: A(){ try{ b(); } catch(Exception ex){} } so B will execute in a new transaction and rollback when an exception is thrown. A will finish wihtout throwing an exception and commit its own transaction. -Original Message- From: Eddie [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 26, 2001 8:08 AM To: Orion-Interest Subject: Re: Transaction question Hellu hellu, Please some advise on the question I posted some days ago (see below)? Eddie - Original Message - From: Eddie [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, July 24, 2001 10:47 AM Subject: Transaction question Hellu, I don't know how to configure the following transaction scenario with CMP. Please some help or maybe a little example: I have two bean methods: A and B. A calls B and I want that when B throws a RemoteException that A intercepts, that B performs a rollback and A not ! I know how to do that in the code (I think): A just catches the remoteException of B and doesn't throw it outside his method. However how do I configure this in the xml file ?? I now have the following in my ejb-jar.xml, which mean that all the methods execute in the same transaction: container-transaction method descriptionTransaction-handling for the SmsManager/description ejb-namenl.unwired.sgs.sms.SmsManager/ejb-name method-intfRemote/method-intf method-name*/method-name /method trans-attributeRequired/trans-attribute /container-transaction As far as I understand it, I have to configure that method B has RequiresNew set, but how do I configure this in the xml file, such that the rest still use Required ?? And is this the correct way to do it ?? Please some help as I can't find anything on the Internet (mail-archive etc..), Eddie
RE: Error binding to server...... Exception
delete you application-deployments\application directory and start your server again. This is because if you have some old ejb-ref in the deployment and they are no more in your ejb-jar.xml. If you don't have any required files in that directory just delete the orionhome\application-deployments\application directory. This way orion deployes freshly the application and all new references will be made. Kesav Kumar Kolla Voquette Inc 650 356 3740(W) 510 889 6840(R) Voquette...Delivering Sound Information -Original Message-From: Vikas Malhotra [mailto:[EMAIL PROTECTED]]Sent: Monday, August 06, 2001 7:14 AMTo: Orion-InterestSubject: Error binding to server.. Exception Hi, i am facing a strange problem i have deployed some CMP beans. I can see their respective entry in the application-deployment folder, their respective orion-ejb-jar.xml are also created but now as i change the application.xml file and the server redeployes the beans it throws an error saying This Perticular problem is with a few CMP beans only the rest are working fine with the same setting. Error binding to server: javax.naming.NamingException: No location specified and no suitable instance of the type 'MpSellerManager' found for the ejb-ref MpSellerManagerHome Please help me out with this i am using JDK 1.3 with Orion Version. 1.5.2. Regards, Vikas *DisclaimerThis message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of thismessage, or the taking of any action based on it, is strictly prohibited.*Visit us at http://www.mahindrabt.com
Re: What happened to this mailing list???
perhaps the "weekend" struck again =) - scot Simon Harris wrote: The mailing list seems to have gone quiet. Is there something we should know about?
Re: What happened to this mailing list???
I think the list was down for a few days. No worries. WR - Original Message - From: Simon Harris To: Orion-Interest Sent: Monday, August 06, 2001 4:16 PM Subject: What happened to this mailing list??? The mailing list seems to have gone quiet. Is there something we should know about?
RE: What happened to this mailing list???
Hi all, Deploying 3 web-apps inoneapplication in Orion; Outside, Inside and Admin. Outside is mostly static, with a login section. The login section takes the user to the Inside app by calling into it via a /inside/Login.do?command=Login (using the popular Struts MVC syntax). This all works. Using Struts MVC (and even with my own), it appears that when trying to forward to a different web-app context, its not possible. At least not yet..could be my code. In MVC, the ControllerServlet running in one context, tries to forward to a resource. Almost always this is in the same servlet-context (web-app) as the ControllerServlet. In my case, I want a user to log out, which takes them to the outside index.jsp page again. The normal RequestDispatcher() is part of the Inside web-app context, so when it tries to forward to a /index.jsp, I would think the / would indicate the context to forward to. This doesn't appear to work. So then I tried using the ServletContext.getContext(url) call where the url is the same as the forwarding resource. Thus, to forward from any web-app to the outside "root" index.jsp page, I do something like: getServletContext().getContext("/index.jsp").getRequestDispatcher("/index.jsp").forward(request, response); This gets the right ServletContext of the root app. I have tested this by creating an object and setting it as an attribute in the /index.jsp, and in the ControllerServlet I get the ServletContext and look up the attribute (before trying to forward), and it finds it. So when using that ServletContext and trying to forward, its still not finding the page. I continue to get 404 not found errors. My question is..is it possible to forward from one web-app to another? It appears to work when I go from the / to the /inside context just fine (at least it appears that on the JSP page using a href or form action url path of /inside/Action.do, it does work by calling into the /inside web-app). I can't imagine that deploying multiple web-apps limits you to not even forwarding to another web-app. I do know you can't share any data between web-apps, but being able to jump from one web-app to another via links and via forwarding should work..shouldn't it? The API isn't exactly clear on this..but I will look at it again. Thanks.
ejbStore and Transactions
Can anyone tell me whats happening in the following scenario Session Bean A has transaction attribute set as 'Required' for all the methods except for method f2 which has the attribute 'RequiresNew'.Method f1 calls f2. and f2 calls another Entity Bean B which updates some data.The TX attribute for the Entity Bean is the default (ie 'Supports') I have also put a println in the ejbStore of the entity Bean. Session Bean A method f1() { System.out.println(Before calling f2..); f2(); System.out.println(End of method f1); } method f2() { System.out.println(Before calling Entity Bean..); Entity Bean B.updateData() System.out.println(End of method f2); } } The output sequence which i am getting is Before calling f2.. Before calling EntityBean End of method f2 End of method f1 ejbStore called Its the occurence of ejbStore , that i am not able to understand. Since method f2 has a transaction attribute of 'RequiresNew', a new transaction should be initiated at the beginning of method f2 and it should be committed after completion of f2.So ejbstore should get called immediately after method f2 is finished. Any help is greatly appreciated - Kishor
How to run Jetspeed (Open Source Enterprise Portal) on Orion
G'day, I took the following steps in order to run Jetspeed within Orion. The installation was easy, but I am receiving an error when trying to access the portal that doesn't happen under other servlet containers. Jetspeed is an Enterprise Information Portal and is freely available. It is available from the Jakarta project as open source. It is distributed as a WAR file archive here: http://jakarta.apache.org/builds/jakarta-jetspeed/release/v1.3-a1/Jetspeed-1.3a1-war.zip http://jakarta.apache.org/builds/jakarta-jetspeed/release/v1.3-a1/Jetspeed-1.3a1-war.tar.gz and it is also distributed in source form here: http://jakarta.apache.org/builds/jakarta-jetspeed/release/v1.3-a1/Jetspeed-1.3a1-src.zip http://jakarta.apache.org/builds/jakarta-jetspeed/release/v1.3-a1/Jetspeed-1.3a1-src.tar.gz I installed the WAR file into the Orion default web application as a quick way to deploy it to see how well it runs under Orion. First, I shut down Orion. Being a development machine, I can avoid needing to hot-deploy. I then followed Joseph Ottinger's instructions for adding a web application to the default web site: http://www.orionsupport.com/articles/addwebapp.html Specifically, I added the following line to $ORION/config/application.xml: web-module id=jetspeed path=/home/smeacham/Jetspeed-1.3a1/jetspeed.war / I also added the following line to $ORION/config/default-web-site.xml: web-app application=default name=jetspeed root=/jetspeed/ / I then started Orion again and the application auto-unpacked just fine. I then tried to access Jetspeed with a browser: http://localhost/jetspeed/ Orion gives a 403 forbidden error, saying that directory browsing is not allowed. I suppose that Orion doesn't use the index.jsp by default. I then tried to access index.jsp directly: http://localhost/jetspeed/index.jsp Orion then returned a 500 Internal Server Error. By looking at the logs, I noticed an exception being thrown about a properties the Turbine Resource File not being found. Since the path to the file looked wrong (the jetpeed/WEB-INF path didn't have the slash), I added one by editing jetspeed/WEB-INF/web.xml by adding a leading forward slash to the appropriate line (line 19 of 47). Then I tried this address again: http://localhost/jetspeed/index.jsp Everything got much farther along and the log file has a huge amount of logging informaiton from Jetspeed. The end result, however, is another 500 Internal Server Error: Here is the beginning of the exception: java.lang.IllegalStateException: OutputStream already retrieved at com.evermind[Orion/1.5.2 (build 10460)].server.http.EvermindHttpServletResponse.getWriter(Unknown Source) at org.apache.turbine.util.RunData.getOut(RunData.java:280)at org.apache.jetspeed.services.jsp.tags.JetspeedNavigationTag.doStartTag(J etspeedNavigationTag.java:142) at /WEB-INF/templates/jsp/layouts/html/default.jsp._jspService(/WEB-INF/tem plates/jsp/layouts/html/default.jsp.java:129) (JSP page line 19)at com.orionserver[Orion/1.5.2 (build 10460)].http.OrionHttpJspPage.service(Unknown Source) ... I understand what the error seems to be saying. You shouldn't obtain the outputstream from within a JSP. I've spend several hours trying to see what Jetspeed is doing to annoy Orion, but I haven't found it. Could somebody please help out? I'm a veteran developer and have quite a bit of web-based experience as well over the last two years, but I believe that I may have reached the limits of my JSP understanding and experience at this point. I believe that I got very close to getting Jetstream to deploy on Orion. Tis would be a big benefit to the Orion community, having an inexpensive (free) EIP that can be easily downloaded and deployed on our favorite platform. Steven
[Repost]: Class Reloading in Web-Apps
What are the capabilites of Orion in terms of class reloading, in relation to a deployed web application, while the server is running. If you change a java file, and recompile it to the ./WEB-INF/classes directory, should Orion not detect the change and use the new class? Are there any restrictions on whether the class is reloaded depending upon it's serialization to a session? Thanks. ./ted
Sharing Data Between web-apps and Appservers
Can you point me to where the spec talks about sharing data between web-apps. We are dealing with some of the same issues also. I didnt dig deep enough into the spec but was under theimpression that there was ways to pass the data between apps. I may be completely wrong. What about between appservers? Is it a good idea generally to try to deploy all your web-apps in one appserver or should you use multiple (instances) of the appservers. I guess this is really more ofaJ2EE question than an orion question but maybe someone wants to give it a whirl. Thanks. Casey Helbling -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Duffey, KevinSent: Monday, August 06, 2001 2:41 PMTo: Orion-InterestSubject: RE: What happened to this mailing list??? Hi all, Deploying 3 web-apps inoneapplication in Orion; Outside, Inside and Admin. Outside is mostly static, with a login section. The login section takes the user to the Inside app by calling into it via a /inside/Login.do?command=Login (using the popular Struts MVC syntax). This all works. Using Struts MVC (and even with my own), it appears that when trying to forward to a different web-app context, its not possible. At least not yet..could be my code. In MVC, the ControllerServlet running in one context, tries to forward to a resource. Almost always this is in the same servlet-context (web-app) as the ControllerServlet. In my case, I want a user to log out, which takes them to the outside index.jsp page again. The normal RequestDispatcher() is part of the Inside web-app context, so when it tries to forward to a /index.jsp, I would think the / would indicate the context to forward to. This doesn't appear to work. So then I tried using the ServletContext.getContext(url) call where the url is the same as the forwarding resource. Thus, to forward from any web-app to the outside "root" index.jsp page, I do something like: getServletContext().getContext("/index.jsp").getRequestDispatcher("/index.jsp").forward(request, response); This gets the right ServletContext of the root app. I have tested this by creating an object and setting it as an attribute in the /index.jsp, and in the ControllerServlet I get the ServletContext and look up the attribute (before trying to forward), and it finds it. So when using that ServletContext and trying to forward, its still not finding the page. I continue to get 404 not found errors. My question is..is it possible to forward from one web-app to another? It appears to work when I go from the / to the /inside context just fine (at least it appears that on the JSP page using a href or form action url path of /inside/Action.do, it does work by calling into the /inside web-app). I can't imagine that deploying multiple web-apps limits you to not even forwarding to another web-app. I do know you can't share any data between web-apps, but being able to jump from one web-app to another via links and via forwarding should work..shouldn't it? The API isn't exactly clear on this..but I will look at it again. Thanks.
Re: What happened to this mailing list???
Actually, was down for a few more than a few days. For most other products, this would be no big deal. But considering that this list is just about the only support available for orion, I think that keeping the list up should be somewhat of a priority. But since the list is being discussed, I would like to ask a question. Does anyone have any idea why messages sent to this list take so long to be distributed? It seems to be an average 3 hour or so delay on my end. I do not have this problem with the struts, resin, tomcat, or ant lists. It's not very efficient: often a question will be answered several times because responders are unaware that the question has been answered 2 hours previously.. And if you are looking for some advice or help, you better ask before 2pm or nobody (in your time zone at least) will see the message until the next morning. Bill Magnus Rydin wrote: I think the list was down for a few days. No worries. WR - Original Message - From: Simon Harris mailto:[EMAIL PROTECTED] To: Orion-Interest mailto:[EMAIL PROTECTED] Sent: Monday, August 06, 2001 4:16 PM Subject: What happened to this mailing list??? The mailing list seems to have gone quiet. Is there something we should know about?
Limit CPU utilization by Orion
Hello, Does any one know if Orion allows specifying a number for the execute thread count. Weblogic allows this to be configurable; in WebLogic, this value controls the number of simultaneous operations that can be performed by the WebLogic Server. This allows us to restrict the maximum resources the App Server can ever grab. Are there any equivalent options on Orion that will allow us to apply a throttle and control the CPU utilization even under high load. We have multiple processes running along with the App Server; if the App Server ends up hogging the CPU, puts too much load, it will result in degradation of performance for the other applications. One workaround I guess is that we could specify a lower priority on Solaris. But is there a configuration parameter that restricts the CPU utilization by Orion? Thanks, -Atul
RE: What happened to this mailing list???
I have the same problem. It didn't use to take this long. -Original Message- From: Bill Clinton [mailto:[EMAIL PROTECTED]] Sent: Monday, August 06, 2001 2:54 PM To: Orion-Interest Subject: Re: What happened to this mailing list??? Actually, was down for a few more than a few days. For most other products, this would be no big deal. But considering that this list is just about the only support available for orion, I think that keeping the list up should be somewhat of a priority. But since the list is being discussed, I would like to ask a question. Does anyone have any idea why messages sent to this list take so long to be distributed? It seems to be an average 3 hour or so delay on my end. I do not have this problem with the struts, resin, tomcat, or ant lists. It's not very efficient: often a question will be answered several times because responders are unaware that the question has been answered 2 hours previously.. And if you are looking for some advice or help, you better ask before 2pm or nobody (in your time zone at least) will see the message until the next morning. Bill Magnus Rydin wrote: I think the list was down for a few days. No worries. WR - Original Message - From: Simon Harris mailto:[EMAIL PROTECTED] To: Orion-Interest mailto:[EMAIL PROTECTED] Sent: Monday, August 06, 2001 4:16 PM Subject: What happened to this mailing list??? The mailing list seems to have gone quiet. Is there something we should know about?
RE: Sharing Data Between web-apps and Appservers
Ok..I have solved my problem. I added a little bit to my MVC framework to handle web-app context forwarding. As for your questions, you can use JNDI to share data between app servers. How exactly, I don't know..I read or someone told me that it can be done. EJB's are done in this manner, and I'd imagine you can do it from servlets. I don't have the API in front of me, but look to see if there is a setAttribute() or something for JNDI. I think the Context or InitialContext classes have these methods. Other than that, each web-app has its own "memory" space in a single JVM. J2EE allows one (or more) EAR files to run in one application server on one JVM, and in each EAR file you can have one (or more) web apps running (and EJBs, etc). Each EAR I believe is a completely separate application, and each web-app in that ear is separate from other web-apps in that ear or in other ears deployed in the same JVM. Again, I think JNDI and perhaps the JVM Context are the only ways to share data between apps running in the same JVM. Although, if your working in a clusterable environment, I wouldn't program your app to expect data from within the same JVM. EJB 2.0 has added "local" EJBs so that if the app server sees the EJB being retrieved is in the same JVM, it can return a local reference and avoid the network hit. As for deploying in one app server..I think that depends. First, what is your hardware limit? Second, does it make sense to deploy them in one server? For example, in my case, I am deploying 3 separate but somewhat related web-apps. It needs to be possible that a link from one web-app can traverse into another web-app. Therefore, it is absolutely required for me to deploy the 3 web-apps in the same container. Each can be clustered as needed. Infact, I only need to cluster the /inside web-app, as its the only one that really uses the session state. The /outside is mostly static, and the /admin is related to internal employees that is not necessary to cluster. Infact, the /admin site can run completely on its own, but I can provide a connector from my /inside site to the /admin site should the logged in user have the right priveleges to access it. HTH. -Original Message-From: Casey Helbling [mailto:[EMAIL PROTECTED]]Sent: Monday, August 06, 2001 2:31 PMTo: Orion-InterestSubject: Sharing Data Between web-apps and Appservers Can you point me to where the spec talks about sharing data between web-apps. We are dealing with some of the same issues also. I didnt dig deep enough into the spec but was under theimpression that there was ways to pass the data between apps. I may be completely wrong. What about between appservers? Is it a good idea generally to try to deploy all your web-apps in one appserver or should you use multiple (instances) of the appservers. I guess this is really more ofaJ2EE question than an orion question but maybe someone wants to give it a whirl. Thanks. Casey Helbling -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Duffey, KevinSent: Monday, August 06, 2001 2:41 PMTo: Orion-InterestSubject: RE: What happened to this mailing list??? Hi all, Deploying 3 web-apps inoneapplication in Orion; Outside, Inside and Admin. Outside is mostly static, with a login section. The login section takes the user to the Inside app by calling into it via a /inside/Login.do?command=Login (using the popular Struts MVC syntax). This all works. Using Struts MVC (and even with my own), it appears that when trying to forward to a different web-app context, its not possible. At least not yet..could be my code. In MVC, the ControllerServlet running in one context, tries to forward to a resource. Almost always this is in the same servlet-context (web-app) as the ControllerServlet. In my case, I want a user to log out, which takes them to the outside index.jsp page again. The normal RequestDispatcher() is part of the Inside web-app context, so when it tries to forward to a /index.jsp, I would think the / would indicate the context to forward to. This doesn't appear to work. So then I tried using the ServletContext.getContext(url) call where the url is the same as the forwarding resource. Thus, to forward from any web-app to the outside "root" index.jsp page, I do something like: getServletContext().getContext("/index.jsp").getRequestDispatcher("/index.jsp").forward(request, response); This gets the right ServletContext of the root app. I have tested this by creating an object and setting it as an attribute in the /index.jsp, and in the ControllerServlet I get the ServletContext and look up the attribute (before trying to forward), and it finds it. So when using that ServletContext and trying to forward, its still
RE: What happened to this mailing list???
Servlet2.3 doesn't specify any sharing between web applications. You can't forward request from one application to another this is not possible with existing spec. If you need this kind of functionality you can get with redirect. As far with servlet2.3 each web application is independent and their resource loading and class loading are different. Kesav Kumar Kolla Voquette Inc 650 356 3740(W) 510 889 6840(R) Voquette...Delivering Sound Information -Original Message-From: Duffey, Kevin [mailto:[EMAIL PROTECTED]]Sent: Monday, August 06, 2001 12:41 PMTo: Orion-InterestSubject: RE: What happened to this mailing list??? Hi all, Deploying 3 web-apps inoneapplication in Orion; Outside, Inside and Admin. Outside is mostly static, with a login section. The login section takes the user to the Inside app by calling into it via a /inside/Login.do?command=Login (using the popular Struts MVC syntax). This all works. Using Struts MVC (and even with my own), it appears that when trying to forward to a different web-app context, its not possible. At least not yet..could be my code. In MVC, the ControllerServlet running in one context, tries to forward to a resource. Almost always this is in the same servlet-context (web-app) as the ControllerServlet. In my case, I want a user to log out, which takes them to the outside index.jsp page again. The normal RequestDispatcher() is part of the Inside web-app context, so when it tries to forward to a /index.jsp, I would think the / would indicate the context to forward to. This doesn't appear to work. So then I tried using the ServletContext.getContext(url) call where the url is the same as the forwarding resource. Thus, to forward from any web-app to the outside "root" index.jsp page, I do something like: getServletContext().getContext("/index.jsp").getRequestDispatcher("/index.jsp").forward(request, response); This gets the right ServletContext of the root app. I have tested this by creating an object and setting it as an attribute in the /index.jsp, and in the ControllerServlet I get the ServletContext and look up the attribute (before trying to forward), and it finds it. So when using that ServletContext and trying to forward, its still not finding the page. I continue to get 404 not found errors. My question is..is it possible to forward from one web-app to another? It appears to work when I go from the / to the /inside context just fine (at least it appears that on the JSP page using a href or form action url path of /inside/Action.do, it does work by calling into the /inside web-app). I can't imagine that deploying multiple web-apps limits you to not even forwarding to another web-app. I do know you can't share any data between web-apps, but being able to jump from one web-app to another via links and via forwarding should work..shouldn't it? The API isn't exactly clear on this..but I will look at it again. Thanks.
Re: [Repost]: Class Reloading in Web-Apps
I'm sure somebody can give you a more elaborate answer, but since you are reposting, I'll give you the limited info I have! It has been our experience that you can simply copy over your class files in the WEB-INF\classes directory, but then go and touch the web.xml file to cause Orion to re-deploy. Works for us very well. --Ken - Original Message - From: Rice, Ted [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, August 06, 2001 2:09 PM Subject: [Repost]: Class Reloading in Web-Apps What are the capabilites of Orion in terms of class reloading, in relation to a deployed web application, while the server is running. If you change a java file, and recompile it to the ./WEB-INF/classes directory, should Orion not detect the change and use the new class? Are there any restrictions on whether the class is reloaded depending upon it's serialization to a session? Thanks. /ted
RE: What happened to this mailing list???
Hmm..I am able to forward to a different web-app context no problem..although I am not sure if it is ok to do so or not. What I do is: web-app context user is in = /inside web-app context user wants to go to = / String forwardPath = "/index.jsp"; String contextPath = request.getContextPath(); // yields /inside in this example ServletContext sc = getSerlvetContext().getContext(forwardPath); sc.getRequestDispatcher(forwardPath).forward(request,response); Right now this seems to work fine. Maybe its not allowed..but it does work. The caveat is that I have to use %= contextPath % in EVERY resource link, image, etc on every JSP page. My purpose is to make sure a web-app is properly developed so that it could be deployed with othe web-apps without any conflict, any improper resource links, etc. I am going to be playing around with this a bit more, but right now it seems to work. I am only testing this in Orion, so I can't possibly know if it works in other servlet engines. Needless to say, I did add the redirect capability to my MVC framework just incase. -Original Message-From: Kesav Kumar [mailto:[EMAIL PROTECTED]]Sent: Monday, August 06, 2001 4:58 PMTo: Orion-InterestSubject: RE: What happened to this mailing list??? Servlet2.3 doesn't specify any sharing between web applications. You can't forward request from one application to another this is not possible with existing spec. If you need this kind of functionality you can get with redirect. As far with servlet2.3 each web application is independent and their resource loading and class loading are different. Kesav Kumar Kolla Voquette Inc 650 356 3740(W) 510 889 6840(R) Voquette...Delivering Sound Information -Original Message-From: Duffey, Kevin [mailto:[EMAIL PROTECTED]]Sent: Monday, August 06, 2001 12:41 PMTo: Orion-InterestSubject: RE: What happened to this mailing list??? Hi all, Deploying 3 web-apps inoneapplication in Orion; Outside, Inside and Admin. Outside is mostly static, with a login section. The login section takes the user to the Inside app by calling into it via a /inside/Login.do?command=Login (using the popular Struts MVC syntax). This all works. Using Struts MVC (and even with my own), it appears that when trying to forward to a different web-app context, its not possible. At least not yet..could be my code. In MVC, the ControllerServlet running in one context, tries to forward to a resource. Almost always this is in the same servlet-context (web-app) as the ControllerServlet. In my case, I want a user to log out, which takes them to the outside index.jsp page again. The normal RequestDispatcher() is part of the Inside web-app context, so when it tries to forward to a /index.jsp, I would think the / would indicate the context to forward to. This doesn't appear to work. So then I tried using the ServletContext.getContext(url) call where the url is the same as the forwarding resource. Thus, to forward from any web-app to the outside "root" index.jsp page, I do something like: getServletContext().getContext("/index.jsp").getRequestDispatcher("/index.jsp").forward(request, response); This gets the right ServletContext of the root app. I have tested this by creating an object and setting it as an attribute in the /index.jsp, and in the ControllerServlet I get the ServletContext and look up the attribute (before trying to forward), and it finds it. So when using that ServletContext and trying to forward, its still not finding the page. I continue to get 404 not found errors. My question is..is it possible to forward from one web-app to another? It appears to work when I go from the / to the /inside context just fine (at least it appears that on the JSP page using a href or form action url path of /inside/Action.do, it does work by calling into the /inside web-app). I can't imagine that deploying multiple web-apps limits you to not even forwarding to another web-app. I do know you can't share any data between web-apps, but being able to jump from one web-app to another via links and via forwarding should work..shouldn't it? The API isn't exactly clear on this..but I will look at it again. Thanks.
deploy error
when i deploy one app into orion1.5.2, it thorw the following exceptions: Auto-deploying registerEjb (orion-ejb-jar.xml had been updated since the previou s deployment)... java.lang.NullPointerException at com.evermind._px._hjd(Unknown Source) at com.evermind._px._hjd(Unknown Source) at com.evermind._px._gyd(Unknown Source) at com.evermind._px._bb(Unknown Source) at com.evermind._au._bb(Unknown Source) at com.evermind._dq._qzb(Unknown Source) at com.evermind._ck._qzb(Unknown Source) at com.evermind._ck._at(Unknown Source) at com.evermind.server.ApplicationServer._as(Unknown Source) at com.evermind.server.ApplicationServer._wl(Unknown Source) at com.evermind.server.ApplicationServer._at(Unknown Source) at com.evermind._in.run(Unknown Source) at java.lang.Thread.run(Thread.java:484) at com.evermind._if.run(Unknown Source) the only change i made is to change the value of the attribute location of entity-deployment. for example: i change FROM entity-deployment name=com.eii.post.vpn.ejb.register.Role location=com.role / TO entity-deployment name=com.eii.post.vpn.ejb.register.Role location=ejb/role / but orion1.5.2 throw the above exceptions, when i deploy it in orion1.4.5, it goese well.who know why the orion1.5.2 throw that exception. any hints will be appreciated. __ DVD´óƬ£¬Ò»ÂÉ10Ôª http://shopping.263.net/category02.htm ÃÀÈÝÑøÑÕ¡¢¼õ·ÊÊÝÉíÃؾ÷ http://shopping.263.net/category10.htm
jsp:useBean Issue / Epicentric ?
First off, is anyone using Orion with Epicentric Foundation Server 3.5? If so, what version of Orion are you succesfully using it with? It seems that alot of the 'stock modules' (jsp files) and other jsp's that ship with EFS 3.5 aren't using bodyless tags, ie: jsp:useBean foo=bar/jsp:useBean and that Orion (?) is complaining about this: jsp:useBean without a set 'class' or 'beanName' attribute cannot have a body, use a bodyless tag (jsp:useBean ... /) Orion wants you to use a bodyless tag: jsp:useBean foo=bar / Question is, is there a 'legacy' switch somewhere that I can turn on that'll allow the JSPServlet to deal with bodyless tags. Or should I just patch all these .jsp files to actually be bodyless? I'd rather not patch because then I'll have to propogate my changes with each EFS update, and potentially patch other oddities as they arise. Env: jdk 1.3.1, Orion 1.4.5 through 1.5.2, EFS 3.5SP1 Any help is appreciated. -- David S. Kenzik [EMAIL PROTECTED] - http://kenzik.com Original Music - http://text.org
having to specify location attribute in orion-ejb-jar.xml...
For some reason, I always have to specify the location= attribute on every ejb-ref-name in orion-ejb-jar.xml. If I don't do this, the beans cannot find each other through an ejb-ref tag. I am using the link tag in ejb-jar.xml, but that does not translate into a location attribute in orion-ejb-jar.xml. Has anyone else seen this problem. Is this a bug? Thanks. -AP_
Developing with Jbuilder
Is there some sort of plugin, or has anyne configured jbuilder to allow it to use its EJB functionality but with orion? I wanna build deployment descriptors etc... I realize if you build an ear, it will auto re-deploy on the orion server if its been setup Any info would be wonderfull WEs
Re: What happened to this mailing list???
This is because you might have given welcome page as index.jsp. If you set your index.jsp as part ofwelcome pageyour request /inside/ yields to /inside/index.jsp. The best way for you test is use of telnet this gives you exact idea of what is happening. - Original Message - From: Duffey, Kevin To: Orion-Interest Sent: Monday, August 06, 2001 6:22 PM Subject: RE: What happened to this mailing list??? Hmm..I am able to forward to a different web-app context no problem..although I am not sure if it is ok to do so or not. What I do is: web-app context user is in = /inside web-app context user wants to go to = / String forwardPath = "/index.jsp"; String contextPath = request.getContextPath(); // yields /inside in this example ServletContext sc = getSerlvetContext().getContext(forwardPath); sc.getRequestDispatcher(forwardPath).forward(request,response); Right now this seems to work fine. Maybe its not allowed..but it does work. The caveat is that I have to use %= contextPath % in EVERY resource link, image, etc on every JSP page. My purpose is to make sure a web-app is properly developed so that it could be deployed with othe web-apps without any conflict, any improper resource links, etc. I am going to be playing around with this a bit more, but right now it seems to work. I am only testing this in Orion, so I can't possibly know if it works in other servlet engines. Needless to say, I did add the redirect capability to my MVC framework just incase. -Original Message-From: Kesav Kumar [mailto:[EMAIL PROTECTED]]Sent: Monday, August 06, 2001 4:58 PMTo: Orion-InterestSubject: RE: What happened to this mailing list??? Servlet2.3 doesn't specify any sharing between web applications. You can't forward request from one application to another this is not possible with existing spec. If you need this kind of functionality you can get with redirect. As far with servlet2.3 each web application is independent and their resource loading and class loading are different. Kesav Kumar Kolla Voquette Inc 650 356 3740(W) 510 889 6840(R) Voquette...Delivering Sound Information -Original Message-From: Duffey, Kevin [mailto:[EMAIL PROTECTED]]Sent: Monday, August 06, 2001 12:41 PMTo: Orion-InterestSubject: RE: What happened to this mailing list??? Hi all, Deploying 3 web-apps inoneapplication in Orion; Outside, Inside and Admin. Outside is mostly static, with a login section. The login section takes the user to the Inside app by calling into it via a /inside/Login.do?command=Login (using the popular Struts MVC syntax). This all works. Using Struts MVC (and even with my own), it appears that when trying to forward to a different web-app context, its not possible. At least not yet..could be my code. In MVC, the ControllerServlet running in one context, tries to forward to a resource. Almost always this is in the same servlet-context (web-app) as the ControllerServlet. In my case, I want a user to log out, which takes them to the outside index.jsp page again. The normal RequestDispatcher() is part of the Inside web-app context, so when it tries to forward to a /index.jsp, I would think the / would indicate the context to forward to. This doesn't appear to work. So then I tried using the ServletContext.getContext(url) call where the url is the same as the forwarding resource. Thus, to forward from any web-app to the outside "root" index.jsp page, I do something like: getServletContext().getContext("/index.jsp").getRequestDispatcher("/index.jsp").forward(request, response); This gets the right ServletContext of the root app. I have tested this by creating an object and setting it as an attribute in the /index.jsp, and in the ControllerServlet I get the ServletContext and look up the attribute (before trying to forward), and it finds it. So when using that ServletContext and trying to forward, its still not finding the page. I continue to get 404 not found errors. My question is..is it possible to forward from one web-app to another? It appears to work when I go from the / to the /inside context just fine (at least it appears that on the JSP page using a href or form action url path of /inside/Action.do, it does work by calling into the /inside web-app). I can't imagine that deploying multiple web-apps limits you to not even forwarding to another web-app. I do know you can't share any data between web-apps, but being able to jump from one web-app to another via links and via forwarding should work..shouldn't it? The API isn't exactly