Re: Problem with development cycle (5.5.9)
Hello Robert, On 7/8/05, Robert Parsons <[EMAIL PROTECTED]> wrote: > Hi Carlos, > > I had exactly the same problem as you. To fix it I put > a 'context.xml'... yup, that works. I don't like the fact that I lose "directory independence" since now the build directory is "hardwired" but it's definitely a step in the right direction. Thanks a million, Carlos. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
symmetric crypt algorithm
It's a java question more than a tomcat question Do you know where can I find a symmetric crypt algorithm implementation in java?? like blowfish, idea or des?? regards -- -- Carlos J, Bracho M. -- e-mail: [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] +58 416 409 21 75 --
Problem with development cycle (5.5.9)
Hello, I've been developing on the 4.x series and the 5.0.x series for a while, using more or less the Jakarta suggested Ant build.xml script and their source organization (I think it's a de facto standard along with Blueprint's.) Anyway, I started testing a new workflow using J2SDK 5 and the latest 5.5.9 for a new project I'm supposed to start soon. I have made the simplest web application consisting of one JSP and one servlet. But I have (a hopefully simple) problem. If I install (deploy) the application using Ant, it will do so, but not like the old days: it will make the deployment is Tomcat's webapps directory. My previous Tomcat experience is that an application will be deployed directly from the "build" directory, making easy the build/reload/edit development cycle. Now, with 5.5.9, I have to re-deploy and restart Tomcat. What I'm I doing wrong? I realize that Tomcat is doing exactly what's told to do, but I'd like the "old" behavior: deploying from my development build directory. Best regards, Carlos. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Handling exceptions declaratively
Hello everybody. I am trying to handling exceptions declaratively, here is part of my the web.xml file: ladw.model.UserNotFoundException /error.jsp ladw.model.IlegalAccessException /error.jsp ladw.model.InvalidFileNameException /error.jsp testServlet ladw.controller.testServlet testServlet /testServlet I created a test servlet with the following code: /* * testServlet.java * * Created on 3 de julio de 2005, 03:17 PM */ package ladw.controller; import java.io.*; import java.net.*; import ladw.model.UserNotFoundException; import javax.servlet.*; import javax.servlet.http.*; public class testServlet extends HttpServlet { protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { throw new ServletException("Wrapped UserNotFoundException",new UserNotFoundException()); } protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { } } When I write this urL http://localhost:8080/LADW/testServlet in my browser I got the follow error: ladw.model.UserNotFoundException: User does not exist ladw.controller.testServlet.doGet(testServlet.java:28) javax.servlet.http.HttpServlet.service(HttpServlet.java:697) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter( MonitorFilter.java:362) What is wrong in the error pages declaration??? why the error page does not appear? -- ------ Carlos J, Bracho M. -- e-mail: [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] +58 416 409 21 75 --
Frames and request
Hello. I am working with frames (I know it's a bad practice... but I cannot do anything about it) well the problem is: I have one jsp file (outter.jsp) which has 2 frames (inner1.jsp and inner2.jsp), when I forward to outter.jsp I can see the request's attribute, but inner1.jsp and inner2.jsp does not have access to the request's attribute, in fact the have a new request and of course that request does not have the attribute I set before. Can I share the request between the frames??? please help me! -- -- Carlos J, Bracho M. -- e-mail: [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] +58 416 409 21 75 --
Boundle in tag library
Hello. Can I get boundle values using tag library? I try with but it does not work -- -- Carlos J, Bracho M. -- e-mail: [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] +58 416 409 21 75 --
Re: Mail Session ClassCastException
Thanks Dirk, you were right, I had the jar files in common/lib and also in the web-inf/lib Thanks again On 6/29/05, Dirk Weigenand <[EMAIL PROTECTED]> wrote: > > Hi Carlos, > > > --- Ursprüngliche Nachricht --- > > Von: Carlos Bracho <[EMAIL PROTECTED]> > > An: tomcat-user@jakarta.apache.org > > Betreff: Mail Session ClassCastException > > Datum: Tue, 28 Jun 2005 10:08:28 -0400 > > > > Hello everybody. > > > > I am trying to get a mail session using the context's lookup method and > I > > get a ClassCastException. > > > > this is the resource declaration in my context.xml: > > > > > type="javax.mail.Session" > > mail.smtp.host="localhost"/> > > > > the code I am using to lookup the resource is: > > > > Context initialContext = new InitialContext(); > > Object objeto = initialContext.lookup("java:comp/env/mail/sessionMail"); > > String clase = objeto.getClass().getName(); > > if(objeto instanceof javax.mail.Session) > > { > > this.session = (javax.mail.Session) objeto; > > } > > > > when I debug that code I see the "clase" variable has " > javax.mail.Session" > > as value but the if test does not pass > > > > I think your code is correct. What you are running into here is a case of > loading classes via different class loaders. Check that your tomcat > installation and your webapp do not both contain mail.jar. The bean > factory > which provides your javax.mail.Session loads the class probably from the > common/lib/mail.jar and your webapp gets this class from its > WEB-INF/lib/mail.jar so they are both instances of javax.mail.Session but > since loaded via different class loaders not really the same classes. > > > Can anybody help men?? > > Regards, > Dirk > > -- > Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie! > Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl > -- -- Carlos J, Bracho M. -- e-mail: [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] +58 416 409 21 75 --
Stored Procedures problem
I got this exception: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]No ResultSet set was produced at line # 2 in this code: conn = this.dataSource.getConnection(); ResourceBundle resourceBundle = ResourceBundle.getBundle("ladw/resources"); statement = conn.prepareCall(resourceBundle.getString("sp.getPassword")); statement.registerOutParameter(1,Types.VARCHAR); statement.setString(2, userName); statement.registerOutParameter(3,Types.VARCHAR); statement.execute(); String result = rs.getString(1); can somebody help me? -- ------ Carlos J, Bracho M. -- e-mail: [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] +58 416 409 21 75 --
Mail Session ClassCastException
Hello everybody. I am trying to get a mail session using the context's lookup method and I get a ClassCastException. this is the resource declaration in my context.xml: the code I am using to lookup the resource is: Context initialContext = new InitialContext(); Object objeto = initialContext.lookup("java:comp/env/mail/sessionMail"); String clase = objeto.getClass().getName(); if(objeto instanceof javax.mail.Session) { this.session = (javax.mail.Session) objeto; } when I debug that code I see the "clase" variable has "javax.mail.Session" as value but the if test does not pass Can anybody help men?? thanks -- -- Carlos J, Bracho M. -- e-mail: [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] +58 416 409 21 75 --
Servlet Params
Hello everybody. I have a problem, I am a new user of servlet and this kind of thing. I have a servlet, AOPServlet, which uses a parameter (country), but I want to forwards to AOPServlet from other servlet, EditAOPServlet, how could I forward to AOPServlet and send it the country as a paremater??? there's not setParameter method in the resquest object. The AOPServlet the code has: String country = request.getParameter("country"); () The thing is do not set an attribute in the request to save the country name, if I save the country name as an attribute I can reuse the AOPServlet because it gets the country name as a parameter. How can I do? Thanks -- -- Carlos J, Bracho M. -- e-mail: [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] +58 416 409 21 75 --
Generate dynamic form with jsp
Hello everybody... I am writting because I am working in a tabla maintanance database application, the thing is, clicking on a database's table name show all the rows and you can edit, delete or add rows. The form to add or edit must be created dynamically and of course the way you display the table rows. Do you know any framework or any custom tag that could helps me? Thanks -- -- Carlos J, Bracho M. -- e-mail: [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] +58 416 409 21 75 --
Tomcat 5.5.9 and jdk 1.4.2
Hello everybody... Maybe this issues is not new in the mailing list, I having problem to start tomcat 5.5.9, I got this error message in my netbeans output: "This release of Apache Tomcat was packaged to run on J2SE 5.0 or later. It can be run on earlier JVMs by downloading and installing a compatibility package from the Apache Tomcat binary download page." I could not see the compatibility package in the tomcat download page... how could I fix this problem? does anybody have the compatibility package url? Thanks -- ------ Carlos J, Bracho M. -- e-mail: [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] +58 416 409 21 75 --
RE: Tomcat on Solaris 10
I have already running Tomcat in Solaris 10. -Mensaje original- De: Sunil [mailto:[EMAIL PROTECTED] Enviado el: viernes, 17 de junio de 2005 5:40 Para: tomcat-user@jakarta.apache.org Asunto: Tomcat on Solaris 10 Hi, Has anyone got Tomcat running on Solaris 10? Your responses will be appreciated. Thanks - 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]
[OT] Re: email from tomcat
Jenny: Try this: http://java.sun.com/products/javamail/ Click on Technical Articles & Tips This is off topic and not a specific Tomcat question. However, it is a good place to start. -Anthony On Jun 14, 2005, at 1:55 PM, Jenny Yang wrote: Can anyone tell me how to use email from tomcat? I was given that task to do before my summer internship starts. I did numerous google searches, and checked out Tomcat books at the bookstore. I haven't found anything helpful besides this list. Thanks. Jenny Yang "Dream your dreams with open eyes and make them come true." ~t.e. lawrence "Fall seven times, stand up eight." ~japanese proverb __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail - 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: Tomcat vs Apache
Chris: I guess that the applet is just a static file that is served to the client's browser window. Therefore, ANY web server would work just fine. There are no appreciable differences between Tomcat and Apache for your requirements so far. They act very similarly when serving static content. Some can spout off about performance, configurability, etc... But, if you've got it working on Tomcat, I don't think that you'll see any difference using Apache-- unless, of course, there's more to your situation than meets the eye. Hope it helps, -Anthony On May 18, 2005, at 12:14 PM, Chris wrote: I think I need to ask a question before offering any information. When you say applet, do you mean a java applet that runs in a client's browser window? Or, do you have a web application comprised of servlets/jsps (or some analogous configuration)? We have a large java applet that runs in the client's browser window. Chris - 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: Tomcat vs Apache
I think I need to ask a question before offering any information. When you say applet, do you mean a java applet that runs in a client's browser window? Or, do you have a web application comprised of servlets/jsps (or some analogous configuration)? -Anthony On May 18, 2005, at 10:37 AM, Chris wrote: I've been working with Tomcat for a while now, but I haven't messed with Apache yet. Could someone explain or point me to something explaining the differences between Tomcat and Apache? I have a large applet hosted on Tomcat, and am investigating using Apache instead. Is this feasable? TIA. Chris - 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: Tomcat5.5.9 + jdk1.5 HTTPS
Jason Bainbridge gmail.com> writes: > Try specifying an absolute path for the keystoreFile, I'm not sure > what that is relative to and shouldn't that be .keystore anyway? I've tried with an absolute path for the keystore, and with the default ($HOME/.keystore) location, it still does'nt work ! If I misspell the absolute path or if the keystore is not in the default location (without a path in the server.xml), tomcat throws an exception... So tomcat takes the right keystore when I specify it. I've sent the problem to Thawte technical support, they're still trying to find out... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat5.5.9 + jdk1.5 HTTPS
Hello, I'm trying to enable HTTPS with Tomcat5.5.9. Here is my connector description in the server.xml file: my keystore is valid, keys have been imported successfully (certificate from Thawte). New, when I try to connect to https://myserver:8443/, the browser show an error saying he hasn't a common encryption algorithm with the server ... any ideas ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat memory alert (UNCLASSIFIED)
Thanks for your response. I think you are probably right about it being an OS level issue. Is there any third party software which monitors processes in this way? I'm running Windows 2000 server, but not with Active Directory, unfortunately. Thanks! Carlos -Original Message- From: Samara, Fadi N Mr ACSIM/ASPEX [mailto:[EMAIL PROTECTED] Sent: 13 April 2005 15:15 To: 'Tomcat Users List' Subject: RE: Tomcat memory alert (UNCLASSIFIED) Classification: UNCLASSIFIED Caveats: NONE I suspect this might be an OS level issue. If you are behind Active directory, I for sure know you can do it. What OS are you running ? I am not sure if you can specify such parameter in tomcat Fadi -Original Message----- From: Carlos Rule [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 10:10 AM To: 'Tomcat Users List' Subject: Tomcat memory alert Hello all, newbie here. Does anyone know if there is a reliable way of setting up an alert to tell me whenever the Tomcat (5.0.25) process reaches a certain level of memory usage? Many thanks! Carlos Classification: UNCLASSIFIED Caveats: NONE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat memory alert
Hello all, newbie here. Does anyone know if there is a reliable way of setting up an alert to tell me whenever the Tomcat (5.0.25) process reaches a certain level of memory usage? Many thanks! Carlos
Re: Jk1 jkstatus?
Good afternoon Byron. There is a way in JK to check the status of your workers and even configure them to some degree. It requires pretty much the same setup as in JK2; for details about this and other VERY useful info on putting Apache and Tomcat together see this webinar: https://jboss.webex.com/jboss/onstage/tool/record/viewrecording1.php?EventID=136098785. Regards, Carlos * Be adbvised that in order to view the webinar you need to install an ActiveX control in your IExplorer. - Original Message - From: "Guernsey, Byron (GE Consumer & Industrial)" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, March 15, 2005 2:03 PM Subject: Jk1 jkstatus? So with JK 1.2.8, is there any equivilent method of finding the data in the jkstatus scoreboard from mod_jk2?? I understand jk2 is no longer the choice module for Apache 2.0.x. Funny, when we first upgraded to Apache 2, the official line was that mod_jk1 should not be used with Apache 2, and we needed to get with the program and move to the refactored jk2- once we did, jk2 was no longer supported and considered flaky- meanwhile on the Apache 2 developers list there continues to be threads asking why people still use Apache 1.3 and aren't upgrading to 2.0, or may even be downgrading in some cases from 2 back to 1.3- I think its partly because things like the jkX confusion. So now we are running on an unsupported platform where at any time a patch could create problems with mod_jk2 with no resolution except to fix it ourselves, and sure ajp13_proxy is coming, but we won't be first in line with apache 2.2 after playing musical chairs with jk1/jk2. So what other things besides the scoreboard will I have to live without when downgrading back to JK1? Byron - 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: Server on Mac
Try this? http://wiki.apache.org/jakarta-tomcat/TomcatOnMacOS On Mar 1, 2005, at 8:26 PM, Lisa Thompson wrote: I am new to “website development”, use Dreamweaver to develop my sites, and have been attempting to get the Tomcat server running on my Mac OSX system. I would like to integrate a database using Dreamweaver with their Coldfusion technology. Macromedia recommended Tomcat for the server technology. I downloaded it, installed it, and now would like to deploy it. I am not familiar with the use of Terminal, however. So, being a novice, can anyone direct me in how to get it going? Thanks, Lisa - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where can I find Tomcat statistics?
Hi all, I'm looking for some tomcat/jakarta statistics. The kind of information I'm looking is: * Number of systems running jakarta. * Comparative between jakarta/iAS,. I mean something like the information for apache available in: http://news.netcraft.com/archives/web_server_survey.html If anyone know where can I find this info, please let me know. Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: virtualhost and deployment applications
Thanks for your answer. I'll show you my server.xml conf: ... autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false" > suffix=".txt" timestamp="true"/> ... my tomcat is installed in the dir /usr/local/jakarta_5. When I deploy a war using the manager web app : http://domain1.com/manager the war is copied in the dir /usr/local/jakarta_5 instead WWW/domain1.com, and therefore is deployed in the domain2.com too. Atentamente: Ing. Carlos Gabriel Arce Administrador del Hosting TELESAT S.A Cisco CCNA 10677416 Pbx. 57-2 - 644 0400 Fax. 57-2 - 644 0507 Cali, Colombia http://www.telesat.com.co Quien no ha afrontado la adversidad no conoce su propia fuerza. Benjamin Jonson. La información adjunta en este mensaje es de uso exclusivo de la/s persona(s) o entidad/es a la que está dirigida y puede incluir información confidencial, personal y/o material protegido legalmente. La recepción de este mensaje por cualquier otra persona distinta de los destinatarios a los que está dirigido, no implica renuncia alguna al privilegio o derecho de confidencialidad. Se prohíbe el análisis, la retransmisión, divulgación o cualquier otro uso, o acción relacionada con esta información que fuera llevada a cabo por personas distintas del destinatario al cual la información está dirigida. Si recibe esta información por error, comuníquese con el remitente y proceda a borrarla de inmediato de todos los equipos de cómputo donde pueda quedar almacenada. Telesat entiende que el destinatario de este mensaje ha tomado todas las medidas técnicamente recomendables y apropiadas para evitar la contaminación por virus. Telesat S.A. no se hace responsable por la eventual transmisión de virus o programas dañinos por este medio, ni acepta responsabilidad alguna por eventuales daños o alteraciones derivados de la recepción o uso del presente mensaje. Las opiniones, conclusiones y otra información contenida en este correo no relacionadas con el negocio oficial de Telesat S.A. deben entenderse como personales y de ninguna manera son avaladas por la Compañía. Agradecemos su atención. Mario Winterer escribió: Hi! I think, there's something wrong with your context-definition or server.xml. Make sure each of your hosts have a webapplication base directory for their own!!! Do not use one single webapps-directory for all of your hosts! My directory structure looks as follows: /Tomcat/hosts// Inside server.xml, where the hosts are defined, each host's appBase-attribute points to the correspoding host-directory. Apart from that: If your tomcat's auto-deploy feature is activated, you can deploy a web-application by simply copying the war file into your webapps-directory (or any other directory that you specified in server.xml). Best regards, Tex Carlos Gabriel Arce wrote: But when I deploy a local .war in the administration page www.domain1.com/manager/html this war gets replicated in other virtualhosts. Mario Winterer escribió: Of course! That's Tomcat's default behaviour - and in fact, it is difficult to make it behave different! Have a look at server.xml of your tomcat's default installation (you need a host-element for each virtual host). More information can be found at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/index.html. Best regards, Tex Carlos Gabriel Arce schrieb: Good Day I have a question. Is possible deploy an application per virtualhost, where the deployed applications per virtualhost could'nt see them each other? Thanks in advance. - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: virtualhost and deployment applications
But when I deploy a local .war in the administration page www.domain1.com/manager/html this war gets replicated in other virtualhosts. Mario Winterer escribió: Of course! That's Tomcat's default behaviour - and in fact, it is difficult to make it behave different! Have a look at server.xml of your tomcat's default installation (you need a host-element for each virtual host). More information can be found at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/index.html. Best regards, Tex Carlos Gabriel Arce schrieb: Good Day I have a question. Is possible deploy an application per virtualhost, where the deployed applications per virtualhost could'nt see them each other? Thanks in advance. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
virtualhost and deployment applications
Good Day I have a question. Is possible deploy an application per virtualhost, where the deployed applications could'nt see them each other? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Starting a tomcat from a java program
Hi Rajaneesh. You could also take a look at http://cargo.codehaus.org/: "Cargo provides a Java API to start/stop and configure Java containers" Carlos - Original Message - From: "Caldarale, Charles R" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, February 03, 2005 8:05 AM Subject: RE: Starting a tomcat from a java program From: Rajaneesh [mailto:[EMAIL PROTECTED] Subject: Starting a tomcat from a java program How do I start tomcat from a java program? If you want to just kick off an independent execution of Tomcat, use Runtime.exec() to launch the startup script appropriate for your platform. If you want to run Tomcat inside your existing JVM/process (aka embedded), you're in for a fair amount of work. Try Googling for "Tomcat" and "embedded". A starting point might be: http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html but it's nearly three years old, so some things have undoubtedly changed. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
virtualhost and deployment applications
Good Day I have a question. Is possible deploy an application per virtualhost, where the deployed applications per virtualhost could'nt see them each other? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: please give me index.jsp
Thank you so much. My version is 4.1 Anybody has the file? Thanks -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 12:17 PM To: Tomcat Users List Subject: RE: please give me index.jsp You haven't stated which version. Here is the latest from CVS. You will see a download link at the top of the page. http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/webapps/ROOT/index .jsp?rev=1.17&view=log On Wed, 2005-02-02 at 15:11, Carlos A.García wrote: > Thanks.. > >From where? > I searched the apache home.. > > Do you know where is the file? > > Thank you > > Carlos > > > -Original Message- > From: Ben Souther [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 02, 2005 11:52 AM > To: Tomcat Users List > Subject: Re: please give me index.jsp > > Why not just download it? > > On Wed, 2005-02-02 at 14:49, Carlos A.García wrote: > > Hi. > > > > > > > > I accidentally deleted it.. > > > > > > > > Anybody has it form? Please send > > > > > > > > Thanks !!! > > > > > > > > Carlos > > > > > > > > > - > 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] > > - 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: please give me index.jsp
Thanks.. >From where? I searched the apache home.. Do you know where is the file? Thank you Carlos -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 11:52 AM To: Tomcat Users List Subject: Re: please give me index.jsp Why not just download it? On Wed, 2005-02-02 at 14:49, Carlos A.García wrote: > Hi. > > > > I accidentally deleted it.. > > > > Anybody has it form? Please send > > > > Thanks !!! > > > > Carlos > > > - 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]
please give me index.jsp
Hi. I accidentally deleted it.. Anybody has it form? Please send Thanks !!! Carlos
virtualhost and deployment applications
Good Day Please help me with a question. I have a Tomcat 5 server running with jdk in a linux box (red hat 9). This server have many virtualhosts configured by host directive. I have a trouble when a hosting deploys an application because the war gets deployed in the catalina home. The problem is this application is visible for the rest of virtualhosts. Is there any form, using one tomcat instance ( one JVM) where the hosting can deploy your applications without disturb the rest of hostings? The JDK version is j2sdk1.4.0_01 The tomcat server version is jakarta-tomcat-5.0.19 This is the configuration of my server.xml: factory org.apache.catalina.users.MemoryUserDatabaseFactory pathname conf/tomcat-users.xml prefix="domain1.com_access-log." suffix=".txt" pattern="common" directory="logs" /> Thanks in advance. -- Atentamente: Ing. Carlos Gabriel Arce Administrador del Hosting TELESAT S.A Cisco CCNA 10677416 Pbx. 57-2 - 644 0400 Fax. 57-2 - 644 0507 Cali, Colombia http://www.telesat.com.co Quien no ha afrontado la adversidad no conoce su propia fuerza. Benjamin Jonson. La información adjunta en este mensaje es de uso exclusivo de la/s persona(s) o entidad/es a la que está dirigida y puede incluir información confidencial, personal y/o material protegido legalmente. La recepción de este mensaje por cualquier otra persona distinta de los destinatarios a los que está dirigido, no implica renuncia alguna al privilegio o derecho de confidencialidad. Se prohíbe el análisis, la retransmisión, divulgación o cualquier otro uso, o acción relacionada con esta información que fuera llevada a cabo por personas distintas del destinatario al cual la información está dirigida. Si recibe esta información por error, comuníquese con el remitente y proceda a borrarla de inmediato de todos los equipos de cómputo donde pueda quedar almacenada. Telesat entiende que el destinatario de este mensaje ha tomado todas las medidas técnicamente recomendables y apropiadas para evitar la contaminación por virus. Telesat S.A. no se hace responsable por la eventual transmisión de virus o programas dañinos por este medio, ni acepta responsabilidad alguna por eventuales daños o alteraciones derivados de la recepción o uso del presente mensaje. Las opiniones, conclusiones y otra información contenida en este correo no relacionadas con el negocio oficial de Telesat S.A. deben entenderse como personales y de ninguna manera son avaladas por la Compañía. Agradecemos su atención. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Rejected client certificate by the server
Hello everyone. I writing you because a I have a big problem using ssl and client authenticate. I created a connector for the client connections: As it is for educational proposes, I created my own self-signed CA using openssl and generate a certificate request for the web server and then I signed with the self-signed CA. Then I created a client certificate and I signed with the self-signed CA, I import the self-signed CA in firefox as a certificate authority and the client certificate as a client certificate, but when I try to establish a connection I got this error message: "Could not establish an encrypted connection because your certificate was rejected by agatha. Error Code -12271" (agatha is the apache server). I got a openssl manual and I saw I followed the right steps to create the CA and the client certificate, I also read that the common name of the client must match an entry in tomcat-users.xml, I created an entry with this common name and the error message still appears. When I use Internet Explorer I get a error page with this title: The page cannot be displayed I opened the stdout.log file and there is a exception repeated 5 times: NotifyUtil::java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at sun.net.NetworkClient.doConnect(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.(Unknown Source) at sun.net.www.http.HttpClient.(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source) at org.netbeans.modules.web.monitor.server.NotifyUtil$RecordSender.run(NotifyUtil.java:237) :'( What is happening??? is there something wrong?? -- -- Carlos J, Bracho M. -- e-mail: [EMAIL PROTECTED] MSN:[EMAIL PROTECTED] +58 416 409 21 75 -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Symbolic links with Tomcat 5.028
Hello, I use alloLinking in my webapp and it works. My server.xml file has this context: Regards Carlos From: Franck Lefebure [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 19 de Janeiro de 2005 14:45 To: tomcat-user@jakarta.apache.org Subject: Symbolic links with Tomcat 5.028 Hi, I'm not able to follow Symbolic Links with Tomcat 5.028 My server.xml looks like: But it doesn't work, I put some trace in the file() methode of org.apache.naming.resources.FileDirContext, If I echo the property allowLinking It appears "false" Some help maybe Thanks -- Franck Lefebure Orange Caraibe IMPORTANT. CONFIDENTIEL : Les informations contenues dans ce message sont confidentielles et peuvent être protégées par la loi. Ce message est établi à l'intention exclusive de ses destinataires. Si vous recevez ce message par erreur, toute lecture, exploitation ou transmission des informations contenues dans ce message est interdite. Merci de prévenir l'expéditeur et de supprimer de votre ordinateur le message et tous les fichiers éventuellement attachés. Tout message électronique est susceptible d'altération. Orange Caraïbe décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié ; de même, il appartient au destinataire de s'assurer de l'absence de tout virus. http:/www.orangecaraibe.com <http://www.orangecaraibe.com/> IMPORTANT. CONFIDENTIALITY : this e-mail is confidential and meant for only the intended recipients of the transmission, and may be a communication privileged by law. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify the sender immediately of the error by return e-mail and please delete this message and any attachments from your system. Thank you in advance for your cooperation. E-mails are susceptible to alteration. Orange Caraïbe shall not be liable for the message if altered, changed or falsified. the recipient should ensure they are actually virus free. Orange Caraïbe may monitor all incoming and outgoing e-mails in line with current legislation. http:/www.orangecaraibe.com <http://www.orangecaraibe.com/> -- Esta mensagem e quaisquer anexos são confidenciais, podendo conter informação sujeita a sigilo profissional ou qualquer outro dever de confidencialidade ou de segredo. Caso não seja o destinatário deste e-mail, não deverá usar, copiar ou revelar o seu conteúdo, solicitando-se que contacte o emissor com a brevidade possível e apague esta mensagem. Obrigado pela colaboração. -- The information transmitted is intended for the person or entity to which it is addressed only and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Thank you for your cooperation.
RE: tomcat4 + postgresql jdbc
Hi, Is it possible that the database connection credentials are not right? Have you tried connecting to the database from the standard client with the same username and password? Regards Carlos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Oege de Moor Sent: terça-feira, 18 de Janeiro de 2005 16:27 To: tomcat-user@jakarta.apache.org Subject: tomcat4 + postgresql jdbc I'm attempting to install tomcat4 + postgresql jdbc under Debian linux. I've put the jdbc jar at /usr/share/tomcat4/common/lib/pg74.215.jdbc3.jar When I attempt to connect to a database via jsp, I get java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve) I've put a file "test2.jsp" at /var/lib/tomcat4/webapps/ROOT, with the following contents: - <[EMAIL PROTECTED] import="java.sql.*"%> <% // Define the connection Connection con = null; // Check that the DB2Driver class is available Class.forName("org.postgresql.Driver"); try { // Attempt to connect to the Database con = DriverManager.getConnection("jdbc:postgresql:demodb","oege","xxx"); out.println("The test is complete, your Database has been contacted"); } // Make sure to catch any exceptions catch (SQLException e) { out.println(e.getMessage()); } %> --- When I point my web browser at http://localhost:8180/test2.jsp, the above exception occurs. The full stack trace is appended below. I've attempted adding this line to the security policy file in /etc/tomcat4/policy.d/99examples.policy: grant codeBase "file:/usr/share/tomcat4/common/lib/pg74.215.jdbc3.jar!/-" { permission java.security.AllPermission; }; Any help would be much appreciated! -Oege Something unusual has occured to cause the driver to fail. Please report this exception: Exception: java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve) Stack Trace: java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269) at java.security.AccessController.checkPermission(AccessController.java:401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:524) at java.lang.SecurityManager.checkConnect(SecurityManager.java:1023) at java.net.InetAddress.getAllByName0(InetAddress.java:1000) at java.net.InetAddress.getAllByName0(InetAddress.java:981) at java.net.InetAddress.getAllByName(InetAddress.java:975) at java.net.InetAddress.getByName(InetAddress.java:889) at java.net.InetSocketAddress.(InetSocketAddress.java:114) at java.net.Socket.(Socket.java:124) at org.postgresql.core.PGStream.(PGStream.java:47) at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJdbc1Connection.java:197) at org.postgresql.Driver.connect(Driver.java:139) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at org.apache.jsp.test2_jsp._jspService(test2_jsp.java:51) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:51) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:129) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:125) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133) at
RE: web.xml parsing error SEVERE
Thank you François! Reinstalled tomcat and it worked!! Regards Carlos -Original Message- From: Francois JEANMOUGIN [mailto:[EMAIL PROTECTED] Sent: segunda-feira, 17 de Janeiro de 2005 16:12 To: Tomcat Users List Subject: RE: web.xml parsing error SEVERE > java.lang.ClassNotFoundException: org.apache.catalina.Container Ouch! Are you sure your tomcat installtion is OK? You could have a version mismatch (between TC4 and TC5) or a jar found at two places or any other reason why tomcat can't find this class. This is not an XML issue, this is a class loading problem. François. Décharge / Disclaimer Ce message et toutes les pièces jointes (ci-après le "message") sont confidentiels et établis à l'intention exclusive des destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique étant susceptible d'altération, 123Multimédia et ses filiales déclinent toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Therefore neither 123Multimédia nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Esta mensagem e quaisquer anexos são confidenciais, podendo conter informação sujeita a sigilo profissional ou qualquer outro dever de confidencialidade ou de segredo. Caso não seja o destinatário deste e-mail, não deverá usar, copiar ou revelar o seu conteúdo, solicitando-se que contacte o emissor com a brevidade possível e apague esta mensagem. Obrigado pela colaboração. -- The information transmitted is intended for the person or entity to which it is addressed only and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Thank you for your cooperation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: web.xml parsing error SEVERE
One more thing you might want to consider: The web app was working fine until the server admin did an upgrade on the cpanel app that's what started this all... -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: segunda-feira, 17 de Janeiro de 2005 15:38 To: Tomcat Users List Subject: RE: web.xml parsing error SEVERE personally it looks ok to me ;) probably a character out of place. i would try this .. 1) run it through an XML validator 2) gradually remove elements and see when the error goes away. start with the servlet mappings and servlets and continue ... A. > -Original Message- > From: Carlos Martins [mailto:[EMAIL PROTECTED] > Sent: 17 January 2005 15:31 > To: tomcat-user@jakarta.apache.org > Subject: web.xml parsing error SEVERE > > > Dear subscribers, > > I am having a strange problem starting tomcat. > Catalina.out says I have an error at the closing tag > > Any clue on what the problem might be? > > Your comments will be most appreciated. > > Sincerely yours > Carlos > > The error reads as follows: > Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.Catalina load > INFO: Initialization processed in 949 ms Jan 17, 2005 12:01:28 PM > org.apache.catalina.core.StandardService start > INFO: Starting service Catalina > Jan 17, 2005 12:01:28 PM org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 Jan 17, 2005 > 12:01:28 PM org.apache.catalina.core.StandardHost start > INFO: XML validation disabled > Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.ContextConfig > defaultConfig > INFO: No default web.xml > Jan 17, 2005 12:01:28 PM org.apache.commons.digester.Digester > endElement > SEVERE: End event threw exception > java.lang.ClassNotFoundException: org.apache.catalina.Container > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC > lassLoader > .java:1340) > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC > lassLoader > .java:1189) > at > org.apache.commons.digester.SetNextRule.end(SetNextRule.java:243) > at org.apache.commons.digester.Rule.end(Rule.java:276) > at > org.apache.commons.digester.Digester.endElement(Digester.java:1058) > at > org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) > at > org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown > Source) > at > org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown > Source) > at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown > Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndE > lement(Unk > nown Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragment > ContentDis > patcher.dispatch(Unknown Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocu > ment(Unkno > wn 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.ContextConfig.applicationConfig(Co > ntextConfi > g.java:263) > at > org.apache.catalina.startup.ContextConfig.start(ContextConfig. > java:624) > at > org.apache.catalina.startup.ContextConfig.lifecycleEvent(Conte > xtConfig.j > ava:216) > at > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L > ifecycleSu > pport.java:119) > at > org.apache.catalina.core.StandardContext.start(StandardContext > .java:4290 > ) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) > at > org.apache.catalina.core.StandardHost.start(StandardHost.java:789) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) > at > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) > at > org.apache.catalina.core.StandardService.start(StandardService > .java:480) > at > org.apache.catalina.core.StandardServer.start(StandardServer.j > ava:2313) > at org.apache.catalina.startup.Catalina.start(Catalina.java:556) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess > orImpl.jav > a:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(Deleg
web.xml parsing error SEVERE
Dear subscribers, I am having a strange problem starting tomcat. Catalina.out says I have an error at the closing tag Any clue on what the problem might be? Your comments will be most appreciated. Sincerely yours Carlos The error reads as follows: Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 949 ms Jan 17, 2005 12:01:28 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jan 17, 2005 12:01:28 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 Jan 17, 2005 12:01:28 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.ContextConfig defaultConfig INFO: No default web.xml Jan 17, 2005 12:01:28 PM org.apache.commons.digester.Digester endElement SEVERE: End event threw exception java.lang.ClassNotFoundException: org.apache.catalina.Container at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1340) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1189) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:243) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk nown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis patcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno wn 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.ContextConfig.applicationConfig(ContextConfi g.java:263) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:624) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j ava:216) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4290 ) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) at org.apache.catalina.core.StandardService.start(StandardService.java:480) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313) at org.apache.catalina.startup.Catalina.start(Catalina.java:556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.ContextConfig applicationConfig SEVERE: Parse error in application web.xml java.lang.ClassNotFoundException: org.apache.catalina.Container at org.apache.commons.digester.Digester.createSAXException(Digester.java:25 40) at org.apache.commons.digester.Digester.createSAXException(Digester.java:25 66) at org.apache.commons.digester.Digester.endElement(Digester.java:1061) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk nown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis patcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno wn Source) at
please help -SEVERE: Parse error in application web.xml - webapp does not start after cpanel upgrade
After upgrading cpanel on the server, tomcat throws the error message attached. I swear I did not change a thing in my web.xml file. Never the less tomcat says I now have an error in the tag. I forward the error and the contects of my web.xml. please help, if you can. Sincerely yours Carlos This is the error: Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 949 ms Jan 17, 2005 12:01:28 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jan 17, 2005 12:01:28 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 Jan 17, 2005 12:01:28 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.ContextConfig defaultConfig INFO: No default web.xml Jan 17, 2005 12:01:28 PM org.apache.commons.digester.Digester endElement SEVERE: End event threw exception java.lang.ClassNotFoundException: org.apache.catalina.Container at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1340) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1189) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:243) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk nown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis patcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno wn 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.ContextConfig.applicationConfig(ContextConfi g.java:263) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:624) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j ava:216) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4290 ) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) at org.apache.catalina.core.StandardService.start(StandardService.java:480) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313) at org.apache.catalina.startup.Catalina.start(Catalina.java:556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.ContextConfig applicationConfig SEVERE: Parse error in application web.xml java.lang.ClassNotFoundException: org.apache.catalina.Container at org.apache.commons.digester.Digester.createSAXException(Digester.java:25 40) at org.apache.commons.digester.Digester.createSAXException(Digester.java:25 66) at org.apache.commons.digester.Digester.endElement(Digester.java:1061) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk nown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis patcher.dispatch(Unknown Source) at
Re: [HttpSession creation: When & How]
Good morning. Thanks a lot for the shared thoughts and ideas about HttpSession management. Last night I decided to give the Servlet Spec a second try and here's what I think is relevant to this topic: - A session is considered "new" untils a client joins it [calls to HttpSession.isNew() return "true"] - A client joins a session when session tracking info has been returned to the server, indicating that the session has been established. - The container always (?) creates a session object for a given user request regardless of its nature (HTML, JSP...), but waits until the client sends tracking info back to consider the client as part of the new session I'm yet to read "RFC 2964 - Use of HTTP State Management", but from the Spec and your feedback I think a practical way to address this problem is whith the mecanism suggested by Dennis and Frank: - If the session exists, check for required elements and place them there if they are missing / Check for some known object in session; if it's not there, the user hasn't been validated. Besides being practical, this approach makes complete sense since -as Bob accurately points out: "The basic HttpSession object is for state management, not evidence of authentication". Thanks again for sharing your knowledge. Should I trip over again in this matters I'd sure come back... :^) Regards, Carlos - Original Message - From: "Bob Feretich" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, November 30, 2004 12:25 AM Subject: Re: [HttpSession creation: When & How] When Tomcat intercepts an access to a protected resource and redirects to your login form, it saves your initial request by attaching it to the session object. If the login is successful, it retrieves the saved request and redirects to it. If you don't have an active session, it creates one to perform the save. The basic HttpSession object is for state management, not evidence of authentication (see best practice RFC-2964 2.2.2). (You may attach authentication info to the session object.) Regards, Bob Feretich Dennis Payne wrote: You can use the session.invalidate() if you need to before creating a new session (I did not use this approach). With my system, if the session exists we check for required elements and place them there if they are missing. Every thirty minutes the session automatically invalidates. At that point we create a new session and simply repeat the check for required elements. All of this is invisible to the user who logs in only once. The only information that stays from session to session is data that is persisted in (written to) the database and put in the session for servlet/JSP use. If I understand correctly the HTTP Session is initiated by the web server when authentication takes place (I only have experience with basic authentication). Other wiser sources may clarify... [EMAIL PROTECTED] 11-29-2004 17:31 >>> Good evening. My question is about HttpSession objects creation and destruction within a Servlet/JSP container. I'm using the JBoss/Tomcat bundle (versions 3.2.3/4.1.29) with a database realm properly configured. Here's how things work so far: 1. User goes to a predefined Welcome File (index.html) 2. Within the welcome file there's a link to a protected resource (wich happens to be the application's "main screen") 3. The user clicks the link and the login page appears. 4. The user enters login/password and logs on successfully or is redirected to an error page. Up to this point everything works fine, but the thing that I don't understand is that the moment the user clicks the link that points to a protected resource an HttpSession object is created by the server even though the user hasn't been authenticated. This behavior kinda ruin my plans because I have a Session Creation/Destruction Listener that is supposed to detect a session creation event in order to be able to place some things (objects) in that user session, but it seems that the created session for the unauthenticated is "recycled" after authentication and my session lifecycle listener is no longer useful (the session already exists) I've looked into the Servlet spec but couldn't find anything clarifying enough... I'f anyone has any comments, tips, thoughts on this issue I'd like to hear'em... :^) Regards, Carlos... - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For a
[HttpSession creation: When & How]
Good evening. My question is about HttpSession objects creation and destruction within a Servlet/JSP container. I'm using the JBoss/Tomcat bundle (versions 3.2.3/4.1.29) with a database realm properly configured. Here's how things work so far: 1. User goes to a predefined Welcome File (index.html) 2. Within the welcome file there's a link to a protected resource (wich happens to be the application's "main screen") 3. The user clicks the link and the login page appears. 4. The user enters login/password and logs on successfully or is redirected to an error page. Up to this point everything works fine, but the thing that I don't understand is that the moment the user clicks the link that points to a protected resource an HttpSession object is created by the server even though the user hasn't been authenticated. This behavior kinda ruin my plans because I have a Session Creation/Destruction Listener that is supposed to detect a session creation event in order to be able to place some things (objects) in that user session, but it seems that the created session for the unauthenticated is "recycled" after authentication and my session lifecycle listener is no longer useful (the session already exists) I've looked into the Servlet spec but couldn't find anything clarifying enough... I'f anyone has any comments, tips, thoughts on this issue I'd like to hear'em... :^) Regards, Carlos... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mysql: Cannot create JDBC driver
I am not getting the driver... I mean, I just look up the service using the initial context, get a datasource and finally get a connection with the datasource. I am going to modify my code, I read a common problem in the tomcat documentation page: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html#Common%20Problems, with the title "Random Connection Closed Exceptions". So, I think it would be my problem. If it is not I will put the jar driver file in $JAVA_HOME\jre\lib\ext, but there's a note that says: "Do not install these jarfiles in your /WEB-INF/lib, or $JAVA_HOME/jre/lib/ext, or anywhere else. You will experience problems if you install them anyplace other than $CATALINA_HOME/common/lib", in the "JNDI Datasource HOW-TO" On Mon, 29 Nov 2004 07:47:16 -0800, John Najarian <[EMAIL PROTECTED]> wrote: > This is a reach but in your code how are you getting the driver? > > I really don't know much more about this. I just develop the code and let > the deployment group move things around. Sorry. > > > > -Original Message- > From: Carlos Bracho [mailto:[EMAIL PROTECTED] > Sent: Monday, November 29, 2004 7:42 AM > To: John Najarian > Cc: Tomcat Users List > Subject: Re: Mysql: Cannot create JDBC driver > > My $CATALINA_HOME is defined as: C:\Program Files\Apache Software > Foundation\Tomcat\ > > On Mon, 29 Nov 2004 07:08:02 -0800, John Najarian > <[EMAIL PROTECTED]> wrote: > > Hi Carlos, > > > > I have my mysql-connector-java-3.0.0.15-ga-bin.jar located in: > > c:\tomcat\common\lib > > > > However, I also have it in c:\j2sdk1.4.2_03\lib. I think I put it there > > as an initial test of MySQL. > > > > My $CATALINA_HOME is defined as c:\tomcat, what is your CATALINA_HOME > > defined as? > > > > > > > > > > -Original Message- > > From: Carlos Bracho [mailto:[EMAIL PROTECTED] > > Sent: Saturday, November 27, 2004 4:58 PM > > To: Tomcat Users List > > Subject: Mysql: Cannot create JDBC driver > > > > Hello everybody. > > > > I am writting you because I get this exception ramdonly, I mean, > > sometimes happends, sometimes does not. > > > > javax.servlet.ServletException: Cannot create JDBC driver of class '' > > for connect URL 'null', cause: No suitable driver > >at > > > org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI > > mpl.java:825) > >at > > > org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp > > l.java:758) > >at org.apache.jsp.index_jsp._jspService(index_jsp.java:73) > >at > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) > >at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) > >at > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 > > 98) > >at > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) > >at > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) > >at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) > >at > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application > > FilterChain.java:237) > >at > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh > > ain.java:157) > >at > > > org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter > > .java:305) > >at > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application > > FilterChain.java:186) > >at > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh > > ain.java:157) > >at > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja > > va:214) > >at > > > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex > > t.java:104) > >at > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > >at > > > org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext > > Valve.java:198) > >at > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja > > va:152) > >at > > > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex > > t.java:104) > &g
Re: Mysql: Cannot create JDBC driver
My $CATALINA_HOME is defined as: C:\Program Files\Apache Software Foundation\Tomcat\ On Mon, 29 Nov 2004 07:08:02 -0800, John Najarian <[EMAIL PROTECTED]> wrote: > Hi Carlos, > > I have my mysql-connector-java-3.0.0.15-ga-bin.jar located in: > c:\tomcat\common\lib > > However, I also have it in c:\j2sdk1.4.2_03\lib. I think I put it there > as an initial test of MySQL. > > My $CATALINA_HOME is defined as c:\tomcat, what is your CATALINA_HOME > defined as? > > > > > -Original Message- > From: Carlos Bracho [mailto:[EMAIL PROTECTED] > Sent: Saturday, November 27, 2004 4:58 PM > To: Tomcat Users List > Subject: Mysql: Cannot create JDBC driver > > Hello everybody. > > I am writting you because I get this exception ramdonly, I mean, > sometimes happends, sometimes does not. > > javax.servlet.ServletException: Cannot create JDBC driver of class '' > for connect URL 'null', cause: No suitable driver >at > org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI > mpl.java:825) >at > org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp > l.java:758) >at org.apache.jsp.index_jsp._jspService(index_jsp.java:73) >at > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) >at > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 > 98) >at > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) >at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) >at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application > FilterChain.java:237) >at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh > ain.java:157) >at > org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter > .java:305) >at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application > FilterChain.java:186) >at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh > ain.java:157) >at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja > va:214) >at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex > t.java:104) >at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) >at > org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext > Valve.java:198) >at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja > va:152) >at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex > t.java:104) >at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) >at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137 > ) >at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex > t.java:104) >at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117 > ) >at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex > t.java:102) >at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) >at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java > :109) >at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex > t.java:104) >at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) >at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) >at > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) >at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793) >at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne > ction(Http11Protocol.java:702) >at > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571) >at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav > a:644) >at java.lang.Thread.run(Thread.java:534) > > I am using MySql 4.0.20a and the driver jar file is > mysql-connector-java-3.0.14.jar, here you have my xml files: > > Server.xml: > (...) >
Mysql: Cannot create JDBC driver
url jdbc:mysql://localhost:3306/bankapp1?autoReconnect=true (...) And my web.xml: (...) jdbc/bankApp1 javax.sql.DataSource Container (...) Please help as soon as you can. Regards and thanks -- -- Carlos J, Bracho M. "The significant problems we face cannot be solved at the same level of thinking we were at when we created them." Albert Einstein -- e-mail: [EMAIL PROTECTED] MSN:[EMAIL PROTECTED] -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.4 fails to recompile JSPs
Hello, On Thu, 25 Nov 2004 09:19:15 -, Allistair Crossley <[EMAIL PROTECTED]> wrote: > to me it sounds like you are compiling your jsps without a reloadable > context. have you set reloadable="true" on your
Tomcat 5.5.4 fails to recompile JSPs
Hello, I just upgraded my test development box to Tomcat 5.5.4 and Sun's JDK 1.5.0. I just created a simple (the simplest?) web application to test things out. I always go the Ant route (with Tomcat's documentation sample build.xml) and everything went smoothly. Except reloading JSPs. In the past, if I changed a JSP file in the "source" directory and then issued an "ant compile" (or just "ant") it would put the just changed file into the "build" directory, which would be picked and recompiled by Tomcat at once (provided, of course, that the app was deployed.) Now, I can't do that with this new setup. Obviously, I'm missing something very simple, but I have searched high and low but found no answer. Not even reloading the application pick the changes up. Undeploying and redeploying does the trick. What am I doing wrong? Best regards, Carlos. Tomcat 5.5.4/JDK 1.5.0/Windows XP development box. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat JRE vs JDK Issue
"JSP technology is an extension of the servlet technology created to support authoring of HTML and XML pages." If you've ever written servlets, you know what a tremendous pain it is to write and maintain all those out.println() statements. JSP was designed to allow more HTML-centric (aka presentation-side) people to create pages that get turned into servlets that are compiled into bytecode for the java interpreter to interpret. If you peek around the work directory, you'll find an XXX_jsp.java and an XXX_jsp.class file for every JSP. That's why a JRE isn't enough-- you need a compiler from the JDK to compile the JSP into servlets. Phew! HTH, -Anthony On Nov 16, 2004, at 10:27 AM, Allistair Crossley wrote: go on Anthony .. you deserve it :) lol -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: 16 November 2004 15:20 To: 'Tomcat Users List' Subject: RE: Tomcat JRE vs JDK Issue Feel free to explain. :) Chris -Original Message- From: Anthony E. Carlos [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:23 AM To: Tomcat Users List Subject: Re: Tomcat JRE vs JDK Issue Chris: I think TC requires the JDK (not just the JRE) so that it can compile JSPs. If this doesn't make sense, I can explain further. -Anthony Carlos On Nov 16, 2004, at 10:17 AM, Allistair Crossley wrote: does the client machine have JAVA_HOME as an environment variable? -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: 16 November 2004 15:09 To: [EMAIL PROTECTED] Subject: Tomcat JRE vs JDK Issue I'm trying to run Tomcat 5.0.28 on W2k client machine. On my machine, it runs fine, with no problems. But when I copy it over to the client machine, which has the 1.4.2_05 JRE on it, Tomcat won't run, and says that it requires the JDK. Why is this, and is there a workaround, or do I have to install the JDK? I don't remember having this issue with 4.x. Is it 5.x specific? TIA. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- QAS Ltd. Developers of QuickAddress Software http://www.qas.com";>www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat JRE vs JDK Issue
Damn! I was minutes away from actually helping someone (instead of always sucking up advice from the fast experts on this list)... On Nov 16, 2004, at 10:23 AM, Anthony E. Carlos wrote: Chris: I think TC requires the JDK (not just the JRE) so that it can compile JSPs. If this doesn't make sense, I can explain further. -Anthony Carlos On Nov 16, 2004, at 10:17 AM, Allistair Crossley wrote: does the client machine have JAVA_HOME as an environment variable? -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: 16 November 2004 15:09 To: [EMAIL PROTECTED] Subject: Tomcat JRE vs JDK Issue I'm trying to run Tomcat 5.0.28 on W2k client machine. On my machine, it runs fine, with no problems. But when I copy it over to the client machine, which has the 1.4.2_05 JRE on it, Tomcat won't run, and says that it requires the JDK. Why is this, and is there a workaround, or do I have to install the JDK? I don't remember having this issue with 4.x. Is it 5.x specific? TIA. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- QAS Ltd. Developers of QuickAddress Software http://www.qas.com";>www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat JRE vs JDK Issue
Chris: I think TC requires the JDK (not just the JRE) so that it can compile JSPs. If this doesn't make sense, I can explain further. -Anthony Carlos On Nov 16, 2004, at 10:17 AM, Allistair Crossley wrote: does the client machine have JAVA_HOME as an environment variable? -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: 16 November 2004 15:09 To: [EMAIL PROTECTED] Subject: Tomcat JRE vs JDK Issue I'm trying to run Tomcat 5.0.28 on W2k client machine. On my machine, it runs fine, with no problems. But when I copy it over to the client machine, which has the 1.4.2_05 JRE on it, Tomcat won't run, and says that it requires the JDK. Why is this, and is there a workaround, or do I have to install the JDK? I don't remember having this issue with 4.x. Is it 5.x specific? TIA. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- QAS Ltd. Developers of QuickAddress Software http://www.qas.com";>www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- - 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: Rotating catalina.out with Webmin
Hi Phillip, Why do you re-create the file? Is it not enough to truncate it? -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Monday, November 15, 2004 3:53 PM To: 'Tomcat Users List' Subject: RE: Rotating catalina.out with Webmin I don't know how to use webadmin. I did it in command line (Debian) /etc/logrotate.d /usr/local/jakarta-tomcat-4.1.30/logs/catalina.out { rotate 5 weekly compress delaycompress notifempty missingok create 0640 tu3404nl tu3404nl } -Original Message----- From: Carlos Oliva [mailto:[EMAIL PROTECTED] Sent: November 15, 2004 3:37 PM To: 'Tomcat Users List' Subject: RE: Rotating catalina.out with Webmin Hi Phillip, Since Webmin uses logrotate could I just create a simple entry with Webmin? Or do I need to specify other settings? -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Monday, November 15, 2004 3:31 PM To: 'Tomcat Users List' Subject: RE: Rotating catalina.out with Webmin I found that logrotate is the easiest. -Original Message- From: Carlos Oliva [mailto:[EMAIL PROTECTED] Sent: November 15, 2004 3:28 PM To: 'Tomcat Users List' Subject: RE: Rotating catalina.out with Webmin Hi Filip, I set-up the Webmin Log Rotation entry to the following: 1) Re-create log file after rotation? Yes, with mode and owned by user and group 2) Store old rotated logs in Directory Same directory as log file Default (Same directory as log file) 3) Extension for rotated filenames Default Should not this maintain the file handle? -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Monday, November 15, 2004 3:19 PM To: Tomcat Users List Subject: Re: Rotating catalina.out with Webmin if you dont get webmin fixed, I recommend cronolog instead. You cant just rotate it, cause then tomcat loses the file handle, and you will lose all further output. with cronolog you simply pipe it through cronolog like this | /usr/local/sbin/cronolog "$CATALINA_BASE$"/logs/%Y-%m-%d.catalina.out >> /dev/null 2>&1 this will rotate the logs daily Filip - Original Message - From: "Carlos" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 15, 2004 2:05 PM Subject: Rotating catalina.out with Webmin Hi Forum, Could someone recommend settings for using the log rotation of Webmin in order to rotate catalina.out (any cautionary measures)? I just created an entry in Webmin to rotate the catalina.out file weekly with all the default settings (keeping the last four copies). Are there any scripts I should run before or after the rotation is carried out? - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:4199138a52451467913336! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Rotating catalina.out with Webmin
Hi Phillip, Since Webmin uses logrotate could I just create a simple entry with Webmin? Or do I need to specify other settings? -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Monday, November 15, 2004 3:31 PM To: 'Tomcat Users List' Subject: RE: Rotating catalina.out with Webmin I found that logrotate is the easiest. -Original Message----- From: Carlos Oliva [mailto:[EMAIL PROTECTED] Sent: November 15, 2004 3:28 PM To: 'Tomcat Users List' Subject: RE: Rotating catalina.out with Webmin Hi Filip, I set-up the Webmin Log Rotation entry to the following: 1) Re-create log file after rotation? Yes, with mode and owned by user and group 2) Store old rotated logs in Directory Same directory as log file Default (Same directory as log file) 3) Extension for rotated filenames Default Should not this maintain the file handle? -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Monday, November 15, 2004 3:19 PM To: Tomcat Users List Subject: Re: Rotating catalina.out with Webmin if you dont get webmin fixed, I recommend cronolog instead. You cant just rotate it, cause then tomcat loses the file handle, and you will lose all further output. with cronolog you simply pipe it through cronolog like this | /usr/local/sbin/cronolog "$CATALINA_BASE$"/logs/%Y-%m-%d.catalina.out >> /dev/null 2>&1 this will rotate the logs daily Filip - Original Message - From: "Carlos" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 15, 2004 2:05 PM Subject: Rotating catalina.out with Webmin Hi Forum, Could someone recommend settings for using the log rotation of Webmin in order to rotate catalina.out (any cautionary measures)? I just created an entry in Webmin to rotate the catalina.out file weekly with all the default settings (keeping the last four copies). Are there any scripts I should run before or after the rotation is carried out? - 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] !DSPAM:4199117c52001195320907! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Rotating catalina.out with Webmin
Hi Filip, I set-up the Webmin Log Rotation entry to the following: 1) Re-create log file after rotation? Yes, with mode and owned by user and group 2) Store old rotated logs in Directory Same directory as log file Default (Same directory as log file) 3) Extension for rotated filenames Default Should not this maintain the file handle? -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Monday, November 15, 2004 3:19 PM To: Tomcat Users List Subject: Re: Rotating catalina.out with Webmin if you dont get webmin fixed, I recommend cronolog instead. You cant just rotate it, cause then tomcat loses the file handle, and you will lose all further output. with cronolog you simply pipe it through cronolog like this | /usr/local/sbin/cronolog "$CATALINA_BASE$"/logs/%Y-%m-%d.catalina.out >> /dev/null 2>&1 this will rotate the logs daily Filip - Original Message - From: "Carlos" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 15, 2004 2:05 PM Subject: Rotating catalina.out with Webmin Hi Forum, Could someone recommend settings for using the log rotation of Webmin in order to rotate catalina.out (any cautionary measures)? I just created an entry in Webmin to rotate the catalina.out file weekly with all the default settings (keeping the last four copies). Are there any scripts I should run before or after the rotation is carried out? - 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]
Rotating catalina.out with Webmin
Hi Forum, Could someone recommend settings for using the log rotation of Webmin in order to rotate catalina.out (any cautionary measures)? I just created an entry in Webmin to rotate the catalina.out file weekly with all the default settings (keeping the last four copies). Are there any scripts I should run before or after the rotation is carried out?
setting JPDA with Tomcat Monitor
I am running Windows XP with Tomcat 5.0.28 JDK 1.4.2_03. I can tomcat using the JVM debug options just fine when I execute catalina.bat on the command line (call Catalina.bat jpda start). I have set the following environmental variables: JPDA_ADDRESS=8000 JPDA_TRANSPORT=dt_socket However, I can't get tomcat to run with the JVM debug options when using Tomcat Monitor. As a matter of convenience I prefer Tomcat monitor and would like to get it running using this tool. When I add the "jpda" argument in the arguments input box on the Startup tab ("jpda start") - tomcat will not start up. After clicking the start button the "Apache Service Manager" window opens for a few seconds and then closes. Tomcat will generate logs for stderr, stdout and Jakarta_service. However, they are all empty. I am sure I am making a silly mistake in how I am feeding the Bootstrap class the args. Any suggestions? Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Servlet caching?
Thanks for your clarification. At least the bug says "Sate In progress ..." Let us hope... -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 3:01 PM To: Tomcat Users List Subject: RE: Servlet caching? Hi, Note that this is an RFE, not a bug, so don't hold your breath, and further that you can register an use your own PrintService SPI already in JDK 1.4, and that's probably one reason the Sun folks aren't jumping to implement this RFE. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Carlos Oliva [mailto:[EMAIL PROTECTED] >Sent: Friday, October 22, 2004 2:55 PM >To: 'Tomcat Users List' >Subject: RE: Servlet caching? > >Hi Steffen, >Thank you for your response. I found that there is indeed a bug fro this >problem reported for the SUN JDK. You can view it at: >http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4744405 > >It also seems that this bug has not yet been solved. Its status is in >progress > >This is a short version of the bug report: >Bug ID: 4744405 >Votes 17 >Synopsis RFE: lookupPrintServices() to refresh the printers list >dynamically >Category java:classes_2d >Reported Against 1.4 , 1.4.1 >Release Fixed >State In progress, request for enhancement >Related Bugs 5028849 , 5033703 >Submit Date 10-SEP-2002 >Description *This also happened on Windows platform. > >java version "1.4.1-rc" >Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-rc-b19) >Java HotSpot(TM) Client VM (build 1.4.1-rc-b19, mixed mode) > >When invoke method lookupPrintServices() on class PrinterJob or >PrintServiceLookup, the printers list can not refreshed when adding or >deleting printers dynamically. > >Steps to follow to reproduce the problem: > 1. Compile and run the included test case > 2. The print dialog shows up and avaible printers information is printed >out on screen. Click "cancel" to dismiss the dialog. The test case is >pending. > 3. Use Printer Selector Tool to add a new printer into selected printers >list and save changes. > 4. Back to the terminal that run the test case an click "enter" button to >continue. Then a new thread will be created to invoke the >lookupPrintServices() and pop up the print dialog again. > 5. The screen output shows that invoking lookupPrintServices() doesn't >reflect the newly added printer information, neither does the print dialog. > >// source code begin---// >import java.awt.print.*; >import javax.print.*; > >public class MTPrinterTest extends Thread { >public static void main(String[] args) { >MTPrinterTest t1 = new MTPrinterTest(); >t1.start(); > >try { >System.in.read(); >} catch (Exception e){} > >MTPrinterTest t2 = new MTPrinterTest(); >t2.start(); >} >public void run() { >PrinterJob printerJob; >PrintService[] printServices; > >printerJob = PrinterJob.getPrinterJob(); >printServices = printerJob.lookupPrintServices(); >System.out.println("Number of servies found: " + >printServices.length); >for (int i =0; i< printServices.length; i++) >System.out.println("--> Available Printer " + i + ": " + >printServices[i]); >printerJob.printDialog(); >} >} >// source code end --// > >Work Around Exit the current running application and run it again, then >the >printers list get refreshed. Seems the running JVM can not get updated >printer information > > >-Original Message- >From: Steffen Heil [mailto:[EMAIL PROTECTED] >Sent: Friday, October 15, 2004 8:25 AM >To: 'Tomcat Users List' >Subject: AW: Servlet caching? > >Hi > >> If I write a java program to list the services and run the program from >the command line, I can see the newly added service right away. > >Modify your program to list the services, wait one minute, list the >services >again. >Install a printer in that time. >See, if the application reflects that change. If not, the Lookup is caching >information. > >Regards, > Steffen > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclos
RE: Servlet caching?
Hi Steffen, Thank you for your response. I found that there is indeed a bug fro this problem reported for the SUN JDK. You can view it at: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4744405 It also seems that this bug has not yet been solved. Its status is in progress This is a short version of the bug report: Bug ID: 4744405 Votes 17 Synopsis RFE: lookupPrintServices() to refresh the printers list dynamically Category java:classes_2d Reported Against 1.4 , 1.4.1 Release Fixed State In progress, request for enhancement Related Bugs 5028849 , 5033703 Submit Date 10-SEP-2002 Description *This also happened on Windows platform. java version "1.4.1-rc" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-rc-b19) Java HotSpot(TM) Client VM (build 1.4.1-rc-b19, mixed mode) When invoke method lookupPrintServices() on class PrinterJob or PrintServiceLookup, the printers list can not refreshed when adding or deleting printers dynamically. Steps to follow to reproduce the problem: 1. Compile and run the included test case 2. The print dialog shows up and avaible printers information is printed out on screen. Click "cancel" to dismiss the dialog. The test case is pending. 3. Use Printer Selector Tool to add a new printer into selected printers list and save changes. 4. Back to the terminal that run the test case an click "enter" button to continue. Then a new thread will be created to invoke the lookupPrintServices() and pop up the print dialog again. 5. The screen output shows that invoking lookupPrintServices() doesn't reflect the newly added printer information, neither does the print dialog. // source code begin---// import java.awt.print.*; import javax.print.*; public class MTPrinterTest extends Thread { public static void main(String[] args) { MTPrinterTest t1 = new MTPrinterTest(); t1.start(); try { System.in.read(); } catch (Exception e){} MTPrinterTest t2 = new MTPrinterTest(); t2.start(); } public void run() { PrinterJob printerJob; PrintService[] printServices; printerJob = PrinterJob.getPrinterJob(); printServices = printerJob.lookupPrintServices(); System.out.println("Number of servies found: " + printServices.length); for (int i =0; i< printServices.length; i++) System.out.println("--> Available Printer " + i + ": " + printServices[i]); printerJob.printDialog(); } } // source code end --// Work Around Exit the current running application and run it again, then the printers list get refreshed. Seems the running JVM can not get updated printer information -Original Message- From: Steffen Heil [mailto:[EMAIL PROTECTED] Sent: Friday, October 15, 2004 8:25 AM To: 'Tomcat Users List' Subject: AW: Servlet caching? Hi > If I write a java program to list the services and run the program from the command line, I can see the newly added service right away. Modify your program to list the services, wait one minute, list the services again. Install a printer in that time. See, if the application reflects that change. If not, the Lookup is caching information. Regards, Steffen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Somewhat OT] Content vs. Programming
Hello, folks! Based on my readings, it seems that most people running Tomcat on dedicated boxes. Unfortunately, I'm in a shared environment running multiple instances of Tomcat, one for each client. My problem is that some clients like to update their own static content via ftp, while letting me, the programmer, handle the more complex stuff. What stinks is that if they ftp content to the server, then I've got to merge their new and changed stuff into my development box because when I deploy my war file (I'm developing in a separate environment), it overwrites all of their stuff. My content providers aren't technically savvy, so I can't expect them to learn to use CVS. They're probably using some GUI program like Dreamweaver to create their pages. Does anyone have a suggestion to help streamline the battle of content providers versus programmers? I've thought of having them upload to a alternate directory and then running some ant script to copy new and changed files into the Tomcat directories, but that still won't help with the merging process. To make things even more complicated, and we're also using Tiles so my content providers have to ask me to add entries into struts-config.xml and tiles-defs.xml when they create a new page. Is anyone else dealing with this kind of inefficiency, or do you all work with just other programmers? Thanks for your opinions, -Anthony Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Servlet caching?
Hi Jon, I was arriving to the same conclusion. The servlet and perhaps Tomcat is caching the result of the PrintServiceLookup for the lifetime of the JVM. If I write a java program to list the services and run the program from the command line, I can see the newly added service right away. This program is working because it is exiting every time before restarting. Do you know if unloading and reloading the PrintServiceLookup would clear the cache of the services? Is there any way to clear the cache without having to terminate the instance of Tomcat? -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Friday, October 15, 2004 4:04 AM To: Tomcat Users List Subject: Re: Servlet caching? One thing you might want to check is that whatever PrintService SPI implementation is looking up your printers doesn't cache the result for the lifetime of the JVM. Does your command line app show new printers and then exit? If so, you might want to change it so you can: 1) list the printers 2) install the new printer while the app is still running 3) list the printers I just did a (rather noddy) check on my workstation: I brought up the print dialog in JEdit and saw just one printer. I installed a new printer then opened the print dialog again and saw just one printer. I restarted JEdit and voila: two printers. I assume JEdit is using the default PrintService discovery mechanism supplied by the JVM. On my workstation that's sun.print.Win32PrintServiceLookup as defined in META-INF/services. If the default implementation is caching then you are out of luck unless you want to write your own PrintServiceLookup. Jon Shapira, Yoav wrote: > Hi, > > >>I would think that after reloading the servlet all the >>classes that it had used would cease to exist. That is, any class that > > had > >>been instantiated or used by the servlet would not remain instantiated >>after >>I reload the servlet. > > > Under most instances, but not all. For example, if the library you're > using the find the list of printers is in common/lib or shared/lib, your > thought above is false. > > Yoav > - 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: Servlet caching?
Hi Tim, I have found that even if I terminate every connection of the servlet to the database and reload the servlet, the servlet still does not find the newly installed printer. I would think that after reloading the servlet all the classes that it had used would cease to exist. That is, any class that had been instantiated or used by the servlet would not remain instantiated after I reload the servlet. So I am thinking that re-starting tomcat somehow makes Tomcat aware of the services that have been installed after Tomcat was started -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 9:50 AM To: Tomcat Users List Subject: Re: Servlet caching? It sounds like one of the classes the Servlet is depending on is caching the result. -Tim Carlos wrote: > Do servlets in Tomcat (1.4) catch results of programs that they run? I have > a java servlet that lists the print services of printers installed in the > server (Linux Red Hat). I run the servlet before and after I install a > couple of printers in the server; however, the list of printer services does > not change until I restart Tomcat. At the same time, I run a test program > in the server from the command line to list the print services and this > program lists the newly installed printers right away. This has led me to > believe that the servlet is caching the list of printer services when it is > run the first time and does not re-run the code until Tomcat has been > re-started. > > - 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: Servlet caching?
Hi Yoav, I have found that even if I terminate every connection of the servlet to the database and reload the servlet, the servlet still does not find the newly installed printer. I would think that after reloading the servlet all the classes that it had used would cease to exist. That is, any class that had been instantiated or used by the servlet would not remain instantiated after I reload the servlet. So I am thinking that re-starting tomcat somehow makes Tomcat aware of the services that have been installed after Tomcat was started -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 10:00 AM To: Tomcat Users List Subject: RE: Servlet caching? Hi, The servlets by themselves do what you tell them to: you wrote them, after all ;) Tomcat doesn't provide any caching of response content by itself without special effort or configuration on your behalf. As Tim said, my guess is a utility class used by your servlet is doing the caching for the printer services list. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Carlos [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 14, 2004 9:43 AM >To: Tomcat-User ([EMAIL PROTECTED]) >Subject: Servlet caching? > >Do servlets in Tomcat (1.4) catch results of programs that they run? I >have >a java servlet that lists the print services of printers installed in the >server (Linux Red Hat). I run the servlet before and after I install a >couple of printers in the server; however, the list of printer services >does >not change until I restart Tomcat. At the same time, I run a test program >in the server from the command line to list the print services and this >program lists the newly installed printers right away. This has led me to >believe that the servlet is caching the list of printer services when it is >run the first time and does not re-run the code until Tomcat has been >re-started. > > > >Thanks in advance for your response. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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]
Servlet caching?
Do servlets in Tomcat (1.4) catch results of programs that they run? I have a java servlet that lists the print services of printers installed in the server (Linux Red Hat). I run the servlet before and after I install a couple of printers in the server; however, the list of printer services does not change until I restart Tomcat. At the same time, I run a test program in the server from the command line to list the print services and this program lists the newly installed printers right away. This has led me to believe that the servlet is caching the list of printer services when it is run the first time and does not re-run the code until Tomcat has been re-started. Thanks in advance for your response.
Javascript and cookie
Hi everybody... Can I know if the browser has cookies and javascript set as enable? of course using jps or servlet. Regards Carlos -- -- Carlos J, Bracho M. "The significant problems we face cannot be solved at the same level of thinking we were at when we created them." Albert Einstein -- e-mail: [EMAIL PROTECTED] MSN:[EMAIL PROTECTED] -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk compatibility
Hello, I have mod_jk working well with Apache 1.3.x and Tomcat 4.1.x. I'm trying to connect to a new Tomcat 5 instance (on a different port), but it doesn't work. Here's a snippet from my server.xml on Tomcat 5: Here's what shows up in catalina.out: Sep 30, 2004 1:00:26 AM org.apache.jk.common.MsgAjp processHeader SEVERE: BAD packet signature 256 01 00 03 47 00 00 00 00 00 00 00 00 00 00 00 00 | ...G 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ... (a lot more lines filled with 00s) I thought mod_jk used AJP 1.3. Is it compatible in any way with Tomcat 5? BTW, I cannot use mod_jk2 because of my sysadmin's grumblings. Thanks, -Anthony Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat data source - mysql
Try jdbc:mysql://localhost:/ (usually the port number is 3306) in the url param value On Fri, 1 Oct 2004 01:09:43 -0700, Eric Wulff <[EMAIL PROTECTED]> wrote: > Hi, I am not able to access a mysql server from a simple jsp example. > I have googled the errors, checked mysql and tomcat docs and mailing > list archives without success. Finding a tremendous amount of info > but nothing so far worked to solve my problem. I created a data > resource in my server.xml. I have defined a resource reference in my > web.xml. I have tried shutting down my firewall. I'm sure others > have had similar problems and I'm hoping one of you can share your > wisdom or point me in the right direction? > > many thx > Eric > > More, hopefully enlightening, details below. > > fedoa core 2 > tomcat 5 > j2sdk 1.4.2 > mysql 3.23.58 for linux redhat > > -when mysql server is started I access it by simply typing 'mysql' at > the command line > > following is web.xml, JNDI db res entry from the server.xml, and 3 > error listings > > -web.xml... > > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" >"http://java.sun.com/dtd/web-app_2_3.dtd";> > > > >Database Rates >DatabaseRates > > >DataSource Rates >DataSourceRates > > >Rates >/rates.jsp > > > >Database Rates >/database > > >DataSource Rates >/datasource > > >Rates >/rates > > > > jdbc/conversion > javax.sql.DataSource > Container > > > > -server.xml JNDI db resource entry... > I have set a password for root to match the example but that didn't work. > > > > >username >root > > >password >secret > > >driverClassName > >com.mysql.jdbc.Driver > > >url >jdbc:mysql://localhost/test > > > > > java.sql.SQLException: Data source rejected establishment of > connection, message from server: "Host 'localhost.localdomain' is not > allowed to connect to this MySQL server" SQL state: 08004 > Error code: 1130 > > 3 similar errors based on different db access strategies... > org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver > of class '' for connect URL 'null' SQL state: null > Error code: 0 > > -error when using a datasource object... > org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver > of class '' for connect URL 'null' > > -stack trace when using a DAO via a .jsp... > org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780) > org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) >converters.ConversionDAO.(ConversionDAO.java:23) >org.apache.jsp.rates_jsp._jspService(rates_jsp.java:46) >org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) >javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) >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) > > -I can create the test db table manually but can't via the java > program provided in the tutorial. This is the error I get when > attempting to run that... > java -classpath > .:/usr/local/jakarta-tomcat-5.0.28/common/lib/mysql-connector-java-3.0.15-ga-bin.jar > CreateDB > Loaded driver: com.mysql.jdbc.Driver > SQL Exception thrown: java.sql.SQLException: Data source rejected > establishment of connection, message from server: "Host > 'localhost.localdomain' is not allowed to connect to this MySQL > server" > java.sql.SQLException: Data source rejected establishment of > connection, message from server: "Host 'localhost.localdomain' is not > allowed to connect to this MySQL server" >at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:649) >at com.mysql.jdbc.Connection.createNewIO(Connection.java:1782) >at com.mysql.jdbc.Connection.(Connection.java:450) >at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411) >at java.sql.DriverManager.getConnection(DriverMa
Re: Beginner for Apache & Tomcat: Need Help
Welcome! Please start by reading some of the online documentation: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html I'd recommend starting with installing tomcat first without apache. You may not even need apache. Once you've gotten that down, you can connect tomcat to apache so that apache serves static pages (if you still need it). I'd recommend O'Reilly's book on Tomcat for details about creating a connector. On Sep 29, 2004, at 11:55 AM, TK wrote: Hi there, I'm a new Apache & Tomcat user. I have the following questions and hope you can help me out. Thank you. 1. Can I install and run Apache and Tomcat on the same machine? Or, at the first place, do I need to do so if Tomcat alone can be used as a Web server? 2. If I install both of them on the same machine, how do I differentiate the host names? Does http://127.0.0.1/ refers to the Apache or Tomcat server? 3. How could I create a virtual link to point from the root directory to another directory located at the other machine or the other disk drive? 4. Are there any guides on setting and configuring Apache and Tomcat in Linux environment? 5. Can I use J2EE SDK 1.4 to develop and test JSP applications? If not, what are the tools that can be used? 6. Can I used JSP to access MS Access database? If not, what is the recommended DBMS to be used, both in Windows and Linux environments? That's all for this time. Thanks again. Regards, TK - 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: Hi
Hi, Craigmcc, I received a message from you with this text On Wed, 29 Sep 2004 11:23:40 -0500, Craigmcc <[EMAIL PROTECTED]> wrote: > Dangerous Attachment has been Removed. The file "price.cpl" has been removed > because of a virus. It was infected with the "W32/Bagle.AZ-net" virus. File > quarantined as: "". > http://www.fortinet.com/VirusEncyclopedia/search/encyclopediaSearch.do?method=quickSearchDirectly&virusName=W32%2FBagle.AZ-net > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- -- Carlos J, Bracho M. "The significant problems we face cannot be solved at the same level of thinking we were at when we created them." Albert Einstein -- e-mail: [EMAIL PROTECTED] MSN:[EMAIL PROTECTED] -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with tomcat on UNIX
; >>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv > e > >C > >>onte > >>>x > >>>t.java:151) > >>>at > >>>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j > a > >v > >>a:16 > >>>4 > >>>) > >>>at > >>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv > e > >C > >>onte > >>>x > >>>t.java:149) > >>>at > >>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav > a > >: > >>564) > >>>at > >>>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal > v > >e > >>.jav > >>>a > >>>:156) > >>>at > >>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv > e > >C > >>onte > >>>x > >>>t.java:151) > >>>at > >>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav > a > >: > >>564) > >>>at > >>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972) > >>>at > >>>org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:20 > 6 > >) > >>>at > >>>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java > : > >8 > >>28) > >>>at > >>>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce > s > >s > >>Conn > >>>e > >>>ction(Http11Protocol.java:700) > >>>at > >>>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java > : > >5 > >>84) > >>>at > >>>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP > o > >o > >>l.ja > >>>v > >>>a:683) > >>>at java.lang.Thread.run(Thread.java:536) > >>> > >>>Any help is greatly appreciated !! > >>> > >>>Thanks > >>> Amar > >>> > >>> > >>>- > >>>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > >> > >>This e-mail, including any attachments, is a confidential business > >>communication, and may contain information that is confidential, > >>proprietary and/or privileged. This e-mail is intended only for the > >>individual(s) to whom it is addressed, and may not be saved, copied, > >>printed, disclosed or used by anyone else. If you are not the(an) > >>intended recipient, please immediately delete this e-mail from your > >>computer system and notify the sender. Thank you. > >> > >> > >>- > >>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] > > > > > > > > > >This e-mail, including any attachments, is a confidential business > >communication, and may contain information that is confidential, > >proprietary and/or privileged. This e-mail is intended only for the > >individual(s) to whom it is addressed, and may not be saved, copied, > >printed, disclosed or used by anyone else. If you are not the(an) > >intended recipient, please immediately delete this e-mail from your > >computer system and notify the sender. Thank you. > > > > > >- > >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] > > This e-mail, including any attachments, is a confidential business > communication, and may contain information that is confidential, proprietary > and/or privileged. This e-mail is intended only for the individual(s) to > whom it is addressed, and may not be saved, copied, printed, disclosed or > used by anyone else. If you are not the(an) intended recipient, please > immediately delete this e-mail from your computer system and notify the > sender. Thank you. > > - > 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] > > -- -- Carlos J, Bracho M. "The significant problems we face cannot be solved at the same level of thinking we were at when we created them." Albert Einstein -- e-mail: [EMAIL PROTECTED] MSN:[EMAIL PROTECTED] -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1 Connection Pooling...
gt;>>public static DataSource getInstance() throws SystemException { if > >>>(!isDataSrcAvaliable) { > >>>if (dataSource == null) > >>>{ > >>>new DataSourceFactory(); > >>>doLookUp(); > >>>isDataSrcAvaliable = true; > >>>} //end if (dataSource == null) > >>>}// end if (!isDataSrcAvaliable) > >>>return dataSource; > >>>} /* end getInstance() */ > >>> > >>>doLookUp method does this: > >>>Context ctx = new InitialContext(); > >>>String dataSrc = > >>>msgResource.getMessage(OEMAPIConstants.DATA_SOURCE_NAME); > >>>Context env = (Context)ctx.lookup("java:comp/env"); > >>>dataSource = (DataSource) env.lookup(dataSrc); > >>> > >>> > >>>public static Connection getConnection() throws DAOException { > >>>DataSource ds = (DataSource) DataSourceFactory.getInstance(); > >>>Connection con = ds.getConnection(); return ds.getConnection(); } > >>>and every database lookup class, gets this connection and closes the > >>>connection after the query to database... > >>> > >>> > >>> > >>>- > >>>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] > >>> > >>> > >>> > >>> > >>> > >>>- > >>>Do you Yahoo!? > >>>New and Improved Yahoo! Mail - Send 10MB messages! > >>> > >>> > >>>- > >>>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] > >> > >> > >> > >> > >>This e-mail, including any attachments, is a confidential business > >>communication, and may contain information that is confidential, > >>proprietary and/or privileged. This e-mail is intended only for the > >>individual(s) > >to > >>whom it is addressed, and may not be saved, copied, printed, disclosed > >or > >>used by anyone else. If you are not the(an) intended recipient, > please > >>immediately delete this e-mail from your computer system and notify > the > >>sender. Thank you. > >> > >> > >>- > >>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] > >> > >> > >>- > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > >This e-mail, including any attachments, is a confidential business > >communication, and may contain information that is confidential, > >proprietary and/or privileged. This e-mail is intended only for the > >individual(s) > to > >whom it is addressed, and may not be saved, copied, printed, disclosed > or > >used by anyone else. If you are not the(an) intended recipient, please > >immediately delete this e-mail from your computer system and notify the > >sender. Thank you. > > > > > >- > >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] > > > > > > > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > This e-mail, including any attachments, is a confidential business > communication, and may contain information that is confidential, proprietary > and/or privileged. This e-mail is intended only for the individual(s) to > whom it is addressed, and may not be saved, copied, printed, disclosed or > used by anyone else. If you are not the(an) intended recipient, please > immediately delete this e-mail from your computer system and notify the > sender. Thank you. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > !DSPAM:4159a597165394739372390! > > -- -- Carlos J, Bracho M. "The significant problems we face cannot be solved at the same level of thinking we were at when we created them." Albert Einstein -- e-mail: [EMAIL PROTECTED] MSN:[EMAIL PROTECTED] -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with tomcat on UNIX
I am really glad ;) On Tue, 28 Sep 2004 13:44:13 -0400, LINGALA, AMARESHWAR G (SBCSI) <[EMAIL PROTECTED]> wrote: > > Thanks Carlos it works now !!! > > -Original Message----- > From: Carlos Bracho [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 28, 2004 12:28 PM > To: Tomcat Users List > Subject: Re: Problems with tomcat on UNIX > > don't forget to copy the JDBC Driver's jar into > $CATALINA_HOME/common/lib > > On Tue, 28 Sep 2004 13:16:35 -0400, Ben Souther <[EMAIL PROTECTED]> > wrote: > > What JDBC driver are you using? > > Is it a type 4 driver? > > > > > > On Tue, 2004-09-28 at 11:10, LINGALA, AMARESHWAR G (SBCSI) wrote: > > > I have recently Implemented Connection Pooling for my Struts web > > > application. Everything seemed to have worked correctly until last > weekend. > > > All of a sudden I get the following error whenever I try to access > the > > > database. Also just so that you know everything works fine on my > local > > > machine. I get this problem only when I try to use the one on UNIX > box. > > > > > > org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver > class > > > 'oracle.jdbc.driver.OracleDriver', cause: > > > java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver > > > at > > > > org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo > ader > > > .java:891) > > > at > > > > org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo > ader > > > .java:756) > > > at > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) > > > at java.lang.Class.forName0(Native Method) > > > at java.lang.Class.forName(Class.java:140) > > > at > > > > org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource > .jav > > > a:730) > > > at > > > > org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.ja > va:5 > > > 18) > > > at > > > > com.sbc.ssbilling.database.DBConnectionImpl.makeDBConnection(DBConnectio > nImp > > > l.java:57) > > > at > > > > com.sbc.ssbilling.calculation.action.CalculationsReportAction.execute(Ca > lcul > > > ationsReportAction.java:51) > > > at > > > > org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr > oces > > > sor.java:484) > > > at > > > > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java: > 274) > > > at > > > > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) > > > at > > > > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) > > > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:763) > > > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > > > at > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > tion > > > FilterChain.java:284) > > > at > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > erCh > > > ain.java:204) > > > at > > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv > e.ja > > > va:257) > > > at > > > > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo > ntex > > > t.java:151) > > > at > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 > 64) > > > at > > > > org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon > text > > > Valve.java:245) > > > at > > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv > e.ja > > > va:199) > > > at > > > > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo > ntex > > > t.java:151) > > > at > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 > 64) > > > at > > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java > :195 > > > ) > > > at > > > > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo > ntex > > > t.java:1
Re: Problems with tomcat on UNIX
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne > > ction(Http11Protocol.java:700) > > at > > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584) > > at > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav > > a:683) > > at java.lang.Thread.run(Thread.java:536) > > > > Any help is greatly appreciated !! > > > > Thanks > > Amar > > > > > > - > > 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] > > -- -- Carlos J, Bracho M. "The significant problems we face cannot be solved at the same level of thinking we were at when we created them." Albert Einstein -- e-mail: [EMAIL PROTECTED] [EMAIL PROTECTED] MSN:[EMAIL PROTECTED] -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OFF-TOPIC] printing an object whose toString() method returns null
No need to be so surly about it, but thanks for answering his questions thoroughly. On Sep 23, 2004, at 7:47 PM, Caldarale, Charles R wrote: From: Travis Stevens [mailto:[EMAIL PROTECTED] Subject: printing an object whose toString() method returns null Now I know that this is a programming mistake, but it would have been nicer if a more specific error message was thrown. This can be easily accomplished by adding a check to the print(Object o) method that checks the result of String.valueOf(). So we should increase everyone's path length because one person does something completely counter to the Java API intent? Unfortunately, the Jsp 2.0 specification does not address this issue. Nor should it, since this is a Java API issue, not a JSP spec one. The print(Object o) is not documented to throw a NullPointerException, only an IOException. From the API spec: "public class RuntimeException extends Exception "RuntimeException is the superclass of those exceptions that can be thrown during the normal operation of the Java Virtual Machine. "A method is not required to declare in its throws clause any subclasses of RuntimeException that might be thrown during the execution of the method but not caught." NullPointerException is merely the most common of the large set of RuntimeException subclasses. - Chuck - 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: Reloading an application via command line
Bernhard: You can use Ant to execute commands from the manager app. So, your possibilities list below is actually just one possibility. Here's a link to the docs: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager- howto.html#Executing%20Manager%20Commands%20With%20Ant I don't know if there are other shell based commands that can do this. Ant works beautifully for me. Good luck, -Anthony Carlos On Sep 23, 2004, at 3:15 AM, Bernhard Slominski wrote: Hi, for an automated build process I want to reload an application via command line, is this possible? The possibilties I found out so far were: - ant script - using the tomcat manager Thanks Bernhard Slominski - 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: Do the jars I use affect webapp reloadability?
Yoav, Thanks for the response. It helps me out significantly because I have already found that some of the code I wrote was definitely using static variables that could never go out of scope. I've removed those, but the problem persists. I'm using log4j and Struts and your comment about LogManager#shutdown begs a question: Where in my code should I be calling the shutdown method? Is there some method in Tomcat that I need to override to call the shutdown method of each library I'm using? Or, should I be calling those methods by the end of each Struts Action#execute method? What about database connection pools? (I'm using OJB). I think that I want to maintain the pools even after the Action is executed so that the next database connection is relatively inexpensive. Where would I put the code to shutdown the pool only when a reload is happening? Thanks for your wisdom, -Anthony Carlos On Sep 21, 2004, at 9:06 AM, Shapira, Yoav wrote: Hi, Absolutely, the jars you used affect "reloadability". Two cases are the classics: - A library you use starts a non-daemon thread, and either doesn't close it or provides some sort of a shutdown method that you're not calling. This thread cannot be closed by Tomcat, so any of its resources (including its classloader by definition) cannot be recycled until the JVM is killed. - A library you use has classes that keep references to static variables that never go out of scope, meaning they can't be recycled, the classes with the references can't be recycled, and the classloader itself can't be recycled. Two things are therefore encouraged: - Design your app / architecture such that the need for reloads in production is rare, - Find which libraries do either of the above things, notify the vendor, and get on their case to fix it. There's also the obvious, ever-present advice, but it bears repeating: if a library you use provides methods to shutdown, always use them. For example, Log4j's LogManager#shutdown and Commons-Logging LogFactory#release/releaseAll methods. Both are rarely used ;( Yoav Shapira Millennium Research Informatics -Original Message- From: Anthony E. Carlos [mailto:[EMAIL PROTECTED] Sent: Monday, September 20, 2004 11:52 PM To: [EMAIL PROTECTED] Subject: Do the jars I use affect webapp reloadability? Hello, I'm experiencing a memory problem that is documented in http://jakarta.apache.org/tomcat/faq/deployment.html at the bottom. When I redeploy a web app, a 12MB chunk of memory gets taken by the JVM. After a few redeployments, I get an OutOfMemory error. The faq mentioned above blames it on the Classloader not being able to be recycled. I know that I can increase the size of the memory, but that isn't the real solution because eventually I'm going to have to restart Tomcat to reclaim the lost memory. My question is, do the jars I'm using affect the reloadability of a web app so that the Classloader cannot be recycled? I suspect this because as soon as I add a few jars to my apps, I start experiencing this phenomenon. I have a suspicion that it is OJB or the Oracle JDBC drivers, but I don't have any empirical data. Do you know of any jars that specifically cause this? Is there anything that can be done to ensure that the Classloader can be recycled (thus allowing me to redeploy web apps without wasting memory)? Thanks, -Anthony Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: can't send request over my network ip
Have you tried setting up a virtual host to listen to 192.168.1.172? On Sep 21, 2004, at 10:49 AM, QM wrote: On Tue, Sep 21, 2004 at 04:16:55PM +0200, Sebastian Kerekes wrote: : I can access Tomcat through 127.0.0.1:8080 but not via 192.168.1.172 : (private network). I'm using Tomcat 5.0.27. I haven't changed any of : Tomcat's settings. Do I have to change some settings or is this problem : not related to Tomcat? 1/ please post a *new* message when writing to the list. Replying to an old (unrelated) message confuses thread-aware mailers, which makes your question harder to find (and thus answer). 2/ sounds like a firewall issue. What OS do you use? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - 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]
real world deployment with multiple virtual hosts
Hello, I've configured Tomcat with multiple virtual hosts. However, because of ever-increasing memory usage, (see http://jakarta.apache.org/tomcat/faq/deployment.html at the bottom), I often have to restart Tomcat. Thus a dozen or so sites all go down for a minute or two while each of them reloads. My question is, what are people doing to avoid this problem? Are people generally running an individual instance of Tomcat for each virtual host? This would isolate each host and thus prevent the problem I'm having, but it seems like an awful waste of resources especially compared to Apache. Or, is there a way to restart just one virtual host? Thanks for your help, -Anthony Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Do the jars I use affect webapp reloadability?
Hello, I'm experiencing a memory problem that is documented in http://jakarta.apache.org/tomcat/faq/deployment.html at the bottom. When I redeploy a web app, a 12MB chunk of memory gets taken by the JVM. After a few redeployments, I get an OutOfMemory error. The faq mentioned above blames it on the Classloader not being able to be recycled. I know that I can increase the size of the memory, but that isn't the real solution because eventually I'm going to have to restart Tomcat to reclaim the lost memory. My question is, do the jars I'm using affect the reloadability of a web app so that the Classloader cannot be recycled? I suspect this because as soon as I add a few jars to my apps, I start experiencing this phenomenon. I have a suspicion that it is OJB or the Oracle JDBC drivers, but I don't have any empirical data. Do you know of any jars that specifically cause this? Is there anything that can be done to ensure that the Classloader can be recycled (thus allowing me to redeploy web apps without wasting memory)? Thanks, -Anthony Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Servlet coming as file download
Hello, I have a Apache 2.0.50 with an active mod_deflate connecting to Tomcat (4.x) via mod_jk2. After I activated deflate, sometimes when I call a servlet IE doesn´t open the page with the servlet response, but a file download window as if I was trying to download a file named 'servlet'. Can anyone please suggest a solution ? Thanks
Re: Long running JDBC session
Sorry, I sent the message to the wrong group. :P Nathan Maves <[EMAIL PROTECTED]To: Tomcat Users List <[EMAIL PROTECTED]> .COM>cc: Subject: Re: Long running JDBC session 04/05/2004 05:33 PM Please respond to "Tomcat Users List" This is really not a Tomcat question. Are you using connection pooling? If so which one? How many connections? Why are you not using the latest jar from oracle? You should download the 9i driver. What is your code for how you obtain connection and how you create statements. Are you using PreparedStatements? Nathan On May 4, 2004, at 2:31 PM, Carlos-Roberto Queiroz wrote: > > > > > Hello, I have a servlet that connects to an Oracle database (9i) > using classes12.jar JDBC file. In it, there´s a loop that executes a > quick > query 3000 times, and that´s running for long 10 minutes !! Is there > any > way I can optimize this connection (JDBC parameters maybe) for such > case ? > > > Thanks > > > - > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Long running JDBC session
Hello, I have a servlet that connects to an Oracle database (9i) using classes12.jar JDBC file. In it, there´s a loop that executes a quick query 3000 times, and that´s running for long 10 minutes !! Is there any way I can optimize this connection (JDBC parameters maybe) for such case ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Content-disposition with non-us filename problem: Tomcat 4.1.24 + JK2 2.0.2 + Apache 2
Hi, I'm trying to http download a file whose name has latin characteres via servlet. The servlet composes a http request with the header: Content-disposition: attachment; filename="fileNameWithLatinCharacters" If the request is dispatched to the browser directly by tomcat, fileNameWithLatinCharacters (header and open save box dialog) is correctly formed and displayed. When the request is dispatched through apache + JK2 2.0.2 , fileNameWithLatinCharacters gets malformed. ISO-8859-1 and es language are configured in apache configuration file, and it doesn't have any problems to serve static pages with latin characteres. Could it be a JK2 module matter? Is there any compilation/configuration option in JK2 module that addresses this problem? Or any other idea? That's the log: - Request: GET /webmail/attachment?¤twindow=1&instance=foo&session_id=017F2165E2CF9F6EDC2F80F023EE709C&msgId=<[EMAIL PROTECTED]>&msgNum=1&webmail_folder=INBOX&filename=IPP_0012ñññáá.GIF&contentType=image/gif HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */* Accept-Language: es Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Host: des.correonotarial.org Connection: Keep-Alive Cookie: JSESSIONID=017F2165E2CF9F6EDC2F80F023EE709C Apache + JK2 + Tomcat response: HTTP/1.1 200 Date: Fri, 16 Apr 2004 09:56:34 GMT Server: Apache/2.0.47 (Unix) PHP/4.3.4 mod_jk2/2.0.2 DAV/2 Content-disposition: attachment; filename="IPP_0012ñññáá.GIF" -> *** WRONG filename *** Content-Type: application/x-download; charset=iso-8859-1 Content-Language: es-ES Transfer-Encoding: chunked Standalone Tomcat response: - --- HTTP/1.1 200 OK Content-disposition: attachment; filename="IPP_0012ñññáá.GIF" -> *** RIGHT filename *** Content-Type: application/x-download; charset=iso-8859-1 Transfer-Encoding: chunked Date: Fri, 16 Apr 2004 10:16:19 GMT Server: Apache Coyote/1.0 Thanks a lot, best regards Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
About JSP Remove
I have various JSP Files, but I don't want that other people that have access to the server with a super user can see them... Can I run tomcat jsp files from compiled class, without .jsp files? Tnx. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deployment with the manager app (manifest question)
Dear Sir / Madam, I am testing the deployment of a webapp that needs some java extensions (jdbc connectors) which are not available on the server. I specified the optional packages and their versions in the MANIFEST.MF file included in the WAR file as I suppose one has to. Surprisingly, the manager app does not report any error when I deploy the war file... but, of course, the deployed application won't start because it does not have all the needed extensions. I am using tomcat version 5.0.19 and my MANIFEST file contents are as follows: Manifest-Version: 1.2 Name: CMECP/fo Class-Path: servlet-api.jar activation.jar mail.jar com.mysql.jdbc Extension-List: activation mail mysqljdbc servlet activation-Extension-Name: javax.activation activation-Specification-Version: 1.0 activation-Implementation-Version: 1.0.2 activation-Implementation-Vendor-Id: com.sun activation-Implementation-URL: http://java.sun.com/products/stdext/activation.jar mail-Extension-Name: javax.mail mail-Specification-Version: 1.3 mail-Implementation-Version: 1.3.1 mail-Implementation-Vendor-Id: com.sun mail-Implementation-URL: http://java.sun.com/products/stdext/mail.jar mysqljdbc-Extension-Name: com.mysql.jdbc mysqljdbc-Specification-Version: 3.0 mysqljdbc-Implementation-Version: 3.0.10 mysqljdbc-Implementation-Vendor-Id: com.mysql mysqljdbc-Implementation-URL: http://www.mysql.com/products/mysql-connector-java-3.0.10-stable- bin.jar servlet-Extension-Name: javax.servlet servlet-Specification-Version: 2.4 servlet-Implementation-Version: 2.4.public_draft servlet-Implementation-Vendor-Id: org.apache servlet-Implementation-URL: http://jakarta.apache.org/products/servlet-api.jar Do you detect any changes I might do to the MANIFEST.MF file so that Tomcat's manager stops it from being deployed? I thank you in advance for any comments you may send. Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Client authentication and customized error pages
(Hi everyone! Here i'm again, asking for some help about https authentication and custom error pages.) Dear Mr. Bill Barker, We've used "clientAuth=want" as you suggested; and now we've managed to "know" that a client tried to access the application without a valid certificate. That's is OK, and we thank you very much. But when we try to launch an customized error page, a new error happens. It seems that the conection with the remote browser is broken. Who closed it? When? How? The point is that we can't return our error page... I've seen that Mr. Alain Baucant has been working with the same problem. Maybe he could help us. Thanks in advice, Carlos Guardiola PS- We've got the stacktrace in our catalina.out; it's quite large, i think i'm gonna send you a shorter one ;-) ADVERTENCIA: Exception getting SSL Cert java.net.SocketException: Socket Closed at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:177) at java.net.Socket.setSoTimeout(Socket.java:924) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.setSoTimeout(DashoA6275) at org.apache.tomcat.util.net.jsse.JSSE14Support.synchronousHandshake(JSSE14Sup port.java:137) at org.apache.tomcat.util.net.jsse.JSSE14Support.handShake(JSSE14Support.java:1 05) at org.apache.tomcat.util.net.jsse.JSSESupport.getPeerCertificateChain(JSSESupp ort.java:163) at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:1082) () (Sysdate) org.apache.tomcat.util.net.jsse.JSSE14Support synchronousHandshake INFO: SSL Error getting client Certs javax.net.ssl.SSLProtocolException: handshake alert: no_certificate at com.sun.net.ssl.internal.ssl.SunJSSE_aw.b(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.AppInputStream.read(DashoA6275) at java.io.InputStream.read(InputStream.java:89) at org.apache.tomcat.util.net.jsse.JSSE14Support.synchronousHandshake(JSSE14Sup port.java:126) at org.apache.tomcat.util.net.jsse.JSSE14Support.handShake(JSSE14Support.java:1 05) () (Sysdate) org.apache.coyote.http11.Http11Processor action ADVERTENCIA: Exception getting SSL Cert javax.net.ssl.SSLProtocolException: handshake alert: no_certificate at com.sun.net.ssl.internal.ssl.SunJSSE_aw.b(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.AppInputStream.read(DashoA6275) at java.io.InputStream.read(InputStream.java:89) at org.apache.tomcat.util.net.jsse.JSSE14Support.synchronousHandshake(JSSE14Sup port.java:126) () Here is the access log; it seems that it's trying to get the "Error 400" page... (client IP) - - [(Sysdate)] "GET /(app. directory)/ HTTP/1.1" 400 45 -Mensaje original- De: news [mailto:[EMAIL PROTECTED] En nombre de Bill Barker Enviado el: viernes, 05 de marzo de 2004 3:20 Para: [EMAIL PROTECTED] Asunto: Re: Client authentication and customized error pages Using clientAuth="true", the error happens too early to be able to invoke an error-page. You might try using clientAuth="want" instead. In this case, the user still gets prompted for a cert, but the request continues if she hits "cancel". It is then the responsibility of your webapp to handle the case where there is no cert sent. "Carlos Guardiola" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi everyone! > I'm using SSL client authentication in a tomcat 5.0.19. Everything goes > fine, but i need some help customizing error pages. > > When a client want to use my application, the browser asks him to choose > a valid certificate, but perhaps he hasn't a valid one. If he doesn't > have a certificate, the client authentication can't be done, so my > application is never invoked. O.K. > > So, the browser shows a "page not found error", wich isn't one of my > application's customized error pages (as my application have never been > invoked). How can i customize that error page, in order to show > something like "you need a valid certificate"? > > I've created my own ErrorReportValve, used in the > "errorReportValveClass" directive of the Host in my tomcat's server.xml. > But it also seems not being invoked... > > Any help will be useful, thanks in advice, > > Carlos - 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: problem exception in Tomcat 5.0.19
Dear Ben, Thanks for help me. You can give me some example of how create this context in the server.xml. I can not see the ContentManager tag in my server.xml. I have tomcat 5.0.19 in Linux Red Hat 7.3. Thanks dear Ben. -Mensaje original- De: Hofmann, Benjamin [mailto:[EMAIL PROTECTED] Enviado el: martes, 09 de marzo de 2004 10:22 Para: 'Tomcat Users List' Asunto: RE: problem exception in Tomcat 5.0.19 You need to manually create a context in the server.xml and add the datasource resources to it. Ben -Original Message----- From: Carlos Alberto Peláez Ayala [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 09, 2004 9:13 AM To: [EMAIL PROTECTED] Subject: problem exception in Tomcat 5.0.19 I found this problem in my portal.log file. Something can tell me how i can solve this ?. Thanks. EXCEPTION: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC dri ver of class '' for connect URL 'null', cause: No suitable driver org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: java.sql.SQLException: No suitable driver at java.sql.DriverManager.getDriver(DriverManager.java:243) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav a:743) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5 18) at org.jasig.portal.RDBMServices.getConnection(RDBMServices.java:255) at org.jasig.portal.RDBMServices.getConnection(RDBMServices.java:288) at org.jasig.portal.RDBMUserLayoutStore.getStructureStylesheetUserPreferences(R DBMUserLayoutStore.java:949) at org.jasig.portal.RDBMUserLayoutStore.getUserPreferences(RDBMUserLayoutStore. java:2953) at org.jasig.portal.UserPreferencesManager.(UserPreferencesManager.java:1 39) at org.jasig.portal.UserInstance.writeContent(UserInstance.java:149) at org.jasig.portal.PortalSessionManager.doGet(PortalSessionManager.java:246) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:257) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext Valve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :156) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:732) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:688) at java.lang.Thread.run(Thread.java:534) - 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]
problem exception in Tomcat 5.0.19
I found this problem in my portal.log file. Something can tell me how i can solve this ?. Thanks. EXCEPTION: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC dri ver of class '' for connect URL 'null', cause: No suitable driver org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: java.sql.SQLException: No suitable driver at java.sql.DriverManager.getDriver(DriverManager.java:243) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav a:743) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5 18) at org.jasig.portal.RDBMServices.getConnection(RDBMServices.java:255) at org.jasig.portal.RDBMServices.getConnection(RDBMServices.java:288) at org.jasig.portal.RDBMUserLayoutStore.getStructureStylesheetUserPreferences(R DBMUserLayoutStore.java:949) at org.jasig.portal.RDBMUserLayoutStore.getUserPreferences(RDBMUserLayoutStore. java:2953) at org.jasig.portal.UserPreferencesManager.(UserPreferencesManager.java:1 39) at org.jasig.portal.UserInstance.writeContent(UserInstance.java:149) at org.jasig.portal.PortalSessionManager.doGet(PortalSessionManager.java:246) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:257) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext Valve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :156) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:732) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:688) at java.lang.Thread.run(Thread.java:534) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Client authentication and customized error pages
Hi everyone! I'm using SSL client authentication in a tomcat 5.0.19. Everything goes fine, but i need some help customizing error pages. When a client want to use my application, the browser asks him to choose a valid certificate, but perhaps he hasn't a valid one. If he doesn't have a certificate, the client authentication can't be done, so my application is never invoked. O.K. So, the browser shows a "page not found error", wich isn't one of my application's customized error pages (as my application have never been invoked). How can i customize that error page, in order to show something like "you need a valid certificate"? I've created my own ErrorReportValve, used in the "errorReportValveClass" directive of the Host in my tomcat's server.xml. But it also seems not being invoked... Any help will be useful, thanks in advice, Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Alternatives to J2EE Authentication
Hello. The idea of a servlet filter to manage part of the user login process that I read here rang a bell in my head. Diggin' in books & articles I finally found where I have first heard such a thing :^) In "Professional Struts Applications" (Carnel, Linwood, Zawadzki - Apress, 2003) the authors state that it is possible to define "[...] a filter [...] that checks if the user is logged on into the application. If the user has not logged in yet, they will automatically be logged in as an anonymous user", furthermore, "[...] this filter is called every time the Struts ActionServlet is invoked" (achieved by mapping the filter and action servlet to the same url pattern, of course) This whole filter thing seems like a pretty good trick to me, and becomes even more interesting if, for instance, you think of adding Tiles into the mix to take care of different (and automatically loaded) application Look & Feel depending on the type of user... Anyway, just some thoughts I thought I'd share on the list... Best regards, Carlos "You start coding. I'll go find out what they want." Computer analyst to programmer - Original Message - From: "David Evans" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 26, 2004 10:31 PM Subject: Re: Alternatives to J2EE Authentication > Having just researched this, here's what i found. > Using a javax.servlet.Filter works very well. > As you say, You check the session for an attribute value that indicates > authentication. in its absence you use a RequestDispatcher to > forward to a login servlet which checks for four cases: > 1. no request parameters, display logon form > 2. invalid request parameters, display errors > 3. unable to authenticate with valid parameters, display error > 4. parameters authenticate, forward to home page > Thanks to Rick Bay on the struts-users list for this idea. > along with option 3 on this email. > http://www.mail-archive.com/[EMAIL PROTECTED]/msg24504.html > > This is a fully featured, xml file configurable filter > that i will eventually use as my solution: > http://securityfilter.sourceforge.net/ > > but for fun and understanding i wrote (cut and pasted bits from the web > really) this one, as a test: > > public final class AuthFilter implements Filter { > > public void doFilter(ServletRequest request, ServletResponse response, >FilterChain chain) > throws IOException, ServletException { > > boolean auth = false; > > if (request instanceof HttpServletRequest) { > HttpSession session = > ((HttpServletRequest)request).getSession(); > String path = ((HttpServletRequest) request).getPathInfo(); > Boolean authAttr = > (Boolean) session.getAttribute("authenticated"); > if (authAttr != null) auth = authAttr.booleanValue(); > } > if (auth) { > chain.doFilter(request, response); > return; > } > else { > RequestDispatcher dispatcher = > request.getRequestDispatcher("/login.do"); > dispatcher.forward (request, response); > return; > } > } > > } > > Hope that helps. > > dave > > On Thu, 2004-02-26 at 18:19, Steven J. Owens wrote: > > Hi folks, > > > > The most common (and frustrating) bookmarked login page gotcha > > with J2EE authentication has been oft-discussed (broken as designed) > > on this list. > > > > What are people's favorite alternatives to J2EE authentication? > > And why? > > > > Something I'm particularly interested is alternatives that don't > > require me to rebuild the application from scratch. I'm looking at > > tearing out the old login process and putting in a new one and I don't > > really want to start the whole thing over. > > > > If I had to build it from scratch myself, I'd do it as a simple > > Servlet filter that checks for a Principal object stored in the user's > > HttpSession. > > > - > 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]
Problem building Tomcat 5.0.19
Dear friends, I try to install the source of Tomcat 5.0.19 in a Linux Red Hat 7.3 box, using : Ant 1.6.1. When i excute the "ant build" or "ant" command, appear this error: deploy-prepare: build-catalina-core: build-catalina-optional: [javac] Compiling 22 source files to /virtual/tomcat_5/jakarta-tomcat-5/build/classes [javac] /virtual/tomcat_5/jakarta-tomcat-catalina/catalina/src/share/org/apache/nami ng/factory/MailSessionFactory.java:71: package javax.mail does not exist [javac] import javax.mail.Session; [javac] ^ [javac] /virtual/tomcat_5/jakarta-tomcat-catalina/catalina/src/share/org/apache/nami ng/factory/SendMailFactory.java:71: package javax.mail does not exist [javac] import javax.mail.Session; [javac] ^ [javac] /virtual/tomcat_5/jakarta-tomcat-catalina/catalina/src/share/org/apache/nami ng/factory/SendMailFactory.java:72: package javax.mail.internet does not exist [javac] import javax.mail.internet.InternetAddress; [javac]^ [javac] /virtual/tomcat_5/jakarta-tomcat-catalina/catalina/src/share/org/apache/nami ng/factory/SendMailFactory.java:73: package javax.mail.internet does not exist [javac] import javax.mail.internet.MimeMessage; [javac]^ [javac] /virtual/tomcat_5/jakarta-tomcat-catalina/catalina/src/share/org/apache/nami ng/factory/SendMailFactory.java:74: package javax.mail.internet does not exist [javac] import javax.mail.internet.MimePart; [javac]^ [javac] /virtual/tomcat_5/jakarta-tomcat-catalina/catalina/src/share/org/apache/nami ng/factory/SendMailFactory.java:75: package javax.mail.internet does not exist [javac] import javax.mail.internet.MimePartDataSource; [javac]^ [javac] /virtual/tomcat_5/jakarta-tomcat-catalina/catalina/src/share/org/apache/nami ng/factory/MailSessionFactory.java:163: cannot resolve symbol [javac] symbol: class Session [javac] Session session = Session.getInstance(props, null); [javac] ^ [javac] /virtual/tomcat_5/jakarta-tomcat-catalina/catalina/src/share/org/apache/nami ng/factory/MailSessionFactory.java:163: cannot resolve symbol [javac] symbol: variable Session [javac] Session session = Session.getInstance(props, null); [javac] ^ [javac] /virtual/tomcat_5/jakarta-tomcat-catalina/catalina/src/share/org/apache/nami ng/factory/SendMailFactory.java:155: cannot resolve symbol [javac] symbol: class MimeMessage [javac] MimeMessage message = new MimeMessage( [javac] ^ [javac] /virtual/tomcat_5/jakarta-tomcat-catalina/catalina/src/share/org/apache/nami ng/factory/SendMailFactory.java:155: cannot resolve symbol [javac] symbol: class MimeMessage [javac] MimeMessage message = new MimeMessage( [javac] ^ [javac] /virtual/tomcat_5/jakarta-tomcat-catalina/catalina/src/share/org/apache/nami ng/factory/SendMailFactory.java:156: cannot resolve symbol [javac] symbol: variable Session [javac] Session.getInstance(props)); [javac] ^ [javac] /virtual/tomcat_5/jakarta-tomcat-catalina/catalina/src/share/org/apache/nami ng/factory/SendMailFactory.java:159: cannot resolve symbol [javac] symbol: class InternetAddress [javac] message.setFrom(new InternetAddress(from)); [javac] ^ [javac] /virtual/tomcat_5/jakarta-tomcat-catalina/catalina/src/share/org/apache/nami ng/factory/SendMailFactory.java:162: cannot resolve symbol [javac] symbol: class MimePartDataSource [javac] MimePartDataSource mds = new MimePartDataSource( [javac] ^ [javac] /virtual/tomcat_5/jakarta-tomcat-catalina/catalina/src/share/org/apache/nami ng/factory/SendMailFactory.java:162: cannot resolve symbol [javac] symbol: class MimePartDataSource [javac] MimePartDataSource mds = new MimePartDataSource( [javac] ^ [javac] /virtual/tomcat_5/jakarta-tomcat-catalina/catalina/src/share/org/apache/nami ng/factory/SendMailFactory.java:163: cannot resolve symbol [javac] symbol: class MimePart [javac] (MimePart)message); [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -deprecation for details. [javac] 15 errors BUILD FAILED /virtual/tomcat_5/build.xml:50: Following error occured while executing this line /virtual/tomcat_5/jakarta-tomcat-5/build.xml:451: Following error occured while executing this line /virtual/tomcat_5/jakarta-tomcat-5/build.xml:415: Follo
Re: RTFM
> no, I'm not returning anything from the servlet. It's not "returning anything"! You must return after using sendRedirect, otherwise your servlet will continue running. That's probably the problem, as it redirects you to another page, but continues it's execution. Try returning. Carlos Pereira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building jakarta-tomcat-connectors-jk2-2.0.2-src [HOW?]
Hello again. Thanks A LOT for que quick answers. Mr. Shapira was absolutely right with his UNIX point of view, and along with his reasoning the instructions from Mr. Eggers helped me (finally) build the jk2 module for Apache. Basically, the rest of the building process after running Ant is as follows: 1. Go ${JTC_HOME}/jk/native2 and run ./buildconf.sh. (as stated in http://www.blacksheepnetworks.com/security/resources/apache2-tomcat404-howto.html) This will create the configure file. 2. Run /configure --with-apxs2=${APACHE_HOME}/bin/apxs --with-java-home=${JAVA_HOM E} . This will create the Makefile file. 3. Run make. 4. Look for mod_jk2.so file and place it in the proper location (${APACHE_HOME}/modules) * Mr. Eggers mini how-to (http://marc.theaimsgroup.com/?l=tomcat-user&m=106541574307371&w=2) is more complete and I think has gone through a whole lot more testing than my procedure; I suggest to look at and try his instructions first. Now, since I'm dealing with the embedded version of Tomcat (JBoss/Tomcat bundle), I'll dive into configuring it to work with Apache... again, any help would be greatly appreciated... ;^) Any results (good & bad) will also be posted :-) Best regards, Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Building jakarta-tomcat-connectors-jk2-2.0.2-src [HOW?]
Hi everyone. Tryin' to build mod_jk2 for my Slackware box (version 9.1 with reiserfs) I've come to a dead-end, and I would appreciate any help since the documentation I've looked into (including the mailing lists) seems to be out of date regarding the building process for version 2.0.2 of the Jakarta-Tomcat-Connectors. Please consider the necessary enviroment variables set up as follows: JTC_HOME = /usr/src/jakarta-tomcat-connectors-jk2-2.0.2-src/ JAVA_HOME = /usr/local/java/j2sdk1.4.2_03 TOMCAT_HOME = /usr/local/tomcat/jakarta-tomcat-4.1.29 APACHE2_HOME = /usr/local/apache2 ANT_HOME = /usr/local/ant/apache-ant-1.5.4 In order to successfully run the Ant build file I had to: 1. Modify the provided $JTC_HOME/jk/build.properties.sample to match my enviroment (set up paths, basically) 2. Create an empty 'java' directory inside $JTC_HOME/jk 3. Create the following directory structure inside $JTC_HOME: 'coyote/build/lib' 4. Copy every $TOMCAT_HOME/server/lib/*.jar file into $JTC_HOME/coyote/build/lib After the build process, the necessary files to actually generate the *.so module file for the JK2 connector are left in $JTC_HOME/jk/native2/server/apache2 I assumed that the 'Makefile.in' file was the one to be renamed as 'Makefile' in order tu run make, so I did renamed it and executed make but got the following output: mkdir -p ../../../build/jk2/apache2 make: APACHE2_HOME@/build/libtool: Command not found make: *** [../../../build/jk2/apache2/jk_channel.lo] Error 127 Apparently, the APACHE2_HOME@ variable was the source of the problem, so I went and modified the Makefile changing [EMAIL PROTECTED]@ into APACHE2_HOME=/usr/local/apache2 That solved the problem, but then another one came up. When executing make again, I got the folling output: mkdir -p ../../../build/jk2/apache2 /usr/local/apache2/build/libtool --mode=compile @CC@ @APXS2_CFLAGS@ @APXS2_CPPFLAGS@ -I../../include @APACHE2_INCL@ @APR_CFLAGS@ -I @JAVA_HOME@/include -I @JAVA_HOME@/include/@OS@ -DCHUNK_SIZE=4096 -DUSE_APACHE_MD5 -DHAS_APR @HAVE_JNI@ @HAS_PCRE@ -c ./../common/jk_channel.c -o ../../../build/jk2/apache2/jk_channel.lo rm -f ../../../build/jk2/apache2/.libs/jk_channel.lo @CC@ @APXS2_CFLAGS@ @APXS2_CPPFLAGS@ -I../../include @APACHE2_INCL@ @APR_CFLAGS@ -I @JAVA_HOME@/include -I @JAVA_HOME@/include/@OS@ -DCHUNK_SIZE=4096 -DUSE_APACHE_MD5 -DHAS_APR @HAVE_JNI@ @HAS_PCRE@ -c ./../common/jk_channel.c -fPIC -DPIC -o ./../../build/jk2/apache2/.libs/jk_channel.lo /usr/local/apache2/build/libtool: line 1: @CC@: command not found make: *** [../../../build/jk2/apache2/jk_channel.lo] Error 1 Its seemed that the problem was now with the @CC@ variable -which I think should point to /usr/bin/cc. I used the same reasoning as before I changed [EMAIL PROTECTED]@ for CC=/usr/bin/cc, but got an error message pretty much like the last one except for the two last lines: .. cc: cannot specify -o with -c or -S and multiple compilations make: *** [../../../build/jk2/apache2/jk_channel.lo] Error 1 ...And finally Here's where I'm stalled :-( Any help will be geratly appreciated. Regards, Carlos
Re: how to deploy ejb in tomcat
Hi... You'll probably get lots of answers, but here's a very short one ;-) Tomcat IS NOT a container for EJB's... you might want to take a look at JBoss (www.jboss.org)... Regards, Carlos "To define recursion, we must first define recursion." - Original Message - From: "bala magesh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 05, 2004 9:35 AM Subject: how to deploy ejb in tomcat > hai to all > i expect from any one how to deploy a ejb in tomcat > plz reply soon > bala > > _ > Gujarat Kite Fest at http://go.msnserver.com/IN/40247.asp > www.gujaratkitefest.com > > > - > 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]
servlet mappings
Yes there any way i can programatically find out the servlet mappings defined in web.xml? Best regards, Carlos Pereira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: memory-leaks in servlets, tool for tracing ?
Yoav, You make a great point about how the app should stabilize it's memory usage over time. However, I've got a question about memory usage when I stop (via Tomcat manager) and reload a webapp via a WAR file. If I understand your point, and I'm close to the max heap size, shouldn't GC free up the memory from the old webapp? In my case, GC happens more frequently, but doesn't do a great job (not even close to freeing up the memory footprint of my webapp). Eventually, I run into out of memory problems. Shouldn't a reload of a webapp cause a relase of the resources from the old webapp? -Anthony Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing jakarta on linux RH9 (LEONARDO)
Hola, sobre tu pregunta, la más reciente versión de Tomcat es la que mencionas en tu correo (4.1.29), puedes instalar esa. Personalmente yo no he tenido problemas con la versión anterior (4.1.27) He trabajado con esa cerca de dos meses sin dificultad. (Hi. About your question: yes, the latest Tomcat release is the one you mention in your email: 4.1.29, you could start with it. Personally, I'll stay with the previous stable version, 4.1.27. I have been working nice with it for about 2 months) Te recomiendo que hagas la instalación evitando los RPM's. Baja el archivo *.tar.gz y trata de hacer la instalación a mano, hay varios tutoriales buenos para eso (por ejemplo: http://daydream.stanford.edu/tomcat/install_web_services.html) I recommend that you install Tomcat avoiding RPM's. Download source files and do it by hand, there are excelent tutorials for this (ie. http://daydream.stanford.edu/tomcat/install_web_services.html) Buena suerte! Gud luck! - Original Message - From: "LEONARDO MARTINEZ" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, November 03, 2003 4:00 PM Subject: Installing jakarta on linux RH9 Hi! I need install a web server on RH9 that support jsp, it's web server is a jakarta Tomcat but I don't know da version to install, maybe v 4.1.29 ?? PLZ send a answer (sorry, I'm not a native english, im spanish) LOL BR SONNIC - 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]
Apache Tomcat 4.1.29 and Sysdeo plugin
Playing today with the new Apache Tomcat release I found that the plugin had trouble starting Tomcat within the Eclipse IDE... but also found out that the plugin must be configured to use Tomcat Version 5.x (Windows>Preferences>Tomcat>Tomcat versions radio buttons) instead of version 4.1.x (even though you have 4.1.29 installed) to work as expected... I allready sent this comment to the guys at Sysdeo, but just in case someone here ran into the same problem the above setting will do the trick... If anyone can shed some light on why could this be happening I would be very happy :-) God luck... have a nice weekend... Regards, Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xhtml and Internet Explorer
> That's because IE ignores the Content-Type header and just looks at the > first few bytes of the file to decide how to display it. What a POS. > Anyway... (Christopher Schultz) IE works like this: in the first call to a web page, it checks the Content-Type and displays the web page accordingly. Next time you request the same page, it ignores the Content-Type. > > I know that this issue came up before on this > > list, but the solution suggested previously > > (adding a page directive with the content type) > > does not work. (Marius Scurtescu) So, do the following: 1. You have to make sure IE is foing to display the most recent page. You can do this by either adding a pragma/no-cache header, or go to (in IE): tools/internet options/temporary internet files/settings and, under "check for newer versions of stored pages", select the "every visit to the page" option. When you are developing, this last thing should ALWAYS be done. Otherwise, you might be getting IE cached versions of the web page and asking yourself why the changes aren't working. 2. Force IE to read the Content-Type again. Simply shut down the browser, and request your xhtml page to see if it works. Hope that helps. Carlos Pereira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Factory methods.
Factory is a "design pattern". Design patterns are ways of designing objects that are typical and have been used before, and thus can be reused (note: reuse of the design, not the source code). Have you ever heard about the Model-View-Controller (MVC) design pattern, for instance? You'll find design patterns in lots of APIs, so knowing about them helps you understand things better. Probably, you have come across more design patterns without even knowing. If you want to know more about design patterns, just google for it. Or try http://www.bruceeckel.com/ and find a book about design patterns there; it starts with the basics. Regards, Carlos Pereira - Original Message - From: "anunay ashish" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, October 28, 2003 11:35 AM Subject: Factory methods. > Why are some methods called factory methods? > e.g. prepareStatement() in java.sql.PreparedStatement > > - > 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: JDBC Connection question
> Which server do you use? Weblogic, Websphere, ... > support connection pooling. (Caroline Jen) > Oracle 9iAS Supports DataSources with pooling as well. (Wade Chandler) Thats not the issue. Whatever server i use, i'll have to deploy the application somewhere. My company does not have any servers, so we have to use an outside server. Won't the need to configure server.xml (or something similar) give me any troubles? Why isn't it possible to configure connection pooling through web.xml? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: File writing performance
> I don't know how it is with SWF files. But other technologies like > PDF work with byte range requests to start the display of the > first page before the full dokument is there. (Ralph Einfeldt) Oops! Flash does show frames as they come in, before the whole swf file is downloaded... > My remark was just a warning, that something like that can > happen. (Ralph Einfeldt) Yes, and i don't know anything about that, so i must be careful. What is the consequence, if flash uses byte range requests and i simply write the file to the output stream? Best regards, Carlos Pereira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]