could somebody help me pls
Hi, I have a database on firebird interbase and respectively a jsp file with a bean file . The bean must be the connection to the database, but I receive an error like in attached file: Know somebody why ?? __ Do you want a free e-mail for life ? Get it at http://www.clujnapoca.ro/ eroare.zip Description: Zip compressed data
Can anyone help me with this - config of orion-ejb-jar
Hello there, I am struggling with something and was wondering if you could help me. I have an Entity EJB that is successfully deploying, however I am running out of memory in the system and would like to restrict the number of beans and the timeouts for the EJB. I have edited the orion-ejb-jar.xml and the bean deploys OK, please see the atached file. However when viewing the bean using the console I see that the number of used instances just keeps climbing and goes beyond the max-instances and doesn't appear to flush out of the cache. Thanks for you help Garrett Skelly m2uworkflow-deploy.jar m2uworkflow-deploy.jar Description: Binary data
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: Help me
Did youcopy tools.jar (from your jdk) into your Orion directory? -Original Message-From: nguyen dinh uong [mailto:[EMAIL PROTECTED]]Sent: 20 September 2001 12:28To: Orion-InterestSubject: Help me I have to meet some error when I deploy /demo/ejb I hope You can help me First error .This is appear when I use java -jar orion.jar /*Auto-deploying product (No previous deployment found)... Error compiling file:/C:/orion/demo/ejb/product/: Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a librarypath="the/path/to/tools.jar" / and restartAuto-deploying cart (No previous deployment found)... Error compiling file:/C:/orion/demo/ejb/cart/: Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a library path="the/path/to/tools.jar" / and restartAuto-deploying usermanager (No previous deployment found)... Error compiling file:/C:/orion/demo/ejb/usermanager/: Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a library path="the/path/to/tools.jar" / and restartAuto-deploying product... Error instantiating application 'ejbsamples' at file:/C:/orion/demo/ejb/: Error auto-deploying application-client at product: No location specified and no suitable instance of the type 'Product' found for the ejb-ref MyProductOrion/1.4.5 initialized*/Second error .when I use command java -classpath ../../../orion.jar;../../../ejb.jar;../../../jndi.jar;. CartClient/*Exception in thread "main" java.lang.SecurityException: Invalid username/password for ejbsamples (admin) at com.evermind.server.rmi.ba.gl(JAX) at com.evermind.server.rmi.ba.gl(JAX) at com.evermind.server.rmi.ba.f4(JAX) at com.evermind.server.rmi.RMIServer.f4(JAX, Compiled Code) at com.evermind.server.rmi.RMIContext.lookup(JAX) at com.evermind.server.administration.LazyResourceFinder.f4(JAX) at com.evermind.server.administration.LazyResourceFinder.getEJBHome(JAX) at com.evermind.server.Application.aq8(JAX, Compiled Code) at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(JAX, Compiled Code) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242) at javax.naming.InitialContext.init(InitialContext.java:218) at javax.naming.InitialContext.init(InitialContext.java:174) at CartClient.main(CartClient.java:17) */I don't know I'll have to continune how Thank you very much Uo^ng Dinh Nguyen - Get your private, free Email by Vietnamese at http://vol.vnn.vn
Re: Help me
Please read the error its having all the solution to fix your problem --- nguyen dinh uong [EMAIL PROTECTED] wrote: HR PI have to meet some error when I deploy /demo/ejb BRI hope You can help me BRFirst error .This is appear when I use BRjava -jar orion.jar BR/*BRAuto-deploying product (No previous deployment found)... Error compiling file:/CBR:/orion/demo/ejb/product/: Error instantiating compiler: Javac not installed, coBRpy tools.jar from your sun JDK dir's lib dir to the orion dir or add a lt;libraryBRpath=the/path/to/tools.jar /gt; and restartBRAuto-deploying cart (No previous deployment found)... Error compiling file:/C:/oBRrion/demo/ejb/cart/: Error instantiating compiler: Javac not installed, copy tooBRls.jar from your sun JDK dir's lib dir to the orion dir or add a lt;library path=BRthe/path/to/tools.jar /gt; and restartBRAuto-deploying usermanager (No previous deployment found)... Error compiling filBRe:/C:/orion/demo/ejb/usermanager/: Error instantiating compiler: Javac not instaBRlled, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a lt;BRlibrary path=the/path/to/tools.jar /gt; and restartBRAuto-deploying product... Error instantiating application 'ejbsamples' at file:/BRC:/orion/demo/ejb/: Error auto-deploying application-client at product: No locatBRion specified and no suitable instance of the type 'Product' found for the ejb-rBRef MyProductBROrion/1.4.5 initializedBR*/BRSecond error .when I use command BRjava -classpath ../../../orion.jar;../../../ejb.jar;../../../jndi.jar;. CartClientBR/*BRException in thread main java.lang.SecurityException: Invalid username/password for ejbsamples (admin)BRnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; at com.evermind.server.rmi.ba.gl(JAX)BRnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; at com.evermind.server.rmi.ba.gl(JAX)BRnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; at com.evermind.server.rmi.ba.f4(JAX)BRnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; at com.evermind.server.rmi.RMIServer.f4(JAX, Compiled Code)BRnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; at com.evermind.server.rmi.RMIContext.lookup(JAX)BRnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; at com.evermind.server.administration.LazyResourceFinder.f4(JAX)BRnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; at com.evermind.server.administration.LazyResourceFinder.getEJBHome(JAX)/P Pnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; at com.evermind.server.Application.aq8(JAX, Compiled Code)BRnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; at com.evermind.server.ApplicationClientInitialContextFactory.getInitialBRContext(JAX, Compiled Code)BRnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6BR71)BRnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242BR)BRnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; at javax.naming.InitialContext.init(InitialContext.java:218)BRnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; at javax.naming.InitialContext.lt;initgt;(InitialContext.java:174)BRnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; at CartClient.main(CartClient.java:17)/P P*/BRI don't know I'll have to continune how BRThank you very much BRUo^ng Dinh Nguyen /P - Get your private, free Email by Vietnamese at http://vol.vnn.vn Regards Muthu Rajamanickam e-mail:[EMAIL PROTECTED] Phone:832-567-7859 __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/
RE: Help me
For error 1) You have to copy tools.jar to c:\orion directory For error 2) You have to provide jndi.properties for accessing client. You have to provide username/password for JNDI lookup. Kesav Kumar Kolla Voquette Inc 650 356 3740(W) 510 889 6840(R) VoquetteDelivering Sound Information Send Instant Message -Original Message-From: nguyen dinh uong [mailto:[EMAIL PROTECTED]]Sent: Thursday, September 20, 2001 4:28 AMTo: Orion-InterestSubject: Help me I have to meet some error when I deploy /demo/ejb I hope You can help me First error .This is appear when I use java -jar orion.jar /*Auto-deploying product (No previous deployment found)... Error compiling file:/C:/orion/demo/ejb/product/: Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a librarypath="the/path/to/tools.jar" / and restartAuto-deploying cart (No previous deployment found)... Error compiling file:/C:/orion/demo/ejb/cart/: Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a library path="the/path/to/tools.jar" / and restartAuto-deploying usermanager (No previous deployment found)... Error compiling file:/C:/orion/demo/ejb/usermanager/: Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a library path="the/path/to/tools.jar" / and restartAuto-deploying product... Error instantiating application 'ejbsamples' at file:/C:/orion/demo/ejb/: Error auto-deploying application-client at product: No location specified and no suitable instance of the type 'Product' found for the ejb-ref MyProductOrion/1.4.5 initialized*/Second error .when I use command java -classpath ../../../orion.jar;../../../ejb.jar;../../../jndi.jar;. CartClient/*Exception in thread "main" java.lang.SecurityException: Invalid username/password for ejbsamples (admin) at com.evermind.server.rmi.ba.gl(JAX) at com.evermind.server.rmi.ba.gl(JAX) at com.evermind.server.rmi.ba.f4(JAX) at com.evermind.server.rmi.RMIServer.f4(JAX, Compiled Code) at com.evermind.server.rmi.RMIContext.lookup(JAX) at com.evermind.server.administration.LazyResourceFinder.f4(JAX) at com.evermind.server.administration.LazyResourceFinder.getEJBHome(JAX) at com.evermind.server.Application.aq8(JAX, Compiled Code) at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(JAX, Compiled Code) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242) at javax.naming.InitialContext.init(InitialContext.java:218) at javax.naming.InitialContext.init(InitialContext.java:174) at CartClient.main(CartClient.java:17) */I don't know I'll have to continune how Thank you very much Uo^ng Dinh Nguyen - Get your private, free Email by Vietnamese at http://vol.vnn.vn
Help me
I have to meet some error when I deploy /demo/ejb I hope You can help me First error .This is appear when I use java -jar orion.jar /*Auto-deploying product (No previous deployment found)... Error compiling file:/C:/orion/demo/ejb/product/: Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a librarypath="the/path/to/tools.jar" / and restartAuto-deploying cart (No previous deployment found)... Error compiling file:/C:/orion/demo/ejb/cart/: Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a library path="the/path/to/tools.jar" / and restartAuto-deploying usermanager (No previous deployment found)... Error compiling file:/C:/orion/demo/ejb/usermanager/: Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a library path="the/path/to/tools.jar" / and restartAuto-deploying product... Error instantiating application 'ejbsamples' at file:/C:/orion/demo/ejb/: Error auto-deploying application-client at product: No location specified and no suitable instance of the type 'Product' found for the ejb-ref MyProductOrion/1.4.5 initialized*/Second error .when I use command java -classpath ../../../orion.jar;../../../ejb.jar;../../../jndi.jar;. CartClient/*Exception in thread "main" java.lang.SecurityException: Invalid username/password for ejbsamples (admin) at com.evermind.server.rmi.ba.gl(JAX) at com.evermind.server.rmi.ba.gl(JAX) at com.evermind.server.rmi.ba.f4(JAX) at com.evermind.server.rmi.RMIServer.f4(JAX, Compiled Code) at com.evermind.server.rmi.RMIContext.lookup(JAX) at com.evermind.server.administration.LazyResourceFinder.f4(JAX) at com.evermind.server.administration.LazyResourceFinder.getEJBHome(JAX) at com.evermind.server.Application.aq8(JAX, Compiled Code) at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(JAX, Compiled Code) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242) at javax.naming.InitialContext.init(InitialContext.java:218) at javax.naming.InitialContext.init(InitialContext.java:174) at CartClient.main(CartClient.java:17) */I don't know I'll have to continune how Thank you very much Uo^ng Dinh Nguyen - Get your private, free Email by Vietnamese at http://vol.vnn.vn
RE: Help me
Try setting deactivated =false in the principals.xml file under config dir of orion for username password as specified in the jndi.properties of Cart example. -Original Message-From: nguyen dinh uong [mailto:[EMAIL PROTECTED]]Sent: Thursday, September 20, 2001 4:58 PMTo: Orion-InterestSubject: Help me I have to meet some error when I deploy /demo/ejb I hope You can help me First error .This is appear when I use java -jar orion.jar /*Auto-deploying product (No previous deployment found)... Error compiling file:/C:/orion/demo/ejb/product/: Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a librarypath="the/path/to/tools.jar" / and restartAuto-deploying cart (No previous deployment found)... Error compiling file:/C:/orion/demo/ejb/cart/: Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a library path="the/path/to/tools.jar" / and restartAuto-deploying usermanager (No previous deployment found)... Error compiling file:/C:/orion/demo/ejb/usermanager/: Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a library path="the/path/to/tools.jar" / and restartAuto-deploying product... Error instantiating application 'ejbsamples' at file:/C:/orion/demo/ejb/: Error auto-deploying application-client at product: No location specified and no suitable instance of the type 'Product' found for the ejb-ref MyProductOrion/1.4.5 initialized*/Second error .when I use command java -classpath ../../../orion.jar;../../../ejb.jar;../../../jndi.jar;. CartClient/*Exception in thread "main" java.lang.SecurityException: Invalid username/password for ejbsamples (admin) at com.evermind.server.rmi.ba.gl(JAX) at com.evermind.server.rmi.ba.gl(JAX) at com.evermind.server.rmi.ba.f4(JAX) at com.evermind.server.rmi.RMIServer.f4(JAX, Compiled Code) at com.evermind.server.rmi.RMIContext.lookup(JAX) at com.evermind.server.administration.LazyResourceFinder.f4(JAX) at com.evermind.server.administration.LazyResourceFinder.getEJBHome(JAX) at com.evermind.server.Application.aq8(JAX, Compiled Code) at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(JAX, Compiled Code) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242) at javax.naming.InitialContext.init(InitialContext.java:218) at javax.naming.InitialContext.init(InitialContext.java:174) at CartClient.main(CartClient.java:17) */I don't know I'll have to continune how Thank you very much Uo^ng Dinh Nguyen - Get your private, free Email by Vietnamese at http://vol.vnn.vn "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system."
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: when i was executing jsp page iam geting these error could pls help me any one
Well, this tells you that you hit a null pointer exception in the jsp page. Not very much more ... Best you can do is to add some debugging code to trace the execution of your jsp page (write print statements to the HTML page or to a log file). FE On Friday, April 27, 2001 6:06 PM, Komal Kandi (Contractor) [SMTP:[EMAIL PROTECTED]] wrote: Hi Everyone, when i was executing jsp page iam geting these error could pls help me any one. 500 Internal Server Error java.lang.NullPointerException at /examples/jsp/IA/config5.jsp._jspService(/examples/jsp/IA/config5.jsp.ja va:86) (JSP page line 51) at com.orionserver.http.OrionHttpJspPage.service(JAX) at com.evermind.server.http.HttpApplication.xj(JAX) at com.evermind.server.http.JSPServlet.service(JAX) at com.evermind.server.http.d3.sw(JAX) at com.evermind.server.http.d3.su(JAX) at com.evermind.server.http.ef.s1(JAX) at com.evermind.server.http.ef.do(JAX) at com.evermind.util.f.run(JAX) thank u in advance. regards, komal kandi. -Original Message- From: Tim Drury [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Friday, April 27, 2001 7:14 AM To: Orion-Interest Subject: RE: ejb 2.0 proposed final draft #2 is out Here is the section that says what is different between PFD 1 and 2: E.12 Proposed Final Draft 2 Introduced local interfaces and local home interfaces for entity beans and session beans. Added characterization of local client view. Added subclasses of EJBException for systems exceptions thrown from local interface methods. Revisions to architecture for container managed persistence: * Shifted container managed relationships among entity beans from remote interfaces to local interfaces. * Removed dependent object classes. * Removed remote relationships among entity beans.
Can any one be so kind to help me with this problem...
In this example, I have followed a one-to-one unidirectional relationship to AddressEntity type. I seem to get a valid reference, but when I proceed to execute a method (AddressEntity.getId() in this case), I get NoSuchObjectException. The second time, it works correctly and I do not get an exception. Nested exception is: java.rmi.NoSuchObjectException: com.indnet.common.model.base.EntityKey@49d at AddressEntityHome_EntityHomeWrapper734.findExistingEntity(AddressEntityHome_ EntityHomeWrapper734.java:40) at AddressEntity_EntityBeanWrapper28.reActivate(AddressEntity_EntityBeanWrapper 28.java:3163) at AddressEntity_EntityBeanWrapper28.getId(AddressEntity_EntityBeanWrapper28.ja va:395) at com.indnet.symbiosis.service.common.address.ServiceAddressHelper.getValue(Se rviceAddressHelper.java:43) at com.indnet.symbiosis.service.companymanagement.CompanyManagementServiceBean. getValue(CompanyManagementServiceBean.java:685) at com.indnet.symbiosis.service.companymanagement.CompanyManagementServiceBean. getValue(CompanyManagementServiceBean.java:661) at com.indnet.symbiosis.service.companymanagement.CompanyManagementServiceBean. findContactByAliasLogin(CompanyManagementServiceBean.java:244) at CompanyManagementService_StatelessSessionBeanWrapper2.findContactByAliasLogi n(CompanyManagementService_StatelessSessionBeanWrapper2.java:2389) at java.lang.reflect.Method.invoke(Native Method) at com.evermind.server.rmi.bd.dr(JAX) at com.evermind.util.f.run(JAX) at connection to localhost/127.0.0.1 at com.evermind.server.rmi.OrionRemoteException.ib(JAX) at com.evermind.server.rmi.bb.h4(JAX) at com.evermind.server.rmi.bb.run(JAX) at java.lang.Thread.run(Thread.java:484) I have done some more investigation, and it seems to have to do with the finder I execute. The first function always works correctly, the second function fails the first time (with above exception) and then proceeds to work correctly. If I call the first function, followed by the second, then everything works fine. It's like something is dirty and then gets set correctly. public Contact findContactById(final Long contactId) throws RemoteException, NamingException, FinderException, FieldException { return getValue( ContactEntityHomeFinder.getHome().findByPrimaryKey(new EntityKey(contactId)) ); } public Contact findContactByAliasLogin(final String alias, final String login) throws RemoteException, NamingException, FinderException, FieldException { return getValue( ContactEntityHomeFinder.getHome().findByAliasLogin(alias, login) ); } The actual lines of code that fails is: public static Address getValue(final AddressEntity entity) throws RemoteException, FieldException { Address value = null; if (entity != null) { value = new Address(); value.set(Address.FIELD_ID, entity.getId()); //-- this line fails } return value; } Does any one have any ideas? Thanks. -AP_
RE: Help me please domain was nul message is killing me here...
Ray, the problem is quite simple. I have two Orion servers. One server is running an EJB application model, the other server is running JSP client application. From the JSP server, I try to access the EJB server, by creating an InitialContext with the same parameters that I would if I was trying to connect to the EJB application using a standalone client (appplication-client.xml and ApplicationClientInitialContextFactory). At this point, I get a NullPointerException on the Client (JSP Server) side telling me that the "domain was null". The exact same code, works correctly when running as a standalone application, however, when put into the JSP Server, produces this exception. Some people suggested using ApplictionInitialContextFactory, however, since ApplicationInitialContextFactory reads application.xml, I have no place to put my ejb-ref tags to reference the objects in the EJB application. Other people suggested playing around with rmi.xml. This, however, hardly seems standard. I am trying to write code that is J2EE compliant without having to use any of the Orion specific features. So I am at a standstill. It's hard to believe that no one ran into this problem. In many cases it does not make sense to deploy the client and server on the same physical machine. Our JSP clients are running on the public internet while our EJB models are running on the private internet not accessible from the outside. Also, since we have many clients, we anticipate having a "farm" of EJB servers running the model, and a "farm" of JSP servers accessing this model. I am amazed that no one has stumbled onto this problem. If you have two Orion servers running, put the following code on one of the servers: Properties p = new Properties(); p.setProperty(Context.PROVIDER_URL, "ormi://target-host/application-name"); p.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.ApplicationClientInitialContextFactory"); p.setProperty(Context.SECURITY_PRINCIPAL, "user"); p.setProperty(Context.SECURITY_CREDENTIALS, "password"); InitialContext ctx = new InitialContext(p); You will need to replace target-host, application-name, user and password with values for your system. You will need to put the application-client.xml in to the proper directory. For a web application, this file should go into WEB-INF/classes/META-INF/application-client.xml. -AP_ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ray Harrison Sent: Monday, April 02, 2001 8:16 PM To: Orion-Interest Subject: Re: Help me please "domain was nul" message is killing me here... Alex - Is there any chance you could zip up a small amount of code that recreates your problem? You had better include examples of your orion config files too. Or at least if you could provide lots of information code snippets and the like - that would be great! Give us what you can and we may be able to help... Cheers Ray --- Alex Paransky [EMAIL PROTECTED] wrote: Does anyone know what the "domain was null" message means? How do I get rid of it. Where do I specify a domain? HEELP, someone please. I have been posting this question for the last 3 weeks, and still I have no answers. Please, please please, help. -AP_ PS: Is this what it takes to get a question answered? Is there a different forum for paying customers? If I pay $1500, will I get my questions answered faster? __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text
Re: Help me please domain was nul message is killing me here...
i am also trying to get two orion servers talking to each other, on server A i have declared an ejb-module to be remote (orion-application.xml), this module runs on server B. Server B is declared in the rmi.xml file as another rmi server for server A, I lookup the ejb from the remote module, and then get a Class Cast exception when trying to narrow the object, to the home interface. any advice on how to get this working would be much appreciated, colin.. - Original Message - From: "Alex Paransky" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Tuesday, April 03, 2001 7:28 AM Subject: RE: Help me please "domain was nul" message is killing me here... Ray, the problem is quite simple. I have two Orion servers. One server is running an EJB application model, the other server is running JSP client application. From the JSP server, I try to access the EJB server, by creating an InitialContext with the same parameters that I would if I was trying to connect to the EJB application using a standalone client (appplication-client.xml and ApplicationClientInitialContextFactory). At this point, I get a NullPointerException on the Client (JSP Server) side telling me that the "domain was null". The exact same code, works correctly when running as a standalone application, however, when put into the JSP Server, produces this exception. Some people suggested using ApplictionInitialContextFactory, however, since ApplicationInitialContextFactory reads application.xml, I have no place to put my ejb-ref tags to reference the objects in the EJB application. Other people suggested playing around with rmi.xml. This, however, hardly seems standard. I am trying to write code that is J2EE compliant without having to use any of the Orion specific features. So I am at a standstill. It's hard to believe that no one ran into this problem. In many cases it does not make sense to deploy the client and server on the same physical machine. Our JSP clients are running on the public internet while our EJB models are running on the private internet not accessible from the outside. Also, since we have many clients, we anticipate having a "farm" of EJB servers running the model, and a "farm" of JSP servers accessing this model. I am amazed that no one has stumbled onto this problem. If you have two Orion servers running, put the following code on one of the servers: Properties p = new Properties(); p.setProperty(Context.PROVIDER_URL, "ormi://target-host/application-name"); p.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.ApplicationClientInitialContextFactory"); p.setProperty(Context.SECURITY_PRINCIPAL, "user"); p.setProperty(Context.SECURITY_CREDENTIALS, "password"); InitialContext ctx = new InitialContext(p); You will need to replace target-host, application-name, user and password with values for your system. You will need to put the application-client.xml in to the proper directory. For a web application, this file should go into WEB-INF/classes/META-INF/application-client.xml. -AP_ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ray Harrison Sent: Monday, April 02, 2001 8:16 PM To: Orion-Interest Subject: Re: Help me please "domain was nul" message is killing me here... Alex - Is there any chance you could zip up a small amount of code that recreates your problem? You had better include examples of your orion config files too. Or at least if you could provide lots of information code snippets and the like - that would be great! Give us what you can and we may be able to help... Cheers Ray --- Alex Paransky [EMAIL PROTECTED] wrote: Does anyone know what the "domain was null" message means? How do I get rid of it. Where do I specify a domain? HEELP, someone please. I have been posting this question for the last 3 weeks, and still I have no answers. Please, please please, help. -AP_ PS: Is this what it takes to get a question answered? Is there a different forum for paying customers? If I pay $1500, will I get my questions answered faster? __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text
Re: Help me please domain was nul message is killing me here...
I've gone back through your emails and don't have an overall picture of your application. Perhaps I am more dense than the average bear, but go ahead and give an overall picture of your application - like: This app is distributed over N orion server[s] and the configuration is done in the following manner... and I am trying to accomplish the followingand then I get this "domain was null" error, etc. That way myself and perhaps others can help out and it won't take 4 weeks to do so. Just a question out of curiosity: Have you looked at other app servers and do they support what you want to do in the way you want to do it - like JBoss,WebLogic,EAServer? Cheers! Ray Harrison --- Ray Harrison [EMAIL PROTECTED] wrote: Alex - Is there any chance you could zip up a small amount of code that recreates your problem? You had better include examples of your orion config files too. Or at least if you could provide lots of information code snippets and the like - that would be great! Give us what you can and we may be able to help... Cheers Ray --- Alex Paransky [EMAIL PROTECTED] wrote: Does anyone know what the "domain was null" message means? How do I get rid of it. Where do I specify a domain? HEELP, someone please. I have been posting this question for the last 3 weeks, and still I have no answers. Please, please please, help. -AP_ PS: Is this what it takes to get a question answered? Is there a different forum for paying customers? If I pay $1500, will I get my questions answered faster? __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text
Re: Help me please domain was nul message is killing me here...
PS: Is this what it takes to get a question answered? Is there a different forum for paying customers? If I pay $1500, will I get my questions answered faster? One would assume so. Paying customers are prioritised in the support queue (from personal experience). Hani Interesting. As another paying customer, this hasn't been my experience. I'm ignored just as completely as non-paying customers. This ignoring includes formal messages to Orion's support email address as well. We're still in development, but purchased a license in the hope that something resembling support would be forthcoming. It was a misguided expenditure in that regard. P. Pontbriand Canlink Interactive Technologies Inc.
RE: Help me please domain was nul message is killing me here...
I have had the same problem Alexto further muddy the matter I still haven't figured it out. I have opted to sipmply circumvent this option and do my own method of remote invocation (EJB in one server invoking an EJB in a another server). What I do remember reading , is that you need to set the "parent attribute" in the application definition in server .xml. If you look at the docs it specifies that this kind of scenario can be accomplished by doing just this.. i.e. the invoker is a child of the invoked. The problem I had, with this , is that I could never get it to work; I could never figure out the syntax.- parent ="ParentApp". - This only works if the other application is on the same physical server. The moment you try to append a server name to this application name i.e. parent = "remote-host/ParentApp" or even parent = "ormi://remote-host/ParentApp" this goes to hell !!! If this is supposed to work, that implies that the syntax tried out was wrong Anyway this might not be of any help, but you may want to try investigating the parent deal further (in server.xml when you define the application). It might lead to some undiscovered truth If you do find out, could you please let me know as well !! I developed a kludge to bypass this scenariowhich I would like to rep-lace with a functional soloution Good Luck ! Bruno Baloi [EMAIL PROTECTED] -Original Message- From: Alex Paransky [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 2:28 AM To: Orion-Interest Subject:RE: Help me please "domain was nul" message is killing me here... Ray, the problem is quite simple. I have two Orion servers. One server is running an EJB application model, the other server is running JSP client application. From the JSP server, I try to access the EJB server, by creating an InitialContext with the same parameters that I would if I was trying to connect to the EJB application using a standalone client (appplication-client.xml and ApplicationClientInitialContextFactory). At this point, I get a NullPointerException on the Client (JSP Server) side telling me that the "domain was null". The exact same code, works correctly when running as a standalone application, however, when put into the JSP Server, produces this exception. Some people suggested using ApplictionInitialContextFactory, however, since ApplicationInitialContextFactory reads application.xml, I have no place to put my ejb-ref tags to reference the objects in the EJB application. Other people suggested playing around with rmi.xml. This, however, hardly seems standard. I am trying to write code that is J2EE compliant without having to use any of the Orion specific features. So I am at a standstill. It's hard to believe that no one ran into this problem. In many cases it does not make sense to deploy the client and server on the same physical machine. Our JSP clients are running on the public internet while our EJB models are running on the private internet not accessible from the outside. Also, since we have many clients, we anticipate having a "farm" of EJB servers running the model, and a "farm" of JSP servers accessing this model. I am amazed that no one has stumbled onto this problem. If you have two Orion servers running, put the following code on one of the servers: Properties p = new Properties(); p.setProperty(Context.PROVIDER_URL, "ormi://target-host/application-name"); p.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.ApplicationClientInitialContextFactory"); p.setProperty(Context.SECURITY_PRINCIPAL, "user"); p.setProperty(Context.SECURITY_CREDENTIALS, "password"); InitialContext ctx = new InitialContext(p); You will need to replace target-host, application-name, user and password with values for your system. You will need to put the application-client.xml in to the proper directory. For a web application, this file should go into WEB-INF/classes/META-INF/application-client.xml. -AP_ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ray Harrison Sent: Monday, April 02, 2001 8:16 PM To: Orion-Interest Subject: Re: Help me please "domain was nul" message is killing me here... Alex - Is there any chance you could zip up a small amount of code that recreates your problem? You had better include examples of your orion config files too. Or at least if you c
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: Help me please domain was nul message is killing me here...
orion/config/default-web-site.xml should do it. If it doesnt work please send a bit more info. on the problem like when you get the problem if you have a small sample app just zip it up. Cheers, Ash Alex Paransky wrote: Does anyone know what the "domain was null" message means? How do I get rid of it. Where do I specify a domain? HEELP, someone please. I have been posting this question for the last 3 weeks, and still I have no answers. Please, please please, help. -AP_ PS: Is this what it takes to get a question answered? Is there a different forum for paying customers? If I pay $1500, will I get my questions answered faster?
Re: Help me please domain was nul message is killing me here...
Alex - Is there any chance you could zip up a small amount of code that recreates your problem? You had better include examples of your orion config files too. Or at least if you could provide lots of information code snippets and the like - that would be great! Give us what you can and we may be able to help... Cheers Ray --- Alex Paransky [EMAIL PROTECTED] wrote: Does anyone know what the "domain was null" message means? How do I get rid of it. Where do I specify a domain? HEELP, someone please. I have been posting this question for the last 3 weeks, and still I have no answers. Please, please please, help. -AP_ PS: Is this what it takes to get a question answered? Is there a different forum for paying customers? If I pay $1500, will I get my questions answered faster? __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text
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
R: Servlet loading twice, Help me, please
Hi had the same problem i resolved with a static Object working as a lock in the init method. The best thing however is to upgrade to 1.4.7 wich does not present this strange behaviour anymore. Marco -Messaggio originale- Da: Vinh Chu Xuan [mailto:[EMAIL PROTECTED]] Inviato: luned, 26. febbraio 2001 17:06 A: Orion-Interest Oggetto: Re: Servlet loading twice, Help me, please Hi Phong, I am now at home,so i do not have the source code here. In this case you should use global Java Bean. I will send you the sample. Hope that will help you. Talk to you later. Best regards, Vinh Chu Xuan Vietnam Data Communication Company Software RD Department 1E Truong Chinh - Hanoi - Vietnam http://home.vnn.vn/vdc/index_e.html Office : +84 4 8699112-307 Cell phone : +84 91 21 6116 - Original Message - From: Phong Quoc Tran [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, February 26, 2001 8:37 AM Subject: Servlet loading twice, Help me, please Hi, I have a servlet as a front component in my webapp; the servlet has also the task of saving a Object in static variable (for example : a integer value ) during his inizialization. When I start orion server, I set new value for static variable (for example new value = 20 ) and I call the servlet n times ( n = 2 ) I see 2 servlet instance created (see the output below) Please help me, how to make only 1 servlet instance. I have done a small example so that i can explain me in a more clear way : my web.xml servlet servlet-nameMyServlet/servlet-name servlet-classMyServlet/servlet-class load-on-startup0/load-on-startup /servlet the code of the my object is class MyObject extends Object { private static int myvar = 10; public static void setVar(int var) { myvar = var; } public void myprint() { System.out.println("I'm a Object : " + this + " and my variable : " + myvar); } } the code of the servlet is: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class MyServlet extends HttpServlet { public void init(ServletConfig conf) throws ServletException { MyObject myObject = new MyObject(); myObject.myprint(); MyObject.setVar(20); System.out.println("Done " + this); } public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet( request, response ); } public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { } public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet( request, response ); } } now, if I start the server i call the servlet n times (n = 2 ) i can see 2 servlet instance created (see the output below) D:\webserver\Orionjava -jar orion.jar I'm a Object : MyObject@7c1f2a88 and my variable : 10 Done MyServlet@66732a88 Orion/1.4.4 initialized I'm a Object : MyObject@e86f2a8a and my variable : 10 Done MyServlet@c34f2a8a I using Orion server 1.44, and Please help me, how to make only 1 servlet instance. Thanks, Phong Quoc Tran === Tran Quoc Phong Paragon Solutions Vietnam (PSV) 26-28 Dong Du Street, District 1, HoChiMinh City, Vietnam Phone : (84-8) 8 251 250 (ext 181 or 182) Office email : [EMAIL PROTECTED] Private email : [EMAIL PROTECTED] Web site : http://www.psv.com.vn
Re: Servlet loading twice, Help me, please
Hi Phong, I am now at home,so i do not have the source code here. In this case you should use global Java Bean. I will send you the sample. Hope that will help you. Talk to you later. Best regards, Vinh Chu Xuan Vietnam Data Communication Company Software RD Department 1E Truong Chinh - Hanoi - Vietnam http://home.vnn.vn/vdc/index_e.html Office : +84 4 8699112-307 Cell phone : +84 91 21 6116 - Original Message - From: Phong Quoc Tran [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, February 26, 2001 8:37 AM Subject: Servlet loading twice, Help me, please Hi, I have a servlet as a front component in my webapp; the servlet has also the task of saving a Object in static variable (for example : a integer value ) during his inizialization. When I start orion server, I set new value for static variable (for example new value = 20 ) and I call the servlet n times ( n = 2 ) I see 2 servlet instance created (see the output below) Please help me, how to make only 1 servlet instance. I have done a small example so that i can explain me in a more clear way : my web.xml servlet servlet-nameMyServlet/servlet-name servlet-classMyServlet/servlet-class load-on-startup0/load-on-startup /servlet the code of the my object is class MyObject extends Object { private static int myvar = 10; public static void setVar(int var) { myvar = var; } public void myprint() { System.out.println("I'm a Object : " + this + " and my variable : " + myvar); } } the code of the servlet is: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class MyServlet extends HttpServlet { public void init(ServletConfig conf) throws ServletException { MyObject myObject = new MyObject(); myObject.myprint(); MyObject.setVar(20); System.out.println("Done " + this); } public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet( request, response ); } public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { } public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet( request, response ); } } now, if I start the server i call the servlet n times (n = 2 ) i can see 2 servlet instance created (see the output below) D:\webserver\Orionjava -jar orion.jar I'm a Object : MyObject@7c1f2a88 and my variable : 10 Done MyServlet@66732a88 Orion/1.4.4 initialized I'm a Object : MyObject@e86f2a8a and my variable : 10 Done MyServlet@c34f2a8a I using Orion server 1.44, and Please help me, how to make only 1 servlet instance. Thanks, Phong Quoc Tran === Tran Quoc Phong Paragon Solutions Vietnam (PSV) 26-28 Dong Du Street, District 1, HoChiMinh City, Vietnam Phone : (84-8) 8 251 250 (ext 181 or 182) Office email : [EMAIL PROTECTED] Private email : [EMAIL PROTECTED] Web site : http://www.psv.com.vn
RE: Servlet loading twice, Help me, please
Hi Phong, I am now at home, i do not have the source code here. In this case you should use global Java Bean. I will send source code to you. Hope that will help you. Talk to you later. Best regards, Vinh Chu Xuan Vietnam Data Communication Company Software RD Department 1E Truong Chinh - Hanoi - Vietnam http://home.vnn.vn/vdc/index_e.html Office : +84 4 8699112-307 Cell phone : +84 91 21 6116 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Phong Quoc Tran Sent: Monday, February 26, 2001 8:38 AM To: Orion-Interest Subject: Servlet loading twice, Help me, please Hi, I have a servlet as a front component in my webapp; the servlet has also the task of saving a Object in static variable (for example : a integer value ) during his inizialization. When I start orion server, I set new value for static variable (for example new value = 20 ) and I call the servlet n times ( n = 2 ) I see 2 servlet instance created (see the output below) Please help me, how to make only 1 servlet instance. I have done a small example so that i can explain me in a more clear way : my web.xml servlet servlet-nameMyServlet/servlet-name servlet-classMyServlet/servlet-class load-on-startup0/load-on-startup /servlet the code of the my object is class MyObject extends Object { private static int myvar = 10; public static void setVar(int var) { myvar = var; } public void myprint() { System.out.println("I'm a Object : " + this + " and my variable : " + myvar); } } the code of the servlet is: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class MyServlet extends HttpServlet { public void init(ServletConfig conf) throws ServletException { MyObject myObject = new MyObject(); myObject.myprint(); MyObject.setVar(20); System.out.println("Done " + this); } public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet( request, response ); } public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { } public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet( request, response ); } } now, if I start the server i call the servlet n times (n = 2 ) i can see 2 servlet instance created (see the output below) D:\webserver\Orionjava -jar orion.jar I'm a Object : MyObject@7c1f2a88 and my variable : 10 Done MyServlet@66732a88 Orion/1.4.4 initialized I'm a Object : MyObject@e86f2a8a and my variable : 10 Done MyServlet@c34f2a8a I using Orion server 1.44, and Please help me, how to make only 1 servlet instance. Thanks, Phong Quoc Tran === Tran Quoc Phong Paragon Solutions Vietnam (PSV) 26-28 Dong Du Street, District 1, HoChiMinh City, Vietnam Phone : (84-8) 8 251 250 (ext 181 or 182) Office email : [EMAIL PROTECTED] Private email : [EMAIL PROTECTED] Web site : http://www.psv.com.vn
Servlet loading twice, Help me, please
Hi, I have a servlet as a front component in my webapp; the servlet has also the task of saving a Object in static variable (for example : a integer value ) during his inizialization. When I start orion server, I set new value for static variable (for example new value = 20 ) and I call the servlet n times ( n = 2 ) I see 2 servlet instance created (see the output below) Please help me, how to make only 1 servlet instance. I have done a small example so that i can explain me in a more clear way : my web.xml servlet servlet-nameMyServlet/servlet-name servlet-classMyServlet/servlet-class load-on-startup0/load-on-startup /servlet the code of the my object is class MyObject extends Object { private static int myvar = 10; public static void setVar(int var) { myvar = var; } public void myprint() { System.out.println("I'm a Object : " + this + " and my variable : " + myvar); } } the code of the servlet is: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class MyServlet extends HttpServlet { public void init(ServletConfig conf) throws ServletException { MyObject myObject = new MyObject(); myObject.myprint(); MyObject.setVar(20); System.out.println("Done " + this); } public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet( request, response ); } public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { } public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet( request, response ); } } now, if I start the server i call the servlet n times (n = 2 ) i can see 2 servlet instance created (see the output below) D:\webserver\Orionjava -jar orion.jar I'm a Object : MyObject@7c1f2a88 and my variable : 10 Done MyServlet@66732a88 Orion/1.4.4 initialized I'm a Object : MyObject@e86f2a8a and my variable : 10 Done MyServlet@c34f2a8a I using Orion server 1.44, and Please help me, how to make only 1 servlet instance. Thanks, Phong Quoc Tran === Tran Quoc Phong Paragon Solutions Vietnam (PSV) 26-28 Dong Du Street, District 1, HoChiMinh City, Vietnam Phone : (84-8) 8 251 250 (ext 181 or 182) Office email : [EMAIL PROTECTED] Private email : [EMAIL PROTECTED] Web site : http://www.psv.com.vn
Re: same Error deserializing EJB-session on petstore, anyone help me.
I don't know why your orion try to passivate petstore modelUpdateManager. (BTW I don't know what is petstore.) And solutions, I believe, are the same: either use ejbPassivate and ejbActivate to manage non-serializable resources or define them as transient fields. Alexey Ryndin
Re: same Error deserializing EJB-session on petstore, anyone help me.
Just glancing at your problem, I think the error is in the petstore app. ModelManager and some other classes for the shoppingclientcontroller do not implement serializable and hence an error. Matt Li You wrote: Hi All, Dear Alexey Ryndin, I find same Error deserializing EJB-session in petstore on Orion,I don't know where i miss ? where petstore miss ? where Orion miss ? where Postgresql miss? and why!? please help me. thanks again, yours Urey . //** errors of perstore on Orion 00-11-2 12:47 Started 00-11-2 12:47 petstore: 1.3.8 Started 00-11-2 12:48 petstore: com.sun.j2ee.blueprints.petstore.control.web.MainServlet: init 00-11-2 12:48 Error deserializing EJB-session java.io.WriteAbortedException: Writing aborted by exception; java.io.NotSerializableException: com.sun.j2ee.blueprints.petstore.control.ejb.ModelUpdateManager at java.io.ObjectInputStream.readObject(ObjectInputStream.java:445) at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262) at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262) at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236) at com.evermind.server.ejb.gp.ah8(JAX) at com.evermind.server.ejb.EJBContainer.aib(JAX) at com.evermind.server.ejb.gr.fv(JAX) at com.evermind.server.rmi.bf.h0(JAX) at com.evermind.server.rmi.RMIContext.gr(JAX) at com.evermind.server.rmi.RMIContext.gv(JAX) at com.evermind.server.rmi.RMIContext.lookup(JAX) at com.evermind.server.hi.f_(JAX) at com.evermind.server.hi.lookup(JAX) at com.evermind.server.ejb.gr.fv(JAX) at com.evermind.util.t.lookup(JAX) at com.evermind.server.hi.f_(JAX) at com.evermind.server.hi.lookup(JAX) at javax.naming.InitialContext.lookup(InitialContext.java:350) at com.sun.j2ee.blueprints.petstore.util.EJBUtil.getSCCHome(EJBUtil.java:47) at com.sun.j2ee.blueprints.petstore.control.web.ModelManager.getSCCEJB(ModelManager.java:124) at com.sun.j2ee.blueprints.petstore.control.web.ShoppingClientControllerWebImpl.init(ShoppingClientControllerWebImpl.java:61) at com.sun.j2ee.blueprints.petstore.control.web.RequestProcessor.processRequest(RequestProcessor.java:96) at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.java:61) 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) 00-11-2 12:48 Error deserializing EJB-session java.io.WriteAbortedException: Writing aborted by exception; java.io.NotSerializableException: com.sun.j2ee.blueprints.petstore.control.ejb.ModelUpdateManager at java.io.ObjectInputStream.readObject(ObjectInputStream.java:445) at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262) at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262) at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236) at com.evermind.server.ejb.gp.ah8(JAX) at com.evermind.server.ejb.EJBContainer.aib(JAX) at com.evermind.server.ejb.gr.fv(JAX) at com.evermind.server.rmi.bf.h0(JAX) at com.evermind.server.rmi.RMIContext.gr(JAX) at com.evermind.server.rmi.RMIContext.gv(JAX) at com.evermind.server.rmi.RMIContext.lookup(JAX) at com.evermind.server.hi.f_(JAX) at com.evermind.server.hi.lookup(JAX) at com.evermind.server.ejb.gr.fv(JAX) at com.evermind.util.t.lookup(JAX) at com.evermind.server.hi.f_(JAX) at com.evermind.server.hi.lookup(JAX) at javax.naming.InitialContext.lookup(InitialContext.java:350
same Error deserializing EJB-session on petstore, anyone help me.
Hi All, Dear Alexey Ryndin, I find same Error deserializing EJB-session in petstore on Orion,I don't know where i miss ? where petstore miss ? where Orion miss ? where Postgresql miss? and why!? please help me. thanks again, yours Urey . //** errors of perstore on Orion 00-11-2 12:47 Started 00-11-2 12:47 petstore: 1.3.8 Started 00-11-2 12:48 petstore: com.sun.j2ee.blueprints.petstore.control.web.MainServlet: init 00-11-2 12:48 Error deserializing EJB-session java.io.WriteAbortedException: Writing aborted by exception; java.io.NotSerializableException: com.sun.j2ee.blueprints.petstore.control.ejb.ModelUpdateManager at java.io.ObjectInputStream.readObject(ObjectInputStream.java:445) at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262) at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262) at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236) at com.evermind.server.ejb.gp.ah8(JAX) at com.evermind.server.ejb.EJBContainer.aib(JAX) at com.evermind.server.ejb.gr.fv(JAX) at com.evermind.server.rmi.bf.h0(JAX) at com.evermind.server.rmi.RMIContext.gr(JAX) at com.evermind.server.rmi.RMIContext.gv(JAX) at com.evermind.server.rmi.RMIContext.lookup(JAX) at com.evermind.server.hi.f_(JAX) at com.evermind.server.hi.lookup(JAX) at com.evermind.server.ejb.gr.fv(JAX) at com.evermind.util.t.lookup(JAX) at com.evermind.server.hi.f_(JAX) at com.evermind.server.hi.lookup(JAX) at javax.naming.InitialContext.lookup(InitialContext.java:350) at com.sun.j2ee.blueprints.petstore.util.EJBUtil.getSCCHome(EJBUtil.java:47) at com.sun.j2ee.blueprints.petstore.control.web.ModelManager.getSCCEJB(ModelManager.java:124) at com.sun.j2ee.blueprints.petstore.control.web.ShoppingClientControllerWebImpl.init(ShoppingClientControllerWebImpl.java:61) at com.sun.j2ee.blueprints.petstore.control.web.RequestProcessor.processRequest(RequestProcessor.java:96) at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.java:61) 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) 00-11-2 12:48 Error deserializing EJB-session java.io.WriteAbortedException: Writing aborted by exception; java.io.NotSerializableException: com.sun.j2ee.blueprints.petstore.control.ejb.ModelUpdateManager at java.io.ObjectInputStream.readObject(ObjectInputStream.java:445) at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262) at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262) at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236) at com.evermind.server.ejb.gp.ah8(JAX) at com.evermind.server.ejb.EJBContainer.aib(JAX) at com.evermind.server.ejb.gr.fv(JAX) at com.evermind.server.rmi.bf.h0(JAX) at com.evermind.server.rmi.RMIContext.gr(JAX) at com.evermind.server.rmi.RMIContext.gv(JAX) at com.evermind.server.rmi.RMIContext.lookup(JAX) at com.evermind.server.hi.f_(JAX) at com.evermind.server.hi.lookup(JAX) at com.evermind.server.ejb.gr.fv(JAX) at com.evermind.util.t.lookup(JAX) at com.evermind.server.hi.f_(JAX) at com.evermind.server.hi.lookup(JAX) at javax.naming.InitialContext.lookup(InitialContext.java:350) at com.sun.j2ee.blueprints.petstore.util.EJBUtil.getSCCHome(EJBUtil.java:47) at com.sun.j2ee.blueprints.petstore.control.web.ModelManager.getSCCEJB(ModelManager.java:124) at com.sun.j2ee.blueprints.petstore.control.web.ShoppingClientControllerWebImpl.init(ShoppingClientControllerWebImpl.java:61
Re: same Error deserializing EJB-session on petstore, anyone help me.
I have experienced the same problems with the petstore app on Sybase/EA Server and Orion/Variety of databases. Its somewhere in the app itself...but the app itself always needed fixing prior to running it anyway - depending on the app server and the database. It doesn't do much right out of the box and there may be some other issue that needs addressing that isn't happening. I have just used the app as a learning tool - and it has some interesting features - but I never spent the time to get all of it working perfectly - not worth it to me. --- Matt Bauer [EMAIL PROTECTED] wrote: Just glancing at your problem, I think the error is in the petstore app. ModelManager and some other classes for the shoppingclientcontroller do not implement serializable and hence an error. Matt Li You wrote: Hi All, Dear Alexey Ryndin, I find same Error deserializing EJB-session in petstore on Orion,I don't know where i miss ? where petstore miss ? where Orion miss ? where Postgresql miss? and why!? please help me. thanks again, yours Urey . //** errors of perstore on Orion 00-11-2 12:47 Started 00-11-2 12:47 petstore: 1.3.8 Started 00-11-2 12:48 petstore: com.sun.j2ee.blueprints.petstore.control.web.MainServlet: init 00-11-2 12:48 Error deserializing EJB-session java.io.WriteAbortedException: Writing aborted by exception; java.io.NotSerializableException: com.sun.j2ee.blueprints.petstore.control.ejb.ModelUpdateManager at java.io.ObjectInputStream.readObject(ObjectInputStream.java:445) at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262) at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262) at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236) at com.evermind.server.ejb.gp.ah8(JAX) at com.evermind.server.ejb.EJBContainer.aib(JAX) at com.evermind.server.ejb.gr.fv(JAX) at com.evermind.server.rmi.bf.h0(JAX) at com.evermind.server.rmi.RMIContext.gr(JAX) at com.evermind.server.rmi.RMIContext.gv(JAX) at com.evermind.server.rmi.RMIContext.lookup(JAX) at com.evermind.server.hi.f_(JAX) at com.evermind.server.hi.lookup(JAX) at com.evermind.server.ejb.gr.fv(JAX) at com.evermind.util.t.lookup(JAX) at com.evermind.server.hi.f_(JAX) at com.evermind.server.hi.lookup(JAX) at javax.naming.InitialContext.lookup(InitialContext.java:350) at com.sun.j2ee.blueprints.petstore.util.EJBUtil.getSCCHome(EJBUtil.java:47) at com.sun.j2ee.blueprints.petstore.control.web.ModelManager.getSCCEJB(ModelManager.java:124) at com.sun.j2ee.blueprints.petstore.control.web.ShoppingClientControllerWebImpl.init(ShoppingClientControllerWebImpl.java:61) at com.sun.j2ee.blueprints.petstore.control.web.RequestProcessor.processRequest(RequestProcessor.java:96) at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.java:61) 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) 00-11-2 12:48 Error deserializing EJB-session java.io.WriteAbortedException: Writing aborted by exception; java.io.NotSerializableException: com.sun.j2ee.blueprints.petstore.control.ejb.ModelUpdateManager at java.io.ObjectInputStream.readObject(ObjectInputStream.java:445) at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262) at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262) at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.readObject
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
Help me about orion serlvet
Hello,i'm a newbie for java and orion i want to make a new servlet on orion application server how to do that ? I add the lines at web.xml : servletservlet-nameFormMail/servlet-nameservlet-classFormMailServlet/servlet-class/servlet and put the FormMailServlet.class to web-inf/classes then i visit: http://../FormMailServlet but get a error How to do that ? Thanks for any advice. newbie
AW: Help me about orion serlvet
-Urspr¨¹ngliche Nachricht-Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von cgreenGesendet: Mittwoch, 13. Dezember 2000 14:58An: Orion-InterestBetreff: Help me about orion serlvet Hello,i'm a newbie for java and orion i want to make a new servlet on orion application server how to do that ? I add the lines at web.xml : servletservlet-nameFormMail/servlet-nameservlet-classFormMailServlet/servlet-class /servlet try adding this to your web.xml servlet-mapping servlet-nameFormMail/servlet-name url-pattern/FormMail/url-pattern /servlet-mapping and put the FormMailServlet.class to web-inf/classes then i visit: http://../FormMailServlet but get a error How to do that ? Thanks for any advice. newbie
RE: Help me about orion serlvet
I would suggest going through the excellent Orion Primer tutorial, at http://www.jollem.com/orion-primer/. It covers writing a simple servlet andstateless session bean, and how to deploy them to Orion. Jason Boehle [EMAIL PROTECTED] -Original Message-From: cgreen [mailto:[EMAIL PROTECTED]]Sent: Wednesday, December 13, 2000 7:58 AMTo: Orion-InterestSubject: Help me about orion serlvet Hello,i'm a newbie for java and orion i want to make a new servlet on orion application server how to do that ? I add the lines at web.xml : servletservlet-nameFormMail/servlet-nameservlet-classFormMailServlet/servlet-class/servlet and put the FormMailServlet.class to web-inf/classes then i visit: http://../FormMailServlet but get a error How to do that ? Thanks for any advice. newbie
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/
Re: Anyone help me of Javamail ?
try out the samples that come with the javamail install from Sun _ Get your free E-mail at http://www.ireland.com
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 __ ==ÐÂÀËÃâ·Ñµç ×ÓÓÊÏä http://mail.sina.com.cn ÐÂÀËÍƳö°ÂÔ˶ÌÐÅÏ¢ÊÖ»úµã²¥·þÎñ http://sms.sina.com.cn/
RE: Anyone help me of Javamail ?
Try looking for information here: http://java.sun.com/products/javamail/ Jason Boehle [EMAIL PROTECTED] -Original Message- From: ureyurey [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 10, 2000 11:43 PM To: Orion-Interest Cc: [EMAIL PROTECTED] 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 __ ==ÐÂÀËÃâ·Ñµç ×ÓÓÊÏä 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.
RE: Help me please in post method
A tip to all: DO NOT SEND ORION SUPPORT REQUESTS TO INDIVIDUALS ON THE ORION-INTEREST LIST. Thank you. -mike -Original Message- From: waheed rahman [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 10, 2000 7:15 PM To: [EMAIL PROTECTED] Subject: Help me please in post method Hi, This is waheed from dubai and i am newbie to orion server. I developed a project for my academic with all the method in get, after that i converted all the form into post and its working properly. Now,i like to make it online here comes the problem, the form with get is working properly and the project form with post method is not working properly. ie. it is compiling partialy, and giving partial output and some times blank screen,with status bar "Done". Some peoples suggest that post content length has to increased will you please help me in this.But they dont aware of orion. What to do please help me in this regard Advance thankings for your help. Regards Waheed Rahuman __ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/
Re: RE: Help me please in post method
Have you switched your servlet to perform doPost instead of doGet? John Hogan _ Get your free E-mail at http://www.ireland.com
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 __ ==ÐÂÀËÃâ·Ñµç×ÓÓÊÏä http://mail.sina.com.cn ÐÂÀËÍƳö°ÂÔ˶ÌÐÅÏ¢ÊÖ»úµã²¥·þÎñ http://sms.sina.com.cn/
Anyone help me of Javamail ?
hi, i'm trying to send recieve mails using javamail api ejb. on Orion pls..., anyone help me out. write in details... thanks yoursUrey __ ==ÐÂÀËÃâ·Ñµç×ÓÓÊÏä http://mail.sina.com.cn ÐÂÀËÍƳö°ÂÔ˶ÌÐÅÏ¢ÊÖ»úµã²¥·þÎñ http://sms.sina.com.cn/
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/
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.
-- 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.
Help me, please
I have a next problem, when my application starts: java.lang.ArrayIndexOutOfBoundsException: 6 at java.lang.String.init(Compiled Code) at java.lang.String.toUpperCase(Compiled Code) at java.lang.String.toUpperCase(Compiled Code) at org.hsql.Tokenizer.getToken(Compiled Code) at org.hsql.Tokenizer.getString(Compiled Code) at org.hsql.Database.execute(Compiled Code) at org.hsql.jdbcConnection.executeStandalone(Compiled Code) at org.hsql.jdbcConnection.execute(Compiled Code) at org.hsql.jdbcStatement.fetchResult(Compiled Code) at org.hsql.jdbcStatement.executeQuery(Compiled Code) at org.hsql.jdbcPreparedStatement.executeQuery(Compiled Code) at com.evermind.sql.am.executeQuery(Compiled Code) at com.evermind.sql.am.executeQuery(Compiled Code) at com.evermind.sql.am.executeQuery(Compiled Code) at ants.moo.PlaceDAO.selectByWorld(Compiled Code) at ants.moo.PlaceDAO.findByWorld(PlaceDAO.java:102) at ants.moo.PlaceEJB.ejbFindByWorld(PlaceEJB.java:1145) at PlaceHome_EntityHomeWrapper12.findByWorld(Compiled Code) at ants.moo.WorldEJB.getPlaces(Compiled Code) at World_EntityBeanWrapper4.getPlaces(Compiled Code) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Compiled Code) at com.evermind.server.rmi.bd.run(Compiled Code) at com.evermind.server.rmi.bb.hy(Compiled Code) at com.evermind.server.rmi.bb.run(Compiled Code) at com.evermind.util.f.run(Compiled Code) java.sql.SQLException: General error java.lang.ArrayIndexOutOfBoundsException: 6 in statement [select Id from Places where SubId = 'world1' ] at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.init(Compiled Code) at java.lang.Exception.init(Compiled Code) at java.sql.SQLException.init(SQLException.java:64) at org.hsql.Trace.getError(Compiled Code) at org.hsql.jdbcResultSet.init(Compiled Code) at org.hsql.jdbcConnection.executeStandalone(Compiled Code) at org.hsql.jdbcConnection.execute(Compiled Code) at org.hsql.jdbcStatement.fetchResult(Compiled Code) at org.hsql.jdbcStatement.executeQuery(Compiled Code) at org.hsql.jdbcPreparedStatement.executeQuery(Compiled Code) at com.evermind.sql.am.executeQuery(Compiled Code) at com.evermind.sql.am.executeQuery(Compiled Code) at com.evermind.sql.am.executeQuery(Compiled Code) at ants.moo.PlaceDAO.selectByWorld(Compiled Code) at ants.moo.PlaceDAO.findByWorld(PlaceDAO.java:102) at ants.moo.PlaceEJB.ejbFindByWorld(PlaceEJB.java:1145) at PlaceHome_EntityHomeWrapper12.findByWorld(Compiled Code) at ants.moo.WorldEJB.getPlaces(Compiled Code) at World_EntityBeanWrapper4.getPlaces(Compiled Code) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Compiled Code) at com.evermind.server.rmi.bd.run(Compiled Code) at com.evermind.server.rmi.bb.hy(Compiled Code) at com.evermind.server.rmi.bb.run(Compiled Code) at com.evermind.util.f.run(Compiled Code)
RE: Help me, please
Generally an error that mentions the 'init' method refers to a problem with a global variable (instance variables) that you are setting in some way or another. I've learned that this 'init' method is a pre-constructor that builds all the global variables in your object. Check these variables. Also, if you set the environment variable JAVA_COMPILER=NONE you won't get those nasty 'Compiled Code' messages, instead, you will get line numbers. Makes debugging easier. Hope that helps a little. Matt MacGillivray Technical Developer Delfour Corporation (905) 415-9779 x2021 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jordi Pinol Sent: Friday, November 10, 2000 6:59 AM To: Orion-Interest Subject: Help me, please I have a next problem, when my application starts: java.lang.ArrayIndexOutOfBoundsException: 6 at java.lang.String.init(Compiled Code) at java.lang.String.toUpperCase(Compiled Code) at java.lang.String.toUpperCase(Compiled Code) at org.hsql.Tokenizer.getToken(Compiled Code) at org.hsql.Tokenizer.getString(Compiled Code) at org.hsql.Database.execute(Compiled Code) at org.hsql.jdbcConnection.executeStandalone(Compiled Code) at org.hsql.jdbcConnection.execute(Compiled Code) at org.hsql.jdbcStatement.fetchResult(Compiled Code) at org.hsql.jdbcStatement.executeQuery(Compiled Code) at org.hsql.jdbcPreparedStatement.executeQuery(Compiled Code) at com.evermind.sql.am.executeQuery(Compiled Code) at com.evermind.sql.am.executeQuery(Compiled Code) at com.evermind.sql.am.executeQuery(Compiled Code) at ants.moo.PlaceDAO.selectByWorld(Compiled Code) at ants.moo.PlaceDAO.findByWorld(PlaceDAO.java:102) at ants.moo.PlaceEJB.ejbFindByWorld(PlaceEJB.java:1145) at PlaceHome_EntityHomeWrapper12.findByWorld(Compiled Code) at ants.moo.WorldEJB.getPlaces(Compiled Code) at World_EntityBeanWrapper4.getPlaces(Compiled Code) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Compiled Code) at com.evermind.server.rmi.bd.run(Compiled Code) at com.evermind.server.rmi.bb.hy(Compiled Code) at com.evermind.server.rmi.bb.run(Compiled Code) at com.evermind.util.f.run(Compiled Code) java.sql.SQLException: General error java.lang.ArrayIndexOutOfBoundsException: 6 in statement [select Id from Places where SubId = 'world1' ] at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.init(Compiled Code) at java.lang.Exception.init(Compiled Code) at java.sql.SQLException.init(SQLException.java:64) at org.hsql.Trace.getError(Compiled Code) at org.hsql.jdbcResultSet.init(Compiled Code) at org.hsql.jdbcConnection.executeStandalone(Compiled Code) at org.hsql.jdbcConnection.execute(Compiled Code) at org.hsql.jdbcStatement.fetchResult(Compiled Code) at org.hsql.jdbcStatement.executeQuery(Compiled Code) at org.hsql.jdbcPreparedStatement.executeQuery(Compiled Code) at com.evermind.sql.am.executeQuery(Compiled Code) at com.evermind.sql.am.executeQuery(Compiled Code) at com.evermind.sql.am.executeQuery(Compiled Code) at ants.moo.PlaceDAO.selectByWorld(Compiled Code) at ants.moo.PlaceDAO.findByWorld(PlaceDAO.java:102) at ants.moo.PlaceEJB.ejbFindByWorld(PlaceEJB.java:1145) at PlaceHome_EntityHomeWrapper12.findByWorld(Compiled Code) at ants.moo.WorldEJB.getPlaces(Compiled Code) at World_EntityBeanWrapper4.getPlaces(Compiled Code) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Compiled Code) at com.evermind.server.rmi.bd.run(Compiled Code) at com.evermind.server.rmi.bb.hy(Compiled Code) at com.evermind.server.rmi.bb.run(Compiled Code) at com.evermind.util.f.run(Compiled Code)
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 *
PetStore run in Orion error,Help Me
Hi,ALL I am hardly installed the petStore into Orion, But When I run it at url:"http://localhost:8080/petstore/control/language? language=English" Then got errors of that, java.lang.NullPointerException at com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.get ScreenDefinitions(ScreenFlowXmlDAO.java:131) at com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.loa dScreenDefinitionMappings(ScreenFlowXmlDAO.java:106) at com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowManager.in it(ScreenFlowManager.java:40) at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.getScree nFlowManager(MainServlet.java:96) at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.init (MainServlet.java:37) at javax.servlet.GenericServlet.init (GenericServlet.java) at com.evermind.server.http.HttpApplication.wt(JAX) at com.evermind.server.http.HttpApplication.wb(JAX) at com.evermind.server.http.e9.um(JAX) at com.evermind.server.http.ef.su(JAX) at com.evermind.server.http.ef.dn(JAX) at com.evermind.util.f.run(JAX) Who can tell me, How to do it? and why? Thanks a lot yoursUrey __ ==ÐÂÀËÃâ·Ñµç×ÓÓÊÏä http://mail.sina.com.cn ÐÂÀËÍƳö°ÂÔ˶ÌÐÅÏ¢ÊÖ»úµã²¥·þÎñ http://sms.sina.com.cn/
Please help me with orion-ejb-jar.xml
I can't seem to get orion to keep my changes to orion-ejb-jar.xml. This file gets automatically generated. We have a lot of custom CMP mappings we need to have in that file. I edited it in place (orion/application-deployments/antsweb/antsweb-ejb/orion-ejb-jar.xml) and I tried putting it in my application directory (antsweb/antsweb-ejb/orion/orion-ejb-jar.xml). When I tried the second one, and then restarted Orion, it at least gave me the following message: Copying default deployment descriptor from archive at /home/joel/antsweb/orion/antsweb/antsweb-ejb/orion/orion-ejb-jar.xml to deployment directory /home/joel/app/orion/application-deployments/antsweb/antsweb-ejb... At least the first time... Anyway, either way, my version of the file was overridden by Orion auto generating one (putting it in the application-deployments dir as above). How am I supposed to keep changes to this file? Thanks, -- Joel Shellman Chief Software Architect The virally-driven B2B marketplace for outsourcing projects http://www.ants.com/90589781