hi
http://www.scriptureunion.org.pl/likeit.php?euxgfqzzwu792mg s_asare Asare Samuel A really grand passion is comparatively rare nowadays. It is the privilege of people who have nothing to do. That is the one use of the idle classes in the country. -- Oscar Wilde (A Woman of No Importance) %
specify class name in environment or system property...?
Making a web application sort of following: http://www.netbeans.org/kb/55/mysql-webapp.html#preparingDB I made a class that connects to the DB ie accessDB and have put two methods inside: public void insert(a,c) inserts record into database public String getContent() gets content I then put in little tester Main method to test the 2 methods thats when i get this error Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial null Please can anyone help me??? Thanks in advance. - Yahoo! Answers - Get better answers from someone who knows. Tryit now.
Re: specify class name in environment or system property...?
yes but why am i getting the error: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial null when i try to run it??? David kerber [EMAIL PROTECTED] wrote: Any of those methods will likely work; I prefer the java.util.Properties object and its various methods, and read the settings from a disk file. For settings that I don't need to change much (or ever), I usually use system.properties, and set them in the jvm startup properties. Asare Samuel wrote: Making a web application sort of following: http://www.netbeans.org/kb/55/mysql-webapp.html#preparingDB I made a class that connects to the DB ie accessDB and have put two methods inside: public void insert(a,c) inserts record into database public String getContent() gets content I then put in little tester Main method to test the 2 methods thats when i get this error Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial null Please can anyone help me??? Thanks in advance. - Yahoo! Answers - Get better answers from someone who knows. Tryit now. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - For ideas on reducing your carbon footprint visit Yahoo! For Good this month.
Re: Appointment system
Thanks to all thoise that replied to my origianl post reagrding this web application. Sebastian Himberger [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, if you want to use Tomcat you can also use EJB by utilizing OpenEJB. Have a look at: http://openejb.apache.org/tomcat.html Please beware: This is not a suggestion in favor or against EJB. Just an info that you don't need to abandon Tomcat if you want to use EJBs :). Best regards, Sebastian Asare Samuel schrieb: Hi all, I am about to code a web applciation(Appointment system). It will require a database, email reminders, and JSP pages. Would you sujest an EJB project or a regular web application as shown in the link below~(set up own connection, sql code etc). I started out inclined towards the ejb route. However this requires the sun application server, and my copy will not start despite it being a new installation. 1) http://www.netbeans.org/kb/55/mysql-webapp.html Thanks - What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz at the Yahoo! Mail Championship. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGh41wVKBy6qoVEvwRAtRiAKCnIyi1tAiGALrYfALKDwV+4ijWDwCdGwXw hn6+KvArfhGHJZxc8qpN7wg= =1xz9 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Answers - Get better answers from someone who knows. Tryit now.
Appointment system
Hi all, I am about to code a web applciation(Appointment system). It will require a database, email reminders, and JSP pages. Would you sujest an EJB project or a regular web application as shown in the link below~(set up own connection, sql code etc). I started out inclined towards the ejb route. However this requires the sun application server, and my copy will not start despite it being a new installation. 1) http://www.netbeans.org/kb/55/mysql-webapp.html Thanks - What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz at the Yahoo! Mail Championship.
Java-Ecommerce
I am trying to create using a small sales tool like that of amazon(ie shopping cart, checkout). 1)Just wondered if there is already a interface for this already. 2)Also how do i go about creating the actual money transactions? Do I use paypall. 3)How do you prevent double purchasing-eg one product in stock-user1 is the first to put it in cart but continues to shop. User2 comes along and puts same product in cart but goes to checkout quicker. I know you could edit the stock level as soon as a product is added to a cart. But really technically the product is not sold until confirmation in checkout. And the user may not even buy. - Yahoo! Answers - Got a question? Someone out there knows the answer. Tryit now.
Re: [OT] RE: Java-Ecommerce
Thanks peter and all those that replied. I think I will take peter's advice and find a tool rather than reinvent the wheel. Thanks Peter Crowther [EMAIL PROTECTED] wrote: [Marked off-topic because this has nothing at all to do with Tomcat] From: Asare Samuel [mailto:[EMAIL PROTECTED] I am trying to create using a small sales tool like that of amazon(ie shopping cart, checkout). There are many of these around already. You will pay less to buy a license to an existing tool than you will in time to create your own - don't reinvent the wheel. 1)Just wondered if there is already a interface for this already. Many. Search for java shopping cart on Google. 2)Also how do i go about creating the actual money transactions? Do I use paypall. Again, there are many options, depending on transaction volume, size, security, what methods of payment you want your users to be able to use... most of the commercial carts integrate with several different payment providers, or search for payment provider on Google. I've used WorldPay most recently; this is not an endorsement, merely a note. 3)How do you prevent double purchasing-eg one product in stock-user1 is the first to put it in cart but continues to shop. User2 comes along and puts same product in cart but goes to checkout quicker. I know you could edit the stock level as soon as a product is added to a cart. But really technically the product is not sold until confirmation in checkout. And the user may not even buy. Sorry, you're trying to have your cake and eat it here. EITHER you're optimistic and let both users put the product in their cart (but allow double-purchasing) OR you're pessimistic and only let one user put the product in their cart (and accept that in low-stock situations you won't get some sales). There's no way of doing both - about the best you can do is keep separate stock level and quantity in carts levels. But this is irrelevant, because you really, really don't want the pain of maintaining your own solution; you want to buy someone else's solution. Honest. It'll save money, time and pain in the long run. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Answers - Got a question? Someone out there knows the answer. Tryit now.
Relam
HI I have just deployed my web application to a Web host. When ever i try to access the protected page I seem to get the message: HTTP Status 403 - Access to the requested resource has been denied It all worked fine in the development environment-netbeans. I constructed the form based realm by defining the role, username and password in the tomcat-users.xml file. Then defining the file that is to be protected in the web.XML file. Have I missed anything out? Please help. - Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail.
Re: Realms
olivier nouguier, Thank you so much, a great help! sam olivier nouguier [EMAIL PROTECTED] wrote: On 11/25/06, Asare Samuel wrote: Thank you for your speedly reply. Let me get this straight are you saying you can't access the login page directly and that the only thing that should be accessed directly is the item (ie page)your are protecting. Yes definitively, when using FORM scheme ! If so, you have hit the nail on the head. I am currently allowing the user to access the login page first, and then the system passes users to the secured page. This is wrong according to your mail??? Yap, all you have to is to point on a secured resource, the user will be redirected (internaly aka forward (tomcat 5)) to the login page! sam olivier nouguier wrote: hi, You are using the FORM authentication scheme! This scheme imply that: 1: a secured resource is accessed. 2: login (error-page) is given 3: login occures 4: secured resource (1) is given (with a GET !) 408 error code may occurs if: a - login page is access directly ( starting at stage 2). b - session expired between stage 2 and 3. To avoid (a) you should set error-page hidden ( eg /WEB-INF/jsp/login.jsp) if tomcat 5 The treat (b) you should have a custom 408 error page HIH On 11/24/06, Asare Samuel wrote: I have put a realm on a page on one of my Html pages using the FORM based realm. 1-sometimes i get this message: message HTTP Status 408 - The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser description The client did not produce a request within the time that the server was prepared to wait (The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser). 2-If I have already loged-in and I login again, i get the following: HTTP Status 404 - /LeeOasis/html/j_security_check type Status report message /LeeOasis/html/j_security_check description The requested resource (/LeeOasis/html/j_security_check) is not available. Please help - Try the all-new Yahoo! Mail . The New Version is radically easier to use The Wall Street Journal -- Souviens-toi qu'au moment de ta naissance tout le monde était dans la joie et toi dans les pleurs. Vis de manière qu'au moment de ta mort, tout le monde soit dans les pleurs et toi dans la joie. Send instant messages to your online friends http://uk.messenger.yahoo.com -- Souviens-toi qu'au moment de ta naissance tout le monde était dans la joie et toi dans les pleurs. Vis de manière qu'au moment de ta mort, tout le monde soit dans les pleurs et toi dans la joie. Send instant messages to your online friends http://uk.messenger.yahoo.com
Realms
I have put a realm on a page on one of my Html pages using the FORM based realm. 1-sometimes i get this message: message HTTP Status 408 - The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser description The client did not produce a request within the time that the server was prepared to wait (The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser). 2-If I have already loged-in and I login again, i get the following: HTTP Status 404 - /LeeOasis/html/j_security_check type Status report message /LeeOasis/html/j_security_check description The requested resource (/LeeOasis/html/j_security_check) is not available. Please help - Try the all-new Yahoo! Mail . The New Version is radically easier to use The Wall Street Journal
Re: Realms
Thank you for your speedly reply. Let me get this straight are you saying you can't access the login page directly and that the only thing that should be accessed directly is the item (ie page)your are protecting. If so, you have hit the nail on the head. I am currently allowing the user to access the login page first, and then the system passes users to the secured page. This is wrong according to your mail??? sam olivier nouguier [EMAIL PROTECTED] wrote: hi, You are using the FORM authentication scheme! This scheme imply that: 1: a secured resource is accessed. 2: login (error-page) is given 3: login occures 4: secured resource (1) is given (with a GET !) 408 error code may occurs if: a - login page is access directly ( starting at stage 2). b - session expired between stage 2 and 3. To avoid (a) you should set error-page hidden ( eg /WEB-INF/jsp/login.jsp) if tomcat 5 The treat (b) you should have a custom 408 error page HIH On 11/24/06, Asare Samuel wrote: I have put a realm on a page on one of my Html pages using the FORM based realm. 1-sometimes i get this message: message HTTP Status 408 - The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser description The client did not produce a request within the time that the server was prepared to wait (The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser). 2-If I have already loged-in and I login again, i get the following: HTTP Status 404 - /LeeOasis/html/j_security_check type Status report message /LeeOasis/html/j_security_check description The requested resource (/LeeOasis/html/j_security_check) is not available. Please help - Try the all-new Yahoo! Mail . The New Version is radically easier to use The Wall Street Journal -- Souviens-toi qu'au moment de ta naissance tout le monde était dans la joie et toi dans les pleurs. Vis de manière qu'au moment de ta mort, tout le monde soit dans les pleurs et toi dans la joie. Send instant messages to your online friends http://uk.messenger.yahoo.com