Re: using a datasource connection pool resource with username and password supplied by user
Jefferey, Coming into this thread late, but I'm curious. Why do you want each user to obtain a connection to the database, effectively logging into the DB, instead of using a connection pool with a single, application specific, DB userid/password? - Bob --- [EMAIL PROTECTED] wrote: Thanks Doug and Chuck, I suspected as much re. the connection pool. This sort of negates the value of it a little (for me anyway). My original plan was to go with saving the connection to the session once it was established but I had read somewhere that connections are not 'serializable' and therefore the garbage cleanup in tomcat may kill the connection unexpectedly?!.? Has anyone used session tracking to store database connections? If so, has anything bad happened? Doug to answer your question How many users are there going to be on the system at once and can the system handle that many open connections?... I anticipate that the production version will have from 20 - 30 people updating information (in different cities ) and possibly 50 or so browsing the database for information. The backend database will be ORACLE 9i running in MS Server 2003 on an IBM server. In the pooled connection implementation I allowed for 150 concurrent users. I think oracle running on a pretty beefy application server should be able to handle it. The web server box will also be MS server 2003 on an older style server so I suppose the only scary part will be weaknesses (if there are any) in Tomcat itself. Anyway, I will implement storing the connection in the session with the log out killing the connection. Any comments or gotchas you know about would be useful. Jeffery S. Eaton Opinions contained in this e-mail do not necessarily reflect the opinions of the Queensland Department of Main Roads, Queensland Transport or Maritime Safety Queensland, or endorsed organisations utilising the same infrastructure. If you have received this electronic mail message in error, please immediately notify the sender and delete the message from your computer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sending mail with JavaMail (UNCLASSIFIED)
Samara, Fadi N Mr ACSIM/ASPEX wrote: Classification: UNCLASSIFIED Caveats: NONE Are you including your JAR files your BUILD.XML classpath ? -Original Message- From: David Tonhofer, m-plify S.A. [mailto:[EMAIL PROTECTED] Sent: Friday, October 07, 2005 6:25 AM To: Tomcat Users List Subject: Re: Sending mail with JavaMail Looks like the usual Tomcat classloader hierarchy SNAFU. Try with ONLY in tomcat/common/lib. --On Friday, October 07, 2005 12:04 PM +0200 Andrés Reyes [EMAIL PROTECTED] wrote: activation.jar and mail.jar are placed both in /common/lib, and in /WEB-INF/lib (and also in JAVA_HOME/lib) ¿Any other place? ;) ¿Maybe the error be in activation.jar itself? ( I want to believe that it isn't :( ). No. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Classification: UNCLASSIFIED Caveats: NONE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] I'm not compiling with Ant. -- /*** * Andrés Reyes ( [EMAIL PROTECTED] ) * TCOR Desarrollos y Sistemas, S.L. * Teléfono: 957 76 42 48 * Fax : 957 76 42 49 ***/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: using a datasource connection pool resource with username and password supplied by user
Hi Jeff, I will implement storing the connection in the session with the log out killing the connection. what happens if the user never logs out? then your Tomcat might end up with quite a few open connections that it cannot close and the only way to close such connections would be to restart Tomcat. I guess you'll also want to implement the connection closure when session times out/invalidated (using javax.servlet.http.HttpSessionListener) Kind regards, Sasha. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, 10 October 2005 3:48 PM To: Tomcat Users List Subject: Re: using a datasource connection pool resource with username and password supplied by user Thanks Doug and Chuck, I suspected as much re. the connection pool. This sort of negates the value of it a little (for me anyway). My original plan was to go with saving the connection to the session once it was established but I had read somewhere that connections are not 'serializable' and therefore the garbage cleanup in tomcat may kill the connection unexpectedly?!.? Has anyone used session tracking to store database connections? If so, has anything bad happened? Doug to answer your question How many users are there going to be on the system at once and can the system handle that many open connections?... I anticipate that the production version will have from 20 - 30 people updating information (in different cities ) and possibly 50 or so browsing the database for information. The backend database will be ORACLE 9i running in MS Server 2003 on an IBM server. In the pooled connection implementation I allowed for 150 concurrent users. I think oracle running on a pretty beefy application server should be able to handle it. The web server box will also be MS server 2003 on an older style server so I suppose the only scary part will be weaknesses (if there are any) in Tomcat itself. Anyway, I will implement storing the connection in the session with the log out killing the connection. Any comments or gotchas you know about would be useful. Jeffery S. Eaton Opinions contained in this e-mail do not necessarily reflect the opinions of the Queensland Department of Main Roads, Queensland Transport or Maritime Safety Queensland, or endorsed organisations utilising the same infrastructure. If you have received this electronic mail message in error, please immediately notify the sender and delete the message from your computer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Central Administrator Console?
Hello, I would like to know whether a central administrator console (manager) exists for Tomcat v. 5.x clustered instances as it does for IBM WebSphere Network Deployment. In fact this last product owns a Deployment Manager which allows the administrator to deploy and manage all her/his applications from a single point. If it exists where can I find it? If it does not exist does I have to deploy and administer each application separetely? Thank you in advance. Philippe Waltregny-Dengis mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: using a datasource connection pool resource with username and password supplied by user
Good question Bob, This system may eventually be implemented for the government department I work for in Queensland, Australia. This project is a pilot one which will involve four separate district offices in four different cities. The department has policies on data security which includes authenticating individual users to a database. As this is a requirement I can't avoid I wanted to find a way to implement it even in the proof-of-concept stage. User authentication can be implemented on the middle tier in Tomcat but I don't think this will satisfy the dept. requirements. That being the case, my plan was to let the database decide if a user can get into the site. If they are authenticated to the db then they have access to the site. One other advantage of db authentication which will be important in this case is the separation of database roles. Users will have access to update only the tables they are approved to access. Jeffery S. Eaton Opinions contained in this e-mail do not necessarily reflect the opinions of the Queensland Department of Main Roads, Queensland Transport or Maritime Safety Queensland, or endorsed organisations utilising the same infrastructure. If you have received this electronic mail message in error, please immediately notify the sender and delete the message from your computer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: using a datasource connection pool resource with username and password supplied by user
That's right Sasha, I will have to ensure connections are closed down automatically if the user doesn't log out, but at this stage I will note your comment for further research. Thanks, Jeffery S. Eaton Opinions contained in this e-mail do not necessarily reflect the opinions of the Queensland Department of Main Roads, Queensland Transport or Maritime Safety Queensland, or endorsed organisations utilising the same infrastructure. If you have received this electronic mail message in error, please immediately notify the sender and delete the message from your computer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: using a datasource connection pool resource with username and password supplied by user
Jefferey, Are the uses going to be allowed to execute ad hoc queries? If yes, I can see why you would choose to take the take the direct DB authentication route. If not, then a a JDBCRealm could be used and specific role(s) assigned to each user that would govern what they could do in the webapp. The isUserInRole() method in HttpServletRequest can be used to protect parts of the application as needed. Info on JDBCRealms: http://www.jajakarta.org/tomcat/tomcat5.0/en/docs/tomcat-docs/realm-howto.html - Bob --- [EMAIL PROTECTED] wrote: Good question Bob, This system may eventually be implemented for the government department I work for in Queensland, Australia. This project is a pilot one which will involve four separate district offices in four different cities. The department has policies on data security which includes authenticating individual users to a database. As this is a requirement I can't avoid I wanted to find a way to implement it even in the proof-of-concept stage. User authentication can be implemented on the middle tier in Tomcat but I don't think this will satisfy the dept. requirements. That being the case, my plan was to let the database decide if a user can get into the site. If they are authenticated to the db then they have access to the site. One other advantage of db authentication which will be important in this case is the separation of database roles. Users will have access to update only the tables they are approved to access. Jeffery S. Eaton Opinions contained in this e-mail do not necessarily reflect the opinions of the Queensland Department of Main Roads, Queensland Transport or Maritime Safety Queensland, or endorsed organisations utilising the same infrastructure. If you have received this electronic mail message in error, please immediately notify the sender and delete the message from your computer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Q: Why Tomcat return me a OLD version of my doc.jar in an Applet ?
Thaks, Darek I didn´t now that cache... Amadeo. - Original Message - From: Darek Czarkowski [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Friday, October 07, 2005 10:21 PM Subject: Re: Q: Why Tomcat return me a OLD version of my doc.jar in an Applet ? did you clean up your local cache? the jar file might be a local version of the file. You might not be able to see the new version until you remove the old one. (usually ~/.java/.deployment/javaws/) -- Darek Czarkowski Infinite Source Systems Corp. Ph: 604 294 6557 (Ext. 113) Fx: 604 294 6507 www.infinitesource.ca [EMAIL PROTECTED] ce.ca On Sat, 2005-10-08 at 06:05, Amadeo Alonso wrote: Hi list: I apologize me last (first) email to the list with faults on date and form Thanks to Mark Thomas for your explanations. The problem I attempt to solve is the next: When I demand the page 'http://expresiongrafica.caminos.upm.es/PAU/AppletDoc.html', which has an Applet with a tag 'archive=doc.jar', Tomcat (?) v5.5 returns me the OLD VERSION of 'doc.jar' (v1) with the old bugs, as I deduct from the 'Java Console'. I have placed two connector tags in 'server.xml' file to use ports :80 y :8080 in the same way but http://expresiongrafica.caminos.upm.es:8080/PAU/AppletDoc.html return de rigth 'doc.jar' (v2), OK: http://expresiongrafica.caminos.upm.es:80/PAU/AppletDoc.html return de old 'doc.jar' (v1), BAD: using localhost/..., localhost:80/... y localhost:8080/... OK (v2). How can I destroy the old version? where is it? What is it happening? Is maybe a navigators problem? (I get 'similar' results with IE and Firefox ) Thanks in advance Amadeo. Universidad Politécnica de Madrid. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sending mail with JavaMail (solved)
David Tonhofer, m-plify S.A. wrote: --On Friday, October 07, 2005 1:08 PM +0200 Andrés Reyes [EMAIL PROTECTED] wrote: It doesn't work. No way??? Back to basics: find all the places where mail.jar is in this hierarchy of classloaders. Make sure there is only one. Make sure that jaf.jar is at the same level or above it. Bootstrap: uses JVM classes looks in $JAVA_HOME/jre/lib/ext | System:uses $CATALINA_HOME/bin/bootstrap.jar | and $JAVA_HOME/lib/tools.jar | Common:uses $CATALINA_HOME/common/lib / \ and $CATALINA_HOME/common/classes /\and $CATALINA_HOME/common/endorsed / \jsp and servlet API jars are here /+-+ / | Catalina: uses $CATALINA_HOME/server/lib | and $CATALINA_HOME/server/classes| catalina.jar is here | Shared: uses $CATALINA_BASE/shared/lib / \and $CATALINA_BASE/shared/classes / \ Webapp1 Webapp2 ... --- **GREEDY** CLASSLOADERS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] It is solved. I put both (activation.jar and mail.jar) in $JAVA_HOME/jre/lib/ext and removed it from any other place, and it works. Now, I get MessagingException: invalid provider, but I think it is about the mail server. Thanks for your answers. -- /*** * Andrés Reyes ( [EMAIL PROTECTED] ) * TCOR Desarrollos y Sistemas, S.L. * Teléfono: 957 76 42 48 * Fax : 957 76 42 49 ***/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Attribute redirectEmployee invalid for tag UserLogin according to TLD
Hi, Iam getting this error while I try to bring up my application HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: /userLoginPage.jsp(4,0) Attribute redirectEmployee invalid for tag UserLogin according to TLD org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler. java:39) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407 ) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:238 ) org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Vali dator.java:975) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:69 6) org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213) org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219) org.apache.jasper.compiler.Node$Root.accept(Node.java:456) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) org.apache.jasper.compiler.Validator.validate(Validator.java:1475) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:214) org.apache.jasper.compiler.Compiler.compile(Compiler.java:470) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 11) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 95) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.27 logs. Apache Tomcat/5.0.27 Iam using Tomcat 5.0.27 Version Following is my jsp code %@ page language=java % [EMAIL PROTECTED] uri=user prefix=user% user:UserLogin redirectEmployee=eSuccess.html redirectPartner=pSuccess.html/ !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN html head titleTitan Online Parts System - Titan/title link rel=STYLESHEET type=text/css href=css/titan.css meta http-equiv=expires content=0 /head body topmargin=0 leftmargin=0 bgcolor=#33user:UserLoginFormform action=userLoginPage.jsp method=post table width=100% height=100% border=0 cellspacing=0 cellpadding=0 tr td align=center valign=middle table width=780 border=0 cellspacing=0 cellpadding=0 align=center bgcolor=#ff tr td height=32nbsp;/td /tr /table table width=780 border=0 cellspacing=0 cellpadding=0 align=center class=bodyBG bgcolor=#ff height=227 tr td width=20nbsp;/td td valign=bottomimg src=Images/topsTransparent.gif width=195 height=48 border=0 alt=TOPS/td td width=260img src=../Images/shim.gif width=1 height=279 border=0/td td valign=bottom table border=0 cellspacing=0 cellpadding=0 tr td class=textUsername/td tdimg src=Images/shim.gif width=10 height=1 border=0/td td class=text colspan=2Password/td /tr tr tdinput type=text maxlength=10 class=formfield name=userName value=$userName$/td tdimg src=Images/shim.gif width=10 height=1 border=0/td tdinput type=password class=formfield name=password value=$password$ maxlength=20/td tdinput type=image src=Images/goButton.gif width=18 height=20 hspace=5 border=0 alt=Click here to Login/td /tr /table /td td width=15nbsp;/td /tr tr td colspan=5img src=Images/shim.gif width=10 height=14 border=0/td /tr /table table border=0 cellspacing=0 cellpadding=0 width=780 tr tdimg src=Images/squareOneNew.gif width=81 height=77 border=0 alt=/td tdimg src=Images/squareTwoNew.gif width=78 height=77 border=0 alt=/td tdimg src=Images/squareThreeNew.gif width=78 height=77 border=0 alt=/td tdimg src=Images/squareFourNew.gif width=78 height=77 border=0 alt=/td tdimg
Re: JspC exception with log4j in WEB-INF/lib
But as soon as I put log4j-1.2.9.jar into my WEB-INF/lib directory, it doesn't work any more. I get the following exception: [jasper2] java.lang.NullPointerException [jasper2] at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:220) After building a version of Tomcat which logs the exception that happens when trying to create the compiler (by default it's caught without logging), I was able to figure out how to fix it. Apparently, when log4j-1.2.9.jar is in WEB-INF/lib, it also needs to be in the ant/lib directory (or somewhere else in the Ant classpath). If it isn't there, a ClassNotFound exception will be thrown when trying to create the compiler (either Ant or JDT), but this exception is caught without logging and later the NullPointer exception happens. As a side effect, I discovered that the same goes for jasper-compiler-jdt.jar. The JDT compiler will not be used unless it's in the Ant classpath. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SessionListener invoked sometimes and not others
And possibly a HttpSessionActivationListener object as a session attibute. The sessionDidActivate() method on the object gets called if the session is still valid when tomcat restarts. You can use this to fix your state. HTH, Jon Mark Thomas wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] So after a restart of tomcat, I login and it appears the session is still valid, so it does not go through my session listener. I need to be aware of the web application lifecycle and want to grab a resource when the webapp starts and release when the web app goes away. How do I do that? Use a ServletContextListener. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Making applications persistent
I have customers deploying applications via the Tomcat manager application which is working well, but how do i make these persistant so that they remain deplyed after a tomcat service restart? -- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. Any offers or quotation of service are subject to formal specification. Errors and omissions excepted. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Lumison, nplusone or lightershade ltd. Finally, the recipient should check this email and any attachments for the presence of viruses. Lumison, nplusone and lightershade ltd accepts no liability for any damage caused by any virus transmitted by this email. -- -- Virus scanned by Lumison. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems with graphics on Tomcat 5.5.9
Trying again to make the graphics appear in my web app, I did a test web app and I had been trying to start the Tomcat with -Djava.awt.headless=true option as I read in some forums #export CATALINA_OPTS=-Djava.awt.headless=true #/usr/java/jakarta-tomcat/bin/startup.sh But they do not appear either The web test app can be found here http://www.actesoft.com:8080/Prueba/jsp/ and the wanted result after click on Graficar is something like this http://www.actesoft.com/ejGrafico/ (static page) Also I have try to insert in the Graficador.class constructor the next System.set/getProperties lines public Graficador(String Path){ super(); this.contexto = Path; this.background = null; //System.setProperty returns the current value before assignment String vrPropiedad = System.setProperty(java.awt.headless, true); // Log the before assignment value to a log file to debug logger.debug(BEFORE = java.awt.headless = + vrPropiedad); //and log the after assignmet value to a log file too vrPropiedad = System.getProperty(java.awt.headless); logger.debug(NOW = java.awt.headless = + vrPropiedad); } And these are the log file lines the app write 2005-10-10 11:18:15,996 [-t] INFO [index.jsp] - Loading form 2005-10-10 11:18:15,999 [-t] INFO [index.jsp] - Form OK ! 2005-10-10 11:18:24,710 [-t] DEBUG [grafica.jsp] - loading page: grafica.jsp 2005-10-10 11:18:24,716 [-t] DEBUG [grafica.jsp] - Creating object: Graficador 2005-10-10 11:18:24,746 [-t] DEBUG [Graficador] - BEFORE = java.awt.headless = true -- It is True! 2005-10-10 11:18:24,746 [-t] DEBUG [Graficador] - NOW = java.awt.headless = true -- It is True! 2005-10-10 11:18:24,747 [-t] DEBUG [grafica.jsp] - Creating Category 1 ... OK 2005-10-10 11:18:24,747 [-t] DEBUG [grafica.jsp] - Creating Category 2 ... OK 2005-10-10 11:18:24,748 [-t] DEBUG [grafica.jsp] - Creating Category 3 ... OK 2005-10-10 11:18:24,748 [-t] DEBUG [grafica.jsp] - Giving the control to a Graficador Object, it must make the chart 2005-10-10 11:18:24,769 [-t] DEBUG [Graficador] - Starting chart creation ... 2005-10-10 11:18:24,788 [-t] DEBUG [Graficador] - Data process OK 2005-10-10 11:18:25,548 [-t] DEBUG [Graficador] - Creating Chart OK 2005-10-10 11:18:25,549 [-t] DEBUG [Graficador] - Making a PNG image from Chart And here the app trhows an exception Any idea is always welcome, thanks. Mauricio Fernandez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with graphics on Tomcat 5.5.9
What exception ? [ If it's not confidential. :) ] Viorel Dragomir . .. --- - Original Message - From: Mauricio Fernandez A. To: Tomcat Users List Sent: Monday, October 10, 2005 14:42 Subject: RE: Problems with graphics on Tomcat 5.5.9 Trying again to make the graphics appear in my web app, I did a test web app and I had been trying to start the Tomcat with -Djava.awt.headless=true option as I read in some forums #export CATALINA_OPTS=-Djava.awt.headless=true #/usr/java/jakarta-tomcat/bin/startup.sh But they do not appear either The web test app can be found here http://www.actesoft.com:8080/Prueba/jsp/ and the wanted result after click on Graficar is something like this http://www.actesoft.com/ejGrafico/ (static page) Also I have try to insert in the Graficador.class constructor the next System.set/getProperties lines public Graficador(String Path){ super(); this.contexto = Path; this.background = null; //System.setProperty returns the current value before assignment String vrPropiedad = System.setProperty(java.awt.headless, true); // Log the before assignment value to a log file to debug logger.debug(BEFORE = java.awt.headless = + vrPropiedad); //and log the after assignmet value to a log file too vrPropiedad = System.getProperty(java.awt.headless); logger.debug(NOW = java.awt.headless = + vrPropiedad); } And these are the log file lines the app write 2005-10-10 11:18:15,996 [-t] INFO [index.jsp] - Loading form 2005-10-10 11:18:15,999 [-t] INFO [index.jsp] - Form OK ! 2005-10-10 11:18:24,710 [-t] DEBUG [grafica.jsp] - loading page: grafica.jsp 2005-10-10 11:18:24,716 [-t] DEBUG [grafica.jsp] - Creating object: Graficador 2005-10-10 11:18:24,746 [-t] DEBUG [Graficador] - BEFORE = java.awt.headless = true -- It is True! 2005-10-10 11:18:24,746 [-t] DEBUG [Graficador] - NOW = java.awt.headless = true -- It is True! 2005-10-10 11:18:24,747 [-t] DEBUG [grafica.jsp] - Creating Category 1 ... OK 2005-10-10 11:18:24,747 [-t] DEBUG [grafica.jsp] - Creating Category 2 ... OK 2005-10-10 11:18:24,748 [-t] DEBUG [grafica.jsp] - Creating Category 3 ... OK 2005-10-10 11:18:24,748 [-t] DEBUG [grafica.jsp] - Giving the control to a Graficador Object, it must make the chart 2005-10-10 11:18:24,769 [-t] DEBUG [Graficador] - Starting chart creation ... 2005-10-10 11:18:24,788 [-t] DEBUG [Graficador] - Data process OK 2005-10-10 11:18:25,548 [-t] DEBUG [Graficador] - Creating Chart OK 2005-10-10 11:18:25,549 [-t] DEBUG [Graficador] - Making a PNG image from Chart And here the app trhows an exception Any idea is always welcome, thanks. Mauricio Fernandez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems with graphics on Tomcat 5.5.9
You can see that here, after click on Graficar: The web test app can be found here http://www.actesoft.com:8080/Prueba/jsp/ and the wanted result after click on Graficar is something like this http://www.actesoft.com/ejGrafico/ (static page) Mauricio Fernandez -Mensaje original- De: Viorel Dragomir [mailto:[EMAIL PROTECTED] Enviado el: lunes, 10 octubre, 2005 15:53 Para: Tomcat Users List Asunto: Re: Problems with graphics on Tomcat 5.5.9 What exception ? [ If it's not confidential. :) ] Viorel Dragomir . .. --- - Original Message - From: Mauricio Fernandez A. To: Tomcat Users List Sent: Monday, October 10, 2005 14:42 Subject: RE: Problems with graphics on Tomcat 5.5.9 Trying again to make the graphics appear in my web app, I did a test web app and I had been trying to start the Tomcat with -Djava.awt.headless=true option as I read in some forums #export CATALINA_OPTS=-Djava.awt.headless=true #/usr/java/jakarta-tomcat/bin/startup.sh But they do not appear either The web test app can be found here http://www.actesoft.com:8080/Prueba/jsp/ and the wanted result after click on Graficar is something like this http://www.actesoft.com/ejGrafico/ (static page) Also I have try to insert in the Graficador.class constructor the next System.set/getProperties lines public Graficador(String Path){ super(); this.contexto = Path; this.background = null; //System.setProperty returns the current value before assignment String vrPropiedad = System.setProperty(java.awt.headless, true); // Log the before assignment value to a log file to debug logger.debug(BEFORE = java.awt.headless = + vrPropiedad); //and log the after assignmet value to a log file too vrPropiedad = System.getProperty(java.awt.headless); logger.debug(NOW = java.awt.headless = + vrPropiedad); } And these are the log file lines the app write 2005-10-10 11:18:15,996 [-t] INFO [index.jsp] - Loading form 2005-10-10 11:18:15,999 [-t] INFO [index.jsp] - Form OK ! 2005-10-10 11:18:24,710 [-t] DEBUG [grafica.jsp] - loading page: grafica.jsp 2005-10-10 11:18:24,716 [-t] DEBUG [grafica.jsp] - Creating object: Graficador 2005-10-10 11:18:24,746 [-t] DEBUG [Graficador] - BEFORE = java.awt.headless = true -- It is True! 2005-10-10 11:18:24,746 [-t] DEBUG [Graficador] - NOW = java.awt.headless = true -- It is True! 2005-10-10 11:18:24,747 [-t] DEBUG [grafica.jsp] - Creating Category 1 ... OK 2005-10-10 11:18:24,747 [-t] DEBUG [grafica.jsp] - Creating Category 2 ... OK 2005-10-10 11:18:24,748 [-t] DEBUG [grafica.jsp] - Creating Category 3 ... OK 2005-10-10 11:18:24,748 [-t] DEBUG [grafica.jsp] - Giving the control to a Graficador Object, it must make the chart 2005-10-10 11:18:24,769 [-t] DEBUG [Graficador] - Starting chart creation ... 2005-10-10 11:18:24,788 [-t] DEBUG [Graficador] - Data process OK 2005-10-10 11:18:25,548 [-t] DEBUG [Graficador] - Creating Chart OK 2005-10-10 11:18:25,549 [-t] DEBUG [Graficador] - Making a PNG image from Chart And here the app trhows an exception Any idea is always welcome, thanks. Mauricio Fernandez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Illegal Field Name Error
I am receiving the following error when trying to run a Struts application. I checked and it seems that I do have all of the appropriate jar files installed. But for some reason, the Action class is not being recognized. Any help would be greatly appreciated. Thank you. - Asad HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Illegal field name has inconsistent hierarchy in class registration/RegistrationTypeAction org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:293) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) root cause java.lang.ClassFormatError: Illegal field name has inconsistent hierarchy in class registration/RegistrationTypeAction java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:620) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1629) org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181) org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117) org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143) org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:280) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:218) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Subject.java:517) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs. Apache Tomcat/5.5.9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Example build.xml error?
Hi List, Starting a new project, I deceided to move to Tomcat 5.5. In the Application Developer's Guide http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html There is an example build.xml file for installing reloading the project, a basic build-file: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/build.xml.txt Using this build.xml file works fine, except for one thing. Whenever I do a change followed by ant reload, it does not deploy the changes to the server. The changed files are recompiled in to the local /build folder, followed by a reload of the server, but the changed files are never deployed to the server. Maybe my setup is wrong, maybe it is not supposed to support this, or maybe it's just an error? Regards, René - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 5.0.28 redirect issue (error 302)
All, I installed jakarta-tomcat-5.0.28 on my PC and changed port to 8283 and added a simple servlet which has doGet and doPost. I used a java program which uses httpclient to send doGet and doPost requests to that servlet. doGet worked well. However, I got following error msg for doPost request: Oct 7, 2005 3:56:52 PM org.apache.commons.httpclient.HttpMethodBase processRedirectResponse INFO: Redirect requested but followRedirects is disabled The Status code = 302 Same program worked fine for tomcat 4. Any ideas? Thanks in advance. Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Turning on debugging in Tomcat 5.5
On Fri, Oct 07, 2005 at 09:28:23PM -0700, Bill Barker wrote: James Rome [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Most of the installed Tomcat classes have something like container.isDebugEnabled() {...} How do I enable these debug statements in Tomcat 5.5? I'll assume that you are using Juli. If you are using log4j, compare what I'm saying to http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html to see what you need to do. First you edit $CATALINA_HOME/conf/logging.properties and add and something like: org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/myapp].level = FINE Would this control the logging of the tomcat server itsel, too? Returning to my previous mail, if I activate connectionTimeout in the asp13 connector tomcat starts to pollute my catalina.out with messages about timedout connections. I know that there are connections which tend to timeout, such is life, but its a waste of time and storage when tomcat itself informs we about that fact :) Looking inside properties file I find the default log level and it is: # Default global logging level. # This specifies which kinds of events are logged across # all loggers. For any given facility this global level # can be overriden by a facility specific level # Note that the ConsoleHandler also has a separate level # setting to limit messages printed to the console. .level= INFO So, I guess, if I use something like .level=WARN the pollution of catalina.out may will stop? Regards, Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Turning on debugging in Tomcat 5.5
On Mon, Oct 10, 2005 at 04:41:32PM +0200, Marcus Franke wrote: On Fri, Oct 07, 2005 at 09:28:23PM -0700, Bill Barker wrote: # Default global logging level. # This specifies which kinds of events are logged across # all loggers. For any given facility this global level # can be overriden by a facility specific level # Note that the ConsoleHandler also has a separate level # setting to limit messages printed to the console. .level= INFO So, I guess, if I use something like .level=WARN the pollution of catalina.out may will stop? Ok, had a deeper look inside the tomcat startup scripts on my RHEL box and catalina.out is written as a redirect of the tomcat stdout. So, my next guess is, java.util.logging.ConsoleHandler.level = INFO could be the right paramter to change? Sorry, it seems Im not as half as familliar with this stuff as I should be :( Marcus -- What terrible way to die. There are no good ways. -- Sulu and Kirk, That Which Survives, stardate unknown - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Turning on debugging in Tomcat 5.5
On Mon, Oct 10, 2005 at 05:20:07PM +0200, Marcus Franke wrote: On Mon, Oct 10, 2005 at 04:41:32PM +0200, Marcus Franke wrote: On Fri, Oct 07, 2005 at 09:28:23PM -0700, Bill Barker wrote: # Default global logging level. # This specifies which kinds of events are logged across # all loggers. For any given facility this global level # can be overriden by a facility specific level # Note that the ConsoleHandler also has a separate level # setting to limit messages printed to the console. .level= INFO So, I guess, if I use something like .level=WARN the pollution of catalina.out may will stop? Ok, had a deeper look inside the tomcat startup scripts on my RHEL box and catalina.out is written as a redirect of the tomcat stdout. So, my next guess is, java.util.logging.ConsoleHandler.level = INFO could be the right paramter to change? oh no, neither of these points stops my tomcat from being extremly talkativ. Any other hints or suggestions how to silence the tomcat? Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
apache -- tomcat (mod_jk) works on localhost but not other hosts
I'm very new to tomcat and apache. I've set up apache to forward to tomcat using mod_jk. It works fine on the localhost, but if I try to connect through to tomcat from any other host I get 404 file not found, although I can connect to apache. As follows: These work on localhost: http://localhost --apache http://localhost/servlets-examples --tomcat (So do these of course: http://localhost:8080/ --tomcat http://localhost:8080/servlets-examples --tomcat) And this is what happens on another host: http://hostname --apache http://hostname/servlets-examples --404 file not found http://hostname:8080/servlets-examples --tomcat OS = RHEL 4 Apache 2.0.52-19.ent (Red Hat RPM) Tomcat 5.5.9-1jpp_5rh (Red Hat RPM) mod_jk-ap20-1.2.6-3jpp_7rh (Red Hat RPM) (Red Hat apparently doesn't offer a mod_jk2) It was setup according to Pro Jakarta Tomcat 5 (Moodie, 2005), although I'm sure it's not the book's fault. Basically I modified server.xml to autogen mod_jk.conf and added listener to Host, modified workers.properties, and httpd.conf. I have a feeling this is something simple, and I have tried to find an answer with no luck. If anyone has any suggestions I would be greatly appreciative. Scott __ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache -- tomcat (mod_jk) works on localhost but not other hosts
On Mon, 10 Oct 2005 09:01:04 -0700 (PDT) tomcat-user@jakarta.apache.org wrote: I'm very new to tomcat and apache. I've set up apache to forward to tomcat using mod_jk. It works fine on the localhost, but if I try to connect through to tomcat from any other host I get 404 file not found, Please send us your workers.properties and httpd.conf. -- Lyndon Tiu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache -- tomcat (mod_jk) works on localhost but not other hosts
--- Lyndon Tiu [EMAIL PROTECTED] wrote: On Mon, 10 Oct 2005 09:01:04 -0700 (PDT) tomcat-user@jakarta.apache.org wrote: I'm very new to tomcat and apache. I've set up apache to forward to tomcat using mod_jk. It works fine on the localhost, but if I try to connect through to tomcat from any other host I get 404 file not found, Please send us your workers.properties and httpd.conf. attached, tia, scott __ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
silent install of Tomcat
Hi, I need to install tomcat 5.0.28 silently for my application. Can this be done. If this issue has been previously discussed please send me a pointer to the message. thanks, vivek - Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
Re: silent install of Tomcat
On Mon, Oct 10, 2005 at 10:36:55AM -0700, krux mania wrote: Hi, I need to install tomcat 5.0.28 silently for my application. Can this be done. If this issue has been previously discussed please send me a pointer to the message. What do you mean with silent installation? Marcus -- Those who hate and fight must stop themselves -- otherwise it is not stopped. -- Spock, Day of the Dove, stardate unknown - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: silent install of Tomcat
Hi Marcus, Silent installation also referred to as batch installation is the process where the install takes place without presenting any dialogs to the user. The user input is put into a properties file and the installation takes it from there. vivek Marcus Franke [EMAIL PROTECTED] wrote: On Mon, Oct 10, 2005 at 10:36:55AM -0700, krux mania wrote: Hi, I need to install tomcat 5.0.28 silently for my application. Can this be done. If this issue has been previously discussed please send me a pointer to the message. What do you mean with silent installation? Marcus -- Those who hate and fight must stop themselves -- otherwise it is not stopped. -- Spock, Day of the Dove, stardate unknown - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
Re: silent install of Tomcat
On Mon, Oct 10, 2005 at 11:11:30AM -0700, krux mania wrote: Hi Marcus, Silent installation also referred to as batch installation is the process where the install takes place without presenting any dialogs to the user. The user input is put into a properties file and the installation takes it from there. Sounds like you are using Windows? On my Linux boxes I installed quite silently using rpm and no questions to be answered.. But you could use the tarball/zip for it. Marcus -- There are some things worth dying for. -- Kirk, Errand of Mercy, stardate 3201.7 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: silent install of Tomcat
Maybe you can try with the .zip distribution if your so is Windows or .tar.gz if Linux or whatever you want/need from http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi If you don´t know which one download read the README http://apache.org.es/jakarta/tomcat-5/v5.5.12/README.html Mauricio Fernandez -Mensaje original- De: krux mania [mailto:[EMAIL PROTECTED] Enviado el: lunes, 10 octubre, 2005 19:37 Para: tomcat-user@jakarta.apache.org Asunto: silent install of Tomcat Hi, I need to install tomcat 5.0.28 silently for my application. Can this be done. If this issue has been previously discussed please send me a pointer to the message. thanks, vivek - Yahoo! Music Unlimited - Access over 1 million songs. Try it free. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.ClassCircularityError
Caldarale, Charles R wrote: According to the bug report, this is only fixed in Mustang (6.0), not 5.0 (aka 1.5). Ooh, my bad (misread of the fixed release..). Thanks.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: using a datasource connection pool resource with username and password supplied by user
Thanks for the suggestion Bob, I think what you are saying about realms is valid and most likely the easiest way to enforce security. It would be my choice if it wasn't a corporate standards issue. I will read up on the link you sent and see if I can get away with it in terms of meeting with policy. Thank you all for your input. Jeffery S. Eaton Opinions contained in this e-mail do not necessarily reflect the opinions of the Queensland Department of Main Roads, Queensland Transport or Maritime Safety Queensland, or endorsed organisations utilising the same infrastructure. If you have received this electronic mail message in error, please immediately notify the sender and delete the message from your computer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
newbee question on servlet and html
I wrote my first html and servlet and deployed it on tomcat 5.5. The html works okay when i call it from the browser. The servlet too works okay when i call its doget() method by invoking it from the browser. EG:. http://localhost:8080/VBeer/BeerSelect However, when i try to invoke the servlet from an html form I get a message box - (file download security warning) - Do you want to save this file, with a funny number suffixed to the my servlet name. Not sure what is happening. Here is my HTML code snippet. body h1 align =3D centerBeer selecton Page /h1 form method=3DPOST action=3DBeerSelect pSelect Beer Characteristics/p Thanks !
[OT] Re: using a datasource connection pool resource with username and password supplied by user
If the DB login requirement is removed you might want to take a look at Apache Turbine, it supports finer-grained access to a web app. http://jakarta.apache.org/turbine/index.html - Bob --- [EMAIL PROTECTED] wrote: Thanks for the suggestion Bob, I think what you are saying about realms is valid and most likely the easiest way to enforce security. It would be my choice if it wasn't a corporate standards issue. I will read up on the link you sent and see if I can get away with it in terms of meeting with policy. Thank you all for your input. Jeffery S. Eaton Opinions contained in this e-mail do not necessarily reflect the opinions of the Queensland Department of Main Roads, Queensland Transport or Maritime Safety Queensland, or endorsed organisations utilising the same infrastructure. If you have received this electronic mail message in error, please immediately notify the sender and delete the message from your computer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exception loading custom Realm
Hi, I created my own realm by extending UserDatabaseRealm. But when I start the tomcat server, I get the following exception. If I use UserDatabaseRealm, everything works fine. That means Tomcat can and does load the UserDatabaseRealm class without any problem. java.lang.NoClassDefFoundError: org/apache/catalina/realm/UserDatabaseRealm at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at org.apache.catalina.loader.StandardClassLoader.findClass( StandardClassLoader.java:485) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:820) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:721) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:803) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:721) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java :252) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.catalina.util.CatalinaDigester.startElement( CatalinaDigester.java:65) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement (UnknownSource) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.load(Catalina.java:489) at org.apache.catalina.startup.Catalina.load(Catalina.java:528) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java :39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424) java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java :39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424) Caused by: java.lang.NoClassDefFoundError: org/apache/catalina/realm/UserDatabaseRealm at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at org.apache.catalina.loader.StandardClassLoader.findClass( StandardClassLoader.java:485) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:820) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:721) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:803) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:721) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java :252) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.catalina.util.CatalinaDigester.startElement( CatalinaDigester.java:65) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement (UnknownSource) at
Sorry, Suresh is OUT of the office...
I will be out of the office starting 07/10/2005 and will not return until 16/10/2005. If you need to reach me urgently, please e-mail: [EMAIL PROTECTED] I will be out of Singapore but will be available over the (above) e-mail address. Have a nice day, my dear friend:):) SURESH NAIR I'll not be available in the office for a few days. If urgent e-mails, please reach me at: [EMAIL PROTECTED] Have a nice day:):) You can try my home e-mail at: [EMAIL PROTECTED] or [EMAIL PROTECTED] since I will be out of town most of the time... I will respond to your message when I return. Have a nice day. Take care. SURESH NAIR NOTE: Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. All opinions, conclusions and other information expressed in this message not of an official nature shall not be deemed as given or endorsed by Singapore Press Holdings Ltd or any of its subsidiaries unless otherwise indicated by an authorised representative independent of this message. Singapore Press Holdings Ltd Co. Regn No. 198402868E
Re: Exception loading custom Realm
Where did you put the classes? They have to go in either common/lib, or server/lib. Larry On 10/10/05, Surya Mishra [EMAIL PROTECTED] wrote: Hi, I created my own realm by extending UserDatabaseRealm. But when I start the tomcat server, I get the following exception. If I use UserDatabaseRealm, everything works fine. That means Tomcat can and does load the UserDatabaseRealm class without any problem. java.lang.NoClassDefFoundError: org/apache/catalina/realm/UserDatabaseRealm at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at org.apache.catalina.loader.StandardClassLoader.findClass( StandardClassLoader.java:485) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:820) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:721) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:803) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:721) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java :252) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.catalina.util.CatalinaDigester.startElement( CatalinaDigester.java:65) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement (UnknownSource) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.load(Catalina.java:489) at org.apache.catalina.startup.Catalina.load(Catalina.java:528) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java :39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424) java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java :39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424) Caused by: java.lang.NoClassDefFoundError: org/apache/catalina/realm/UserDatabaseRealm at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at org.apache.catalina.loader.StandardClassLoader.findClass( StandardClassLoader.java:485) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:820) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:721) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:803) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:721) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java :252) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.catalina.util.CatalinaDigester.startElement( CatalinaDigester.java:65) at
Re: Exception loading custom Realm
common/lib But it doesn't have problem loading my custom realm. The problem is actually in loading the UserDatabaseRealm: java.lang.NoClassDefFoundError: org/apache/catalina/realm/UserDatabaseRealm Thanks -Surya On 10/10/05, Larry Meadors [EMAIL PROTECTED] wrote: Where did you put the classes? They have to go in either common/lib, or server/lib. Larry On 10/10/05, Surya Mishra [EMAIL PROTECTED] wrote: Hi, I created my own realm by extending UserDatabaseRealm. But when I start the tomcat server, I get the following exception. If I use UserDatabaseRealm, everything works fine. That means Tomcat can and does load the UserDatabaseRealm class without any problem. java.lang.NoClassDefFoundError: org/apache/catalina/realm/UserDatabaseRealm at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java :123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at org.apache.catalina.loader.StandardClassLoader.findClass( StandardClassLoader.java:485) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:820) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:721) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:803) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:721) at org.apache.commons.digester.ObjectCreateRule.begin( ObjectCreateRule.java :252) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.catalina.util.CatalinaDigester.startElement( CatalinaDigester.java:65) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement (Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement (UnknownSource) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch (Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument (Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.load(Catalina.java:489) at org.apache.catalina.startup.Catalina.load(Catalina.java:528) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java :39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424) java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java :39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424) Caused by: java.lang.NoClassDefFoundError: org/apache/catalina/realm/UserDatabaseRealm at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java :123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at org.apache.catalina.loader.StandardClassLoader.findClass( StandardClassLoader.java:485) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:820) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:721) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:803) at org.apache.catalina.loader.StandardClassLoader.loadClass(
Re: Exception loading custom Realm
Are both classes loaded by the same classloader? Larry On 10/10/05, Surya Mishra [EMAIL PROTECTED] wrote: common/lib But it doesn't have problem loading my custom realm. The problem is actually in loading the UserDatabaseRealm: java.lang.NoClassDefFoundError: org/apache/catalina/realm/UserDatabaseRealm Thanks -Surya On 10/10/05, Larry Meadors [EMAIL PROTECTED] wrote: Where did you put the classes? They have to go in either common/lib, or server/lib. Larry On 10/10/05, Surya Mishra [EMAIL PROTECTED] wrote: Hi, I created my own realm by extending UserDatabaseRealm. But when I start the tomcat server, I get the following exception. If I use UserDatabaseRealm, everything works fine. That means Tomcat can and does load the UserDatabaseRealm class without any problem. java.lang.NoClassDefFoundError: org/apache/catalina/realm/UserDatabaseRealm at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java :123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at org.apache.catalina.loader.StandardClassLoader.findClass( StandardClassLoader.java:485) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:820) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:721) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:803) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:721) at org.apache.commons.digester.ObjectCreateRule.begin( ObjectCreateRule.java :252) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.catalina.util.CatalinaDigester.startElement( CatalinaDigester.java:65) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement (Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement (UnknownSource) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch (Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument (Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.load(Catalina.java:489) at org.apache.catalina.startup.Catalina.load(Catalina.java:528) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java :39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424) java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java :39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424) Caused by: java.lang.NoClassDefFoundError: org/apache/catalina/realm/UserDatabaseRealm at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java :123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at org.apache.catalina.loader.StandardClassLoader.findClass( StandardClassLoader.java:485) at org.apache.catalina.loader.StandardClassLoader.loadClass( StandardClassLoader.java:820) at
Newbee question on servlet and html
I wrote my first html and servlet and deployed it on tomcat 5.5. The html works okay when I call it from the browser. The servlet too works okay when I call its doget() method by invoking it from the browser. EG:. http://localhost:8080/VBeer/BeerSelect However, when i try to invoke the servlet from an html form I get a message box - (file download security warning) - Do you want to save this file ? It has a funny number suffixed to the my servlet name. Not sure what is happening. Here is my HTML code snippet. body h1 align =3D centerBeer selecton Page /h1 form method=3DPOST action=3DBeerSelect pSelect Beer Characteristics/p Thanks !
Re: apache -- tomcat (mod_jk) works on localhost but not other hosts
Thanks for the tip Lyndon. It took a few tries, but I finally got it right, I think! __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Add parameters into tomcat service ......
Tomcat (5.0.28) runs on Windows 2003 Server. Web application needs some information from tomcat starup. So I add following statement in startup.bat batch file set JAVA_OPTS=-Xms512m -Xmx512m - Daos.configuration=%CATALINA_HOME%/conf/aos.config Application runs well When I start Tomcat by startup.bat But now I need to install Tomcat as windows service, how to add aforementioned statement into this tomcat service? Following is what I have done for it, but it failed. 1: Modify service.bat file, add --JvmOptions -Xms512m;-Xmx512m;- Daos.configuration=%CATALINA_HOME%/conf/aos.config behind %EXECUTABLE% //IS//%SERVICE_NAME% 2: Make Tomcat as Windows Service run :service install tomcat5 3: Start service 'tomcat5' But application runs not well because it can not get information from startup parameters. My question is: how to add statement set JAVA_OPTS=-Xms512m -Xmx512m - Daos.configuration=%CATALINA_HOME%/conf/aos.config into tomcat5 service? Thanks
Apache Tomcat Web Root Path Disclosure Vulnerability
Hello, One of our customers running Apache Tomcat version 4.1.29 ran some type of a vulnerability scanner which detected an "Apache Tomcat Web Root Path Disclosure Vulnerability". Did some research on the net and many sites mentioned that this vulnerability only affected 4.0.3. But I want to get confirmation from this forum. Thanks. Vineet BhatiaTechnical Support Engineering MailFrontier, Inc.http://www.MailFrontier.com Please leave original e-mail in place when replying.
RE: Add parameters into tomcat service ......
From: Tony Lu [mailto:[EMAIL PROTECTED] Subject: Add parameters into tomcat service .. My question is: how to add statement set JAVA_OPTS=-Xms512m -Xmx512m - Daos.configuration=%CATALINA_HOME%/conf/aos.config into tomcat5 service? Use tomcat5w.exe from the bin directory. Add the options you want under the Java tab. - 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SimpleTagSupport and Adding Tags.
Hi, Is it possible to access SimpleTagSupport tags on a jsp page, using some type of filter object? Thanks, Joe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbee question on servlet and html - Really frustated with this problem.
does anybody know how to fix this problem. Invocation of servlet prompts a messagebox posing a questions do you want to save this ? instead of executing it and returing the output in the html document. :( On 10/10/05, Developer Developer [EMAIL PROTECTED] wrote: I wrote my first html and servlet and deployed it on tomcat 5.5. The html works okay when I call it from the browser. The servlet too works okay when I call its doget() method by invoking it from the browser. EG:. http://localhost:8080/VBeer/BeerSelect However, when i try to invoke the servlet from an html form I get a message box - (file download security warning) - Do you want to save this file ? It has a funny number suffixed to the my servlet name. Not sure what is happening. Here is my HTML code snippet. body h1 align =3D centerBeer selecton Page /h1 form method=3DPOST action=3DBeerSelect pSelect Beer Characteristics/p Thanks !
Re: Newbee question on servlet and html - Really frustated with this problem.
Two questions... (1) Does your servlet implement a doPost() method? Since you are POSTing the form, you need to do that. (2) Is there a typo in your form there? I see: form method=3DPOST action=3DBeerSelect That's not proper... my guess is you want: form method=3DPOST action=3DBeerSelect Frank Developer Developer wrote: does anybody know how to fix this problem. Invocation of servlet prompts a messagebox posing a questions do you want to save this ? instead of executing it and returing the output in the html document. :( On 10/10/05, Developer Developer [EMAIL PROTECTED] wrote: I wrote my first html and servlet and deployed it on tomcat 5.5. The html works okay when I call it from the browser. The servlet too works okay when I call its doget() method by invoking it from the browser. EG:. http://localhost:8080/VBeer/BeerSelect However, when i try to invoke the servlet from an html form I get a message box - (file download security warning) - Do you want to save this file ? It has a funny number suffixed to the my servlet name. Not sure what is happening. Here is my HTML code snippet. body h1 align =3D centerBeer selecton Page /h1 form method=3DPOST action=3DBeerSelect pSelect Beer Characteristics/p Thanks ! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP Newbie seeking guidance
Hello: This is a little intimidating, but I am eager. I hope I am in the right place. I am a DHTML developerintermediate level. I¹ve been exposed to JSP on an iPlanet server, Sun OS 5.8 (but it is my client¹s production server, and I¹m reluctant to mess around there!) I now have my own Tomcat install kind-of-working on a Fedora Core 2 box. It is Tomcat 5.0.x with Apache 1.3. I am studying an APress book called ³JSP 2.0 Novice to Professional,² but get errors with some of the exercises. (The book is great! Makes it sound so easy ;-) My main question is: Can someone recommend a proven Linux, Apache 2 Tomcat 5.5 combinationcould be unix, too. I figure I should set up a stable development rig firstone that I could eventually rely on in a light production environment. Also: I am interested in finding a tutor/mentor in the San Francisco Bay Area. Any advice would be much appreciated. Thanks, John G. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbee question on servlet and html - Really frustated with this problem.
I think you are getting this error because Tomcat doesn't realize you are trying to activate the servlet. You probably will need to look at your WEB-INF/web.xml of your web application. You'll need a servlet/ entry that defines BeerSelect and a servlet-mapping/ that ties BeerSelect to its actual url-pattern. (/VBeer/BeerSelect) You can look at the web.xml in the servlet-examples webapp that comes with Tomcat for sample definitions. Glen Developer Developer escribió: does anybody know how to fix this problem. Invocation of servlet prompts a messagebox posing a questions do you want to save this ? instead of executing it and returing the output in the html document. :( On 10/10/05, Developer Developer [EMAIL PROTECTED] wrote: I wrote my first html and servlet and deployed it on tomcat 5.5. The html works okay when I call it from the browser. The servlet too works okay when I call its doget() method by invoking it from the browser. EG:. http://localhost:8080/VBeer/BeerSelect However, when i try to invoke the servlet from an html form I get a message box - (file download security warning) - Do you want to save this file ? It has a funny number suffixed to the my servlet name. Not sure what is happening. Here is my HTML code snippet. body h1 align =3D centerBeer selecton Page /h1 form method=3DPOST action=3DBeerSelect pSelect Beer Characteristics/p Thanks ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP Newbie seeking guidance
John Geiger escribió: Hello: This is a little intimidating, but I am eager. I hope I am in the right place. I am a DHTML developer‹intermediate level. I¹ve been exposed to JSP on an iPlanet server, Sun OS 5.8 (but it is my client¹s production server, and I¹m reluctant to mess around there!) I now have my own Tomcat install kind-of-working on a Fedora Core 2 box. It is Tomcat 5.0.x with Apache 1.3. Besides the other answers you will get, I would think you would want to run Tomcat standalone (i.e., have it process HTML pages as well), and not bother with connecting it to the Apache web server. You are just learning about JSP right now; not hosting web applications, so Apache is probably an unnecessary distraction at this time. Glen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP Newbie seeking guidance
I am avoiding the real issue--OK, I am ready to face it: javax.servlet.ServletException: javax.servlet.jsp.JspTagException: In lt;drivergt;, invalid driver class name: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver This is the error I get running an exercise from the Apress book. I can not seem to find my way using Google. I think maybe MySQL is not installed--or I am missing an important file...somewhere! Eeek. Thanks. on 10/10/05 8:45 PM, Glen Mazza at [EMAIL PROTECTED] wrote: John Geiger escribió: Hello: This is a little intimidating, but I am eager. I hope I am in the right place. I am a DHTML developer‹intermediate level. I¹ve been exposed to JSP on an iPlanet server, Sun OS 5.8 (but it is my client¹s production server, and I¹m reluctant to mess around there!) I now have my own Tomcat install kind-of-working on a Fedora Core 2 box. It is Tomcat 5.0.x with Apache 1.3. Besides the other answers you will get, I would think you would want to run Tomcat standalone (i.e., have it process HTML pages as well), and not bother with connecting it to the Apache web server. You are just learning about JSP right now; not hosting web applications, so Apache is probably an unnecessary distraction at this time. Glen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** John Geiger Fox Parlor Design Pho 415-821-7100 Fax 415-821-7102 Cell 415-307-2554 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP Newbie seeking guidance
I am not familiar with the book. If they are recommending using Tomcat's connection pools and JNDI, then you will need to add the jar file that contains the MySQL driver to $CATALINA_HOME/common/lib. If you are connecting to the database directly from your web application then you probably need to place the jar file containing the MySQL driver in $CATALINA_HOME/webapps/app-name/WEB-INF/lib, where app-name is the name of your application. You can pick up the MySQL jdbc driver from: http://dev.mysql.com/downloads/connector/j/3.1.html If you are just starting out on jsp/servlet programming, then running Tomcat standalone is probably a good first choice. The later versions of Tomcat (5.5.x) perform pretty much the same as Apache 2.0.x for static pages. Coupling Apache and Tomcat together makes sense when you start using some of the features that Apache supports but that Tomcat may not be optimal for. HTH /mde/ --- John Geiger [EMAIL PROTECTED] wrote: I am avoiding the real issue--OK, I am ready to face it: javax.servlet.ServletException: javax.servlet.jsp.JspTagException: In lt;drivergt;, invalid driver class name: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver This is the error I get running an exercise from the Apress book. I can not seem to find my way using Google. I think maybe MySQL is not installed--or I am missing an important file...somewhere! Eeek. Thanks. __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP Newbie seeking guidance
I would HIGHLY recommend using SuSE Linux 10 which can be purchased or download from Novell directly at suse.com. Also, see the openSuSE project (essentially the open source community effort half of the SuSE/novell team). I used to run RedHat but was disappointed in the drop to Fedora. I tried SuSE a few years ago and have never looked back. So easy to install and configure. The YaST systems management tool is amazing. You can still do everything the manual way (and I do sometimes). But the firewall is easy and strong, the package management is simple, the install resizes partitions (even NTFS). Just so many highly polished surfaces there. Try SuSE and see if you ever go back. I have run tomcat and SuSE in production for over a year and not had a problem and am now in the process of upgrading my production server to SuSE 10 and tomcat 5.5.12. So far so good. It's all working in my development area. The improvements in 5.5.12 are EXCELLENT. But there are significant changes in how you set up the server.xml file, so read up on the 5.5 doc page. I had previously only been using 5.0.x. ALso, I had some glitchy problems with 5.5.9. No reason to download it now anyhow, since 5.5.12 is stable release. I also recommend PostgreSQL 8.0 from postgresql.org if you need database (as i imagine you must) (open source and fully ansiSQL standard and RDBMS compliant, unlike mySQL --don't yell at me for saying so, please-- i know how much many people love mySQL. You have to build Postgresql from source on SuSE 10 since no rpms are out in the combination of those versions of SuSE and PGSQL. I tired to use older RPMS--not a good idea. But the build and install went perfectly. Be sure you have the proper dev packages installed before you try. If not, the documentation tells all you need to know. PostgreSQL 8.0, Tomcat 5.5.12, and SuSE 10 are real winners. I have had --no-- problems with the past versions, and these new versions seem up to par or better. I LOVE SuSE 10.0 for my desktop environment/school computing/web surfing/DVD watching(i use KDE) and run everything just described on my Dell Inspiron 6000 notebook. That's my developemnt envrionment. Obviously the combination of KDE and the servers on a notebook are no match for my production environment. but I must say, my notebook and the software on it do all I ever ask them to--school work, web surfing, large SQL routines, JVM, Tomcat--and a fair bit of graphics design. All on open source software. What a wonderful world we live in. (The DVD's I run on XINE, which I had to build, since XINE is stripped down for leagal reasons in SuSE 10, but the build installed great and runs with no problem just by typing xine in KDE). Justin --with more to say than you probably wanted to here --- John Geiger [EMAIL PROTECTED] wrote: Hello: This is a little intimidating, but I am eager. I hope I am in the right place. I am a DHTML developerintermediate level. I¹ve been exposed to JSP on an iPlanet server, Sun OS 5.8 (but it is my client¹s production server, and I¹m reluctant to mess around there!) I now have my own Tomcat install kind-of-working on a Fedora Core 2 box. It is Tomcat 5.0.x with Apache 1.3. I am studying an APress book called ³JSP 2.0 Novice to Professional,² but get errors with some of the exercises. (The book is great! Makes it sound so easy ;-) My main question is: Can someone recommend a proven Linux, Apache 2 Tomcat 5.5 combinationcould be unix, too. I figure I should set up a stable development rig firstone that I could eventually rely on in a light production environment. Also: I am interested in finding a tutor/mentor in the San Francisco Bay Area. Any advice would be much appreciated. Thanks, John G. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Virtual Hosting and SSL
I am running tomcat 5.5.12 and need to host two sites, both with ssl. Obviously one SSL cert/keystore will not do for two sites. I understand that SSL is IP based because the http header is not read until after the connection is established. I know you can configure tomcat to do virtual hosting based on IP's by adding IPVHost=true to connectors in server.xml file. but you have to specify the keystore a connector will use PER the connector--NOT THE HOST. So even though I can distinguish between IP addresses, it is too late already. The connector has already opened the keystore--without understanding which IP address the request has come from. Can you set up two connectors (one port 443 and one port 80) for one specific ip address and another set of connectors for another ip address? This seems to me (and I am sometimes wrong) the logical way tomcat should work. What good is virtual hosting capability based on IP's if you can't use SSL in conjunction with them? Everybody needs some SSL these days for something or other. Can you tell jsvc to make the daemon listen only on one ip address when you start it, and simply start two dameons listening to different IP's (which would mean two servers running on my machine, and NOT the scenario I would prefer)? I hope some very seasoned pserson can help me. This list has never failed me yet and I have been asking questions for over a year. Mad-Props to all of you! Thanks for everything. Justin __ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Virtual Hosting and SSL
Justin Jaynes wrote: I am running tomcat 5.5.12 and need to host two sites, both with ssl. Can you set up two connectors (one port 443 and one port 80) for one specific ip address and another set of connectors for another ip address? Yes. :-) That's exactly what you need to do. Try it, ask if you run into a specific problem... -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]