Bit off topic : What happened to RedHat?
Hi, does anyone know what happened to RedHat, its mailing list and forum? Haven't used it for a while and it seems they are no more. Also, I run JVM and TC4 on RH7.1 kernel 2.4.2 and thinking about RH9, but someone said that's the last version and there won't be a *stability* version coming out after that. Also, rumour has it RH8 is full of bugs ? Can someone share their experience please ? can anyone shed some light please. TIA:-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 4.1.29 and static content in non Latin (ISO-8895-1) characters
Hello, I red some similar problems reported, but I'd like to post my question to the tomcat user community. I have an existing static documents (something.html) which has to be seen in Cyrillic (Windows-1251). An appropriate meta tag is included to tell the browser to use the right charset: meta http-equiv=Content-type content=text/html; charset=windoes-1251 Seems the new html connector (coyote 1.1) that comes with tomcat 4.1.29 strictly follows the standard and returns HTTP Header Content-type: text/html ; charset=ISO-8859-1 if no character encoding has been specified. The browser is forced to show the Cyrillic in ISO-8859-1. I suppose any other non latin languages have the same problem. JSP pages works fine if %@ page contentType= text/html; charset=Windows-1251 is specified. The same problem appears with filters (like sitemesh for example), as far as the content comes from a static .html it's not shown properly even with %@ page contentType directive specified. Does anyone found out a solution of this problem or are there any plans tomcat to support static non latin content. Many Thanks Yavor Trapkov __ McAfee VirusScan Online from the Netscape Network. Comprehensive protection for your entire computer. Get your free trial today! http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397 Get AOL Instant Messenger 5.1 free of charge. Download Now! http://aim.aol.com/aimnew/Aim/register.adp?promo=380455 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[offtopic] accessing ms access database from Linux
Hi, Do u know how to access a microsoft access database located on a windows machine from a j2ee application running on Tomcat on a Linux machine ? Thanks
AW: Increase The Heap
Maybe there are other problems too. Did you try to analyse your application with a profiler? It shows where possible bottlenecks are hidden. Hope it helps Mike -Ursprüngliche Nachricht- Von: Scott Purcell [mailto:[EMAIL PROTECTED] Gesendet: Montag, 17. November 2003 18:09 An: [EMAIL PROTECTED] Betreff: Increase The Heap Hello, I am running Tomcat 4.06 on Windows, and had run into an problem that I am trying to figure out. I have created a download application that enables end-users to gather images, zip them up and let them download them. Pretty simple. All is happy during testing if three users download at the same time. But if four users hit it at the same time, it appears that the JVM is running out of memory, and the downloads are failing. As a baseline, I would like to increase the JVM memory on tomcat 4.06 (running as a service). I am having trouble isolating where this is done. I have searched through the config directory for jmx but found nothing. Thanks Scott K Purcell - 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: https -- http session problem
Hello On 11/17/2003 06:32 AM Andrew Mottaz wrote: Option 1 is unacceptable -- the overhead of having all of these connections encrypted is not a viable option. What are the 'overheads' in using SSL? How much harder does the server have to work, and - in practice - what sort of performance impact does this have? Many thanks Harry Mantheakis London, UK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: https -- http session problem
On 11/18/2003 07:45 AM Bill Barker wrote: You'll have to go back at least two years to get the tomcat-dev discussion ;-). I had another search for it but can't find anything. Ploughing thro the whole list of threads doesn't fit in my schedule unfortunately. I guess I'm just going to have sit on it. At the moment, the Tomcat-Developer's don't believe that there is anything to discuss :). That's a problem. Also, the Servert-2.4 spec has already gone 'final' (not that I get a chance to see it :(), so all you can do now is to lobby for the whenever Servlet-2.5 Spec. If you have the decision to make again, make things configurable and give them the safer option as default. Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [offtopic] accessing ms access database from Linux
Hi, Do u know how to access a microsoft access database located on a windows machine from a j2ee application running on Tomcat on a Linux machine ? Thanks There is an official JDBC form Microsoft. Not that bad. You need to define a connection pool for best performances. François. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Character problem
On my jsp pages,i am calling a method from my class.Its return type is String.But in the browser the Turkish caracteres like þ,ð,ç seem to be corrupted.I put page directive on the of my jsp pages.Is that Tomcat who is changing my encoding?Where can i set the default encoding of Tomcat?Thanks for your helps. _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: UNSUBSCRIBE!!!
I think I couldn't see it when I had MS Outlook Express. They have since upgraded me to regular Outlook so I can't test for it now. From the UNSUBSCRIBE messages we get on the list, it seams like some can't see it. I'm in OE and I can see it. I think that they are getting swamped and hotmail cuts out before the confim unsubscription can get through. G. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Query..
Hi, Can u please send me the link to download isapi_redirect.dll Tx Reg Krishna - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard
Re: Query..
http://mirrors.midco.net/pub/apache.org/jakarta/tomcat-connectors/ Antony Paul - Original Message - From: Krishna Kumar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 10:53 AM Subject: Query.. Hi, Can u please send me the link to download isapi_redirect.dll Tx Reg Krishna - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Character problem
Have a look at this entry in the tomcat FAQ and then come back with further questions: http://jakarta.apache.org/tomcat/faq/printer/misc.html#utf8 Andoni. - Original Message - From: Burak Takmaz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 9:54 AM Subject: Character problem On my jsp pages,i am calling a method from my class.Its return type is String.But in the browser the Turkish caracteres like þ,ð,ç seem to be corrupted.I put page directive on the of my jsp pages.Is that Tomcat who is changing my encoding?Where can i set the default encoding of Tomcat?Thanks for your helps. _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - 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]
Tomcat version
I have a link on a page in my JSP application that is supposed to open an Excel file. The link is a href=taxCalc.xls target=_blankTax Calculator/a. If the application runs on Tomcat 4.1.24, it works fine. A new browser window opens, the excel file gets downloaded and opens up in the browser. But, if I run the application on another instance of Tomcat which is 4.0.3, the excel file does not open, instead it shows a lot of junk characters in the browser. What could be the reason for this? Thanks, Gautam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat version
At a guess the excel mime type is not set in Tomcat 4.0.3 conf/web.xml -Original Message- From: Aggarwal, Gautam (IE03) [mailto:[EMAIL PROTECTED] Sent: 18 November 2003 13:36 To: [EMAIL PROTECTED] Subject: Tomcat version I have a link on a page in my JSP application that is supposed to open an Excel file. The link is a href=taxCalc.xls target=_blankTax Calculator/a. If the application runs on Tomcat 4.1.24, it works fine. A new browser window opens, the excel file gets downloaded and opens up in the browser. But, if I run the application on another instance of Tomcat which is 4.0.3, the excel file does not open, instead it shows a lot of junk characters in the browser. What could be the reason for this? Thanks, Gautam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat version
Please tell me how to set the mime type. -Original Message- From: Tom Lyle [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 6:56 PM To: Tomcat Users List Subject: RE: Tomcat version At a guess the excel mime type is not set in Tomcat 4.0.3 conf/web.xml -Original Message- From: Aggarwal, Gautam (IE03) [mailto:[EMAIL PROTECTED] Sent: 18 November 2003 13:36 To: [EMAIL PROTECTED] Subject: Tomcat version I have a link on a page in my JSP application that is supposed to open an Excel file. The link is a href=taxCalc.xls target=_blankTax Calculator/a. If the application runs on Tomcat 4.1.24, it works fine. A new browser window opens, the excel file gets downloaded and opens up in the browser. But, if I run the application on another instance of Tomcat which is 4.0.3, the excel file does not open, instead it shows a lot of junk characters in the browser. What could be the reason for this? Thanks, Gautam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat version
I added the following and it seems to be working fine. mime-mapping extensionxls/extension mime-typeapplication/vnd.ms-excel/mime-type /mime-mapping Thanks a lot, Tom! -Original Message- From: Aggarwal, Gautam (IE03) Sent: Tuesday, November 18, 2003 7:18 PM To: Tomcat Users List Subject: RE: Tomcat version Please tell me how to set the mime type. -Original Message- From: Tom Lyle [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 6:56 PM To: Tomcat Users List Subject: RE: Tomcat version At a guess the excel mime type is not set in Tomcat 4.0.3 conf/web.xml -Original Message- From: Aggarwal, Gautam (IE03) [mailto:[EMAIL PROTECTED] Sent: 18 November 2003 13:36 To: [EMAIL PROTECTED] Subject: Tomcat version I have a link on a page in my JSP application that is supposed to open an Excel file. The link is a href=taxCalc.xls target=_blankTax Calculator/a. If the application runs on Tomcat 4.1.24, it works fine. A new browser window opens, the excel file gets downloaded and opens up in the browser. But, if I run the application on another instance of Tomcat which is 4.0.3, the excel file does not open, instead it shows a lot of junk characters in the browser. What could be the reason for this? Thanks, Gautam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat version
Assuming that tomcat 4.0.3 s web.xml layout is the same as as 4.1.24 try adding mime-mapping extensionxls/extension mime-typeapplication/vnd.ms-excel/mime-type /mime-mapping to conf/web.xml and restart Tomcat -Original Message- From: Aggarwal, Gautam (IE03) [mailto:[EMAIL PROTECTED] Sent: 18 November 2003 13:48 To: Tomcat Users List Subject: RE: Tomcat version Please tell me how to set the mime type. -Original Message- From: Tom Lyle [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 6:56 PM To: Tomcat Users List Subject: RE: Tomcat version At a guess the excel mime type is not set in Tomcat 4.0.3 conf/web.xml -Original Message- From: Aggarwal, Gautam (IE03) [mailto:[EMAIL PROTECTED] Sent: 18 November 2003 13:36 To: [EMAIL PROTECTED] Subject: Tomcat version I have a link on a page in my JSP application that is supposed to open an Excel file. The link is a href=taxCalc.xls target=_blankTax Calculator/a. If the application runs on Tomcat 4.1.24, it works fine. A new browser window opens, the excel file gets downloaded and opens up in the browser. But, if I run the application on another instance of Tomcat which is 4.0.3, the excel file does not open, instead it shows a lot of junk characters in the browser. What could be the reason for this? Thanks, Gautam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java core w TC 4.1.24
Howdy, 1. Try latest stable tomcat (4.1.29), fixed have been made in this area. 2. Ensure your redhat OS has the latest patches installed as required for your JDK. Yoav Shapira Millennium ChemInformatics -Original Message- From: J D [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 11:08 PM To: [EMAIL PROTECTED] Subject: Java core w TC 4.1.24 Hi Folks, Any pointers on this? RedHat 7.3 Tomcat 4.1.24 Java 1.4.1_02 Thanks --- -- An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x4002245E Function=(null)+0x4002245E Library=/lib/i686/libpthread.so.0 NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353) - locked 0x47f58248 (a java.net.PlainSocketImpl) at java.net.ServerSocket.implAccept(ServerSocket.java:439) at java.net.ServerSocket.accept(ServerSocket.java:410) at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(Defa ultS erverSocketFactory.java:107) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint .jav a:356) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5 29) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.ja va:619) at java.lang.Thread.run(Thread.java:536) Dynamic libraries: 08048000-0804e000 r-xp 68:02 835687 /usr/javainstall/j2sdk1.4.1_02/bin/java 0804e000-0804f000 rw-p 5000 68:02 835687 /usr/javainstall/j2sdk1.4.1_02/bin/java 4000-40013000 r-xp 68:02 671755 /lib/ld-2.2.5.so 40013000-40014000 rw-p 00013000 68:02 671755 /lib/ld-2.2.5.so . . . --- - Local Time = Mon Nov 17 14:04:12 2003 Elapsed Time = 33408 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Server VM (1.4.1_02-b06 mixed mode) # _ MSN Shopping upgraded for the holidays! Snappier product search... http://shopping.msn.com - 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]
mod_jk2, load balancing with two tomcats favors a single servlet engine
Hi, running Apache 2.0.47 / mod_jk2 2.0.2 / Tomcat 4.1.24 on RedHat Linux 8.0 with two instances of Tomcat having an identical webapps tree. The second servlet engine never gets as many sessions as the first servlet engine. I wrote a script to record the session counter available from http://localhost:portno/manager/list. How does mod_jk2 deliver the requests to the servlet engines? == /var/log/tomcat1/session_count.log == Nov 18 14:29:00 58 Nov 18 14:30:00 65 Nov 18 14:31:00 65 Nov 18 14:32:00 84 Nov 18 14:33:01 88 Nov 18 14:34:00 86 Nov 18 14:35:00 83 Nov 18 14:36:00 77 Nov 18 14:37:01 60 Nov 18 14:38:00 62 == /var/log/tomcat2/session_count.log == Nov 18 14:29:00 17 Nov 18 14:30:00 16 Nov 18 14:31:00 19 Nov 18 14:32:00 27 Nov 18 14:33:01 25 Nov 18 14:34:00 25 Nov 18 14:35:00 27 Nov 18 14:36:00 28 Nov 18 14:37:01 20 Nov 18 14:38:00 21 == /opt/apache/conf/workers2.properties === [config:] file=/opt/apache/conf/workers2.properties debug=0 debugEnv=0 [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=/opt/tomcat/work/jk2.shm size=100 debug=0 disabled=0 [workerEnv:] info=Global server options timing=1 debug=0 [channel.socket:localhost:8001] info=Ajp13 forwarding over socket debug=0 tomcatId=tomcat1 lb_factor=1 [channel.socket:localhost:8002] info=Ajp13 forwarding over socket debug=0 tomcatId=tomcat2 lb_factor=1 [status:] info=Status worker, display runtime information [uri:/jkstatus/*] info=Display status information and checks the config file for changes group=status: [...some URI mappings...] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat/JVM heap dump
Howdy, I see you already have this solved, which is good. These past three months or so have seen an unprecedented amount of issues reported with RedHat on this list ;( Yoav Shapira Millennium ChemInformatics -Original Message- From: Sunitha Kumar [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 5:32 PM To: Tomcat Users List Subject: Tomcat/JVM heap dump Hey folks, Any pointers on this? thanks, Using CATALINA_TMPDIR: /jakarta-tomcat-4.1.29/temp Using JAVA_HOME: /opt/j2sdk_nb/j2sdk1.4.2 # # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Java VM: Java HotSpot(TM) Client VM (1.4.2-b28 mixed mode) # # Error ID: 4F533F4C494E55580E43505001C9 # Heap at VM Abort: Heap Another exception has been detected while we were handling last error. Dumping information about last error: ERROR REPORT FILE = (N/A) PC= 0x3fe87a88 SIGNAL= 11 FUNCTION NAME = (N/A) - 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: tomcat 4.1.29 and static content in non Latin (ISO-8895-1) characters
Have you tried running the page through native2ascii and then using the output of that as your JSP? -Original Message- From: Yavor Trapkov [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 1:16 AM To: [EMAIL PROTECTED] Subject: tomcat 4.1.29 and static content in non Latin (ISO-8895-1) characters Hello, I red some similar problems reported, but I'd like to post my question to the tomcat user community. I have an existing static documents (something.html) which has to be seen in Cyrillic (Windows-1251). An appropriate meta tag is included to tell the browser to use the right charset: meta http-equiv=Content-type content=text/html; charset=windoes-1251 Seems the new html connector (coyote 1.1) that comes with tomcat 4.1.29 strictly follows the standard and returns HTTP Header Content-type: text/html ; charset=ISO-8859-1 if no character encoding has been specified. The browser is forced to show the Cyrillic in ISO-8859-1. I suppose any other non latin languages have the same problem. JSP pages works fine if %@ page contentType= text/html; charset=Windows-1251 is specified. The same problem appears with filters (like sitemesh for example), as far as the content comes from a static .html it's not shown properly even with %@ page contentType directive specified. Does anyone found out a solution of this problem or are there any plans tomcat to support static non latin content. Many Thanks Yavor Trapkov __ McAfee VirusScan Online from the Netscape Network. Comprehensive protection for your entire computer. Get your free trial today! http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397 Get AOL Instant Messenger 5.1 free of charge. Download Now! http://aim.aol.com/aimnew/Aim/register.adp?promo=380455 - 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]
Log4j setup
Im using tomcat to house a few servlets. These servlets are under webapps/myServ/WEB_INF/classes. What these servlets are, are a web-interface around another java app that I have located somewhere on my drive (/home/myOtherApp/ for instance). I also have a common library of middleware tools that I use in both the servlets and the app. This middleware uses log4j to write debug messages to the console as well as a rolling file. The java app being called by the servlets is actually wrapped in an ant build file and is executed through Ant programatic (java) calls. All the calsspath setup is done in this buildfile. The problem I am having is getting log4j to work within my servlets. When I place log4j.jar in the directory where my app is looking for jars, everything works fine and I get log4j messages. Unfortunatly, my servlets also need log4j (since they are using the middleware which is full of log4j) so i placed a copy of the jar in webapps/myServ/WEB_INF/lib. When I do this though log4j doesnt work and I get various error messages saying I cant intitialize my appenders, etc, etc. Im not sure if anyone will have a solution but maybe some ideas can get me going down the right path. Thanks everyone, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 4.1.29 and static content in non Latin (ISO-8895-1) characters
Hi I have same problem. If you change apache httpd.conf file AddDefaultCharset windows-1251 static data has to be seen Cyrillic. However it is very bad solution:-) -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 10:06 PM To: 'Tomcat Users List' Subject: RE: tomcat 4.1.29 and static content in non Latin (ISO-8895-1) characters Have you tried running the page through native2ascii and then using the output of that as your JSP? -Original Message- From: Yavor Trapkov [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 1:16 AM To: [EMAIL PROTECTED] Subject: tomcat 4.1.29 and static content in non Latin (ISO-8895-1) characters Hello, I red some similar problems reported, but I'd like to post my question to the tomcat user community. I have an existing static documents (something.html) which has to be seen in Cyrillic (Windows-1251). An appropriate meta tag is included to tell the browser to use the right charset: meta http-equiv=Content-type content=text/html; charset=windoes-1251 Seems the new html connector (coyote 1.1) that comes with tomcat 4.1.29 strictly follows the standard and returns HTTP Header Content-type: text/html ; charset=ISO-8859-1 if no character encoding has been specified. The browser is forced to show the Cyrillic in ISO-8859-1. I suppose any other non latin languages have the same problem. JSP pages works fine if %@ page contentType= text/html; charset=Windows-1251 is specified. The same problem appears with filters (like sitemesh for example), as far as the content comes from a static .html it's not shown properly even with %@ page contentType directive specified. Does anyone found out a solution of this problem or are there any plans tomcat to support static non latin content. Many Thanks Yavor Trapkov __ McAfee VirusScan Online from the Netscape Network. Comprehensive protection for your entire computer. Get your free trial today! http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397 Get AOL Instant Messenger 5.1 free of charge. Download Now! http://aim.aol.com/aimnew/Aim/register.adp?promo=380455 - 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: Log4j setup
Hi Chris, this is probably a classloader issue, and those puzzle me most of the time, too. Try placing an additional log4j.properties file into your webapps/myServ/WEB_INF/classes directory (duplicating your original one). Specifying the location of your log4j.properties file on the commandline to java when starting tomcat could be an option, too (but I have not tried this). The command-line argument seems to be -Dlog4j.configuration=PATH_TO_YOUR_FILE Greetings Andreas Mohrig -Original Message- From: Bender, Christopher [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 3:24 PM To: [EMAIL PROTECTED] Subject: Log4j setup Im using tomcat to house a few servlets. These servlets are under webapps/myServ/WEB_INF/classes. What these servlets are, are a web-interface around another java app that I have located somewhere on my drive (/home/myOtherApp/ for instance). I also have a common library of middleware tools that I use in both the servlets and the app. This middleware uses log4j to write debug messages to the console as well as a rolling file. The java app being called by the servlets is actually wrapped in an ant build file and is executed through Ant programatic (java) calls. All the calsspath setup is done in this buildfile. The problem I am having is getting log4j to work within my servlets. When I place log4j.jar in the directory where my app is looking for jars, everything works fine and I get log4j messages. Unfortunatly, my servlets also need log4j (since they are using the middleware which is full of log4j) so i placed a copy of the jar in webapps/myServ/WEB_INF/lib. When I do this though log4j doesnt work and I get various error messages saying I cant intitialize my appenders, etc, etc. Im not sure if anyone will have a solution but maybe some ideas can get me going down the right path. Thanks everyone, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 4.1.29 and static content in non Latin (ISO-8895-1) characters
Galbayar wrote: Hi I have same problem. If you change apache httpd.conf file AddDefaultCharset windows-1251 static data has to be seen Cyrillic. However it is very bad solution:-) For a real fix, you can apply a patch to the Tomcat code: Index: Response.java === RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/Response.java,v retrieving revision 1.29 retrieving revision 1.30 diff -u -r1.29 -r1.30 --- Response.java 14 Oct 2003 19:21:25 - 1.29 +++ Response.java 11 Nov 2003 20:56:56 - 1.30 @@ -552,9 +552,11 @@ String ret = contentType; -if (ret != null characterEncoding != null) { -ret += ;charset=; -ret += characterEncoding; +if (ret != null + characterEncoding != null + !(Constants.DEFAULT_CHARACTER_ENCODING.equals + (characterEncoding))) { +ret = ret + ;charset= + characterEncoding; } return ret; -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What is this error??
What is this error?? Event Type: Error Event Source: Apache Jakarta Connector2 Event Category: None Event ID: 1 Date: 11/18/2003 Time: 9:10:31 AM User: N/A Computer: [censored] Description: Emerg: [jk_isapi_plugin.c (427)]: HttpFilterProc [/[censored2]/meta-inf/services/javax.print.printservicelookup] points to the web-inf or meta-inf directory. Somebody try to hack into the site!!! Lane You are in a little maze of twisty passages, all alike. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Connector and MBean
Hello, I wrote my own Connector for Tomcat which have to be registered on the MbeanServer since version 4.1. Without registration, Tomcat throw an Exception ManagedBean is not found ... and the MBeanServer is not available for the Tomcat Administration. I tried to register the Connector using my own MBean description, but I just get an MalformedObjectNameException in the Class org.apache.catalina.mbeans.MBeanUtils, method createObjectName. A closer look into the source code shows that only connector instances of HttpConnector, org.apache.catalina.connector.http10.HttpConnector, org.apache.ajp.tomcat4.Ajp13Connector and org.apache.coyote.tomcat4.CoyoteConnector are supported. By all other Connectors an Exception is thrown. Am I right, it is not possible to register an another connector to the MBeanServer ? It would suffice first to look on the MBeanServer if an MBean already exist for a Object, instead of always trying to create one. In this case the connector could register himself on the MBeanServer. /** * Create an codeObjectName/code for this * codeConnector/code object. * * @param domain Domain in which this name is to be created * @param connector The Connector to be named * * @exception MalformedObjectNameException if a name cannot be created */ public static ObjectName createObjectName(String domain, Connector connector) throws MalformedObjectNameException { ObjectName name = null; if (connector instanceof HttpConnector) { HttpConnector httpConnector = (HttpConnector) connector; Service service = httpConnector.getService(); String serviceName = null; if (service != null) serviceName = service.getName(); name = new ObjectName(domain + :type=Connector + ,service= + serviceName + ,port= + httpConnector.getPort() + ,address= + httpConnector.getAddress ()); return (name); } else if (connector instanceof org.apache.catalina.connector.http10.HttpConnector) { org.apache.catalina.connector.http10.HttpConnector httpConnector = (org.apache.catalina.connector.http10.HttpConnector) connector; Service service = httpConnector.getService(); String serviceName = null; if (service != null) serviceName = service.getName(); name = new ObjectName(domain + :type=Connector + ,service= + serviceName+ ,port= + httpConnector.getPort() + ,address= + httpConnector.getAddress ()); return (name); } else if (org.apache.ajp.tomcat4.Ajp13Connector.equals (connector.getClass().getName())) { try { String address = (String) PropertyUtils.getSimpleProperty(connector, address); Integer port = (Integer) PropertyUtils.getSimpleProperty(connector, port); Service service = connector.getService(); String serviceName = null; if (service != null) serviceName = service.getName(); name = new ObjectName(domain + :type=Connector + ,service= + serviceName + ,port= + port + ,address= + address); return (name); } catch (Exception e) { throw new MalformedObjectNameException (Cannot create object name for + connector+e); } } else if (org.apache.coyote.tomcat4.CoyoteConnector.equals (connector.getClass().getName())) { try { String address = (String) PropertyUtils.getSimpleProperty(connector, address); Integer port = (Integer) PropertyUtils.getSimpleProperty(connector, port); Service service = connector.getService(); String serviceName = null; if (service != null) serviceName = service.getName(); name = new ObjectName(domain + :type=Connector + ,service= + serviceName + ,port= + port + ,address= + address); return (name); } catch (Exception e) { throw new MalformedObjectNameException (Cannot create object name for + connector+e); } } else { throw new MalformedObjectNameException (Cannot create object name for + connector); } } Best
Tomcat 4.1.29 Configuration Problem
Hi all, I am having a problem in configurating tomcat. 1) I made a web application under webapps called hSolutions. 2) In conf , directory , there are three - four server.xml files. I put the context (hSolutions) in server-noexamples.xml.config 3) I copied my servlet to webapps/hSolutions/WEB-INF/classes/hLibManagSolutions/Hello.class 4) In web.xml file i put : web-app servlet servlet-name Hello /servlet-name servlet-class hLibManagSystem.Hello /servlet-class /servlet servlet-mapping servlet-nameHello/servlet-name url-pattern/Hello/url-pattern /servlet-mapping welcome-file-list welcome-file html/Registration.html /welcome-file /welcome-file-list Tomcat is finding the Registration.html but not the classes . It is giving 404 error. I have had problems with tomcat before, but i think this new version TOMCAT 4.1.29 (with a ROOT folder) has some different configuration settings. Why doesnt jakarta, give a proper configuration example. Please let me know. i have wasted a lot of time on configuration today Will appreciate your feedback Thankx Vaneet -Original Message- From: Tom Lyle [mailto:[EMAIL PROTECTED] Sent: Tue 18/11/2003 14:44 To: Tomcat Users List Cc: Subject: RE: Tomcat version Assuming that tomcat 4.0.3 s web.xml layout is the same as as 4.1.24 try adding mime-mapping extensionxls/extension mime-typeapplication/vnd.ms-excel/mime-type /mime-mapping to conf/web.xml and restart Tomcat -Original Message- From: Aggarwal, Gautam (IE03) [mailto:[EMAIL PROTECTED] Sent: 18 November 2003 13:48 To: Tomcat Users List Subject: RE: Tomcat version Please tell me how to set the mime type. -Original Message- From: Tom Lyle [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 6:56 PM To: Tomcat Users List Subject: RE: Tomcat version At a guess the excel mime type is not set in Tomcat 4.0.3 conf/web.xml -Original Message- From: Aggarwal, Gautam (IE03) [mailto:[EMAIL PROTECTED] Sent: 18 November 2003 13:36 To: [EMAIL PROTECTED] Subject: Tomcat version I have a link on a page in my JSP application that is supposed to open an Excel file. The link is a href=taxCalc.xls target=_blankTax Calculator/a. If the application runs on Tomcat 4.1.24, it works fine. A new browser window opens, the excel file gets downloaded and opens up in the browser. But, if I run the application on another instance of Tomcat which is 4.0.3, the excel file does not open, instead it shows a lot of junk characters in the browser. What could be the reason for this? Thanks, Gautam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1.29 Configuration Problem
Hello 3) I copied my servlet to webapps/hSolutions/WEB-INF/classes/hLibManagSolutions/Hello.class servlet servlet-name Hello /servlet-name servlet-class hLibManagSystem.Hello /servlet-class /servlet Looks like either 'hLibManagSolutions' should be 'hLibManagSystem' or the other way round. Avoid blank spaces in your element values just to be safe. Instead of this: servlet-name Hello /servlet-name Type this: servlet-nameHello/servlet-name Regards Harry Mantheakis London, UK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java core w TC 4.1.24
Unexpected Signal : 11 occurred at PC=0x4002245E Function=(null)+0x4002245E Library=/lib/i686/libpthread.so.0 Does this happen frequently? Only under load? RH 7.3 is pretty stable, and I've never had a problem with it along with pretty much any JDK. I've heard a lot of suggestions to bypass 1.4.1 due to some serious bug especially in StringBuffer. Give that a try, but I expect that it won't go away... When you get the sig 11, does it always say the same shared lib or does it look like it's coming from all over? -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
reloadable
Hi, I've got a web application with reloadable=false. I start tomcat. I call a jsp file ( ex: toto.jsp ). The JSP is compiled in the work directory. I stop tomcat I update the jsp toto.jsp. I start tomcat. What does Tomcat ? Does it recompile the new jsp or does it use the old file in the work directory ? Thanks
RE: Tomcat 4.1.29 Problem not solved
Dear Harry, Thankx, i tried it but didnt worked out. The error is same. After making changes, i went on to Tomcat manager interface and reloaded the context. (I think that restarts the server, am i right ?) There aer three or four SERVER.XML Files. Which file to change,,, i dont know.. No documentation avaliable Vaneet -Original Message- From: Harry Mantheakis [mailto:[EMAIL PROTECTED] Sent: Tue 18/11/2003 16:14 To: Tomcat Users List Cc: Subject: Re: Tomcat 4.1.29 Configuration Problem Hello 3) I copied my servlet to webapps/hSolutions/WEB-INF/classes/hLibManagSolutions/Hello.class servlet servlet-name Hello /servlet-name servlet-class hLibManagSystem.Hello /servlet-class /servlet Looks like either 'hLibManagSolutions' should be 'hLibManagSystem' or the other way round. Avoid blank spaces in your element values just to be safe. Instead of this: servlet-name Hello /servlet-name Type this: servlet-nameHello/servlet-name Regards Harry Mantheakis London, UK - 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: reloadable
Howdy, Tomcat will recompile the JSP. Reloadable affects only runtime performance. Yoav Shapira Millennium ChemInformatics -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 10:42 AM To: [EMAIL PROTECTED] Subject: reloadable Hi, I've got a web application with reloadable=false. I start tomcat. I call a jsp file ( ex: toto.jsp ). The JSP is compiled in the work directory. I stop tomcat I update the jsp toto.jsp. I start tomcat. What does Tomcat ? Does it recompile the new jsp or does it use the old file in the work directory ? Thanks 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: Bit off topic : What happened to RedHat?
Hi, does anyone know what happened to RedHat? Haven't used it for a while and it seems they are no more. Yeah, they decided to stop giving away their operating system under the name RedHat. RH 9 is the last one. You can still purchase RedHat Enterprise, of course. They're not going out of business, just changing the way they do business. And since they are legally required to give it away in some form of another (it is a derivative work), they have created the Fedora project (http://fedora.redhat.com/). Apparently, reviews of the Core 1, released just recently, where pretty weak. Also, I run JVM and TC4 on RH7.1 kernel 2.4.2 and thinking about RH9, but someone said that's the last version and there won't be a *stability* version coming out after that. You should upgrade to *anything* from RH 7.1. I assume that you have the oops, we hosed glibc RPM upgrade already. RH 7.1 was probably the worst release of RH ever. I've used 7.3 on many servers running Java/Tomcat apps, and it does just fine. RH 8 and RH 9 were pretty much desktop releases, designed to work with more hardware and have nicer GUIs. Assuming that you're running a server, there's very little difference between 7.3, 8.0, and 9. Of course, the newer ones have newer kernels, but in general you can upgrade those yourself. Also, rumour has it RH8 is full of bugs? This isn't my experience, but I don't use a lot of the stuff that comes with RH. Pretty much just the raw network stuff and bash. :) One reason to go with RH 9 is the fact that it will be supported for a bit longer: RH 8.0 and earier will lose support (that is, RPM patches) on 31 December of this year. RH 9 will survive until April 2004. Or, you could bail on RH and go with another Distro. Feel free to start a flame war by asking which one :) -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1.29 Configuration .. please see Attachments
The error is same. After making changes, i went on to Tomcat manager interface and reloaded the context. (I think that restarts the server, am i right ?) Tomcat is finding the Registration.html but not the classes . It is giving 404 error. There aer three or four SERVER.XML Files. Which file to change,,, i dont know.. No documentation avaliable Vaneet -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tue 18/11/2003 16:43 To: Tomcat Users List Cc: Subject: Re: Java core w TC 4.1.24 Unexpected Signal : 11 occurred at PC=0x4002245E Function=(null)+0x4002245E Library=/lib/i686/libpthread.so.0 Does this happen frequently? Only under load? RH 7.3 is pretty stable, and I've never had a problem with it along with pretty much any JDK. I've heard a lot of suggestions to bypass 1.4.1 due to some serious bug especially in StringBuffer. Give that a try, but I expect that it won't go away... When you get the sig 11, does it always say the same shared lib or does it look like it's coming from all over? -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bit off topic : What happened to RedHat?
Or, you could bail on RH and go with another Distro. Feel free to start a flame war by asking which one :) Please don't. :-o RH 7.3 has been a rock for us. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
URL rewriting question ..
In order to enable URL rewriting as opposed to storing cookies automatically we need to use the encodeURL(String url) or encodeRedirectURL(String url) method in the Servlets and/or JSPs. Is there a more easier way to do this as opposed to going thru the entire webapp and doing this for every URL or redirection ? Are there some configuration settings in Tomcat 4.1.x that can be set in say the server.xml or web.xml that can be used ? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Automatically instantiate Servlet
Hi, usually Tomcat Servlets are instanciated after a webapplication is accessing its url first time. Is there a method of automatically do this? Can I tell Tomcat to instanciate a servlet directly after startup using a config file (web.xml, server.xml)? If the answer is yes, can anybody provide an example? Cheers, Ralf -- NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse für Mail, Message, More! +++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk in multiple site environnement
Hi. I am managing a server wich host many site. Each have it's own jvm. To make things simple, each site have a piece of httpd.conf wich is included in the main httpd.conf. To be able to add/remove easily sites, it would be useful to have the possibility to specify multiple JkWorkersFile. example : * main httpd.conf LoadModule jk_module libexec/mod_jk.so NameVirtualHost *:80 Include /projects/site1/conf/httpd.conf Include /projects/site2/conf/httpd.conf ... * site 1 piece of httpd.conf : /projects/site1/conf/httpd.conf JkWorkersFile /projects/site1/conf/workers.properties VirtualHost *:80 ServerName site1.mydomain.com ServerAlias site1.mydomain.com DocumentRoot /projects/site1/htmlroot/ JkMount /*.jsp /site1 /VirtualHost * site 2 piece of httpd.conf : /projects/site2/conf/httpd.conf JkWorkersFile /projects/site2/conf/workers.properties VirtualHost *:80 ServerName site2.mydomain.com ServerAlias site2.mydomain.com DocumentRoot /projects/site2/htmlroot/ JkMount /*.jsp /site2 /VirtualHost Actually, I have to concatene all workers.properties files and place JkWorkersFile directive in main httpd.conf. It's really not clean. Idealy, - the JkWorkersFile would be in VirtualHost / - We would not have to make JkMount because there is already a web.xml that all URIs to be mapped. Why couldn't mod_jk work as caucho's mod_caucho for Resin works ? Am I at the right place to ask for this ? Mike Baroukh Cardiweb - 31 Rue de Mogador Paris IXeme 06 63 57 27 22 - 01 53 21 82 63 - ICQ: 105910677 http://www.cardiweb.com -- Le caractère d'un homme fait son destin. Démocrite -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: https -- http session problem
Harry, Option 1 is unacceptable -- the overhead of having all of these connections encrypted is not a viable option. What are the 'overheads' in using SSL? How much harder does the server have to work, and - in practice - what sort of performance impact does this have? I don't have any numbers, but... SSL is encrypted, so the decryption has to take place on the server to make sense of the data. There's also the key negotiation that takes place at the beginnign of the SSL session. This load is pretty hard on the machine. Lots of apps have installed SSL acceleration boards into their servers to speed things up -- the h/w is faster than the software. Other use huge servers as proxies that decrypt everything so that the app servers don't have to do the work. (The data is not encrypted near the servers, but this is generally behind a firewall, anyway). I've seen performance numbers with SSL on and off, and the difference is suprising. I think we were using some type of Sun boxes (can't remember what type) and I think all of them had SSL accelerators in them. They were dedicateed web servers and did the SSL on behalf of the app servers. For even simple pages (actually, the time difference gets worse with simple, static content), the response times were doubled or worse. There's another effect with HTTPS that's unfortunate, which is that most browsers will not cache anything that comes down over SSL (including images!), which means that everything on your page will get re-loaded every time you show it (even images). That sucks because you now have estra requests to the server, and they all take longer. :( -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat/JVM heap dump
It is fixed? How? Details please! -Dave -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 5:55 AM To: Tomcat Users List Subject: RE: Tomcat/JVM heap dump Howdy, I see you already have this solved, which is good. These past three months or so have seen an unprecedented amount of issues reported with RedHat on this list ;( Yoav Shapira Millennium ChemInformatics -Original Message- From: Sunitha Kumar [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 5:32 PM To: Tomcat Users List Subject: Tomcat/JVM heap dump Hey folks, Any pointers on this? thanks, Using CATALINA_TMPDIR: /jakarta-tomcat-4.1.29/temp Using JAVA_HOME: /opt/j2sdk_nb/j2sdk1.4.2 # # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Java VM: Java HotSpot(TM) Client VM (1.4.2-b28 mixed mode) # # Error ID: 4F533F4C494E55580E43505001C9 # Heap at VM Abort: Heap Another exception has been detected while we were handling last error. Dumping information about last error: ERROR REPORT FILE = (N/A) PC= 0x3fe87a88 SIGNAL= 11 FUNCTION NAME = (N/A) - 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: URL rewriting question ..
Mufaddal, Are there some configuration settings in Tomcat 4.1.x that can be set in say the server.xml or web.xml that can be used ? Nope. Tomcat won't look through your responses for things that look like URLs and append all the things you need (like sessison id, etc.). However, if you are using a framework like Struts, you can use the tag libraries provided to add both the context path as well as any necessary session information to the URLs. Unfortunarely, that still requires you to go back through all your pages and change all the links :( -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Automatically instantiate Servlet
Ralf, Can I tell Tomcat to instanciate a servlet directly after startup using a config file (web.xml, server.xml)? servlet servlet-nameyourServlet/servlet-name servlet-classyourClass/servlet-class load-on-startup1/load-on-startup /servlet -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Automatically instantiate Servlet
Ralf, web.xml is the right place. You just have to put another entry in your desired servlet.../servlet section: servlet [...] load-on-startup1/load-on-startup /servlet The number specified determines the order the servlets are instantiated at startup (if you instantiante more than one). Greetings Andreas Mohrig -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 5:00 PM To: [EMAIL PROTECTED] Subject: Automatically instantiate Servlet Hi, usually Tomcat Servlets are instanciated after a webapplication is accessing its url first time. Is there a method of automatically do this? Can I tell Tomcat to instanciate a servlet directly after startup using a config file (web.xml, server.xml)? If the answer is yes, can anybody provide an example? Cheers, Ralf -- NEU FUR ALLE - GMX MediaCenter - fur Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gru?, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse fur Mail, Message, More! +++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk2 tomcat4.1.29 apache2.0.48
Hey Folks, I am having a bit of a challenge setting up mod_jk2 . It seems very different from its predecessor mod_jk. I try putting diectives in my httpd.conf just like I did with mod_jk and all I get is an error stating that the objective is for a module that does not exist or it is mispelled. Could someone please guide me to the a definitive guide on mod_jk2 , or even a snip at what my httpd.conf is supposed to look like I would greatly appreciate it thank you , Pablo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reloadable
Hi, Would it be fair to say that especially with older versions of tomcat this cannot always be guaranteed to work correctly? I would recommend that if you are having any doubts that you delete the files from your work directory when you redeploy. Andoni. - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 3:43 PM Subject: RE: reloadable Howdy, Tomcat will recompile the JSP. Reloadable affects only runtime performance. Yoav Shapira Millennium ChemInformatics -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 10:42 AM To: [EMAIL PROTECTED] Subject: reloadable Hi, I've got a web application with reloadable=false. I start tomcat. I call a jsp file ( ex: toto.jsp ). The JSP is compiled in the work directory. I stop tomcat I update the jsp toto.jsp. I start tomcat. What does Tomcat ? Does it recompile the new jsp or does it use the old file in the work directory ? Thanks 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: Tomcat 4.1.29 Configuration ..
Can someone solve my problem , it is a bit urgent Thankx Van -Original Message- From: Vaneet Sharma Sent: Tue 18/11/2003 16:48 To: Tomcat Users List Cc: Subject: Tomcat 4.1.29 Configuration .. please see Attachments The error is same. After making changes, i went on to Tomcat manager interface and reloaded the context. (I think that restarts the server, am i right ?) Tomcat is finding the Registration.html but not the classes . It is giving 404 error. There aer three or four SERVER.XML Files. Which file to change,,, i dont know.. No documentation avaliable Vaneet -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tue 18/11/2003 16:43 To: Tomcat Users List Cc: Subject: Re: Java core w TC 4.1.24 Unexpected Signal : 11 occurred at PC=0x4002245E Function=(null)+0x4002245E Library=/lib/i686/libpthread.so.0 Does this happen frequently? Only under load? RH 7.3 is pretty stable, and I've never had a problem with it along with pretty much any JDK. I've heard a lot of suggestions to bypass 1.4.1 due to some serious bug especially in StringBuffer. Give that a try, but I expect that it won't go away... When you get the sig 11, does it always say the same shared lib or does it look like it's coming from all over? -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RH9 fixes sig 11 with Apache2/Tomcat4/JVM1.4X/RH8??
Hello all, Can anyone please confirm or deny rumors that moving from RH8 to RH9 fixes random Sig 11 crashes when an Apache2/Tomcat4/JVM1.4X app is loaded? We have gone through a huge matrix of heap sizes, stack sizes, connectors, connector settings, hyperthreading off, etc. with jvm gcverbose on and still get sig 11's at random places when we load our app. This is with BOTH the IBM 1.4.1 JDK and the Sun 1.4.2_02 JDK. We have upgraded RH 8 with the latest OS patches. If anyone has found this and can point to a specific lib that would be even better. Thanks, -Dave -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 2:54 AM To: [EMAIL PROTECTED] Subject: RE: Signal 11 causing Tomcat crash I've seen similar things with Java. Are all the java related patches for the OS applied. We recently have a similar issue with Solaris 2.8 and Java and applying the relevant patches cured it. File a bug report with Sun/IBM? Greg -Original Message- From: Phil Steitz [mailto:[EMAIL PROTECTED] Sent: 15 November 2003 21:38 To: Tomcat Users List Subject: Re: Signal 11 causing Tomcat crash Jim Goodspeed wrote: Unfortunately we have also tried Sun's JVM and are experiencing the same Signal 11 errors (I've included two snippets of the Sun error - same error as the IBM Sig 11, just in a different format). Sometimes the dump specifies the library in question, other times it does not. Thanks, Jim An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x1 Function=[Unknown.] Library=(N/A) An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x59DF83B0 Function=(null)+0x59DF83B0 Library=/usr/IBMdb2/V7.1/lib/libdb2.so.1 Are you sure that the driver version and fixpack match the server? DB2 can do funny things when this is not the case. See for example: http://dbforums.com/arch/39/2002/9/515834 Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1.29 Configuration ..
Vaneet, The error is same. After making changes, i went on to Tomcat manager interface and reloaded the context. (I think that restarts the server, am i right ?) Tomcat is finding the Registration.html but not the classes . It is giving 404 error. There aer three or four SERVER.XML Files. Which file to change,,, i dont know.. No documentation avaliable Vaneet Are you using Tomcat as your web server, or do you have Apache (or another web server) in front of it? What is the URL that you are using to access the Hello servlet? -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: reloadable
Howdy, It would be fair to say that nothing is always guaranteed to work correctly. Yoav Shapira Millennium ChemInformatics -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 11:24 AM To: Tomcat Users List Subject: Re: reloadable Hi, Would it be fair to say that especially with older versions of tomcat this cannot always be guaranteed to work correctly? I would recommend that if you are having any doubts that you delete the files from your work directory when you redeploy. Andoni. - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 3:43 PM Subject: RE: reloadable Howdy, Tomcat will recompile the JSP. Reloadable affects only runtime performance. Yoav Shapira Millennium ChemInformatics -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 10:42 AM To: [EMAIL PROTECTED] Subject: reloadable Hi, I've got a web application with reloadable=false. I start tomcat. I call a jsp file ( ex: toto.jsp ). The JSP is compiled in the work directory. I stop tomcat I update the jsp toto.jsp. I start tomcat. What does Tomcat ? Does it recompile the new jsp or does it use the old file in the work directory ? Thanks This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Automatically instantiate Servlet
Check out the load-on-startup tag in we.xml. The documentation can explain it much better than I. servlet servlet-namemyServ/servlet-name servlet-classcom.myaddress.myapp.HelloServlet/servlet-class load-on-startup1/load-on-startup /servlet Andoni. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 3:59 PM Subject: Automatically instantiate Servlet Hi, usually Tomcat Servlets are instanciated after a webapplication is accessing its url first time. Is there a method of automatically do this? Can I tell Tomcat to instanciate a servlet directly after startup using a config file (web.xml, server.xml)? If the answer is yes, can anybody provide an example? Cheers, Ralf -- NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse für Mail, Message, More! +++ - 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: RH9 fixes sig 11 with Apache2/Tomcat4/JVM1.4X/RH8??
Dave, Can anyone please confirm or deny rumors that moving from RH8 to RH9 fixes random Sig 11 crashes when an Apache2/Tomcat4/JVM1.4X app is loaded? If it happens under load (when the CPU gets hot :) and it's always in a different place, then get another server and try again (really). Sometimes it's the memory, sometimes it's the CPU, sometimes its both. We had such problems with 2 out of 6 dual-athlon machines we used for a big site. In development, everything was fine. When we released the hounds, though, everything went to hell. The same two boxes: sig 11 in random places after about 30-45 minutes of load. I don't believe that upgrading to RH9 will solve your problem, but if you're getting desperate, then it can't hurt. I've also noticed that most people that have hyperthreading turned on have horrible problems. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.29 Configuration ..
No, we are not using Tomcat as a webserver It is running as a service liek 195. . . :8080/html/Regisrtation.html In html page, i have put action to ../servlet/Hello And after pressing submit , it is not picking up the servle. Is it anything to do with server.xml Can anyone explain me Why there are three server.xml files in CONF Thankx Vaneet -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tue 18/11/2003 17:23 To: Tomcat Users List Cc: Subject: Re: Tomcat 4.1.29 Configuration .. Vaneet, The error is same. After making changes, i went on to Tomcat manager interface and reloaded the context. (I think that restarts the server, am i right ?) Tomcat is finding the Registration.html but not the classes . It is giving 404 error. There aer three or four SERVER.XML Files. Which file to change,,, i dont know.. No documentation avaliable Vaneet Are you using Tomcat as your web server, or do you have Apache (or another web server) in front of it? What is the URL that you are using to access the Hello servlet? -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Automatically instantiate Servlet
Hi, thank you very much. It works. What do the 1 mean? Is it just a binary value 0 = off 1 = on ?? Cheers, Ralf Ralf, Can I tell Tomcat to instanciate a servlet directly after startup using a config file (web.xml, server.xml)? servlet servlet-nameyourServlet/servlet-name servlet-classyourClass/servlet-class load-on-startup1/load-on-startup /servlet -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse für Mail, Message, More! +++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.29 Configuration ..
Please see attachments -Original Message- From: Vaneet Sharma Sent: Tue 18/11/2003 17:22 To: Tomcat Users List Cc: Subject: RE: Tomcat 4.1.29 Configuration .. No, we are not using Tomcat as a webserver It is running as a service liek 195. . . :8080/html/Regisrtation.html In html page, i have put action to ../servlet/Hello And after pressing submit , it is not picking up the servle. Is it anything to do with server.xml Can anyone explain me Why there are three server.xml files in CONF Thankx Vaneet -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tue 18/11/2003 17:23 To: Tomcat Users List Cc: Subject: Re: Tomcat 4.1.29 Configuration .. Vaneet, The error is same. After making changes, i went on to Tomcat manager interface and reloaded the context. (I think that restarts the server, am i right ?) Tomcat is finding the Registration.html but not the classes . It is giving 404 error. There aer three or four SERVER.XML Files. Which file to change,,, i dont know.. No documentation avaliable Vaneet Are you using Tomcat as your web server, or do you have Apache (or another web server) in front of it? What is the URL that you are using to access the Hello servlet? -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Automatically instantiate Servlet
The one is the order in which you want numbered servlets to start up. Non-numbered servlets don't start until called. Andoni. - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 4:22 PM Subject: Re: Automatically instantiate Servlet Hi, thank you very much. It works. What do the 1 mean? Is it just a binary value 0 = off 1 = on ?? Cheers, Ralf Ralf, Can I tell Tomcat to instanciate a servlet directly after startup using a config file (web.xml, server.xml)? servlet servlet-nameyourServlet/servlet-name servlet-classyourClass/servlet-class load-on-startup1/load-on-startup /servlet -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse für Mail, Message, More! +++ - 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: Automatically instantiate Servlet - solved :)
Thank you very much! Ralf, web.xml is the right place. You just have to put another entry in your desired servlet.../servlet section: servlet [...] load-on-startup1/load-on-startup /servlet The number specified determines the order the servlets are instantiated at startup (if you instantiante more than one). Greetings Andreas Mohrig -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 5:00 PM To: [EMAIL PROTECTED] Subject: Automatically instantiate Servlet Hi, usually Tomcat Servlets are instanciated after a webapplication is accessing its url first time. Is there a method of automatically do this? Can I tell Tomcat to instanciate a servlet directly after startup using a config file (web.xml, server.xml)? If the answer is yes, can anybody provide an example? Cheers, Ralf -- NEU FUR ALLE - GMX MediaCenter - fur Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gru?, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse fur Mail, Message, More! +++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse für Mail, Message, More! +++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WebappClassLoader won't load resource from jar file ?!?
I have a web app containing resource files in several jar files, but I am unable to access the resources at runtime unless they are exploded into the classes directory. When trying to access the resource files using ClassLoader.getResourceAsStream( /meta-inf/com/kvasar/data.xml ) I always get null returned, even though that resource does exist inside a jar file in the web app's WEB-INF/lib directory. If I extract that resource to the classes directory, so I now have WEB-INF/classes/meta-inf/com/kvasar/data.xml, then I get it fine using the exact same path and ClassLoader - it works fine. The Tomcat Class Loader HOW-TO is telling me that it should find it in the jar. I have this problem on Tomcat 4.0.1 4.1.24, Win 2K The ClassLoader instance I am using for the getResourceAsStream() calls, is one that I get from one of my classes that is deployed to my webapp in a war file. Logging a toString() on this ClassLoader is shown below. Is it meaningful that it doesn't list my jar files in it's list of repositories ?? --- WebappClassLoader available: delegate: false repositories: /WEB-INF/classes/ required: -- Parent Classloader: StandardClassLoader available: Extension[javax.mail, implementationVendor=Sun Microsystems, Inc., implementationVendorId=com.sun, implementationVer sion=1.2, specificationVendor=Sun Microsystems, Inc., specificationVersion=1.2] delegate: true repositories: file:C:\Tomcat.4.0-retired\classes\ file:C:\Tomcat.4.0-retired\lib\activation.jar file:C:\Tomcat.4.0-retired\lib\catalina.jar file:C:\Tomcat.4.0-retired\lib\jakarta-oro-2.0.2-dev-2.jar file:C:\Tomcat.4.0-retired\lib\jakarta-regexp-1.2.jar file:C:\Tomcat.4.0-retired\lib\mail.jar file:C:\Tomcat.4.0-retired\lib\mailet.jar file:C:\Tomcat.4.0-retired\lib\xml4j.jar required: -- Parent Classloader: StandardClassLoader available: Extension[javax.mail, implementationVendor=Sun Microsystems, Inc., implementationVendorId=com.sun, implementationVer sion=1.2, specificationVendor=Sun Microsystems, Inc., specificationVersion=1.2] delegate: true repositories: file:C:\Tomcat.4.0-retired\common\classes\ file:C:\Tomcat.4.0-retired\common\lib\activation.jar file:C:\Tomcat.4.0-retired\common\lib\jasper-compiler.jar file:C:\Tomcat.4.0-retired\common\lib\jasper-runtime.jar file:C:\Tomcat.4.0-retired\common\lib\jta.jar file:C:\Tomcat.4.0-retired\common\lib\mail.jar file:C:\Tomcat.4.0-retired\common\lib\naming-common.jar file:C:\Tomcat.4.0-retired\common\lib\naming-factory.jar file:C:\Tomcat.4.0-retired\common\lib\naming-resources.jar file:C:\Tomcat.4.0-retired\common\lib\pbclient.jar file:C:\Tomcat.4.0-retired\common\lib\servlet.jar file:C:\Tomcat.4.0-retired\common\lib\tools.jar file:C:\Tomcat.4.0-retired\common\lib\tyrex-0.9.7.0.jar required: -- Parent Classloader: [EMAIL PROTECTED] Help ! Thanks ! Steph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Would this work? (Load Balance Question)
I have one apache web server conversing with two separate tomcat servers with access a fourth MySql server. Could I set it up like this? pre The Internet | | (real IP addresses) -- External Network | --- ------ --- | | | || | | | |W| |T||T| |M| |W| |C||C| |Y| |W| | || | |S| | | |1||2| |Q| | | | || | |L| | | | || | | | --- ------ --- | | | | --- Internal Network --- (192.168.0. addresses) /pre All the machines have 2 nics on board. I am worried that the other external network traffic is slowing my response time, So I'd like to separate the backend processing from the external network. -Dave David G. O'Brien Web Services Coordinator / Systems Administrator NACCRRA The Nation's Network of Child Care Resource Referral 1319 F Street NW, Suite 500 Washington, DC 20004 (202) 393-5501 ext. 113 (202) 393-1109 fax
RE: Automatically instantiate Servlet
No, it's a numeric value giving the start priority to define the order if you have more than one servlet to start. (The servlets are started in ascending order of this value) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 5:23 PM To: Tomcat Users List Subject: Re: Automatically instantiate Servlet What do the 1 mean? Is it just a binary value 0 = off 1 = on - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: WebappClassLoader won't load resource from jar file ?!?
Put the JARs in the WEB-INF/lib dir! -Original Message- From: Steph Richardson [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 11:34 AM To: Tomcat Users List Subject: WebappClassLoader won't load resource from jar file ?!? I have a web app containing resource files in several jar files, but I am unable to access the resources at runtime unless they are exploded into the classes directory. When trying to access the resource files using ClassLoader.getResourceAsStream( /meta-inf/com/kvasar/data.xml ) I always get null returned, even though that resource does exist inside a jar file in the web app's WEB-INF/lib directory. If I extract that resource to the classes directory, so I now have WEB-INF/classes/meta-inf/com/kvasar/data.xml, then I get it fine using the exact same path and ClassLoader - it works fine. The Tomcat Class Loader HOW-TO is telling me that it should find it in the jar. I have this problem on Tomcat 4.0.1 4.1.24, Win 2K The ClassLoader instance I am using for the getResourceAsStream() calls, is one that I get from one of my classes that is deployed to my webapp in a war file. Logging a toString() on this ClassLoader is shown below. Is it meaningful that it doesn't list my jar files in it's list of repositories ?? --- WebappClassLoader available: delegate: false repositories: /WEB-INF/classes/ required: -- Parent Classloader: StandardClassLoader available: Extension[javax.mail, implementationVendor=Sun Microsystems, Inc., implementationVendorId=com.sun, implementationVer sion=1.2, specificationVendor=Sun Microsystems, Inc., specificationVersion=1.2] delegate: true repositories: file:C:\Tomcat.4.0-retired\classes\ file:C:\Tomcat.4.0-retired\lib\activation.jar file:C:\Tomcat.4.0-retired\lib\catalina.jar file:C:\Tomcat.4.0-retired\lib\jakarta-oro-2.0.2-dev-2.jar file:C:\Tomcat.4.0-retired\lib\jakarta-regexp-1.2.jar file:C:\Tomcat.4.0-retired\lib\mail.jar file:C:\Tomcat.4.0-retired\lib\mailet.jar file:C:\Tomcat.4.0-retired\lib\xml4j.jar required: -- Parent Classloader: StandardClassLoader available: Extension[javax.mail, implementationVendor=Sun Microsystems, Inc., implementationVendorId=com.sun, implementationVer sion=1.2, specificationVendor=Sun Microsystems, Inc., specificationVersion=1.2] delegate: true repositories: file:C:\Tomcat.4.0-retired\common\classes\ file:C:\Tomcat.4.0-retired\common\lib\activation.jar file:C:\Tomcat.4.0-retired\common\lib\jasper-compiler.jar file:C:\Tomcat.4.0-retired\common\lib\jasper-runtime.jar file:C:\Tomcat.4.0-retired\common\lib\jta.jar file:C:\Tomcat.4.0-retired\common\lib\mail.jar file:C:\Tomcat.4.0-retired\common\lib\naming-common.jar file:C:\Tomcat.4.0-retired\common\lib\naming-factory.jar file:C:\Tomcat.4.0-retired\common\lib\naming-resources.jar file:C:\Tomcat.4.0-retired\common\lib\pbclient.jar file:C:\Tomcat.4.0-retired\common\lib\servlet.jar file:C:\Tomcat.4.0-retired\common\lib\tools.jar file:C:\Tomcat.4.0-retired\common\lib\tyrex-0.9.7.0.jar required: -- Parent Classloader: [EMAIL PROTECTED] Help ! Thanks ! Steph - 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: Automatically instantiate Servlet
Howdy, Although be careful of depending on the order. It's undefined if there are multiple servlets with the same load-on-startup number, and negative values are permissible as well. Yoav Shapira Millennium ChemInformatics -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 11:36 AM To: Tomcat Users List Subject: RE: Automatically instantiate Servlet No, it's a numeric value giving the start priority to define the order if you have more than one servlet to start. (The servlets are started in ascending order of this value) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 5:23 PM To: Tomcat Users List Subject: Re: Automatically instantiate Servlet What do the 1 mean? Is it just a binary value 0 = off 1 = on - 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: Would this work? (Load Balance Question)
Dave, although I have never set up such a configuration, I have thought about it quite a lot. This is exactly the thing I would try and I'm pretty much convinced that it should work. It is even quite attractive from a security point of view, because neither your tmocat servers nor your database-server get any chance to expose some services/ports to the whole wide world (provided you disable routing on your webserver). Of course you would need a switch on the internal network, but that could even be a gigabit-switch to remove at least one bottleneck. Greetings Andreas Mohrig -Original Message- From: David O'Brien [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 5:34 PM To: [EMAIL PROTECTED] Subject: Would this work? (Load Balance Question) I have one apache web server conversing with two separate tomcat servers with access a fourth MySql server. Could I set it up like this? pre The Internet | | (real IP addresses) -- External Network | --- ------ --- | | | || | | | |W| |T||T| |M| |W| |C||C| |Y| |W| | || | |S| | | |1||2| |Q| | | | || | |L| | | | || | | | --- ------ --- | | | | --- Internal Network --- (192.168.0. addresses) /pre All the machines have 2 nics on board. I am worried that the other external network traffic is slowing my response time, So I'd like to separate the backend processing from the external network. -Dave David G. O'Brien Web Services Coordinator / Systems Administrator NACCRRA The Nation's Network of Child Care Resource Referral 1319 F Street NW, Suite 500 Washington, DC 20004 (202) 393-5501 ext. 113 (202) 393-1109 fax
RE: WebappClassLoader won't load resource from jar file ?!?
Howdy, He's already doing that. I think the problem is in the argument to ClassLoader#getResourceAsStream, specifically the case of meta-inf should be all uppercase. But to be safe, put your resource in the top level of the jar and try getResourceAsStream(/data.xml). Yoav Shapira Millennium ChemInformatics -Original Message- From: Jay Garala [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 11:40 AM To: 'Tomcat Users List' Subject: RE: WebappClassLoader won't load resource from jar file ?!? Put the JARs in the WEB-INF/lib dir! -Original Message- From: Steph Richardson [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 11:34 AM To: Tomcat Users List Subject: WebappClassLoader won't load resource from jar file ?!? I have a web app containing resource files in several jar files, but I am unable to access the resources at runtime unless they are exploded into the classes directory. When trying to access the resource files using ClassLoader.getResourceAsStream( /meta-inf/com/kvasar/data.xml ) I always get null returned, even though that resource does exist inside a jar file in the web app's WEB-INF/lib directory. If I extract that resource to the classes directory, so I now have WEB-INF/classes/meta-inf/com/kvasar/data.xml, then I get it fine using the exact same path and ClassLoader - it works fine. The Tomcat Class Loader HOW-TO is telling me that it should find it in the jar. I have this problem on Tomcat 4.0.1 4.1.24, Win 2K The ClassLoader instance I am using for the getResourceAsStream() calls, is one that I get from one of my classes that is deployed to my webapp in a war file. Logging a toString() on this ClassLoader is shown below. Is it meaningful that it doesn't list my jar files in it's list of repositories ?? --- - --- WebappClassLoader available: delegate: false repositories: /WEB-INF/classes/ required: -- Parent Classloader: StandardClassLoader available: Extension[javax.mail, implementationVendor=Sun Microsystems, Inc., implementationVendorId=com.sun, implementationVer sion=1.2, specificationVendor=Sun Microsystems, Inc., specificationVersion=1.2] delegate: true repositories: file:C:\Tomcat.4.0-retired\classes\ file:C:\Tomcat.4.0-retired\lib\activation.jar file:C:\Tomcat.4.0-retired\lib\catalina.jar file:C:\Tomcat.4.0-retired\lib\jakarta-oro-2.0.2-dev-2.jar file:C:\Tomcat.4.0-retired\lib\jakarta-regexp-1.2.jar file:C:\Tomcat.4.0-retired\lib\mail.jar file:C:\Tomcat.4.0-retired\lib\mailet.jar file:C:\Tomcat.4.0-retired\lib\xml4j.jar required: -- Parent Classloader: StandardClassLoader available: Extension[javax.mail, implementationVendor=Sun Microsystems, Inc., implementationVendorId=com.sun, implementationVer sion=1.2, specificationVendor=Sun Microsystems, Inc., specificationVersion=1.2] delegate: true repositories: file:C:\Tomcat.4.0-retired\common\classes\ file:C:\Tomcat.4.0-retired\common\lib\activation.jar file:C:\Tomcat.4.0-retired\common\lib\jasper-compiler.jar file:C:\Tomcat.4.0-retired\common\lib\jasper-runtime.jar file:C:\Tomcat.4.0-retired\common\lib\jta.jar file:C:\Tomcat.4.0-retired\common\lib\mail.jar file:C:\Tomcat.4.0-retired\common\lib\naming-common.jar file:C:\Tomcat.4.0-retired\common\lib\naming-factory.jar file:C:\Tomcat.4.0-retired\common\lib\naming-resources.jar file:C:\Tomcat.4.0-retired\common\lib\pbclient.jar file:C:\Tomcat.4.0-retired\common\lib\servlet.jar file:C:\Tomcat.4.0-retired\common\lib\tools.jar file:C:\Tomcat.4.0-retired\common\lib\tyrex-0.9.7.0.jar required: -- Parent Classloader: [EMAIL PROTECTED] Help ! Thanks ! Steph - 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]
JSTL Configuration
Do u know how to configure JSTL in Tomcat ? Is it just copying JSTL package to CATALINA_HOME/shared/lib ? And also, is there a single JSTL downloadable package at javasoft or I have to download the full J2EE SDK ? Thyago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Automatically instantiate Servlet
Just one addition from the spec (2.4 pfd3): 'If the value is a negative integer, or the element is not present, the container is free to load the servlet whenever it chooses.' So what I said (wrote) is just true from zero on. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 5:40 PM To: Tomcat Users List Subject: RE: Automatically instantiate Servlet Although be careful of depending on the order. It's undefined if there are multiple servlets with the same load-on-startup number, and negative values are permissible as well. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Forcing SSL to handle requests
Hi, I'm running a standalone Tomcat webserver 4.0.6 and am trying to force a resource on my web server to only serve a particular URL through SSL, so I've inserted the following lines in the web.xml file: security-constraint web-resource-collection web-resource-nameProtected Context/web-resource-name url-pattern/index/url-pattern /web-resource-collection !-- auth-constraint goes here if you requre authentication -- user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint When restarting my webserver, I'm getting the following error message several times: org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter* ,filter- mapping*,listener*,servlet*,servlet-mapping*,session-config? ,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*, resource-ref*,security-constraint*,login-config?,security-role*,env-entr y*,ejb-ref*,ejb- local-ref*) . PARSE error at line 858 column 11 Could someone help me out on what I've done wrong??? Cheers Deric _ Un mot doux à envoyer? Une sortie ciné à organiser? Faites le en temps réel avec MSN Messenger! C'est gratuit! http://ifrance.com/_reloc/m _ Envie de discuter en live avec vos amis ? Télécharger MSN Messenger http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat4.1 and i18n
Hi Friends I am trying to change my webserver from tomcat3.3 to tomcat4.1, but i have encountered a problem with jakarta_i18n, the pages are not reflecting the changes when i change the language. The whole code worked on tomcat3.3, Does anyone had the same problem? Any workaround or solutions? Expecting a reply. Thaking in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL rewriting question ..
Wouldnt it be nice a feature like this that one can turn on or off globally in a container like tomcat ? The existing way to granularly do it should remain, but a global way to do it would be nice .. On Tuesday, November 18, 2003, at 09:13 AM, Christopher Schultz wrote: Mufaddal, Are there some configuration settings in Tomcat 4.1.x that can be set in say the server.xml or web.xml that can be used ? Nope. Tomcat won't look through your responses for things that look like URLs and append all the things you need (like sessison id, etc.). However, if you are using a framework like Struts, you can use the tag libraries provided to add both the context path as well as any necessary session information to the URLs. Unfortunarely, that still requires you to go back through all your pages and change all the links :( -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSTL Configuration
Howdy, Download a JSTL implementation by itself, e.g. from jakarta-taglibs. Put the jar in the WEB-INF/lib directory of your webapp, not in shared/lib or common/lib or any other place. Follow the standards JSTL instructions to add the JSTL library declarations to your WEB-INF/web.xml file. That's it. Yoav Shapira Millennium ChemInformatics -Original Message- From: Thyago Lisboa Mota [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 11:49 AM To: Tomcat Users List Subject: JSTL Configuration Do u know how to configure JSTL in Tomcat ? Is it just copying JSTL package to CATALINA_HOME/shared/lib ? And also, is there a single JSTL downloadable package at javasoft or I have to download the full J2EE SDK ? Thyago - 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: Tomcat 4.1.29 Configuration ..
Vaneet, Please see attachments Your attachments do not come through. Please paste all servlet and servlet-mapping elements from your web.xml into a post to the list. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: https -- http session problem
Hello Chris Thank you so much for the feed-back. It is a very useful insight, and much appreciated! Kind regards Harry Mantheakis London, UK Harry, Option 1 is unacceptable -- the overhead of having all of these connections encrypted is not a viable option. What are the 'overheads' in using SSL? How much harder does the server have to work, and - in practice - what sort of performance impact does this have? I don't have any numbers, but... SSL is encrypted, so the decryption has to take place on the server to make sense of the data. There's also the key negotiation that takes place at the beginnign of the SSL session. This load is pretty hard on the machine. Lots of apps have installed SSL acceleration boards into their servers to speed things up -- the h/w is faster than the software. Other use huge servers as proxies that decrypt everything so that the app servers don't have to do the work. (The data is not encrypted near the servers, but this is generally behind a firewall, anyway). I've seen performance numbers with SSL on and off, and the difference is suprising. I think we were using some type of Sun boxes (can't remember what type) and I think all of them had SSL accelerators in them. They were dedicateed web servers and did the SSL on behalf of the app servers. For even simple pages (actually, the time difference gets worse with simple, static content), the response times were doubled or worse. There's another effect with HTTPS that's unfortunate, which is that most browsers will not cache anything that comes down over SSL (including images!), which means that everything on your page will get re-loaded every time you show it (even images). That sucks because you now have estra requests to the server, and they all take longer. :( -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Many process on Red Hat
Hello all I'm running Tomcat 4.1 with IBM J2RE 1.3.0 on Red Hat Linux, but some times Tomcat turns crazy and open many process (about 80 - 90) and hangs. When this happens, command tomcat4 stop does not work. It's necessary to kill process by process. At this time, I'm running seven different applications in my tomcat instalation. If I turn to Sun J2SDK 1.4.X? Anyone has any suggestion about this problem? Thanks for any help. Walter
Re: Forcing SSL to handle requests
On 11/18/2003 06:00 PM deric stroud wrote: Hi, I'm running a standalone Tomcat webserver 4.0.6 and am trying to force a resource on my web server to only serve a particular URL through SSL, so I've inserted the following lines in the web.xml file: Deric you have to maintain that order as well. You must have put the security constraint before or after some element which SAX is complaining about. Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Many process on Red Hat
Howdy, I guess you're looking at processes using the top command? If so, these are likely threads, not actual processes, and this may be normal. What triggers the spawning of all this threads? What version of RedHat are you using? There have been a lot of RedHat NPTL-related issues reported recently, you may wish to search this list's archives for more information. Yoav Shapira Millennium ChemInformatics -Original Message- From: Walter do Valle [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 1:21 PM To: [EMAIL PROTECTED] Subject: Many process on Red Hat Hello all I'm running Tomcat 4.1 with IBM J2RE 1.3.0 on Red Hat Linux, but some times Tomcat turns crazy and open many process (about 80 - 90) and hangs. When this happens, command tomcat4 stop does not work. It's necessary to kill process by process. At this time, I'm running seven different applications in my tomcat instalation. If I turn to Sun J2SDK 1.4.X? Anyone has any suggestion about this problem? Thanks for any help. Walter 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: mod_jk in multiple site environnement
You define JkWorkersFile /projects/site1/conf/workers.properties once and only once. Then your JkMounts can be defined per vhost -Tim Mike Baroukh wrote: Hi. I am managing a server wich host many site. Each have it's own jvm. To make things simple, each site have a piece of httpd.conf wich is included in the main httpd.conf. To be able to add/remove easily sites, it would be useful to have the possibility to specify multiple JkWorkersFile. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Would this work? (Load Balance Question)
Yes. And that is a prefered way to set things up. [Don't expose your app servers to the Internet if you don't have to.] -Tim David O'Brien wrote: I have one apache web server conversing with two separate tomcat servers with access a fourth MySql server. Could I set it up like this? pre The Internet | | (real IP addresses) -- External Network | --- ------ --- | | | || | | | |W| |T||T| |M| |W| |C||C| |Y| |W| | || | |S| | | |1||2| |Q| | | | || | |L| | | | || | | | --- ------ --- | | | | --- Internal Network --- (192.168.0. addresses) /pre All the machines have 2 nics on board. I am worried that the other external network traffic is slowing my response time, So I'd like to separate the backend processing from the external network. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forcing SSL to handle requests
Deric, PARSE error at line 858 column 11 What's on line 858 of your web.xml file? org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter* ,filter- mapping*,listener*,servlet*,servlet-mapping*,session-config? ,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*, resource-ref*,security-constraint*,login-config?,security-role*,env-entr y*,ejb-ref*,ejb- local-ref*) You've probably got an element out of order. Make sure that your security-constraint is in the right place. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL rewriting question ..
Mufaddal, Wouldnt it be nice a feature like this that one can turn on or off globally in a container like tomcat ? The existing way to granularly do it should remain, but a global way to do it would be nice .. Feel free to submit a patch :) -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Connection failed from other computers
Hi, I installed tomcat 4.1.29 on window 2000 professional. I selected it as service. It starts and stops fine. But I can not access it from http://localhost:8088/ http://localhost:8088/ (8080 is used by another application). However it will work fine when I start tomcat from DOS or click start,... It always failed when I try http://installedTomcat:8088/ http://installedTomcat:8088/ from other computers. All my configuration files are default. Where and how can I change the configuration file to make tomcat accessible from other computers? Thank you very much. Yongming - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hosting SSL clients within Tomcat
I am trying to open a connection to an SSL server hosting WebServices. I am using the Glue libraries to abstract away all the nasty Web Service stuff, and my WebService client is implemented as a Servlet. I have imported the SSL certificate into my .keystore If I run my client code as a stand-alone app. it works OK If I use the keystore to configure SSL connections for Tomcat it is fine However, if I run my client code from within a servlet, Tomcat complains that either the trust store has been tampered with or the password is invalid. Does anyone have any idea how I can configure Tomcat to find the truststore and load the appropriate certificates for use by my SSL client? Thanks, J - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forcing SSL to handle requests
If you use IE, you can use a XML validator on microsoft's site: http://msdn.microsoft.com/downloads/samples/internet/xml/xml_validator/validate_js.htm -Tim Christopher Schultz wrote: Deric, PARSE error at line 858 column 11 What's on line 858 of your web.xml file? org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter* ,filter- mapping*,listener*,servlet*,servlet-mapping*,session-config? ,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*, resource-ref*,security-constraint*,login-config?,security-role*,env-entr y*,ejb-ref*,ejb- local-ref*) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Connection failed from other computers
Hi, are you sure you are running Tomcat on port 8088? For that you need to modify server.xml. Standard is 8080 and if this port is taken already, the batch file will fail. If you want to access Tomcat from another computer you will need to use either its name or its IP address like: http://10.10.2.100:8088/ Ralf Hi, I installed tomcat 4.1.29 on window 2000 professional. I selected it as service. It starts and stops fine. But I can not access it from http://localhost:8088/ http://localhost:8088/ (8080 is used by another application). However it will work fine when I start tomcat from DOS or click start,... It always failed when I try http://installedTomcat:8088/ http://installedTomcat:8088/ from other computers. All my configuration files are default. Where and how can I change the configuration file to make tomcat accessible from other computers? Thank you very much. Yongming - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse für Mail, Message, More! +++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Bit off topic : What happened to RedHat?
Rumor was they were not going to allow free downloading of binaries. They have launched http://fedora.redhat.com as an open source project. It has binaries under a different naming/numbering scheme. I expect they will shut down ftp.redhat.org to the public. So, they may be stopping/re-organizing public forums as well. Don't know anything more. Chuck -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 9:54 PM To: [EMAIL PROTECTED] Subject: Bit off topic : What happened to RedHat? Hi, does anyone know what happened to RedHat, its mailing list and forum? Haven't used it for a while and it seems they are no more. Also, I run JVM and TC4 on RH7.1 kernel 2.4.2 and thinking about RH9, but someone said that's the last version and there won't be a *stability* version coming out after that. Also, rumour has it RH8 is full of bugs ? Can someone share their experience please ? can anyone shed some light please. TIA:-) - 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]
Tomcat 5, session replication problem
Deear I'm having problems with the session replication with Tomcat 5. I'm trying to cluster two Tomcat's across two machines. The first Tomcat starts fine, but whenever I start the second Tomcat on a different machine I get the errors shown below. I followed the directions exactly-have the distributable/ set. Can this be something to do with the multicast address defined in the cluster? I'm working in a pretty secure ip enviroment, mcastAddr=228.0.0.4 WARNING: Unable to send replicated message, is server down? java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:452) at java.net.Socket.connect(Socket.java:402) at java.net.Socket.init(Socket.java:309) at java.net.Socket.init(Socket.java:153) at org.apache.catalina.cluster.tcp.SocketSender.connect(SocketSender.java:104) at org.apache.catalina.cluster.tcp.ReplicationTransmitter.sendMessageData(ReplicationTransmitter.java:133) at org.apache.catalina.cluster.tcp.ReplicationTransmitter.sendMessage(ReplicationTransmitter.java:146) at org.apache.catalina.cluster.tcp.SimpleTcpCluster.send(SimpleTcpCluster.java:525) at org.apache.catalina.cluster.session.SimpleTcpReplicationManager.messageReceived(SimpleTcpReplicationManager.java:594) at org.apache.catalina.cluster.session.SimpleTcpReplicationManager.messageDataReceived(SimpleTcpReplicationManager.java:651) at org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(SimpleTcpCluster.java:683) at org.apache.catalina.cluster.io.ObjectReader.append(ObjectReader.java:110) at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:167) at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:113) Nov 18, 2003 1:12:12 PM org.apache.catalina.cluster.session.SimpleTcpReplicationManager log INFO: Received SessionMessage of type=SESSION-GET-ALL Nov 18, 2003 1:12:12 PM org.apache.catalina.cluster.session.SimpleTcpReplication Manager log INFO: Received SessionMessage sender=org.apache.catalina.cluster.mcast.McastMember[tcp://127.0.0.1:4001,127.0.0.1,4001] Nov 18, 2003 1:12:13 PM org.apache.catalina.cluster.tcp.ReplicationTransmitter sendMessageData
RE: Connection failed from other computers
Ralf, I changed the port number from 8080 to 8088. everything works fine locally as long as I start tomcat as an application, not as a NT service. I did try connect it from another computer use http://ipaddress:8088/ It failed. Connection is refused. Yongming -Original Message- From: Ralf B [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 12:06 PM To: Tomcat Users List Subject: Re: Connection failed from other computers Hi, are you sure you are running Tomcat on port 8088? For that you need to modify server.xml. Standard is 8080 and if this port is taken already, the batch file will fail. If you want to access Tomcat from another computer you will need to use either its name or its IP address like: http://10.10.2.100:8088/ Ralf Hi, I installed tomcat 4.1.29 on window 2000 professional. I selected it as service. It starts and stops fine. But I can not access it from http://localhost:8088/ http://localhost:8088/ (8080 is used by another application). However it will work fine when I start tomcat from DOS or click start,... It always failed when I try http://installedTomcat:8088/ http://installedTomcat:8088/ from other computers. All my configuration files are default. Where and how can I change the configuration file to make tomcat accessible from other computers? Thank you very much. Yongming - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse für Mail, Message, More! +++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1.29 Configuration ..
Hello In html page, i have put action to ../servlet/Hello I recall that you have registered your servlet in the deployment descriptor and mapped it to '/Hello' so you should be able to invoke that servlet without specifying 'servlet' in the URL path. You must also specify the context name 'hSolutions'. Hence, instead of: ../servlet/Hello Try: /hSolutions/Hello The other thing to do is double-check the servlet has implemented the right service method - doGet or doPost - depending on what action (post or get) is specified in the Regisrtation.html file that is calling the servlet. There aer three or four SERVER.XML Files... Can you not count them exactly? In any case, there should only be one file named 'server.xml' in the '$CATALINA_HOME/conf' directory. If you have more, your computer might catch fire and blow up. I'm joking :-) Seriously, though, if you have that many 'server.xml' files your file system must be corrupted somehow. I am not sure what to suggest, to be honest: I have never heard of more than two files having the same name in the same directory. Regards Harry Mantheakis London, UK No, we are not using Tomcat as a webserver It is running as a service liek 195. . . :8080/html/Regisrtation.html In html page, i have put action to ../servlet/Hello And after pressing submit , it is not picking up the servle. Is it anything to do with server.xml Can anyone explain me Why there are three server.xml files in CONF Thankx Vaneet -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tue 18/11/2003 17:23 To: Tomcat Users List Cc: Subject: Re: Tomcat 4.1.29 Configuration .. Vaneet, The error is same. After making changes, i went on to Tomcat manager interface and reloaded the context. (I think that restarts the server, am i right ?) Tomcat is finding the Registration.html but not the classes . It is giving 404 error. There aer three or four SERVER.XML Files. Which file to change,,, i dont know.. No documentation avaliable Vaneet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat terminated unexpectedly
Hi, I?m have: - Tomcat 4.1.27 - JDK 1.4 - Apache 1.3.29 with mod_ssl - Windows 2k Server BD: Sql Server Enterprise. For some reason, some times to the day, the Apache Tomcat 4.1 service crashes under Win2k without message in the log. I have one schedule configured to restart after 1 minutes, but I'd still like to know why this happens. Seems to only happen on production server, but not our test server. Anybody knows because of this to occur? E which the solution? Already I made some tests and research and still I did not find a solution. PS: Message in event viewer: The Apache Tomcat 4.1 service terminated unexpectedly.. Tks, Mauro. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Many process on Red Hat
Howdy, I guess you're looking at processes using the top command? If so, these are likely threads, not actual processes, and this may be normal. Ok. I'm using ps. About threads ok. What triggers the spawning of all this threads? Sorry, what? What version of RedHat are you using? 7.3 There have been a lot of RedHat NPTL-related issues reported recently, you may wish to search this list's archives for more information. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running a Service
I need to run a process at a specific time every day, say 3:00am. How do you configure Tomcat to have a service running in the background.
RE: Running a Service
Howdy, You mean like a cron job? ;) Or the Windows Scheduler on windows, or a 3rd party tool like 12Ghosts Timer? Or do you mean already have a tomcat running around the clock but you'd like something to happen at 3am? A tool like Quartz (quarts.sf.net) would help... Yoav Shapira Millennium ChemInformatics -Original Message- From: Karl Coleman [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 3:02 PM To: [EMAIL PROTECTED] Subject: Running a Service I need to run a process at a specific time every day, say 3:00am. How do you configure Tomcat to have a service running in the background. 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: RH9 fixes sig 11 with Apache2/Tomcat4/JVM1.4X/RH8??
What's your hardware? Are you running multiple processors? Do you compile your own Apache2 and mod_jk/mod_jk2? Have you tried compiling your own kernel from the more recent sources. Kernel 2.4 had some shaky releases and RedHat8 fell in the middle of it. Kernel 2.4.22 is the latest. Have you tried setting the environment variable: LD_KERNEL_ASSUME=2.2.5? Oscar On Tue, 18 Nov 2003, David Muller wrote: Hello all, Can anyone please confirm or deny rumors that moving from RH8 to RH9 fixes random Sig 11 crashes when an Apache2/Tomcat4/JVM1.4X app is loaded? We have gone through a huge matrix of heap sizes, stack sizes, connectors, connector settings, hyperthreading off, etc. with jvm gcverbose on and still get sig 11's at random places when we load our app. This is with BOTH the IBM 1.4.1 JDK and the Sun 1.4.2_02 JDK. We have upgraded RH 8 with the latest OS patches. If anyone has found this and can point to a specific lib that would be even better. Thanks, -Dave -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 2:54 AM To: [EMAIL PROTECTED] Subject: RE: Signal 11 causing Tomcat crash I've seen similar things with Java. Are all the java related patches for the OS applied. We recently have a similar issue with Solaris 2.8 and Java and applying the relevant patches cured it. File a bug report with Sun/IBM? Greg -Original Message- From: Phil Steitz [mailto:[EMAIL PROTECTED] Sent: 15 November 2003 21:38 To: Tomcat Users List Subject: Re: Signal 11 causing Tomcat crash Jim Goodspeed wrote: Unfortunately we have also tried Sun's JVM and are experiencing the same Signal 11 errors (I've included two snippets of the Sun error - same error as the IBM Sig 11, just in a different format). Sometimes the dump specifies the library in question, other times it does not. Thanks, Jim An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x1 Function=[Unknown.] Library=(N/A) An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x59DF83B0 Function=(null)+0x59DF83B0 Library=/usr/IBMdb2/V7.1/lib/libdb2.so.1 Are you sure that the driver version and fixpack match the server? DB2 can do funny things when this is not the case. See for example: http://dbforums.com/arch/39/2002/9/515834 Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator
Hi, Any help will be greatly appreciated. My current server has the following environment: Tomcat Version = Apache Tomcat/5.0.12 JVM Version = 1.4.2-b28 JVM Vendor = Sun Microsystems Inc. Redhat Linux 9 OS Name = Linux OS Version = 2.4.20-8 OS Architecture = i386 Tag Library = 1.1 Profile setup (selected): CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/*.jar:$JAVA_HOME/jre/lib/*.jar:$AXISCLASSPATH AXISCLASSPATH=$AXIS_LIB/axis.jar:$AXIS_LIB/commons-discovery.jar:$AXIS_LIB/commons-logging.jar:$AXIS_LIB/jaxrpc.jar:$AXIS_LIB/saaj.jar:$AXIS_LIB/log4j-1.2.8.jar:$CATALINA_HOME/common/endorsed/xercesImpl.jar:$CATALINA_HOME/common/endorsed/xml-apis.jar:$CATALINA_HOME/common/endorsed/xmlParserAPIs.jar:$AXIS_LIB/wsdl4j.jar:$CATALINA_HOME/common/lib/activation.jar servlet-api.jar can be found in CATALINA_HOME/common/lib I'm trying to run JSP applications that uses JSTL but I get this error all the time. I get the same error even while running the simplest JSTL application. Here is the Server Error that I get: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: javax/servlet/jsp/tagext/TagLibraryValidator org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) root cause java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator java.lang.ClassLoader.defineClass0(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:537) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) java.net.URLClassLoader.defineClass(URLClassLoader.java:251) java.net.URLClassLoader.access$100(URLClassLoader.java:55) java.net.URLClassLoader$1.run(URLClassLoader.java:194) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:187) java.lang.ClassLoader.loadClass(ClassLoader.java:289) java.lang.ClassLoader.loadClass(ClassLoader.java:235) java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) java.lang.ClassLoader.defineClass0(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:537) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) java.net.URLClassLoader.defineClass(URLClassLoader.java:251) java.net.URLClassLoader.access$100(URLClassLoader.java:55) java.net.URLClassLoader$1.run(URLClassLoader.java:194) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:187) java.lang.ClassLoader.loadClass(ClassLoader.java:289) java.lang.ClassLoader.loadClass(ClassLoader.java:282) sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) java.lang.ClassLoader.loadClass(ClassLoader.java:235) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1278) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1212) org.apache.jasper.compiler.TagLibraryInfoImpl.createValidator(TagLibraryInfoImpl.java:654) org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:293) org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:204) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:460) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:525) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1625) org.apache.jasper.compiler.Parser.parse(Parser.java:173) org.apache.jasper.compiler.ParserController.parse(ParserController.java:247) org.apache.jasper.compiler.ParserController.parse(ParserController.java:149) org.apache.jasper.compiler.ParserController.parse(ParserController.java:135) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:243) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:437) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:555) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) note The full stack trace of the root cause is available in the Tomcat logs. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
RE: Connection failed from other computers
Is there a firewall between the other computer and installedTomcat that might not allow traffic on 8088? Does Tomcat not start at all as an NT service, or does it have problems with .jsp files? Wendell -Original Message- From: LOU, YONGMING (SBCSI) [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 11:14 AM To: 'Tomcat Users List' Subject: RE: Connection failed from other computers Ralf, I changed the port number from 8080 to 8088. everything works fine locally as long as I start tomcat as an application, not as a NT service. I did try connect it from another computer use http://ipaddress:8088/ It failed. Connection is refused. Yongming -Original Message- From: Ralf B [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 12:06 PM To: Tomcat Users List Subject: Re: Connection failed from other computers Hi, are you sure you are running Tomcat on port 8088? For that you need to modify server.xml. Standard is 8080 and if this port is taken already, the batch file will fail. If you want to access Tomcat from another computer you will need to use either its name or its IP address like: http://10.10.2.100:8088/ Ralf Hi, I installed tomcat 4.1.29 on window 2000 professional. I selected it as service. It starts and stops fine. But I can not access it from http://localhost:8088/ http://localhost:8088/ (8080 is used by another application). However it will work fine when I start tomcat from DOS or click start,... It always failed when I try http://installedTomcat:8088/ http://installedTomcat:8088/ from other computers. All my configuration files are default. Where and how can I change the configuration file to make tomcat accessible from other computers? Thank you very much. Yongming - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse für Mail, Message, More! +++ - 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: Running a Service
I apologize for being so broad. Let me be more specific. It might help some. We are running an intranet application running on apache and tomcat. It's all Java, using JSP and Servlets, and Struts. One function of the application is scanning in faxes. After being scanned, these documents are stored as TIFF files on the server temporarily. Right now, importing these images into the database is a manual process. There is a JSP page that has a Start Import button that invokes a servlet that imports these images into the database. My task is to make this an automated process so that any images that have been scanned in will get scanned in at night, say 3am. In other words, this code that is in this servlet that imports images needs to be called automatically every night at 3am. I hope that helps. Thanks. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 3:07 PM To: Tomcat Users List Subject: RE: Running a Service Howdy, You mean like a cron job? ;) Or the Windows Scheduler on windows, or a 3rd party tool like 12Ghosts Timer? Or do you mean already have a tomcat running around the clock but you'd like something to happen at 3am? A tool like Quartz (quarts.sf.net) would help... Yoav Shapira Millennium ChemInformatics -Original Message- From: Karl Coleman [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 3:02 PM To: [EMAIL PROTECTED] Subject: Running a Service I need to run a process at a specific time every day, say 3:00am. How do you configure Tomcat to have a service running in the background. 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: Running a Service
I checked out quartz and it looks like exactly what I need. Thanks. If my detailed description gives anybody aother ideas, please let me know. Thanks again. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 3:07 PM To: Tomcat Users List Subject: RE: Running a Service Howdy, You mean like a cron job? ;) Or the Windows Scheduler on windows, or a 3rd party tool like 12Ghosts Timer? Or do you mean already have a tomcat running around the clock but you'd like something to happen at 3am? A tool like Quartz (quarts.sf.net) would help... Yoav Shapira Millennium ChemInformatics -Original Message- From: Karl Coleman [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 3:02 PM To: [EMAIL PROTECTED] Subject: Running a Service I need to run a process at a specific time every day, say 3:00am. How do you configure Tomcat to have a service running in the background. 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]
setUserPrincipal
I'm going around google circles... Within a servlet how do you go about creating a java.security.Principal given a username and password? i.e. how-to login within a servlet given a username and password? Thanks, gary... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Connection failed from other computers
Wendell, There is no firewall between the two computers. Both are on the same subnet and inside the firewall. The installedTomcat is a laptop. I tested in my home as well using wireless connection. Ping works fine in both cases. Tomcat starts and stop fine as an NT service. It just not let you open any page. I guess it is username and password problem. I have try to use my login username and password to reset service login(by click property of the service), it does not recognized my id and password. I not sure which userid or password it needs. Thanks. Yongming -Original Message- From: Wendell Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 2:16 PM To: 'Tomcat Users List' Subject: RE: Connection failed from other computers Is there a firewall between the other computer and installedTomcat that might not allow traffic on 8088? Does Tomcat not start at all as an NT service, or does it have problems with .jsp files? Wendell -Original Message- From: LOU, YONGMING (SBCSI) [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 11:14 AM To: 'Tomcat Users List' Subject: RE: Connection failed from other computers Ralf, I changed the port number from 8080 to 8088. everything works fine locally as long as I start tomcat as an application, not as a NT service. I did try connect it from another computer use http://ipaddress:8088/ It failed. Connection is refused. Yongming -Original Message- From: Ralf B [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 12:06 PM To: Tomcat Users List Subject: Re: Connection failed from other computers Hi, are you sure you are running Tomcat on port 8088? For that you need to modify server.xml. Standard is 8080 and if this port is taken already, the batch file will fail. If you want to access Tomcat from another computer you will need to use either its name or its IP address like: http://10.10.2.100:8088/ Ralf Hi, I installed tomcat 4.1.29 on window 2000 professional. I selected it as service. It starts and stops fine. But I can not access it from http://localhost:8088/ http://localhost:8088/ (8080 is used by another application). However it will work fine when I start tomcat from DOS or click start,... It always failed when I try http://installedTomcat:8088/ http://installedTomcat:8088/ from other computers. All my configuration files are default. Where and how can I change the configuration file to make tomcat accessible from other computers? Thank you very much. Yongming - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse für Mail, Message, More! +++ - 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: Running a Service
Howdy, Quartz would be a good choice. Just take the code out of a servlet and put it into a little class that implements Runnable, and you're all set. Yoav Shapira Millennium ChemInformatics -Original Message- From: Karl Coleman [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 3:23 PM To: Tomcat Users List Subject: RE: Running a Service I checked out quartz and it looks like exactly what I need. Thanks. If my detailed description gives anybody aother ideas, please let me know. Thanks again. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 3:07 PM To: Tomcat Users List Subject: RE: Running a Service Howdy, You mean like a cron job? ;) Or the Windows Scheduler on windows, or a 3rd party tool like 12Ghosts Timer? Or do you mean already have a tomcat running around the clock but you'd like something to happen at 3am? A tool like Quartz (quarts.sf.net) would help... Yoav Shapira Millennium ChemInformatics -Original Message- From: Karl Coleman [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 3:02 PM To: [EMAIL PROTECTED] Subject: Running a Service I need to run a process at a specific time every day, say 3:00am. How do you configure Tomcat to have a service running in the background. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5, session replication problem
Tuong, I'm having problems with the session replication with Tomcat 5. I'm trying to cluster two Tomcat's across two machines. The first Tomcat starts fine, but whenever I start the second Tomcat on a different machine I get the errors shown below. I followed the directions exactly-have the distributable/ set. Can this be something to do with the multicast address defined in the cluster? I'm working in a pretty secure ip enviroment, mcastAddr=228.0.0.4 I'll bet that you have a (software) firewall running on either or both of your systems. Check to see that the port number that's being used to replicate sessions is open between the machines. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]