RE: When does the MarkSweepCompact Garbage Collector perform GC?
What makes you think the GC should run? Are you out of memory? The GC will not run in many situations unless it has a need to. HTH - Richard -Original Message- From: Benjamin Chu [mailto:[EMAIL PROTECTED] Sent: Monday, May 29, 2006 8:25 PM To: Tomcat Users List Subject: When does the MarkSweepCompact Garbage Collector perform GC? Hello! Now I am using the jconsole to monitor the heap memory usage of the tomcat 5.5. I've constructed a testbed to test the performance of the applications running on the tomcat. However, the jconsole shows that the MarkSweepCompact Garbage Collector never does its job. The only two ways to make this garbage collector to perform GC are: 1 I push the button perform GC shown on the Memory tab of the jconsole 2 I insert the code System.gc() into the servlets. I think both of these two ways are not good, and this garbage collector should perform GC automatically (in my opinion). I just wonder when or under which conditions the MarkSweepCompact Garbage Collector would perform GC. Or actually there is something wrong with my configuration so it doesn't perform GC? Thank you very much! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Socket Servlet using Tomcat 5.5.17
How i can let Tomcat 5.5.27 listen to any socket connection from the client and handle it ??
Re: When does the MarkSweepCompact Garbage Collector perform GC?
Thanks for the reply! Does this kind of the GC only run when the memory usage almost reaches the limit which we allocate (for example, by default, it is 64 MB)? Sorry that I am not familiar with the GC. I just know that the JVM would do it for us by itself. Thank you very much! - Original Message - From: Richard Mixon [EMAIL PROTECTED] To: 'Tomcat Users List' users@tomcat.apache.org Sent: Tuesday, May 30, 2006 1:03 AM Subject: RE: When does the MarkSweepCompact Garbage Collector perform GC? What makes you think the GC should run? Are you out of memory? The GC will not run in many situations unless it has a need to. HTH - Richard -Original Message- From: Benjamin Chu [mailto:[EMAIL PROTECTED] Sent: Monday, May 29, 2006 8:25 PM To: Tomcat Users List Subject: When does the MarkSweepCompact Garbage Collector perform GC? Hello! Now I am using the jconsole to monitor the heap memory usage of the tomcat 5.5. I've constructed a testbed to test the performance of the applications running on the tomcat. However, the jconsole shows that the MarkSweepCompact Garbage Collector never does its job. The only two ways to make this garbage collector to perform GC are: 1 I push the button perform GC shown on the Memory tab of the jconsole 2 I insert the code System.gc() into the servlets. I think both of these two ways are not good, and this garbage collector should perform GC automatically (in my opinion). I just wonder when or under which conditions the MarkSweepCompact Garbage Collector would perform GC. Or actually there is something wrong with my configuration so it doesn't perform GC? Thank you very much! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: When does the MarkSweepCompact Garbage Collector perform GC?
Check out this link might answer few of your queries. http://java.sun.com/docs/hotspot/gc1.4.2/faq.html -Sameer Benjamin Chu [EMAIL PROTECTED] wrote: Hello! Now I am using the jconsole to monitor the heap memory usage of the tomcat 5.5. I've constructed a testbed to test the performance of the applications running on the tomcat. However, the jconsole shows that the MarkSweepCompact Garbage Collector never does its job. The only two ways to make this garbage collector to perform GC are: 1 I push the button perform GC shown on the Memory tab of the jconsole 2 I insert the code System.gc() into the servlets. I think both of these two ways are not good, and this garbage collector should perform GC automatically (in my opinion). I just wonder when or under which conditions the MarkSweepCompact Garbage Collector would perform GC. Or actually there is something wrong with my configuration so it doesn't perform GC? Thank you very much! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get Yahoo! Messenger with Voice
Re: Starting tomcat from different directory.
Ayusman dikshit wrote: If I am creating a web-application need I put it only in the webapps folder? Yes. Can I put it somewhere else in my directory structure (out of the usual tomcat installation directory) and point tomcat to consider this as a valid web application. Yes. Setting an appropriate docBase on the Context description will do: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html Since you didn't say which Tomcat version you are using you may need to adjust the above URL. Regards mks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Socket Servlet using Tomcat 5.5.17
[EMAIL PROTECTED] wrote: How i can let Tomcat 5.5.27 listen to any socket connection from the client and handle it ?? By starting it. If this answer doesn't seem helpful, you should propably explain a little more precisely what you are trying to achieve. Regards mks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Socket Servlet using Tomcat 5.5.17
My problem is that my servlet running at Tomcat 5.05.17 and my servlet is the default servlet, now i am trying to call this servlet by a Java program that open socket connection... I want Tomcat run this default servlet open once that socket connect to Tomcat Markus Schönhaber [EMAIL PROTECTED] 30/05/2006 11:35 Please respond to Tomcat Users List users@tomcat.apache.org To Tomcat Users List users@tomcat.apache.org cc Subject Re: Socket Servlet using Tomcat 5.5.17 [EMAIL PROTECTED] wrote: How i can let Tomcat 5.5.27 listen to any socket connection from the client and handle it ?? By starting it. If this answer doesn't seem helpful, you should propably explain a little more precisely what you are trying to achieve. Regards mks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Socket Servlet using Tomcat 5.5.17
My problem is that my servlet running at Tomcat 5.05.17 and my servlet is the default servlet, now i am trying to call this servlet by a Java program that open socket connection... I want Tomcat run this default servlet once that socket connect to Tomcat... Now the connection is done but Tomcat dose not show response
Re: Tomcat 5.5 Context Files
Thanks Mark. I noticed that, but my objective is to store configuration parameters that are platform-specific outside the webapp. The stuff in the server's context definitions nicely overrides anything in web.xml. Chris --- Mark Petrovic [EMAIL PROTECTED] wrote: Hi. Context fragments can also be put in your webapp's META-INF directory, per the 4th bullet item here http://tomcat.apache.org/tomcat-5.5-doc/config/context.html E.g., pluto:PGCRM jar tf dist/crmrpc.war |head -3 META-INF/ META-INF/MANIFEST.MF META-INF/context.xml where context.xml contains, in my particular case, a JDBC resource definition Context path=/crmrpc debug=5 reloadable=true crossContext=true Resource name=jdbc/crm auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=u password=p driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/cm?autoReconnect=true / /Context On 5/29/06, Chris Walker [EMAIL PROTECTED] wrote: Hello, I have just migrated a family of webapps from Tomcat 4 to Tomcat 5.5 . It's working OK, but reading through the documentation I see there is a recommendation that I remove the Context sections from server.xml and put them in files in {catalina_root}/conf/[engine]/[Host]. But when I do this I find that each of the contexts just responds with an empty HTML page - no HTTP error, and nothing in any of the Tomcat logs to suggest an error. This is the response: --- !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTMLHEAD META http-equiv=Content-Type content=text/html; charset=windows-1252/HEAD BODY/BODY/HTML --- I've tried various names for the context XML files, and I've tried specifying an absolute path for the context docBase, but it seems to make no difference. Can anybody suggest what I'm doing wrong? Chris Walker --- This is my server.xml after modification: Server port=8005 shutdown=SHUTDOWN Service name=Catalina Connector port=80 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / Engine name=Catalina defaultHost=www.iboserver.com Host name=www.iboserver.com debug=0 appBase=webapps/ibo unpackWARs=false autoDeploy=false liveDeploy=false deployOnStartup=false deployXML=false !-- This section moved to ./Catalina/www.iboserver.com/ROOT.xml vv v Context path= docBase=ibo3 debug=1 reloadable=false crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=ibo3_log. suffix=.txt timestamp=true/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=ibo3_access suffix=.log pattern=common resolveHosts=false/ /Context ^^ ^^ -- !-- This section moved to ./Catalina/www.iboserver.com/ibo4.xml vv vv Context path=/ibo4 docBase=ibo4.200306.1 debug=1 reloadable=false crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=ibo4_log. suffix=.txt timestamp=true/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=ibo4_access suffix=.log pattern=common resolveHosts=false/ Environment name=url.root value=https://www.invoicebackoffice.com/ibo4; type=java.lang.String override=false/ Environment name=smtp.server value=localhost type=java.lang.String override=false/ Environment name=dataStreamDefinitions value=/etc/ibo/DataStreams.xml type=java.lang.String override=false/ Environment
best transaction manager and connection pool for tomcat
Hi all, I'm using Tomcat 4 for my web application (don't ask me the reason why) and I was trying to evaluate different transaction managers and connection pool managers. The db is on MS Sql Server 2000. We've tried using JOTM + XAPool but we've run into a lot of connection closure issues. Is there a recommended or more popular pair for the above purpose. thanks Vivek. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jsvc, Tomcat 5.0.30, Java 1.4.2, X86_64
I have very specific requirements that have been imposed on me (and therefore the servers) that require me to use the following configuration: Tomcat 5.0.xx Sun Java 1.4.2 Applications will be running on a Opteron 275 x86_64 server. I also have the requirement of running tomcat as a user other than root (part of the reason for jsvc) and the server needs to run on port 80. I'm sure you can see the problem. I need to configure jsvc so that I can start/stop tomcat on boot but every version I've tried seems to fail for one reason or another. Is there a distribution of jsvc that will compile and work with this hardware/software configuration? I've tried using different version of jsvc but I'm limited in what else I can change. Thanks, -Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I cannot not compile
I don't see any errors in the console but I can not locate any *.class files. I am creating an application with a login form, action and jsp. I ask Eclipse to build the project but I cannot locate these files. Is there somewhere I need to be looking for error messages? I also am unsure how to refer to my application. I created a project called Split and my packages are all named starting with com.patron.login. When I bring up the application in the web browser, how should I refer to it? I tried http://localhost:8080/login and pressed enter I received the 404 message but then I went to look for the class files and there were none. It looks like tomcat launches because I do not seen anything not launched. I am using Eclipse 3.1 on XP with an oracle db running on an alpha machine. Carrie Latimer Florida's Turnpike Enterprise Tolls Data Center Main 561.488.5361 SC 247.5361 Fax 561.470.6615 Mobile: 561.239.6189 Nextel: 158*763*109 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5 Context Files
After following up the advice from David and others, I think I've got the configuration I need. I'm posting a minimal version of the setup as it seems to me that this might be a fairly common requirement: - I'm running two applications on a single server; each has its own domain name. - Within each application there may be one or more contexts, corresponding to different versions of the webapp (used by different customers). - Various site-specific parameters need to be set within the context, where they will override values in web.xml. - I don't want any kind of auto deployment server.xml -- Server port=8005 shutdown=SHUTDOWN Service name=Catalina Connector port=8080 / Engine name=Catalina defaultHost=host1 !-- it seems that if both autoDeploy and deployOnStartup are false, the host returns empty pages, but if either one is false then it's OK -- Host name=host1 appBase=noapps autoDeploy=false unpackWARs=false deployXML=false / Host name=host2 appBase=noapps autoDeploy=false unpackWARs=false deployXML=false / /Engine /Service /Server directory structure --- {catalina_home} conf Catalina host1 ROOT.xml: Context docBase=${catalina.home}/ibo/ibo3 / ibo4.xml: Context docBase=${catalina.home}/ibo/ibo4 / ... host2 ROOT.xml: Context docBase=${catalina.home}/cbo/cbo.1.23.45 / ... noapps [nothing in here - would appBase=dev/null work?] ibo ibo3 WEB-INF ibo4 WEB-INF cbo cbo.1.23.45 WEB-INF I seem to have problems if the context directories aren't below ${catalina.home}, but this I can live with. Thanks to all who helped. Chris --- David Smith [EMAIL PROTECTED] wrote: Some thoughts: 1. The naming of all the associated files with your webapp should be consistent with the path attribute of the context element (assuming ibo4 is it's name): Context xml file should be named ibo4.xml The webapp's directory should be named ibo4 If deploying from a .war file, the .war file should be named ibo4.war. 2. The name of the root application is ROOT (case sensitive), so if this is to be the webapp to respond on request to /*, the war file, context xml file, and the webapp's folder should all be named ROOT (ROOT.xml, ROOT.war, webapps/ROOT). It should also be noted that with the context xml file in config/Catalina/www.iboserver.com/ibo4.xml, the path and docbase attributes may be ignored under tomcat 5.5. Open your manager webapp to see what's deployed and under what names. --David Chris Walker wrote: Thanks Mark. I noticed that, but my objective is to store configuration parameters that are platform-specific outside the webapp. The stuff in the server's context definitions nicely overrides anything in web.xml. Chris --- Mark Petrovic [EMAIL PROTECTED] wrote: Hi. Context fragments can also be put in your webapp's META-INF directory, per the 4th bullet item here http://tomcat.apache.org/tomcat-5.5-doc/config/context.html E.g., pluto:PGCRM jar tf dist/crmrpc.war |head -3 META-INF/ META-INF/MANIFEST.MF META-INF/context.xml where context.xml contains, in my particular case, a JDBC resource definition Context path=/crmrpc debug=5 reloadable=true crossContext=true Resource name=jdbc/crm auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=u password=p driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/cm?autoReconnect=true / /Context On 5/29/06, Chris Walker [EMAIL PROTECTED] wrote: Hello, I have just migrated a family of webapps from Tomcat 4 to Tomcat 5.5 . It's working OK, but reading through the documentation I see there is a recommendation that I remove the Context sections from server.xml and put them in files in {catalina_root}/conf/[engine]/[Host]. But when I do this I find that each of the contexts just responds with an empty HTML page - no HTTP error, and nothing in any of the Tomcat logs to suggest an error. This is the response: --- !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTMLHEAD META http-equiv=Content-Type content=text/html; charset=windows-1252/HEAD BODY/BODY/HTML --- I've tried various names for the context XML files, and I've tried specifying an absolute path for the context docBase, but it seems to make no difference. Can anybody suggest what I'm
Re: problem in GC tuning
But the impact of GC logging on the performance should be low outside of the GC cycles ? Isn't it? Karl-heinz - Original Message - From: Michael Echerer [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, May 26, 2006 4:44 PM Subject: Re: problem in GC tuning 2) Do writing of logs at higher loads have some impact on the performance? You should definitely disable GC logging in production, if you don't need it for diagnosis anylonger. Cheers, Michael ___ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk.so problems going from Apache 2.0.55 to Apache 2.2.2
Any reason you can't use mod_proxy_ajp? I believe that is the recommended method with 2.2.x. , Josh. -Original Message- From: raorba [mailto:[EMAIL PROTECTED] Sent: Monday, May 29, 2006 7:18 PM To: users@tomcat.apache.org Subject: Re: mod_jk.so problems going from Apache 2.0.55 to Apache 2.2.2 Hey man Is it possible to you to send me a copy or your brand new, recompiled mod_jk.so for 2.2.2? You will be think I'm lazy, but in fact I'm more a Linux boy than Windows boy and I don't know how use VC++ at all. My email is rafael_oropeza at hotmail.com Thanks in advance -- View this message in context: http://www.nabble.com/mod_jk.so+problems+going+from+Apache+2.0 .55+to+Apache+2.2.2-t1660137.html#a4619224 Sent from the Tomcat - User forum at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I cannot not compile
This seems like a question for an Eclipse mailing list. Tomcat is not a compiler. On 5/30/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I don't see any errors in the console but I can not locate any *.class files. I am creating an application with a login form, action and jsp. I ask Eclipse to build the project but I cannot locate these files. Is there somewhere I need to be looking for error messages? I also am unsure how to refer to my application. I created a project called Split and my packages are all named starting with com.patron.login. When I bring up the application in the web browser, how should I refer to it? I tried http://localhost:8080/login and pressed enter I received the 404 message but then I went to look for the class files and there were none. It looks like tomcat launches because I do not seen anything not launched. I am using Eclipse 3.1 on XP with an oracle db running on an alpha machine. Carrie Latimer Florida's Turnpike Enterprise Tolls Data Center Main 561.488.5361 SC 247.5361 Fax 561.470.6615 Mobile: 561.239.6189 Nextel: 158*763*109 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Marc Farrow
Re: jsvc, Tomcat 5.0.30, Java 1.4.2, X86_64
Mark F wrote: I have very specific requirements that have been imposed on me (and therefore the servers) that require me to use the following configuration: Tomcat 5.0.xx Sun Java 1.4.2 Applications will be running on a Opteron 275 x86_64 server. I also have the requirement of running tomcat as a user other than root (part of the reason for jsvc) and the server needs to run on port 80. I'm sure you can see the problem. I need to configure jsvc so that I can start/stop tomcat on boot but every version I've tried seems to fail for one reason or another. Is there a distribution of jsvc that will compile and work with this hardware/software configuration? I've tried using different version of jsvc but I'm limited in what else I can change. Thanks, -Mark I built jsvc this morning (again) with -build=1386-linux-gnu so that it would find the jvm.cfg but this is the error I get at startup: 30/05/2006 08:23:18 2941 jsvc.exec debug: +-- DUMPING JAVA HOME STRUCTURE 30/05/2006 08:23:18 2941 jsvc.exec debug: | Java Home: /usr/lib/java 30/05/2006 08:23:18 2941 jsvc.exec debug: | Java VM Config.: /usr/lib/java/jre/lib/i386/jvm.cfg 30/05/2006 08:23:18 2941 jsvc.exec debug: | Found JVMs: 2 30/05/2006 08:23:18 2941 jsvc.exec debug: | JVM Name:client 30/05/2006 08:23:18 2941 jsvc.exec debug: | /usr/lib/java/jre/lib/i386/client/libjvm.so 30/05/2006 08:23:18 2941 jsvc.exec debug: | JVM Name:server 30/05/2006 08:23:18 2941 jsvc.exec debug: | /usr/lib/java/jre/lib/i386/server/libjvm.so 30/05/2006 08:23:18 2941 jsvc.exec debug: +--- 30/05/2006 08:23:18 2941 jsvc.exec debug: Running w/ LD_LIBRARY_PATH=/usr/lib/java/jre/lib/i386/server:/usr/lib/java/jre/lib/i386 30/05/2006 08:23:18 3056 jsvc.exec debug: redirecting stdout to /dev/null and stderr to /dev/null 30/05/2006 08:23:18 3057 jsvc.exec debug: user changed to 'tomcat' 30/05/2006 08:23:18 3057 jsvc.exec debug: Using specific JVM in /usr/lib/java/jre/lib/i386/server/libjvm.so 30/05/2006 08:23:18 3057 jsvc.exec debug: Attemtping to load library /usr/lib/java/jre/lib/i386/server/libjvm.so 30/05/2006 08:23:18 3057 jsvc.exec error: Cannot dynamically link to /usr/lib/java/jre/lib/i386/server/libjvm.so 30/05/2006 08:23:18 3057 jsvc.exec error: /usr/lib/java/jre/lib/i386/server/libjvm.so: cannot open shared object file: No such file or directory 30/05/2006 08:23:18 3056 jsvc.exec error: Service exit with a return value of 1 cat: /var/run/jsvc.pid: No such file or directory Starting Tomcat 5 with PID: It looks like a permissions error but the tomcat user can see the libjvm.so file and its permissions are 755? If not permissions I would say some sort of linking problem, architectural issues, not finding a 32 bit library for example? Any help would be greatly appreciated. Thanks, -Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsvc, Tomcat 5.0.30, Java 1.4.2, X86_64
Mark F wrote: Applications will be running on a Opteron 275 x86_64 server. I also have the requirement of running tomcat as a user other than root (part of the reason for jsvc) and the server needs to run on port 80. I'm sure you can see the problem. You could try to run it on the port 8080 and redirect all request from port 80 using iptables or xinet.d More information at : http://www-128.ibm.com/developerworks/java/library/l-secjav.html I need to configure jsvc so that I can start/stop tomcat on boot but every version I've tried seems to fail for one reason or another. Is there a distribution of jsvc that will compile and work with this hardware/software configuration? You should try with the latest version. If it doesn't work and you don't get more help from this mailing list, try with jakarta-common-dev mailing list or jsvc-dev if that exists. -- Mladen Adamovic http://home.blic.net/adamm http://www.shortopedia.com http://www.froola.com http://www.online-utility.org - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with Tomcat MySQL using JNDI
I think I have identified the problem. I deployed a 'broken' HelloWorld war file to tomcat by coping it to apache-tomcat-5.5.17/webapps. Tomcat then expanded it, so there is now both a war file and a expanded directory structure. In all of my attempts to fix the code, I was modifying the code within the expanded structure and nothing seemed to work. Once I delete the war file, everything now worked. Why does tomcat work like this ? I would have expected one of the following: - Expand the war then delete the war - Do not expand the war Can someone shed some light on where I might have gone wrong ? -Thanks Steve More On 5/19/06, Stephen More [EMAIL PROTECTED] wrote: On 5/17/06, Parsons Technical Services [EMAIL PROTECTED] wrote: Now I will assume you have reviewed http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html for a per context and Yes http://tomcat.apache.org/tomcat-5.5-doc/config/globalresources.html for a global approach. Yes. Now for a few questions. Is the jndi for one app or several? Right now, one app. Well if for one app, you can set it up in the context of the app. I have been trying to do this. Both cases you need to add the drivers to the common/lib (thus the reason a simple war won't do). I have copied mysql-connector-java-3.1.12-bin.jar to apache-tomcat-5.5.17/common/lib Class.forName(com.mysql.jdbc.Driver); connection = DriverManager.getConnection( jdbc:mysql://192.168.1.19:3306/golive, daname, depassword); I have this working fine. Now that we have verified this first layer ( JDBC Driver installed OK ), how can I test the next layer ? $CATALINA_HOME/webapps/DBTest/META-INF/context.xml What can I do to verify that my context.xml is set correctly ? -Thanks Steve More - Original Message - From: Stephen More [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, May 17, 2006 5:34 PM Subject: Help with Tomcat MySQL using JNDI Is there a war file available for download that will do nothing more than: select 'HelloWorld from MySQL'; using JNDI ? I have tried following many examples on the web and I keep ending up with: Cannot create JDBC driver of class '' for connect URL 'null' At this point I am pulling out my hair and thinking their must be a bug in tomcat 5.5.17 ! Can anyone provide me with a simple working war using MySQL ? -Thanks Steve 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Socket Servlet using Tomcat 5.5.17
[EMAIL PROTECTED] wrote: I want Tomcat run this default servlet open once that socket connect to Tomcat Do redirect from index.jsp to your servlet. Do something like : % String redirectURL = http://hostname.com/;; response.sendRedirect(redirectURL); % p.s. you should learn English better and learn how to describe your problems more clearly. -- Mladen Adamovic http://home.blic.net/adamm http://www.shortopedia.com http://www.froola.com http://www.online-utility.org - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsvc, Tomcat 5.0.30, Java 1.4.2, X86_64
Mark F wrote: 30/05/2006 08:23:18 3057 jsvc.exec debug: user changed to 'tomcat' 30/05/2006 08:23:18 3057 jsvc.exec debug: Using specific JVM in /usr/lib/java/jre/lib/i386/server/libjvm.so 30/05/2006 08:23:18 3057 jsvc.exec debug: Attemtping to load library /usr/lib/java/jre/lib/i386/server/libjvm.so 30/05/2006 08:23:18 3057 jsvc.exec error: Cannot dynamically link to /usr/lib/java/jre/lib/i386/server/libjvm.so 30/05/2006 08:23:18 3057 jsvc.exec error: /usr/lib/java/jre/lib/i386/server/libjvm.so: cannot open shared object file: No such file or directory 30/05/2006 08:23:18 3056 jsvc.exec error: Service exit with a return value of 1 cat: Maybe doing ldd /usr/lib/java/jre/lib/i386/server/libjvm.so provides something helpful. Regards mks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with Tomcat MySQL using JNDI
Well ..sort of The recommended way of creating a web application is to create a webapp .war and deploy it to %TOMCAT_HOME%\webapps once you accomplish this objective Tomcat will note the new war and create folder %TOMCAT_HOME\webapps\NameOfWebApplicationWar wait a minute ..how does Tomcat handle 'temp' and or 'work' files ??? Tomcat has a 'work' folder located at %TOMCAT_HOME%\work\Catalina\ServerWhereDeployed\WebAppName this is where the REAL work is being done by tomcat..you will notice that after copying a new class or a new jar or a new war your new class is not taking hold? that is because the work folder %TOMCAT_HOME%\work\Catalina\ServerWhereDeployed\WebAppName has not been updated doing a specific undeploy and then deploy will fix this (as well as re-reading your web.xml) of course there is shutting down Tomcat and starting Tomcat should re-reploy the webapps HTH, Martin -- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Stephen More [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, May 30, 2006 9:57 AM Subject: Re: Help with Tomcat MySQL using JNDI I think I have identified the problem. I deployed a 'broken' HelloWorld war file to tomcat by coping it to apache-tomcat-5.5.17/webapps. Tomcat then expanded it, so there is now both a war file and a expanded directory structure. In all of my attempts to fix the code, I was modifying the code within the expanded structure and nothing seemed to work. Once I delete the war file, everything now worked. Why does tomcat work like this ? I would have expected one of the following: - Expand the war then delete the war - Do not expand the war Can someone shed some light on where I might have gone wrong ? -Thanks Steve More On 5/19/06, Stephen More [EMAIL PROTECTED] wrote: On 5/17/06, Parsons Technical Services [EMAIL PROTECTED] wrote: Now I will assume you have reviewed http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html for a per context and Yes http://tomcat.apache.org/tomcat-5.5-doc/config/globalresources.html for a global approach. Yes. Now for a few questions. Is the jndi for one app or several? Right now, one app. Well if for one app, you can set it up in the context of the app. I have been trying to do this. Both cases you need to add the drivers to the common/lib (thus the reason a simple war won't do). I have copied mysql-connector-java-3.1.12-bin.jar to apache-tomcat-5.5.17/common/lib Class.forName(com.mysql.jdbc.Driver); connection = DriverManager.getConnection( jdbc:mysql://192.168.1.19:3306/golive, daname, depassword); I have this working fine. Now that we have verified this first layer ( JDBC Driver installed OK ), how can I test the next layer ? $CATALINA_HOME/webapps/DBTest/META-INF/context.xml What can I do to verify that my context.xml is set correctly ? -Thanks Steve More - Original Message - From: Stephen More [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, May 17, 2006 5:34 PM Subject: Help with Tomcat MySQL using JNDI Is there a war file available for download that will do nothing more than: select 'HelloWorld from MySQL'; using JNDI ? I have tried following many examples on the web and I keep ending up with: Cannot create JDBC driver of class '' for connect URL 'null' At this point I am pulling out my hair and thinking their must be a bug in tomcat 5.5.17 ! Can anyone provide me with a simple working war using MySQL ? -Thanks Steve 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unable to retrieve list of portlets. Make sure tomcat-users.xml has been edited according to the UserGuide.
Hi everybody, I have successfully implemented the SSL and I am also able to redirect the URL from http to https. But doing that on my portal I am getting the error which is below mentioned:- Unable to retrieve list of portlets. Make sure tomcat-users.xml has been edited according to the UserGuide. So I was just thinking does the change that I made in the web.xml file of the application affect any other file. So can anybody give the feedback. Keyur Sheth - Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta.
Re: Tomcat 5.5 Context Files
Chris, I have been looking for the same solution. Can you share what you had learn? Would you able to put together a howto on this topic? I think it will be a great benefit to the rest of us. Thanks much, Tom Original message Date: Tue, 30 May 2006 13:57:18 +0100 (BST) From: Chris Walker [EMAIL PROTECTED] Subject: Re: Tomcat 5.5 Context Files To: Tomcat Users List users@tomcat.apache.org After following up the advice from David and others, I think I've got the configuration I need. I'm posting a minimal version of the setup as it seems to me that this might be a fairly common requirement: - I'm running two applications on a single server; each has its own domain name. - Within each application there may be one or more contexts, corresponding to different versions of the webapp (used by different customers). - Various site-specific parameters need to be set within the context, where they will override values in web.xml. - I don't want any kind of auto deployment server.xml -- Server port=8005 shutdown=SHUTDOWN Service name=Catalina Connector port=8080 / Engine name=Catalina defaultHost=host1 !-- it seems that if both autoDeploy and deployOnStartup are false, the host returns empty pages, but if either one is false then it's OK -- Host name=host1 appBase=noapps autoDeploy=false unpackWARs=false deployXML=false / Host name=host2 appBase=noapps autoDeploy=false unpackWARs=false deployXML=false / /Engine /Service /Server directory structure --- {catalina_home} conf Catalina host1 ROOT.xml: Context docBase=${catalina.home}/ibo/ibo3 / ibo4.xml: Context docBase=${catalina.home}/ibo/ibo4 / ... host2 ROOT.xml: Context docBase=${catalina.home}/cbo/cbo.1.23.45 / ... noapps [nothing in here - would appBase=dev/null work?] ibo ibo3 WEB-INF ibo4 WEB-INF cbo cbo.1.23.45 WEB-INF I seem to have problems if the context directories aren't below ${catalina.home}, but this I can live with. Thanks to all who helped. Chris --- David Smith [EMAIL PROTECTED] wrote: Some thoughts: 1. The naming of all the associated files with your webapp should be consistent with the path attribute of the context element (assuming ibo4 is it's name): Context xml file should be named ibo4.xml The webapp's directory should be named ibo4 If deploying from a .war file, the .war file should be named ibo4.war. 2. The name of the root application is ROOT (case sensitive), so if this is to be the webapp to respond on request to /*, the war file, context xml file, and the webapp's folder should all be named ROOT (ROOT.xml, ROOT.war, webapps/ROOT). It should also be noted that with the context xml file in config/Catalina/www.iboserver.com/ibo4.xml, the path and docbase attributes may be ignored under tomcat 5.5. Open your manager webapp to see what's deployed and under what names. --David Chris Walker wrote: Thanks Mark. I noticed that, but my objective is to store configuration parameters that are platform-specific outside the webapp. The stuff in the server's context definitions nicely overrides anything in web.xml. Chris --- Mark Petrovic [EMAIL PROTECTED] wrote: Hi. Context fragments can also be put in your webapp's META-INF directory, per the 4th bullet item here http://tomcat.apache.org/tomcat-5.5-doc/config/context.html E.g., pluto:PGCRM jar tf dist/crmrpc.war |head -3 META-INF/ META-INF/MANIFEST.MF META-INF/context.xml where context.xml contains, in my particular case, a JDBC resource definition Context path=/crmrpc debug=5 reloadable=true crossContext=true Resource name=jdbc/crm auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=u password=p driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/cm?autoReconnect=true / /Context On 5/29/06, Chris Walker [EMAIL PROTECTED] wrote: Hello, I have just migrated a family of webapps from Tomcat 4 to Tomcat 5.5 . It's working OK, but reading through the documentation I see there is a recommendation that I remove the Context sections from server.xml and put them in files in {catalina_root}/conf/[engine]/[Host]. But when I do this I find that each of the contexts just responds with an empty HTML page - no HTTP error, and nothing in any of the Tomcat logs to suggest an error. This is the response: --- - --- !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTMLHEAD META
Re: Is there any documentation of JULI anywhere?
On Tuesday 30 May 2006 13:32, David Goodenough wrote: I am trying to work out how to tailor the log entries going into the Catalina log files, and am having no luck at all. I am using Tomcat 5.5.17. I have looked around for documentation of JULI, but I can find nothing which makes sense. There is a comment at the end of the logging,properties file which says there should be a example of exactly the type I want. It says:- # For example, set the com.xyz.foo logger to only log SEVERE # messages: #org.apache.catalina.startup.ContextConfig.level = FINE #org.apache.catalina.startup.HostConfig.level = FINE #org.apache.catalina.session.ManagerBase.level = FINE but as you can see this never mentions SEVERE in the sample lines, only FINE. Also it does not mention com.xyz.foo in the sample lines. There was a mention that Google found that said that there was some documentation in the JULI source, but I do not know where in the Tomcat source tree JULI is to be found, and there is an awful lot to search. Please, does anyone know how to do this, it is causing me real grief. Thanks David Well I have made a little progress, but I do not understand what it going on. Putting the lines:- org.jgroups.level = ERROR org.jgroups.handlers = 1catalina.org.apache.juli.FileHandler into logging.properties (you need both) has the effect of stopping the messages going onto the Console (which is redirected to Catalina.out) but does NOT change what goes to the catalina.{date}.log files. As I said the handler was the file handler (which is what generates catalina.{date}.log) and not to the ConsoleHandler (which sends the output to catalina.out) I am completely confused. How is it that something as important as the logging for Tomcat is so badly documented? David - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Troubleshooting unexpected Tomcat shutdown
Greetings, I'm hoping someone here can give me a pointer or two in troubleshooting an unexpected Tomcat shutdown. I have been searching the mailing list archives and googling (web and groups) for hints on this, but so far with no success. Sometime between March 6 and April 11, I see the following lines in my catalina.out file: Java HotSpot(TM) Client VM warning: cannot install alternate signal stack Java HotSpot(TM) Client VM warning: cannot uninstall alt signal stack All told, there are over 6400 lines, with the above two lines alternating. After these 6400 lines, I see the following: Another exception has been detected while we were handling last error. Dumping information about last error: ERROR REPORT FILE = (N/A) PC= 0xf62bbd2c SIGNAL= 11 FUNCTION NAME = (N/A) OFFSET= 0x LIBRARY NAME = (N/A) Please check ERROR REPORT FILE for further information, if there is any. Good bye. Tomcat was restarted, and I have not seen these messages since. I've googled for the error messages, but haven't found anything that would point to the cause. This does not seem to be an easily repeatable occurrence. It has happened twice in the last year on a production machine. I've tried to reproduce this on a test machine running the same versions of Tomcat and Java with a machine under as close a load as the production box as possible, but with no success. Here are some details of the environment. Tomcat Version: 4.1.31 Java Version: 1.4.2_07 OS: RedHat Enterprise Linux 3, update 2, SMB kernel, i386 We have set up a monitor and auto-restart job on the production box in order to minimize downtime, but since this is a fairly critical server, I would like to prevent this from occuring again if at all possible. If anyone has a hint or two to help me understand what happened, that would be most appreciated. One specific questions, if I may. Where would ERROR REPORT FILE be found, and if it's not, does anyone know how I can force one to be created? I don't see any likely files on the system, but it's possible (likely, even) that I just don't know the name or location. Thank you for your time, Dean Maki - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
a real solution about maxThreads??
Hi there!!! Does anybody know about a solution about this message in log: SEVERE : All threads(*) are currently busy * Increase maxThreads or check servlet status I have been searching on google, but I can´t find a solution. I use Apache-Tomcat 5.5.14, RHEL3,JDK1.5.0 Tnxs in advance!!!
Re: How to hide the keystorePass at the server.xml
Robert Harper wrote: One thing to think of is that if you have to do that to protect it, then everything else on that system is suspect. Yeah, yeah. I used to use this argument a lot, too. But that's like saying: if your harness isn't secure, then why bother with an additional safety net below you? You might as well fall and die.. It's not that obfuscating or encrypting the keystorePass is a fool-proof answer, but that it adds an additional step of complexity in the way of anyone who might crack your system. Stuff happens. Just because a burglar got past your front door doesn't mean that you have to lay out your valuables in the foyer.. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to hide the keystorePass at the server.xml
Shankar Unni wrote: Robert Harper wrote: One thing to think of is that if you have to do that to protect it, then everything else on that system is suspect. Yeah, yeah. I used to use this argument a lot, too. But that's like saying: if your harness isn't secure, then why bother with an additional safety net below you? You might as well fall and die.. It's not that obfuscating or encrypting the keystorePass is a fool-proof answer, but that it adds an additional step of complexity in the way of anyone who might crack your system. Stuff happens. Just because a burglar got past your front door doesn't mean that you have to lay out your valuables in the foyer.. The problem is that if you encrypt the keystore password somewhere (or even still embedded in the server.xml file), how do you tell Tomcat how to decrypt that? In the end, you have to enter a password or other credential into the system. A possible sounding solution would be to have tomcat start in a protected mode that requires an admin connect and enter a password before TC would allow the webapps to load. But even this would require that TC be configured to do so since most would not want this. And if you can access the filesystem, then you could change that configuration so that TC would start and NOT require that. You can even change the java security policy file. So you'd need to create a forked TC that always requires the password to be entered. But then again, if they can access the filesystem, they could just change out the version of TC. And if they can work on your file system, they can probably insert new code into the WEB-INF/lib or WEB-INF/classes or any of the JSPs. And if they can do all that, you probably have no security to begin with. In the end, a secure version of Tomcat that always required a password or other credential be provided before it starts, with an encrypted JSP and configuration file store, etc. would be needed. David - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help using mod_proxy_ajp
I'm using apache 2.2.2, with mod_proxy_ajp, and tomcat 5.5.17. I'm trying to configure a set up that will allow me to proxy certain URLs like http://ironwire.net/tomcat/ to tomcat for processing. Here are the relevant sections of my current server.xml file, including the contexts I set up to try and handle different paths: !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false proxyName=ironwire.net proxyPort=80 protocol=AJP/1.3 maxThreads=50 minSpareThreads=2 maxSpareThreads=25 address=127.0.0.1 / Engine name=localhost defaultHost=localhost Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase / Host name=localhost appBase=/usr/local unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path= docBase=tomcat/webapps / Context path=/ docBase=www/ironwire.net reloadable=true / Context path=/tomcat docBase=tomcat/webapps reloadable=true / Valve className=org.apache.catalina.valves.AccessLogValve directory=/var/log/tomcat pattern=combined / /Host /Engine /Service And here are the proxy settings from my httpd.conf file: ProxyRequests Off ProxyPass /admin ! ProxyPass / ajp://localhost:8009/ ProxyPass /tomcat/ ajp://localhost:8009/tomcat/ Whenever I try either URL (http://ironwire.net or http://ironwire.net/tomcat/), the server replies with a 404 error stating: The requested resource (resource) is not available. Can anybody help me out with this? Cheers, -- Steven - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring Tomcat HTTP server to generate proper links for non-English file names in a Directory Listing
Martin Gainty wrote: You will need download and configure the i18 International jars (which are optional) to enable multi-language functionality This is not correct. These jars are resource bundles only - they have no impact on this issue. Setting URIEncoding=UTF-8 in the connector is probably what is required but I haven't tested it. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Run class in the start up of Tomcat
Asaf Lahav wrote: Is it possible to stop the tomcat shutdown sequence from with in the context listener contextDestroyed function? No. The shutdown process has already started for the application and a number of other components have already been stopped. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help needed:Context Creation Failed.
Kuldeep Tewari wrote: NamingContextListener [/Standalone/localhost/context path]: Creation of the naming context failed: javax.naming.NamingException: Context is read only Creation of the naming context failed: javax.naming.NamingException: Context is read only. Can you provide 1) your server.xml and 2) the full stack trace? Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Troubleshooting unexpected Tomcat shutdown
Dean Maki wrote: Java HotSpot(TM) Client VM warning: cannot install alternate signal stack Java HotSpot(TM) Client VM warning: cannot uninstall alt signal stack This is a JVM issue rather than a Tomcat issue. Try the support pages for your JVM. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and Apache Connector Problem
I put JkMount /jsp-examples ajp13 in my httpd.conf file. I started the services and I still do not see the same as if I typed http://localhost:8080/jsp-examples. Thanks for your help. DB --- Serlet Jean-Claude [EMAIL PROTECTED] wrote: Add the directive JkMount to tell Apache using Tomcat to serve your JSP JkMount /yourWebaaps ajp13 Jean-Claude -Message d'origine- De : Donald Beck [mailto:[EMAIL PROTECTED] Envoyé : dimanche 28 mai 2006 17:11 À : users@tomcat.apache.org Objet : Tomcat and Apache Connector Problem I have installed the following on a Windows Server: Apache 2.0.58 Tomcat 5.0.28 SDK 1.4.2.11 mod_jk_1.2.6_2.0.50.dll (renamed mod_jk.dll and placed it in APACHE_HOME/modules) I am trying to configure Tomcat to server up JSP pages, and have made the following modifications to the following files: server.xml -- !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / httpd.conf - LoadModule jk_module modules/mod_jk.dll #Configure mod_jk JkWorkersFile conf/workers.properties # workers.properties # list the workers by name worker.list=ajp13 # # First tomcat server # worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 jk2.properties - channelSocket.address=localhost channelSocket.port=8009 The server.xml file is the default settings in that file. I have verified the location of my files and they are in the correct directory. I try to go to http://localhost/jsp-examples/ and page is not found, http://localhost:8080/jsp-examples/ works fine. I have tried reading the documentation but I cannot find what I am missing. Any thoughts? TIA __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring Tomcat HTTP server to generate proper links for non-English file names in a Directory Listing
Martin Gainty wrote: setting URIEncoding=UTF-8 in server.xml works in Gets but for posts Tomcat doesn't use the URIEncoding flag for POSTed form data even when set So, what does Tomcat use for Post? ISO-8859-1. (i18) ISO-8859-1 may be used for POST but it depends on the circumstances. I could document the logic used to determine the encodings used (they could be different) for the query string and the request body but since this is open source, you can just read the code. The relevant code is in the parseParameters() method of http://svn.apache.org/repos/asf/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/connector/Request.java Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsvc, Tomcat 5.0.30, Java 1.4.2, X86_64
Mark F [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have very specific requirements that have been imposed on me (and therefore the servers) that require me to use the following configuration: Tomcat 5.0.xx Sun Java 1.4.2 Applications will be running on a Opteron 275 x86_64 server. I also have the requirement of running tomcat as a user other than root (part of the reason for jsvc) and the server needs to run on port 80. I'm sure you can see the problem. I believe that this has been fixed in the SVN for commons-daemon. In anycase, you just need to patch location.c so that it can find the path to libjvm.so. I need to configure jsvc so that I can start/stop tomcat on boot but every version I've tried seems to fail for one reason or another. Is there a distribution of jsvc that will compile and work with this hardware/software configuration? I've tried using different version of jsvc but I'm limited in what else I can change. Thanks, -Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I create/configure a jsp servlet without a .jsp extension
This is a very simple question and i hope someone can give me a answer. I have a file called search.jsp that does some trivial search through a database. I want it to be accessible as follows http://www.domain.com/search?LookForThis Currently I have it working like http://www.domain.com/search.jsp?LookForThis However getting rid of the .jsp extension is critical. Is there a specific configuration that will make it work Note: the closest i got was create a new dir called search and renaming search.jsp to index.jsp. unfortunately this does not really work for me, use of the slash breaks the client accessing this URL http://www.domain.com/search/?LookForThis thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Socket Servlet using Tomcat 5.5.17
Hi David... I didn't send a request to the servlet I am expecting the servlet to execute on socket open, for that i made my servlet in the Root (The default one)... I want once i connect using the host and port it execute my servlet... David Smith [EMAIL PROTECTED] 30/05/2006 15:04 Please respond to Tomcat Users List users@tomcat.apache.org To Tomcat Users List users@tomcat.apache.org cc Subject Re: Socket Servlet using Tomcat 5.5.17 Could you please clarify something for me? You say you expect the servlet to run when the socket is opened. Did you send a request or are you really expecting the servlet to execute on socket open? The servlet won't be aware of the client until a request is made and tomcat has a chance to route it to your servlet per the spec. --David [EMAIL PROTECTED] wrote: My problem is that my servlet running at Tomcat 5.05.17 and my servlet is the default servlet, now i am trying to call this servlet by a Java program that open socket connection... I want Tomcat run this default servlet open once that socket connect to Tomcat Markus Schönhaber [EMAIL PROTECTED] 30/05/2006 11:35 Please respond to Tomcat Users List users@tomcat.apache.org To Tomcat Users List users@tomcat.apache.org cc Subject Re: Socket Servlet using Tomcat 5.5.17 [EMAIL PROTECTED] wrote: How i can let Tomcat 5.5.27 listen to any socket connection from the client and handle it ?? By starting it. If this answer doesn't seem helpful, you should propably explain a little more precisely what you are trying to achieve. Regards mks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Socket Servlet using Tomcat 5.5.17
Tomcat's purpose is to listen for requests and pass them on to the appropriately mapped servlet. Maybe you do not want to use Tomcat, but instead roll your own server that simply listens on a particular port for socket opens. But again, to do this well is not a trivial exercise. The port you choose to have Tomcat listen on is configurable (the default is port 8080). But it still expects a well formed HTTP request to arrive. That said I do know that there are both HTTP and non-HTTP versions of the Servlet interface - maybe someone else can tell you how this might or might not help you cause Tomcat to listen for a generalize TCP connection. HTH - Richard -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 30, 2006 8:55 PM To: Tomcat Users List Subject: Re: Socket Servlet using Tomcat 5.5.17 Hi David... I didn't send a request to the servlet I am expecting the servlet to execute on socket open, for that i made my servlet in the Root (The default one)... I want once i connect using the host and port it execute my servlet... David Smith [EMAIL PROTECTED] 30/05/2006 15:04 Please respond to Tomcat Users List users@tomcat.apache.org To Tomcat Users List users@tomcat.apache.org cc Subject Re: Socket Servlet using Tomcat 5.5.17 Could you please clarify something for me? You say you expect the servlet to run when the socket is opened. Did you send a request or are you really expecting the servlet to execute on socket open? The servlet won't be aware of the client until a request is made and tomcat has a chance to route it to your servlet per the spec. --David [EMAIL PROTECTED] wrote: My problem is that my servlet running at Tomcat 5.05.17 and my servlet is the default servlet, now i am trying to call this servlet by a Java program that open socket connection... I want Tomcat run this default servlet open once that socket connect to Tomcat Markus Schönhaber [EMAIL PROTECTED] 30/05/2006 11:35 Please respond to Tomcat Users List users@tomcat.apache.org To Tomcat Users List users@tomcat.apache.org cc Subject Re: Socket Servlet using Tomcat 5.5.17 [EMAIL PROTECTED] wrote: How i can let Tomcat 5.5.27 listen to any socket connection from the client and handle it ?? By starting it. If this answer doesn't seem helpful, you should propably explain a little more precisely what you are trying to achieve. Regards mks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I create/configure a jsp servlet without a .jsp extension
I'm not an expert, but considering that JSPs are basically servlets, I'm pretty sure you should find a solution, to satisfy your requirement, by configuring the JSP equivalent of a servlet-mapping in the web.xml of your application. On 5/31/06, Sumeet Keswani [EMAIL PROTECTED] wrote: This is a very simple question and i hope someone can give me a answer. I have a file called search.jsp that does some trivial search through a database. I want it to be accessible as follows http://www.domain.com/search?LookForThis Currently I have it working like http://www.domain.com/search.jsp?LookForThis However getting rid of the .jsp extension is critical. Is there a specific configuration that will make it work Note: the closest i got was create a new dir called search and renaming search.jsp to index.jsp. unfortunately this does not really work for me, use of the slash breaks the client accessing this URL http://www.domain.com/search/?LookForThis thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I create/configure a jsp servlet without a .jsp extension
Hi Sumeet Keswani, We can configure the JSP files in web.xml as like we do for servlets. Syntax is explained in the following link http://edocs.bea.com/wls/docs70/webapp/components.html#145275 Hope this solves your problem. :) On 5/31/06, Giorgio Clavelli [EMAIL PROTECTED] wrote: I'm not an expert, but considering that JSPs are basically servlets, I'm pretty sure you should find a solution, to satisfy your requirement, by configuring the JSP equivalent of a servlet-mapping in the web.xml of your application. On 5/31/06, Sumeet Keswani [EMAIL PROTECTED] wrote: This is a very simple question and i hope someone can give me a answer. I have a file called search.jsp that does some trivial search through a database. I want it to be accessible as follows http://www.domain.com/search?LookForThis Currently I have it working like http://www.domain.com/search.jsp?LookForThis However getting rid of the .jsp extension is critical. Is there a specific configuration that will make it work Note: the closest i got was create a new dir called search and renaming search.jsp to index.jsp. unfortunately this does not really work for me, use of the slash breaks the client accessing this URL http://www.domain.com/search/?LookForThis thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards Tamilselvan R More About Me http://www.freewebs.com/tamilselvan_guru
RE: Socket Servlet using Tomcat 5.5.17
I know that Tomcat's purpose is to listen for requests and pass them on to the appropriately mapped servlet. But i want to use Tomcat's because i will not need to code all the mutli-threading part of it. and if in the future some of the client connect over HTTP, I will have no problem handling them. My question is that can i Configure Tomcat to listen for a generalize TCP connection or not ?? Is there special Connector can do that for me ? Richard Mixon [EMAIL PROTECTED] 31/05/2006 08:27 Please respond to Tomcat Users List users@tomcat.apache.org To 'Tomcat Users List' users@tomcat.apache.org cc Subject RE: Socket Servlet using Tomcat 5.5.17 Tomcat's purpose is to listen for requests and pass them on to the appropriately mapped servlet. Maybe you do not want to use Tomcat, but instead roll your own server that simply listens on a particular port for socket opens. But again, to do this well is not a trivial exercise. The port you choose to have Tomcat listen on is configurable (the default is port 8080). But it still expects a well formed HTTP request to arrive. That said I do know that there are both HTTP and non-HTTP versions of the Servlet interface - maybe someone else can tell you how this might or might not help you cause Tomcat to listen for a generalize TCP connection. HTH - Richard -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 30, 2006 8:55 PM To: Tomcat Users List Subject: Re: Socket Servlet using Tomcat 5.5.17 Hi David... I didn't send a request to the servlet I am expecting the servlet to execute on socket open, for that i made my servlet in the Root (The default one)... I want once i connect using the host and port it execute my servlet... David Smith [EMAIL PROTECTED] 30/05/2006 15:04 Please respond to Tomcat Users List users@tomcat.apache.org To Tomcat Users List users@tomcat.apache.org cc Subject Re: Socket Servlet using Tomcat 5.5.17 Could you please clarify something for me? You say you expect the servlet to run when the socket is opened. Did you send a request or are you really expecting the servlet to execute on socket open? The servlet won't be aware of the client until a request is made and tomcat has a chance to route it to your servlet per the spec. --David [EMAIL PROTECTED] wrote: My problem is that my servlet running at Tomcat 5.05.17 and my servlet is the default servlet, now i am trying to call this servlet by a Java program that open socket connection... I want Tomcat run this default servlet open once that socket connect to Tomcat Markus Schönhaber [EMAIL PROTECTED] 30/05/2006 11:35 Please respond to Tomcat Users List users@tomcat.apache.org To Tomcat Users List users@tomcat.apache.org cc Subject Re: Socket Servlet using Tomcat 5.5.17 [EMAIL PROTECTED] wrote: How i can let Tomcat 5.5.27 listen to any socket connection from the client and handle it ?? By starting it. If this answer doesn't seem helpful, you should propably explain a little more precisely what you are trying to achieve. Regards mks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]