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: Please help me
You need to put all your classes for your application (including servlets) under the META-INF/classes directory. In your example, this would be located at: /orion/applications/shoppingmall/META-INF/classes jeff. waheed rahman wrote: Hi please help me. How i can setup servlet directory in my new application.Please let me know where i have to save my servlets files if my new application directory is like this ... /orion/applications/shoppingmall/. I will be thankfull in this regards.Expecting your positive reply.Thanks in advance for your prompt reply. Regards waheed __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- Jeff Hubbach Internet Developer New Media Designs, Inc. www.nmd.com
Re: Please help me
Sorry, typo. it's WEB-INF, not META-INF. Jeff. Jeff Hubbach wrote: You need to put all your classes for your application (including servlets) under the META-INF/classes directory. In your example, this would be located at: /orion/applications/shoppingmall/META-INF/classes jeff. waheed rahman wrote: Hi please help me. How i can setup servlet directory in my new application.Please let me know where i have to save my servlets files if my new application directory is like this ... /orion/applications/shoppingmall/. I will be thankfull in this regards.Expecting your positive reply.Thanks in advance for your prompt reply. Regards waheed __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- Jeff Hubbach Internet Developer New Media Designs, Inc. www.nmd.com -- Jeff Hubbach Internet Developer New Media Designs, Inc. www.nmd.com
Please help me
Hi please help me. How i can setup servlet directory in my new application.Please let me know where i have to save my servlets files if my new application directory is like this ... /orion/applications/shoppingmall/. I will be thankfull in this regards.Expecting your positive reply.Thanks in advance for your prompt reply. Regards waheed __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: Please help me
Hi, tio me it seems as the data-sources.xml is incorrect. It should be something like this: data-source class=com.evermind.sql.DriverManagerDataSource name=OracleDS location=jdbc/OracleCoreDS xa-location=jdbc/xa/OracleXADS ejb-location=jdbc/OracleDS connection-driver=oracle.jdbc.driver.OracleDriver username=scott password=tiger url=jdbc:oracle:thin:@localhost:1521:orcl inactivity-timeout=30 / I have following data-source data-source class=oracle.jdbc.pool.OracleDataSource name=Oracle location=jdbc/devDS xa-location=jdbc/xa/devXA ejb-location=jdbc/devDS connection-driver=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:system/manager@station-one:1521:application username=system password=manager inactivity-timeout=30 schema=database-schemas/oracle.xml / _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Please help me
Hi Everybody I am having problem in getting orion connected to Oracle 8i on Solaris 8 . I cannot execute the addressbook example due to that though i have successfully tested the Orion-Primer which is without EJBs I keep getting SQL IOException . Network Adapter Error When it is deploying the application.jar file I have following configuration 1) Solaris 8 2) Oracle 8i 3) j2sdk1.3.1 as i want to implement SSL 4) j2sdkee1.3.1 5) Orion1.4.0 I am using CMP for Entity Bean I have following data-source data-source class=oracle.jdbc.pool.OracleDataSource name=Oracle location=jdbc/devDS xa-location=jdbc/xa/devXA ejb-location=jdbc/devDS connection-driver=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:system/manager@station-one:1521:application username=system password=manager inactivity-timeout=30 schema=database-schemas/oracle.xml / I have gone through all through the mailing list but no success. Can you please help me with this. Thanks Mahesh __ 123India.com - India's Premier Portal Get your Free Email Account at http://www.123india.com
Re: Please help me
data-source Change the following line the read the evermind class copy and paste the line from the Hypersonic datasource class ... class=REPLACE THIS TO READ the evermind class oracle.jdbc.pool.OracleDataSource name=Oracle location=jdbc/devDS xa-location=jdbc/xa/devXA ejb-location=jdbc/devDS connection-driver=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:system/manager@station-one:1521:application username=system password=manager inactivity-timeout=30 schema=database-schemas/oracle.xml / --- [EMAIL PROTECTED] wrote: Hi Everybody I am having problem in getting orion connected to Oracle 8i on Solaris 8 . I cannot execute the addressbook example due to that though i have successfully tested the Orion-Primer which is without EJBs I keep getting SQL IOException . Network Adapter Error When it is deploying the application.jar file I have following configuration 1) Solaris 8 2) Oracle 8i 3) j2sdk1.3.1 as i want to implement SSL 4) j2sdkee1.3.1 5) Orion1.4.0 I am using CMP for Entity Bean I have following data-source data-source class=oracle.jdbc.pool.OracleDataSource name=Oracle location=jdbc/devDS xa-location=jdbc/xa/devXA ejb-location=jdbc/devDS connection-driver=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:system/manager@station-one:1521:application username=system password=manager inactivity-timeout=30 schema=database-schemas/oracle.xml / I have gone through all through the mailing list but no success. Can you please help me with this. Thanks Mahesh __ 123India.com - India's Premier Portal Get your Free Email Account at http://www.123india.com = __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
Please help me with SSL
Hello Everybody I am trying to implement the very 1st step in the guide howto for SSL on the orionserver.com web site. I am encountering follwoing error when i type keytool -genkey -keyalg RSA -keystore keystore -storepass 123456 -validity 360 I type this command from the home directory for Orion. I am getting follwoing error keytool error: KeyPairGenerator not available Please can u tell me where am i going wrong . I need to impelment this as soon as possible. And i am stuck in very 1st step of the implementation from past 2 days Thanking u all in advance __ 123India.com - India's Premier Portal Get your Free Email Account at http://www.123india.com
RE: Please help me with SSL
Your jdk should come with the SunRsaSign version 1.0 provider, (check your java.security file). This should allow you to create RSA keys, unless you modified the file...I have downloaded the ABA Provider (JCE implementation) for encryption, and I can generate RSA keys with no problems. Claudio -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Friday, June 01, 2001 4:45 PM To: Orion-Interest Subject: Please help me with SSL Hello Everybody I am trying to implement the very 1st step in the guide howto for SSL on the orionserver.com web site. I am encountering follwoing error when i type keytool -genkey -keyalg RSA -keystore keystore -storepass 123456 -validity 360 I type this command from the home directory for Orion. I am getting follwoing error keytool error: KeyPairGenerator not available Please can u tell me where am i going wrong . I need to impelment this as soon as possible. And i am stuck in very 1st step of the implementation from past 2 days Thanking u all in advance __ 123India.com - India's Premier Portal Get your Free Email Account at http://www.123india.com
Re: Please help me figure out this....
Yes, you should not use return (name=="abc" passwd=="123 "); but return (name.equals("abc") passwd.equals("123")); This will probably fix your problem. Johan - Original Message - From: "Roland Dong" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Sunday, April 01, 2001 11:42 AM Subject: Please help me figure out this I have login.html calling a servlet (loginHander) which handles authorization. If user is validated, the servlet will redirect the user to Welcome.jsp My problem is I could not pass the value of user and password from login.html to loginHandler. I set the boolean method loggedIn so that when user name is abc and password is 123 the user should log in. However, this somehow can not be accomplished. Even I entered abc as name and 123 as password, I was bounced back to login.html page. I am using Orion 1.47. Please help! RB //Here is loginHander.java import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class LoginHandler extends HttpServlet { public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); // Get the user's name and password String name = req.getParameter("name"); String passwd = req.getParameter("passwd"); // Check the name and password for validity if (!loggedIn(name, passwd)) { out.println("HTMLHEADTITLEAccess Denied/TITLE/HEAD"); out.println("BODYYour login and password are invalid.BR"); out.println("You may want to A HREF=\"/jsp/testing/login.html\"try again/A"); out.println("/BODY/HTML"); } else { // Valid login. Make a note in the session object. HttpSession session = req.getSession(true); session.setAttribute("logon.isDone", name); // just a marker object // Try redirecting the client to the page he first tried to access try { res.sendRedirect("/jsp/testing/Welcome.jsp"); return; } catch (Exception ignored) { } // Couldn't redirect to the target. Redirect to the site's home page. res.sendRedirect(req.getScheme() + "://" + req.getServerName() + ":" + req.getServerPort()); } } protected boolean loggedIn(String name, String passwd) { return (name=="abc" passwd=="123 "); } } // //Here is the login.html HTML TITLELogin/TITLE BODY FORM ACTION=/servlet/LoginHandler METHOD=POST CENTER TABLE BORDER=0 TRTD COLSPAN=2 P ALIGN=CENTER Welcome! Please enter your NnnnNamebr and Password to log in. /TD/TR TRTD P ALIGN=RIGHTBName:/B /TD TD PINPUT TYPE=TEXT NAME="name" VLAUE="" SIZE=15 /TD/TR TRTD P ALIGN=RIGHTBPassword:/B /TD TD PINPUT TYPE=PASSWORD NAME="passwd" VALUE="" SIZE=15 /TD/TR TRTD COLSPAN=2 CENTER INPUT TYPE=SUBMIT VALUE=" OK " /CENTER /TD/TR /TABLE /BODY/HTML //* //Here is the Welcom.jsp % if ( session.getValue("userName") == null) { % B hello...it is a nullB % // here we can give some error message % % } else {% !--- so this is the authorized user let's display the welcome message --- HTML HEAD B Welcome %= session.getValue("userName")% /B /HEAD BODY !--- all the other stuff -- /BODY / HTML % } %
RE: Please help me figure out this....
You should use name.equals("123") instead of use name=="abc" Please make sure that you understand the difference beetween name.equals("123") and name=="abc" -Original Message- From: Roland Dong [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 01, 2001 4:43 PM To: Orion-Interest Subject: Please help me figure out this I have login.html calling a servlet (loginHander) which handles authorization. If user is validated, the servlet will redirect the user to Welcome.jsp My problem is I could not pass the value of user and password from login.html to loginHandler. I set the boolean method loggedIn so that when user name is abc and password is 123 the user should log in. However, this somehow can not be accomplished. Even I entered abc as name and 123 as password, I was bounced back to login.html page. I am using Orion 1.47. Please help! RB //Here is loginHander.java import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class LoginHandler extends HttpServlet { public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); // Get the user's name and password String name = req.getParameter("name"); String passwd = req.getParameter("passwd"); // Check the name and password for validity if (!loggedIn(name, passwd)) { out.println("HTMLHEADTITLEAccess Denied/TITLE/HEAD"); out.println("BODYYour login and password are invalid.BR"); out.println("You may want to A HREF=\"/jsp/testing/login.html\"try again/A"); out.println("/BODY/HTML"); } else { // Valid login. Make a note in the session object. HttpSession session = req.getSession(true); session.setAttribute("logon.isDone", name); // just a marker object // Try redirecting the client to the page he first tried to access try { res.sendRedirect("/jsp/testing/Welcome.jsp"); return; } catch (Exception ignored) { } // Couldn't redirect to the target. Redirect to the site's home page. res.sendRedirect(req.getScheme() + "://" + req.getServerName() + ":" + req.getServerPort()); } } protected boolean loggedIn(String name, String passwd) { return (name=="abc" passwd=="123 "); } } // //Here is the login.html HTML TITLELogin/TITLE BODY FORM ACTION=/servlet/LoginHandler METHOD=POST CENTER TABLE BORDER=0 TRTD COLSPAN=2 P ALIGN=CENTER Welcome! Please enter your NnnnNamebr and Password to log in. /TD/TR TRTD P ALIGN=RIGHTBName:/B /TD TD PINPUT TYPE=TEXT NAME="name" VLAUE="" SIZE=15 /TD/TR TRTD P ALIGN=RIGHTBPassword:/B /TD TD PINPUT TYPE=PASSWORD NAME="passwd" VALUE="" SIZE=15 /TD/TR TRTD COLSPAN=2 CENTER INPUT TYPE=SUBMIT VALUE=" OK " /CENTER /TD/TR /TABLE /BODY/HTML //* //Here is the Welcom.jsp % if ( session.getValue("userName") == null) { % B hello...it is a nullB % // here we can give some error message % % } else {% !--- so this is the authorized user let's display the welcome message --- HTML HEAD B Welcome %= session.getValue("userName")% /B /HEAD BODY !--- all the other stuff -- /BODY / HTML % } %
RE: Please help me figure out this....
Thanks for pointing that out -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Meo Van Le Sent: Sunday, April 01, 2001 1:50 AM To: Orion-Interest Subject: RE: Please help me figure out this You should use name.equals("123") instead of use name=="abc" Please make sure that you understand the difference beetween name.equals("123") and name=="abc" -Original Message- From: Roland Dong [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 01, 2001 4:43 PM To: Orion-Interest Subject: Please help me figure out this I have login.html calling a servlet (loginHander) which handles authorization. If user is validated, the servlet will redirect the user to Welcome.jsp My problem is I could not pass the value of user and password from login.html to loginHandler. I set the boolean method loggedIn so that when user name is abc and password is 123 the user should log in. However, this somehow can not be accomplished. Even I entered abc as name and 123 as password, I was bounced back to login.html page. I am using Orion 1.47. Please help! RB //Here is loginHander.java import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class LoginHandler extends HttpServlet { public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); // Get the user's name and password String name = req.getParameter("name"); String passwd = req.getParameter("passwd"); // Check the name and password for validity if (!loggedIn(name, passwd)) { out.println("HTMLHEADTITLEAccess Denied/TITLE/HEAD"); out.println("BODYYour login and password are invalid.BR"); out.println("You may want to A HREF=\"/jsp/testing/login.html\"try again/A"); out.println("/BODY/HTML"); } else { // Valid login. Make a note in the session object. HttpSession session = req.getSession(true); session.setAttribute("logon.isDone", name); // just a marker object // Try redirecting the client to the page he first tried to access try { res.sendRedirect("/jsp/testing/Welcome.jsp"); return; } catch (Exception ignored) { } // Couldn't redirect to the target. Redirect to the site's home page. res.sendRedirect(req.getScheme() + "://" + req.getServerName() + ":" + req.getServerPort()); } } protected boolean loggedIn(String name, String passwd) { return (name=="abc" passwd=="123 "); } } // //Here is the login.html HTML TITLELogin/TITLE BODY FORM ACTION=/servlet/LoginHandler METHOD=POST CENTER TABLE BORDER=0 TRTD COLSPAN=2 P ALIGN=CENTER Welcome! Please enter your NnnnNamebr and Password to log in. /TD/TR TRTD P ALIGN=RIGHTBName:/B /TD TD PINPUT TYPE=TEXT NAME="name" VLAUE="" SIZE=15 /TD/TR TRTD P ALIGN=RIGHTBPassword:/B /TD TD PINPUT TYPE=PASSWORD NAME="passwd" VALUE="" SIZE=15 /TD/TR TRTD COLSPAN=2 CENTER INPUT TYPE=SUBMIT VALUE=" OK " /CENTER /TD/TR /TABLE /BODY/HTML //* //Here is the Welcom.jsp % if ( session.getValue("userName") == null) { % B hello...it is a nullB % // here we can give some error message % % } else {% !--- so this is the authorized user let's display the welcome message --- HTML HEAD B Welcome %= session.getValue("userName")% /B /HEAD BODY !--- all the other stuff -- /BODY / HTML % } %
Please help me figure out this....
I have login.html calling a servlet (loginHander) which handles authorization. If user is validated, the servlet will redirect the user to Welcome.jsp My problem is I could not pass the value of user and password from login.html to loginHandler. I set the boolean method loggedIn so that when user name is abc and password is 123 the user should log in. However, this somehow can not be accomplished. Even I entered abc as name and 123 as password, I was bounced back to login.html page. I am using Orion 1.47. Please help! RB //Here is loginHander.java import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class LoginHandler extends HttpServlet { public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); // Get the user's name and password String name = req.getParameter("name"); String passwd = req.getParameter("passwd"); // Check the name and password for validity if (!loggedIn(name, passwd)) { out.println("HTMLHEADTITLEAccess Denied/TITLE/HEAD"); out.println("BODYYour login and password are invalid.BR"); out.println("You may want to A HREF=\"/jsp/testing/login.html\"try again/A"); out.println("/BODY/HTML"); } else { // Valid login. Make a note in the session object. HttpSession session = req.getSession(true); session.setAttribute("logon.isDone", name); // just a marker object // Try redirecting the client to the page he first tried to access try { res.sendRedirect("/jsp/testing/Welcome.jsp"); return; } catch (Exception ignored) { } // Couldn't redirect to the target. Redirect to the site's home page. res.sendRedirect(req.getScheme() + "://" + req.getServerName() + ":" + req.getServerPort()); } } protected boolean loggedIn(String name, String passwd) { return (name=="abc" passwd=="123 "); } } // //Here is the login.html HTML TITLELogin/TITLE BODY FORM ACTION=/servlet/LoginHandler METHOD=POST CENTER TABLE BORDER=0 TRTD COLSPAN=2 P ALIGN=CENTER Welcome! Please enter your NnnnNamebr and Password to log in. /TD/TR TRTD P ALIGN=RIGHTBName:/B /TD TD PINPUT TYPE=TEXT NAME="name" VLAUE="" SIZE=15 /TD/TR TRTD P ALIGN=RIGHTBPassword:/B /TD TD PINPUT TYPE=PASSWORD NAME="passwd" VALUE="" SIZE=15 /TD/TR TRTD COLSPAN=2 CENTER INPUT TYPE=SUBMIT VALUE=" OK " /CENTER /TD/TR /TABLE /BODY/HTML //* //Here is the Welcom.jsp % if ( session.getValue("userName") == null) { % B hello...it is a nullB % // here we can give some error message % % } else {% !--- so this is the authorized user let's display the welcome message --- HTML HEAD B Welcome %= session.getValue("userName")% /B /HEAD BODY !--- all the other stuff -- /BODY / HTML % } %
Please help me....
Hi all, I need a clarification regarding orion, my application is an ecommerce websitewhich is build fully with JSP . When i tried to send form fields with form method='post' action='second.jsp' from first.jsp.second.jsp is not receiveing any fields and giving me a blank page with "Done" in the status bar. The total number of line in the first.jsp is more than 3500 linesand in second.jsp total number of line is more than 2500 lines. Does the number lines will do with this. When method='get' same jsp file works good. This is only happens in the site (that is in my remote orion server)When i tried in the local machine its working good what i can do for thisany suggestion Just of this problem i want to switch my server to JRun Is is it right...What you will do when you are in the same situation.Please let me know how i can solve this problem. Does anythird party API available for this post method. If my question was not clear please let me know i will send you once again clearly. Please help me in this regards..I am expecting your reply. Advance thankings for your valuable reply. Best regardswaheed
SV: Please help me....
Title: SV: Please help me You've got viruses. Please don't send me any more private mails on this subject. Such mails should be directed to the Orion List, JSP List or [EMAIL PROTECTED] WR -Ursprungligt meddelande- Från: waheed_rahuman [mailto:[EMAIL PROTECTED]] Skickat: den 28 mars 2001 02:21 Till: Orion-Interest Ämne: Please help me Hi all, I need a clarification regarding orion, my application is an ecommerce website which is build fully with JSP . When i tried to send form fields with form method='post' action='second.jsp' from first.jsp. second.jsp is not receiveing any fields and giving me a blank page with Done in the status bar. The total number of line in the first.jsp is more than 3500 lines and in second.jsp total number of line is more than 2500 lines. Does the number lines will do with this. When method='get' same jsp file works good. This is only happens in the site (that is in my remote orion server) When i tried in the local machine its working good what i can do for this any suggestion Just of this problem i want to switch my server to JRun Is is it right...What you will do when you are in the same situation. Please let me know how i can solve this problem. Does anythird party API available for this post method. If my question was not clear please let me know i will send you once again clearly. Please help me in this regards..I am expecting your reply. Advance thankings for your valuable reply. Best regards waheed
Fw: Please help me, How to get Orion's Environment Such as HostName, Port...???
- Original Message - From: urey To: Larry Velez Sent: Sunday, March 18, 2001 5:40 PM Subject: Re: Please help me, How to get Orion's Environment Such as HostName, Port...??? Hi Larry, It's sorry for my mistake. I want to write some Ejbs, and running them on Orion. the one of the Ejb for to store all the config info, and I have two methods for to load and reload all the config files( *.xml) in it, The config files( *.xml) all in my ear package. I don't know how to access my config files flexible in my Ejb. hope this help you to know my question Thanks you yours Urey - Original Message - From: Larry Velez To: 'urey' Sent: Saturday, March 17, 2001 12:38 AM Subject: RE: Please help me, How to get Orion's Environment Such as HostName, Port...??? I am not sure I understand your question but it looks like you are having trouble with your classpath. How are you launching Orion? What OS are you running? -Larry -Original Message-From: urey [mailto:[EMAIL PROTECTED]]Sent: Friday, March 16, 2001 4:48 AMTo: Larry VelezCc: Larry VelezSubject: Re: Please help me, How to get Orion's Environment Such as HostName, Port...??? Hello Larry, Thanks for your hint. I reread the web-site.xml.html just now. Really, I can getsome Orion server's environment transit itself config/ *.xml in my application programme. But, I think there are some trouble with me. Must Icodingsome parse for the *.xml?? If not, How will I do in my application programme?? and I can't get Orion's running really PATH from its config/*.xml. in its config/*.xmlonly have relative PATH. How could I do? Could you Please give me some helpful hint again, Thanks you again yoursUrey - Original Message - From: Larry Velez To: Urey Sent: Friday, March 16, 2001 3:46 PM Subject: RE: Please help me, How to get Orion's Environment Such as HostName, Port...??? These settings can be found in the web-site.xml file. You can read up on the details here: http://www.orionserver.com/docs/web-site.xml.html Larry Original Message-From: Urey.u [mailto:[EMAIL PROTECTED]]Sent: Thursday, March 15, 2001 9:23 PMTo: Orion-InterestCc: Urey; Orion-InterestSubject: Please help me, How to get Orion's Environment Such as HostName, Port...??? Dear All, When Orion Server was started. Could you please tell me,how to get Orion's environment Such as HostName,Port,Running Pathand so on in my application class file , not applet, servlet or JSP file?. Regards yoursUrey
Re: Please help me, How to get Orion's Environment Such as HostName, Port...???
Hi, You can try http://127.0.0.1 in your browser after starting orion as java -jar orion.jar If you have some other web server please shutdown that server and try again restarting the orion regards waheed - Original Message - From: Urey.u To: Orion-Interest Cc: Urey ; Orion-Interest Sent: Friday, March 16, 2001 6:23 AM Subject: Please help me, How to get Orion's Environment Such as HostName, Port...??? Dear All, When Orion Server was started. Could you please tell me,how to get Orion's environment Such as HostName,Port,Running Pathand so on in my application class file , not applet, servlet or JSP file?. Regards yoursUrey
Please help me, How to get Orion's Environment Such as HostName, Port...???
Dear All, When Orion Server was started. Could you please tell me,how to get Orion's environment Such as HostName,Port,Running Pathand so on in my application class file , not applet, servlet or JSP file?. Regards yoursUrey
Please help me, How to get Orion's Environment Such as HostName, Port...???
Dear All, When Orion Server was started. Could you please tell me,how to get Orion's environment Such as HostName,Port,Running Pathand so on in my application class file , not applet, servlet or JSP file?. Regards yoursUrey
Please Help Me, How to congfig Postgres DataSours on Orion?
Dear, I used Orion 1.3.8, Postgres 6.5,andits JDBC Driver jdbc6.5-1.2.jar. I'm config the Orion DataSours: data-source name="Postgres" class="postgresql.Driver" location="jdbc/javatest" pooled-location="jdbc/javatest" xa-location="jdbc/xa/javatest" ejb-location="jdbc/javatest" url="jdbc:postgresql://192.168.0.88/javatest" connection-driver="postgresql.Driver" username="postgres" password="" schema="./database-schemas/postgresql.xml"/ And copy the jdbc6.5-1.2.jar to Orion\Lib. But When I run Orion it's said: "Error initializing server: Unknown DataSource type: postgresql.Driver" I don't know how to config Postgres DataSours, and how to write the line Class="" and connection=""? and where can i get more info. of this? help me Please. Thank you! yoursUrey - Original Message - From: "Kays, Jeff" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Thursday, December 21, 2000 8:22 AM Subject: RE: Database behind entity beans? We're using Postgreslql with Linux. Seems to be working great, ask again in a couple of months when we're finished with our prototype. j -Original Message- From: Hegyi Tibor [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, December 20, 2000 4:20 AM To: Orion-Interest Subject: Database behind entity beans?Hi all, I just wonder what options we have for selecting the proper RDBMS/OODBMS to serve as persistent storage for our BMPs/CMPs or just for being accessed via JDBC. Oracle is the obvious choice, but might be rather expensive. I would like to hear some opinion on the databases you're using with Orion.Thanks, Tibor
Re: Please Help Me, How to congfig Postgres DataSours on Orion?
There is a problem with the jdbc postgresql documentation. Change your class name from postgresql.Driver to org.postgresql.Driver regards santosh s :) urey wrote: Dear, I used Orion 1.3.8, Postgres 6.5,and its JDBC Driver jdbc6.5-1.2.jar. I'm config the Orion DataSours: ß ålt;data-source ß ß name="Postgres" ß ß class="postgresql.Driver" ß ß location="jdbc/javatest" ß ß pooled-location="jdbc/javatest" ß ß xa-location="jdbc/xa/javatest" ß ß ejb-location="jdbc/javatest" ß ß url="jdbc:postgresql://192.168.0.88/javatest" ß ß connection-driver="postgresql.Driver" ß ß username="postgres" ß ß password="" ß ß schema="./database-schemas/postgresql.xml" /û/font And copy the jdbc6.5-1.2.jar to Orion\Lib. But When I run Orion it's said: ß"Error initializing server: Unknown DataSource type: postgresql.Driver" û/div I don't know how to config Postgres DataSours, and how to write the lineßClass="" and connection=""? and where can i get more info. of this?ß help me Please. Thank you! yoursUrey ß û/font û/div û/div - Original Message - From: "Kays, Jeff" mailto:[EMAIL PROTECTED][EMAIL PROTECTED] mailto:[EMAIL PROTECTED] To: "Orion-Interest" mailto:[EMAIL PROTECTED][EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2000 8:22 AM Subject: RE: Database behind entity beans? We're using Postgreslql with Linux. Seems to be working great, ask again in a couple of months when we're finished with our prototype. ßj -Original Message- From: Hegyi Tibor [ mailto:SMTP:[EMAIL PROTECTED]SMTP:[EMAIL PROTECTED] mailto:SMTP:[EMAIL PROTECTED]] Sent: Wednesday, December 20, 2000 4:20 AM To: Orion-Interest Subject: Database behind entity beans? Hi all, I just wonder what options we have for selecting the proper RDBMS/OODBMS to serve as persistent storage for our BMPs/CMPs or just for being accessed via JDBC. Oracle is the obvious choice, but might be rather expensive. I would like to hear some opinion on the databases you're using with Orion. Thanks, Tibor ß
RE: Please Help Me, How to congfig Postgres DataSours on Orion?
Easy, the driver class is org.postgresql.Driver - fix it and you're away. Mike -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of ureySent: Wednesday, November 22, 2000 7:50 PMTo: Orion-InterestCc: Orion-InterestSubject: Please Help Me, How to congfig Postgres DataSours on Orion? Dear, I used Orion 1.3.8, Postgres 6.5,andits JDBC Driver jdbc6.5-1.2.jar. I'm config the Orion DataSours: data-source name="Postgres" class="postgresql.Driver" location="jdbc/javatest" pooled-location="jdbc/javatest" xa-location="jdbc/xa/javatest" ejb-location="jdbc/javatest" url="jdbc:postgresql://192.168.0.88/javatest" connection-driver="postgresql.Driver" username="postgres" password="" schema="./database-schemas/postgresql.xml"/ And copy the jdbc6.5-1.2.jar to Orion\Lib. But When I run Orion it's said: "Error initializing server: Unknown DataSource type: postgresql.Driver" I don't know how to config Postgres DataSours, and how to write the line Class="" and connection=""? and where can i get more info. of this? help me Please. Thank you! yoursUrey - Original Message - From: "Kays, Jeff" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Thursday, December 21, 2000 8:22 AM Subject: RE: Database behind entity beans? We're using Postgreslql with Linux. Seems to be working great, ask again in a couple of months when we're finished with our prototype. j -Original Message- From: Hegyi Tibor [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, December 20, 2000 4:20 AM To: Orion-Interest Subject: Database behind entity beans?Hi all, I just wonder what options we have for selecting the proper RDBMS/OODBMS to serve as persistent storage for our BMPs/CMPs or just for being accessed via JDBC. Oracle is the obvious choice, but might be rather expensive. I would like to hear some opinion on the databases you're using with Orion.Thanks, Tibor
Re: Please Help Me, How to congfig Postgres DataSours on Orion?
Not quite right, the class line is wrong - this should be the driver manager class, not the driver class i.e. class="com.evermind.sql.DriverManagerDataSource" Whether the driver is postgresql.Driver or org.postgresql.Driver depends on the driver version. Mike Cannon-Brookes wrote: Easy, the driver class is org.postgresql.Driver - fix it and you're away.Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of urey Sent: Wednesday, November 22, 2000 7:50 PM To: Orion-Interest Cc: Orion-Interest Subject: Please Help Me, How to congfig Postgres DataSours on Orion? Dear, I used Orion 1.3.8, Postgres 6.5,and its JDBC Driver jdbc6.5-1.2.jar.I'm config the Orion DataSours: data-source name="Postgres" class="postgresql.Driver" location="jdbc/javatest" pooled-location="jdbc/javatest" xa-location="jdbc/xa/javatest" ejb-location="jdbc/javatest" url="jdbc:postgresql://192.168.0.88/javatest" connection-driver="postgresql.Driver" username="postgres" password="" schema="./database-schemas/postgresql.xml" />And copy the jdbc6.5-1.2.jar to Orion\Lib.But When I run Orion it's said: "Error initializing server: Unknown DataSource type: postgresql.Driver" I don't know how to config Postgres DataSours, and how to write the line Class="" and connection=""? and where can i get more info. of this?help me Please.Thank you!yoursUrey - Original Message -From: "Kays, Jeff" [EMAIL PROTECTED]>To: "Orion-Interest" [EMAIL PROTECTED]>Sent: Thursday, December 21, 2000 8:22 AMSubject: RE: Database behind entity beans? > We're using Postgreslql with Linux. Seems to be working great, ask again in > a > couple of months when we're finished with our prototype. > > j > > > -Original Message- > > From: Hegyi Tibor [SMTP:[EMAIL PROTECTED]] > > Sent: Wednesday, December 20, 2000 4:20 AM > > To: Orion-Interest > > Subject: Database behind entity beans? > > > > Hi all, > > > > I just wonder what options we have for selecting the proper RDBMS/OODBMS > > to serve as persistent storage for our BMPs/CMPs or just for being > > accessed via JDBC. Oracle is the obvious choice, but might be rather > > expensive. > > > > I would like to hear some opinion on the databases you're using with > > Orion. > > > > Thanks, > > > > Tibor > > > > > > > -- David Smith Software Development Manager e-Net Software Ltd [EMAIL PROTECTED]
FW: Please help me!! JMS and distributed EJBs
Hi I've already posted this few days ago. Please help me! Thanks, Esteban -Original Message- From: Lopez Esteban [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, December 12, 2000 12:52 PM To: Orion-Interest Subject: JMS and distributed EJBs Hi! I need some help about JMS configuration. My problem is: I have 2 orion servers, orionA and orionB, I have configured my servers like this: orionA (rmi.xml): server host="orionB" username="admin" password="admin" / orionB (rmi.xml): server host="orionA" username="admin" password="admin" / And I deployed an aplications which have 2 beans Bean1: session bean Bean2: MessageDriven In my orion-application-jar.xml i put: orionA (orion-application-jar.xml): ejb-module remote="false" path="Bean1" / ejb-module remote="true" path="Bean2" / orionB (orion-application-jar.xml): ejb-module remote="true" path="Bean1" / ejb-module remote="false" path="Bean2" / I use the orionB in my jndi.property in my client to use Bean1 and this work fine, but must Bean1 use JMS to call Bean2 and Bean2 recieves nothing. If I deploy the 2 beans in 1 orion, this work correctly, but in 2 orions the JMS does not work correctly. Any ideas? Thanks, Esteban
RE: please help me, from yoursUrey
JavaMail API from Sun is all you need. It contains both smtp and pop3 implementation and all documents on how to use them. Kevin -Original Message- From: ureyurey [mailto:[EMAIL PROTECTED]] Sent: Monday, December 11, 2000 7:12 PM To: Orion-Interest Cc: [EMAIL PROTECTED] Subject: please help me, from yoursUrey Dear Sir. Could you please tell me how to use JavaMail API to send and receive mails on Orion? Did the Orion provide the service of the SMTP,POP3...£¿ What's required for us to use JavaMail API to send and receive mails on Orion? and do I need to install a mail server to provide the service of SMTP,POP3 when i use JavaMail API to send and receive mails on Orion£¿ Thanks a lot, yoursUrey - Original Message - From: "Daniel C. DiCesare" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Monday, December 11, 2000 4:52 PM Subject: Re: Anyone help me of Javamail ? I maybe able to help. What is the question? -Danno - Original Message - From: "ureyurey" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, December 11, 2000 5:43 AM Subject: Anyone help me of Javamail ? hi, i'm trying to send recieve mails using javamail api ejb. pls..., anyone help me out. write in details... thanks yoursUrey __ ==ETH;Acir c;Agrave;Euml;Atilde;acirc;¡¤Ntilde;micro;ccedil; ¡ÁOacute;Oacute;Ecirc;Iuml;auml; http://mail.sina.com.cn ETH;Acirc;Agrave;Euml;Iacute;AElig;sup3;ouml;¡ãAcirc;Ocirc;Euml; para;Igrave;ETH;Aring;Iuml;cent;Ecirc;Ouml;raquo;¨²micro;atilde;s up2;yen;¡¤thorn;Icirc;ntilde; http://sms.sina.com.cn/ __ ==ÐÂÀËÃâ·Ñµç ×ÓÓÊÏä http://mail.sina.com.cn ÐÂÀËÍƳö°ÂÔ˶ÌÐÅÏ¢ÊÖ»úµã²¥·þÎñ http://sms.sina.com.cn/
please help me, from yoursUrey
Dear Sir. Could you please tell me how to use JavaMail API to send and receive mails on Orion? Did the Orion provide the service of the SMTP,POP3...£¿ What's required for us to use JavaMail API to send and receive mails on Orion? and do I need to install a mail server to provide the service of SMTP,POP3 when i use JavaMail API to send and receive mails on Orion£¿ Thanks a lot, yoursUrey - Original Message - From: "Daniel C. DiCesare" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Monday, December 11, 2000 4:52 PM Subject: Re: Anyone help me of Javamail ? I maybe able to help. What is the question? -Danno - Original Message - From: "ureyurey" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, December 11, 2000 5:43 AM Subject: Anyone help me of Javamail ? hi, i'm trying to send recieve mails using javamail api ejb. pls..., anyone help me out. write in details... thanks yoursUrey __ ==ETH;Acirc;Agrave;Euml;Atilde;acirc;¡¤Ntilde;micro;ccedil; ¡ÁOacute;Oacute;Ecirc;Iuml;auml; http://mail.sina.com.cn ETH;Acirc;Agrave;Euml;Iacute;AElig;sup3;ouml;¡ãAcirc;Ocirc;Euml;para;Igrave;ETH;Aring;Iuml;cent;Ecirc;Ouml;raquo;¨²micro;atilde;sup2;yen;¡¤thorn;Icirc;ntilde; http://sms.sina.com.cn/ __ ==ÐÂÀËÃâ·Ñµç×ÓÓÊÏä http://mail.sina.com.cn ÐÂÀËÍƳö°ÂÔ˶ÌÐÅÏ¢ÊÖ»úµã²¥·þÎñ http://sms.sina.com.cn/
Re: please help me, from yoursUrey
Dear Sir. Could you please tell me how to use JavaMail API to send and receive mails on Orion? Did the Orion provide the service of the SMTP,POP3...£¿ What's required for us to use JavaMail API to send and receive mails on Orion? and do I need to install a mail server to provide the service of SMTP,POP3 when i use JavaMail API to send and receive mails on Orion£¿ This has nothing to do with Orion, other than how to place the mail.jar and archive.jar files, which has been addressed on this list before, and which is archived for your reference. See the mailing list archives. As for using JavaMail, I recommend that you start with the API JavaDocs and the sample code provided with the JavaMail package, which you can download from Sun.
please help me, from yoursUrey
Dear Sir. Could you tell me how to use JavaMail to send or recv mails on Orion? What needs to use JavaMail to send and recv mails on Orion, did the Orion provide the service of the SMTP,POP3...£¿ and did i need to in stall a mail server to provide the service of SMTP,POP3 when i use JavaMail API to send or recv mails on Orion£¿ Thanks a lot, yoursUrey __ ==ÐÂÀËÃâ·Ñµç×ÓÓÊÏä http://mail.sina.com.cn ÐÂÀËÍƳö°ÂÔ˶ÌÐÅÏ¢ÊÖ»úµã²¥·þÎñ http://sms.sina.com.cn/
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.
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 *
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