Re: starting orion application server
though in my last email i misspelled it , the directory name i created is correct (persistance, right?) cheers... - Original Message - From: Mark Bernardinis [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, October 09, 2001 7:02 AM Subject: Re: starting orion application server have you spelled persistance right??? hi E.W! thanks for your reply, but it seems you didn't receive my last message. i am on win 2000, and i used winzip to unpack orion package. tools.jar is already in c:\orion directory and i already created a persistence directory, but everysthing is still same. What can be wrong, where am i mistaken? Can you help me with this? thank you very much for taking time and for your concern. best regards :) - Original Message - From: The elephantwalker [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, October 08, 2001 12:14 PM Subject: RE: starting orion application server Dear Yilmaz, I have seen this problem before in linux. If you used jar to unzip the Orion distribution, the directories created did not have the bit set for each orion directory. This prevents Orion from creating files in these directories. You need to do a chmod +d to all of these directories, and their sub directories. Its a pain in the arse (excuse my old english), but so it goes. Regards, the elephantwalker www.elephantwalker.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of yilmaz Sent: Sunday, October 07, 2001 6:44 PM To: Orion-Interest Subject: Re: starting orion application server hi Steve, thanks for your kind reply. I created the persistance directory, but the error is still persisting :) ( i already copied the tools.jar into the orion home directory, and i am using sun's jdk1.3.1 ) below is the log file i tried to start it up: 2001/10/8 ä¸Så^ 9:41 1.5.2 Started 2001/10/8 ä¸Så^ 9:41 1.5.2 Stopped (JVM termination) i am having the same error message saying that (persistance/transaction.state) doesn't exist.Obviously it can't find the transaction.state file. How should i create it , or do you have a sample one so that i can configure according to my environment.Thanks in advance. cheers :) - Original Message - From: Stephen Davidson [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Saturday, October 06, 2001 11:05 PM Subject: Re: Orion-Interest subscription notification Hi Yilmaz. You are obviously new here, or you would know that you do not need to threaten in order to get help. On the topic of the persitance directory, there is an issue where this directory is not created automatically under WinNT/Win2K. So you have to create it manually yourself. You do NOT need to put the orion directory into your classpath. The following command issued in the orion directory should fix your issue with the transaction.state file. C:\orionmkdir persistance I know about this because one of the developers on my team ran into this issue yesterday when setting up Orion on his Win2K box. If you have not done so already, you also need to copy the tools.jar file from your jdk directory into your c:\orion directory. FYI, our testing has indicated that orion works best on Bea's JDK, Sun's JDK, or IBM's Hotspot JDK. On Microsoft's JVM, we sometimes get for no apparent reason some rather funky errors that go away when we switch JVM's. Regards, Steve yilmaz wrote: hi guys, i am new to orion, i already downloaded orion application server, and unzipped under c:\orion directory. according to instructions i also put the tools.jar under c:\orion Next on command window , i ran java -jar orion.jar -install which prompted me to enter a password, and it said installation was done though i was surprised to finish so fast, i tried running orion by java -jar orion.jar as i expected it didn't start , but gave me the following strange error: C:\orionjava -jar orion.jar Fatal Error: Transaction log file (/C:/orion/persistence/transaction.state) did not exist and was not possible to create, the most common reason for this is an invalid path or Orion lacking security to write to that path: /C:/orion/persiste nce/transaction.state (系統æ?¾ä¸?Ã¥^°æ??å®sçs?è·¯å¾?ã?,) (the last part of the message says system couldn't find the path in chinese). can someone help me please with this, so far i have used tomacat3, tomcat 4, jsdk, etc.. i have never seen this kind of strange problem, and i don't have any idea how to solve it i tried several methods in vain. i put c:\orion in my path, it didn't help please give me some help, ( before i decide to switch to another
RE: Problem using custom tags.
inline -Original Message- From: E Stones [mailto:[EMAIL PROTECTED]] Sent: den 8 oktober 2001 14:01 To: Orion-Interest Subject: Problem using custom tags. The following example is taken from Chapter 2 of Advanced Java Server Pages by David M. Geary I'm getting this error when I try to implement to code sample below: -- 500 Internal Server Error: Error parsing JSP page /test1.jsp line 13 Bean 'item' already defined -- Has anyone any ideas what might be the problem? *** test.jsp code: *** htmlheadtitleAn Iterator/title/head %@ taglib uri='/WEB-INF/tlds/iterator.tld' prefix='it' % body % java.util.Vector vector = new java.util.Vector(); vector.addElement(one); vector.addElement(two); vector.addElement(three); vector.addElement(four); % Iterating over %= vector % ...p --- declaration of item it:iterate id='item' collection='%= vector %' --- declaration 2 of item !--jsp:useBean id='item' scope='page' class='java.lang.String'/-- //above should not be necessary. Item: %= item %br /it:iterate /p /body /html Iterator.tld ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN web-jsptaglib_1_1.dtd taglib tlibversion1.0/tlibversion jspversion1.1/jspversion shortnamesmp/shortname infoSun Microsystems Press Tag Library/info tag nameiterate/name tagclasstags.IteratorTag/tagclass teiclasstags.IteratorTagInfo/teiclass bodycontentJSP/bodycontent attribute nameid/name requiredtrue/required rtexprvaluetrue/rtexprvalue /attribute attribute namecollection/name requiredtrue/required rtexprvaluetrue/rtexprvalue /attribute infoIterates over a collection/info /tag /taglib *** IteratorTag.java *** import java.util.Collection; import java.util.Iterator; import javax.servlet.jsp.JspException; import javax.servlet.jsp.PageContext; import javax.servlet.jsp.tagext.BodyTagSupport; public class IteratorTag extends BodyTagSupport { private Collection collection; private Iterator iterator; public void setCollection(Collection collection) { this.collection = collection; } public int doStartTag() throws JspException { return collection.size() 0 ? EVAL_BODY_TAG : SKIP_BODY; } public void doInitBody() throws JspException { iterator = collection.iterator(); pageContext.setAttribute(getId(), iterator.next()); } public int doAfterBody() throws JspException { if(iterator.hasNext()) { pageContext.setAttribute(getId(), iterator.next()); return EVAL_BODY_TAG; } else { try { getBodyContent().writeOut(getPreviousOut()); } catch(java.io.IOException e) { throw new JspException(e.getMessage()); } return SKIP_BODY; } } } * IteratorTagInfo.java * package tags; import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.*; public class IteratorTagInfo extends TagExtraInfo { public VariableInfo[] getVariableInfo(TagData data) { return new VariableInfo[] { new VariableInfo(data.getId(), // scripting var's name java.lang.Object, // variable's type true, // whether variable is created VariableInfo.NESTED) // scope }; } } _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
RE: Query help please ??
This might seem like a stupid suggestion but try changing the order you pass the parameters in so the number of records you are retrieving is first and the id is second. If you look at the generated queryit uses P1 and P2 and if they standard for parameters they are the wrong way around. Its worth a try. Owen -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of EddieSent: 08 October 2001 19:53To: Orion-InterestSubject: Query help please ??Hellu,I have problems with a advanced finder, in combination with the Ms SQLserver.I have a the following finder: finder-method query="select top $2 * from sgssmsmo where acc_id=$1 orderby dattimrec desc" partial="false" !-- Generated SQL: "select top ? * from sgssmsmo where acc_id=? orderby dattimrec desc" -- method ejb-namenl.unwired.sgs.sms.SmsMo/ejb-name method-namefindByAcc_IdNext/method-name method-params method-paramint/method-param method-paramint/method-param /method-params /method /finder-method-The SUN jdbc-odbc driver (I also tried the i-net Opta driver) fires thefollowing query (see with the Ms profiler):declare @P1 intset @P1=NULLexec sp_prepexec @P1 output, N'@P1 int,@P2 int', N'select top @P1 * fromsgssmsmo where acc_id=@P2 order by dattimrec desc', 0, 2select @P1---Which gives the following error:- Nested exception is:java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '@P1'. at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.SQLExecute(Unknown Source) at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(UnknownSource) ..-If I change the $2 argument in the finder to a constant:--- finder-method query="select top 5 * from sgssmsmo where acc_id=$2 orderby dattimrec desc" partial="false" !-- Generated SQL: "select top 5 * from sgssmsmo where acc_id=? orderby dattimrec desc" -- method ejb-namenl.unwired.sgs.sms.SmsMo/ejb-name method-namefindByAcc_IdNext/method-name method-params method-paramint/method-param method-paramint/method-param /method-params /method /finder-method--Everyting goes fine ?!!!, that is, the driver fires the following query:-declare @P1 intset @P1=1exec sp_prepexec @P1 output, N'@P1 int', N'select top 5 * from sgssmsmowhere acc_id=@P1 order by dattimrec desc', 0select @P1-Any idea what it is ??? (I am not such a Ms SQL server expert yet ...)I print the input argument and they aren't zero or null: public Collection findByAcc_IdNext(int acc_Id, int num) throwsRemoteException, FinderException;BTW: I use Orion 1.5.1 and are parsing it all so that it can be used on theMs SQL database, whereas it worked on the Postgres database.Why isn't Orion/the JDBC driver just firing the generated query that I seein the orion-ejb.jar file ???.What am I missing here :(Eddie
RE: starting orion application server
Hi! The directory name should be persistence with an e. I don't know if this is the correct spelling of the word, but that's what my Orion directory is called ;) (In my case: E:\orion\persistence ) HTH, Fredrik Bromee -Original Message- From: yilmaz [mailto:[EMAIL PROTECTED]] Sent: den 9 oktober 2001 08:47 To: Orion-Interest Subject: Re: starting orion application server though in my last email i misspelled it , the directory name i created is correct (persistance, right?) cheers... - Original Message - From: Mark Bernardinis [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, October 09, 2001 7:02 AM Subject: Re: starting orion application server have you spelled persistance right??? hi E.W! thanks for your reply, but it seems you didn't receive my last message. i am on win 2000, and i used winzip to unpack orion package. tools.jar is already in c:\orion directory and i already created a persistence directory, but everysthing is still same. What can be wrong, where am i mistaken? Can you help me with this? thank you very much for taking time and for your concern. best regards :) - Original Message - From: The elephantwalker [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, October 08, 2001 12:14 PM Subject: RE: starting orion application server Dear Yilmaz, I have seen this problem before in linux. If you used jar to unzip the Orion distribution, the directories created did not have the bit set for each orion directory. This prevents Orion from creating files in these directories. You need to do a chmod +d to all of these directories, and their sub directories. Its a pain in the arse (excuse my old english), but so it goes. Regards, the elephantwalker www.elephantwalker.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of yilmaz Sent: Sunday, October 07, 2001 6:44 PM To: Orion-Interest Subject: Re: starting orion application server hi Steve, thanks for your kind reply. I created the persistance directory, but the error is still persisting :) ( i already copied the tools.jar into the orion home directory, and i am using sun's jdk1.3.1 ) below is the log file i tried to start it up: 2001/10/8 ä¸Så^ 9:41 1.5.2 Started 2001/10/8 ä¸Så^ 9:41 1.5.2 Stopped (JVM termination) i am having the same error message saying that (persistance/transaction.state) doesn't exist.Obviously it can't find the transaction.state file. How should i create it , or do you have a sample one so that i can configure according to my environment.Thanks in advance. cheers :) - Original Message - From: Stephen Davidson [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Saturday, October 06, 2001 11:05 PM Subject: Re: Orion-Interest subscription notification Hi Yilmaz. You are obviously new here, or you would know that you do not need to threaten in order to get help. On the topic of the persitance directory, there is an issue where this directory is not created automatically under WinNT/Win2K. So you have to create it manually yourself. You do NOT need to put the orion directory into your classpath. The following command issued in the orion directory should fix your issue with the transaction.state file. C:\orionmkdir persistance I know about this because one of the developers on my team ran into this issue yesterday when setting up Orion on his Win2K box. If you have not done so already, you also need to copy the tools.jar file from your jdk directory into your c:\orion directory. FYI, our testing has indicated that orion works best on Bea's JDK, Sun's JDK, or IBM's Hotspot JDK. On Microsoft's JVM, we sometimes get for no apparent reason some rather funky errors that go away when we switch JVM's. Regards, Steve yilmaz wrote: hi guys, i am new to orion, i already downloaded orion application server, and unzipped under c:\orion directory. according to instructions i also put the tools.jar under c:\orion Next on command window , i ran java -jar orion.jar -install which prompted me to enter a password, and it said installation was done though i was surprised to finish so fast, i tried running orion by java -jar orion.jar as i expected it didn't start , but gave me the following strange error: C:\orionjava -jar orion.jar Fatal Error: Transaction log file (/C:/orion/persistence/transaction.state) did not exist and was not possible to create, the most common reason for this is an invalid path or Orion lacking security to
Re: Query help please ??
Hellu, I solved it. Appearantly you can't give an argument to the top command of Ms SQL. I solved ti through SET ROWCOUNT. Eddie - Original Message - From: Eddie To: Orion-Interest Sent: Monday, October 08, 2001 8:52 PM Subject: Query help please ?? Hellu,I have problems with a advanced finder, in combination with the Ms SQLserver.I have a the following finder: finder-method query="select top $2 * from sgssmsmo where acc_id=$1 orderby dattimrec desc" partial="false" !-- Generated SQL: "select top ? * from sgssmsmo where acc_id=? orderby dattimrec desc" -- method ejb-namenl.unwired.sgs.sms.SmsMo/ejb-name method-namefindByAcc_IdNext/method-name method-params method-paramint/method-param method-paramint/method-param /method-params /method /finder-method-The SUN jdbc-odbc driver (I also tried the i-net Opta driver) fires thefollowing query (see with the Ms profiler):declare @P1 intset @P1=NULLexec sp_prepexec @P1 output, N'@P1 int,@P2 int', N'select top @P1 * fromsgssmsmo where acc_id=@P2 order by dattimrec desc', 0, 2select @P1---Which gives the following error:- Nested exception is:java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '@P1'. at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.SQLExecute(Unknown Source) at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(UnknownSource) ..-If I change the $2 argument in the finder to a constant:--- finder-method query="select top 5 * from sgssmsmo where acc_id=$2 orderby dattimrec desc" partial="false" !-- Generated SQL: "select top 5 * from sgssmsmo where acc_id=? orderby dattimrec desc" -- method ejb-namenl.unwired.sgs.sms.SmsMo/ejb-name method-namefindByAcc_IdNext/method-name method-params method-paramint/method-param method-paramint/method-param /method-params /method /finder-method--Everyting goes fine ?!!!, that is, the driver fires the following query:-declare @P1 intset @P1=1exec sp_prepexec @P1 output, N'@P1 int', N'select top 5 * from sgssmsmowhere acc_id=@P1 order by dattimrec desc', 0select @P1-Any idea what it is ??? (I am not such a Ms SQL server expert yet ...)I print the input argument and they aren't zero or null: public Collection findByAcc_IdNext(int acc_Id, int num) throwsRemoteException, FinderException;BTW: I use Orion 1.5.1 and are parsing it all so that it can be used on theMs SQL database, whereas it worked on the Postgres database.Why isn't Orion/the JDBC driver just firing the generated query that I seein the orion-ejb.jar file ???.What am I missing here :(Eddie
Re: starting orion application server
i actually spelled mine persistence and it worked. i had the same problem when i first installed on a win32 system and i just created the directory and it worked upon loading up the second time. the file that is called transaction.state does not need to be created (in my instance). i am using jdk1.3 from sun on a windows 98 machine. just give it a try and create the directory with that spelling i gave you and see how it goes (it can't hurt :-) hope all goes well. mark - Original Message - From: yilmaz [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, October 09, 2001 4:46 PM Subject: Re: starting orion application server though in my last email i misspelled it , the directory name i created is correct (persistance, right?) cheers... - Original Message - From: Mark Bernardinis [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, October 09, 2001 7:02 AM Subject: Re: starting orion application server have you spelled persistance right??? hi E.W! thanks for your reply, but it seems you didn't receive my last message. i am on win 2000, and i used winzip to unpack orion package. tools.jar is already in c:\orion directory and i already created a persistence directory, but everysthing is still same. What can be wrong, where am i mistaken? Can you help me with this? thank you very much for taking time and for your concern. best regards :) - Original Message - From: The elephantwalker [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, October 08, 2001 12:14 PM Subject: RE: starting orion application server Dear Yilmaz, I have seen this problem before in linux. If you used jar to unzip the Orion distribution, the directories created did not have the bit set for each orion directory. This prevents Orion from creating files in these directories. You need to do a chmod +d to all of these directories, and their sub directories. Its a pain in the arse (excuse my old english), but so it goes. Regards, the elephantwalker www.elephantwalker.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of yilmaz Sent: Sunday, October 07, 2001 6:44 PM To: Orion-Interest Subject: Re: starting orion application server hi Steve, thanks for your kind reply. I created the persistance directory, but the error is still persisting :) ( i already copied the tools.jar into the orion home directory, and i am using sun's jdk1.3.1 ) below is the log file i tried to start it up: 2001/10/8 ä¸Så^ 9:41 1.5.2 Started 2001/10/8 ä¸Så^ 9:41 1.5.2 Stopped (JVM termination) i am having the same error message saying that (persistance/transaction.state) doesn't exist.Obviously it can't find the transaction.state file. How should i create it , or do you have a sample one so that i can configure according to my environment.Thanks in advance. cheers :) - Original Message - From: Stephen Davidson [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Saturday, October 06, 2001 11:05 PM Subject: Re: Orion-Interest subscription notification Hi Yilmaz. You are obviously new here, or you would know that you do not need to threaten in order to get help. On the topic of the persitance directory, there is an issue where this directory is not created automatically under WinNT/Win2K. So you have to create it manually yourself. You do NOT need to put the orion directory into your classpath. The following command issued in the orion directory should fix your issue with the transaction.state file. C:\orionmkdir persistance I know about this because one of the developers on my team ran into this issue yesterday when setting up Orion on his Win2K box. If you have not done so already, you also need to copy the tools.jar file from your jdk directory into your c:\orion directory. FYI, our testing has indicated that orion works best on Bea's JDK, Sun's JDK, or IBM's Hotspot JDK. On Microsoft's JVM, we sometimes get for no apparent reason some rather funky errors that go away when we switch JVM's. Regards, Steve yilmaz wrote: hi guys, i am new to orion, i already downloaded orion application server, and unzipped under c:\orion directory. according to instructions i also put the tools.jar under c:\orion Next on command window , i ran java -jar orion.jar -install which prompted me to enter a password, and it said installation was done though i was surprised to finish so fast, i tried running orion by java -jar orion.jar as i expected it didn't start , but gave me the following strange error: C:\orionjava -jar orion.jar Fatal Error:
ejb 2.0 relations in orion
Hi all! I'm trying to get some cmp2.0 beans with relations running on orion 1.5.2. I have two beans: Article and Category, and a m:n relation between them. in CategoryBean.java i have: public abstract java.util.Collection getArticles(); and in ArticleBean: public abstract java.util.Collection getCategories(); and in ejb_jar.xml: relationships ejb-relation ejb-relation-namearticle-category/ejb-relation-name ejb-relationship-role ejb-relationship-role-namemany-category-has-many-article/ejb-relationship-role-name multiplicityMany/multiplicity !--relationship-role-source-- role-source ejb-nameArticle/ejb-name /role-source !--/relationship-role-source-- cmr-field cmr-field-namecategories/cmr-field-name cmr-field-typejava.util.Collection/cmr-field-type /cmr-field /ejb-relationship-role ejb-relationship-role ejb-relationship-role-namemany-article-has-many-category/ejb-relationship-role-name multiplicityMany/multiplicity !--relationship-role-source-- role-source ejb-nameCategory/ejb-name /role-source !--/relationship-role-source-- cmr-field cmr-field-namearticles/cmr-field-name cmr-field-typejava.util.Collection/cmr-field-type /cmr-field /ejb-relationship-role /ejb-relation /relationships orion keeps complaining: Method public abstract java.util.Collection redact.ejb.beans.CategoryBean.getArticles() can not be declared abstract. TIA chris
FW: How to get the RoleManager
I'm resending this as it hadn't appeared on the list after 5 hours :-) Dave. -Original Message- From: David Potts Sent: 09 October 2001 09:00 To: '[EMAIL PROTECTED]' Subject: How to get the RoleManager Hello, Does anyone know if/how to get the RoleManager for an application from outside of that application? What I'm trying to do is login to app1 and then as part of that process programmatically login to app2. I've seen questions in the archive about how to get the RoleManager, but I've not found the definitive answer. I've been able to get the java:comp/RoleManager object from within the application, but not from an external app. Any ideas? Cheers, Dave. --- David Potts Xchanging Email: [EMAIL PROTECTED] http://www.xchanging.com
RE: Multiple data sources for each application
I believe it is at the server level. I put all the datasource declarations in data-sources.xml file in config directory and it works great. I never tried using the global datasource.xml file Gunjan -Original Message- From: Setlur, Atul (MED) [mailto:[EMAIL PROTECTED]] Sent: Monday, October 08, 2001 8:17 PM To: Orion-Interest Subject: Multiple data sources for each application Does Orion support specifying of the data-sources at the application level? i.e., for each application (ear) specify the database connection pool settings within it vs. the global data-sources.xml configuration file. Thanks, -Atul
Re: ejb 2.0 relations in orion
Orion only supports a partial ejb2.0 spec - an older one at that. I don't believe it supports many-many out of the boxmore ejb2.0 coming up! --- Christoph Sturm [EMAIL PROTECTED] wrote: Hi all! I'm trying to get some cmp2.0 beans with relations running on orion 1.5.2. I have two beans: Article and Category, and a m:n relation between them. in CategoryBean.java i have: public abstract java.util.Collection getArticles(); and in ArticleBean: public abstract java.util.Collection getCategories(); and in ejb_jar.xml: relationships ejb-relation ejb-relation-namearticle-category/ejb-relation-name ejb-relationship-role ejb-relationship-role-namemany-category-has-many-article/ejb-relationship-role-name multiplicityMany/multiplicity !--relationship-role-source-- role-source ejb-nameArticle/ejb-name /role-source !--/relationship-role-source-- cmr-field cmr-field-namecategories/cmr-field-name cmr-field-typejava.util.Collection/cmr-field-type /cmr-field /ejb-relationship-role ejb-relationship-role ejb-relationship-role-namemany-article-has-many-category/ejb-relationship-role-name multiplicityMany/multiplicity !--relationship-role-source-- role-source ejb-nameCategory/ejb-name /role-source !--/relationship-role-source-- cmr-field cmr-field-namearticles/cmr-field-name cmr-field-typejava.util.Collection/cmr-field-type /cmr-field /ejb-relationship-role /ejb-relation /relationships orion keeps complaining: Method public abstract java.util.Collection redact.ejb.beans.CategoryBean.getArticles() can not be declared abstract. TIA chris __ Do You Yahoo!? NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1
RE: What's in 1.5.3?
Orion 1.5.3? Yeah? Where? Usually alongside the .jar there's a changes.txt describing... err... the _changes_. Still, the current bleeding edge version is 1.5.2 -Original Message- From: Brendan McKenna [mailto:[EMAIL PROTECTED]] Sent: Martes, 09 de Octubre de 2001 6:47 To: Orion-Interest Subject: What's in 1.5.3? Hi, Since 1.5.3 is in beta, is there anywhere where we can find a list of the changes that will be present in 1.5.3? In particular, will the changes that have recently been made by Oracle in their version of Orion be rolled into 1.5.3? Thanks, Brendan -- Brendan McKenna Email: [EMAIL PROTECTED] Development Strategist Phone: +353-61-338177 Taringold Ltd. Fax: +353-61-338065
Re: What's in 1.5.3?
Hi, Since 1.5.3 is in beta, is there anywhere where we can find a list of the changes that will be present in 1.5.3? Where is 1.5.3 in beta?
Re: Multiple data sources for each application
It's at the application level. You specify a data-sources.xml file in the orion-application.xml, and this can be a different data-sources.xml file for each application. Jeff. On Tue, 09 Oct 2001 09:46:52 -0400 Doshi, Gunjan [EMAIL PROTECTED] wrote: I believe it is at the server level. I put all the datasource declarations in data-sources.xml file in config directory and it works great. I never tried using the global datasource.xml file Gunjan -Original Message- From: Setlur, Atul (MED) [mailto:[EMAIL PROTECTED]] Sent: Monday, October 08, 2001 8:17 PM To: Orion-Interest Subject: Multiple data sources for each application Does Orion support specifying of the data-sources at the application level? i.e., for each application (ear) specify the database connection pool settings within it vs. the global data-sources.xml configuration file. Thanks, -Atul
RE: Problem implementing Custom User Management using SimpleUserManager
I have not tried this yet, but it just occurred to me that the naming.principal is just establishing the jndi security context - it does not do a login. If you want to login, you have to first establish the context with an account in principals.xml, and then use RoleManager.login(...) to login your user. The role manager gets information about the usermanager you registered, the InitialContext has nothing to do with your usermanager. (This is just a Gedankenexperiment - if you try it, let me know whether it actually works) --peter -Original Message- From: Jeff Schnitzer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 02, 2001 5:15 PM To: Orion-Interest Subject: RE: Problem implementing Custom User Management using SimpleUserManager I am also experiencing this - no matter what I try (and I'm pretty sure I've tried everything), I cannot get an application client user to log in using a custom user manager (either SimpleUserManager-derived or DataSourceUserManager). Note that the application client logs in just fine using admin or any of the principals.xml users. But I get the Invalid username/password exception when trying users produced by the custom user manager. This is with Orion 1.5.2. Does anyone have application clients working with a custom user manager? Jeff -Original Message- From: Adam Maliborski [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 29, 2001 7:09 AM To: Orion-Interest Subject: Problem implementing Custom User Management using SimpleUserManager Hi, I am trying to validate users of my ejb server via a database using the SimpleUserManager. I have extended SimpleUserManager and overridden the three methods and confirmed that they are being called and returning true. I have made the following changes to the descriptors. ORION-APPLICATION.XML orion-application deployment-version=1.5.2 ejb-module remote=false path=ejb.jar / web-module id=web path=web.war / security-role-mapping name=administration group name=administration / /security-role-mapping security-role-mapping name=productbuilder group name=productbuilder / /security-role-mapping security-role-mapping name=enduser group name=enduser / /security-role-mapping persistence path=persistence / library path=c:\test\ejb.jar / principals path=principals.xml / user-manager class=com.test.rms.user.orion.UCIServerUserManager / log file path=application.log / /log namespace-access read-access namespace-resource root= security-role-mapping name=lt;jndi-user-rolegt; group name=administration / group name=productbuilder / group name=enduser / /security-role-mapping /namespace-resource /read-access write-access namespace-resource root= security-role-mapping name=lt;jndi-user-rolegt; group name=administration / group name=productbuilder / group name=enduser / /security-role-mapping /namespace-resource /write-access /namespace-access /orion-application PRINCIPALS.XML principals groups group name=administration permission name=administration / permission name=rmi:login / permission name=com.evermind.server.rmi.RMIPermission / /group group name=productbuilder permission name=rmi:login / permission name=com.evermind.server.rmi.RMIPermission / /group group name=enduser permission name=rmi:login / permission name=com.evermind.server.rmi.RMIPermission / /group /groups users /users /principals ORION-EJB-JAR.XML orion-ejb-jar deployment-version=1.5.2 deployment-time=e93e1950d0 enterprise-beans .. .. (EJB DECLARATION) .. assembly-descriptor security-role-mapping name=administration /security-role-mapping security-role-mapping name=productbuilder /security-role-mapping security-role-mapping name=enduser /security-role-mapping default-method-access security-role-mapping name=lt;default-ejb-caller- rolegt; impliesAll=true / /default-method-access /assembly-descriptor /orion-ejb-jar When I try to access the ejb server through an external java client using the following code : Properties prop = new Properties(); prop.put (java.naming.factory.initial, com.evermind.server.ApplicationClientIn itialContextFactory); prop.put(java.naming.provider.url, ormi://localhost/UCIServer); prop.put(java.naming.security.principal, adammal); prop.put(java.naming.security.credentials, adammal); Context initial = new InitialContext(prop); I get the following error : java.lang.SecurityException: Invalid username/password for UCIServer
SV: ejb 2.0 relations in orion
Hi. You currently need to have your CMR fields as cmr-field in ejb-jar.xml. That should fix your problem. WR -Ursprungligt meddelande- Fran: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]For Ray Harrison Skickat: den 9 oktober 2001 16:37 Till: Orion-Interest Amne: Re: ejb 2.0 relations in orion Orion only supports a partial ejb2.0 spec - an older one at that. I don't believe it supports many-many out of the boxmore ejb2.0 coming up! --- Christoph Sturm [EMAIL PROTECTED] wrote: Hi all! I'm trying to get some cmp2.0 beans with relations running on orion 1.5.2. I have two beans: Article and Category, and a m:n relation between them. in CategoryBean.java i have: public abstract java.util.Collection getArticles(); and in ArticleBean: public abstract java.util.Collection getCategories(); and in ejb_jar.xml: relationships ejb-relation ejb-relation-namearticle-category/ejb-relation-name ejb-relationship-role ejb-relationship-role-namemany-category-has-many-article/ejb-re lationship-role-name multiplicityMany/multiplicity !--relationship-role-source-- role-source ejb-nameArticle/ejb-name /role-source !--/relationship-role-source-- cmr-field cmr-field-namecategories/cmr-field-name cmr-field-typejava.util.Collection/cmr-field-type /cmr-field /ejb-relationship-role ejb-relationship-role ejb-relationship-role-namemany-article-has-many-category/ejb-re lationship-role-name multiplicityMany/multiplicity !--relationship-role-source-- role-source ejb-nameCategory/ejb-name /role-source !--/relationship-role-source-- cmr-field cmr-field-namearticles/cmr-field-name cmr-field-typejava.util.Collection/cmr-field-type /cmr-field /ejb-relationship-role /ejb-relation /relationships orion keeps complaining: Method public abstract java.util.Collection redact.ejb.beans.CategoryBean.getArticles() can not be declared abstract. TIA chris __ Do You Yahoo!? NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1
Re: What's in 1.5.3?
You can find the new orion.jar in 'private'. That's all I'll say... It will be released very soon I'm sure. I haven't found any changes.txt file though, so I can't tell you what is new. -Pat At 05:52 PM 10/9/2001 +0200, you wrote: Hi, Since 1.5.3 is in beta, is there anywhere where we can find a list of the changes that will be present in 1.5.3? Where is 1.5.3 in beta?
RE: Problem implementing Custom User Management using SimpleUserManager
I will be interested to hear from anyone with experience in this; I'm developing an application at the moment that will be relying on a cusomter user manager. Indeed, the apparent simplicity of implementation is why I picked up on Orion. So any bumps in the road would be nice to note in advance. So let us know :) Reason http://www.exratio.com/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of SAURUGGER,PETER (A-PaloAlto,ex2) Sent: Tuesday, October 09, 2001 9:43 AM To: Orion-Interest Subject: RE: Problem implementing Custom User Management using SimpleUserManager I have not tried this yet, but it just occurred to me that the naming.principal is just establishing the jndi security context - it does not do a login. If you want to login, you have to first establish the context with an account in principals.xml, and then use RoleManager.login(...) to login your user. The role manager gets information about the usermanager you registered, the InitialContext has nothing to do with your usermanager. (This is just a Gedankenexperiment - if you try it, let me know whether it actually works) --peter -Original Message- From: Jeff Schnitzer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 02, 2001 5:15 PM To: Orion-Interest Subject: RE: Problem implementing Custom User Management using SimpleUserManager I am also experiencing this - no matter what I try (and I'm pretty sure I've tried everything), I cannot get an application client user to log in using a custom user manager (either SimpleUserManager-derived or DataSourceUserManager). Note that the application client logs in just fine using admin or any of the principals.xml users. But I get the Invalid username/password exception when trying users produced by the custom user manager. This is with Orion 1.5.2. Does anyone have application clients working with a custom user manager? Jeff -Original Message- From: Adam Maliborski [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 29, 2001 7:09 AM To: Orion-Interest Subject: Problem implementing Custom User Management using SimpleUserManager Hi, I am trying to validate users of my ejb server via a database using the SimpleUserManager. I have extended SimpleUserManager and overridden the three methods and confirmed that they are being called and returning true. I have made the following changes to the descriptors. ORION-APPLICATION.XML orion-application deployment-version=1.5.2 ejb-module remote=false path=ejb.jar / web-module id=web path=web.war / security-role-mapping name=administration group name=administration / /security-role-mapping security-role-mapping name=productbuilder group name=productbuilder / /security-role-mapping security-role-mapping name=enduser group name=enduser / /security-role-mapping persistence path=persistence / library path=c:\test\ejb.jar / principals path=principals.xml / user-manager class=com.test.rms.user.orion.UCIServerUserManager / log file path=application.log / /log namespace-access read-access namespace-resource root= security-role-mapping name=lt;jndi-user-rolegt; group name=administration / group name=productbuilder / group name=enduser / /security-role-mapping /namespace-resource /read-access write-access namespace-resource root= security-role-mapping name=lt;jndi-user-rolegt; group name=administration / group name=productbuilder / group name=enduser / /security-role-mapping /namespace-resource /write-access /namespace-access /orion-application PRINCIPALS.XML principals groups group name=administration permission name=administration / permission name=rmi:login / permission name=com.evermind.server.rmi.RMIPermission / /group group name=productbuilder permission name=rmi:login / permission name=com.evermind.server.rmi.RMIPermission / /group group name=enduser permission name=rmi:login / permission name=com.evermind.server.rmi.RMIPermission / /group /groups users /users /principals ORION-EJB-JAR.XML orion-ejb-jar deployment-version=1.5.2 deployment-time=e93e1950d0 enterprise-beans .. .. (EJB DECLARATION) .. assembly-descriptor security-role-mapping name=administration /security-role-mapping security-role-mapping name=productbuilder /security-role-mapping security-role-mapping name=enduser /security-role-mapping default-method-access
Re: SV: ejb 2.0 relations in orion
Hi Magnus! Hi. You currently need to have your CMR fields as cmr-field in ejb-jar.xml. That should fix your problem. What do you mean exactly? I have my fields defined as cmr-field can you tell my whats wrong with the snippet below? relationships ejb-relation ejb-relation-namearticle-category/ejb-relation-name ejb-relationship-role ejb-relationship-role-namemany-category-has-many-article/ejb-re lationship-role-name multiplicityMany/multiplicity !--relationship-role-source-- role-source ejb-nameArticle/ejb-name /role-source !--/relationship-role-source-- cmr-field cmr-field-namecategories/cmr-field-name cmr-field-typejava.util.Collection/cmr-field-type /cmr-field /ejb-relationship-role ejb-relationship-role ejb-relationship-role-namemany-article-has-many-category/ejb-re lationship-role-name multiplicityMany/multiplicity !--relationship-role-source-- role-source ejb-nameCategory/ejb-name /role-source !--/relationship-role-source-- cmr-field cmr-field-namearticles/cmr-field-name cmr-field-typejava.util.Collection/cmr-field-type /cmr-field /ejb-relationship-role /ejb-relation /relationships WR
RE: How to get the RoleManager
Dave, I have a feeling if you made app2 the parent app of app1 it might work (they'd probably be the same RoleManager - can't confirm that though). This is a non-standard solution (if a solution at all! ;)), then again if you're using RoleManager you're already using Orion specific code so you probably don't mind too much. Cheers, Mike Mike Cannon-Brookes :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Potts Sent: Tuesday, October 09, 2001 10:52 PM To: Orion-Interest Subject: FW: How to get the RoleManager I'm resending this as it hadn't appeared on the list after 5 hours :-) Dave. -Original Message- From: David Potts Sent: 09 October 2001 09:00 To: '[EMAIL PROTECTED]' Subject: How to get the RoleManager Hello, Does anyone know if/how to get the RoleManager for an application from outside of that application? What I'm trying to do is login to app1 and then as part of that process programmatically login to app2. I've seen questions in the archive about how to get the RoleManager, but I've not found the definitive answer. I've been able to get the java:comp/RoleManager object from within the application, but not from an external app. Any ideas? Cheers, Dave. --- David Potts Xchanging Email: [EMAIL PROTECTED] http://www.xchanging.com
RE: Multiple data sources for each application
Steve, Do you know if CMP Entity Beans deploy if the connection pool is established programatically? Because in this approach the connection pool is established, after the EJB jars have been deployed. Thanks, -Atul -Original Message- From: Stephen Davidson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 09, 2001 4:06 PM To: Orion-Interest Subject: Re: Multiple data sources for each application You can also create them programmatically, and then bind them to the JNDI tree. But unless you are doing something really weird (I am working on one such app, multiple database schema with identical tables), I would recommend the approach that Jeff is advocating. -Steve Jeff Hubbach wrote: It's at the application level. You specify a data-sources.xml file in the orion-application.xml, and this can be a different data-sources.xml file for each application. Jeff. On Tue, 09 Oct 2001 09:46:52 -0400 Doshi, Gunjan [EMAIL PROTECTED] wrote: I believe it is at the server level. I put all the datasource declarations in data-sources.xml file in config directory and it works great. I never tried using the global datasource.xml file Gunjan -Original Message- From: Setlur, Atul (MED) [mailto:[EMAIL PROTECTED]] Sent: Monday, October 08, 2001 8:17 PM To: Orion-Interest Subject: Multiple data sources for each application Does Orion support specifying of the data-sources at the application level? i.e., for each application (ear) specify the database connection pool settings within it vs. the global data-sources.xml configuration file. Thanks, -Atul -- Stephen Davidson Java Consultant Delphi Consultants, LLC http://www.delphis.com Phone: 214-696-6224 x208
Q:Difference between RMIInitialContextFactory and ApplicationInitialContextFactory
Hi all geeks,can someone explain to me (in detail) the difference between RMIInitialContextFactory and ApplicationInitialContextFactory ? Also, what will the provider URL be if I deploy an EJB.JAR in the global application ? Thanks, Andy
RE: Problem using custom tags.
Could someone managing this list stop these messages? I've had about 200 of them, and I'm getting a bit pied of. -Original Message- From: Johan Fredriksson [mailto:[EMAIL PROTECTED]] Sent: 09 October 2001 09:59 To: Orion-Interest Subject: RE: Problem using custom tags. inline -Original Message- From: E Stones [mailto:[EMAIL PROTECTED]] Sent: den 8 oktober 2001 14:01 To: Orion-Interest Subject: Problem using custom tags. The following example is taken from Chapter 2 of Advanced Java Server Pages by David M. Geary I'm getting this error when I try to implement to code sample below: -- 500 Internal Server Error: Error parsing JSP page /test1.jsp line 13 Bean 'item' already defined -- Has anyone any ideas what might be the problem? *** test.jsp code: *** htmlheadtitleAn Iterator/title/head %@ taglib uri='/WEB-INF/tlds/iterator.tld' prefix='it' % body % java.util.Vector vector = new java.util.Vector(); vector.addElement(one); vector.addElement(two); vector.addElement(three); vector.addElement(four); % Iterating over %= vector % ...p --- declaration of item it:iterate id='item' collection='%= vector %' --- declaration 2 of item !--jsp:useBean id='item' scope='page' class='java.lang.String'/-- //above should not be necessary. Item: %= item %br /it:iterate /p /body /html Iterator.tld ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN web-jsptaglib_1_1.dtd taglib tlibversion1.0/tlibversion jspversion1.1/jspversion shortnamesmp/shortname infoSun Microsystems Press Tag Library/info tag nameiterate/name tagclasstags.IteratorTag/tagclass teiclasstags.IteratorTagInfo/teiclass bodycontentJSP/bodycontent attribute nameid/name requiredtrue/required rtexprvaluetrue/rtexprvalue /attribute attribute namecollection/name requiredtrue/required rtexprvaluetrue/rtexprvalue /attribute infoIterates over a collection/info /tag /taglib *** IteratorTag.java *** import java.util.Collection; import java.util.Iterator; import javax.servlet.jsp.JspException; import javax.servlet.jsp.PageContext; import javax.servlet.jsp.tagext.BodyTagSupport; public class IteratorTag extends BodyTagSupport { private Collection collection; private Iterator iterator; public void setCollection(Collection collection) { this.collection = collection; } public int doStartTag() throws JspException { return collection.size() 0 ? EVAL_BODY_TAG : SKIP_BODY; } public void doInitBody() throws JspException { iterator = collection.iterator(); pageContext.setAttribute(getId(), iterator.next()); } public int doAfterBody() throws JspException { if(iterator.hasNext()) { pageContext.setAttribute(getId(), iterator.next()); return EVAL_BODY_TAG; } else { try { getBodyContent().writeOut(getPreviousOut()); } catch(java.io.IOException e) { throw new JspException(e.getMessage()); } return SKIP_BODY; } } } * IteratorTagInfo.java * package tags; import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.*; public class IteratorTagInfo extends TagExtraInfo { public VariableInfo[] getVariableInfo(TagData data) { return new VariableInfo[] { new VariableInfo(data.getId(), // scripting var's name java.lang.Object, // variable's type true, // whether variable is created VariableInfo.NESTED) // scope }; } } _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp