RE: arrg please help
thats sounds like an sql issue, are you closing your statement before you get all the information in the resultset back?? John Creaner Software Development, e-Spatial Solutions, Ireland. Tel: 353 (0)1 867 5500 Fax: 353 (0)1 867 5599 Direct Tel: 353 (0)1 867 5508 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ofur-Bjarni Sent: 03 April 2002 08:35 To: Orion-Interest Subject: arrg please help I have an existing database and I am trying to make an entity bean that retrieves data from one of it's tables. I have set the autocreate-table to false, and everything deploys nicely, but when I try to list the contents of the table (using findAll()) then I get this error: com.evermind.server.rmi.OrionRemoteException: Database error: Closed Statement: next; nested exception is: java.sql.SQLException: Closed Statement: next And I have no idea what to do. I know that the datasource works, because I have used it for other purposes. Thanks, Bjarni
RE: arrg please help
Are you using CMP or BMP with your entity bean? It sounds like BMP and you are accidentally closing the connetion somewhere you are not supposed to inside the bean. What kind of database are you connecting to (i.e. MySQL, SQL Server, Oracle,etc...) I need a little more info here before I can try to help. :-) Later... Greg -Original Message- From: Ofur-Bjarni [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 12:35 AM To: Orion-Interest Subject: arrg please help I have an existing database and I am trying to make an entity bean that retrieves data from one of it's tables. I have set the autocreate-table to false, and everything deploys nicely, but when I try to list the contents of the table (using findAll()) then I get this error: com.evermind.server.rmi.OrionRemoteException: Database error: Closed Statement: next; nested exception is: java.sql.SQLException: Closed Statement: next And I have no idea what to do. I know that the datasource works, because I have used it for other purposes. Thanks, Bjarni
RE: arrg please help
Actually I worked that one out and got a new, better bug. This was happening because I didn't set exclusive-write-access to false in orion-ejb-jar.xml. Since I'm using cmp, I don't have any statements of my own. thanks, Bjarni -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of John Creaner Sent: 3. apríl 2002 11:50 To: Orion-Interest Subject: RE: arrg please help thats sounds like an sql issue, are you closing your statement before you get all the information in the resultset back?? John Creaner Software Development, e-Spatial Solutions, Ireland. Tel: 353 (0)1 867 5500 Fax: 353 (0)1 867 5599 Direct Tel: 353 (0)1 867 5508 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ofur-Bjarni Sent: 03 April 2002 08:35 To: Orion-Interest Subject: arrg please help I have an existing database and I am trying to make an entity bean that retrieves data from one of it's tables. I have set the autocreate-table to false, and everything deploys nicely, but when I try to list the contents of the table (using findAll()) then I get this error: com.evermind.server.rmi.OrionRemoteException: Database error: Closed Statement: next; nested exception is: java.sql.SQLException: Closed Statement: next And I have no idea what to do. I know that the datasource works, because I have used it for other purposes. Thanks, Bjarni
RE: arrg please help
I already posted this, but I seem to have have mis-posted it: Actually I worked that one out and got a new, better bug. This was happening because I didn't set exclusive-write-access to false in orion-ejb-jar.xml. Since I'm using cmp, I don't have any statements of my own. thanks, Bjarni ps: What is the correct way to post questions and answers to the list? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Greg Davis Sent: 3. apríl 2002 14:23 To: Orion-Interest Subject: RE: arrg please help Are you using CMP or BMP with your entity bean? It sounds like BMP and you are accidentally closing the connetion somewhere you are not supposed to inside the bean. What kind of database are you connecting to (i.e. MySQL, SQL Server, Oracle,etc...) I need a little more info here before I can try to help. :-) Later... Greg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of John Creaner Sent: 3. apríl 2002 11:50 To: Orion-Interest Subject: RE: arrg please help thats sounds like an sql issue, are you closing your statement before you get all the information in the resultset back?? John Creaner Software Development, e-Spatial Solutions, Ireland. Tel: 353 (0)1 867 5500 Fax: 353 (0)1 867 5599 Direct Tel: 353 (0)1 867 5508 [EMAIL PROTECTED] -Original Message- From: Ofur-Bjarni [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 12:35 AM To: Orion-Interest Subject: arrg please help I have an existing database and I am trying to make an entity bean that retrieves data from one of it's tables. I have set the autocreate-table to false, and everything deploys nicely, but when I try to list the contents of the table (using findAll()) then I get this error: com.evermind.server.rmi.OrionRemoteException: Database error: Closed Statement: next; nested exception is: java.sql.SQLException: Closed Statement: next And I have no idea what to do. I know that the datasource works, because I have used it for other purposes. Thanks, Bjarni
arrg please help
I have an existing database and I am trying to make an entity bean that retrieves data from one of it's tables. I have set the autocreate-table to false, and everything deploys nicely, but when I try to list the contents of the table (using findAll()) then I get this error: com.evermind.server.rmi.OrionRemoteException: Database error: Closed Statement: next; nested exception is: java.sql.SQLException: Closed Statement: next And I have no idea what to do. I know that the datasource works, because I have used it for other purposes. Thanks, Bjarni
Newbie classpath problem - please help
I've installed Orion 1.5.2 on my Windows NT4 development machine. I have a system classpath that points to lots of standard classes, for utilities, etc. If I start Orion with the command java -jar orion.jar then it doesn't pick anything up from the classpath, if on the otherhand I start Orion with the command java -jar -cp %CLASSPATH% orion.jar then I get a java.util.zip.ZipException error with the following message The filename, directory name, or volume label syntax is incorrect Do I need to set the classpath elsewhere? Thanks E-mail communication is not secure and may be intercepted by a third party. This message is confidential to the intended addressee. If you are not the intended addressee, please inform us immediately and then delete this message. Virgin Direct does not accept responsibility for changes made to this message after it was sent. Although Virgin Direct believes this e-mail is free of any virus or other defect which may affect a computer, it is the responsibility of the recipient to ensure that it is virus free and Virgin Direct does not accept any responsibility for any loss or damage arising in any way from it's use. Virgin Direct Personal Financial Service Ltd is regulated by the Personal Investment Authority for life insurance, pension and unit trust business and represents only the Virgin Direct marketing group. Registered office: Discovery House, Whiting Road, Norwich NR4 6EJ, UK. Registered in England No. 3072766. The Virgin One account is a secured personal bank account with The Royal Bank of Scotland plc. It is provided by Virgin Direct Personal Finance Ltd which is a representative only of Virgin Direct Personal Financial Service Ltd. Registered office: Waterhouse Square, 138-142 Holborn, London EC1N 2TH, UK. Registered in England no 3414708. The Virgin Deposit Account is a personal deposit account with The Royal Bank of Scotland plc administered by Virgin Direct Personal Financial Service Ltd. All telephone calls are recorded and may be monitored.
RE: Newbie classpath problem - please help
-cp does not work in conjunction with -jar. The jar file gets its class path from the manifest file. You can drop jars into the the implicit classpath at your jre/lib/ext. I have not tried it, but Orions classloader may pick up jars in the Orion directory. For your applications, you can specify a lib directory in application.xml library path=.../; for web applications WEB-INF/lib will do. --peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 27, 2001 2:48 AM To: Orion-Interest Subject: Newbie classpath problem - please help I've installed Orion 1.5.2 on my Windows NT4 development machine. I have a system classpath that points to lots of standard classes, for utilities, etc. If I start Orion with the command java -jar orion.jar then it doesn't pick anything up from the classpath, if on the otherhand I start Orion with the command java -jar -cp %CLASSPATH% orion.jar then I get a java.util.zip.ZipException error with the following message The filename, directory name, or volume label syntax is incorrect Do I need to set the classpath elsewhere? Thanks E-mail communication is not secure and may be intercepted by a third party. This message is confidential to the intended addressee. If you are not the intended addressee, please inform us immediately and then delete this message. Virgin Direct does not accept responsibility for changes made to this message after it was sent. Although Virgin Direct believes this e-mail is free of any virus or other defect which may affect a computer, it is the responsibility of the recipient to ensure that it is virus free and Virgin Direct does not accept any responsibility for any loss or damage arising in any way from it's use. Virgin Direct Personal Financial Service Ltd is regulated by the Personal Investment Authority for life insurance, pension and unit trust business and represents only the Virgin Direct marketing group. Registered office: Discovery House, Whiting Road, Norwich NR4 6EJ, UK. Registered in England No. 3072766. The Virgin One account is a secured personal bank account with The Royal Bank of Scotland plc. It is provided by Virgin Direct Personal Finance Ltd which is a representative only of Virgin Direct Personal Financial Service Ltd. Registered office: Waterhouse Square, 138-142 Holborn, London EC1N 2TH, UK. Registered in England no 3414708. The Virgin Deposit Account is a personal deposit account with The Royal Bank of Scotland plc administered by Virgin Direct Personal Financial Service Ltd. All telephone calls are recorded and may be monitored.
Re: Newbie classpath problem - please help
Derek, In server.xml Use: library path=c:\java\jdk1.3.1\lib\tools.jar/ to include shared jars in Orion's environment. You can also deploy classes as J2EE applications: application name=TestApp path=d:\Projects\Test\TestApp.ear/ - Joe -Original Message- From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Date: Thursday, September 27, 2001 10:32 AM Subject: Newbie classpath problem - please help I've installed Orion 1.5.2 on my Windows NT4 development machine. I have a system classpath that points to lots of standard classes, for utilities, etc. If I start Orion with the command java -jar orion.jar then it doesn't pick anything up from the classpath, if on the otherhand I start Orion with the command java -jar -cp %CLASSPATH% orion.jar then I get a java.util.zip.ZipException error with the following message The filename, directory name, or volume label syntax is incorrect Do I need to set the classpath elsewhere? Thanks *** * E-mail communication is not secure and may be intercepted by a third party. This message is confidential to the intended addressee. If you are not the intended addressee, please inform us immediately and then delete this message. Virgin Direct does not accept responsibility for changes made to this message after it was sent. Although Virgin Direct believes this e-mail is free of any virus or other defect which may affect a computer, it is the responsibility of the recipient to ensure that it is virus free and Virgin Direct does not accept any responsibility for any loss or damage arising in any way from it's use. Virgin Direct Personal Financial Service Ltd is regulated by the Personal Investment Authority for life insurance, pension and unit trust business and represents only the Virgin Direct marketing group. Registered office: Discovery House, Whiting Road, Norwich NR4 6EJ, UK. Registered in England No. 3072766. The Virgin One account is a secured personal bank account with The Royal Bank of Scotland plc. It is provided by Virgin Direct Personal Finance Ltd which is a representative only of Virgin Direct Personal Financial Service Ltd. Registered office: Waterhouse Square, 138-142 Holborn, London EC1N 2TH, UK. Registered in England no 3414708. The Virgin Deposit Account is a personal deposit account with The Royal Bank of Scotland plc administered by Virgin Direct Personal Financial Service Ltd. All telephone calls are recorded and may be monitored. *** *
Re: Newbie classpath problem - please help
check doc on orion-web.xml DS - Original Message - From: [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, September 27, 2001 5:47 AM Subject: Newbie classpath problem - please help I've installed Orion 1.5.2 on my Windows NT4 development machine. I have a system classpath that points to lots of standard classes, for utilities, etc. If I start Orion with the command java -jar orion.jar then it doesn't pick anything up from the classpath, if on the otherhand I start Orion with the command java -jar -cp %CLASSPATH% orion.jar then I get a java.util.zip.ZipException error with the following message The filename, directory name, or volume label syntax is incorrect Do I need to set the classpath elsewhere? Thanks E-mail communication is not secure and may be intercepted by a third party. This message is confidential to the intended addressee. If you are not the intended addressee, please inform us immediately and then delete this message. Virgin Direct does not accept responsibility for changes made to this message after it was sent. Although Virgin Direct believes this e-mail is free of any virus or other defect which may affect a computer, it is the responsibility of the recipient to ensure that it is virus free and Virgin Direct does not accept any responsibility for any loss or damage arising in any way from it's use. Virgin Direct Personal Financial Service Ltd is regulated by the Personal Investment Authority for life insurance, pension and unit trust business and represents only the Virgin Direct marketing group. Registered office: Discovery House, Whiting Road, Norwich NR4 6EJ, UK. Registered in England No. 3072766. The Virgin One account is a secured personal bank account with The Royal Bank of Scotland plc. It is provided by Virgin Direct Personal Finance Ltd which is a representative only of Virgin Direct Personal Financial Service Ltd. Registered office: Waterhouse Square, 138-142 Holborn, London EC1N 2TH, UK. Registered in England no 3414708. The Virgin Deposit Account is a personal deposit account with The Royal Bank of Scotland plc administered by Virgin Direct Personal Financial Service Ltd. All telephone calls are recorded and may be monitored.
please help me !!!! orion server crashed
Greetings, all, i am running. orion 1.5.2 on sun's jre 1.3.1. Recently orion is frequently being crashed after ruuning gor a few days; and sometimes even worse, after i restart orion, it is down immediately. The global-application log file s shows tons of exception for IOException , NullPionterException and SQLException. Could anyone tell me how orion handle exceptions; and under what conditions, orion would be forced to shut down? Could memory leak cause orion down? Our server' OS is windows NT 4.0. your suggestion and help is highly appreciated! hua
Re: JNDI lookup form Applet problem, Please Help!
We've been doing this for a few months now and are actually on an effort to move away from it because of the security problems presented from this approach. That being said, the context that we've found to work the best is the RMIInitialContextFactory. Here is sample of some code we're using. The application name is the name of the application you specify in the xml configuration files. The username and password are configured in principals.xml. // Get the context env = new Hashtable(); env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, com.evermind.server.rmi.RMIInitialContextFactory); env.put(javax.naming.Context.PROVIDER_URL, ormi:// + getCodeBase().getHost() + /cems); env.put(javax.naming.Context.SECURITY_PRINCIPAL, admin); env.put(javax.naming.Context.SECURITY_CREDENTIALS, 123); env.put(dedicated.connection,true); context = new InitialContext(env); // Now look up the bean Object obj = context.lookup(ejb/YourBeanName); home = (YouBeanHome)PortableRemoteObject.narrow(obj, YouBeanHome.class); YourBeanRemote remote = home.create(); You will also need a policy file on the client. For testing purposes it's easiest to just grant all permission to the applet until you get it running grant { permission java.security.AllPermission; }; Then specify the location of the policy file in your java console -Djava.security.policy=path/java.policy. Hope this helps. Todd Paul Sprague wrote: Nothing seems to be going my way! :-( First of all I've noticed that there are different provider URLs being passed around. I need to get this straitened out. As I understand it the format should be: ormi://hostname/application now what about the port? ORMI defaults to port 23791, right? does that ormi:// part make the port not necessary because the default port is used? I have been using ormi://129.21.160.38/salary I have tried ormi://129.21.160.38 ormi://129.21.160.38:23791 ormi://129.21.160.38/application ormi://129.21.160.38:23791/application I'm really not sure what the application part of the provider URL is, can anyone clarify this? I thought it was the applications JNDI name space you wanted to access but I'm really not sure. The only difference is that my code freezes in different places. What is the preferred way to do this? Are any of these totally wrong? On to the initial context factory. I've been flipping between 2 of them in totally ignorance. What is the difference between these factories? Which one is best to use for doing JNDI lookups from within an applet? com.evermind.server.rmi.RMIInitialContextFactory com.evermind.server.ApplicationClientInitialContextFactory So I've been trying every possible combination of these 2 properties and the only thing that changes is where the code stops working. I either stops on Context context = new InitialContext(ht); or on NamingEnumeration enum = context.list(); my hashtable looks like this: ht.put( java.naming.applet, this ); //I have no idea what this does, anyone? ht.put( java.naming.factory.initial , s_initial_context_factory_name ); ht.put( java.naming.provider.url , url_name); ht.put( java.naming.security.principal, ); ht.put( java.naming.security.credentials , ); Thanks for any help. Paul
Re: Please help me
You need to put all your classes for your application (including servlets) under the META-INF/classes directory. In your example, this would be located at: /orion/applications/shoppingmall/META-INF/classes jeff. waheed rahman wrote: Hi please help me. How i can setup servlet directory in my new application.Please let me know where i have to save my servlets files if my new application directory is like this ... /orion/applications/shoppingmall/. I will be thankfull in this regards.Expecting your positive reply.Thanks in advance for your prompt reply. Regards waheed __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- Jeff Hubbach Internet Developer New Media Designs, Inc. www.nmd.com
Re: Please help me
Sorry, typo. it's WEB-INF, not META-INF. Jeff. Jeff Hubbach wrote: You need to put all your classes for your application (including servlets) under the META-INF/classes directory. In your example, this would be located at: /orion/applications/shoppingmall/META-INF/classes jeff. waheed rahman wrote: Hi please help me. How i can setup servlet directory in my new application.Please let me know where i have to save my servlets files if my new application directory is like this ... /orion/applications/shoppingmall/. I will be thankfull in this regards.Expecting your positive reply.Thanks in advance for your prompt reply. Regards waheed __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- Jeff Hubbach Internet Developer New Media Designs, Inc. www.nmd.com -- Jeff Hubbach Internet Developer New Media Designs, Inc. www.nmd.com
Please help me
Hi please help me. How i can setup servlet directory in my new application.Please let me know where i have to save my servlets files if my new application directory is like this ... /orion/applications/shoppingmall/. I will be thankfull in this regards.Expecting your positive reply.Thanks in advance for your prompt reply. Regards waheed __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: Please help me
Hi, tio me it seems as the data-sources.xml is incorrect. It should be something like this: data-source class=com.evermind.sql.DriverManagerDataSource name=OracleDS location=jdbc/OracleCoreDS xa-location=jdbc/xa/OracleXADS ejb-location=jdbc/OracleDS connection-driver=oracle.jdbc.driver.OracleDriver username=scott password=tiger url=jdbc:oracle:thin:@localhost:1521:orcl inactivity-timeout=30 / I have following data-source data-source class=oracle.jdbc.pool.OracleDataSource name=Oracle location=jdbc/devDS xa-location=jdbc/xa/devXA ejb-location=jdbc/devDS connection-driver=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:system/manager@station-one:1521:application username=system password=manager inactivity-timeout=30 schema=database-schemas/oracle.xml / _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Please help me
Hi Everybody I am having problem in getting orion connected to Oracle 8i on Solaris 8 . I cannot execute the addressbook example due to that though i have successfully tested the Orion-Primer which is without EJBs I keep getting SQL IOException . Network Adapter Error When it is deploying the application.jar file I have following configuration 1) Solaris 8 2) Oracle 8i 3) j2sdk1.3.1 as i want to implement SSL 4) j2sdkee1.3.1 5) Orion1.4.0 I am using CMP for Entity Bean I have following data-source data-source class=oracle.jdbc.pool.OracleDataSource name=Oracle location=jdbc/devDS xa-location=jdbc/xa/devXA ejb-location=jdbc/devDS connection-driver=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:system/manager@station-one:1521:application username=system password=manager inactivity-timeout=30 schema=database-schemas/oracle.xml / I have gone through all through the mailing list but no success. Can you please help me with this. Thanks Mahesh __ 123India.com - India's Premier Portal Get your Free Email Account at http://www.123india.com
Re: Please help me
data-source Change the following line the read the evermind class copy and paste the line from the Hypersonic datasource class ... class=REPLACE THIS TO READ the evermind class oracle.jdbc.pool.OracleDataSource name=Oracle location=jdbc/devDS xa-location=jdbc/xa/devXA ejb-location=jdbc/devDS connection-driver=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:system/manager@station-one:1521:application username=system password=manager inactivity-timeout=30 schema=database-schemas/oracle.xml / --- [EMAIL PROTECTED] wrote: Hi Everybody I am having problem in getting orion connected to Oracle 8i on Solaris 8 . I cannot execute the addressbook example due to that though i have successfully tested the Orion-Primer which is without EJBs I keep getting SQL IOException . Network Adapter Error When it is deploying the application.jar file I have following configuration 1) Solaris 8 2) Oracle 8i 3) j2sdk1.3.1 as i want to implement SSL 4) j2sdkee1.3.1 5) Orion1.4.0 I am using CMP for Entity Bean I have following data-source data-source class=oracle.jdbc.pool.OracleDataSource name=Oracle location=jdbc/devDS xa-location=jdbc/xa/devXA ejb-location=jdbc/devDS connection-driver=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:system/manager@station-one:1521:application username=system password=manager inactivity-timeout=30 schema=database-schemas/oracle.xml / I have gone through all through the mailing list but no success. Can you please help me with this. Thanks Mahesh __ 123India.com - India's Premier Portal Get your Free Email Account at http://www.123india.com = __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
Please help me with SSL
Hello Everybody I am trying to implement the very 1st step in the guide howto for SSL on the orionserver.com web site. I am encountering follwoing error when i type keytool -genkey -keyalg RSA -keystore keystore -storepass 123456 -validity 360 I type this command from the home directory for Orion. I am getting follwoing error keytool error: KeyPairGenerator not available Please can u tell me where am i going wrong . I need to impelment this as soon as possible. And i am stuck in very 1st step of the implementation from past 2 days Thanking u all in advance __ 123India.com - India's Premier Portal Get your Free Email Account at http://www.123india.com
RE: Please help me with SSL
Your jdk should come with the SunRsaSign version 1.0 provider, (check your java.security file). This should allow you to create RSA keys, unless you modified the file...I have downloaded the ABA Provider (JCE implementation) for encryption, and I can generate RSA keys with no problems. Claudio -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Friday, June 01, 2001 4:45 PM To: Orion-Interest Subject: Please help me with SSL Hello Everybody I am trying to implement the very 1st step in the guide howto for SSL on the orionserver.com web site. I am encountering follwoing error when i type keytool -genkey -keyalg RSA -keystore keystore -storepass 123456 -validity 360 I type this command from the home directory for Orion. I am getting follwoing error keytool error: KeyPairGenerator not available Please can u tell me where am i going wrong . I need to impelment this as soon as possible. And i am stuck in very 1st step of the implementation from past 2 days Thanking u all in advance __ 123India.com - India's Premier Portal Get your Free Email Account at http://www.123india.com
Re: Please Help on jms -urgent
I want to write a simple java application and able to access the JMS messages which are in orion server. I enabled the jms server in orion and I wrote a web app(jsp) which puts messages in the message server. Now I want to write a seperate java application through which I want to retrieve the messages. Any suggestions how to do this. Thanks in advance Kesav - Original Message - From: Komal Kandi (Contractor) [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, May 02, 2001 5:00 PM Subject: RE: Please Help on jms -urgent Hi Keshav, cuold pls tell ur requirement clearly if it posible i will try. regards, komal -Original Message- From: Kesav Kumar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 4:35 PM To: Orion-Interest Subject: Please Help on jms -urgent Hi Can any one please help me in retrieving messages stored in the orion server from out side orion. I am using orion 1.4.7 jdk1.3 on WinNT. I tried the sample application I am always getting NullPointerException. Its a little urgent for me. Thanks in advance. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.voquette.com http://www.voquette.com Voquette...Delivering Sound Information
Re: Please Help on jms -urgent
Title: Please Help on jms -urgent I want to run my application locally on the same machine. Once I succeed in doing that I will think of running my java application on different machine. In jms.xml I tried by giving the machine name instead of the localhost stillI don't have any luck. kesav - Original Message - From: Jason Smith To: Orion-Interest Sent: Wednesday, May 02, 2001 5:57 PM Subject: RE: Please Help on jms -urgent Make sure you have edited your jms.xml file to specify your particular server, otherwise it will default to 127.0.0.1. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kesav KumarSent: Wednesday, May 02, 2001 6:35 PMTo: Orion-InterestSubject: Please Help on jms -urgent Hi Can any one please help me in retrieving messages stored in the orion server from out side orion. I am using orion 1.4.7 jdk1.3 on WinNT. I tried the sample application I am always getting NullPointerException. Its a little urgent for me. Thanks in advance. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information
RE: Please Help on jms -urgent
Hi Keshav, cuold pls tell ur requirement clearly if it posible i will try. regards, komal -Original Message- From: Kesav Kumar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 4:35 PM To: Orion-Interest Subject: Please Help on jms -urgent Hi Can any one please help me in retrieving messages stored in the orion server from out side orion. I am using orion 1.4.7 jdk1.3 on WinNT. I tried the sample application I am always getting NullPointerException. Its a little urgent for me. Thanks in advance. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.voquette.com http://www.voquette.com Voquette...Delivering Sound Information
RE: Please Help on jms -urgent
Title: Please Help on jms -urgent Make sure you have edited your jms.xml file to specify your particular server, otherwise it will default to 127.0.0.1. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kesav KumarSent: Wednesday, May 02, 2001 6:35 PMTo: Orion-InterestSubject: Please Help on jms -urgent Hi Can any one please help me in retrieving messages stored in the orion server from out side orion. I am using orion 1.4.7 jdk1.3 on WinNT. I tried the sample application I am always getting NullPointerException. Its a little urgent for me. Thanks in advance. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information
Re: Please help me figure out this....
Yes, you should not use return (name=="abc" passwd=="123 "); but return (name.equals("abc") passwd.equals("123")); This will probably fix your problem. Johan - Original Message - From: "Roland Dong" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Sunday, April 01, 2001 11:42 AM Subject: Please help me figure out this I have login.html calling a servlet (loginHander) which handles authorization. If user is validated, the servlet will redirect the user to Welcome.jsp My problem is I could not pass the value of user and password from login.html to loginHandler. I set the boolean method loggedIn so that when user name is abc and password is 123 the user should log in. However, this somehow can not be accomplished. Even I entered abc as name and 123 as password, I was bounced back to login.html page. I am using Orion 1.47. Please help! RB //Here is loginHander.java import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class LoginHandler extends HttpServlet { public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); // Get the user's name and password String name = req.getParameter("name"); String passwd = req.getParameter("passwd"); // Check the name and password for validity if (!loggedIn(name, passwd)) { out.println("HTMLHEADTITLEAccess Denied/TITLE/HEAD"); out.println("BODYYour login and password are invalid.BR"); out.println("You may want to A HREF=\"/jsp/testing/login.html\"try again/A"); out.println("/BODY/HTML"); } else { // Valid login. Make a note in the session object. HttpSession session = req.getSession(true); session.setAttribute("logon.isDone", name); // just a marker object // Try redirecting the client to the page he first tried to access try { res.sendRedirect("/jsp/testing/Welcome.jsp"); return; } catch (Exception ignored) { } // Couldn't redirect to the target. Redirect to the site's home page. res.sendRedirect(req.getScheme() + "://" + req.getServerName() + ":" + req.getServerPort()); } } protected boolean loggedIn(String name, String passwd) { return (name=="abc" passwd=="123 "); } } // //Here is the login.html HTML TITLELogin/TITLE BODY FORM ACTION=/servlet/LoginHandler METHOD=POST CENTER TABLE BORDER=0 TRTD COLSPAN=2 P ALIGN=CENTER Welcome! Please enter your NnnnNamebr and Password to log in. /TD/TR TRTD P ALIGN=RIGHTBName:/B /TD TD PINPUT TYPE=TEXT NAME="name" VLAUE="" SIZE=15 /TD/TR TRTD P ALIGN=RIGHTBPassword:/B /TD TD PINPUT TYPE=PASSWORD NAME="passwd" VALUE="" SIZE=15 /TD/TR TRTD COLSPAN=2 CENTER INPUT TYPE=SUBMIT VALUE=" OK " /CENTER /TD/TR /TABLE /BODY/HTML //* //Here is the Welcom.jsp % if ( session.getValue("userName") == null) { % B hello...it is a nullB % // here we can give some error message % % } else {% !--- so this is the authorized user let's display the welcome message --- HTML HEAD B Welcome %= session.getValue("userName")% /B /HEAD BODY !--- all the other stuff -- /BODY / HTML % } %
RE: Please help me figure out this....
You should use name.equals("123") instead of use name=="abc" Please make sure that you understand the difference beetween name.equals("123") and name=="abc" -Original Message- From: Roland Dong [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 01, 2001 4:43 PM To: Orion-Interest Subject: Please help me figure out this I have login.html calling a servlet (loginHander) which handles authorization. If user is validated, the servlet will redirect the user to Welcome.jsp My problem is I could not pass the value of user and password from login.html to loginHandler. I set the boolean method loggedIn so that when user name is abc and password is 123 the user should log in. However, this somehow can not be accomplished. Even I entered abc as name and 123 as password, I was bounced back to login.html page. I am using Orion 1.47. Please help! RB //Here is loginHander.java import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class LoginHandler extends HttpServlet { public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); // Get the user's name and password String name = req.getParameter("name"); String passwd = req.getParameter("passwd"); // Check the name and password for validity if (!loggedIn(name, passwd)) { out.println("HTMLHEADTITLEAccess Denied/TITLE/HEAD"); out.println("BODYYour login and password are invalid.BR"); out.println("You may want to A HREF=\"/jsp/testing/login.html\"try again/A"); out.println("/BODY/HTML"); } else { // Valid login. Make a note in the session object. HttpSession session = req.getSession(true); session.setAttribute("logon.isDone", name); // just a marker object // Try redirecting the client to the page he first tried to access try { res.sendRedirect("/jsp/testing/Welcome.jsp"); return; } catch (Exception ignored) { } // Couldn't redirect to the target. Redirect to the site's home page. res.sendRedirect(req.getScheme() + "://" + req.getServerName() + ":" + req.getServerPort()); } } protected boolean loggedIn(String name, String passwd) { return (name=="abc" passwd=="123 "); } } // //Here is the login.html HTML TITLELogin/TITLE BODY FORM ACTION=/servlet/LoginHandler METHOD=POST CENTER TABLE BORDER=0 TRTD COLSPAN=2 P ALIGN=CENTER Welcome! Please enter your NnnnNamebr and Password to log in. /TD/TR TRTD P ALIGN=RIGHTBName:/B /TD TD PINPUT TYPE=TEXT NAME="name" VLAUE="" SIZE=15 /TD/TR TRTD P ALIGN=RIGHTBPassword:/B /TD TD PINPUT TYPE=PASSWORD NAME="passwd" VALUE="" SIZE=15 /TD/TR TRTD COLSPAN=2 CENTER INPUT TYPE=SUBMIT VALUE=" OK " /CENTER /TD/TR /TABLE /BODY/HTML //* //Here is the Welcom.jsp % if ( session.getValue("userName") == null) { % B hello...it is a nullB % // here we can give some error message % % } else {% !--- so this is the authorized user let's display the welcome message --- HTML HEAD B Welcome %= session.getValue("userName")% /B /HEAD BODY !--- all the other stuff -- /BODY / HTML % } %
RE: Please help me figure out this....
Thanks for pointing that out -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Meo Van Le Sent: Sunday, April 01, 2001 1:50 AM To: Orion-Interest Subject: RE: Please help me figure out this You should use name.equals("123") instead of use name=="abc" Please make sure that you understand the difference beetween name.equals("123") and name=="abc" -Original Message- From: Roland Dong [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 01, 2001 4:43 PM To: Orion-Interest Subject: Please help me figure out this I have login.html calling a servlet (loginHander) which handles authorization. If user is validated, the servlet will redirect the user to Welcome.jsp My problem is I could not pass the value of user and password from login.html to loginHandler. I set the boolean method loggedIn so that when user name is abc and password is 123 the user should log in. However, this somehow can not be accomplished. Even I entered abc as name and 123 as password, I was bounced back to login.html page. I am using Orion 1.47. Please help! RB //Here is loginHander.java import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class LoginHandler extends HttpServlet { public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); // Get the user's name and password String name = req.getParameter("name"); String passwd = req.getParameter("passwd"); // Check the name and password for validity if (!loggedIn(name, passwd)) { out.println("HTMLHEADTITLEAccess Denied/TITLE/HEAD"); out.println("BODYYour login and password are invalid.BR"); out.println("You may want to A HREF=\"/jsp/testing/login.html\"try again/A"); out.println("/BODY/HTML"); } else { // Valid login. Make a note in the session object. HttpSession session = req.getSession(true); session.setAttribute("logon.isDone", name); // just a marker object // Try redirecting the client to the page he first tried to access try { res.sendRedirect("/jsp/testing/Welcome.jsp"); return; } catch (Exception ignored) { } // Couldn't redirect to the target. Redirect to the site's home page. res.sendRedirect(req.getScheme() + "://" + req.getServerName() + ":" + req.getServerPort()); } } protected boolean loggedIn(String name, String passwd) { return (name=="abc" passwd=="123 "); } } // //Here is the login.html HTML TITLELogin/TITLE BODY FORM ACTION=/servlet/LoginHandler METHOD=POST CENTER TABLE BORDER=0 TRTD COLSPAN=2 P ALIGN=CENTER Welcome! Please enter your NnnnNamebr and Password to log in. /TD/TR TRTD P ALIGN=RIGHTBName:/B /TD TD PINPUT TYPE=TEXT NAME="name" VLAUE="" SIZE=15 /TD/TR TRTD P ALIGN=RIGHTBPassword:/B /TD TD PINPUT TYPE=PASSWORD NAME="passwd" VALUE="" SIZE=15 /TD/TR TRTD COLSPAN=2 CENTER INPUT TYPE=SUBMIT VALUE=" OK " /CENTER /TD/TR /TABLE /BODY/HTML //* //Here is the Welcom.jsp % if ( session.getValue("userName") == null) { % B hello...it is a nullB % // here we can give some error message % % } else {% !--- so this is the authorized user let's display the welcome message --- HTML HEAD B Welcome %= session.getValue("userName")% /B /HEAD BODY !--- all the other stuff -- /BODY / HTML % } %
Please help me figure out this....
I have login.html calling a servlet (loginHander) which handles authorization. If user is validated, the servlet will redirect the user to Welcome.jsp My problem is I could not pass the value of user and password from login.html to loginHandler. I set the boolean method loggedIn so that when user name is abc and password is 123 the user should log in. However, this somehow can not be accomplished. Even I entered abc as name and 123 as password, I was bounced back to login.html page. I am using Orion 1.47. Please help! RB //Here is loginHander.java import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class LoginHandler extends HttpServlet { public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); // Get the user's name and password String name = req.getParameter("name"); String passwd = req.getParameter("passwd"); // Check the name and password for validity if (!loggedIn(name, passwd)) { out.println("HTMLHEADTITLEAccess Denied/TITLE/HEAD"); out.println("BODYYour login and password are invalid.BR"); out.println("You may want to A HREF=\"/jsp/testing/login.html\"try again/A"); out.println("/BODY/HTML"); } else { // Valid login. Make a note in the session object. HttpSession session = req.getSession(true); session.setAttribute("logon.isDone", name); // just a marker object // Try redirecting the client to the page he first tried to access try { res.sendRedirect("/jsp/testing/Welcome.jsp"); return; } catch (Exception ignored) { } // Couldn't redirect to the target. Redirect to the site's home page. res.sendRedirect(req.getScheme() + "://" + req.getServerName() + ":" + req.getServerPort()); } } protected boolean loggedIn(String name, String passwd) { return (name=="abc" passwd=="123 "); } } // //Here is the login.html HTML TITLELogin/TITLE BODY FORM ACTION=/servlet/LoginHandler METHOD=POST CENTER TABLE BORDER=0 TRTD COLSPAN=2 P ALIGN=CENTER Welcome! Please enter your NnnnNamebr and Password to log in. /TD/TR TRTD P ALIGN=RIGHTBName:/B /TD TD PINPUT TYPE=TEXT NAME="name" VLAUE="" SIZE=15 /TD/TR TRTD P ALIGN=RIGHTBPassword:/B /TD TD PINPUT TYPE=PASSWORD NAME="passwd" VALUE="" SIZE=15 /TD/TR TRTD COLSPAN=2 CENTER INPUT TYPE=SUBMIT VALUE=" OK " /CENTER /TD/TR /TABLE /BODY/HTML //* //Here is the Welcom.jsp % if ( session.getValue("userName") == null) { % B hello...it is a nullB % // here we can give some error message % % } else {% !--- so this is the authorized user let's display the welcome message --- HTML HEAD B Welcome %= session.getValue("userName")% /B /HEAD BODY !--- all the other stuff -- /BODY / HTML % } %
Please help me....
Hi all, I need a clarification regarding orion, my application is an ecommerce websitewhich is build fully with JSP . When i tried to send form fields with form method='post' action='second.jsp' from first.jsp.second.jsp is not receiveing any fields and giving me a blank page with "Done" in the status bar. The total number of line in the first.jsp is more than 3500 linesand in second.jsp total number of line is more than 2500 lines. Does the number lines will do with this. When method='get' same jsp file works good. This is only happens in the site (that is in my remote orion server)When i tried in the local machine its working good what i can do for thisany suggestion Just of this problem i want to switch my server to JRun Is is it right...What you will do when you are in the same situation.Please let me know how i can solve this problem. Does anythird party API available for this post method. If my question was not clear please let me know i will send you once again clearly. Please help me in this regards..I am expecting your reply. Advance thankings for your valuable reply. Best regardswaheed
SV: Please help me....
Title: SV: Please help me You've got viruses. Please don't send me any more private mails on this subject. Such mails should be directed to the Orion List, JSP List or [EMAIL PROTECTED] WR -Ursprungligt meddelande- Från: waheed_rahuman [mailto:[EMAIL PROTECTED]] Skickat: den 28 mars 2001 02:21 Till: Orion-Interest Ämne: Please help me Hi all, I need a clarification regarding orion, my application is an ecommerce website which is build fully with JSP . When i tried to send form fields with form method='post' action='second.jsp' from first.jsp. second.jsp is not receiveing any fields and giving me a blank page with Done in the status bar. The total number of line in the first.jsp is more than 3500 lines and in second.jsp total number of line is more than 2500 lines. Does the number lines will do with this. When method='get' same jsp file works good. This is only happens in the site (that is in my remote orion server) When i tried in the local machine its working good what i can do for this any suggestion Just of this problem i want to switch my server to JRun Is is it right...What you will do when you are in the same situation. Please let me know how i can solve this problem. Does anythird party API available for this post method. If my question was not clear please let me know i will send you once again clearly. Please help me in this regards..I am expecting your reply. Advance thankings for your valuable reply. Best regards waheed
Fw: Please help me, How to get Orion's Environment Such as HostName, Port...???
- Original Message - From: urey To: Larry Velez Sent: Sunday, March 18, 2001 5:40 PM Subject: Re: Please help me, How to get Orion's Environment Such as HostName, Port...??? Hi Larry, It's sorry for my mistake. I want to write some Ejbs, and running them on Orion. the one of the Ejb for to store all the config info, and I have two methods for to load and reload all the config files( *.xml) in it, The config files( *.xml) all in my ear package. I don't know how to access my config files flexible in my Ejb. hope this help you to know my question Thanks you yours Urey - Original Message - From: Larry Velez To: 'urey' Sent: Saturday, March 17, 2001 12:38 AM Subject: RE: Please help me, How to get Orion's Environment Such as HostName, Port...??? I am not sure I understand your question but it looks like you are having trouble with your classpath. How are you launching Orion? What OS are you running? -Larry -Original Message-From: urey [mailto:[EMAIL PROTECTED]]Sent: Friday, March 16, 2001 4:48 AMTo: Larry VelezCc: Larry VelezSubject: Re: Please help me, How to get Orion's Environment Such as HostName, Port...??? Hello Larry, Thanks for your hint. I reread the web-site.xml.html just now. Really, I can getsome Orion server's environment transit itself config/ *.xml in my application programme. But, I think there are some trouble with me. Must Icodingsome parse for the *.xml?? If not, How will I do in my application programme?? and I can't get Orion's running really PATH from its config/*.xml. in its config/*.xmlonly have relative PATH. How could I do? Could you Please give me some helpful hint again, Thanks you again yoursUrey - Original Message - From: Larry Velez To: Urey Sent: Friday, March 16, 2001 3:46 PM Subject: RE: Please help me, How to get Orion's Environment Such as HostName, Port...??? These settings can be found in the web-site.xml file. You can read up on the details here: http://www.orionserver.com/docs/web-site.xml.html Larry Original Message-From: Urey.u [mailto:[EMAIL PROTECTED]]Sent: Thursday, March 15, 2001 9:23 PMTo: Orion-InterestCc: Urey; Orion-InterestSubject: Please help me, How to get Orion's Environment Such as HostName, Port...??? Dear All, When Orion Server was started. Could you please tell me,how to get Orion's environment Such as HostName,Port,Running Pathand so on in my application class file , not applet, servlet or JSP file?. Regards yoursUrey
Re: Please help me, How to get Orion's Environment Such as HostName, Port...???
Hi, You can try http://127.0.0.1 in your browser after starting orion as java -jar orion.jar If you have some other web server please shutdown that server and try again restarting the orion regards waheed - Original Message - From: Urey.u To: Orion-Interest Cc: Urey ; Orion-Interest Sent: Friday, March 16, 2001 6:23 AM Subject: Please help me, How to get Orion's Environment Such as HostName, Port...??? Dear All, When Orion Server was started. Could you please tell me,how to get Orion's environment Such as HostName,Port,Running Pathand so on in my application class file , not applet, servlet or JSP file?. Regards yoursUrey
Please help me, How to get Orion's Environment Such as HostName, Port...???
Dear All, When Orion Server was started. Could you please tell me,how to get Orion's environment Such as HostName,Port,Running Pathand so on in my application class file , not applet, servlet or JSP file?. Regards yoursUrey
Please help me, How to get Orion's Environment Such as HostName, Port...???
Dear All, When Orion Server was started. Could you please tell me,how to get Orion's environment Such as HostName,Port,Running Pathand so on in my application class file , not applet, servlet or JSP file?. Regards yoursUrey
newbie question. Please help!
Hi there, I am new to EJB's and Orion, and I got Problems deploying my first EJB application. I rewrote the OrionPrimer from orionsupport.com, changing package and class names and adjusted the build.xml and the other descriptors, but Orion reports this error on startup: Orion/1.4.5 initialized Auto-unpacking /root/ejb/session-bean/build/session-bean.ear... Error unpacking: IO Error: error in opening zip file Error instantiating application at file:/root/ejb/session-bean/build/session-bean.ear: Unable to find/read assembly info for /root/ejb/session-bean/build/session-bean (IO error: unable to find session-bean) I compared the file and directory structures of the two applications and they seem to match. Can anyone help me please? If so, please crosspost at [EMAIL PROTECTED] regards, felix -- Sent through GMX FreeMail - http://www.gmx.net
RE: Session cookie and https. PLEASE HELP!!!!
basically, cookies are URL spec (as per the spec, check it out in Netscape Central) URL dependant; if you send a cookie for a URL http://www.yahoo.com then that cookie is valid for that URL only; that cookie won't show up for URL https://www.yahoo.com (note the different protocol, https, instead of http); there's a way to make a cookie public for all URL's, but of course, that might compromise security; that's what orion does when you set 'shared="true"'. A good log would surely help (may I suggest log4j, http://jakarta.apache.org) HTH JP -Original Message- From: Sergio Socarras [mailto:[EMAIL PROTECTED]] Sent: Friday, March 09, 2001 2:59 PM To: Orion-Interest; [EMAIL PROTECTED] Subject: RE: Session cookie and https. PLEASE HELP Juan, Thanks for responding to my email! Yes sessions working correctly is truly critical to our app. Basically we have about 14 machines running in our environment behind an alteon. The alteon selects a machine the first a person comes in, a session is created, and that person is made sticky to that machine because we are not currently replicating sessions. On and off we have reports of sessions being lost. I'm not sure if operations is making a mistake in regards to the stickiness or if I'm dealing with another issue here. What I have noticed is what I mention in my previous email, that under https I never see the cookie get set and sometimes and only sometimes URLs get rewritten. Someone in another email suggested I use the shared=true setting in the secure-site.xml but I'm not sure how this would help. The documentation is rather vague in this area so any help would be appreciated. Thanks for all your help! Sergio in our application it is truely critical that --- "Juan Lorandi (Chile)" [EMAIL PROTECTED] wrote: Under SSL, the (preferred) method for session-tracking is SSL session id. I think orion tries this, and falls back to URL rewriting if needed. HTH JP PS: Is this truly critical to your app? We are implementing our own Session Management here and perhaps we'll run into the same problems you will? -Original Message- From: Sergio Socarras [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 07, 2001 5:01 AM To: Orion-Interest Subject: Session cookie and https. PLEASE HELP Hi I'm running into some strange behavior with sessions when running under https. I notice that when I set my browser to prompt me when a cookie is to be set and hit my application with regular http, I get a prompt for the session cookie. If I hit the same page running a secure connection I'm never prompted. I also notice that under the secure connection some of my URLs get rewritten. Interesting enough the first page, which is where I initially create the session, doesn't have any of its URLs rewritten. However, the second, third, and forth pages do. Can someone please explain what's going on. Does the setting of the session cookie not work under secure connections? PLEASE PLEASE HELP!!! Thanks Sergio __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
RE: Session cookie and https. PLEASE HELP!!!!
Juan, Thanks for responding to my email! Yes sessions working correctly is truly critical to our app. Basically we have about 14 machines running in our environment behind an alteon. The alteon selects a machine the first a person comes in, a session is created, and that person is made sticky to that machine because we are not currently replicating sessions. On and off we have reports of sessions being lost. I'm not sure if operations is making a mistake in regards to the stickiness or if I'm dealing with another issue here. What I have noticed is what I mention in my previous email, that under https I never see the cookie get set and sometimes and only sometimes URLs get rewritten. Someone in another email suggested I use the shared=true setting in the secure-site.xml but I'm not sure how this would help. The documentation is rather vague in this area so any help would be appreciated. Thanks for all your help! Sergio in our application it is truely critical that --- "Juan Lorandi (Chile)" [EMAIL PROTECTED] wrote: Under SSL, the (preferred) method for session-tracking is SSL session id. I think orion tries this, and falls back to URL rewriting if needed. HTH JP PS: Is this truly critical to your app? We are implementing our own Session Management here and perhaps we'll run into the same problems you will? -Original Message- From: Sergio Socarras [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 07, 2001 5:01 AM To: Orion-Interest Subject: Session cookie and https. PLEASE HELP Hi I'm running into some strange behavior with sessions when running under https. I notice that when I set my browser to prompt me when a cookie is to be set and hit my application with regular http, I get a prompt for the session cookie. If I hit the same page running a secure connection I'm never prompted. I also notice that under the secure connection some of my URLs get rewritten. Interesting enough the first page, which is where I initially create the session, doesn't have any of its URLs rewritten. However, the second, third, and forth pages do. Can someone please explain what's going on. Does the setting of the session cookie not work under secure connections? PLEASE PLEASE HELP!!! Thanks Sergio __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
RE: Problem starting up Orion, Please help!
Thanks, everybody for your suggestions. Now the port problem has been solved. But jsp is not running yet. The tools.jar is already in orion directory. Still, I can not figure out why orion has started up and running but couldn't run a simple jsp? To save time, I uploaded the whole orion directory from my pc to my unix account. Then I changed the configuration files to fit the unix environment.I could start orion by java -jar orion.jar without an error, but could not run, for example, wazzup.jsp http://uxb.wiu.edu:10008/wazzup.jsp The is the error message when I run wazzup.jsp 500 Internal Server ErrorError parsing JSP page /wazzup.jspSyntax error in sourcejava.lang.InternalError: jzentry == 0 at java.util.zip.ZipFile$2.nextElement(ZipFile.java:297) at sun.tools.java.ClassPath.getFiles(ClassPath.java:183) ...Please help!Roland -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Gabriel CiuloaicaSent: Wednesday, March 07, 2001 11:26 PMTo: Orion-InterestSubject: Re: Problem starting up Orion, Please help! for running jsp you need to copy tools.jar from jdk to orion directory. gabi Ithoughtthe port number has been used by others. But when I changed it to different port numbers, I still got the same message as the above. And I tried quite a few port numbers. However, when I open my browser and type in the default URL http://uxb.wiu.edu:10008 It works, I got orion up and running... then the problem: I can not even run a simple jsp file like the following Error...Error.. Can you help please? I have been spent whole day today without sucess. If you click the above URL you can see the error message. Roland
Session cookie and https. PLEASE HELP!!!!
Hi I'm running into some strange behavior with sessions when running under https. I notice that when I set my browser to prompt me when a cookie is to be set and hit my application with regular http, I get a prompt for the session cookie. If I hit the same page running a secure connection I'm never prompted. I also notice that under the secure connection some of my URLs get rewritten. Interesting enough the first page, which is where I initially create the session, doesn't have any of its URLs rewritten. However, the second, third, and forth pages do. Can someone please explain what's going on. Does the setting of the session cookie not work under secure connections? PLEASE PLEASE HELP!!! Thanks Sergio __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
RE: Session cookie and https. PLEASE HELP!!!!
Under SSL, the (preferred) method for session-tracking is SSL session id. I think orion tries this, and falls back to URL rewriting if needed. HTH JP PS: Is this truly critical to your app? We are implementing our own Session Management here and perhaps we'll run into the same problems you will? -Original Message- From: Sergio Socarras [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 07, 2001 5:01 AM To: Orion-Interest Subject: Session cookie and https. PLEASE HELP Hi I'm running into some strange behavior with sessions when running under https. I notice that when I set my browser to prompt me when a cookie is to be set and hit my application with regular http, I get a prompt for the session cookie. If I hit the same page running a secure connection I'm never prompted. I also notice that under the secure connection some of my URLs get rewritten. Interesting enough the first page, which is where I initially create the session, doesn't have any of its URLs rewritten. However, the second, third, and forth pages do. Can someone please explain what's going on. Does the setting of the session cookie not work under secure connections? PLEASE PLEASE HELP!!! Thanks Sergio __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Problem starting up Orion, Please help!
I just installed orion1.4.5 in my unix account. I have made the necessary configuration. However, when I start orion, it looks like this: uxb1% java -jar orion.jar Error starting RMI-Server: IO Error: Address already in use Error starting HTTP-Server: Address already in use Orion/1.4.5 initialized Ithoughtthe port number has been used by others. But when I changed it to different port numbers, I still got the same message as the above. And I tried quite a few port numbers. However, when I open my browser and type in the default URL http://uxb.wiu.edu:10008 It works, I got orion up and running... then the problem: I can not even run a simple jsp file like the following http://uxb.wiu.edu:10008/wazzup.jsp Error...Error.. Can you help please? I have been spent whole day today without sucess. If you click the above URL you can see the error message. Roland
RE: Problem starting up Orion, Please help!
It looks like your server is already using the port that rmi is listening to...something like 23791. The docs talk about a file called rmi.xml which needs to be modified if you aren't going to use 23791. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Roland DongSent: Wednesday, March 07, 2001 9:22 PMTo: Orion-InterestSubject: Problem starting up Orion, Please help! I just installed orion1.4.5 in my unix account. I have made the necessary configuration. However, when I start orion, it looks like this: uxb1% java -jar orion.jar Error starting RMI-Server: IO Error: Address already in use Error starting HTTP-Server: Address already in use Orion/1.4.5 initialized Ithoughtthe port number has been used by others. But when I changed it to different port numbers, I still got the same message as the above. And I tried quite a few port numbers. However, when I open my browser and type in the default URL http://uxb.wiu.edu:10008 It works, I got orion up and running... then the problem: I can not even run a simple jsp file like the following http://uxb.wiu.edu:10008/wazzup.jsp Error...Error.. Can you help please? I have been spent whole day today without sucess. If you click the above URL you can see the error message. Roland
RE: Problem starting up Orion, Please help!
"IO Error: Address already in use" solved! I have not figured out why I can not run jsp examples. Basically, the orion is up and running but it won't take jsp for example, if I run the following example http://uxb.wiu.edu:10008/wazzup.jsp I got 500 Internal Server ErrorError parsing JSP page /wazzup.jspSyntax error in sourcejava.lang.InternalError: jzentry == 0 at java.util.zip.ZipFile$2.nextElement(ZipFile.java:297)... Can you help please? I have been spent whole day today without sucess. Roland
RE: Problem starting up Orion, Please help!
Before stating your server check your host ports. Below is a very simple but useful portscanner import java.net.*; import java.io.*; public class TestPortScanner { public static void main(String[] args) { String host = "localhost"; if (args.length 0) { host = args[0]; } Socket theSocket = null; try { InetAddress theAddress = InetAddress.getByName(host); for (int i = 130; i 140; i++) { try { theSocket = new Socket(host, i); System.out.println("There is a server on port " + i + " of " + host); System.out.println(theSocket); theSocket.close(); } catch (IOException e) { // must not be a server on this port try { theSocket.close(); } catch (Exception ex) { System.err.println("close failure"); } } } // end for } // end try catch (UnknownHostException e) { System.err.println(e); } } // end main } // end PortScanner -Original Message- From: Roland Dong [SMTP:[EMAIL PROTECTED]] Sent: 08 2001 7:22 To: Orion-Interest Subject: Problem starting up Orion, Please help! I just installed orion1.4.5 in my unix account. I have made the necessary configuration. However, when I start orion, it looks like this: uxb1% java -jar orion.jar Error starting RMI-Server: IO Error: Address already in use Error starting HTTP-Server: Address already in use Orion/1.4.5 initialized I thought the port number has been used by others. But when I changed it to different port numbers, I still got the same message as the above. And I tried quite a few port numbers. However, when I open my browser and type in the default URL http://uxb.wiu.edu:10008 It works, I got orion up and running... then the problem: I can not even run a simple jsp file like the following http://uxb.wiu.edu:10008/wazzup.jsp Error...Error.. Can you help please? I have been spent whole day today without sucess. If you click the above URL you can see the error message. Roland
Re: Problem starting up Orion, Please help!
for running jsp you need to copy tools.jar from jdk to orion directory. gabi - Original Message - From: Roland Dong To: Orion-Interest Sent: Thursday, March 08, 2001 7:22 AM Subject: Problem starting up Orion, Please help! I just installed orion1.4.5 in my unix account. I have made the necessary configuration. However, when I start orion, it looks like this: uxb1% java -jar orion.jar Error starting RMI-Server: IO Error: Address already in use Error starting HTTP-Server: Address already in use Orion/1.4.5 initialized Ithoughtthe port number has been used by others. But when I changed it to different port numbers, I still got the same message as the above. And I tried quite a few port numbers. However, when I open my browser and type in the default URL http://uxb.wiu.edu:10008 It works, I got orion up and running... then the problem: I can not even run a simple jsp file like the following http://uxb.wiu.edu:10008/wazzup.jsp Error...Error.. Can you help please? I have been spent whole day today without sucess. If you click the above URL you can see the error message. Roland
Please Help!!:-(
Dear friends, My name is Sameer Khanna and I am relatively new to this mailing list. I am trying to incorporate transactional features into my stateful session beans. As such I have been confronted with few problems. I would appreciate if someone can help. 1). When I try and start a transaction from the client's code using the UserTransaction interface, it gives a runtime error stating "java:comp/UserTransaction not found". What, if any other, is the name to be used for looking up UserTransaction interface in the context? If it is not bound in the JNDI tree by default, how to go about binding it in the JNDI context? 2). If I want to implement SessionSynchronization interface in my Stateful Session bean, what are the steps to go about it (apart from implemeting its three methods in the Bean implementation class). I am asking this question because the methods don't seem to be called in the bean that I have made. If you have any working example that can illustrate the usage of SessionSynccronization interface, please be considerate enough to send it accross. I am using currently using Orion ver 1.3.8 running on a Windows 2000 machine, along with JDK 1.3. Please answer my queries at your earliest convenience as they are critical to the task that I am currently engaged in. Bye for now! Sameer
Orion sharing http port with IIS on different IPs. PLEASE HELP!
Hi, I need to be able to run IIS and orion on the same port but different ips. This seems to work ok with IIS and Apache but when I try to run orion with IIS I get the following error: Error starting HTTP-Server: Address in use: JVM_Bind Is there any way to get around this problem. Please help I really need to get this resolved. Thanks very much Sergio __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
SV: Orion sharing http port with IIS on different IPs. PLEASE HELP!
Title: SV: Orion sharing http port with IIS on different IPs. PLEASE HELP! I bet your Orion server is set up to server all IP addresses. Check your default-web-site.xml and edit the line web-site host=[ALL] port=80 display-name=Default Orion WebSite to your liking, making sure that you dont try to use the same port as IIS is using. WR -Ursprungligt meddelande- Från: Sergio Socarras [mailto:[EMAIL PROTECTED]] Skickat: den 13 februari 2001 13:24 Till: Orion-Interest Ämne: Orion sharing http port with IIS on different IPs. PLEASE HELP! Hi, I need to be able to run IIS and orion on the same port but different ips. This seems to work ok with IIS and Apache but when I try to run orion with IIS I get the following error: Error starting HTTP-Server: Address in use: JVM_Bind Is there any way to get around this problem. Please help I really need to get this resolved. Thanks very much Sergio __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
RE: Problem Compiling Servlet! Please help
Thanks for your help! I am very new to this and just want to have the servlet up and running... I did install the lasted Orion 1.45. I have not yet successfully compiled a simple servlet... I did put the tools.jar under orion directory and I even put it on the path in autoexec.bat so it looks like this: SET BLASTER=A220 I7 D1 T2 SET SNDSCAPE=C:\WINDOWS PATH C:\WINDOWS;C:\WINDOWS\COMMAND path=%path%;c:\jdk1.3\bin;C:\ORAWIN95\BIN;C:\jdk1.3\lib\tools.jar;C:\jsdk2.1\servlet.jar; set CLASSPATH=,;jsdk2.1\servlet.jar;%CLASSPATH% doskey Unfortunately, when I type in the command javac helloworld2.java I still got this error: C:\Web\jsp\jspRoland\WEB-INF\classesjavac HelloworldServlet2.java HelloworldServlet2.java:2: package javax.servlet does not exist import javax.servlet.*; ^ HelloworldServlet2.java:3: package javax.servlet.http does not exist import javax.servlet.http.*; . I have tried everything I can think of... Some tutorial said I need to put jsdk.jar on the path. I down loaded jsdk2.1 from Sun website but did not find jsdk.jar in it. Can you help me again? Thanks a lot. Roland -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kemp Randy-W18971 Sent: Monday, January 22, 2001 1:14 PM To: Orion-Interest Subject: RE: Problem Compiling Servlet! Please help Do you have the servlet.jar in your classpath (needed for Tomcat) or put the tools.jar in the Orion directory (see Orion installation instructions)? Try upgrading at least to Orion 1.3 (the latest stable version). -Original Message- From: Roland Dong [mailto:[EMAIL PROTECTED]] Sent: Monday, January 22, 2001 3:06 PM To: Orion-Interest Subject: RE: Problem Compiling Servlet! Please help I have successfully auto-compiled the servlet(HelloWorld2.java) by following the instruction in the documentation. However, I wanted to compile the servlet with JDK 1.3 compiler to compile the servlet and I did not succeed. Your documentation says: "Of course you can also compile the Servlets using your favourite IDE or java compiler. If you do so you simply put the Servlet class in the WEB-INF/classes directory of your web application. If you do not want to package your Servlets into a new web application, you can simply put the classes in /orion/default-web-app/WEB-INF/classes/ " I tried to put the HelloWorld2.java under WEB_INF/classes directory. It won't compile. I got errror mesasges: like: HelloWorldServlet2.java:2: package javax.servlet does not exist import javax.servlet.*; I guess the problem is the path... If so can you tell me how to set the path so that my Java compile can compile the servlet? I am using orion 1.0.1. Thanks a lot, Roland
RE: Problem Compiling Servlet! Please help
Do you have the servlet.jar in your classpath (needed for Tomcat) or put the tools.jar in the Orion directory (see Orion installation instructions)? Try upgrading at least to Orion 1.3 (the latest stable version). -Original Message- From: Roland Dong [mailto:[EMAIL PROTECTED]] Sent: Monday, January 22, 2001 3:06 PM To: Orion-Interest Subject: RE: Problem Compiling Servlet! Please help I have successfully auto-compiled the servlet(HelloWorld2.java) by following the instruction in the documentation. However, I wanted to compile the servlet with JDK 1.3 compiler to compile the servlet and I did not succeed. Your documentation says: "Of course you can also compile the Servlets using your favourite IDE or java compiler. If you do so you simply put the Servlet class in the WEB-INF/classes directory of your web application. If you do not want to package your Servlets into a new web application, you can simply put the classes in /orion/default-web-app/WEB-INF/classes/ " I tried to put the HelloWorld2.java under WEB_INF/classes directory. It won't compile. I got errror mesasges: like: HelloWorldServlet2.java:2: package javax.servlet does not exist import javax.servlet.*; I guess the problem is the path... If so can you tell me how to set the path so that my Java compile can compile the servlet? I am using orion 1.0.1. Thanks a lot, Roland
Recreating an expired session. PLEASE HELP!!!
How can I re-create a session once the session timeout has been reached and the server has invalidated the session. I have a couple of pages that require a session, but I need to timeout after five minutes of inactivity. If the session has timed out, I need to send the user back to a login page. The problem is that if I call getSession(true) on the request object I get the following exception: java.lang.IllegalStateException: Session was invalidated at com.evermind.server.http.EvermindHttpSession.invalidate(JAX) at com.evermind.server.http.EvermindHttpSession.valueUnbound(JAX) at com.sun.net.ssl.internal.ssl.SSLSessionImpl.putValue([DashoPro-V1.2-120198]) at com.evermind.server.http.EvermindHttpServletRequest.getSession(JAX) at /templates/test.jsp._jspService(/templates/test.jsp.java:17) at com.orionserver.http.OrionHttpJspPage.service(JAX) at com.evermind.server.http.HttpApplication.w5(JAX) at com.evermind.server.http.JSPServlet.service(JAX) at com.evermind.server.http.d1.si(JAX) at com.evermind.server.http.d1.forward(JAX) at com.evermind.server.http.ed.sp(JAX) at com.evermind.server.http.ed.so(JAX) at com.evermind.util.f.run(JAX) How do I force it to create a new session? Please help, I need to resolve this as soon as possible. Also if I specify a -1 for session timeout which implies that the session never times out, when and how does the memory for these session get released once the client is no longer interacting with the site. Thanks Sergio __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
Re: Recreating an expired session. PLEASE HELP!!!
what version of orion are you using? (-) Robert Krger (-) SIGNAL 7 Gesellschaft fr Informationstechnologie mbH (-) Brder-Knau-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de
RE: Recreating an expired session. PLEASE HELP!!!
What I do and I have seen alot of people do this, is put an Object in the HttpSession that indicates if a user is logged in or not. When they log in, you put that object in. If they log out, you remove it, and if the session times out, its gone as well. Simply check for that object (either on every JSP page before its displayed..giving you the option to forward to another "error" page if the page being displayed is not allowed unless they are logged in. I use an include file to reuse this functionality on every JSP page I need protected). Or, if your using a MVC framework, have some logic in your controller servlet that makes sure only if the object exists can certain pages be accessed, otherwise forward to the login page. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Sergio Socarras Sent: Sunday, January 21, 2001 2:44 AM To: Orion-Interest Subject: Recreating an expired session. PLEASE HELP!!! How can I re-create a session once the session timeout has been reached and the server has invalidated the session. I have a couple of pages that require a session, but I need to timeout after five minutes of inactivity. If the session has timed out, I need to send the user back to a login page. The problem is that if I call getSession(true) on the request object I get the following exception: java.lang.IllegalStateException: Session was invalidated at com.evermind.server.http.EvermindHttpSession.invalidate(JAX) at com.evermind.server.http.EvermindHttpSession.valueUnbound(JAX) at com.sun.net.ssl.internal.ssl.SSLSessionImpl.putValue([DashoPro-V1. 2-120198]) at com.evermind.server.http.EvermindHttpServletRequest.getSession(JAX) at /templates/test.jsp._jspService(/templates/test.jsp.java:17) at com.orionserver.http.OrionHttpJspPage.service(JAX) at com.evermind.server.http.HttpApplication.w5(JAX) at com.evermind.server.http.JSPServlet.service(JAX) at com.evermind.server.http.d1.si(JAX) at com.evermind.server.http.d1.forward(JAX) at com.evermind.server.http.ed.sp(JAX) at com.evermind.server.http.ed.so(JAX) at com.evermind.util.f.run(JAX) How do I force it to create a new session? Please help, I need to resolve this as soon as possible. Also if I specify a -1 for session timeout which implies that the session never times out, when and how does the memory for these session get released once the client is no longer interacting with the site. Thanks Sergio __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
RE: Recreating an expired session. PLEASE HELP!!!
Kevin, Why put an object in the session to indicate they're logged in - surely request.getRemoteUser() does this? (returns their username if logged in, null if not?) -mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Duffey Sent: Monday, January 22, 2001 5:45 AM To: Orion-Interest Subject: RE: Recreating an expired session. PLEASE HELP!!! What I do and I have seen alot of people do this, is put an Object in the HttpSession that indicates if a user is logged in or not. When they log in, you put that object in. If they log out, you remove it, and if the session times out, its gone as well. Simply check for that object (either on every JSP page before its displayed..giving you the option to forward to another "error" page if the page being displayed is not allowed unless they are logged in. I use an include file to reuse this functionality on every JSP page I need protected). Or, if your using a MVC framework, have some logic in your controller servlet that makes sure only if the object exists can certain pages be accessed, otherwise forward to the login page. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Sergio Socarras Sent: Sunday, January 21, 2001 2:44 AM To: Orion-Interest Subject: Recreating an expired session. PLEASE HELP!!! How can I re-create a session once the session timeout has been reached and the server has invalidated the session. I have a couple of pages that require a session, but I need to timeout after five minutes of inactivity. If the session has timed out, I need to send the user back to a login page. The problem is that if I call getSession(true) on the request object I get the following exception: java.lang.IllegalStateException: Session was invalidated at com.evermind.server.http.EvermindHttpSession.invalidate(JAX) at com.evermind.server.http.EvermindHttpSession.valueUnbound(JAX) at com.sun.net.ssl.internal.ssl.SSLSessionImpl.putValue([DashoPro-V1. 2-120198]) at com.evermind.server.http.EvermindHttpServletRequest.getSession(JAX) at /templates/test.jsp._jspService(/templates/test.jsp.java:17) at com.orionserver.http.OrionHttpJspPage.service(JAX) at com.evermind.server.http.HttpApplication.w5(JAX) at com.evermind.server.http.JSPServlet.service(JAX) at com.evermind.server.http.d1.si(JAX) at com.evermind.server.http.d1.forward(JAX) at com.evermind.server.http.ed.sp(JAX) at com.evermind.server.http.ed.so(JAX) at com.evermind.util.f.run(JAX) How do I force it to create a new session? Please help, I need to resolve this as soon as possible. Also if I specify a -1 for session timeout which implies that the session never times out, when and how does the memory for these session get released once the client is no longer interacting with the site. Thanks Sergio __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
Re: Where is my data(EJB create on the Postgres DBMS) going, please help find it, thanks a lot!!!
If its a CMP entity bean, try setting the transaction to REQUIRED or something other than SUPPORTS. I've had problems with ORION and Postgres not persisting the data if it's not in a transaction, just keeps it in memory. Setting the transaction on the bean to REQUIRED, or anything that insures that the bean is called inside a transaction and sends the commit call to Postgres should make postgres persist the data and you could check it with a simple select SQL statement using psql or any other postgres client. /christofer - Original Message - From: "urey" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Sunday, November 26, 2000 11:10 AM Subject: Where is my data(EJB create on the Postgres DBMS) going, please help find it, thanks a lot!!! Dear all, I cann't find the data that EJB create , please help me find it. Thanks a lot, yours Urey 1) E:\Urey\new p\orion1.3.8\orionjava -jar orion.jar Auto-unpacking E:\Urey\new p\orion1.3.8\orion\applications\testAPP.ear... done. Auto-deploying testAPP (New server version detected)... Auto-deploying beans.jar (No previous deployment found)... Auto-creating table: create table test (name_ VARCHAR(255) not null primary key) java.security.Policy: error parsing file:C:/Documents and Settings/Urey/.java.policy java.security.Policy: line 8: expected ';', found '/' done. Orion/1.3.8 initialized file://** I am runing Orion in PC side got errors: (1) Auto-creating table: create table test (name_ VARCHAR(255) not null primary key) (2) java.security.Policy: error parsing file:C:/Documents and Settings/Urey/.java.policy How could I do? *// 2) E:\Urey\new p\orion1.3.8\orion\demo\ejb\ABCp file://** I am runing my client, that's well, but I cann't find the data in my Postgres DBMS Server side??? I cann't find where is the data of the EJB create ,Please help me // 3) E:\Urey\new p\orion1.3.8\orion\demo\ejb\ABCjava -classpath ../../../orion.jar;../../../ejb.jar;../../../jndi.jar;testAPPClient.jar;. testEJBClient javax.ejb.DuplicateKeyException: Entity already exists at com.evermind.server.rmi.bb.invokeMethod(JAX) at com.evermind.server.rmi.a2.invoke(JAX) at com.evermind.server.rmi.a3.invoke(JAX) at __Proxy1.create(Unknown Source) at testEJBClient.init(testEJBClient.java:20) at testEJBClient.main(testEJBClient.java:28) file://* When I run my client next time but he said the EJB alread exists, BUY I really cann't find it in my postgres DBMS side, Where I missed Tell me, Please.***// There are my configs on Orion: data-source is: data-source class="com.evermind.sql.DriverManagerDataSource" schema="database-schemas/postgresql.xml" name="PostGreSQL" location="jdbc/javatest" xa-location="jdbc/xa/javatest" ejb-location="jdbc/javatest" connection-driver="postgresql.Driver" username="postgres" password="" url="jdbc:postgresql://192.168.0.88/javatest" inactivity-timeout="30" / And the database-scheme is : ?xml version="1.0"? !DOCTYPE database-schema PUBLIC "-//Evermind//- Database schema" "http://www.orionserver.com/dtds/database-schemas.dtd" database-scheme name="PostGreSQL" max-table-name-length="25" not-null="not null" null="" primary-key="primary key" type-mapping type="java.lang.String" name="varchar" / type-mapping type="java.lang.Integer" name="int8" / type-mapping type="int" name="int4" / type-mapping type="long" name="int8" / type-mapping type="float" name="float4" / type-mapping type="double" name="float8" / type-mapping type="byte" name="int2" / type-mapping type="char" name="char" / type-mapping type="short" name="int2" / type-mapping type="boolean" name="bool" / type-mapping type="java.util.Date" name="date" / type-mapping type="java.io.Serializable" name="oid" / type-mapping type="java.math.BigDecimal" name="decimal" / disallowed-field name="parent" / disallowed-field name="password" / disallowed-field name="username" / disallowed-field name="date" / disallowed-field name="order" / disallowed-field name="old" / disallowed-field name="user" / /database-scheme
SV: Where is my data(EJB create on the Postgres DBMS) going, please help find it, thanks a lot!!!
You might want to edit your java.policy file to make it run. Seems you have something there that isnt alowed, so you are not allowed to contact the database. Klaus -Opprinnelig melding-Fra: urey [mailto:[EMAIL PROTECTED]]Sendt: 26. november 2000 11:10Til: Orion-InterestEmne: Where is my data(EJB create on the Postgres DBMS) going, please help find it, thanks a lot!!! Dear all, I cann't find the data that EJB create , please help me find it. Thanks a lot, yours Urey 1)E:\Urey\new p\orion1.3.8\orionjava -jar orion.jarAuto-unpacking E:\Urey\new p\orion1.3.8\orion\applications\testAPP.ear... done.Auto-deploying testAPP (New server version detected)...Auto-deploying beans.jar (No previous deployment found)...Auto-creating table: create table test (name_ VARCHAR(255) not null primary key)java.security.Policy: error parsing file:C:/Documents and Settings/Urey/.java.policyjava.security.Policy: line 8: expected ';', found '/'done.Orion/1.3.8 initialized file://** I am runing Orion in PC side got errors: (1) Auto-creating table: create table test (name_ VARCHAR(255) not null primary key) (2) java.security.Policy: error parsing file:C:/Documents and Settings/Urey/.java.policy How could I do? *// 2)E:\Urey\new p\orion1.3.8\orion\demo\ejb\ABCp file://** I am runing my client, that's well, but I cann't find the data in my Postgres DBMS Server side??? I cann't find where is the data of the EJB create ,Please help me // 3)E:\Urey\new p\orion1.3.8\orion\demo\ejb\ABCjava -classpath ../../../orion.jar;../../../ejb.jar;../../../jndi.jar;testAPPClient.jar;. testEJBClientjavax.ejb.DuplicateKeyException: Entity already exists at com.evermind.server.rmi.bb.invokeMethod(JAX) at com.evermind.server.rmi.a2.invoke(JAX) at com.evermind.server.rmi.a3.invoke(JAX) at __Proxy1.create(Unknown Source) at testEJBClient.init(testEJBClient.java:20) at testEJBClient.main(testEJBClient.java:28) file://* When I run my client next time but he said the EJB alread exists, BUY I really cann't find it in my postgres DBMS side, Where I missed Tell me, Please.***// There are my configs on Orion:data-source is: data-source class="com.evermind.sql.DriverManagerDataSource" schema="database-schemas/postgresql.xml" name="PostGreSQL" location="jdbc/javatest" xa-location="jdbc/xa/javatest" ejb-location="jdbc/javatest" connection-driver="postgresql.Driver" username="postgres" password="" url="jdbc:postgresql://192.168.0.88/javatest" inactivity-timeout="30" / And the database-scheme is : ?xml version="1.0"?!DOCTYPE database-schema PUBLIC "-//Evermind//- Database schema""http://www.orionserver.com/dtds/database-schemas.dtd" database-scheme name="PostGreSQL" max-table-name-length="25" not-null="notnull" null="" primary-key="primary key" type-mapping type="java.lang.String" name="varchar" / type-mapping type="java.lang.Integer" name="int8" / type-mapping type="int" name="int4" / type-mapping type="long" name="int8" / type-mapping type="float" name="float4" / type-mapping type="double" name="float8" / type-mapping type="byte" name="int2" / type-mapping type="char" name="char" / type-mapping type="short" name="int2" / type-mapping type="boolean" name="bool" / type-mapping type="java.util.Date" name="date" / type-mapping type="java.io.Serializable" name="oid" / type-mapping type="java.math.BigDecimal" name="decimal" / disallowed-field name="parent" / disallowed-field name="password" / disallowed-field name="username" / disallowed-field name="date" / disallowed-field name="order" / disallowed-field name="old" / disallowed-field name="user" / /database-scheme
Please Help Me, How to congfig Postgres DataSours on Orion?
Dear, I used Orion 1.3.8, Postgres 6.5,andits JDBC Driver jdbc6.5-1.2.jar. I'm config the Orion DataSours: data-source name="Postgres" class="postgresql.Driver" location="jdbc/javatest" pooled-location="jdbc/javatest" xa-location="jdbc/xa/javatest" ejb-location="jdbc/javatest" url="jdbc:postgresql://192.168.0.88/javatest" connection-driver="postgresql.Driver" username="postgres" password="" schema="./database-schemas/postgresql.xml"/ And copy the jdbc6.5-1.2.jar to Orion\Lib. But When I run Orion it's said: "Error initializing server: Unknown DataSource type: postgresql.Driver" I don't know how to config Postgres DataSours, and how to write the line Class="" and connection=""? and where can i get more info. of this? help me Please. Thank you! yoursUrey - Original Message - From: "Kays, Jeff" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Thursday, December 21, 2000 8:22 AM Subject: RE: Database behind entity beans? We're using Postgreslql with Linux. Seems to be working great, ask again in a couple of months when we're finished with our prototype. j -Original Message- From: Hegyi Tibor [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, December 20, 2000 4:20 AM To: Orion-Interest Subject: Database behind entity beans?Hi all, I just wonder what options we have for selecting the proper RDBMS/OODBMS to serve as persistent storage for our BMPs/CMPs or just for being accessed via JDBC. Oracle is the obvious choice, but might be rather expensive. I would like to hear some opinion on the databases you're using with Orion.Thanks, Tibor
Re: Please Help Me, How to congfig Postgres DataSours on Orion?
There is a problem with the jdbc postgresql documentation. Change your class name from postgresql.Driver to org.postgresql.Driver regards santosh s :) urey wrote: Dear, I used Orion 1.3.8, Postgres 6.5,and its JDBC Driver jdbc6.5-1.2.jar. I'm config the Orion DataSours: ß ålt;data-source ß ß name="Postgres" ß ß class="postgresql.Driver" ß ß location="jdbc/javatest" ß ß pooled-location="jdbc/javatest" ß ß xa-location="jdbc/xa/javatest" ß ß ejb-location="jdbc/javatest" ß ß url="jdbc:postgresql://192.168.0.88/javatest" ß ß connection-driver="postgresql.Driver" ß ß username="postgres" ß ß password="" ß ß schema="./database-schemas/postgresql.xml" /û/font And copy the jdbc6.5-1.2.jar to Orion\Lib. But When I run Orion it's said: ß"Error initializing server: Unknown DataSource type: postgresql.Driver" û/div I don't know how to config Postgres DataSours, and how to write the lineßClass="" and connection=""? and where can i get more info. of this?ß help me Please. Thank you! yoursUrey ß û/font û/div û/div - Original Message - From: "Kays, Jeff" mailto:[EMAIL PROTECTED][EMAIL PROTECTED] mailto:[EMAIL PROTECTED] To: "Orion-Interest" mailto:[EMAIL PROTECTED][EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2000 8:22 AM Subject: RE: Database behind entity beans? We're using Postgreslql with Linux. Seems to be working great, ask again in a couple of months when we're finished with our prototype. ßj -Original Message- From: Hegyi Tibor [ mailto:SMTP:[EMAIL PROTECTED]SMTP:[EMAIL PROTECTED] mailto:SMTP:[EMAIL PROTECTED]] Sent: Wednesday, December 20, 2000 4:20 AM To: Orion-Interest Subject: Database behind entity beans? Hi all, I just wonder what options we have for selecting the proper RDBMS/OODBMS to serve as persistent storage for our BMPs/CMPs or just for being accessed via JDBC. Oracle is the obvious choice, but might be rather expensive. I would like to hear some opinion on the databases you're using with Orion. Thanks, Tibor ß
RE: Please Help Me, How to congfig Postgres DataSours on Orion?
Easy, the driver class is org.postgresql.Driver - fix it and you're away. Mike -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of ureySent: Wednesday, November 22, 2000 7:50 PMTo: Orion-InterestCc: Orion-InterestSubject: Please Help Me, How to congfig Postgres DataSours on Orion? Dear, I used Orion 1.3.8, Postgres 6.5,andits JDBC Driver jdbc6.5-1.2.jar. I'm config the Orion DataSours: data-source name="Postgres" class="postgresql.Driver" location="jdbc/javatest" pooled-location="jdbc/javatest" xa-location="jdbc/xa/javatest" ejb-location="jdbc/javatest" url="jdbc:postgresql://192.168.0.88/javatest" connection-driver="postgresql.Driver" username="postgres" password="" schema="./database-schemas/postgresql.xml"/ And copy the jdbc6.5-1.2.jar to Orion\Lib. But When I run Orion it's said: "Error initializing server: Unknown DataSource type: postgresql.Driver" I don't know how to config Postgres DataSours, and how to write the line Class="" and connection=""? and where can i get more info. of this? help me Please. Thank you! yoursUrey - Original Message - From: "Kays, Jeff" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Thursday, December 21, 2000 8:22 AM Subject: RE: Database behind entity beans? We're using Postgreslql with Linux. Seems to be working great, ask again in a couple of months when we're finished with our prototype. j -Original Message- From: Hegyi Tibor [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, December 20, 2000 4:20 AM To: Orion-Interest Subject: Database behind entity beans?Hi all, I just wonder what options we have for selecting the proper RDBMS/OODBMS to serve as persistent storage for our BMPs/CMPs or just for being accessed via JDBC. Oracle is the obvious choice, but might be rather expensive. I would like to hear some opinion on the databases you're using with Orion.Thanks, Tibor
Re: Please Help Me, How to congfig Postgres DataSours on Orion?
Not quite right, the class line is wrong - this should be the driver manager class, not the driver class i.e. class="com.evermind.sql.DriverManagerDataSource" Whether the driver is postgresql.Driver or org.postgresql.Driver depends on the driver version. Mike Cannon-Brookes wrote: Easy, the driver class is org.postgresql.Driver - fix it and you're away.Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of urey Sent: Wednesday, November 22, 2000 7:50 PM To: Orion-Interest Cc: Orion-Interest Subject: Please Help Me, How to congfig Postgres DataSours on Orion? Dear, I used Orion 1.3.8, Postgres 6.5,and its JDBC Driver jdbc6.5-1.2.jar.I'm config the Orion DataSours: data-source name="Postgres" class="postgresql.Driver" location="jdbc/javatest" pooled-location="jdbc/javatest" xa-location="jdbc/xa/javatest" ejb-location="jdbc/javatest" url="jdbc:postgresql://192.168.0.88/javatest" connection-driver="postgresql.Driver" username="postgres" password="" schema="./database-schemas/postgresql.xml" />And copy the jdbc6.5-1.2.jar to Orion\Lib.But When I run Orion it's said: "Error initializing server: Unknown DataSource type: postgresql.Driver" I don't know how to config Postgres DataSours, and how to write the line Class="" and connection=""? and where can i get more info. of this?help me Please.Thank you!yoursUrey - Original Message -From: "Kays, Jeff" [EMAIL PROTECTED]>To: "Orion-Interest" [EMAIL PROTECTED]>Sent: Thursday, December 21, 2000 8:22 AMSubject: RE: Database behind entity beans? > We're using Postgreslql with Linux. Seems to be working great, ask again in > a > couple of months when we're finished with our prototype. > > j > > > -Original Message- > > From: Hegyi Tibor [SMTP:[EMAIL PROTECTED]] > > Sent: Wednesday, December 20, 2000 4:20 AM > > To: Orion-Interest > > Subject: Database behind entity beans? > > > > Hi all, > > > > I just wonder what options we have for selecting the proper RDBMS/OODBMS > > to serve as persistent storage for our BMPs/CMPs or just for being > > accessed via JDBC. Oracle is the obvious choice, but might be rather > > expensive. > > > > I would like to hear some opinion on the databases you're using with > > Orion. > > > > Thanks, > > > > Tibor > > > > > > > -- David Smith Software Development Manager e-Net Software Ltd [EMAIL PROTECTED]
FW: Please help me!! JMS and distributed EJBs
Hi I've already posted this few days ago. Please help me! Thanks, Esteban -Original Message- From: Lopez Esteban [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, December 12, 2000 12:52 PM To: Orion-Interest Subject: JMS and distributed EJBs Hi! I need some help about JMS configuration. My problem is: I have 2 orion servers, orionA and orionB, I have configured my servers like this: orionA (rmi.xml): server host="orionB" username="admin" password="admin" / orionB (rmi.xml): server host="orionA" username="admin" password="admin" / And I deployed an aplications which have 2 beans Bean1: session bean Bean2: MessageDriven In my orion-application-jar.xml i put: orionA (orion-application-jar.xml): ejb-module remote="false" path="Bean1" / ejb-module remote="true" path="Bean2" / orionB (orion-application-jar.xml): ejb-module remote="true" path="Bean1" / ejb-module remote="false" path="Bean2" / I use the orionB in my jndi.property in my client to use Bean1 and this work fine, but must Bean1 use JMS to call Bean2 and Bean2 recieves nothing. If I deploy the 2 beans in 1 orion, this work correctly, but in 2 orions the JMS does not work correctly. Any ideas? Thanks, Esteban
RE: please help me, from yoursUrey
JavaMail API from Sun is all you need. It contains both smtp and pop3 implementation and all documents on how to use them. Kevin -Original Message- From: ureyurey [mailto:[EMAIL PROTECTED]] Sent: Monday, December 11, 2000 7:12 PM To: Orion-Interest Cc: [EMAIL PROTECTED] Subject: please help me, from yoursUrey Dear Sir. Could you please tell me how to use JavaMail API to send and receive mails on Orion? Did the Orion provide the service of the SMTP,POP3...£¿ What's required for us to use JavaMail API to send and receive mails on Orion? and do I need to install a mail server to provide the service of SMTP,POP3 when i use JavaMail API to send and receive mails on Orion£¿ Thanks a lot, yoursUrey - Original Message - From: "Daniel C. DiCesare" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Monday, December 11, 2000 4:52 PM Subject: Re: Anyone help me of Javamail ? I maybe able to help. What is the question? -Danno - Original Message - From: "ureyurey" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, December 11, 2000 5:43 AM Subject: Anyone help me of Javamail ? hi, i'm trying to send recieve mails using javamail api ejb. pls..., anyone help me out. write in details... thanks yoursUrey __ ==ETH;Acir c;Agrave;Euml;Atilde;acirc;¡¤Ntilde;micro;ccedil; ¡ÁOacute;Oacute;Ecirc;Iuml;auml; http://mail.sina.com.cn ETH;Acirc;Agrave;Euml;Iacute;AElig;sup3;ouml;¡ãAcirc;Ocirc;Euml; para;Igrave;ETH;Aring;Iuml;cent;Ecirc;Ouml;raquo;¨²micro;atilde;s up2;yen;¡¤thorn;Icirc;ntilde; http://sms.sina.com.cn/ __ ==ÐÂÀËÃâ·Ñµç ×ÓÓÊÏä http://mail.sina.com.cn ÐÂÀËÍƳö°ÂÔ˶ÌÐÅÏ¢ÊÖ»úµã²¥·þÎñ http://sms.sina.com.cn/
please help me, from yoursUrey
Dear Sir. Could you please tell me how to use JavaMail API to send and receive mails on Orion? Did the Orion provide the service of the SMTP,POP3...£¿ What's required for us to use JavaMail API to send and receive mails on Orion? and do I need to install a mail server to provide the service of SMTP,POP3 when i use JavaMail API to send and receive mails on Orion£¿ Thanks a lot, yoursUrey - Original Message - From: "Daniel C. DiCesare" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Monday, December 11, 2000 4:52 PM Subject: Re: Anyone help me of Javamail ? I maybe able to help. What is the question? -Danno - Original Message - From: "ureyurey" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, December 11, 2000 5:43 AM Subject: Anyone help me of Javamail ? hi, i'm trying to send recieve mails using javamail api ejb. pls..., anyone help me out. write in details... thanks yoursUrey __ ==ETH;Acirc;Agrave;Euml;Atilde;acirc;¡¤Ntilde;micro;ccedil; ¡ÁOacute;Oacute;Ecirc;Iuml;auml; http://mail.sina.com.cn ETH;Acirc;Agrave;Euml;Iacute;AElig;sup3;ouml;¡ãAcirc;Ocirc;Euml;para;Igrave;ETH;Aring;Iuml;cent;Ecirc;Ouml;raquo;¨²micro;atilde;sup2;yen;¡¤thorn;Icirc;ntilde; http://sms.sina.com.cn/ __ ==ÐÂÀËÃâ·Ñµç×ÓÓÊÏä http://mail.sina.com.cn ÐÂÀËÍƳö°ÂÔ˶ÌÐÅÏ¢ÊÖ»úµã²¥·þÎñ http://sms.sina.com.cn/
Re: please help me, from yoursUrey
Dear Sir. Could you please tell me how to use JavaMail API to send and receive mails on Orion? Did the Orion provide the service of the SMTP,POP3...£¿ What's required for us to use JavaMail API to send and receive mails on Orion? and do I need to install a mail server to provide the service of SMTP,POP3 when i use JavaMail API to send and receive mails on Orion£¿ This has nothing to do with Orion, other than how to place the mail.jar and archive.jar files, which has been addressed on this list before, and which is archived for your reference. See the mailing list archives. As for using JavaMail, I recommend that you start with the API JavaDocs and the sample code provided with the JavaMail package, which you can download from Sun.
please help me, from yoursUrey
Dear Sir. Could you tell me how to use JavaMail to send or recv mails on Orion? What needs to use JavaMail to send and recv mails on Orion, did the Orion provide the service of the SMTP,POP3...£¿ and did i need to in stall a mail server to provide the service of SMTP,POP3 when i use JavaMail API to send or recv mails on Orion£¿ Thanks a lot, yoursUrey __ ==ÐÂÀËÃâ·Ñµç×ÓÓÊÏä http://mail.sina.com.cn ÐÂÀËÍƳö°ÂÔ˶ÌÐÅÏ¢ÊÖ»úµã²¥·þÎñ http://sms.sina.com.cn/
RP/Please Help: Connecting to JMS from client application
Please help! Somebody must be using JMS from a client application running on a machine different than the server. How do I configure a client to use JMS. Say, the EJB Server runs on machine A. The client runs on machine B. How does the client on machine B know the location of JMS (which should be machine A)? The client always tries to connect to a JMS server on localhost. The only place where, I think, a hostname can be provided is in jms.xml. But that's a part of Orion configuration files. How do I configure the client? I tried copying jms.xml (in a desperate attempt) into the same location as orion-application-client.xml but that didn't work. Please, if anyone knows the answer, help me! This is a big problem for me right now. Thanks, Vidur PS. If possible, please also cc me directly. It sometimes takes a while for the list to distribute the postings and I'm really stuck!
RE: RP/Please Help: Connecting to JMS from client application
try setting the hostname in jndi.properties on machine B. e.g. java.naming.provider.url=ormi://machineA -Original Message- From: Vidur Dhanda [SMTP:[EMAIL PROTECTED]] Sent: Thursday, December 07, 2000 9:42 AM To: Orion-Interest Subject: RP/Please Help: Connecting to JMS from client application Please help! Somebody must be using JMS from a client application running on a machine different than the server. How do I configure a client to use JMS. Say, the EJB Server runs on machine A. The client runs on machine B. How does the client on machine B know the location of JMS (which should be machine A)? The client always tries to connect to a JMS server on localhost. The only place where, I think, a hostname can be provided is in jms.xml. But that's a part of Orion configuration files. How do I configure the client? I tried copying jms.xml (in a desperate attempt) into the same location as orion-application-client.xml but that didn't work. Please, if anyone knows the answer, help me! This is a big problem for me right now. Thanks, Vidur PS. If possible, please also cc me directly. It sometimes takes a while for the list to distribute the postings and I'm really stuck! -- CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately notify the sender by e-mail at the address shown. This e-mail transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance.
Re: RP/Please Help: Connecting to JMS from client application
I already have that and can use EJBs residing on machineA from a client on machineB. The problem is in using JMS. The client on machineB wants to subscribe to a message queue. Since Orion server is running on machineA, the JMS server is also running there. How does the client reference it? Vidur "Luong, Tony S322" wrote: try setting the hostname in jndi.properties on machine B. e.g. java.naming.provider.url=ormi://machineA -Original Message- From: Vidur Dhanda [SMTP:[EMAIL PROTECTED]] Sent: Thursday, December 07, 2000 9:42 AM To: Orion-Interest Subject: RP/Please Help: Connecting to JMS from client application Please help! Somebody must be using JMS from a client application running on a machine different than the server. How do I configure a client to use JMS. Say, the EJB Server runs on machine A. The client runs on machine B. How does the client on machine B know the location of JMS (which should be machine A)? The client always tries to connect to a JMS server on localhost. The only place where, I think, a hostname can be provided is in jms.xml. But that's a part of Orion configuration files. How do I configure the client? I tried copying jms.xml (in a desperate attempt) into the same location as orion-application-client.xml but that didn't work. Please, if anyone knows the answer, help me! This is a big problem for me right now. Thanks, Vidur PS. If possible, please also cc me directly. It sometimes takes a while for the list to distribute the postings and I'm really stuck! -- CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately notify the sender by e-mail at the address shown. This e-mail transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance.
RE: RP/Please Help: Connecting to JMS from client application
Well, I worked on this problem b/c it is something I eventually want to do, and I am finally able to connect to a remote JMS server. On the machine running JMS/Orion, you need to edit orion/config/jms.xml. You need to change the jms-server tag to contain the host that it is running on, don't just let it default to localhost (127.0.0.1). Anyways, your tag should look something like: jms-server host="xxx.xxx.xxx.xxx" port="9127" Then on the remote machine make sure that in your jndi.properties you are pointing to that machine as the service provider. jason
Data type to access a datetime field in database AGAIN. Please help!
Hi, I'm trying to access a datatime field in a SQL-SERVER 7.0 with a EJB CMP but I don't know which java type I have to use in the bean to map this field. I've tried with a java.util.Date type but I get the following error when i try to change the value of the data field: javax.ejb.EJBException: Error saving state: [Microsoft] [ODBC SQL Server Driver] Datatime field overflow at Persona_EntityBeanWrapper0.saveState(Persona_EntityBeanWrapper0.java:3092) at Persona_EntityBeanWrapper0.setPer_fecha_nac(Persona_EntityBeanWrapper0.java:2964) at NewCmp.doGet(NewCmp.java:51) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at com.evermind.server.http.d1.si(JAX) at com.evermind.server.http.d1.forward(JAX) at com.evermind.server.http.ed.sp(JAX) at com.evermind.server.http.ed.so(JAX) at com.evermind.util.f.run(JAX) Ihave the following type mapping in thedatabase-schema definition for sql-server: type-mapping type="java.util.Date" name="datetime" / but it still doesn't work. This is what I'm doing: . . . java.util.Date d = new java.util.Date(2004, 11, 27); Context context = new InitialContext(); Object homeObject = context.lookup("java:comp/env/Table1");Table1Home home = (Table1Home)PortableRemoteObject.narrow(homeObject, Table1Home.class); Table1 e = home.findByPrimaryKey("1234"); -- this works e.setA(d); this is the line where i get the error. The code for setA is the following: public void setA(java.util.Date newValue) { this.a = newValue; } Thanks.
RE: Data type to access a datetime field in database AGAIN. Please help!
java.sql.TimeStamp -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jose FresnadilloSent: Friday, December 01, 2000 7:36 AMTo: Orion-InterestSubject: Data type to access a datetime field in database AGAIN. Please help! Hi, I'm trying to access a datatime field in a SQL-SERVER 7.0 with a EJB CMP but I don't know which java type I have to use in the bean to map this field. I've tried with a java.util.Date type but I get the following error when i try to change the value of the data field: javax.ejb.EJBException: Error saving state: [Microsoft] [ODBC SQL Server Driver] Datatime field overflow at Persona_EntityBeanWrapper0.saveState(Persona_EntityBeanWrapper0.java:3092) at Persona_EntityBeanWrapper0.setPer_fecha_nac(Persona_EntityBeanWrapper0.java:2964) at NewCmp.doGet(NewCmp.java:51) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at com.evermind.server.http.d1.si(JAX) at com.evermind.server.http.d1.forward(JAX) at com.evermind.server.http.ed.sp(JAX) at com.evermind.server.http.ed.so(JAX) at com.evermind.util.f.run(JAX) Ihave the following type mapping in thedatabase-schema definition for sql-server: type-mapping type="java.util.Date" name="datetime" / but it still doesn't work. This is what I'm doing: . . . java.util.Date d = new java.util.Date(2004, 11, 27);Context context = new InitialContext();Object homeObject = context.lookup("java:comp/env/Table1");Table1Home home = (Table1Home)PortableRemoteObject.narrow(homeObject, Table1Home.class);Table1 e = home.findByPrimaryKey("1234"); -- this works e.setA(d); this is the line where i get the error. The code for setA is the following: public void setA(java.util.Date newValue) { this.a = newValue; } Thanks.
Re: Data type to access a datetime field in database AGAIN. Please help!
Hi, Juan! Don't forget the subclasses of java.util.Date: java.sql.Date java.sql.Time java.sql.Timestamp Regards Alan - Original Message - From: Juan Lorandi (Chile) To: Orion-Interest Sent: 01 December 2000 16:50 Subject: RE: Data type to access a datetime field in database AGAIN. Please help! java.sql.Date -Original Message-From: Jose Fresnadillo [mailto:[EMAIL PROTECTED]]Sent: Viernes, 01 de Diciembre de 2000 9:36To: Orion-InterestSubject: Data type to access a datetime field in database AGAIN. Please help! Hi, I'm trying to access a datatime field in a SQL-SERVER 7.0 with a EJB CMP but I don't know which java type I have to use in the bean to map this field. I've tried with a java.util.Date type but I get the following error when i try to change the value of the data field: javax.ejb.EJBException: Error saving state: [Microsoft] [ODBC SQL Server Driver] Datatime field overflow at Persona_EntityBeanWrapper0.saveState(Persona_EntityBeanWrapper0.java:3092) at Persona_EntityBeanWrapper0.setPer_fecha_nac(Persona_EntityBeanWrapper0.java:2964) at NewCmp.doGet(NewCmp.java:51) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at com.evermind.server.http.d1.si(JAX) at com.evermind.server.http.d1.forward(JAX) at com.evermind.server.http.ed.sp(JAX) at com.evermind.server.http.ed.so(JAX) at com.evermind.util.f.run(JAX) Ihave the following type mapping in thedatabase-schema definition for sql-server: type-mapping type="java.util.Date" name="datetime" / but it still doesn't work. This is what I'm doing: . . . java.util.Date d = new java.util.Date(2004, 11, 27);Context context = new InitialContext();Object homeObject = context.lookup("java:comp/env/Table1");Table1Home home = (Table1Home)PortableRemoteObject.narrow(homeObject, Table1Home.class);Table1 e = home.findByPrimaryKey("1234"); -- this works e.setA(d); this is the line where i get the error. The code for setA is the following: public void setA(java.util.Date newValue) { this.a = newValue; } Thanks.
RE: -- Arved -- Can you please help me with servlet authentication?
Hi, Tim Our servlet has nothing whatsoever to do with Servlet-2.x style authentication. We only have one servlet, and our application model is not predicated on having umpteen JSPs and content pages to jump around to and set security constraints on. We don't use a jndi.properties for authentication. The servlet is dumb, and is primarily concerned with being there as a known point for receiving requests and issuing responses. There is no great mystery revealed by indicating that we have an event-based application; security is naturally event-based (i.e. "You in this role can either send this event or you can't") from the user viewpoint. Logging in is just another event - we typically use a form but _we_ create it, and the gathered username and password are just strings being passed further down into programmatic RoleManager code (roleManager.login(), in other words). Our approach to security, IOW, is along the style of isPrincipalInRole(), not EJB-style fine-grained method permissions. We consider this latter to be nice in theory but not much use in practice, since it doesn't correspond well to the granularity of what users do. Could we set method permissions? Of course - the user is always in some role, and we are controlling what role they are in. We just happen not to use this form of security. I might add that the interface to the servlet, because of an event-handling approach, exposes very few methods and they are not suitable for EJB-style method permissions type security control anyway. As far as the problem of N users hitting 1 servlet, if you're doing what we do then there is no confusion. You end up writing your session management anyway, to ensure that the servlet, for a given user, is handling off the requests to a valid and correct SB. The SB in question can retrieve the correct Principal as required, based on username, and do the role check. You'll understand that we are using 100% programmatic user management. Also, I think (in your last few paras) that you are close to answering your own question. If you've got multiple users and you cannot rely on a jndi.properties, then by exclusion you must rely on the users to supply their identity. We use a form to gather the username and password when we need them; client certs would also work. HTH, Arved -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tim Endres Sent: Tuesday, November 21, 2000 7:07 PM To: Orion-Interest Cc: Arved Sandstrom Subject: RE: -- Arved -- Can you please help me with servlet authentication? Hi Arved, Although we have a single servlet front-end, and do programmatic usermanagement (including login), the actual user manager and role manager stuff all happens down in EJB-land (in a session bean being referenced from the servlet). So we do not use JNDI properties at all for authentication, except for some secondary application clients. Are you saying that you simply ignore EJB-based permissions, and manage all of the access internally in your session beans? This is the approach that I want to take, but I want to be sure that only my servlets can actually get to the methods that establish the "user session" upon which all else depends. Or are you saying that the servlet hands requests to Session Beans, and then the SBs are changing the principal via RoleManager.login()? So I'm sorry if I gave the wrong impression. Based on user input, the servlet is telling the EJB (and dependents) when usermanager things need to be done; the servlet is not actually doing that itself. Again, are you using your own permission management, or are you using the EJB permissions? Or are you just talking about user "management" (add, remove, etc.)? I am trying to establish user method permissions, not managing users, and I can not get that to work at all. Incidentally, the JNDI lookup that works just fine here is precisely: roleManager = (RoleManager)new nitialContext().lookup( "java:comp/RoleManager" ); Ah! I will try that. Thanks. I might add that we are using the EJBUserManager, and we have found that the programmatic control of groups doesn't work properly, so we hacked a workaround (concern when updating or adding users). Otherwise everything described above is cool. Well, this now suggests to me that you are using EJB permissions. Are you calling RoleManager.login() to change the principal from what the servlet had established via jndi.properties? Assuming you figure out the jndi.properties thing, then you ought to be able to obtain the principal name and the credentials (password) from the environment, and pass that info into a session bean that can actually do the usermanager and role manager stuff. IMO. This is very confusing to me. If I have N users hitting 1 servlet, and that servlet is establishing the principal from jndi.properties, how in the world do I establish the user for EJB permissions? When that servlet
RE: -- Arved -- Can you please help me with servlet authentication?
You'll understand that we are using 100% programmatic user management. Also, I think (in your last few paras) that you are close to answering your own question. If you've got multiple users and you cannot rely on a jndi.properties, then by exclusion you must rely on the users to supply their identity. We use a form to gather the username and password when we need them; client certs would also work. Arved, Thanks for your help so far. I am down to one last problem. We are using Orion 1.4.0, and there appears to be some sort of bug in the InitialContext. I am setting up the environment in my servlet: Properties env = new Properties(); env.put( "java.naming.factory.initial", "com.evermind.server.ApplicationInitialContextFactory" ); env.put( "java.naming.provider.url", "ormi://localhost/appname" ); env.put( "java.naming.security.principal", "appuser" ); env.put( "java.naming.security.credentials", "password" ); InitialContext iCtx = new InitialContext( env ); No matter how I set up env, it does not work with respect to identity. When I print out the InitialContext, it has all of my ejb-ref's bound to it. HOWEVER, it does not have any "environment" established at all (IOW, iCtx.getEnvironment() gives back an empty Hashtable). And when I access my SB's, I am considered a 'guest' user. If I take permissions off the SB's, I am able to access and use them. As soon as I put the permissions back, I am rejected. It is ignoring my principal and credentials completely! Do you establish any identity via the InitialContext in your servlet? Is this a know bug? I can not find it anywhere in BugZilla, which has a very poor searching interface. tim.
Please help with JNDI-JMS problem
Please help me: An application client I deployed on 1.4.4 finds references for my remote ejb's, but it does not get a reference to the remote TopicConnectionFactory. Run locally works fine. Thanks in advance, Werner Bohl Organization for Tropical Studies Costa Rica
-- Arved -- Can you please help me with servlet authentication?
Arved, Please excuse me for calling you out on this one, but you are the only one on the mailing list who claims to have succeeded in doing what I want. The documentation (surprise) is meaningless, and the mailing list archive is failing me. I have a servlet in a web-app that is deployed alongside my ejb application under Orion. Orion is the app server, web server, and servlet engine. Simple. I want to handle user authentication within my servlet, so I do not want any sort of "FORM based login page" or any other mechanism. I would like for the InitialContex that my servlet uses to establish the principal that is accessing my Session Beans, and then I perform finer access control within those as an extension to the EJB permissions. In certain instances, I would like to use RoleManager.login() to change the EJB user that is in force. First, I can not get Orion to read jndi.properties from anywhere. So, I am explicitly loading them myself. I now explicitly put them into the System properties and the values are: System.setProperty ( "java.naming.factory.initial", "com.evermind.server.ApplicationInitialContextFactory" ); System.setProperty ( "java.naming.provider.url", "ormi://localhost/appname" ); System.setProperty ( "java.naming.security.principal", "appuser" ); System.setProperty ( "java.naming.security.credentials", "password" ); I have defined 'appuser' in principals.xml, and I have put it in the 'administrators' group. I have added a custom UserManager to echo out what is going on just to give me some idea on what is happening, and all I see is a call to UserManager.getGroup( "appuser" ). No matter what I have tried, I have these problems: 1) I am always considered a "guest". It appears that Orion ignores my principal setting in the jndi properties. I get no error messages anywhere about it. Yet, when a Java application uses the same settings in jndi.properties, it works. Even if I change the principal from 'appuser' to 'random', the calls to the UserManager still reference 'appuser', which is very confusing. 2) I can not get servlets to load any jndi.properties from anywhere on the CLASSPATH (WEB-INF/classes does not work, nor does WEB-INF). I have listed the ClassLoader tree, and WEB-INF/classes is the path for the servlet loader. 3) I can not get a RoleManager reference to save my life. No matter what I do in my code (using initCtx.lookup( "java:comp/env/RoleManager" ) ad nauseum) I get a NamingException saying RoleManager is not found. Yet, everyone talks about using it just that way! And lookups on my other names works. Do I need an ejb-ref for RoleManager? 4) I can not find any logging of any errors related to authentication... PLEASE, could you share in detail the steps you took to get your servlets to be able to login a user by direct login (RoleManager.login()), and how you got your jndi properties to be accepted so that you could specify your user credentials. I am just frustrated now. TIA, tim.
RE: -- Arved -- Can you please help me with servlet authentication?
Although we have a single servlet front-end, and do programmatic usermanagement (including login), the actual user manager and role manager stuff all happens down in EJB-land (in a session bean being referenced from the servlet). So we do not use JNDI properties at all for authentication, except for some secondary application clients. Incidentally, the location of jndi.properties, and how it works, is dictated by Java (I think starting with JDK 1.2, but it could have been 1.3). If there exists a jndi.properties in your classpath, it will get read. So this behaviour is entirely independent of J2EE. So I'm sorry if I gave the wrong impression. Based on user input, the servlet is telling the EJB (and dependents) when usermanager things need to be done; the servlet is not actually doing that itself. Incidentally, the JNDI lookup that works just fine here is precisely: roleManager = (RoleManager)new nitialContext().lookup( "java:comp/RoleManager" ); I might add that we are using the EJBUserManager, and we have found that the programmatic control of groups doesn't work properly, so we hacked a workaround (concern when updating or adding users). Otherwise everything described above is cool. Assuming you figure out the jndi.properties thing, then you ought to be able to obtain the principal name and the credentials (password) from the environment, and pass that info into a session bean that can actually do the usermanager and role manager stuff. IMO. Hope this helps. Arved -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tim Endres Sent: Tuesday, November 21, 2000 3:45 PM To: Orion-Interest Subject: -- Arved -- Can you please help me with servlet authentication? Arved, Please excuse me for calling you out on this one, but you are the only one on the mailing list who claims to have succeeded in doing what I want. The documentation (surprise) is meaningless, and the mailing list archive is failing me. I have a servlet in a web-app that is deployed alongside my ejb application under Orion. Orion is the app server, web server, and servlet engine. Simple. I want to handle user authentication within my servlet, so I do not want any sort of "FORM based login page" or any other mechanism. I would like for the InitialContex that my servlet uses to establish the principal that is accessing my Session Beans, and then I perform finer access control within those as an extension to the EJB permissions. In certain instances, I would like to use RoleManager.login() to change the EJB user that is in force. First, I can not get Orion to read jndi.properties from anywhere. So, I am explicitly loading them myself. I now explicitly put them into the System properties and the values are: System.setProperty ( "java.naming.factory.initial", "com.evermind.server.ApplicationInitialContextFactory" ); System.setProperty ( "java.naming.provider.url", "ormi://localhost/appname" ); System.setProperty ( "java.naming.security.principal", "appuser" ); System.setProperty ( "java.naming.security.credentials", "password" ); I have defined 'appuser' in principals.xml, and I have put it in the 'administrators' group. I have added a custom UserManager to echo out what is going on just to give me some idea on what is happening, and all I see is a call to serManager.getGroup( "appuser" ). No matter what I have tried, I have these problems: 1) I am always considered a "guest". It appears that Orion ignores my principal setting in the jndi properties. I get no error messages anywhere about it. Yet, when a Java application uses the same settings in jndi.properties, it works. Even if I change the principal from 'appuser' to 'random', the calls to the UserManager still reference 'appuser', which is very confusing. 2) I can not get servlets to load any jndi.properties from anywhere on the CLASSPATH (WEB-INF/classes does not work, nor does WEB-INF). I have listed the ClassLoader tree, and WEB-INF/classes is the path for the servlet loader. 3) I can not get a RoleManager reference to save my life. No matter what I do in my code (using initCtx.lookup( "java:comp/env/RoleManager" ) ad nauseum) I get a NamingException saying RoleManager is not found. Yet, everyone talks about using it just that way! And lookups on my other names works. Do I need an ejb-ref for RoleManager? 4) I can not find any logging of any errors related to authentication... PLEASE, could you share in detail the steps you took to get your servlets to be able to login a user by direct login (RoleManager.login()), and how you got your jndi properties to be accepted so that you could specify your user credentials. I am just frustrated now. TIA, tim.
Re: -- Arved -- Can you please help me with servlet authentication?
Incidentally, the location of jndi.properties, and how it works, is dictated by Java (I think starting with JDK 1.2, but it could have been 1.3). If there exists a jndi.properties in your classpath, it will get read. So this behaviour is entirely independent of J2EE. this might also have to do with classloader problems that sometimes occur when properties (and other resources) are loaded from within jar files. I have seen cases where I could load the classes, but the classes werent able to load their properties (JavaMail provider is an example). The only way to resolve this was to either put the jar in the invocation classpath (java -cp all jars orion-startup-class), to modify orion.jar's manifest, or to copy files into JRE/lib/ext
RE: -- Arved -- Can you please help me with servlet authentication?
Hi Arved, Although we have a single servlet front-end, and do programmatic usermanagement (including login), the actual user manager and role manager stuff all happens down in EJB-land (in a session bean being referenced from the servlet). So we do not use JNDI properties at all for authentication, except for some secondary application clients. Are you saying that you simply ignore EJB-based permissions, and manage all of the access internally in your session beans? This is the approach that I want to take, but I want to be sure that only my servlets can actually get to the methods that establish the "user session" upon which all else depends. Or are you saying that the servlet hands requests to Session Beans, and then the SBs are changing the principal via RoleManager.login()? So I'm sorry if I gave the wrong impression. Based on user input, the servlet is telling the EJB (and dependents) when usermanager things need to be done; the servlet is not actually doing that itself. Again, are you using your own permission management, or are you using the EJB permissions? Or are you just talking about user "management" (add, remove, etc.)? I am trying to establish user method permissions, not managing users, and I can not get that to work at all. Incidentally, the JNDI lookup that works just fine here is precisely: roleManager = (RoleManager)new nitialContext().lookup( "java:comp/RoleManager" ); Ah! I will try that. Thanks. I might add that we are using the EJBUserManager, and we have found that the programmatic control of groups doesn't work properly, so we hacked a workaround (concern when updating or adding users). Otherwise everything described above is cool. Well, this now suggests to me that you are using EJB permissions. Are you calling RoleManager.login() to change the principal from what the servlet had established via jndi.properties? Assuming you figure out the jndi.properties thing, then you ought to be able to obtain the principal name and the credentials (password) from the environment, and pass that info into a session bean that can actually do the usermanager and role manager stuff. IMO. This is very confusing to me. If I have N users hitting 1 servlet, and that servlet is establishing the principal from jndi.properties, how in the world do I establish the user for EJB permissions? When that servlet accesses a session bean, the SB will see the user from jndi.properties, not the user that is driving the servlet. How do you work with that? RoleManager.login()? In my opinion, this is one of the most critical and least understood aspects of Orion, and the most poorly documented. I get the impression that no one is doing any serious user management. Or they are not sharing how... I would like to cut a check for Orion, but I need to confirm that it will support our needs, and permissions and performance are the last things I need to verify. Thanks again, tim.
Please help!
Hi, Is there a way to set time out period for Entity beans in Orion.And also I would like to know whether orion creates new instances of the bean even though the request is for the same data which is already there in memory.Please help. Thanks in Advance Regards Rajeev
Custom Tags Bug? Please help...
Hello, I have questions about custom tags, I don't know for sure they are bugs but they seem like it. BUG #1 I have a custom tag with a required attribute called "class". When I use it in a page the compiler displays an error like: 500 Internal Server Error Error parsing JSP page /webdev/advtags/forTag.jsp line 13 Property 'class' of bean/tag 'com.taglib.wdjsp.mut.ForPropertyTag' is read only The tag has a "setClass" method. Why is this happening? If I change the attribute name to anything else it works! BUG #2 The method "isValid" from the TagExtraInfo class is getting called as many times as there are attributes in the tag...Each time the TagData object has one more attribute value? Is this correct?
RE: Custom Tags Bug? Please help...
I would think class is a reserved word in java. For example MyClass.class refers to the Class of the class. I would rename it from class to myClass or something. Same for your getter/setter methods. -Original Message- From: Claudio Cordova [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 15, 2000 9:55 AM To: Orion-Interest Subject: Custom Tags Bug? Please help... Hello, I have questions about custom tags, I don't know for sure they are bugs but they seem like it. BUG #1 I have a custom tag with a required attribute called "class". When I use it in a page the compiler displays an error like: 500 Internal Server Error Error parsing JSP page /webdev/advtags/forTag.jsp line 13 Property 'class' of bean/tag 'com.taglib.wdjsp.mut.ForPropertyTag' is read only The tag has a "setClass" method. Why is this happening? If I change the attribute name to anything else it works! BUG #2 The method "isValid" from the TagExtraInfo class is getting called as many times as there are attributes in the tag...Each time the TagData object has one more attribute value? Is this correct?
RE: Custom Tags Bug? Please help...
It is. It's so obvious it can easily be overlooked: For example: public class Foo extends Object { } How do you get a class to compile that has a field named 'class'? I couldn't do it. The normal convention is to use the field name 'clazz' when you mean 'class' in Java. One thing to check is that the type of this variable is the same when its set(Type t) and get(){ return Type t;} methods are called, and that you aren't mixing types with a 1.3 JVM. The 1.3 JVM is stricter about some of the JavaBean conventions. Scott Stirling -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Duffey, Kevin Sent: Wednesday, November 15, 2000 4:03 PM To: Orion-Interest Subject: RE: Custom Tags Bug? Please help... I would think class is a reserved word in java. For example MyClass.class refers to the Class of the class. I would rename it from class to myClass or something. Same for your getter/setter methods. -Original Message- From: Claudio Cordova [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 15, 2000 9:55 AM To: Orion-Interest Subject: Custom Tags Bug? Please help... Hello, I have questions about custom tags, I don't know for sure they are bugs but they seem like it. BUG #1 I have a custom tag with a required attribute called "class". When I use it in a page the compiler displays an error like: 500 Internal Server Error Error parsing JSP page /webdev/advtags/forTag.jsp line 13 Property 'class' of bean/tag 'com.taglib.wdjsp.mut.ForPropertyTag' is read only The tag has a "setClass" method. Why is this happening? If I change the attribute name to anything else it works! BUG #2 The method "isValid" from the TagExtraInfo class is getting called as many times as there are attributes in the tag...Each time the TagData object has one more attribute value? Is this correct?
RE:System.out.println() Question ? (Again).. Please Help !!!
I HAVE RECEIVED YOUR EMAIL AND AM NOT ORION - INTEREST. THIS EMAIL IS [EMAIL PROTECTED] SO HAVE DELETED YOUR MESSAGE. On 10/11/00, Orion-Interest wrote: Greetings ! I have migrated my ejb to Orion, these ejb has System.out.println("flags") that Orion doesn't show in the console. I'm runing orion in this way:java -jar Orion.jar I don't know if I have to run orion in an special way or do any configuration in order to get that orion show the System.out.println("flags") in the console ? thanks ___ Say Bye to Slow Internet! http://www.home.com/xinbox/signup.html RFC822 header --- RECEIVED: from SF_Database by POP_Mailbox_- 1238256757 ; 10 NOV 00 14:15:39 UT Return-Path: [EMAIL PROTECTED] Delivered-To: head2head-nils Received: (qmail 35612 invoked from network); 10 Nov 2000 14:00:45 - Received: from unknown (HELO druid.evermind.net) (195.84.237.200) by hatfield.mail.uk.easynet.net with SMTP; 10 Nov 2000 14:00:45 - Received: from druid.evermind.net (IDENT:[EMAIL PROTECTED] [127.0.0.1]) by druid.evermind.net (8.9.3/8.9.3) with SMTP id OAA26770; Fri, 10 Nov 2000 14:50:06 -0100 Received: from kuku.excite.com (kuku- rwcmta.excite.com [198.3.99.63]) by paladin.evermind.net (8.9.3/8.9.3) with ESMTP id PAA26782 for [EMAIL PROTECTED]; Fri, 10 Nov 2000 15:49:22 -0500 From: [EMAIL PROTECTED] Received: from ally.excite.com ([199.172.148.156]) by kuku.excite.com (InterMail vM.4.01.02.39 201-229-119-122) with ESMTP id [EMAIL PROTECTED] te.com for [EMAIL PROTECTED]; Fri, 10 Nov 2000 04:50:19 -0800 Message-ID: [EMAIL PROTECTED] Date: Fri, 10 Nov 2000 04:50:19 -0800 (PST) To: Orion-Interest [EMAIL PROTECTED] Subject: System.out.println() Question ? (Again).. Please Help !!! Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Orion ListServer X-Sender-Ip: 200.44.3.111 Reply-To: Orion-Interest orion- [EMAIL PROTECTED] Sender: [EMAIL PROTECTED]
Please Help with Orion Debuging (Third Post !) Please Help !!!
Greetings ! I have migrated my ejb to Orion, these ejb has System.out.println("flags") that Orion doesn't show in the console. I'm runing orion in this way:java -jar Orion.jar I don't know if I have to run orion in an special way or do any configuration in order to get that orion show the System.out.println("flags") in the console ? thanks ___ Say Bye to Slow Internet! http://www.home.com/xinbox/signup.html
Re: Please Help with Orion Debuging (Third Post !) Please Help !!!
[EMAIL PROTECTED] wrote: Greetings ! I have migrated my ejb to Orion, these ejb has System.out.println("flags") that Orion doesn't show in the console. I'm runing orion in this way:java -jar Orion.jar I don't know if I have to run orion in an special way or do any configuration in order to get that orion show the System.out.println("flags") in the console ? thanks Don't understand what goes wrong. I print to stdout all the time using orion -- == Sven E. van 't Veer http://www.cachoeiro.net Java Developer [EMAIL PROTECTED] ==
Re: Please Help with Orion Debuging (Third Post !) Please Help !!!
Michel, This a bug in a certain version of Orion from a few weeks ago. Try updating and see if that improves things. (java -jar autoupdate.jar) -- Thomas Munro [EMAIL PROTECTED] http://www.gi-technology.com/ GI Technology (Paris) On Fri, 10 Nov 2000 [EMAIL PROTECTED] wrote: Greetings ! I have migrated my ejb to Orion, these ejb has System.out.println("flags") that Orion doesn't show in the console. I'm runing orion in this way:java -jar Orion.jar I don't know if I have to run orion in an special way or do any configuration in order to get that orion show the System.out.println("flags") in the console ? thanks ___ Say Bye to Slow Internet! http://www.home.com/xinbox/signup.html
Re: Please Help with Orion Debuging (Third Post !) Please Help !!!
Make sure that the code that is calling the println is actually being called, and that you're not redirecting System.out to a file. On Fri, 10 Nov 2000, Sven van 't Veer wrote: [EMAIL PROTECTED] wrote: Greetings ! I have migrated my ejb to Orion, these ejb has System.out.println("flags") that Orion doesn't show in the console. I'm runing orion in this way:java -jar Orion.jar I don't know if I have to run orion in an special way or do any configuration in order to get that orion show the System.out.println("flags") in the console ? thanks Don't understand what goes wrong. I print to stdout all the time using orion
RE: Debugging Question (Please Help !!!!)
In this moment all my ejb has System.out.println("flags"), but the probles is that Orion doesn't show the flags (messages) in the console. How could I get that orion show my flags in the console ? In runing Orion in this way: java - jar orion.jar Thanks On Thu, 9 Nov 2000 15:21:10 -0300 , Orion-Interest wrote: You can either use System.out.println (works for me) Or you can use the Logger in "java:comp/Logger", but I don´t have the interface to it I'm sure you can figure it out using JAD (JAva Decompiler) JP -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Jueves, 09 de Noviembre de 2000 13:03 To: Orion-Interest Subject: Debugging Question Greetings ! I have developed many ejb that are runing on Orion, these ejb has many System.out.println("flags") (flags), and the Orion Console doesn't show the flag messages, and when my ejb was runing On Voyager (another app server) my messages were displayed at the console. My question is: 1.)Does Orion support show my ejb flags in the console or in any file ? 2.)How could I do it ? Thanks a lot Bye Michel ___ Say Bye to Slow Internet! http://www.home.com/xinbox/signup.html ___ Say Bye to Slow Internet! http://www.home.com/xinbox/signup.html
Please Help ! (2nd Post)
Greetings ! I have been migrating my ejb from Voyager to Orion, in Orion and I'am using a simple directory structure without jar my classes, and I have gotten an mistake that I can't understand. The error is: IIdBeanHome_StatefulSessionHomeWrapper5.java:127:Exception java.rmi.RemoteException must be caught, or it must be declared in the throws clause of this method. return new kynesoft.ecom.subastar.ejb.ids.IdBean(); Here is my code ejb: /** * File: IIdBean.java * Package: reto.ejb.ids * interface name: IIdBean * Descripción: Interfaz remota para el bean de usuarios (IdBean) * @author Luciano Salvatorelli * @author Salvador Velasco * @version %I%, %U% * @see javax.ejb.* * Fecha de ultima modificacion: 16/03/2000 */ package kynesoft.ecom.subastar.ejb.ids; import java.rmi.RemoteException; import java.lang.Exception; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Vector; import java.util.Enumeration; import javax.ejb.EJBObject; import javax.ejb.EntityBean; import javax.ejb.CreateException; import javax.ejb.RemoveException; import javax.ejb.FinderException; import shared.helpers.*; import shared.error.*; public interface IIdBean extends EJBObject { public int generateId (String table, String field) throws RemoteException, AppException; } /** * file: IIdBeanHome * Package: reto.ejb.ids.java * Interface name: IIdBeanHome * Description: Interfaz home para el bean de usuarios * @author Luis Da Costa * @author Patricia T. Núñez Rojas Berti * @version %I%, %U% * @see javax.ejb.* * Fecha de ultima modificacion: 05/11/1999 */ package kynesoft.ecom.subastar.ejb.ids; import java.rmi.RemoteException; import java.util.Enumeration; import javax.ejb.EJBHome; import javax.ejb.CreateException; import javax.ejb.FinderException; public interface IIdBeanHome extends EJBHome { IIdBean create() throws CreateException, RemoteException; } /** * file: IdBean.java * Package: reto.ejb.ids * class name: IdBean * Descripción: Bean para los usuarios * @author Luis Da Costa * @author Luciano Salvatorelli * @author Patricia T. Núñez Rojas Berti * @version %I%, %U% * @see javax.ejb.* * Fecha de ultima modificacion: 05/11/1999 */ package kynesoft.ecom.subastar.ejb.ids; import java.rmi.RemoteException; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Vector; import java.util.Enumeration; import java.lang.NoSuchFieldException; import javax.ejb.EntityBean; import javax.ejb.CreateException; import javax.ejb.RemoveException; import javax.ejb.FinderException; import shared.helpers.*; import shared.error.*; import shared.util.*; import kynesoft.error.subastar.*; import kynesoft.ecom.subastar.Parameters; import kynesoft.ecom.subastar.ejb.TableFields; /* = */ /** * Bean para el manejo de los clientes de la BD * @author Luis Da Costa * @author Luciano Salvatorelli * @author Salvador Velasco * @version %I%, %U% * @see javax.ejb.* * Fecha de ultima modificacion: 15/03/2000 */ public class IdBean extends AbstractSession { // maximo numero de cifras que tiene el # total de registros por tablas private static int COD_LENGTH = 9; /* = */ /** * Constructor de la clase. * Observaciones: Las tareas a realizar por el constructor son: * (1) Seleccionar la base de datos a leer: RetoDB * (2) Inicializar la estructura interna para guardar los * de Mem Secundaria */ public IdBean() throws RemoteException { try { // Indicar que la BD a utilizar es la de SubastarDB this.setDBHelperDatasourceUrl(new kynesoft.ecom.subastar.Parameters().getDatasourceUrl()); } catch(Exception e) { e.printStackTrace(System.out); } } /* = */ /** * Funcion de creacion del bean (segun los estandares EJB). * Ver especificaciones EJB para entender tipos de * excepciones levantadas, y valor retornado. * Esta funcion se encuentra en la interfaz home con el * nombre create() * @throws RemoteException en caso de error remoto (conexion,envio,...) * @throws CreateException si no se puede crear el objeto. */ public void ejbCreate() throws CreateException, RemoteException { } /* === */ /** * Primera funcion que se ejecuta despues del ejbCreate() * (Ver especificaciones EJB). * (tiene exactamente la misma firma que ejbCreate()) */ public void ejbPostCreate() { } /* = */ /** * Genera un id. * * @param tableName (e) Nombre de la tabla *
Re: Please Help ! (2nd Post)
Not sure if this is your problem but hope this helps. It looks like you are extending "AbstractSession". Make sure that this gets packaged with your session jar file. -Danno _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.
Problem Migrating my ejb, Please Help me !!!
Greetings ! I have been migrating my ejb from Voyager to Orion, in Orion and I'am using a simple directory structure without jar my classes, and I have gotten an mistake that I can't understand. The error is: IIdBeanHome_StatefulSessionHomeWrapper5.java:127:Exception java.rmi.RemoteException must be caught, or it must be declared in the throws clause of this method. return new kynesoft.ecom.subastar.ejb.ids.IdBean(); Here is my code ejb: /** * File: IIdBean.java * Package: reto.ejb.ids * interface name: IIdBean * Descripción: Interfaz remota para el bean de usuarios (IdBean) * @author Luciano Salvatorelli * @author Salvador Velasco * @version %I%, %U% * @see javax.ejb.* * Fecha de ultima modificacion: 16/03/2000 */ package kynesoft.ecom.subastar.ejb.ids; import java.rmi.RemoteException; import java.lang.Exception; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Vector; import java.util.Enumeration; import javax.ejb.EJBObject; import javax.ejb.EntityBean; import javax.ejb.CreateException; import javax.ejb.RemoveException; import javax.ejb.FinderException; import shared.helpers.*; import shared.error.*; public interface IIdBean extends EJBObject { public int generateId (String table, String field) throws RemoteException, AppException; } /** * file: IIdBeanHome * Package: reto.ejb.ids.java * Interface name: IIdBeanHome * Description: Interfaz home para el bean de usuarios * @author Luis Da Costa * @author Patricia T. Núñez Rojas Berti * @version %I%, %U% * @see javax.ejb.* * Fecha de ultima modificacion: 05/11/1999 */ package kynesoft.ecom.subastar.ejb.ids; import java.rmi.RemoteException; import java.util.Enumeration; import javax.ejb.EJBHome; import javax.ejb.CreateException; import javax.ejb.FinderException; public interface IIdBeanHome extends EJBHome { IIdBean create() throws CreateException, RemoteException; } /** * file: IdBean.java * Package: reto.ejb.ids * class name: IdBean * Descripción: Bean para los usuarios * @author Luis Da Costa * @author Luciano Salvatorelli * @author Patricia T. Núñez Rojas Berti * @version %I%, %U% * @see javax.ejb.* * Fecha de ultima modificacion: 05/11/1999 */ package kynesoft.ecom.subastar.ejb.ids; import java.rmi.RemoteException; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Vector; import java.util.Enumeration; import java.lang.NoSuchFieldException; import javax.ejb.EntityBean; import javax.ejb.CreateException; import javax.ejb.RemoveException; import javax.ejb.FinderException; import shared.helpers.*; import shared.error.*; import shared.util.*; import kynesoft.error.subastar.*; import kynesoft.ecom.subastar.Parameters; import kynesoft.ecom.subastar.ejb.TableFields; /* = */ /** * Bean para el manejo de los clientes de la BD * @author Luis Da Costa * @author Luciano Salvatorelli * @author Salvador Velasco * @version %I%, %U% * @see javax.ejb.* * Fecha de ultima modificacion: 15/03/2000 */ public class IdBean extends AbstractSession { // maximo numero de cifras que tiene el # total de registros por tablas private static int COD_LENGTH = 9; /* = */ /** * Constructor de la clase. * Observaciones: Las tareas a realizar por el constructor son: * (1) Seleccionar la base de datos a leer: RetoDB * (2) Inicializar la estructura interna para guardar los * de Mem Secundaria */ public IdBean() throws RemoteException { try { // Indicar que la BD a utilizar es la de SubastarDB this.setDBHelperDatasourceUrl(new kynesoft.ecom.subastar.Parameters().getDatasourceUrl()); } catch(Exception e) { e.printStackTrace(System.out); } } /* = */ /** * Funcion de creacion del bean (segun los estandares EJB). * Ver especificaciones EJB para entender tipos de * excepciones levantadas, y valor retornado. * Esta funcion se encuentra en la interfaz home con el * nombre create() * @throws RemoteException en caso de error remoto (conexion,envio,...) * @throws CreateException si no se puede crear el objeto. */ public void ejbCreate() throws CreateException, RemoteException { } /* === */ /** * Primera funcion que se ejecuta despues del ejbCreate() * (Ver especificaciones EJB). * (tiene exactamente la misma firma que ejbCreate()) */ public void ejbPostCreate() { } /* = */ /** * Genera un id. * * @param tableName (e) Nombre de la tabla *
RE: Please help! I get null pointer exception after calling createonan EB with EJB 2.0 CMP Orion 1.3.8...
I took a quick look through and noticed one thing which looks strange. I believe that when you use a primary key class for a compound key, you should *not* make the key class a cmp member of the EJB. Rather, the EJB needs to have cmp fields which are named the same as the public fields in the primary key class. The container figures out how to map it all out. Take a look at section 9.10.1.2 of the spec. I'm pretty sure this is your problem. I seem to remember one of the Orion guys mentioning that any less-than-stellar error messages should be considered bugs to be logged in bugzilla :-) Good luck, Jeff -Original Message- From: Jim Archer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 17, 2000 1:54 PM To: Orion-Interest Cc: Jeff Schnitzer Subject: RE: Please help! I get null pointer exception after calling createonan EB with EJB 2.0 CMP Orion 1.3.8... OK, here is the code and deployment descriptor. I apologize that there is a lot here, but I have included one entity bean, a session bean that creates this entity bean, and the deployment descriptor. Eventually I am planning to move all the address information into a dependant object, but heck, I have to get create working first ;-) Thanks VERY much! Jim // CrHome.java package com.regtek.eb20; import java.rmi.RemoteException; import java.util.*; import javax.ejb.CreateException; import javax.ejb.EJBHome; import javax.ejb.FinderException; import com.regtek.types.RegnetCR; import com.regtek.types.RegnetTag; public interface CrHome extends EJBHome { Cr create() throws CreateException, RemoteException; Cr create(RegnetCR cr) throws CreateException, RemoteException; Cr findByPrimaryKey(RegnetTag primaryKey) throws FinderException, RemoteException; Collection findByLastname(String lastname) throws FinderException, RemoteException; Collection findByFullName(String lastname, String firstname) throws FinderException, RemoteException; Collection findByEmail(String email) throws FinderException, RemoteException; Collection findByPhone(String phone) throws FinderException, RemoteException; Collection findAll() throws FinderException, RemoteException; } // - --- // CrEJB.java // Cr EJB 2.0 Entity Bean package com.regtek.eb20; import java.rmi.RemoteException; import java.sql.*; import java.util.Enumeration; import java.util.Vector; import java.util.Date; import javax.ejb.*; import javax.naming.*; import javax.sql.DataSource; import javax.transaction.*; import com.regtek.types.RegnetCR; import com.regtek.types.RegnetTag; public abstract class CrEJB implements EntityBean { protected EntityContext ejbContext; public void setEntityContext(EntityContext ctx) { ejbContext = ctx; } public void unsetEntityContext() { ejbContext = null; } public void ejbRemove() throws RemoveException { } public void ejbLoad() { } public void ejbStore() { } public void ejbPostCreate() throws CreateException { } //public void ejbPostCreate(RegnetTag tag) throws CreateException { //} public void ejbPostCreate(RegnetCR cr) throws CreateException { } // public RegnetTag ejbCreate() { trace("ejbCreate() entered"); initToNull(); trace("ejbCreate() entered"); // In CMP, should return null. return null; } // public RegnetTag ejbCreate(RegnetCR cr) throws CreateException { trace("ejbCreate(RegnetCR cr) entered"); initToNull(); if(cr == null) return null; setTag(cr.getTag()); setLastName(cr.getLastName()); setFirstName(cr.getFirstName()); setMiddleInitial(cr.getMiddleInitial()); setAddr1(cr.getAddr1()); setAddr2(cr.getAddr2()); setAddr3(cr.getAddr3()); setCity(cr.getCity()); setState(cr.getState()); setPostalCode(cr.getPostalCode()); setCountryCode(cr.getCountryCode()); setPhone(cr.getPhone()); setFax(cr.getFax()); setEmail(cr.getEmail()); Date now = new Date(); setDateAdded(now); setDateLastMod(now); trace("ejbCreate(RegnetCR cr) exiting"); // In CMP, should return null. return null; } // public void ejbPas
RE: Please help! I get null pointer exception after callingcreateonan EB with EJB 2.0 CMP Orion 1.3.8...
Hi Jeff! Thanks alot! I see I'm not the only one up at 4:00AM! I really, really appreciate your help with this. I'll look at that right away. In the meantime, I solved the problem minutes before your email arrived. Apparently, Orion does not like for the create() method on the bean class to not set a value for the primary key. I was leaving them set to null, which was causing the NPE. I replicated this in a small, simple sample that does nothing more than have a servlet create an entity bean (in EJB 2.0, of course). Anyhow, I don't know what the scoop on this is. I'm going to review the spec, since I thought that was legal behavior. Then again, anything seels legal at 4:00AM!!! Thanks again!! I'll let you know what I figure out. Jim --On Wednesday, October 18, 2000 1:16 AM -0700 Jeff Schnitzer [EMAIL PROTECTED] wrote: I took a quick look through and noticed one thing which looks strange. I believe that when you use a primary key class for a compound key, you should *not* make the key class a cmp member of the EJB. Rather, the EJB needs to have cmp fields which are named the same as the public fields in the primary key class. The container figures out how to map it all out. Take a look at section 9.10.1.2 of the spec. I'm pretty sure this is your problem. I seem to remember one of the Orion guys mentioning that any less-than-stellar error messages should be considered bugs to be logged in bugzilla :-) Good luck, Jeff -Original Message- From: Jim Archer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 17, 2000 1:54 PM To: Orion-Interest Cc: Jeff Schnitzer Subject: RE: Please help! I get null pointer exception after calling createonan EB with EJB 2.0 CMP Orion 1.3.8... OK, here is the code and deployment descriptor. I apologize that there is a lot here, but I have included one entity bean, a session bean that creates this entity bean, and the deployment descriptor. Eventually I am planning to move all the address information into a dependant object, but heck, I have to get create working first ;-) Thanks VERY much! Jim // CrHome.java package com.regtek.eb20; import java.rmi.RemoteException; import java.util.*; import javax.ejb.CreateException; import javax.ejb.EJBHome; import javax.ejb.FinderException; import com.regtek.types.RegnetCR; import com.regtek.types.RegnetTag; public interface CrHome extends EJBHome { Cr create() throws CreateException, RemoteException; Cr create(RegnetCR cr) throws CreateException, RemoteException; Cr findByPrimaryKey(RegnetTag primaryKey) throws FinderException, RemoteException; Collection findByLastname(String lastname) throws FinderException, RemoteException; Collection findByFullName(String lastname, String firstname) throws FinderException, RemoteException; Collection findByEmail(String email) throws FinderException, RemoteException; Collection findByPhone(String phone) throws FinderException, RemoteException; Collection findAll() throws FinderException, RemoteException; } // - --- // CrEJB.java // Cr EJB 2.0 Entity Bean package com.regtek.eb20; import java.rmi.RemoteException; import java.sql.*; import java.util.Enumeration; import java.util.Vector; import java.util.Date; import javax.ejb.*; import javax.naming.*; import javax.sql.DataSource; import javax.transaction.*; import com.regtek.types.RegnetCR; import com.regtek.types.RegnetTag; public abstract class CrEJB implements EntityBean { protected EntityContext ejbContext; public void setEntityContext(EntityContext ctx) { ejbContext = ctx; } public void unsetEntityContext() { ejbContext = null; } public void ejbRemove() throws RemoveException { } public void ejbLoad() { } public void ejbStore() { } public void ejbPostCreate() throws CreateException { } //public void ejbPostCreate(RegnetTag tag) throws CreateException { //} public void ejbPostCreate(RegnetCR cr) throws CreateException { } // public RegnetTag ejbCreate() { trace("ejbCreate() entered"); initToNull(); trace("ejbCreate() entered"); // In CMP, should return null. return null; } // public RegnetTag ejbCreate(RegnetCR cr) throws CreateException { trace("ejbCreate(RegnetCR cr) entered"); initToNull(); if(cr == null) return null; setTag(cr.getTag()); setLastName(cr.getLas
RE: Please help! I get null pointer exception after calling create onan EB with EJB 2.0 CMP Orion 1.3.8...
I have had no problems creating CMP entity beans from session beans with EJB2.0. Seems to work as advertsied :-) I suggest posting your code and descriptors; I'll take a look, and the more examples of EJB2.0 beans floating around the better :-) Jeff -Original Message- From: Jim Archer [mailto:[EMAIL PROTECTED]] Sent: Monday, October 16, 2000 4:18 PM To: Orion-Interest Subject: Please help! I get null pointer exception after calling create onan EB with EJB 2.0 CMP Orion 1.3.8... Hi All... Please help me out wityh this if you can. I'm really stuck and already behind schedual, so any ideas would be appreciated... I'm using Orion 1.3.8 and EJB 2.0 for CMP. I have written a fairley simple stateless session bean that's job is to just create a particular entity bean and populate it. This session bean is called from a servlet. When the session bean calls create on the home interface object of the entity bean it wants to create, the create method seems to execute properly and returns null. This seems true reguardless of which of two create() methods I call. After the create() method returns but before the next line of code is executed, Orion throws the following exception: java.lang.NullPointerException at CrHome_EntityHomeWrapper7.hashCode(CrHome_EntityHomeWrapper7.java:127 ) at com.evermind.util.ExternalHashSet.get(JAX) at CrHome_EntityHomeWrapper7.create(CrHome_EntityHomeWrapper7.java:335) at com.regtek.slsb.CreateNewCRBean.makeNew(CreateNewCRBean.java:41) at CreateNewCR_StatelessSessionBeanWrapper2.makeNew(CreateNewCR_Stateles sSessionBeanWrapper2.java:54) at com.regtek.protocol_servlets.MakeCR.doPost(MakeCR.java:92) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at com.evermind.server.http.d1.si(JAX) at com.evermind.server.http.d1.forward(JAX) at com.evermind.server.http.ed.sp(JAX) at com.evermind.server.http.ed.so(JAX) at com.evermind.util.f.run(JAX) Of course, I have a pile of code and descriptors, but didn't want to post all that. If it is necessary, I will do so. Its not that I didn't want to, but I'm not sure which of it is relevant to this problem and posting all of it would make for a very long message. If someone could give me an idea of how to solve this I would appreciate it. I went through the archives and saw one other posting from Sep 22 from someone who was having this exact problem, but I could find no reply. I sent that guy a note, and he wrote back telling me he gave up on it. I would post a bug in Bugzilla, but I'm not sure this is a bug. It seems too fundamental a problem to be a bug in Orion. Thanks very much. Jim
RE: Please help! I get null pointer exception after calling createonan EB with EJB 2.0 CMP Orion 1.3.8...
homecom.regtek.eb20.UarHome/home remotecom.regtek.eb20.Uar/remote /ejb-ref ejb-ref ejb-ref-nameejb/CrHomeEb/ejb-ref-name ejb-ref-typeEntity/ejb-ref-type homecom.regtek.eb20.CrHome/home remotecom.regtek.eb20.Cr/remote /ejb-ref /session /enterprise-beans relationships ejb-relation ejb-relation-nameUAR-CR/ejb-relation-name ejb-relationship-role ejb-relationship-role-name UAR-has-CR /ejb-relationship-role-name multiplicityone/multiplicity role-source ejb-namecom.regtek.eb20.UarEJB/ejb-name /role-source cmr-field cmr-field-namecr/cmr-field-name cmr-field-typecom.regtek.eb20.CrEJB/cmr-field-type /cmr-field /ejb-relationship-role ejb-relationship-role ejb-relationship-role-name CR-belongsto-UAR /ejb-relationship-role-name multiplicityone/multiplicity role-source ejb-namecom.regnet.eb20.UarEJB/ejb-name /role-source /ejb-relationship-role /ejb-relation /relationships assembly-descriptor security-role descriptionUsers/description role-nameusers/role-name /security-role /assembly-descriptor /ejb-jar --On Tuesday, October 17, 2000 11:32 AM -0700 Jeff Schnitzer [EMAIL PROTECTED] wrote: I have had no problems creating CMP entity beans from session beans with EJB2.0. Seems to work as advertsied :-) I suggest posting your code and descriptors; I'll take a look, and the more examples of EJB2.0 beans floating around the better :-) Jeff -Original Message- From: Jim Archer [mailto:[EMAIL PROTECTED]] Sent: Monday, October 16, 2000 4:18 PM To: Orion-Interest Subject: Please help! I get null pointer exception after calling create onan EB with EJB 2.0 CMP Orion 1.3.8... Hi All... Please help me out wityh this if you can. I'm really stuck and already behind schedual, so any ideas would be appreciated... I'm using Orion 1.3.8 and EJB 2.0 for CMP. I have written a fairley simple stateless session bean that's job is to just create a particular entity bean and populate it. This session bean is called from a servlet. When the session bean calls create on the home interface object of the entity bean it wants to create, the create method seems to execute properly and returns null. This seems true reguardless of which of two create() methods I call. After the create() method returns but before the next line of code is executed, Orion throws the following exception: java.lang.NullPointerException at CrHome_EntityHomeWrapper7.hashCode(CrHome_EntityHomeWrapper7.java:127 ) at com.evermind.util.ExternalHashSet.get(JAX) at CrHome_EntityHomeWrapper7.create(CrHome_EntityHomeWrapper7.java:335) at com.regtek.slsb.CreateNewCRBean.makeNew(CreateNewCRBean.java:41) at CreateNewCR_StatelessSessionBeanWrapper2.makeNew(CreateNewCR_Stateles sSessionBeanWrapper2.java:54) at com.regtek.protocol_servlets.MakeCR.doPost(MakeCR.java:92) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at com.evermind.server.http.d1.si(JAX) at com.evermind.server.http.d1.forward(JAX) at com.evermind.server.http.ed.sp(JAX) at com.evermind.server.http.ed.so(JAX) at com.evermind.util.f.run(JAX) Of course, I have a pile of code and descriptors, but didn't want to post all that. If it is necessary, I will do so. Its not that I didn't want to, but I'm not sure which of it is relevant to this problem and posting all of it would make for a very long message. If someone could give me an idea of how to solve this I would appreciate it. I went through the archives and saw one other posting from Sep 22 from someone who was having this exact problem, but I could find no reply. I sent that guy a note, and he wrote back telling me he gave up on it. I would post a bug in Bugzilla, but I'm not sure this is a bug. It seems too fundamental a problem to be a bug in Orion. Thanks very much. Jim
2nd post, please help
I have created a stand alone admin component outside the orion server, which use the MailerEJB functions to send emails. An exception will be thrown in MailHelper when I start running the stand-alone admin program, which is "java:com\env\mail\MailSession not found". here is resource-ref tag in ejb-jar.xml and web.xml resource-ref res-ref-namemail/MailSession/res-ref-name res-typejavax.mail.Session/res-type /resource-ref and here is mail-session tag in server.xml mail-session location="mail/MailSession" smtp-host="csah.com" property name="mail.transport.protocol" value="smtp" / property name="mail.smtp.from" value="[EMAIL PROTECTED]" / property name="mail.from" value="[EMAIL PROTECTED]" / /mail-session Is anything missed? Kindly please help. Regards, ___ http://www.SINA.com - #1 Destination Site for Chinese Worldwide
2nd post, please help
I have created a stand alone admin component outside the orion server, which use the MailerEJB functions to send emails. An exception will be thrown in MailHelper when I start running the stand-alone admin program, which is "java:com\env\mail\MailSession not found". here is resource-ref tag in ejb-jar.xml and web.xml resource-ref res-ref-namemail/MailSession/res-ref-name res-typejavax.mail.Session/res-type /resource-ref and here is mail-session tag in server.xml mail-session location="mail/MailSession" smtp-host="csah.com" property name="mail.transport.protocol" value="smtp" / property name="mail.smtp.from" value="[EMAIL PROTECTED]" / property name="mail.from" value="[EMAIL PROTECTED]" / /mail-session Is anything missed? Kindly please help. Regards, ___ http://www.SINA.com - #1 Destination Site for Chinese Worldwide
Re: Client application Please Help
Title: RE: Client application Please Help Hello, Thanks for continuing to help me. I am really having a difficult time with this. I have no idea on how to solve the problem. I checked the JAR file and the application-client.xml file is in there. Thanks again, -Dan - Original Message - From: Pantelis, Thomas To: Orion-Interest Sent: Friday, October 06, 2000 8:58 PM Subject: RE: Client application Please Help You're not having a good day are you? Make sure the client jar has the application-client.xml in the META-INF directory. -Original Message-From: Daniel C. DiCesare [mailto:[EMAIL PROTECTED]]Sent: Friday, October 06, 2000 8:15 AMTo: Orion-InterestSubject: Re: Client application Please Help Thank you for your response. I have tried your suggestion and here is what I get: javax.naming.NamingException: META-INF/application-client.xml resource not found at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(JAX, Compiled Code) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250) at javax.naming.InitialContext.init(InitialContext.java:226) at javax.naming.InitialContext.init(InitialContext.java:182) at TeamRandomTrade.main(TeamRandomTrade.java, Compiled Code) My team-client.jar has application-client.xml in it. I do not understand why it can not be found. Any further help would be appreciated. -Danno From: "Pantelis, Thomas" [EMAIL PROTECTED]Reply-To: Orion-Interest orion-interest@orionservercomTo: Orion-Interest orion-interest@orionservercomSubject: RE: Client application Please HelpDate: Fri, 6 Oct 2000 10:31:00 -0400The correct lookup is "java:comp/env/TeamBean". I assume you're running you're clientoutside of Orion? Make sure your provider_url JNDI prop points to"ormi://localhost/app name" where app name is the name of the TeamBean app inserver.xml.-Original Message-From: Frank Eggink [mailto:[EMAIL PROTECTED]]Sent: Friday, October 06, 2000 8:05 AMTo: Orion-InterestSubject: RE: Client application Please HelpI bet you'll have to change ic.lookup("TeamBean") in toic.lookup("comp:/java/env/TeamBean"), a bit depending on what's defined inyour *.xml files.These files define the name under which the bean gets registered."comp:/java/env/" is a fixed? prefix.FrankOn Thursday, October 05, 2000 7:18 PM, Daniel C. DiCesare[SMTP:[EMAIL PROTECTED]] wrote: Frank, I checked out your example but I am continuing to experience problems.Here is what I have. I have included the script for my xml files below. I have deployed an EJB called Team onto Orion. It sits in a EAR filewhich within it has a Team.jar file. The JAR file contains the following: Team.class - ( remote interface ) TeamHome.class - ( home interface ) TeamEJB - ( EJB ) ejb-jar.xml - ( deployment descriptor ) I then created a team-client.jar which consists of the following: TeamClient.class - ( client ) application-client.xml - ( client xml ) In my TeamClient I attempt to connect to the TeamEJB as follows: Context ic = new InitialContext(); Object obj = ic.lookup( "TeamBean" ); _TeamHome = ( TeamHome )PortableRemoteObject.narrow( obj, TeamHome.class ); When I try to run the client I get the following message: javax.naming.NamingException: Error reading application-clientdescriptor: No location specified and no suitable instance of the type 'Team' foundfor the ejb-ref TeamBean at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext (JAX, Compiled Code) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250) at javax.naming.InitialContext.init(InitialContext.java:226) at javax.naming.InitialContext.init(InitialContext.java:182) at TeamRandomTrade.main(TeamRandomTrade.java, Compiled Code) Can you or anyone please advise as to what I am doing wrong? Thanks in advance. -Danno The ejb-jar.xml looks as follows: ?xml version="1.0" encoding="UTF-8"? !DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd' ejb-jar descriptionno description/description display-nameTeamEJB/display-name enterprise-beans entity descriptionno description/description display-nameTeamBean/display-na
RE: 2nd post, please help
Try using java:comp/env/mail/MailSession. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, October 09, 2000 2:52 AM To: Orion-Interest Subject: 2nd post, please help I have created a stand alone admin component outside the orion server, which use the MailerEJB functions to send emails. An exception will be thrown in MailHelper when I start running the stand-alone admin program, which is "java:com\env\mail\MailSession not found". here is resource-ref tag in ejb-jar.xml and web.xml resource-ref res-ref-namemail/MailSession/res-ref-name res-typejavax.mail.Session/res-type /resource-ref and here is mail-session tag in server.xml mail-session location="mail/MailSession" smtp-host="csah.com" property name="mail.transport.protocol" value="smtp" / property name="mail.smtp.from" value="[EMAIL PROTECTED]" / property name="mail.from" value="[EMAIL PROTECTED]" / /mail-session Is anything missed? Kindly please help. Regards, ___ http://www.SINA.com - #1 Destination Site for Chinese Worldwide
Re: 2nd post, please help
Did you set all the properties you need to access the jndi tree in orion? You need to set these for a program outside orion access the orion JNDI tree: java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFctory java.naming.provider.url=ormi://host:ormi-port/domain (application) java.naming.security.principal=username java.naming.security.credentials=password (Taken from www.orionserver.com documentation) Hope this help -Original Message- GD From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] GD Sent: Monday, October 09, 2000 2:52 AM GD To: Orion-Interest GD Subject: 2nd post, please help GD I have created a stand alone admin component outside the orion server, which GD use the MailerEJB functions to send emails. An exception will be thrown in GD MailHelper when I start running the stand-alone admin program, which is GD "java:com\env\mail\MailSession not found". -- Best regards, Rafaelmailto:[EMAIL PROTECTED]