Re: AW: Enhancing Tomcat Speed
Richard Reyes wrote: Hi All, - Version: 5.5 but would upgrading to 6 be wise? - OS: Cent OS - Kind of App: Webapp with MySQL DB. Have you guys heard of Appfuse. - We created it using Spring and Webwork - I'm comparing my current performance to the performance when its deployed only on my devt desktop because it is so much slower now thinking the that it has a good upstream bandwidth allocation and a decent box to run on (dual core xenon and 4g ram). - I definitely would like to improve page loading time and page throughput. Appfuse and Spring and Webwork? I'm not completely familiar with them all, but I'd have thought you'd get away with using just one framework. Java6 Tomcat6 are faster together, in my experience, than lower version number combos. Having said that, it's most likely that you will improve your app, rather than Tomcat. There are other easy gains that can be made depending on how you've coded your app. If, for example, you're not using a database connection pool, it can be improved considerably by doing so. You won't gain performance in terms of raw speed by tuning the jvm memory parameters, but you will decrease the chance of OOMs and lengthy gc pauses. 4Gb of RAM is no use until you've set it (sensibly). You should consider profiling your app (google is your friend), or adding some simple logging to see where the delays are arising. And look, we haven't even mentioned caching yet... p Regards, Richard Alan Chaney wrote: Permgen space is used by the ClassLoader to hold copies of classes. It is unlikely that increasing the permgen space will produce a noticeable improvement in performance. Versions of tomcat can exhibit problems with java.lang.OutOfMemoryError: PermGen space failure - there is a good article here discussing some of the issues. http://www.jroller.com/agileanswers/entry/preventing_java_s_java_lang I had problems with tomcat 5.5 following reloading of web apps which were largely overcome by increasing the perm gen space and being prepared to restart the JVM occasionally. So far, I've had no problems with Tomcat 6, but then I have also changed a number of other factors. However, I reiterate that this won't affect the performance of a running application - it will either run or you will get a OOM error. I still think that it would be helpful for Richard to explain exactly what aspect of performance he is trying to improve. Deployment? Startup? Page Response Time? Page Throughput? Memory Footprint? Regards Alan Chaney Schadler Johann wrote: Richard Reyes wrote: I have not had the chance to try the heap size and class reloading thing, but would still like to learn on other might be areas of improvements. To be able to influence the memory consumption (e.g. to tune the PermGen-Space) is the main criteria and most efficient way to speed up your application. Johann - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:476d6f98308891721312192! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: AW: Enhancing Tomcat Speed
Hi Pid, All, Hope you could tell me more about caching...isn't it automatic in tomcat? Pid wrote: And look, we haven't even mentioned caching yet... p - 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: javax.servlet.ServletException: Cannot execute view page '/mail.view'
please display all relevant java source files Bon Chance/ M-- - Original Message - From: rameau rameau1982 [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Sunday, December 23, 2007 6:28 AM Subject: javax.servlet.ServletException: Cannot execute view page '/mail.view' Hi! I'm studying at the university an assignature based on web applications developement using java servlets, tomcat, Model-view-controller, and a framework done by my teacher that is a simplification of struts (we use his jar to implement all te classes of his framework and he has told us that everything is correct and that we cannot modify his classes). He has invented a language called VIEW. The dynamic pages terminate with the sufix .view What I'm doing is a web application that has some users(with passwords) in a postgresql database (here everything correct) and that they login and send/receive messages to/from the rest of the users. I'm also using eclipse, so everything is well compilated When a user logins, tomcat sends me an exception and doesn't shows the main dynamic page where the logged user views recieved messages and can send messages to other users. I give you the code of the mail.view page: ?xml version=1.0 encoding=ISO-8859-1? v:view xmlns:v=http://soft0.upc.es:8080/web/NS/webfw/view; xmlns:b=/base.vlib component-element-prefixes=bHTMLHEAD TITLEDisseny d'aplicacions WEB: P3/TITLE LINk rel=stylesheet href=styles.css type=text/css//HEADBODYcentertable width=700 border=0 cellspacing=0 cellpadding=0trtdbr/ b:set var=srv value=${request.session.getAttribute('message_srv')}/ b:if test=${not srv} h1ERROR/h1 pspan style=color: #FF;Session Error/span/p hr color=#1E90FF/ a HREF=index.htmlVolver/a/b:if b:if test=${srv} H1${srv.userName}/H1 hr color=#1E90FF/ b:set var=recmess value=${srv.receivedMessages()}/b:if test=${not recmess} H2No hay mensajes recibidos/H2/b:if b:if test=${recmess} H2Mensajes recibidos:/H2 FORM METHOD=POST ACTION=delete.do !-- Lista de mensajes -- table border=2 style=border-color: #1E90FF cellspacing=1 align=center tr tdfontremitente/font/td tdfontmensaje/font/td tdfontfecha/font/td tdfonteliminar/font/td /tr b:for-each var=message items=${srv.receivedMessages()}trtd${message.from}/tdtdpre${mes sage.text}/pre/tdtdpre${message.date}/pre/tdtdinput type=checkbox name=message_id value=${message.id}//td/tr/b:for-each /table pINPUT TYPE=submit NAME=delete VALUE=Eliminar//p /FORM/b:if hr color=#1E90FF/ FORM METHOD=POST ACTION=send.dofontDestinatario/s:/fontbr/select name=receiver multiple=multiple b:for-each var=user items=${srv.userListToSend()} option value=${user.name}${user.name}/option/b:for-each /selectbr/fontMensaje:/font pTEXTAREA NAME=message ROWS=10 COLS=100/TEXTAREA/p pINPUT TYPE=submit NAME=send VALUE=Enviar//p /FORM hr color=#1E90FF/ FORM METHOD=POST ACTION=logout.do pINPUT TYPE=submit VALUE=Logout//p /FORM/b:if /td/tr/table/center/BODY/HTML/v:view I think that the problem is at: b:set var=srv value=${request.session.getAttribute('message_srv')}/ can somebody help me?? Oh! and the tomcat exception: Estado HTTP 500 - type Informe de Excepción mensaje descripción El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento. excepción javax.servlet.ServletException: Cannot execute view page '/mail.view': webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED] webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:63) webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) webprofe.webfw.controller.RequestMap.dispatchView(RequestMap.java:134) webprofe.webfw.controller.RequestMap.process(RequestMap.java:122) webprofe.webfw.controller.Controller.process(Controller.java:57) webprofe.webfw.controller.ControllerServlet.doPost(ControllerServlet.java:48 ) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) causa raíz webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED] webprofe.webfw.view.runtime.tree.CallNode.invoke(CallNode.java:87) webprofe.webfw.view.runtime.tree.Fragment.invoke(Fragment.java:50) webprofe.webfw.view.runtime.tree.Page.execute(Page.java:56) webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:61) webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
RE: javax.servlet.ServletException: Cannot execute view page '/mail.view'
ok, here it goes the java sources if you need other java sources tell me From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: javax.servlet.ServletException: Cannot execute view page '/mail.view' Date: Sun, 23 Dec 2007 10:41:18 -0500 please display all relevant java source files Bon Chance/ M-- - Original Message - From: 'rameau rameau1982' [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Sunday, December 23, 2007 6:28 AM Subject: javax.servlet.ServletException: Cannot execute view page '/mail.view'Hi! I'm studying at the university an assignature based on web applications developement using java servlets, tomcat, Model-view-controller, and a framework done by my teacher that is a simplification of struts (we use his jar to implement all te classes of his framework and he has told us that everything is correct and that we cannot modify his classes). He has invented a language called VIEW. The dynamic pages terminate with the sufix .view What I'm doing is a web application that has some users(with passwords) in a postgresql database (here everything correct) and that they login and send/receive messages to/from the rest of the users. I'm also using eclipse, so everything is well compilated When a user logins, tomcat sends me an exception and doesn't shows the main dynamic page where the logged user views recieved messages and can send messages to other users. I give you the code of the mail.view page: ?xml version='1.0' encoding='ISO-8859-1'? v:view xmlns:v='http://soft0.upc.es:8080/web/NS/webfw/view' xmlns:b='/base.vlib' component-element-prefixes='b'HTMLHEAD TITLEDisseny d'aplicacions WEB: P3/TITLE LINk rel='stylesheet' href='styles.css' type='text/css'//HEADBODYcentertable width='700' border='0' cellspacing='0' cellpadding='0'trtdbr/ b:set var='srv' value='${request.session.getAttribute('message_srv')}'/ b:if test='${not srv}' h1ERROR/h1 pspan style='color: #FF;'Session Error/span/p hr color='#1E90FF'/ a HREF='index.html'Volver/a/b:if b:if test='${srv}' H1${srv.userName}/H1 hr color='#1E90FF'/ b:set var='recmess' value='${srv.receivedMessages()}'/b:if test='${not recmess}' H2No hay mensajes recibidos/H2/b:if b:if test='${recmess}' H2Mensajes recibidos:/H2 FORM METHOD='POST' ACTION='delete.do' !-- Lista de mensajes -- table border='2' style='border-color: #1E90FF' cellspacing='1' align='center' tr tdfontremitente/font/td tdfontmensaje/font/td tdfontfecha/font/td tdfonteliminar/font/td /tr b:for-each var='message' items='${srv.receivedMessages()}'trtd${message.from}/tdtdpre${mes sage.text}/pre/tdtdpre${message.date}/pre/tdtdinput type='checkbox' name='message_id' value='${message.id}'//td/tr/b:for-each /table pINPUT TYPE='submit' NAME='delete' VALUE='Eliminar'//p /FORM/b:if hr color='#1E90FF'/ FORM METHOD='POST' ACTION='send.do'fontDestinatario/s:/fontbr/select name='receiver' multiple='multiple' b:for-each var='user' items='${srv.userListToSend()}' option value='${user.name}'${user.name}/option'/b:for-each /selectbr/fontMensaje:/font pTEXTAREA NAME='message' ROWS='10' COLS='100'/TEXTAREA/p pINPUT TYPE='submit' NAME='send' VALUE='Enviar'//p /FORM hr color='#1E90FF'/ FORM METHOD='POST' ACTION='logout.do' pINPUT TYPE='submit' VALUE='Logout'//p /FORM/b:if /td/tr/table/center/BODY/HTML/v:view I think that the problem is at: b:set var='srv' value='${request.session.getAttribute('message_srv')}'/ can somebody help me?? Oh! and the tomcat exception: Estado HTTP 500 - type Informe de Excepción mensaje descripción El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento. excepción javax.servlet.ServletException: Cannot execute view page '/mail.view': webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED] webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:63) webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) webprofe.webfw.controller.RequestMap.dispatchView(RequestMap.java:134) webprofe.webfw.controller.RequestMap.process(RequestMap.java:122) webprofe.webfw.controller.Controller.process(Controller.java:57) webprofe.webfw.controller.ControllerServlet.doPost(ControllerServlet.java:48 ) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) causa raíz webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED]
RE: javax.servlet.ServletException: Cannot execute view page '/mail.view'
you'll also need the controller.xml and the web.xml From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: javax.servlet.ServletException: Cannot execute view page '/mail.view' Date: Sun, 23 Dec 2007 10:41:18 -0500 please display all relevant java source files Bon Chance/ M-- - Original Message - From: 'rameau rameau1982' [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Sunday, December 23, 2007 6:28 AM Subject: javax.servlet.ServletException: Cannot execute view page '/mail.view' Hi! I'm studying at the university an assignature based on web applications developement using java servlets, tomcat, Model-view-controller, and a framework done by my teacher that is a simplification of struts (we use his jar to implement all te classes of his framework and he has told us that everything is correct and that we cannot modify his classes). He has invented a language called VIEW. The dynamic pages terminate with the sufix .view What I'm doing is a web application that has some users(with passwords) in a postgresql database (here everything correct) and that they login and send/receive messages to/from the rest of the users. I'm also using eclipse, so everything is well compilated When a user logins, tomcat sends me an exception and doesn't shows the main dynamic page where the logged user views recieved messages and can send messages to other users. I give you the code of the mail.view page: ?xml version='1.0' encoding='ISO-8859-1'? v:view xmlns:v='http://soft0.upc.es:8080/web/NS/webfw/view' xmlns:b='/base.vlib' component-element-prefixes='b'HTMLHEAD TITLEDisseny d'aplicacions WEB: P3/TITLE LINk rel='stylesheet' href='styles.css' type='text/css'//HEADBODYcentertable width='700' border='0' cellspacing='0' cellpadding='0'trtdbr/ b:set var='srv' value='${request.session.getAttribute('message_srv')}'/ b:if test='${not srv}' h1ERROR/h1 pspan style='color: #FF;'Session Error/span/p hr color='#1E90FF'/ a HREF='index.html'Volver/a/b:if b:if test='${srv}' H1${srv.userName}/H1 hr color='#1E90FF'/ b:set var='recmess' value='${srv.receivedMessages()}'/b:if test='${not recmess}' H2No hay mensajes recibidos/H2/b:if b:if test='${recmess}' H2Mensajes recibidos:/H2 FORM METHOD='POST' ACTION='delete.do' !-- Lista de mensajes -- table border='2' style='border-color: #1E90FF' cellspacing='1' align='center' tr tdfontremitente/font/td tdfontmensaje/font/td tdfontfecha/font/td tdfonteliminar/font/td /tr b:for-each var='message' items='${srv.receivedMessages()}'trtd${message.from}/tdtdpre${mes sage.text}/pre/tdtdpre${message.date}/pre/tdtdinput type='checkbox' name='message_id' value='${message.id}'//td/tr/b:for-each /table pINPUT TYPE='submit' NAME='delete' VALUE='Eliminar'//p /FORM/b:if hr color='#1E90FF'/ FORM METHOD='POST' ACTION='send.do'fontDestinatario/s:/fontbr/select name='receiver' multiple='multiple' b:for-each var='user' items='${srv.userListToSend()}' option value='${user.name}'${user.name}/option'/b:for-each /selectbr/fontMensaje:/font pTEXTAREA NAME='message' ROWS='10' COLS='100'/TEXTAREA/p pINPUT TYPE='submit' NAME='send' VALUE='Enviar'//p /FORM hr color='#1E90FF'/ FORM METHOD='POST' ACTION='logout.do' pINPUT TYPE='submit' VALUE='Logout'//p /FORM/b:if /td/tr/table/center/BODY/HTML/v:view I think that the problem is at: b:set var='srv' value='${request.session.getAttribute('message_srv')}'/ can somebody help me?? Oh! and the tomcat exception: Estado HTTP 500 - type Informe de Excepción mensaje descripción El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento. excepción javax.servlet.ServletException: Cannot execute view page '/mail.view': webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED] webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:63) webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) webprofe.webfw.controller.RequestMap.dispatchView(RequestMap.java:134) webprofe.webfw.controller.RequestMap.process(RequestMap.java:122) webprofe.webfw.controller.Controller.process(Controller.java:57) webprofe.webfw.controller.ControllerServlet.doPost(ControllerServlet.java:48 ) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) causa raíz webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED] webprofe.webfw.view.runtime.tree.CallNode.invoke(CallNode.java:87)
multi-connector capability in Tomcat
Hi, Does Tomcat support multi-connector capabilities? Edit The Tomcat Configuration File section in Tomcat's User-Guide (http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html) gives impression that Tomcat could be configured using multiple connectors to support HTTPS protocols on multiple ports simultaneously. Your expert advise/suggestion are highly appreciated. Thanks, -Hitesh
Re: multi-connector capability in Tomcat
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. This is known as thread hijacking and to many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. This makes it harder for other users to find relevant information when searching the lists. It should also be noted that many list subscribers automatically ignore any messages that hijack another thread. The correct procedure is to create a new message with a new subject. This will start a new thread. Thanks, Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[CVE-2007-5342] Apache Tomcat's default security policy is too open
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 CVE-2007-5342: Tomcat's default security policy is too open Severity: Low Vendor: The Apache Software Foundation Versions Affected: Tomcat 5.5.9 to 5.5.25 Tomcat 6.0.0 to 6.0.15 Description: The JULI logging component allows web applications to provide their own logging configurations. The default security policy does not restrict this configuration and allows an untrusted web application to add files or overwrite existing files where the Tomcat process has the necessary file permissions to do so. Mitigation: Apply the following patch to the catalina.policy file http://svn.apache.org/viewvc?rev=606594view=rev The patch will be included in 5.5.25 onwards and 6.0.16 onwards This patch is also included at the end of this announcement Example: An application could have its own WEB-INF/classes/logging.properties handlers = org.apache.juli.FileHandler org.apache.juli.FileHandler.level = FINE org.apache.juli.FileHandler.directory = ${catalina.base}/logs org.apache.juli.FileHandler.prefix = mylog. Credit: This issue was discovered by Delian Krustev. References: http://tomcat.apache.org/security.html Mark Thomas *** Patch starts below this line *** Index: catalina.policy === - --- catalina.policy (revision 606588) +++ catalina.policy (working copy) @@ -62,7 +62,19 @@ // These permissions apply to the logging API grant codeBase file:${catalina.home}/bin/tomcat-juli.jar { - -permission java.security.AllPermission; +permission java.util.PropertyPermission java.util.logging.config.class, read; +permission java.util.PropertyPermission java.util.logging.config.file, read; +permission java.lang.RuntimePermission shutdownHooks; +permission java.io.FilePermission ${catalina.base}${file.separator}conf${file.separator}logging.properties, read; +permission java.util.PropertyPermission catalina.base, read; +permission java.util.logging.LoggingPermission control; +permission java.io.FilePermission ${catalina.base}${file.separator}logs, read, write; +permission java.io.FilePermission ${catalina.base}${file.separator}logs${file.separator}*, read, write; +permission java.lang.RuntimePermission getClassLoader; +// To enable per context logging configuration, permit read access to the appropriate file. +// Be sure that the logging configuration is secure before enabling such access +// eg for the examples web application: +// permission java.io.FilePermission ${catalina.base}${file.separator}webapps${file.separator}examples${file.separator}WEB-INF${file.separator}classes${file.separator}logging.properties, read; }; // These permissions apply to the server startup code *** Patch ends above this line *** -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHbrZQb7IeiTPGAkMRAhg1AJ4ydvIa2WIuHN8x3TKGD01xReatbgCfTtj2 8TzsMaXSUzeuEvnOuY5fmCo= =N5J9 -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]
Re: AW: Enhancing Tomcat Speed
Richard G. Reyes wrote: Hi Pid, All, Hope you could tell me more about caching...isn't it automatic in tomcat? Not until you've profiled your app and tuned the DB accesses - which is where most of your slowdown is likely to be. Caching is esoteric and application specific, and can refer to static files as well as objects. Don't assume it's a magic bullet, sort out the basics of your app first. p Pid wrote: And look, we haven't even mentioned caching yet... p - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
javax.servlet.ServletException
Hi again, by a problem with hotmail I have only been sending messages with one person. I'll put it all again with a .rar that is all my project. Hi!I'm studying at the university an assignature based on web applications developement using java servlets, tomcat, Model-view-controller, and a framework done by my teacher that is a simplification of struts (we use his .jar to implement all te classes of his framework and he has told us that everything is correct and that we cannot modify his classes). He has invented a language called VIEW.The dynamic pages terminate with the sufix .view What I'm doing is a web application that has some users(with passwords) in a postgresql database (here everything correct) and that they login and send/receive messages to/from the rest of the users.I'm also using eclipse, so everything is well compilatedWhen a user logins, tomcat sends me an exception and doesn't shows the main dynamic page where the logged user views recieved messages and can send messages to other users.I give you the code of the mail.view page: ?xml version='1.0' encoding='ISO-8859-1'?v:view xmlns:v='http://soft0.upc.es:8080/web/NS/webfw/view' xmlns:b='/base.vlib' component-element-prefixes='b'HTMLHEAD TITLEDisseny d'aplicacions WEB: P3/TITLE LINk rel='stylesheet' href='styles.css' type='text/css'//HEADBODYcentertable width='700' border='0' cellspacing='0' cellpadding='0'trtdbr/b:set var='srv' value='${request.session.getAttribute('message_srv')}'/b:if test='${not srv}' h1ERROR/h1 pspan style='color: #FF;'Session Error/span/p hr color='#1E90FF'/ a HREF='index.html'Volver/a/b:ifb:if test='${srv}' H1${srv.userName}/H1 hr color='#1E90FF'/b:set var='recmess' value='${srv.receivedMessages()}'/b:if test='${not recmess}' H2No hay mensajes recibidos/H2/b:ifb:if test='${recmess}' H2Mensajes recibidos:/H2 FORM METHOD='POST' ACTION='delete.do' !-- Lista de mensajes -- table border='2' style='border-color: #1E90FF' cellspacing='1' align='center' tr tdfontremitente/font/td tdfontmensaje/font/td tdfontfecha/font/td tdfonteliminar/font/td /trb:for-each var='message' items='${srv.receivedMessages()}'trtd${message.from}/tdtdpre${message.text}/pre/tdtdpre${message.date}/pre/tdtdinput type='checkbox' name='message_id' value='${message.id}'//td/tr/b:for-each /table pINPUT TYPE='submit' NAME='delete' VALUE='Eliminar'//p /FORM/b:if hr color='#1E90FF'/FORM METHOD='POST' ACTION='send.do'fontDestinatario/s:/fontbr/select name='receiver' multiple='multiple'b:for-each var='user' items='${srv.userListToSend()}' option value='${user.name}'${user.name}/option'/b:for-each/selectbr/fontMensaje:/font pTEXTAREA NAME='message' ROWS='10' COLS='100'/TEXTAREA/p pINPUT TYPE='submit' NAME='send' VALUE='Enviar'//p /FORM hr color='#1E90FF'/ FORM METHOD='POST' ACTION='logout.do' pINPUT TYPE='submit' VALUE='Logout'//p /FORM/b:if/td/tr/table/center/BODY/HTML/v:view I think that the problem is at:b:set var='srv' value='${request.session.getAttribute('message_srv')}'/ can somebody help me?? Oh! and the tomcat exception:Estado HTTP 500 - type Informe de Excepciónmensaje descripción El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento.excepción javax.servlet.ServletException: Cannot execute view page '/mail.view': webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED] webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:63) webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) webprofe.webfw.controller.RequestMap.dispatchView(RequestMap.java:134) webprofe.webfw.controller.RequestMap.process(RequestMap.java:122) webprofe.webfw.controller.Controller.process(Controller.java:57) webprofe.webfw.controller.ControllerServlet.doPost(ControllerServlet.java:48) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803)causa raíz webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED] webprofe.webfw.view.runtime.tree.CallNode.invoke(CallNode.java:87) webprofe.webfw.view.runtime.tree.Fragment.invoke(Fragment.java:50) webprofe.webfw.view.runtime.tree.Page.execute(Page.java:56) webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:61) webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108)
Re: Configuring tomcat, servlet not found error
hi. you say that you added the servlet/servlet tag to the * bottom * of your Deployment Descriptor file, the web.xml. Now I hope that you know -- u should know -- that that it is the very * first * thing contained in a web.xml file and you also need the servlet-mapping tag right under that. It contains the servlet-name and the url-pattern tags. Hope that that helps you to fly right with trying to get the servlet viewed in Tomcat. - Original Message - From: cuco2772 [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, December 19, 2007 3:43 PM Subject: Configuring tomcat, servlet not found error I keep getting this error: 'The requested resource (/servlet/HelloServlet) is not available'. (404) The servlet is not getting located by tomcat for some reason. This happens when I go to localhost:8080/servlet/HelloServlet. The servlet engine is running, tomcat is running. I did this: javac -classpath /usr/local/tomcat/apache-tomcat-6.0.14/lib/servlet-api.jar HelloServlet.java and I was able to at least compile the servlet into a .class file. If you have tomcat installed, there should be an html document on how to configure it somewhere like here : file:///usr/local/tomcat/apache-tomcat-6.0.14/webapps/docs/config/server.html I've been studying this document trying to figure out what I need to do, but so far to no avail. I added the folowing Context element to my context.xml, located in $CATALINA_HOME/conf: Context path= docBase=webapps/ROOT debug=0 reloadable=true crossContext=true /Context My HelloServlet.class is located in .../webapps/ROOT/WEB-INF/classes In addition I added the following element to the bottom of my /webapps/ROOT/WEB-INF/web.xml to try to provide some sort of servlet mapping, I think: servlet servlet-nameHelloWorld/servlet-name servlet-classHelloWorld/servlet-class /servlet I got this info mostly from doing Google research, so I dont know how well this applies. The only thing I can think of at this point is maybe I need to set my java -classpath also, but attempts to set it to my .../classes directory fail. I'm not sure exactly what it needs to be set to, and if you have to provide a .class filename every time. Could anybody help clarify some of this ? Thanx -- View this message in context: http://www.nabble.com/Configuring-tomcat%2C-servlet-not-found-error-tp14425976p14425976.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: javax.servlet.ServletException
Hi The error is showing as: .EvalException: Undefined property 'name' on target You have a loop with: b:for-each var='user' items='${srv.userListToSend()}' option value='${user.name}'${user.name}/option' /b:for-each I don't understand something - I would have expected srv.userListToSend which would have mapped to a method something like: ListUser getUserListToSend() { ListUser users . return users; } where User has a property 'name' which would be a JavaBean with a method something like: String getName(); In a normal JSP you would not expect the method to have () at the end... but just to be ${srv.userListToSend} Is this a feature of your View framework? Regards Alan Chaney rameau rameau1982 wrote: Hi again, by a problem with hotmail I have only been sending messages with one person. I'll put it all again with a .rar that is all my project. Hi! I'm studying at the university an assignature based on web applications developement using java servlets, tomcat, Model-view-controller, and a framework done by my teacher that is a simplification of struts (we use his .jar to implement all te classes of his framework and he has told us that everything is correct and that we cannot modify his classes). He has invented a language called VIEW. The dynamic pages terminate with the sufix .view What I'm doing is a web application that has some users(with passwords) in a postgresql database (here everything correct) and that they login and send/receive messages to/from the rest of the users. I'm also using eclipse, so everything is well compilated When a user logins, tomcat sends me an exception and doesn't shows the main dynamic page where the logged user views recieved messages and can send messages to other users. I give you the code of the mail.view page: ?xml version='1.0' encoding='ISO-8859-1'? v:view xmlns:v='http://soft0.upc.es:8080/web/NS/webfw/view' xmlns:b='/base.vlib' component-element-prefixes='b' HTML HEAD TITLEDisseny d'aplicacions WEB: P3/TITLE LINk rel='stylesheet' href='styles.css' type='text/css'/ /HEAD BODY center table width='700' border='0' cellspacing='0' cellpadding='0' tr td br/ b:set var='srv' value='${request.session.getAttribute('message_srv')}'/ b:if test='${not srv}' h1ERROR/h1 pspan style='color: #FF;'Session Error/span/p hr color='#1E90FF'/ a HREF='index.html'Volver/a /b:if b:if test='${srv}' H1${srv.userName}/H1 hr color='#1E90FF'/ b:set var='recmess' value='${srv.receivedMessages()}'/ b:if test='${not recmess}' H2No hay mensajes recibidos/H2 /b:if b:if test='${recmess}' H2Mensajes recibidos:/H2 FORM METHOD='POST' ACTION='delete.do' !-- Lista de mensajes -- table border='2' style='border-color: #1E90FF' cellspacing='1' align='center' tr tdfontremitente/font/td tdfontmensaje/font/td tdfontfecha/font/td tdfonteliminar/font/td /tr b:for-each var='message' items='${srv.receivedMessages()}' tr td${message.from}/td tdpre${message.text}/pre/td tdpre${message.date}/pre/td tdinput type='checkbox' name='message_id' value='${message.id}'//td /tr /b:for-each /table pINPUT TYPE='submit' NAME='delete' VALUE='Eliminar'//p /FORM /b:if hr color='#1E90FF'/ FORM METHOD='POST' ACTION='send.do' fontDestinatario/s:/fontbr/ select name='receiver' multiple='multiple' b:for-each var='user' items='${srv.userListToSend()}' option value='${user.name}'${user.name}/option' /b:for-each /select br/ fontMensaje:/font pTEXTAREA NAME='message' ROWS='10' COLS='100'/TEXTAREA/p pINPUT TYPE='submit' NAME='send' VALUE='Enviar'//p /FORM hr color='#1E90FF'/ FORM METHOD='POST' ACTION='logout.do' pINPUT TYPE='submit' VALUE='Logout'//p /FORM /b:if /td /tr /table /center /BODY /HTML /v:view I think that the problem is at: b:set var='srv' value='${request.session.getAttribute('message_srv')}'/ can somebody help me?? Oh! and the tomcat exception: Estado HTTP 500 - type Informe de Excepción mensaje descripción El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento. excepción javax.servlet.ServletException: Cannot execute view page '/mail.view': webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:63) webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) webprofe.webfw.controller.RequestMap.dispatchView(RequestMap.java:134) webprofe.webfw.controller.RequestMap.process(RequestMap.java:122) webprofe.webfw.controller.Controller.process(Controller.java:57)
RE: javax.servlet.ServletException
ok, this is not a feature of my framework. What you say has its logical but what I've done it's a little bit different: when (in the mail.view) you see: b:set var=srv value=${request.session.getAttribute('message_srv')}/ now, srv its like a MailMessagesession class The MailMessageSession class has, among others, the userListToSend() method that returns a Vector. But a Vector is an object, and in my project it's a UserVO Vector. UserVO class has some methods (that then are called as properties, the way you said) among them is the getName method that is called as a property: user.name Have I answered your question??? thank's! Date: Sun, 23 Dec 2007 14:22:22 -0800 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: javax.servlet.ServletException Hi The error is showing as: .EvalException: Undefined property 'name' on target You have a loop with: b:for-each var='user' items='${srv.userListToSend()}' option value='${user.name}'${user.name}/option' /b:for-each I don't understand something - I would have expected srv.userListToSend which would have mapped to a method something like: ListUser getUserListToSend() { ListUser users . return users; } where User has a property 'name' which would be a JavaBean with a method something like: String getName(); In a normal JSP you would not expect the method to have () at the end... but just to be ${srv.userListToSend} Is this a feature of your View framework? Regards Alan Chaney rameau rameau1982 wrote: Hi again, by a problem with hotmail I have only been sending messages with one person. I'll put it all again with a .rar that is all my project.Hi! I'm studying at the university an assignature based on web applications developement using java servlets, tomcat, Model-view-controller, and a framework done by my teacher that is a simplification of struts (we use his .jar to implement all te classes of his framework and he has told us that everything is correct and that we cannot modify his classes). He has invented a language called VIEW. The dynamic pages terminate with the sufix .viewWhat I'm doing is a web application that has some users(with passwords) in a postgresql database (here everything correct) and that they login and send/receive messages to/from the rest of the users. I'm also using eclipse, so everything is well compilated When a user logins, tomcat sends me an exception and doesn't shows the main dynamic page where the logged user views recieved messages and can send messages to other users. I give you the code of the mail.view page:?xml version='1.0' encoding='ISO-8859-1'? v:view xmlns:v='http://soft0.upc.es:8080/web/NS/webfw/view' xmlns:b='/base.vlib' component-element-prefixes='b' HTML HEAD TITLEDisseny d'aplicacions WEB: P3/TITLE LINk rel='stylesheet' href='styles.css' type='text/css'/ /HEAD BODY center table width='700' border='0' cellspacing='0' cellpadding='0' tr td br/ b:set var='srv' value='${request.session.getAttribute('message_srv')}'/ b:if test='${not srv}' h1ERROR/h1 pspan style='color: #FF;'Session Error/span/p hr color='#1E90FF'/ a HREF='index.html'Volver/a /b:if b:if test='${srv}' H1${srv.userName}/H1hr color='#1E90FF'/ b:set var='recmess' value='${srv.receivedMessages()}'/ b:if test='${not recmess}' H2No hay mensajes recibidos/H2 /b:if b:if test='${recmess}' H2Mensajes recibidos:/H2 FORM METHOD='POST' ACTION='delete.do' !-- Lista de mensajes -- table border='2' style='border-color: #1E90FF' cellspacing='1' align='center' tr tdfontremitente/font/td tdfontmensaje/font/td tdfontfecha/font/td tdfonteliminar/font/td /tr b:for-each var='message' items='${srv.receivedMessages()}' tr td${message.from}/td tdpre${message.text}/pre/td tdpre${message.date}/pre/td tdinput type='checkbox' name='message_id' value='${message.id}'//td /tr /b:for-each /table pINPUT TYPE='submit' NAME='delete' VALUE='Eliminar'//p /FORM /b:if hr color='#1E90FF'/ FORM METHOD='POST' ACTION='send.do' fontDestinatario/s:/fontbr/ select name='receiver' multiple='multiple' b:for-each var='user' items='${srv.userListToSend()}' option value='${user.name}'${user.name}/option' /b:for-each /select br/ fontMensaje:/font pTEXTAREA NAME='message' ROWS='10' COLS='100'/TEXTAREA/p pINPUT TYPE='submit' NAME='send' VALUE='Enviar'//p /FORM hr color='#1E90FF'/ FORM METHOD='POST' ACTION='logout.do' pINPUT TYPE='submit' VALUE='Logout'//p /FORM /b:if /td /tr /table /center /BODY /HTML /v:viewI think that the problem is at: b:set var='srv' value='${request.session.getAttribute('message_srv')}'/can somebody help me??Oh! and the tomcat exception: Estado HTTP 500 - type Informe de Excepción mensaje
javax.servlet.ServletException
ok, the problematic one is thi .rar archive, the other one is a copy of my partner that runs ok. But I still want to know what I do wrong beacause I can't see the difference between my project and my partner's project.Can somebody help me? _ MSN Video. http://video.msn.com/?mkt=es-es- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Regarding setting log size
Hi, We are using tomcat apache-tomcat-5.5.23 for development purpose. We want the same tomcat to push for Production in Window 2000 server. Our web application log level is low. All logs would be created in directory D:\apache-tomcat-5.5.23\logs. The log file names are as, 1.localhost.2007-12-24.log 2.catalina.2007-12-24.log 3.manager.2007-12-24.log 4.host-manager.2007-12-24.log 5.admin.2007-12-24.log But log size would increase in production day by day. We want that tomcat automatically archives the log files and create a new one once a certains size is reached. we are not using log4j properties. Please help us what needs to set in logging.properties file. Thanks Regards -Abdul Razack - Never miss a thing. Make Yahoo your homepage.