Re: common image practice?
D. Stimits wrote: I'm looking for a good or best practice to deal with site-wide logo type files...things that will never change, and that every app will want access to. This is on linux, but enabling sym links just seems to be an admin/backup complexity, and duplicating logos in every project also seems wrong. I see the shared directory looks ideal, but apparently this is only for classes or libraries. Perhaps a simple logo loader class in the shared folder would be most convenient, but I have to wonder if loading something as simple as a small logo should have to use the overhead of going through a class. You could place logos and such common stuff in a separate globa path, otside all webapps (like in the webserver ROOT). This is totally un-self-contained. A slight imprvement is to have a set of common classes that know what that global path is, could be configurable. That would make you semi-self-contained. A completely self contained solution is hard to achieve, if not impossible. How can anything OUTSIDE your webapp be a part of self-contained module. I mean, it's outside... Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ssl configuration. 5.0.28
-Original Message- From: Shapira, Yoav Now how do I close down the http://localhost/ port, just remove the port 80 connector? Yeah. And the next tiny step: To make the entire site use https, no port mentioned, Two more changes, to use 443 instead of 8443 I'm now providing https://localhost wholly under https! Thanks for the help folks. DaveP. Connector port=443 minProcessors=5 maxProcessors=75 disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS enableLookups=false connectionTimeout=2000 keystoreFile=webapps/repository/.keystore keystorePass=pwd / and Connector port=8009 enableLookups=false redirectPort=443 debug=0 protocol=AJP/1.3 / Since the default port for https I'm told is 443. -- DISCLAIMER: NOTICE: The information contained in this email and any attachments is confidential and may be privileged. If you are not the intended recipient you should not use, disclose, distribute or copy any of the content of it or of any attachment; you are requested to notify the sender immediately of your receipt of the email and then to delete it and any attachments from your system. RNIB endeavours to ensure that emails and any attachments generated by its staff are free from viruses or other contaminants. However, it cannot accept any responsibility for any such which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat5.0 shutdown
tomcat shuts down without any warning what could be the problem? also how do i remove my name from the mailing list? _ Get 10Mb extra storage for MSN Hotmail. Subscribe Now! http://join.msn.com/?pgmarket=en-hk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with JAAS
I'm evaluating an ISP that uses Tomcat to host webapps, and am running into a security problem. Any webapp that uses FORM authentication triggers an error from JAAS, saying that it can't find a login configuration. I'm certainly not using JAAS, and have just been adding users to the tomcat-users.xml file. I've been able to confirm that this happens with even the simplest apps. Can anyone give me any idea of what's going on here? My guess is that somehow Tomcat is configured to use JAAS by default, but since I've not used JAAS before now, I'm not sure where to look... Thanks, julian in london - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat5.0 shutdown
You are cool... First you ask a question and then you ask to be removed from the list very cool... Take a look a the logs, there should be some message which can help you. /rob usman usman wrote: tomcat shuts down without any warning what could be the problem? also how do i remove my name from the mailing list? _ Get 10Mb extra storage for MSN Hotmail. Subscribe Now! http://join.msn.com/?pgmarket=en-hk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Roberto Cosenza Infoflex Connect AB, Sweden Tel: +46-(0)8-55576860, Fax: +46-(0)8-55576861 -- Nordic Messaging Technologies is a trademark of Infoflex Connect. Please visit www.nordicmessaging.se for more information about our carrier-grade messaging products. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Runtime exec (again)
Hi, Still can't get this to work. There must be some reason why this won't run under Tomcat but does work stand-alone. To recap, I am trying to execute the following code on an Xp box with Tomcat 5.0.27: Process proc = runtime.exec(cmd.exe /C shutdown -r -f -m \\myPC -t 50); int exitVal = proc.waitFor(); When this runs the proc exits with a value of 0 but nothing happens (no re-boot) and no exceptions are thrown. I have tried running the code from a batch file and without the cmd.exe /C bit. I have tried running Tomcat from the command line (not as service). I have tried allowing all permissions in the catalina.policy file: grant codeBase file:${catalina.home}/webapps/ROOT/WEB-INF/classes/- { permission java.security.AllPermission *; }; I CAN successfully set the the system time and date using the same approach though. I have absolutely no idea on this now. Thanks, Andy _ Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ajp12Interceptor: HANDLER THREAD PROBLEM
Hi All, I have set up a website on my test machines using Apache1.3 Tomcat3.3.2 and mod_jk. While connecting to http://localhost/ I get the following error shown for Tomcat. Also attaching the error.log of httpd.conf. 2004-12-02 14:11:51 - Ctx() : Class not found: TOMCAT/JSP/index.jsp 2004-12-02 14:11:51 - Ctx() : Status code:404 request:R( + /index.jsp + null) m sg:null 2004-12-02 14:11:53 - Ctx() : Status code:404 request:R( + /index.jsp + null) m sg:null 2004-12-02 14:17:48 - Ctx() : Status code:404 request:R( + /index.jsp + null) m sg:null 2004-12-02 14:26:24 - Ajp12Interceptor: HANDLER THREAD PROBLEM - java.io.IOExcep tion: Stream broken at org.apache.tomcat.modules.server.Ajp12.readNextRequest(Ajp12.java:277 ) at org.apache.tomcat.modules.server.AJP12Request.readNextRequest(Ajp12In terceptor.java:215) at org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(A jp12Interceptor.java:178) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java :571) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:644) at java.lang.Thread.run(Thread.java:534) error.log- [Thu Dec 02 14:17:36 2004] [warn] module mod_jk.c is already added, skipping program files/apache group/apache/htdocs/manual/urlmapping.html [Wed Dec 01 16:16:58 2004] [error] [client 127.0.0.1] File does not exist: d:/program files/apache group/apache/htdocs/manual/urlmapping.html [Wed Dec 01 16:17:34 2004] [error] [client 127.0.0.1] File does not exist: d:/program files/apache group/apache/htdocs/manual/urlmapping.html [Wed Dec 01 16:54:14 2004] [error] [client 127.0.0.1] File does not exist: d:/program files/apache group/apache/htdocs/manual/urlmapping.html Apache server shutdown initiated... Apache server shutdown initiated... [Wed Dec 01 19:13:38 2004] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/support.cp.net/images/myprofile-on.gif [Wed Dec 01 19:13:38 2004] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/support.cp.net/images/myprofile-off.gif [Wed Dec 01 19:14:25 2004] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/support.cp.net/images/myprofile-on.gif [Wed Dec 01 19:14:25 2004] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/support.cp.net/images/myprofile-off.gif [Wed Dec 01 19:15:24 2004] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/support.cp.net/images/myprofile-on.gif [Wed Dec 01 19:15:24 2004] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/support.cp.net/images/myprofile-off.gif [Wed Dec 01 21:52:25 2004] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/support.cp.net/images/myprofile-on.gif [Wed Dec 01 21:52:25 2004] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/support.cp.net/images/myprofile-off.gif [Thu Dec 02 12:08:50 2004] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/support.cp.net/images/myprofile-on.gif [Thu Dec 02 12:08:50 2004] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/support.cp.net/images/myprofile-off.gif [Thu Dec 02 13:49:40 2004] [warn] module mod_jk.c is already added, skipping [Thu Dec 02 14:10:57 2004] [warn] module mod_jk.c is already added, skipping [Thu Dec 02 14:12:32 2004] [warn] module mod_jk.c is already added, skipping [Thu Dec 02 14:17:35 2004] [warn] module mod_jk.c is already added, skipping Could you please show me a way ? Thanks. Mayuresh.
RE: Runtime exec (again)
Hi, I can't test this because shutdown is only a command on Windows XP it seems ... that's what you're running right? I did however try ipconfig and that works .. % try { Runtime runtime = Runtime.getRuntime(); Process proc = runtime.exec(cmd.exe /C ipconfig); int exitVal = proc.waitFor(); BufferedInputStream bis = new BufferedInputStream(proc.getInputStream()); byte[] streamBuffer = new byte[4096]; int byteRead = -1; while ((byteRead = bis.read(streamBuffer)) - 1) { out.print(new String(streamBuffer, 0, byteRead)); } } catch (Exception e) { System.out.println(e.getMessage()); } % I can have a look when I get home tonight on my XP machine if you have not sorted it by then. Cheers, Allistair. -Original Message- From: andy wix [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 09:12 To: [EMAIL PROTECTED] Subject: Runtime exec (again) Hi, Still can't get this to work. There must be some reason why this won't run under Tomcat but does work stand-alone. To recap, I am trying to execute the following code on an Xp box with Tomcat 5.0.27: Process proc = runtime.exec(cmd.exe /C shutdown -r -f -m \\myPC -t 50); int exitVal = proc.waitFor(); When this runs the proc exits with a value of 0 but nothing happens (no re-boot) and no exceptions are thrown. I have tried running the code from a batch file and without the cmd.exe /C bit. I have tried running Tomcat from the command line (not as service). I have tried allowing all permissions in the catalina.policy file: grant codeBase file:${catalina.home}/webapps/ROOT/WEB-INF/classes/- { permission java.security.AllPermission *; }; I CAN successfully set the the system time and date using the same approach though. I have absolutely no idea on this now. Thanks, Andy _ Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Runtime exec (again)
On Thursday 2 December 2004 09:12, andy wix wrote: Hi, Still can't get this to work. There must be some reason why this won't run under Tomcat but does work stand-alone. To recap, I am trying to execute the following code on an Xp box with Tomcat 5.0.27: Process proc = runtime.exec(cmd.exe /C shutdown -r -f -m \\myPC -t 50); int exitVal = proc.waitFor(); When this runs the proc exits with a value of 0 but nothing happens (no re-boot) and no exceptions are thrown. This is just an idea, it might be completely wrong, but it could be to do with StringTokeniser. Runtime.exec(String) uses StringTokeniser to parse the string into tokens, and you might find that it works better if you do it yourself and use Runtime.exec(String[]) -- Edward Barrow Copyright Consultant (and amateur programmer) [EMAIL PROTECTED] ***Important: see http://www.copyweb.co.uk/email.htm for important information about the legal status of this email - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Asynchronous statistics logger
Hi, I am trying to implement an asynchronous statistics logger that would load on startup and be destroyed on shutdown of tomcat. This logger then needs to write to a log file / to disk / to log4j every x seconds with these statistics. Methods to add some statistic to it need to be accessible by all other classes in the same context (eg public static void addPageHit(String whatPage, int howBigWasIt); ) I have already tried writing an asynchronous Singleton, but this has caused major havoc with threading issues (jdk1.4.2 tomcat 5.0.25 redhat linux 9.0). In addition I know this is not good practice. This singleton was using the Timer and TimerTask for its implementation. What is the best practice for implementing this sort of class ? Thanks Michael --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004
RE: Asynchronous statistics logger
this strikes me as being something JMS would handle well, but Tomcat doesn't support JMS by default. I have seen people installing openJMS on Tomcat though. as for the startup/shutdown, that's going to be a Context Listener you want to implement and add to web.xml with listener. that's about all i can offer on this, sorry :) -Original Message- From: Michael Cornell [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 10:04 To: [EMAIL PROTECTED] Subject: Asynchronous statistics logger Hi, I am trying to implement an asynchronous statistics logger that would load on startup and be destroyed on shutdown of tomcat. This logger then needs to write to a log file / to disk / to log4j every x seconds with these statistics. Methods to add some statistic to it need to be accessible by all other classes in the same context (eg public static void addPageHit(String whatPage, int howBigWasIt); ) I have already tried writing an asynchronous Singleton, but this has caused major havoc with threading issues (jdk1.4.2 tomcat 5.0.25 redhat linux 9.0). In addition I know this is not good practice. This singleton was using the Timer and TimerTask for its implementation. What is the best practice for implementing this sort of class ? Thanks Michael --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Errors in Log file
Hi All, We have Tomcat 4.1.12 in production. Sometime users get INTER SERVER ERROR 500. In log files we have only two errors without any clues. Can any body explian the possible reasons of these errors. 1. java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) 2. java.lang.IllegalStateException at org.apache.coyote.tomcat4.CoyoteResponseFacade.sendRedirect(CoyoteResponseFa cade.java:340) at org.apache.jsp.DreamScreen_jsp._jspService(DreamScreen_jsp.java:564) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260).. Thanks and Regards, Pradeep Chauhan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Errors in Log file
a cursory glance on Google with tomcat java.net.SocketException: Connection reset by peer This exception occurs when a client made a request, and before receiving the full response, either of the following happened: client's browser has been closed. client's connection has been disconnected. client presses the stop button. This exception is normally harmless. It does not seem possible to trap this exception with J2SE. However you say you get error 500, so perhaps are you connecting to a resource using sockets yourself from your web app?? // --- from http://java.sun.com/features/2002/08/j2se-network.html Connection Reset by Peer : One of the issues that developers frequently run into is the Connection reset by peer exception: Exception in thread main java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read. This basically means that a network error occurred while the client was receiving data from the server. But what is really happening is that the server actually accepts the connection, processes the request, and sends a reply to the client. However, when the server closes the socket, the client believes that the connection has been terminated abnormally because the socket implementation sends a TCP reset segment telling the client to throw away the data and report an error. Sometimes, this problem is caused by not properly closing the input/output streams and the socket connection. Make sure you close the input/output streams and socket connection properly. If everything is closed properly, however, and the problem persists, you can work around it by adding Thread.sleep(1000) before closing the streams and the socket. This technique, however, is not reliable and may not work on all systems. -Original Message- From: Pradeep Chauhan [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 10:15 To: Tomcat Users List Subject: Errors in Log file Hi All, We have Tomcat 4.1.12 in production. Sometime users get INTER SERVER ERROR 500. In log files we have only two errors without any clues. Can any body explian the possible reasons of these errors. 1. java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) 2. java.lang.IllegalStateException at org.apache.coyote.tomcat4.CoyoteResponseFacade.sendRedirect(Co yoteResponseFa cade.java:340) at org.apache.jsp.DreamScreen_jsp._jspService(DreamScreen_jsp.java:564) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServlet Wrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.ja va:260).. Thanks and Regards, Pradeep Chauhan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : Problem with JAAS
Use tomcat env JAVA_OPTS=-Djava.security.auth.login.config=java config file to declare your login module. -Message d'origine- De : Julian Templeman [mailto:[EMAIL PROTECTED] Envoyé : jeudi 2 décembre 2004 09:56 À : [EMAIL PROTECTED] Objet : Problem with JAAS I'm evaluating an ISP that uses Tomcat to host webapps, and am running into a security problem. Any webapp that uses FORM authentication triggers an error from JAAS, saying that it can't find a login configuration. I'm certainly not using JAAS, and have just been adding users to the tomcat-users.xml file. I've been able to confirm that this happens with even the simplest apps. Can anyone give me any idea of what's going on here? My guess is that somehow Tomcat is configured to use JAAS by default, but since I've not used JAAS before now, I'm not sure where to look... Thanks, julian in london - 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: RE : Problem with JAAS
On Thu, 2 Dec 2004 11:36:48 +0100, LERBSCHER Jean-Pierre [EMAIL PROTECTED] wrote: Use tomcat env JAVA_OPTS=-Djava.security.auth.login.config=java config file to declare your login module. Thanks... But what I want to know is *why* it wants to use JAAS at all. *I* certainly don't want to have to, because a simple form authentication will work fine for me... julian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OFF-TOPIC : tool to generate JSP pages for a DB table
Hi all, Is there a tool that can generate JSP pages for a given table. It would be ideal if it can generate a insert, modify, delete and one search page (based on primary key or some indexes) Any pointers? Thanks Sreejith
RE: [SPAM_EMAIL] - RE: Errors in Log file - Found word(s) list error in the Text body.
Hi , No, we are not connecting to a resource using sockets. Is it possible that server is closing sockets after some interval of time by default. and because we are not getting response in that interval of time thats why it is generating such errors? Thanks, Pradeep -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 02.12.2004 03:52 PM To: Tomcat Users List Subject: [SPAM_EMAIL] - RE: Errors in Log file - Found word(s) list error in the Text body. a cursory glance on Google with tomcat java.net.SocketException: Connection reset by peer This exception occurs when a client made a request, and before receiving the full response, either of the following happened: client's browser has been closed. client's connection has been disconnected. client presses the stop button. This exception is normally harmless. It does not seem possible to trap this exception with J2SE. However you say you get error 500, so perhaps are you connecting to a resource using sockets yourself from your web app?? // --- from http://java.sun.com/features/2002/08/j2se-network.html Connection Reset by Peer : One of the issues that developers frequently run into is the Connection reset by peer exception: Exception in thread main java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read. This basically means that a network error occurred while the client was receiving data from the server. But what is really happening is that the server actually accepts the connection, processes the request, and sends a reply to the client. However, when the server closes the socket, the client believes that the connection has been terminated abnormally because the socket implementation sends a TCP reset segment telling the client to throw away the data and report an error. Sometimes, this problem is caused by not properly closing the input/output streams and the socket connection. Make sure you close the input/output streams and socket connection properly. If everything is closed properly, however, and the problem persists, you can work around it by adding Thread.sleep(1000) before closing the streams and the socket. This technique, however, is not reliable and may not work on all systems. -Original Message- From: Pradeep Chauhan [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 10:15 To: Tomcat Users List Subject: Errors in Log file Hi All, We have Tomcat 4.1.12 in production. Sometime users get INTER SERVER ERROR 500. In log files we have only two errors without any clues. Can any body explian the possible reasons of these errors. 1. java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) 2. java.lang.IllegalStateException at org.apache.coyote.tomcat4.CoyoteResponseFacade.sendRedirect(Co yoteResponseFa cade.java:340) at org.apache.jsp.DreamScreen_jsp._jspService(DreamScreen_jsp.java:564) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServlet Wrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.ja va:260).. Thanks and Regards, Pradeep Chauhan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - 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 : RE : Problem with JAAS
Perhaps because your configure your jaas realm in engine/host configuration. -Message d'origine- De : Julian Templeman [mailto:[EMAIL PROTECTED] Envoyé : jeudi 2 décembre 2004 11:53 À : Tomcat Users List Objet : Re: RE : Problem with JAAS On Thu, 2 Dec 2004 11:36:48 +0100, LERBSCHER Jean-Pierre [EMAIL PROTECTED] wrote: Use tomcat env JAVA_OPTS=-Djava.security.auth.login.config=java config file to declare your login module. Thanks... But what I want to know is *why* it wants to use JAAS at all. *I* certainly don't want to have to, because a simple form authentication will work fine for me... julian - 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: Content-Type rewriting in jakarta-tomcat-connectors
Hi again, Shapira, Yoav wrote: Hi, After upgrading from tomcat 4.1 to 5.0, a critical application here has It'd be a shame if the upgrade wasn't tested first in a test/QA environment ;( In 5.0.29, this comes out as Content-Type: application/xml;charset=utf-8 It's also interesting that you chose a beta version of Tomcat, as opposed to a stable version, for such an important application. However, that's irrelevant to this discussion. However, the key here is that the connector (more specifically around line 520 in jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/Response.ja va) is rewriting the carefully-constructed Content-Type string in a way that 1: I didn't ask for and 2: wasn't done in 4.1. So you've identified the specific location of the code you need to change. Given that it is highly unlikely that anyone at the other end is going to do anything about this any time soon, and given that the solution is very trivial (add a space in that string composer in Response.java), how are the chances of seeing this 'fixed' in an upcoming release of Tomcat 5.0.x? In an upcoming release, the chances are good. But we just released 5.0.30 so 5.0.31 won't happen in the next few days. So don't hold your breath, especially since it sounds like this is affecting a production instance. You could patch only the Response class, compile it, and put it in server/classes (which has priority over server/lib by definition), and that way fix the problem for your immediate needs in a custom but relatively effortless manner. Until now I have simply placed the tomcat-coyote.jar file into server/lib; this has worked fine. However, when following your suggestion (placing the modified Response.class in server/classes), the old behavior is seen again. It seems as if the server/classes directory is not included in the classpath used. Any idea what I've missed? Thanks, /Eirik You could also consider a Filter-based approach that sets the encoding including a charset: that way the connector won't have to rewrite/append the charset for you at all. And that way, your solution is portable and does not depend on a Tomcat release. As an aside, note that in general our implementation of these specs (HTTP, servlet, JSP) is stricter as Tomcat evolves. There are a number of things that worked in Tomcat 4.x that may not work (or work the same) in 5.x, so complete testing is a good idea when doing this major version upgrade. Yoav Shapira http://www.yoavshapira.com 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: OFF-TOPIC : tool to generate JSP pages for a DB table
Middlegen ? Original message Date: Thu, 2 Dec 2004 16:43:23 +0530 From: Sreejith [EMAIL PROTECTED] Subject: OFF-TOPIC : tool to generate JSP pages for a DB table To: TCUser [EMAIL PROTECTED] Hi all, Is there a tool that can generate JSP pages for a given table. It would be ideal if it can generate a insert, modify, delete and one search page (based on primary key or some indexes) Any pointers? Thanks Sreejith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fedora Core 3
On Wednesday 01 December 2004 11:34 am, Elihu Smails wrote: I have Tomcat 5.5.4, Java 1.5.0 and Apache 2.1 running on a Fedora Core 3 box. I have not seen any problems to date.. Ditto. Installed Tomcat from the latest tarball. Was ridiculously easy. Did not bother to un-install the gcc-java or libgcj stuff that comes with FC3, just set PATH and JAVA_HOME to the new stuff. jdk1.5.0 jakarta-tomcat-5.5.4 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_proxy_ajp
Title: mod_proxy_ajp Hi, Anyone know where i can downloaded it? And anyone know if it works with httpd 2.0.x? Ta Matt Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: LogOut from JDBC Realm
Hi there - Thanks for the responses and sorry to get back to this - I haven't made any progress and have had other problems (challenges?) to fix first! I have a link to a logout servlet with the doGet() method below. Using eclipse debugging shows that the session isValid=false on invalidate correctly. However clicking back on the browser creates a new session (with isValid=true)in my session handling function called from every page (except logout): public static HttpSession setSessionData (HttpServletRequest request) { HttpSession session = request.getSession(true); if (session.getAttribute(viewmode) ==null) session.setAttribute(viewmode, B); ... } So it doesn't seem that invalidate() is destroying the authentication - only clearing a session which can be recreated. Should I check if the session is invalid and forward to my logout page if so, or is there a way of invalidating the login info? Can anyone shed some photons on this. TC :5.0.19, Solaris 9, Mysql 4.something - JDBC Realm, SSL + filter giving Cache-Control - private,no-cache,no-store Chris Chappell public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/html); PrintWriter out = response.getWriter(); HttpSession session = request.getSession(); session.invalidate(); out.println(GeneralUI.htmlHeader()); out.println(table width=100%tr height=200 valign=centertd align=centerGoodbye - you are now logged out/td/tr/table); out.println(GeneralUI.htmlFooter()); return; } On Tuesday 23 November 2004 17:09, Chris Chappell wrote: Hi there Hi, Can anyone give me a pointer how to logout a JDBC Realm authenticated user without closing the browser. E.g. I need a log out button which forwards to a goodbye page and does something like this (fictitious) userSession.expire(); I've had a trawl thriough the docs etc and nothing springs to obvious use. Using SSL though don't think this would change anything re this. Just include this: % session.invalidate(); % it works on both 8080 (normal) and 8443 (ssl) connections. (TC 5.0.19 on Sol9 + MySQL 4)
RE: LogOut from JDBC Realm
instead of doing this, on your logout confirm JSP, use a meta expires tag to kill everything, then back will not function. http://www.htmlhelp.com/reference/wilbur/head/meta.html -Original Message- From: Chris Chappell [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 11:52 To: [EMAIL PROTECTED] Subject: Re: LogOut from JDBC Realm Hi there - Thanks for the responses and sorry to get back to this - I haven't made any progress and have had other problems (challenges?) to fix first! I have a link to a logout servlet with the doGet() method below. Using eclipse debugging shows that the session isValid=false on invalidate correctly. However clicking back on the browser creates a new session (with isValid=true)in my session handling function called from every page (except logout): public static HttpSession setSessionData (HttpServletRequest request) { HttpSession session = request.getSession(true); if (session.getAttribute(viewmode) ==null) session.setAttribute(viewmode, B); ... } So it doesn't seem that invalidate() is destroying the authentication - only clearing a session which can be recreated. Should I check if the session is invalid and forward to my logout page if so, or is there a way of invalidating the login info? Can anyone shed some photons on this. TC :5.0.19, Solaris 9, Mysql 4.something - JDBC Realm, SSL + filter giving Cache-Control - private,no-cache,no-store Chris Chappell public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/html); PrintWriter out = response.getWriter(); HttpSession session = request.getSession(); session.invalidate(); out.println(GeneralUI.htmlHeader()); out.println(table width=100%tr height=200 valign=centertd align=centerGoodbye - you are now logged out/td/tr/table); out.println(GeneralUI.htmlFooter()); return; } On Tuesday 23 November 2004 17:09, Chris Chappell wrote: Hi there Hi, Can anyone give me a pointer how to logout a JDBC Realm authenticated user without closing the browser. E.g. I need a log out button which forwards to a goodbye page and does something like this (fictitious) userSession.expire(); I've had a trawl thriough the docs etc and nothing springs to obvious use. Using SSL though don't think this would change anything re this. Just include this: % session.invalidate(); % it works on both 8080 (normal) and 8443 (ssl) connections. (TC 5.0.19 on Sol9 + MySQL 4) FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT
Re: common image practice?
On Thu, Dec 02, 2004 at 12:51:21AM -0700, D. Stimits wrote: : I'm looking for a good or best practice to deal with site-wide logo : type files...things that will never change, and that every app will want : access to. This is on linux, but enabling sym links just seems to be an : admin/backup complexity, True. : and duplicating logos in every project also : seems wrong. Why so? If you come from a strong C, C++, or systems management background, it may be a little tough to swallow at first. Those are venues in which file-level sharing and reuse are helpful. (Sort of. Trying to get apps to share libraries works just fine until version skew rears its ugly head. You'll eventually reach the same impasse trying to get webapps to share static content.) Java webapps are different: each one is supposed to be a self-contained package that can be dropped into a container for execution. Even the use of {tomcat}/shared/lib is discouraged, as it places a webapp dependency outside of the webapp itself. You could address your problem at build time instead of runtime: have Ant (or whatever) pull the common data into the webapp before it packages the WAR file. If you mix this with your version control system, different apps could have different versions of these files as their needs diverge. -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]
RE: common image practice?
On Thu, Dec 02, 2004 at 12:51:21AM -0700, D. Stimits wrote: : I'm looking for a good or best practice to deal with site-wide logo : type files...things that will never change, and that every You could address your problem at build time instead of runtime: have Ant (or whatever) pull the common data into the webapp before it packages the WAR file. If you mix this with your version control system, different apps could have different versions of these files as their needs diverge. i'd second that. in your source control repository you can happily have a branch for common files. but when it comes to building the web apps, each build would suck in that common branch. if you need to update those common files, do it to the source control verson and rebuild the webapps. FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat5.0 shutdown
On Thu, Dec 02, 2004 at 08:51:55AM +, usman usman wrote: : tomcat shuts down without any warning : what could be the problem? Could be anything. Log messages, situations, OS, version, etc -- these would be helpful. There are few mind-readers here. : also how do i remove my name from the mailing list? Do you remember how you subscribed? If not, check the website. btw, shouldn't you unsub after you've resolved your shutdown problem? ;) -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]
RE: Character Encodig/ CodePage Problem
where are you pulling the actual character data from? a database or is in *in* the jsp? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 07:53 To: [EMAIL PROTECTED] Subject: Re: Character Encodig/ CodePage Problem Hi, the HTML code is generated by a servlet and the Character encoding has been set with the follwing code-snippet: res.setContentType(text/html; charset=iso-8859-1); Even the Browser says it is the encoding. The result after testing various Codepages : charset=utf-8 the only difference concering the Umlaut is that the browser cannot transform them properly, shown with an ? instead of the wanted character. charset=iso-8859-1 does not have the transforming problem, just that transforming result is rather strange. ( = ; = ; I hope this viewed properly) Therefore it seems that the problem is not related to the code, rather the plattform-settings. Any hints where I can change the character setting for the tomcat? Bye Saffina do your jsps have these directives at the very top (although they ought to be these values by default, certainly in servlet 2.4 spec - but I see you are using Tomcat 4, so maybe it was different then). %@ page contentType=text/html;charset=ISO-8859-1 % %@ page pageEncoding=ISO-8859-1 % Allistair. -Original Message- From: S.Esters [mailto:[EMAIL PROTECTED] Sent: Wed 01/12/2004 20:08 To: [EMAIL PROTECTED] Cc: Subject: Character Encodig/ CodePage Problem Hi, the problem concerns the displaying of german Umlaute such as The OS is NW65 out of the box with Apache 2.0.49 and tomcat 4.1.28, JVM 1.4.2_02. The german Umlaute in the servlet generated HTML-Code is not displayed properly even though the character-encoding in the Web-Browser is iso-8859-1. I assume that the problem is related to the TomCat Configuration or the combination of the OS, TomCat and Apache. Is it possible that this is well known problem and where can I find a solution for it? Is it possible to determine the character-encoding for an application within the TomCat and where can it done? The same servlet and request from a Unix Enviroment does work fine, therefore the coding can not be wrong all the way! Bye Soapy - To unsubscribe, e-mail: tomcat-user-unsubscrib [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT
Re: Problem with JAAS
On Thu, Dec 02, 2004 at 08:56:26AM +, Julian Templeman wrote: : I'm evaluating an ISP that uses Tomcat to host webapps, and am running : into a security problem. : : Any webapp that uses FORM authentication triggers an error from JAAS, : saying that it can't find a login configuration. I'm certainly not : using JAAS, and have just been adding users to the tomcat-users.xml : file. I've been able to confirm that this happens with even the : simplest apps. What does the ISP support team say? If they can't answer, it's time to find a new host. =) : Can anyone give me any idea of what's going on here? My guess is that : somehow Tomcat is configured to use JAAS by default, but since I've : not used JAAS before now, I'm not sure where to look... Are you in your own container? If not, you could be tripped up by an errant global setting. -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]
Can i make Tomcat read my own Deployment Descriptor??
Hello Guys, Im pretty new to JSP and Servlets. I want to know wheather.. can i make Tomcat read my own Deployment Descriptor and act accordingly.Like can i make Tomcat read my own XML file which is similar to WEB.XML and act in a specified way. Also i have a doubt that when we are using Struts Framework the Deployment Descriptor is STRUTS-CONFIG.XML How does Tomcat know that or realize that we are using Struts framework and uses the appropriate Deployment descriptor. If we are able to read our own XML and make Tomcat work accordingly it will be more flexible. Sorry if these questions sounds simple pls forgive me,This is coz im really new to Tomcat and just doing some research with it. I wud be grateful if u can help me. Thank u. Regds, Gokul
JSTL forEach acting funny
Hi, Tomcat n00b here just installed 5.5.4. Trying to do the HOWTO at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html Finally got the JDBC connection working I think, but my final JSP output just shows == Results Foo ${row.foo} Bar ${row.bar} == It's like the c:forEach tag is being ignored and the contents are not parsed at all. I actually have 3 rows in the testdata table so if it was at least looping I should have repeats. The test.jsp is exactly like the tutorial. I have jstl.jar and standard.jar in my WEB-INF/lib copied from jakarta-taglibs-standard-1.1.2 from the jakarta site. Please let me know what I did wrong, I am going through the JSTL docs but everything seems to be on the up-and-up with that... thanks -Sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can i make Tomcat read my own Deployment Descriptor??
you might start by telling us what specific things you want to have tomcat do for you. yes you can read whatever files you like be it xml, text, properties or whatever but you will have to be a little more specific about the specific things you want tomcat to do. as far as struts is concerned your web application requires a servlet mapping to a class that extends ActionServlet (this is a struts class). when this class is called it will trigger the appropriate events to initialise the struts subsystem from struts-config. it does not sound to me like you have looked at struts enough to understand what is happening. you should install tomcat and then the struts-examples web application. and maybe get a book on it. Allistair. -Original Message- From: Gokul Jeyapaul [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 12:32 To: [EMAIL PROTECTED] Subject: Can i make Tomcat read my own Deployment Descriptor?? Hello Guys, Im pretty new to JSP and Servlets. I want to know wheather.. can i make Tomcat read my own Deployment Descriptor and act accordingly.Like can i make Tomcat read my own XML file which is similar to WEB.XML and act in a specified way. Also i have a doubt that when we are using Struts Framework the Deployment Descriptor is STRUTS-CONFIG.XML How does Tomcat know that or realize that we are using Struts framework and uses the appropriate Deployment descriptor. If we are able to read our own XML and make Tomcat work accordingly it will be more flexible. Sorry if these questions sounds simple pls forgive me,This is coz im really new to Tomcat and just doing some research with it. I wud be grateful if u can help me. Thank u. Regds, Gokul FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSTL forEach acting funny
for a question on forEach I would expect you to have copied in the forEach part ;) i am surprised if you are seeing the actual dollar signs and braces as tomcat should be picking those up as expression language. is there any errors in stdout? also, which scope are you placing your results into and how are you placing those results there, i.e what is row? what value are you suppluing items in forEach ... etc.. more info people! -Original Message- From: sbeam [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 12:33 To: Tomcat Users List Subject: JSTL forEach acting funny Hi, Tomcat n00b here just installed 5.5.4. Trying to do the HOWTO at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasourc e-examples-howto.html Finally got the JDBC connection working I think, but my final JSP output just shows == Results Foo ${row.foo} Bar ${row.bar} == It's like the c:forEach tag is being ignored and the contents are not parsed at all. I actually have 3 rows in the testdata table so if it was at least looping I should have repeats. The test.jsp is exactly like the tutorial. I have jstl.jar and standard.jar in my WEB-INF/lib copied from jakarta-taglibs-standard-1.1.2 from the jakarta site. Please let me know what I did wrong, I am going through the JSTL docs but everything seems to be on the up-and-up with that... thanks -Sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can i make Tomcat read my own Deployment Descriptor??
On Thu, Dec 02, 2004 at 12:32:11PM -, Gokul Jeyapaul wrote: : I want to know wheather.. : can i make Tomcat read my own Deployment Descriptor and act accordingly.Like : can i make Tomcat read my own XML file which is similar to WEB.XML and act in : a specified way. Likely, not. Tomcat is a servlet container, which means much of its functionality is dictated by the Servlet Spec (a fantastic read, by the way, if you're new to this arena). web.xml is the Spec-mandated, portable webapp deployment descriptor. : Also i have a doubt that when we are using Struts Framework : the Deployment Descriptor is STRUTS-CONFIG.XML How does Tomcat know that or : realize that we are using Struts framework and uses the appropriate Deployment : descriptor. Tomcat doesn't realize you're using Struts; it's that the main Struts entry point is a servlet, which is a component that Tomcat recognizes. Review the Struts docs for details. : If we are able to read our own XML and make Tomcat work : accordingly it will be more flexible. What are you trying to do? -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]
Re:Can i make Tomcat read my own Deployment Descriptor??
Sir, Thanx for your reply. I want to replace WEB.XML with my own Deployment descriptor such that the Tomcat engine reads the XML files and act accordingly. Im in the process of developing my own framework for a small Web based application project. Like im still in the preparatory phases of analyzing the requirement for the framework when suddenly i had this doubt. Kindly clarify this to me. As far as Struts im using Struts in Action Just started reading it. So please kindly bear with me again if this is silly Regds, Gokul
Re: JSTL forEach acting funny
On Thu, Dec 02, 2004 at 07:33:01AM -0500, sbeam wrote: : Hi, Tomcat n00b here just installed 5.5.4. Trying to do the HOWTO at : http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html : : Finally got the JDBC connection working I think, but my final JSP output : just shows : == : Results : Foo ${row.foo} : Bar ${row.bar} : == : : It's like the c:forEach tag is being ignored and the contents are not : parsed at all. You'll have to post the offending JSP. Likely, you've forgotten to import the relevant JSTL taglibs in your JSP. Without those imports, a $ is just a $. -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]
Re: JSTL forEach acting funny
On Thursday 02 December 2004 07:39 am, Allistair Crossley wrote: for a question on forEach I would expect you to have copied in the forEach part ;) i am surprised if you are seeing the actual dollar signs and braces as tomcat should be picking those up as expression language. is there any errors in stdout? also, which scope are you placing your results into and how are you placing those results there, i.e what is row? what value are you suppluing items in forEach ... etc.. more info people! Well its exactly like on the HOWTO page I linked to, you can see the whole thing there, including what my web.xml and server.xml files look like since I followed this by letter. Actually I just found that passing a nonexistent collection token to forEach results in the same thing - it doesn't loop, and it doesn't error, and just outputs everything between the c:forEach.../c:forEach tags as if nothing happened. To wit: c:forEach var=foo items=${thisIsANonExistentCollection} foo is ${foo}br/ /c:forEach just gives me: foo is ${foo} in the browser. Of course this behavior differs from every reasonable expectation of what a foreach type construct should do. So is there some misconfiguration? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSTL forEach acting funny
you need %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c % at the top of your jsp though. -Original Message- From: sbeam [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 13:06 To: Tomcat Users List Subject: Re: JSTL forEach acting funny On Thursday 02 December 2004 07:39 am, Allistair Crossley wrote: for a question on forEach I would expect you to have copied in the forEach part ;) i am surprised if you are seeing the actual dollar signs and braces as tomcat should be picking those up as expression language. is there any errors in stdout? also, which scope are you placing your results into and how are you placing those results there, i.e what is row? what value are you suppluing items in forEach ... etc.. more info people! Well its exactly like on the HOWTO page I linked to, you can see the whole thing there, including what my web.xml and server.xml files look like since I followed this by letter. Actually I just found that passing a nonexistent collection token to forEach results in the same thing - it doesn't loop, and it doesn't error, and just outputs everything between the c:forEach.../c:forEach tags as if nothing happened. To wit: c:forEach var=foo items=${thisIsANonExistentCollection} foo is ${foo}br/ /c:forEach just gives me: foo is ${foo} in the browser. Of course this behavior differs from every reasonable expectation of what a foreach type construct should do. So is there some misconfiguration? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSTL forEach acting funny
As I understand it, you need to make sure Tomcat knows you want the 2.4 spec as opposed to the 2.3 spec to use JSTL semantics like ${}. What does your web.xml file show at the top? Does it use the 2.4 schema? --David sbeam wrote: On Thursday 02 December 2004 07:39 am, Allistair Crossley wrote: for a question on forEach I would expect you to have copied in the forEach part ;) i am surprised if you are seeing the actual dollar signs and braces as tomcat should be picking those up as expression language. is there any errors in stdout? also, which scope are you placing your results into and how are you placing those results there, i.e what is row? what value are you suppluing items in forEach ... etc.. more info people! Well its exactly like on the HOWTO page I linked to, you can see the whole thing there, including what my web.xml and server.xml files look like since I followed this by letter. Actually I just found that passing a nonexistent collection token to forEach results in the same thing - it doesn't loop, and it doesn't error, and just outputs everything between the c:forEach.../c:forEach tags as if nothing happened. To wit: c:forEach var=foo items=${thisIsANonExistentCollection} foo is ${foo}br/ /c:forEach just gives me: foo is ${foo} in the browser. Of course this behavior differs from every reasonable expectation of what a foreach type construct should do. So is there some misconfiguration? - 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: JSTL forEach acting funny
On Thursday 02 December 2004 08:07 am, Allistair Crossley wrote: you need %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c % at the top of your jsp though. Have that - if I didn't then c:forEach ... would show up in the output, but it doesn't. My apologies, I should have mentioned I was doing the mySQL DBCP Example specifically. Anyway, here is the whole jsp: = %@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql % %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c % sql:query var=rs dataSource=jdbc/TestDB select id, foo, bar from testdata /sql:query html head titleDB Test/title /head body h2Results/h2 c:forEach var=row items=${rs.rows} Foo ${row.foo}br/ Bar ${row.bar}br/ /c:forEach /body /html = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSTL forEach acting funny
ensure web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; in your web.xml as the previous poster suggests. -Original Message- From: sbeam [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 13:14 To: Tomcat Users List Subject: Re: JSTL forEach acting funny On Thursday 02 December 2004 08:07 am, Allistair Crossley wrote: you need %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c % at the top of your jsp though. Have that - if I didn't then c:forEach ... would show up in the output, but it doesn't. My apologies, I should have mentioned I was doing the mySQL DBCP Example specifically. Anyway, here is the whole jsp: = %@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql % %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c % sql:query var=rs dataSource=jdbc/TestDB select id, foo, bar from testdata /sql:query html head titleDB Test/title /head body h2Results/h2 c:forEach var=row items=${rs.rows} Foo ${row.foo}br/ Bar ${row.bar}br/ /c:forEach /body /html = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSTL forEach acting funny
On Thursday 02 December 2004 08:12 am, David Smith wrote: As I understand it, you need to make sure Tomcat knows you want the 2.4 spec as opposed to the 2.3 spec to use JSTL semantics like ${}. What does your web.xml file show at the top? Does it use the 2.4 schema? --David I think so. Actually I am removing all the DB stuff to narrow this down a bit. Here is my new server.xml: = web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 /web-app = And now, even weirder, I use the following simplified JSP: = %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c % c:forTokens var=foo items=5,6,7,8 delims=, foo is ${foo} br/ /c:forTokens = and got foo is ${foo} foo is ${foo} foo is ${foo} foo is ${foo} So now it is looping but the ${} is still not parsed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSTL forEach acting funny
that will be because the tag lib is imported so that will work, but your webapp is not running in 2.4 mode. you mention you changed your server.xml .. that's wrong. i said web.xml and this will be at webapps/yourwebapp/WEB-INF/web.xml Allistair. -Original Message- From: sbeam [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 13:24 To: Tomcat Users List Subject: Re: JSTL forEach acting funny On Thursday 02 December 2004 08:12 am, David Smith wrote: As I understand it, you need to make sure Tomcat knows you want the 2.4 spec as opposed to the 2.3 spec to use JSTL semantics like ${}. What does your web.xml file show at the top? Does it use the 2.4 schema? --David I think so. Actually I am removing all the DB stuff to narrow this down a bit. Here is my new server.xml: = web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 /web-app = And now, even weirder, I use the following simplified JSP: = %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c % c:forTokens var=foo items=5,6,7,8 delims=, foo is ${foo} br/ /c:forTokens = and got foo is ${foo} foo is ${foo} foo is ${foo} foo is ${foo} So now it is looping but the ${} is still not parsed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OFF-TOPIC : tool to generate JSP pages for a DB table
Check out Apple's WebObjects (http://www.webobjects.com). It has a real slick tool called Direct To Web that can reverse engineer an entire database (include relationships between tables) and generate a web based application that can maintain all of the data and the relationships. It takes about 10 minutes!! It also includes the best Object Relational Modeling/Mapping framework on the market - Enterprise Object Framework developed by NeXT. It has been on the market since 1995!! On 12/2/04 6:13 AM, Sreejith [EMAIL PROTECTED] wrote: Hi all, Is there a tool that can generate JSP pages for a given table. It would be ideal if it can generate a insert, modify, delete and one search page (based on primary key or some indexes) Any pointers? Thanks Sreejith -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSTL forEach acting funny
On Thursday 02 December 2004 08:27 am, Allistair Crossley wrote: you mention you changed your server.xml .. that's wrong. i said web.xml and this will be at webapps/yourwebapp/WEB-INF/web.xml Sorry, I misspoke there. Actually it _was_ web.xml that has the contents changed as indicated, in the correct location. Your explanation seems reasonable but as far as I can tell web.xml is set to trigger 2.4 mode. The opening web-app tag now looks exactly like the one you sent. Also restarted Tomcat just to be sure. Is there any way to tell from inside the JSP what mode you are in? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSTL forEach acting funny
i don't know sorry. i can however tell you that i just pasted your simplified code into one of my JSPs and it works (i.e foo is 1 ..). you've installed standard.jar and jstl.jar as your forEach is now working. it's probably very obvious but I cannot spot it. you have not got any EL disabling I assume like isELIgnored sorry pal! -Original Message- From: sbeam [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 13:45 To: Tomcat Users List Subject: Re: JSTL forEach acting funny On Thursday 02 December 2004 08:27 am, Allistair Crossley wrote: you mention you changed your server.xml .. that's wrong. i said web.xml and this will be at webapps/yourwebapp/WEB-INF/web.xml Sorry, I misspoke there. Actually it _was_ web.xml that has the contents changed as indicated, in the correct location. Your explanation seems reasonable but as far as I can tell web.xml is set to trigger 2.4 mode. The opening web-app tag now looks exactly like the one you sent. Also restarted Tomcat just to be sure. Is there any way to tell from inside the JSP what mode you are in? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Asynchronous statistics logger
Hi, A Singleton using Timer/TimerTask is NOT necessarily a bad practice. There are a lot worse things you could do. It'd be a lower-maintenance, lower-overhead, and lower-overall-effort solution over JMS. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 5:11 AM To: Tomcat Users List Subject: RE: Asynchronous statistics logger this strikes me as being something JMS would handle well, but Tomcat doesn't support JMS by default. I have seen people installing openJMS on Tomcat though. as for the startup/shutdown, that's going to be a Context Listener you want to implement and add to web.xml with listener. that's about all i can offer on this, sorry :) -Original Message- From: Michael Cornell [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 10:04 To: [EMAIL PROTECTED] Subject: Asynchronous statistics logger Hi, I am trying to implement an asynchronous statistics logger that would load on startup and be destroyed on shutdown of tomcat. This logger then needs to write to a log file / to disk / to log4j every x seconds with these statistics. Methods to add some statistic to it need to be accessible by all other classes in the same context (eg public static void addPageHit(String whatPage, int howBigWasIt); ) I have already tried writing an asynchronous Singleton, but this has caused major havoc with threading issues (jdk1.4.2 tomcat 5.0.25 redhat linux 9.0). In addition I know this is not good practice. This singleton was using the Timer and TimerTask for its implementation. What is the best practice for implementing this sort of class ? Thanks Michael --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - 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]
RE: Can i make Tomcat read my own Deployment Descriptor??
Hi, replace WEB.XML with my own Deployment descriptor such that the Tomcat engine reads the XML files and act accordingly. Sorry friend, but personally I'm totally lost. Acts accordingly ok but *how* and *what* do you want tomcat to *do* from your own descriptor? A. -Original Message- From: Gokul Jeyapaul [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 13:03 To: [EMAIL PROTECTED]; Allistair Crossley Subject: Re:Can i make Tomcat read my own Deployment Descriptor?? Sir, Thanx for your reply. I want to replace WEB.XML with my own Deployment descriptor such that the Tomcat engine reads the XML files and act accordingly. Im in the process of developing my own framework for a small Web based application project. Like im still in the preparatory phases of analyzing the requirement for the framework when suddenly i had this doubt. Kindly clarify this to me. As far as Struts im using Struts in Action Just started reading it. So please kindly bear with me again if this is silly Regds, Gokul FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat5.5 configuration issue
Hi, Ensure the client has sufficient disk space where Tomcat is installed... Yoav Shapira http://www.yoavshapira.com -Original Message- From: vishal nalwa [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 1:49 AM To: [EMAIL PROTECTED] Subject: tomcat5.5 configuration issue Hi all, I have developed a JSP application. It is working fine on my machine(with tomcat5.5 JRE 1.5 ,win2000). But when this application run on client side (with tomcat5.5 JRE1.5,winNT) it is showing unexpected behaviour it is showing the following error. org.apache.jasper.JasperException: Unable to compile class for JSP org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j ava: 565) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava: 296) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:296 ) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause java.lang.ArrayIndexOutOfBoundsException: 0 org.apache.jasper.compiler.SmapUtil$SDEInstaller.copy(SmapUtil.java:425 ) And sometimes Exception javax.servlet.ServletException:Truncated class file . . . root cause java.lang.ClassFormatError:Truncated class file Please help me. Is it tomcat5.5 configuration issue or some bad logic in my application. Thanks to all in advance Vishal ___ _ Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony - 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]
RE: Runtime exec (again)
Hi, You would also want to give the full path to cmd.exe possibly, depending on how you launch Tomcat. Yoav Shapira http://www.yoavshapira.com -Original Message- From: andy wix [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 4:12 AM To: [EMAIL PROTECTED] Subject: Runtime exec (again) Hi, Still can't get this to work. There must be some reason why this won't run under Tomcat but does work stand-alone. To recap, I am trying to execute the following code on an Xp box with Tomcat 5.0.27: Process proc = runtime.exec(cmd.exe /C shutdown -r -f -m \\myPC -t 50); int exitVal = proc.waitFor(); When this runs the proc exits with a value of 0 but nothing happens (no re-boot) and no exceptions are thrown. I have tried running the code from a batch file and without the cmd.exe /C bit. I have tried running Tomcat from the command line (not as service). I have tried allowing all permissions in the catalina.policy file: grant codeBase file:${catalina.home}/webapps/ROOT/WEB-INF/classes/- { permission java.security.AllPermission *; }; I CAN successfully set the the system time and date using the same approach though. I have absolutely no idea on this now. Thanks, Andy _ Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo - 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]
Tomcat 5.5.4 memory JVM settings
Hi all, Does anybody know how to change the memory allocation of JVM in Tomcat 5.5.4? Previously in 4.1.x a registry setting -Xmx was needed, is this still the same? Many thanks Spyros Papantoniou
RE: Can i make Tomcat read my own Deployment Descriptor??
You can add contextInitParams and servletInitParams to your web.xml file. Why would you want to replace it altogether? On Thu, 2004-12-02 at 08:56, Allistair Crossley wrote: Hi, replace WEB.XML with my own Deployment descriptor such that the Tomcat engine reads the XML files and act accordingly. Sorry friend, but personally I'm totally lost. Acts accordingly ok but *how* and *what* do you want tomcat to *do* from your own descriptor? A. -Original Message- From: Gokul Jeyapaul [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 13:03 To: [EMAIL PROTECTED]; Allistair Crossley Subject: Re:Can i make Tomcat read my own Deployment Descriptor?? Sir, Thanx for your reply. I want to replace WEB.XML with my own Deployment descriptor such that the Tomcat engine reads the XML files and act accordingly. Im in the process of developing my own framework for a small Web based application project. Like im still in the preparatory phases of analyzing the requirement for the framework when suddenly i had this doubt. Kindly clarify this to me. As far as Struts im using Struts in Action Just started reading it. So please kindly bear with me again if this is silly Regds, Gokul FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - 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: Content-Type rewriting in jakarta-tomcat-connectors
Hi, When you get a chance, please read http://www.river.com/users/share/etiquette/#quotes -- it's helpful and appreciated on this list ;) Until now I have simply placed the tomcat-coyote.jar file into server/lib; this has worked fine. However, when following your suggestion (placing the modified Response.class in server/classes), the old behavior is seen again. It seems as if the server/classes directory is not included in the classpath used. Any idea what I've missed? No idea what you've missed: that should work. If I take a class from a jar in server/lib, add a couple of System.out.println dummy statements, compile it, and put it in server/classes, it's loaded and I can see the output, so this works for me just fine. Yoav Shapira http://www.yoavshapira.com 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]
RE: Tomcat 5.5.4 memory JVM settings
Hi, It's the same as 4.x and 5.0.x. Yoav Shapira http://www.yoavshapira.com -Original Message- From: sipdev [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 9:12 AM To: [EMAIL PROTECTED] Subject: Tomcat 5.5.4 memory JVM settings Hi all, Does anybody know how to change the memory allocation of JVM in Tomcat 5.5.4? Previously in 4.1.x a registry setting -Xmx was needed, is this still the same? Many thanks Spyros Papantoniou 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]
Re: Asynchronous statistics logger
I second using JMS. Having a JMS server somewhere and tomcat as a JMS client. Then all the events are sent to the JMS server. Then the server can decide to consume the messages on demand and log as needed. -Tim Allistair Crossley wrote: this strikes me as being something JMS would handle well, but Tomcat doesn't support JMS by default. I have seen people installing openJMS on Tomcat though. as for the startup/shutdown, that's going to be a Context Listener you want to implement and add to web.xml with listener. that's about all i can offer on this, sorry :) -Original Message- From: Michael Cornell [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 10:04 To: [EMAIL PROTECTED] Subject: Asynchronous statistics logger Hi, I am trying to implement an asynchronous statistics logger that would load on startup and be destroyed on shutdown of tomcat. This logger then needs to write to a log file / to disk / to log4j every x seconds with these statistics. Methods to add some statistic to it need to be accessible by all other classes in the same context (eg public static void addPageHit(String whatPage, int howBigWasIt); ) I have already tried writing an asynchronous Singleton, but this has caused major havoc with threading issues (jdk1.4.2 tomcat 5.0.25 redhat linux 9.0). In addition I know this is not good practice. This singleton was using the Timer and TimerTask for its implementation. What is the best practice for implementing this sort of class ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: UTF-8 Encoding in Jsp | RESOLVED
Hi all, First of all thanks to all the people who helped in the first place (I am grateful). The problem was resolved and was due to some problem with the home grown framework we were using with the application. Tomcat had nothing to do with the problem and content type is the only thing required to make it work. As far as the database persistence was concerned, oracle did no mistake in storing the data but when our framework was persisting the values, it somehow corrupted the data somewhere in the middle of submitting the page with non-english characters and writing to the database. We found this problem by simply writing a simple jsp page without using the framework and rendered some non-english characters successfully. Thanks again, Arnab -Original Message- From: Arnab Chakravarty [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 01, 2004 4:08 PM To: Tomcat Users List Subject: RE: UTF-8 Encoding in Jsp Hi, Thanks for the reply but it did not work. May be I didn't explain the problem correctly. I am running an application that supports all the languages but only in some specific places of the application and I have made those places UTF-8 complaint. Further, they are being saved to Database (Oracle 9). When we are reading the data back from the database, junk characters are displayed on the screen. Yes, the database is set to support UTF-8 Encoding and this is working with the old version of tomcat 3.3 and not with current upgraded version of tomcat 5.0 There are also places in the application where drop downs contain some different language support and we can see those charsets (Japanese, Chinese etc) appearing. Only, when I try to display on the screen through the jsp file, I am encountering this problem of junk characters begin displayed. Hope I have set more context around the problem. Please help me resolve this issue. Thanks, Arnab -Original Message- From: Mariano [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 01, 2004 12:54 PM To: 'Tomcat Users List' Subject: RE: UTF-8 Encoding in Jsp You should use too: head META http-equiv=Content-Type content=text/html; charset=UTF-8 /head and this scriptlet: request.setCharacterEncoding(UTF-8); at the beginning. I hope this help you -Mensaje original- De: Arnab Chakravarty [mailto:[EMAIL PROTECTED] Enviado el: martes, 30 de noviembre de 2004 15:28 Para: Tomcat Users List Asunto: UTF-8 Encoding in Jsp Hi all, I need to make my all jsp files compatible with UTF-8 Encoding and even though I am using the directives: %@ page pageEncoding=UTF-8% %@ page contentType = text/html;charset=UTF-8% in the jsp files, cannot make it work. Using tomcat version 5. Is there any config changes I need to make for the UTF-8 Encoding to work. Please help. Thanks in advance, Arnab - 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: UTF-8 Encoding in Jsp | RESOLVED
Hi, Thanks for posting your findings ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Arnab Chakravarty [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 9:03 AM To: Tomcat Users List Subject: RE: UTF-8 Encoding in Jsp | RESOLVED Hi all, First of all thanks to all the people who helped in the first place (I am grateful). The problem was resolved and was due to some problem with the home grown framework we were using with the application. Tomcat had nothing to do with the problem and content type is the only thing required to make it work. As far as the database persistence was concerned, oracle did no mistake in storing the data but when our framework was persisting the values, it somehow corrupted the data somewhere in the middle of submitting the page with non-english characters and writing to the database. We found this problem by simply writing a simple jsp page without using the framework and rendered some non-english characters successfully. Thanks again, Arnab -Original Message- From: Arnab Chakravarty [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 01, 2004 4:08 PM To: Tomcat Users List Subject: RE: UTF-8 Encoding in Jsp Hi, Thanks for the reply but it did not work. May be I didn't explain the problem correctly. I am running an application that supports all the languages but only in some specific places of the application and I have made those places UTF-8 complaint. Further, they are being saved to Database (Oracle 9). When we are reading the data back from the database, junk characters are displayed on the screen. Yes, the database is set to support UTF-8 Encoding and this is working with the old version of tomcat 3.3 and not with current upgraded version of tomcat 5.0 There are also places in the application where drop downs contain some different language support and we can see those charsets (Japanese, Chinese etc) appearing. Only, when I try to display on the screen through the jsp file, I am encountering this problem of junk characters begin displayed. Hope I have set more context around the problem. Please help me resolve this issue. Thanks, Arnab -Original Message- From: Mariano [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 01, 2004 12:54 PM To: 'Tomcat Users List' Subject: RE: UTF-8 Encoding in Jsp You should use too: head META http-equiv=Content-Type content=text/html; charset=UTF-8 /head and this scriptlet: request.setCharacterEncoding(UTF-8); at the beginning. I hope this help you -Mensaje original- De: Arnab Chakravarty [mailto:[EMAIL PROTECTED] Enviado el: martes, 30 de noviembre de 2004 15:28 Para: Tomcat Users List Asunto: UTF-8 Encoding in Jsp Hi all, I need to make my all jsp files compatible with UTF-8 Encoding and even though I am using the directives: %@ page pageEncoding=UTF-8% %@ page contentType = text/html;charset=UTF-8% in the jsp files, cannot make it work. Using tomcat version 5. Is there any config changes I need to make for the UTF-8 Encoding to work. Please help. Thanks in advance, Arnab - 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]
Re: JSTL forEach acting funny [SORT OF SOLVED]
On Thursday 02 December 2004 08:52 am, Allistair Crossley wrote: i don't know sorry. i can however tell you that i just pasted your simplified code into one of my JSPs and it works (i.e foo is 1 ..). you've installed standard.jar and jstl.jar as your forEach is now working. it's probably very obvious but I cannot spot it. you have not got any EL disabling I assume like isELIgnored sorry pal! Thanks everyone for your time bandwidth and neural firings. I created a new dir under webapps/ called tagtest/, and basically replicated all the steps in building the JDBC example given - only backwards - and it works fine there. The forEach tag acts normal in the new dir. Funny thing is, the stuff in the original dir is the same - permissions and everything - but still has the broken behavior. Like it is being cached. I can't figure it out, just chalk it up to bad voodoo in that dir and move on I guess. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.4 memory JVM settings
Since you mention the registry, I take it you're running Tomcat as a Windows Serivce? I believe both Tomcat 4.x and 5.x using procrun , so the method for setting -Xmx would still be the same. [EMAIL PROTECTED] 12/2/2004 8:11:52 AM Hi all, Does anybody know how to change the memory allocation of JVM in Tomcat 5.5.4? Previously in 4.1.x a registry setting -Xmx was needed, is this still the same? Many thanks Spyros Papantoniou
not starting up
I am having a problem getting Tomcat to stay up. I do the following command $: ./startup.sh start I get the following feedback Using CATALINA_BASE: /usr/src/jakarta-tomcat-5.5.4-src/jakarta-tomcat-5/build Using CATALINA_HOME: /usr/src/jakarta-tomcat-5.5.4-src/jakarta-tomcat-5/build Using CATALINA_TMPDIR: /usr/src/jakarta-tomcat-5.5.4-src/jakarta-tomcat-5/build/temp Using JAVA_HOME: /opt/jdk1.5.0/ and nothing shows up under ps aux. any help please -- James Peterson Network Administrator Roman Meal Milling Company Phone 701.282.9656 Fax 701.282.9743 Email [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Content-Type rewriting in jakarta-tomcat-connectors
Shapira, Yoav wrote: Hi, When you get a chance, please read http://www.river.com/users/share/etiquette/#quotes -- it's helpful and appreciated on this list ;) I'm sorry; I'm following several mailing lists, and the etiquette expected varies slightly. I will keep this in mind ;) /Eirik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.4 memory JVM settings
Run TOMCAT5w.exe and set the value in JAVA tab. -Original Message- From: sipdev [mailto:[EMAIL PROTECTED] Sent: 02.12.2004 07:42 PM To: [EMAIL PROTECTED] Subject: Tomcat 5.5.4 memory JVM settings Hi all, Does anybody know how to change the memory allocation of JVM in Tomcat 5.5.4? Previously in 4.1.x a registry setting -Xmx was needed, is this still the same? Many thanks Spyros Papantoniou - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: not starting up
are you quitting from the shell afterwards? does ps -e show a bunch of JVM processes pointed to tomcat? is there any exception logging in tomcat's logs? also, try to use nohup nohup ./startup.sh Allistair. -Original Message- From: James Peterson [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 14:27 To: [EMAIL PROTECTED] Subject: not starting up I am having a problem getting Tomcat to stay up. I do the following command $: ./startup.sh start I get the following feedback Using CATALINA_BASE: /usr/src/jakarta-tomcat-5.5.4-src/jakarta-tomcat-5/build Using CATALINA_HOME: /usr/src/jakarta-tomcat-5.5.4-src/jakarta-tomcat-5/build Using CATALINA_TMPDIR: /usr/src/jakarta-tomcat-5.5.4-src/jakarta-tomcat-5/build/temp Using JAVA_HOME: /opt/jdk1.5.0/ and nothing shows up under ps aux. any help please -- James Peterson Network Administrator Roman Meal Milling Company Phone 701.282.9656 Fax 701.282.9743 Email [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: not starting up
Hi, Look at your logs in $CATALINA_HOME/logs. It seems like you're running a tomcat version you built yourself? If so, you might wish to try one of the provided binary distributions. Finally, note that the startup.sh script returns right away anyways, it doesn't keep the console after launching Tomcat. So that part at least is normal behavior. Yoav Shapira http://www.yoavshapira.com -Original Message- From: James Peterson [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 9:27 AM To: [EMAIL PROTECTED] Subject: not starting up I am having a problem getting Tomcat to stay up. I do the following command $: ./startup.sh start I get the following feedback Using CATALINA_BASE: /usr/src/jakarta-tomcat-5.5.4-src/jakarta-tomcat-5/build Using CATALINA_HOME: /usr/src/jakarta-tomcat-5.5.4-src/jakarta-tomcat-5/build Using CATALINA_TMPDIR: /usr/src/jakarta-tomcat-5.5.4-src/jakarta-tomcat-5/build/temp Using JAVA_HOME: /opt/jdk1.5.0/ and nothing shows up under ps aux. any help please -- James Peterson Network Administrator Roman Meal Milling Company Phone 701.282.9656 Fax 701.282.9743 Email [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]
Tomcat Security Application
Hi, i've implemented an application using tomcat security FORM based, and authenticating against a database. My login page is the standard FORM: form method=POST action='%=response.encodeURL(j_security_check) %' table border=3 align=center cellpadding=3 cellspacing=1 bordercolor=#99 class=Stile1 tr td width=71pUsername:/p/td td width=176input type=text name=j_username/td /tr tr tdpPassword:/p/td tdinput type=password name=j_password/td /tr tr tdnbsp;/td td div align=left input type=submit value=Login input type=reset value=Reset /div/td /tr /table /form The problem is that when i login the page seems to authenticate correctly, but when i click the back browser button and i retry to login again it gives an error page with the message: The requested resource (/pmt/manage/j_security_check) is not available. Can anyone help me? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_proxy_ajp
Dale, Matt wrote: Hi, Anyone know where i can downloaded it? http://svn.apache.org/repos/asf/httpd/httpd/trunk See http://httpd.apache.org/dev/ how to svn. And anyone know if it works with httpd 2.0.x? Yes. You'll need to replace exiting proxy module files with the one from 2.1, and use 2.1 build files. But the fact that it can be compiled on 2.0 branch is purely academic, and strongly not recommended. MT. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: not starting up
ok I looked at the logs and updated java to 1.5.0 and am now getting this error dl failure on line 704Error: failed /opt/jdk1.5.0/jre/lib/i386/client/libjvm.so, because /opt/jdk1.5.0/jre/lib/i386/client/libjvm.so: symbol dl_iterate_phdr, version GLIBC_2.2.4 not defined in file libc.so.6 with link time reference -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 8:30 AM To: Tomcat Users List Subject: RE: not starting up Hi, Look at your logs in $CATALINA_HOME/logs. It seems like you're running a tomcat version you built yourself? If so, you might wish to try one of the provided binary distributions. Finally, note that the startup.sh script returns right away anyways, it doesn't keep the console after launching Tomcat. So that part at least is normal behavior. Yoav Shapira http://www.yoavshapira.com -Original Message- From: James Peterson [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 9:27 AM To: [EMAIL PROTECTED] Subject: not starting up I am having a problem getting Tomcat to stay up. I do the following command $: ./startup.sh start I get the following feedback Using CATALINA_BASE: /usr/src/jakarta-tomcat-5.5.4-src/jakarta-tomcat-5/build Using CATALINA_HOME: /usr/src/jakarta-tomcat-5.5.4-src/jakarta-tomcat-5/build Using CATALINA_TMPDIR: /usr/src/jakarta-tomcat-5.5.4-src/jakarta-tomcat-5/build/temp Using JAVA_HOME: /opt/jdk1.5.0/ and nothing shows up under ps aux. any help please -- James Peterson Network Administrator Roman Meal Milling Company Phone 701.282.9656 Fax 701.282.9743 Email [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]
JSP: final variable value lost in anonynous inner class
Hi, I have the following test JSP (see below.) When I use the final variable obtained by class A inside an anonymous subclass of B the values are lost. However, if I define the final variables' values directly without using class A it works. Both cases work fine when using this as a normal Java class, so it seems related to JSP's or Tomcat. The catalina.out output is: 1/ str1=str1 1/ str2=str2 1/ i1=1234 1/ i2=1234 2/ str1=null 2/ str2=str2 2/ i1=0 2/ i2=1234 a == null This is Tomcat 4.1.30 with VM 1.4.2_06. Do you know what is wrong or how to bypass this? Thanks, Oliver. %! public static class A { private String s; private int i; public A() { s = str1; i = 1234; } public String getS() { return s; } public int getI() { return i; } } public A getA() { return new A(); } public static abstract class B { public B() { run(); } public abstract void run(); } public B getB() { final A a = getA(); final String str1 = a.getS(); final String str2 = str2; final int i1 = a.getI(); final int i2 = 1234; System.out.println(1/ str1= + str1); System.out.println(1/ str2= + str2); System.out.println(1/ i1= + i1); System.out.println(1/ i2= + i2); return new B() { public void run() { System.out.println(2/ str1= + str1); System.out.println(2/ str2= + str2); System.out.println(2/ i1= + i1); System.out.println(2/ i2= + i2); if(a == null) System.out.println(a == null); } }; } % % getB(); %
RE: final variable value lost in anonynous inner class
this looks like a school assignment ;) -Original Message- From: Oliver Jonas [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 15:00 To: [EMAIL PROTECTED] Subject: JSP: final variable value lost in anonynous inner class Hi, I have the following test JSP (see below.) When I use the final variable obtained by class A inside an anonymous subclass of B the values are lost. However, if I define the final variables' values directly without using class A it works. Both cases work fine when using this as a normal Java class, so it seems related to JSP's or Tomcat. The catalina.out output is: 1/ str1=str1 1/ str2=str2 1/ i1=1234 1/ i2=1234 2/ str1=null 2/ str2=str2 2/ i1=0 2/ i2=1234 a == null This is Tomcat 4.1.30 with VM 1.4.2_06. Do you know what is wrong or how to bypass this? Thanks, Oliver. %! public static class A { private String s; private int i; public A() { s = str1; i = 1234; } public String getS() { return s; } public int getI() { return i; } } public A getA() { return new A(); } public static abstract class B { public B() { run(); } public abstract void run(); } public B getB() { final A a = getA(); final String str1 = a.getS(); final String str2 = str2; final int i1 = a.getI(); final int i2 = 1234; System.out.println(1/ str1= + str1); System.out.println(1/ str2= + str2); System.out.println(1/ i1= + i1); System.out.println(1/ i2= + i2); return new B() { public void run() { System.out.println(2/ str1= + str1); System.out.println(2/ str2= + str2); System.out.println(2/ i1= + i1); System.out.println(2/ i2= + i2); if(a == null) System.out.println(a == null); } }; } % % getB(); % FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
getting desperate here :)
Hello all, i have sent this one before, but i am hoping someone else has had this particular problem. __ i am hoping someone has seen the following behavior. TomcatA sends a redirect to TomcatB on the backend, I can see that TomcatB receives a JSESSIONID that was originally assigned to it by TomcatA; i.e. cookie = JSESSIONID=6EF95FA9AA98E608C555E28875F57054; I rewrite reset the jsession id ( see the code bellow ), but on the next request i see this: cookie = JSESSIONID=6EF95FA9AA98E608C555E28875F57054; JSESSIONID=2251830F6F64DEFC974C19C79F1EABAB for some reason using Mozilla works, but I.E. is the one that passes 2 JSESSIONID variables. Thoughts? if (cookies != null cookies.length 0) { int len = cookies.length; for (int i = 0; i len; i++) { if (cookies[i].getName().equalsIgnoreCase(jsessionid)) { cookies[i].setMaxAge(-1); cookies[i].setPath(/); _LOGGER.debug(COOKIE VALUE + cookies[i].getValue() ); _LOGGER.debug(session id: + request.getSession().getId() ); _LOGGER.debug( comp + ( request.getSession().getId().equals(cookies[i].getValue(; if ( request.getSession().getId().equals(cookies[i].getValue())) { _LOGGER.debug(equal); response.addCookie(cookies[i]); } else { _LOGGER.debug(not equal); Cookie sessionCookie = new Cookie(JSESSIONID, request.getSession().getId()); response.addCookie(sessionCookie); } foundCookie = true; _LOGGER.debug(updated session cookie); } } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.4 memory JVM settings
Many thanks !!! Is this documented somewhere? IS there I manual that I missed waiting for me somewhere? Tx again -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 4:24 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat 5.5.4 memory JVM settings Since you mention the registry, I take it you're running Tomcat as a Windows Serivce? I believe both Tomcat 4.x and 5.x using procrun , so the method for setting -Xmx would still be the same. [EMAIL PROTECTED] 12/2/2004 8:11:52 AM Hi all, Does anybody know how to change the memory allocation of JVM in Tomcat 5.5.4? Previously in 4.1.x a registry setting -Xmx was needed, is this still the same? Many thanks Spyros Papantoniou - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getting desperate here :)
Hi, Are you invalidating the session from TomcatA before you redirect to TomcatB?, even a redirect should be able to clear the session cookie if you've invalidated the session. We do much the same thing sometimes and don't have this problem, the session.invalidate seems to be the only thing we seem to be doing differently. Pete On Thursday 02 December 2004 15:05, Alex Korneyev wrote: Hello all, i have sent this one before, but i am hoping someone else has had this particular problem. __ i am hoping someone has seen the following behavior. TomcatA sends a redirect to TomcatB on the backend, I can see that TomcatB receives a JSESSIONID that was originally assigned to it by TomcatA; i.e. cookie = JSESSIONID=6EF95FA9AA98E608C555E28875F57054; I rewrite reset the jsession id ( see the code bellow ), but on the next request i see this: cookie = JSESSIONID=6EF95FA9AA98E608C555E28875F57054; JSESSIONID=2251830F6F64DEFC974C19C79F1EABAB for some reason using Mozilla works, but I.E. is the one that passes 2 JSESSIONID variables. Thoughts? if (cookies != null cookies.length 0) { int len = cookies.length; for (int i = 0; i len; i++) { if (cookies[i].getName().equalsIgnoreCase(jsessionid)) { cookies[i].setMaxAge(-1); cookies[i].setPath(/); _LOGGER.debug(COOKIE VALUE + cookies[i].getValue() ); _LOGGER.debug(session id: + request.getSession().getId() ); _LOGGER.debug( comp + ( request.getSession().getId().equals(cookies[i].getValue(; if ( request.getSession().getId().equals(cookies[i].getValue())) { _LOGGER.debug(equal); response.addCookie(cookies[i]); } else { _LOGGER.debug(not equal); Cookie sessionCookie = new Cookie(JSESSIONID, request.getSession().getId()); response.addCookie(sessionCookie); } foundCookie = true; _LOGGER.debug(updated session cookie); } } } - 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: getting desperate here :)
Hi, Messing with the JSESSIONID cookie by rewriting it is cruising for a bruising. If it's not browser differences (which seems to be your case), then it would be an unhappy firewall, proxy, or NAT that gets you. That's why no one wants to dive into this Pandora's box I guess ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Alex Korneyev [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 10:06 AM Cc: 'Tomcat Users List ' Subject: getting desperate here :) Hello all, i have sent this one before, but i am hoping someone else has had this particular problem. __ i am hoping someone has seen the following behavior. TomcatA sends a redirect to TomcatB on the backend, I can see that TomcatB receives a JSESSIONID that was originally assigned to it by TomcatA; i.e. cookie = JSESSIONID=6EF95FA9AA98E608C555E28875F57054; I rewrite reset the jsession id ( see the code bellow ), but on the next request i see this: cookie = JSESSIONID=6EF95FA9AA98E608C555E28875F57054; JSESSIONID=2251830F6F64DEFC974C19C79F1EABAB for some reason using Mozilla works, but I.E. is the one that passes 2 JSESSIONID variables. Thoughts? if (cookies != null cookies.length 0) { int len = cookies.length; for (int i = 0; i len; i++) { if (cookies[i].getName().equalsIgnoreCase(jsessionid)) { cookies[i].setMaxAge(-1); cookies[i].setPath(/); _LOGGER.debug(COOKIE VALUE + cookies[i].getValue() ); _LOGGER.debug(session id: + request.getSession().getId() ); _LOGGER.debug( comp + ( request.getSession().getId().equals(cookies[i].getValue(; if ( request.getSession().getId().equals(cookies[i].getValue())) { _LOGGER.debug(equal); response.addCookie(cookies[i]); } else { _LOGGER.debug(not equal); Cookie sessionCookie = new Cookie(JSESSIONID, request.getSession().getId()); response.addCookie(sessionCookie); } foundCookie = true; _LOGGER.debug(updated session cookie); } } } - 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]
RE: Asynchronous statistics logger
I'll agree using the Context Listener for starup/shutdown but you probably don't need to add JMS to the mix. As a first approach, you could simply switch all your logging to log4j. I haven't used it that much but I know it has many types of appenders (including JMS). Log4j is thread safe and is reported to scale well. If you need to go beyond that, then you will probably want to read up on Producer/Consumer type issues in a multithreaded environment. There are books written on these types of issues but for your type of situation the problem boils down to how you decouple the producers (the threads adding to the log) from the consumer (the TimerTask writing the log). A simple solution is to put a queue between the two and make sure that nothing is locked up for too long. Watch out for a common implementation mistake: having the consumer lock the queue while processing it. A better solution is to have the consumer take the queue and replace it with an empty one. Hope this helps, Vincent -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 5:11 AM To: Tomcat Users List Subject: RE: Asynchronous statistics logger this strikes me as being something JMS would handle well, but Tomcat doesn't support JMS by default. I have seen people installing openJMS on Tomcat though. as for the startup/shutdown, that's going to be a Context Listener you want to implement and add to web.xml with listener. that's about all i can offer on this, sorry :) -Original Message- From: Michael Cornell [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 10:04 To: [EMAIL PROTECTED] Subject: Asynchronous statistics logger Hi, I am trying to implement an asynchronous statistics logger that would load on startup and be destroyed on shutdown of tomcat. This logger then needs to write to a log file / to disk / to log4j every x seconds with these statistics. Methods to add some statistic to it need to be accessible by all other classes in the same context (eg public static void addPageHit(String whatPage, int howBigWasIt); ) I have already tried writing an asynchronous Singleton, but this has caused major havoc with threading issues (jdk1.4.2 tomcat 5.0.25 redhat linux 9.0). In addition I know this is not good practice. This singleton was using the Timer and TimerTask for its implementation. What is the best practice for implementing this sort of class ? Thanks Michael --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - 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: getting desperate here :)
Perhaps I am missing something here, so my apologies if this comes off a bit green. Looking at the code it would appear that the FOR loop looks for the existing JSESSIONID cookie value. But it appears that whether it is found or not you are using .addCookie. I would think you would use [something like] .setValue in the case you find the cookie in the FOR loop. You want to effectively replace the current JSESSIONID with a new one, but .addCookie will add a new cookie, even if you expire the existing one. I mention this because I bet that Mozilla using the last JSESSIONID it finds (which makes it work by coincidence), whereas IE just seems to suck it all up as one JSESSIONID. HIH, Al G - Original Message - From: Alex Korneyev [EMAIL PROTECTED] Date: Thursday, December 2, 2004 9:05 am Subject: getting desperate here :) Hello all, i have sent this one before, but i am hoping someone else has had this particular problem. __ i am hoping someone has seen the following behavior. TomcatA sends a redirect to TomcatB on the backend, I can see that TomcatB receives a JSESSIONID that was originally assigned to it by TomcatA; i.e. cookie = JSESSIONID=6EF95FA9AA98E608C555E28875F57054; I rewrite reset the jsession id ( see the code bellow ), but on the next request i see this: cookie = JSESSIONID=6EF95FA9AA98E608C555E28875F57054; JSESSIONID=2251830F6F64DEFC974C19C79F1EABAB for some reason using Mozilla works, but I.E. is the one that passes 2 JSESSIONID variables. Thoughts? if (cookies != null cookies.length 0) { int len = cookies.length; for (int i = 0; i len; i++) { if (cookies[i].getName().equalsIgnoreCase(jsessionid)) { cookies[i].setMaxAge(-1); cookies[i].setPath(/); _LOGGER.debug(COOKIE VALUE + cookies[i].getValue() ); _LOGGER.debug(session id: + request.getSession().getId() ); _LOGGER.debug( comp + ( request.getSession().getId().equals(cookies[i].getValue(; if ( request.getSession().getId().equals(cookies[i].getValue())) { _LOGGER.debug(equal); response.addCookie(cookies[i]); } else { _LOGGER.debug(not equal);Cookie sessionCookie = new Cookie(JSESSIONID, request.getSession().getId()); response.addCookie(sessionCookie); } foundCookie = true; _LOGGER.debug(updated session cookie); } } } --- -- 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: Runtime exec (again)
Actually, take a look at: http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html -- Jeanfrancois Shapira, Yoav wrote: Hi, You would also want to give the full path to cmd.exe possibly, depending on how you launch Tomcat. Yoav Shapira http://www.yoavshapira.com -Original Message- From: andy wix [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 4:12 AM To: [EMAIL PROTECTED] Subject: Runtime exec (again) Hi, Still can't get this to work. There must be some reason why this won't run under Tomcat but does work stand-alone. To recap, I am trying to execute the following code on an Xp box with Tomcat 5.0.27: Process proc = runtime.exec(cmd.exe /C shutdown -r -f -m \\myPC -t 50); int exitVal = proc.waitFor(); When this runs the proc exits with a value of 0 but nothing happens (no re-boot) and no exceptions are thrown. I have tried running the code from a batch file and without the cmd.exe /C bit. I have tried running Tomcat from the command line (not as service). I have tried allowing all permissions in the catalina.policy file: grant codeBase file:${catalina.home}/webapps/ROOT/WEB-INF/classes/- { permission java.security.AllPermission *; }; I CAN successfully set the the system time and date using the same approach though. I have absolutely no idea on this now. Thanks, Andy _ Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo - 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: Deployment problem
In tomcat 4, I first created the following folder: $CATALINA_HOME/work/Standalone/${hostname}/manager/srv This folder is where the war and context file for the application will be placed when deploying via ant or maven using the manager. Now, in the application's context.xml file, I set the path to '/srv/stuff' and the docBase to the same. Once deployed, the war and context files will be named stuff.war and stuff.xml in the above directory. Tomcat 5 works a bit differently. When the app is deployed with the srv prefix, the war and context file are renamed to srv#stuff.war and srv#stuff.xml after deployment via maven (haven't tested ant yet, but we're trying to phase it out as a deployment tool anyway). Here is the problem: 2004-11-22 09:47:38 StandardContext[/manager]Manager: install: Installing context configuration at 'file:$CATALINA_HOME/conf/Catalina/${hostname}/srv#stuff.xml' from 'jar:file:$CATALINA_HOME/webapps/srv#stuff.war!/' 2004-11-22 09:47:38 StandardContext[/manager]Manager: ManagerServlet.configure[file:$CATALINA_HOME/conf/Catalina/${hostname}/srv#stuff.xml] java.net.MalformedURLException: no !/ in spec at java.net.URL.init(URL.java:571) at java.net.URL.init(URL.java:434) at java.net.URL.init(URL.java:383) ... I am assuming the problem is the # in the filename, but I'm not sure. I thought I found a workaround the other day. If I just had maven build the war and then use the manager html interface to deploy the war, it worked fine. The files were in their place as stuff.xml and stuff.war. But once I restarted tomcat, the manager list showed 2 apps deployed; /stuff and /srv/stuff, neither of which worked. I've tried several other configurations all with varying levels of failure. Any ideas? Dustin --- QM [EMAIL PROTECTED] wrote: On Wed, Dec 01, 2004 at 09:36:28AM -0800, Dustin wrote: : For example, an app that : had a path of /stuff now has a path of /srv/stuff. : : I was able to get it working in tomcat 4 (the solution : seemed like a hack to me tho), but I am having : problems getting it to work in tomcat 5. Perhaps you could share what you did in Tomcat 4, and what you've tried in v5..? That might give the rest of us a head start. I don't have the time to try it here, but I suppose you've already tried a context path of /srv/stuff and that failed? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.4 memory JVM settings
Hello Pradeep, Many thanks for the info, Where can I find a manual? I trust I have to set the Jva Pool between the min and max values in the bottom of the Java Tab. Tx Spyros -Original Message- From: Pradeep Chauhan [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 4:29 PM To: Tomcat Users List Subject: RE: Tomcat 5.5.4 memory JVM settings Run TOMCAT5w.exe and set the value in JAVA tab. -Original Message- From: sipdev [mailto:[EMAIL PROTECTED] Sent: 02.12.2004 07:42 PM To: [EMAIL PROTECTED] Subject: Tomcat 5.5.4 memory JVM settings Hi all, Does anybody know how to change the memory allocation of JVM in Tomcat 5.5.4? Previously in 4.1.x a registry setting -Xmx was needed, is this still the same? Many thanks Spyros Papantoniou - 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]
No Cookies
Hi, I require that an application never uses cookies, even if the user's browser accepts cookies. I have set cookies=false in the server.xml, however it is still attempting to send cookies to the client. If the browser accepts the cookie, then the session is maintained via cookies and if I do an encodeURL tomcat does not add the session information to the URL. Is it possible to do what I am describing or will tomcat always use cookies, regardless of the cookies=false entry if the browser accepts a cookie? Many thanks, Andy
Cert. and accred. for gov't use.
Does anyone know if there is any reason why Tomcat can't be certified for use by the federal gov't? Has anyone actually sent Tomcat through the federal CA process? I'm being told it can't be because it is open source. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cert. and accred. for gov't use.
Hi, I *think* what you're being told is BS. From a technical perspective there's no reason Tomcat and other Open-Source software can't be CA'ed. The usual issue people raise is the CYA (Cover Your ...) topic; whom do we go to when it crashes? The answer is numerous vendors, the choice is up to the client. There are huge (Big 4, HP, IBM, etc.) and smaller vendors who'll provide 24/7/265 disaster recovery and support services for Tomcat and other open-source servers. If Tomcat can be used in an FDA-validated environment (usually a stricter set of requirements and procedures than general federal CA) (http://jakarta.apache.org/tomcat/faq/fda-validation.html), I bet it can be done in a normal CA environment as well. It'd be great to hear from people/companies who've actually done it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Sessoms, Mack [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 11:29 AM To: [EMAIL PROTECTED] Subject: Cert. and accred. for gov't use. Does anyone know if there is any reason why Tomcat can't be certified for use by the federal gov't? Has anyone actually sent Tomcat through the federal CA process? I'm being told it can't be because it is open source. - 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]
RE: Cert. and accred. for gov't use.
Hi, That'd be 24/7/365 hopefully, although 265 would allow for a nice number of vacation days for everyone ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Shapira, Yoav Sent: Thursday, December 02, 2004 11:37 AM To: Tomcat Users List Subject: RE: Cert. and accred. for gov't use. Hi, I *think* what you're being told is BS. From a technical perspective there's no reason Tomcat and other Open-Source software can't be CA'ed. The usual issue people raise is the CYA (Cover Your ...) topic; whom do we go to when it crashes? The answer is numerous vendors, the choice is up to the client. There are huge (Big 4, HP, IBM, etc.) and smaller vendors who'll provide 24/7/265 disaster recovery and support services for Tomcat and other open-source servers. If Tomcat can be used in an FDA-validated environment (usually a stricter set of requirements and procedures than general federal CA) (http://jakarta.apache.org/tomcat/faq/fda-validation.html), I bet it can be done in a normal CA environment as well. It'd be great to hear from people/companies who've actually done it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Sessoms, Mack [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 11:29 AM To: [EMAIL PROTECTED] Subject: Cert. and accred. for gov't use. Does anyone know if there is any reason why Tomcat can't be certified for use by the federal gov't? Has anyone actually sent Tomcat through the federal CA process? I'm being told it can't be because it is open source. - 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] 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]
RE: [dbcp] Call Oracle stored procedure via DBCP?
If you need to get the underlying connection, ((BasicDataSource) dataSource).setAccessToUnderlyingConnectionAllowed(true); Before you can getConnection. -Original Message- From: Shankar Unni [mailto:[EMAIL PROTECTED] Sent: December 1, 2004 5:32 PM To: [EMAIL PROTECTED] Subject: Re: [dbcp] Call Oracle stored procedure via DBCP? Sergey Karpov wrote: During a call of stored procedure through DBCP there is a mistake of reduction of type: java.lang.ClassCastException That's because you're assuming that dbcp returns you a naked vendor JDBC Connection object. It doesn't - it returns you a pooled connection wrapper with forwarding methods. Ditto for CallableStatements. If you really needed to get the underlying object, you'd have to look at the JavaDoc for DBCP. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41ae4678152041696882794!
Re: Cert. and accred. for gov't use.
Thanks for the reply. I had a feeling I was being FUD-ded. Shapira, Yoav wrote: Hi, That'd be 24/7/365 hopefully, although 265 would allow for a nice number of vacation days for everyone ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Shapira, Yoav Sent: Thursday, December 02, 2004 11:37 AM To: Tomcat Users List Subject: RE: Cert. and accred. for gov't use. Hi, I *think* what you're being told is BS. From a technical perspective there's no reason Tomcat and other Open-Source software can't be CA'ed. The usual issue people raise is the CYA (Cover Your ...) topic; whom do we go to when it crashes? The answer is numerous vendors, the choice is up to the client. There are huge (Big 4, HP, IBM, etc.) and smaller vendors who'll provide 24/7/265 disaster recovery and support services for Tomcat and other open-source servers. If Tomcat can be used in an FDA-validated environment (usually a stricter set of requirements and procedures than general federal CA) (http://jakarta.apache.org/tomcat/faq/fda-validation.html), I bet it can be done in a normal CA environment as well. It'd be great to hear from people/companies who've actually done it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Sessoms, Mack [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 11:29 AM To: [EMAIL PROTECTED] Subject: Cert. and accred. for gov't use. Does anyone know if there is any reason why Tomcat can't be certified for use by the federal gov't? Has anyone actually sent Tomcat through the federal CA process? I'm being told it can't be because it is open source. - 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] 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: not starting up
ok I figured out the errors I had to upgrade from libc6-2.2.3 to libc6-2.2.5 -Original Message- From: James Peterson [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 8:55 AM To: Tomcat Users List Subject: RE: not starting up ok I looked at the logs and updated java to 1.5.0 and am now getting this error dl failure on line 704Error: failed /opt/jdk1.5.0/jre/lib/i386/client/libjvm.so, because /opt/jdk1.5.0/jre/lib/i386/client/libjvm.so: symbol dl_iterate_phdr, version GLIBC_2.2.4 not defined in file libc.so.6 with link time reference -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 8:30 AM To: Tomcat Users List Subject: RE: not starting up Hi, Look at your logs in $CATALINA_HOME/logs. It seems like you're running a tomcat version you built yourself? If so, you might wish to try one of the provided binary distributions. Finally, note that the startup.sh script returns right away anyways, it doesn't keep the console after launching Tomcat. So that part at least is normal behavior. Yoav Shapira http://www.yoavshapira.com -Original Message- From: James Peterson [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 9:27 AM To: [EMAIL PROTECTED] Subject: not starting up I am having a problem getting Tomcat to stay up. I do the following command $: ./startup.sh start I get the following feedback Using CATALINA_BASE: /usr/src/jakarta-tomcat-5.5.4-src/jakarta-tomcat-5/build Using CATALINA_HOME: /usr/src/jakarta-tomcat-5.5.4-src/jakarta-tomcat-5/build Using CATALINA_TMPDIR: /usr/src/jakarta-tomcat-5.5.4-src/jakarta-tomcat-5/build/temp Using JAVA_HOME: /opt/jdk1.5.0/ and nothing shows up under ps aux. any help please -- James Peterson Network Administrator Roman Meal Milling Company Phone 701.282.9656 Fax 701.282.9743 Email [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]
ServletContextListener lifecycle bug?
Hi all, We have a web app running under Tomcat 5.0.28. We wrote a ServletContextListener and configured it in the web.xml, and all works fine. Then one day we wanted to disable the listener, so we commented it out in our web.xml. Tomcat then reloaded the app. Our listener got a contextDestroyed call, as expected, but then it still received a contextInitialized when the app was re-started (we know this because of some logging we do in the listener). So then we stopped and started the webapp, with the same result. The only way we could get the listener to go away was to re-start Tomcat itself. To me this behaviour appears to violate the intent of the ServletContextListener interface as well as the contract defined by the web.xml deployment descriptor. On the practical side, having to restart Tomcat to disable a listener is not a viable solution in a production environment. Has anyone else experienced this behaviour? Is this behaviour intentional for some reason, or is this a bug? Thanks, Morley Howell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Runtime exec (again)
Hi, The shutdown command now works OK. There have been a few issues with this that I didn't have in the right combination. The Tomcat service must have suitable permissions. To do this: - Under control panel select Admin tools - Services - Right click Apache Tomcat service and select properties - Select the logon tab - Under 'This account' select a user account with administrator role. Not that Windows 2K doesn't come with a shutdown command. There is one supplied with the Win2K resource kit. - The command must be run from the overloaded exec method that takes a String array as it will not work declared as a string. - Both output and error streams must be read otherwise the process will hang. (see http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html) - The code will not run from a batch file. Thanks for your help. Andy _ Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cert. and accred. for gov't use.
Hi, Which mode is this? I'm shifting between all sorts of modes ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 12:16 PM To: Tomcat Users List Subject: Re: Cert. and accred. for gov't use. Try: http://www.google.com/search?hl=enq=open+source+certified+federal+use Lots of interesting article as well as rants. Doug PS Yoav, sounds like you are getting in that mode already. Not till next month. - Original Message - From: Sessoms, Mack [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 02, 2004 11:49 AM Subject: Re: Cert. and accred. for gov't use. Thanks for the reply. I had a feeling I was being FUD-ded. Shapira, Yoav wrote: Hi, That'd be 24/7/365 hopefully, although 265 would allow for a nice number of vacation days for everyone ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Shapira, Yoav Sent: Thursday, December 02, 2004 11:37 AM To: Tomcat Users List Subject: RE: Cert. and accred. for gov't use. Hi, I *think* what you're being told is BS. From a technical perspective there's no reason Tomcat and other Open-Source software can't be CA'ed. The usual issue people raise is the CYA (Cover Your ...) topic; whom do we go to when it crashes? The answer is numerous vendors, the choice is up to the client. There are huge (Big 4, HP, IBM, etc.) and smaller vendors who'll provide 24/7/265 disaster recovery and support services for Tomcat and other open-source servers. If Tomcat can be used in an FDA-validated environment (usually a stricter set of requirements and procedures than general federal CA) (http://jakarta.apache.org/tomcat/faq/fda-validation.html), I bet it can be done in a normal CA environment as well. It'd be great to hear from people/companies who've actually done it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Sessoms, Mack [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 11:29 AM To: [EMAIL PROTECTED] Subject: Cert. and accred. for gov't use. Does anyone know if there is any reason why Tomcat can't be certified for use by the federal gov't? Has anyone actually sent Tomcat through the federal CA process? I'm being told it can't be because it is open source. --- -- 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] 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]
Badly need any hint on Illegal State exception
Hi, Please any body provide any hint on following error. Because of this User got INTERNAL SERVER 500 Error. 2004-11-26 12:50:48 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 48) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:533) at java.lang.Thread.run(Thread.java:536) - Root Cause - java.lang.IllegalStateException at org.apache.coyote.tomcat4.CoyoteResponseFacade.sendRedirect(CoyoteResponseFa cade.java:340) at org.apache.jsp.DreamScreen_jsp._jspService(DreamScreen_jsp.java:564) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at
RE: Badly need any hint on Illegal State exception
look at at org.apache.jsp.DreamScreen_jsp._jspService(DreamScreen_jsp.java:564) in tomcat/work .. it gives you the line number. -Original Message- From: Pradeep Chauhan [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 17:30 To: Tomcat Users List Subject: Badly need any hint on Illegal State exception Hi, Please any body provide any hint on following error. Because of this User got INTERNAL SERVER 500 Error. 2004-11-26 12:50:48 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServlet Wrapper.java:2 48) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContex t.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter. java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Process or.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle r.processConne ction(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi nt.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.jav a:533) at java.lang.Thread.run(Thread.java:536) - Root Cause - java.lang.IllegalStateException at org.apache.coyote.tomcat4.CoyoteResponseFacade.sendRedirect(Co yoteResponseFa cade.java:340) at org.apache.jsp.DreamScreen_jsp._jspService(DreamScreen_jsp.java:564) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServlet Wrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
Re: Badly need any hint on Illegal State exception
http://jakarta.apache.org/tomcat/faq/misc.html#illegalstate Hint - you are performing a redirect after the response is committed. -Tim Pradeep Chauhan wrote: Hi, Please any body provide any hint on following error. Because of this User got INTERNAL SERVER 500 Error. 2004-11-26 12:50:48 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 48) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:533) at java.lang.Thread.run(Thread.java:536) - Root Cause - java.lang.IllegalStateException at org.apache.coyote.tomcat4.CoyoteResponseFacade.sendRedirect(CoyoteResponseFa cade.java:340) at org.apache.jsp.DreamScreen_jsp._jspService(DreamScreen_jsp.java:564) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk config on mac os x (Modifié par Cyril Godefroy)
I have some trouble using mod_jk to connect my apache web server and my tomcat app server with mod_jk. I use mac Os X 10.3.6, Tomcat 4.1.31 Apache 2.0.57 mod_jk 1.2.5 here's my mod_jk.conf: LoadModule jk_module modules/mod_jk.so JkWorkersFile /usr/local/tomcat/conf/workers.properties # Where to put jk logs JkLogFile /var/log/httpd/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevel trace # Select the log format JkLogStampFormat [%a %b %d %H:%M:%S %Y] # Send everything for context /front to worker named worker1 (ajp13) JkMount /front/* tomcat1 - Here's my workers.properties: # Specifically for mac os x workers.tomcat_home=/usr/local/tomcat workers.catalina_home=/usr/local/tomcat workers.java_home=/System/Library/Frameworks/JavaVM.framework/Home ps=/ # Define 1 real worker using ajp13 worker.list=tomcat1 # - # First tomcat server for front # worker.tomcat1.port=8009 worker.tomcat1.host=localhost worker.tomcat1.type=ajp13 I have an ajp13 connector in server.xml listening to port 8009 Apps are accessible on the standalone http port of tomcat (in that case 8080, not the default 9006 from Panther) i.e. http://localhost:8080/front/app but not on http://localhost/front/app What's wonderful is I get absolutely no error in any log file (except for 500 Internal Server Error printed out in Safari)... Using the autoconf feature of tomcat (with include /usr/local/tomcat/conf/auto/mod_jk.conf) gives different results: servlets don't work but html pages are accessible (I have apache for that ;-). Hints, comments, ideas are welcome. Cyril eCOMPOSITE J2EE Multimedia [EMAIL PROTECTED] Tel 06 63 16 45 41 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cert. and accred. for gov't use.
Yoav, School mode, back when you had summers off (about a hundred days, give or take). Doug - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 02, 2004 12:18 PM Subject: RE: Cert. and accred. for gov't use. Hi, Which mode is this? I'm shifting between all sorts of modes ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 12:16 PM To: Tomcat Users List Subject: Re: Cert. and accred. for gov't use. Try: http://www.google.com/search?hl=enq=open+source+certified+federal+use Lots of interesting article as well as rants. Doug PS Yoav, sounds like you are getting in that mode already. Not till next month. - Original Message - From: Sessoms, Mack [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 02, 2004 11:49 AM Subject: Re: Cert. and accred. for gov't use. Thanks for the reply. I had a feeling I was being FUD-ded. Shapira, Yoav wrote: Hi, That'd be 24/7/365 hopefully, although 265 would allow for a nice number of vacation days for everyone ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Shapira, Yoav Sent: Thursday, December 02, 2004 11:37 AM To: Tomcat Users List Subject: RE: Cert. and accred. for gov't use. Hi, I *think* what you're being told is BS. From a technical perspective there's no reason Tomcat and other Open-Source software can't be CA'ed. The usual issue people raise is the CYA (Cover Your ...) topic; whom do we go to when it crashes? The answer is numerous vendors, the choice is up to the client. There are huge (Big 4, HP, IBM, etc.) and smaller vendors who'll provide 24/7/265 disaster recovery and support services for Tomcat and other open-source servers. If Tomcat can be used in an FDA-validated environment (usually a stricter set of requirements and procedures than general federal CA) (http://jakarta.apache.org/tomcat/faq/fda-validation.html), I bet it can be done in a normal CA environment as well. It'd be great to hear from people/companies who've actually done it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Sessoms, Mack [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 11:29 AM To: [EMAIL PROTECTED] Subject: Cert. and accred. for gov't use. Does anyone know if there is any reason why Tomcat can't be certified for use by the federal gov't? Has anyone actually sent Tomcat through the federal CA process? I'm being told it can't be because it is open source. --- -- 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] 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]
RE: Cert. and accred. for gov't use.
Hi, Ahh, I wish. There's no off summer for me in the near future ;( The program is very intense... Yoav Shapira http://www.yoavshapira.com -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 1:33 PM To: Tomcat Users List Subject: Re: Cert. and accred. for gov't use. Yoav, School mode, back when you had summers off (about a hundred days, give or take). Doug - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 02, 2004 12:18 PM Subject: RE: Cert. and accred. for gov't use. Hi, Which mode is this? I'm shifting between all sorts of modes ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 12:16 PM To: Tomcat Users List Subject: Re: Cert. and accred. for gov't use. Try: http://www.google.com/search?hl=enq=open+source+certified+federal+use Lots of interesting article as well as rants. Doug PS Yoav, sounds like you are getting in that mode already. Not till next month. - Original Message - From: Sessoms, Mack [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 02, 2004 11:49 AM Subject: Re: Cert. and accred. for gov't use. Thanks for the reply. I had a feeling I was being FUD-ded. Shapira, Yoav wrote: Hi, That'd be 24/7/365 hopefully, although 265 would allow for a nice number of vacation days for everyone ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Shapira, Yoav Sent: Thursday, December 02, 2004 11:37 AM To: Tomcat Users List Subject: RE: Cert. and accred. for gov't use. Hi, I *think* what you're being told is BS. From a technical perspective there's no reason Tomcat and other Open-Source software can't be CA'ed. The usual issue people raise is the CYA (Cover Your ...) topic; whom do we go to when it crashes? The answer is numerous vendors, the choice is up to the client. There are huge (Big 4, HP, IBM, etc.) and smaller vendors who'll provide 24/7/265 disaster recovery and support services for Tomcat and other open-source servers. If Tomcat can be used in an FDA-validated environment (usually a stricter set of requirements and procedures than general federal CA) (http://jakarta.apache.org/tomcat/faq/fda-validation.html), I bet it can be done in a normal CA environment as well. It'd be great to hear from people/companies who've actually done it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Sessoms, Mack [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 11:29 AM To: [EMAIL PROTECTED] Subject: Cert. and accred. for gov't use. Does anyone know if there is any reason why Tomcat can't be certified for use by the federal gov't? Has anyone actually sent Tomcat through the federal CA process? I'm being told it can't be because it is open source. -- - -- 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] 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
RE: Badly need any hint on Illegal State exception
Thanks i will try to reproduce the issue at development enviorment and then apply the fix to assure this is only reason of error. Pradeep -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 02.12.2004 11:03 PM To: Tomcat Users List Subject: Re: Badly need any hint on Illegal State exception http://jakarta.apache.org/tomcat/faq/misc.html#illegalstate Hint - you are performing a redirect after the response is committed. -Tim Pradeep Chauhan wrote: Hi, Please any body provide any hint on following error. Because of this User got INTERNAL SERVER 500 Error. 2004-11-26 12:50:48 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 48) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:533) at java.lang.Thread.run(Thread.java:536) - Root Cause - java.lang.IllegalStateException at org.apache.coyote.tomcat4.CoyoteResponseFacade.sendRedirect(CoyoteResponseFa cade.java:340) at org.apache.jsp.DreamScreen_jsp._jspService(DreamScreen_jsp.java:564) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at - 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]
Erika Schoenmoser/CENTRAL/AMComNET/DE ist außer Haus.
Ich bin ab 30.11.2004 außer Haus und ab 13.12.2004 wieder im Büro. Ich werde Ihre Nachrichten nach meiner Rückkehr beantworten. Dringende Infos richten Sie bitte an [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems loading mod_jk into apache.
Hi All. I downloaded the suse 9.0 pre-made mod_jk module for SuSE 9.0 (i386) and installed it. When I try to restart apache with mod_jk, I'm getting an: Syntax error on line 226 of /etc/httpd/httpd.conf: Cannot load /usr/lib/apache/mod_jk.so into server: /usr/lib/apache/mod_jk.so: undefined symbol: apr_sockaddr_ip_get Line 226 in /etc/httpd/httpd.conf contains: LoadModule mod_jk /usr/lib/apache/mod_jk.so I've also included the directives: Include /var/tomcat3/conf/jk/mod_jk.conf-auto AddModule mod_jk.c Again, we're using SuSE 9.0 on x86. Let me know if there's more information I can give. Any help at all would be really appreciated, I'm thoroughly stumped. Thanks, -Dan - Dan Zubey N7NMD Network Engineer / Information Security United Drugs Corporate Office 602.678.1179 x270 800.800.2988 602.678.0772 Fax
basic security tutorial
hello! does anyone know if there's a tutorial or reference on how to set up basic security using tomcat (5.5)? i'd like to get a better understanding of how to secure particular pages in a webapp. thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
number of sessions and OutOfMemoryException
Hi, Few questions: If I set session-timeout to -1 in web.xml will I get eventualy OutOfMemoryException or Tomcat will remove the session and not die? Is there any easy way to calculate how much memory will be used per session ( I know what objects will be stored) Thanks, Maek __ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: number of sessions and OutOfMemoryException
Hi, If I set session-timeout to -1 in web.xml will I get eventualy OutOfMemoryException or Tomcat will remove the session and not die? You will get OOMEs. Session removal is your responsibility. (BTW note that OutOfMemory is an Error, not an Exception, with everything the former implies). Is there any easy way to calculate how much memory will be used per session ( I know what objects will be stored) If you know the objects exactly, you can calculate, yeah, but it's usually not worth the effort. Yoav Shapira http://www.yoavshapira.com 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]