Is jsp designed for use by large websites
Hello all, I am a beginner and I am considering whether to use jsp or php to develop a web application. I prefer jsp since i am familiar with java. But i found that many web hosting companies either do not support jsp or only support jsp in their expensive dedicated server plans. In contrast, php is well-supported by almost all web hosting companies. Is jsp designed for use by large websites that require dedicated servers? Do you think php is a better choice for small and medium sized websites that don't require dedicated servers? Thank you. Jack ___ YM - 離線訊息 就算你沒有上網,你的朋友仍可以留下訊息給你,當你上網時就能立即看到,任何說話都冇走失。 http://messenger.yahoo.com.hk - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is jsp designed for use by large websites
Hello! If you want to develop a small or medium webapplication and you or your programmers is familiar with PHP I think it is no doubt use PHP. Two years ago when I was in online ecommerce industry I used only PHP. These days I was not familiar with Java. Now I am a Java Developer. Nowadays I develop medium and large enterprise applications mostly. And anyway I think I will not use JSP for developing a small application. If you don't have a dedicated server It is hardly to find hosting with JSP supports. 99,99% hosting companies supports PHP by default. Hello all, I am a beginner and I am considering whether to use jsp or php to develop a web application. I prefer jsp since i am familiar with java. But i found that many web hosting companies either do not support jsp or only support jsp in their expensive dedicated server plans. In contrast, php is well-supported by almost all web hosting companies. Is jsp designed for use by large websites that require dedicated servers? Do you think php is a better choice for small and medium sized websites that don't require dedicated servers? Thank you. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Realms
On 11/25/06, Asare Samuel [EMAIL PROTECTED] 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 [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 -- 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.
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
No MBeans for any jsp in Tomcat 6
Using Tomcat 5.5.9 and jconsole I like viewing statistics for servlets and jsp pages using MBeans in Catalina/Servlets node in MBeans tree of jconsole. These MBeans includes useful statistics like request count, error count, processing time, and load time of any jsp or servlet pages. Why in Tomcat 6.0.1 I can't see MBeans for jsp pages?
RE: Tomcat Exception
Please verify the existence of the following required jars $CATALINA_HOME/bin/bootstrap.jar - Contains the main() method that is used to initialize the Tomcat 5 server, and the class loader implementation classes it depends on. $JAVA_HOME/lib/tools.jar - Contains the javac compiler used to convert JSP pages into servlet classes. $CATALINA_HOME/bin/commons-logging-api.jar - Jakarta commons logging API. $CATALINA_HOME/bin/commons-daemon.jar - Jakarta commons daemon API. jmx.jar - The JMX 1.2 implementation do you start Tomcat via either of the startup scripts? $CATALINA_HOME/bin/catalina.sh or %CATALINA_HOME%\bin\catalina.bat ? Martin Gainty __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. (mobile) 001-603-438-5053 I recently deployed a application and on startup Tomcat throws the exception below. I have posted this in java forum thinking it is development is but I was told it looks like a Tomcat issue. Any assistance with this will be greatly appreciated. INFO | jvm 1 | 2006/11/20 09:10:58 | SEVERE: Begin event threw exception INFO | jvm 1 | 2006/11/20 09:10:58 | java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer INFO | jvm 1 | 2006/11/20 09:10:58 | at java.net.URLClassLoader$1.run(URLClassLoader.java:200) INFO | jvm 1 | 2006/11/20 09:10:58 | at java.security.AccessController.doPrivileged(Native Method) INFO | jvm 1 | 2006/11/20 09:10:58 | at java.net.URLClassLoader.findClass(URLClassLoader.java:188) INFO | jvm 1 | 2006/11/20 09:10:58 | at java.lang.ClassLoader.loadClass(ClassLoader.java:306) INFO | jvm 1 | 2006/11/20 09:10:58 | at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) INFO | jvm 1 | 2006/11/20 09:10:58 | at java.lang.ClassLoader.loadClass(ClassLoader.java:251) INFO | jvm 1 | 2006/11/20 09:10:58 | at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:204) INFO | jvm 1 | 2006/11/20 09:10:58 | at org.apache.tomcat.util.digester.Rule.begin(Rule.java:152) INFO | jvm 1 | 2006/11/20 09:10:58 | at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1275) INFO | jvm 1 | 2006/11/20 09:10:58 | at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533) INFO | jvm 1 | 2006/11/20 09:10:58 | at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:798) INFO | jvm 1 | 2006/11/20 09:10:58 | at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:878) INFO | jvm 1 | 2006/11/20 09:10:58 | at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(XMLDocumentScannerImpl.java:1157) INFO | jvm 1 | 2006/11/20 09:10:58 | at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1794) INFO | jvm 1 | 2006/11/20 09:10:58 | at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) INFO | jvm 1 | 2006/11/20 09:10:58 | at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) INFO | jvm 1 | 2006/11/20 09:10:58 | at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) INFO | jvm 1 | 2006/11/20 09:10:58 | at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) INFO | jvm 1 | 2006/11/20 09:10:58 | at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) INFO | jvm 1 | 2006/11/20 09:10:58 | at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561) INFO | jvm 1 | 2006/11/20 09:10:58 | at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:384) INFO | jvm 1 | 2006/11/20 09:10:58 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 1 | 2006/11/20 09:10:58 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) INFO | jvm 1 | 2006/11/20 09:10:58 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) INFO | jvm 1 | 2006/11/20 09:10:58 | at java.lang.reflect.Method.invoke(Method.java:585) INFO | jvm 1 | 2006/11/20 09:10:58 | at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:320) INFO | jvm 1 | 2006/11/20 09:10:58 | at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:411) INFO | jvm 1 | 2006/11/20 09:10:58 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 1 | 2006/11/20 09:10:58 | at
Re: No MBeans for any jsp in Tomcat 6
On 11/25/06, Tim Hannon [EMAIL PROTECTED] wrote: Using Tomcat 5.5.9 and jconsole I like viewing statistics for servlets and jsp pages using MBeans in Catalina/Servlets node in MBeans tree of jconsole. These MBeans includes useful statistics like request count, error count, processing time, and load time of any jsp or servlet pages. Why in Tomcat 6.0.1 I can't see MBeans for jsp pages? It works for me. Servlets and precompiled JSPs (which are handled as regular servlets) have associated mbeans, and appear in the status webapp and in the JMX viewer. Note: JSPs are no longer precompiled in the Tomcat distribution. Rémy - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deploying apps outside of the Tomcat root
Hi, I'm new to Tomcat and would appreciate any help with the following question: I have Tomcat 6 running on my Mac. I can access http://localhost: 8080/docs, /examples, etc. However, I would like to deploy a project in my home folder. This folder contains a WEB-INF folder and all the jsp files. How can I switch Tomcat to point to /Users/me/dev/myproject/web instead of /usr/ local/tomcat/webapps where it currently is? (I can't move my project into the webapps folder because it needs to be at the web root and I'd prefer to keep it separate from the Tomcat installation anyway.) Thanks for your help. Best regards, Richard - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
webapp management
Hi all there ! After my bad experience with Eclipse JST / WST, I'm looking for a way of managing a Tomcat webapp. I mean, a tool which would allow me to fastly deploy / undeploy / reload my servlet. Of course Tomcat manager does do it, but it's so slow... I'm using Sysdeo, but reloading Tomcat every time is the worst way around. An idea, anyone ? Regards, Pierre -- L'une des raisons pour lesquelles la vie est complexe C'est qu'elle a une partie réelle et une partie imaginaire.
RE: Deploying apps outside of the Tomcat root
From: Richard K Miller [mailto:[EMAIL PROTECTED] Subject: Deploying apps outside of the Tomcat root However, I would like to deploy a project in my home folder. This folder contains a WEB-INF folder and all the jsp files. How can I switch Tomcat to point to /Users/me/dev/myproject/web instead of /usr/local/tomcat/webapps where it currently is? You need to become familiar with this: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html The default app must be named ROOT - no ifs, ands, or buts. You can achieve this in one of three ways. If you want only your app to be available via Tomcat, change the appBase attribute of your Host element in conf/server.xml to point to the directory immediately above your application instead of webapps, and rename the directory your app is in to ROOT. If you want to keep the existing Tomcat apps (other than the normal ROOT), you must first delete the existing webapps/ROOT directory (or rename it). Following that, you can either move your app into webapps/ROOT, or create conf/[engine]/[host]/ROOT.xml containing a Context element with a docBase attribute pointing to your app. (Unless you've changed them, [engine] is Catalina, and [host] is localhost.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]