Re: User Interface To Tomcat User List
Over a year ago, there was an attempt to setup a forum for Tomcat. It is actually still there at http://nagoya.apache.org/jive/index.jsp. It pretty much died for lack of interest. Chris Dodunski [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How about an eForum that in addition to emailing the thread initialiser and post authors within that thread whenever a response is made, also emails the 'Tomcat Users List? Then those who resist change still get their mail en masse, and those who don't... don't. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Thursday, 20 March 2003 6:10 a.m. To: Tomcat Users List Subject: Re: User Interface To Tomcat User List On Thu, 20 Mar 2003, NormW wrote: Date: Thu, 20 Mar 2003 04:56:23 +1100 From: NormW [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: User Interface To Tomcat User List Good morning Eric. I wasn't 'pushing' for a change as I will go back to just viewing the Archives until I need to pose another question; that's why I mentioned that I'm only new to TC and not even close to being able to help with 99% of what comes in my Inbox. That's what I liked with the Newsgroup format... I can browse them online, and, in the event I can offer some assistance, it's easy to do so...and don't have to wade through (66 this morning) a lot of messages I cannot do anyhing for. While pulling down particular threads is feasible, my knowledge isn't that 'compartmentalised'; I might know 4 facts on advanced config and 100 on where to find docs; AIX, Linux, Solaris, Windows 2K, etc I can provide a cup of coffee for. I gather the mailing lists have been going for a number of years so something must be working; I was just thinking it might have been easier. Thanks for the feedback though. Norm Any reasonable mail reader that supports sorting by thread, plus a simple filter rule to copy messages for each mailing list into their own folder, can give you exactly the same user experience as newsgroups. (Try Mozilla 1.3, for just one example). Plus, I can select offline mode and download all the messages, so I can browse them on my laptop offline, reply to them with send later, and sync up when I reconnect to the net. And none of this requires disrupting the lives of 2500 other TOMCAT-USER subscribers already using the mailing list. A newsgroup-only solution would disenfranchise all users who are behind corporate firewalls that block NNTP. That's totally unreasonable for a resource like TOMCAT-USER. As others have pointed out, there are unofficial mirrors for TOMCAT-USER that let you access the list's content via NNTP if you want -- but with someone else taking the administrative hassles for managing that. If you want *me* to answer questions, you can also assume that any eforum type interface is also a non-starter :-). I want mail to come to me, so that I can peruse it when *I* have a few minutes; not have to go to it. Craig - 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.lang.IllegalArgumentException: 0111111Englishm%2Fd%2Fyy%2E ,,
The fix in 4.1.24 handles the case when an illegal name/value pair is sent from the browser (e.g. via a JavaScript directive in the page). The way it works is by logging the problem, and dropping the cookie. For server-side cookies (for e.g. bug #18162), you simply need to use version 1 cookies to pass back unusual values. Jackson, Stephen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error-page used by multiple contexts
Madere, Colin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] So I set error-page in the /conf/web.xml for the whole server. error-page error-code401/error-code location/pub/error/401.html/location /error-page error-page error-code403/error-code location/pub/error/403.html/location /error-page error-page error-code404/error-code location/pub/error/404.html/location /error-page error-page error-code500/error-code location/pub/error/500.html/location /error-page However, this only works for contexts at the root of a site on the server where this path is rooted (or if you duplicate these path patterns into EVERY web-app). The webapps still try to use this path, but the beginning / is set at the root of the webapp, not the site. Any way to have these settings REALLY be global? I'm not looking forward to sym-linking a bunch of files/paths. I have 4 sites each with 2 webapps running on the server with more apps to join in later Start looking forward to it ;-). I seem to remember a setting to tell webapps to set their doc root at the site root and not relative to each app but haven't found that again (unless I'm remembering incorrectly) Any ideas? Colin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: compiling from source: error on jasper...
If you are behind a corporate firewall, then you also need to uncomment the: proxy.host proxy.port proxy.use settings (and set the values to your proxy server's settings). For example: proxy.host=proxy.myfirm.com proxy.port=8080 proxy.use=true Filip Hanik [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] do a ant download download the connector source from the same location you got the tomcat source there is a build.properties.sample file that you need to rename to build.properties then you need to uncomment the following properties base.path jtc.home. something jasper.home then it should build by doing ant dist and read BUILDING.txt :) Filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 10:20 AM To: [EMAIL PROTECTED] Subject: compiling from source: error on jasper... I'm seting up a build environment for jakarta-tomcat and the build process is blitzing as follows: BUILD FAILED file:/usr/local/java/apache/jakarta/jakarta-tomcat-4.1.18-src/ build.xml:68: Basedir /usr/local/java/apache/jakarta/jakarta-tomcat-jasper/jasper2 does not exist I was under the impression that jasper was now integrated into the tomcat source. I looked at the build.xml and it looks like there is a line for jasper in there. I took it out and everything seemed to build ok. Should this ant directive still be in there? (from error, build.xml line 68) !--ant dir=${jasper.home} target=deploy property name=catalina.home value=${tomcat.build}/ /ant-- Matt Gregory eBusiness RD CTI, Inc. cell: 865-406-1431 work: 865-218-2767 ioem: [EMAIL PROTECTED] *see key block below ooem: [EMAIL PROTECTED] ***DISCLAIMER*** Everything in this email is to be considered the rumblings of an insane lunatic and should not be relied upon to make sane decisions. (in other words, If you take my advice and get hurt in the process it's not my fault). By getting out of your bed in the morning you automatically assume responsibility for your own mistakes and agree to hold the author of this message blameless for them. By reading this email you agree to live in complete peace and harmony with your fellow man, love and praise the almighty God of heaven, and regularly donate blood (unless you are a Jehovah's Witness, I understand they frown on that kind of thing). You are bound to this agreement under the DMCA so don't try anything or I'll sue you into oblivion. - 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]
mod_jk.conf and ajp13
Hello! I want to use ajp13 (not ajp12). I'm using Windows 2000 server and tomcat 3.2.1 I have declared into mod_jk.conf following lines: LoadModule jk_module modules/mod_jk.dll IfModule mod_jk.c JkWorkersFile fill-path-to/workers.properties JkLogFile logs/jk.log JkLogLevel warn JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /examples/* ajp13 /IfModule But when tomcat is started then i can see in mod_jk.conf-auto following lines: ... JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 JkMount /examples/servlet/* ajp12 JkMount /examples/*.jsp ajp12 How it is possible? I declared ajp13?? Many thanx! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question about AutoDeployment Feature of 4.1.18
Thanks Jacob for you reply, but I am wondering - if I have no existing directory, just a new .war file - should it unpack without a restart of tomcat or a call to the tomcat manager application? Does the running server know that a new war has been placed into webapps instinctively and unpack it with no intervention from myself? If so, then I must have something wrong with my config because it isn't doing this. :--) -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 3:12 PM To: Tomcat Users List Subject: RE: Question about AutoDeployment Feature of 4.1.18 If there is already a directory there, the .war will *not* be unpacked even if you drop a new one in. Also, if you have defined a Context ... for your app, the .war will, again, *not* be unpacked. The only time when the .war will be unpacked is if a directory doesn't already exist in the webapps directory which matches the name of your .war file (less the .war extension, of course). Jake At 12:26 PM 3/18/2003 +0100, you wrote: I want to make sure that I have configured it correctly and it is running the way it should - for the developers with regard to actually deploying automagically. They want to be able to add a war file into webapps - while the server is running - and it is automatically deployed with no intervention - either from a server restart or via the manager. I found this on the doc page for AutomaticApplicationDeployment( http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic% 2 0Application%20Deployment ): In addition to the automatic deployment that occurs at startup time, you can also request that new XML configuration files, WAR files, or subdirectories (containing web applications) that are dropped in to the appBase directory while Tomcat is running will be automatically deployed, according to the rules described above. I was told this does happen in NT, but it doesn't seem to be working on my unix box - host set-up as follows: Host name=coffee addressip.is.here debug=0 appBase=webapps unpackWARs=true autoDeploy=true Thanks again, Rachel -Original Message- From: Jamesey [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 12:09 PM To: [EMAIL PROTECTED] Subject: Re: Question about AutoDeployment Feature of 4.1.18 Rachel I been using 4.1.18 alot lately and i've been frustrated by the fact that i have to delete the unpacked war file directory and the war file itself every time i redeploy.. i beleive there is a way to make tomcat not unpack the war file .. something lik host unpackWar=false but i havent tried it myself. James Gerstel, Rachel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] c om... Hi All, Could someone please confirm how autoDeploy is supposed to work: You put a war file into webapps and then: 1.) Either restart the webserver and the war file is unpacked and a directory is created. or 2.) Use the manager tool to deploy the war file - or if the app was already there, then it can reload it. Is it possible for you to copy of war file into webapps and a running tomcat server will see it is there an automatically deploy it on it's own with no intervention? And, if the old unpacked app is there and you copy in a new war file and restart - does it create a new directory, overwriting the old one. Or should it only change files that are different from the new war file and the old app - or should it see that there is an old app that hasn't been removed and do nothing? I have been reading up on this and then got a developer account that differed from what I read so I was wondering if anyone else could clarify it further. Thanks, Rachel - 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 load balancing
I am testing config on 3 server (1 apache 2.0.43, 2 tomcat 4.1.12) with the mod_jk-2.0.43.so I don't understand how to define good values for the lbfactor to have same of tomcat session number on the two tomcat server. Can you help me to define the good value for lbfactory? Patrick GIRY Analyst Web e-mail : [EMAIL PROTECTED] Phone number : 33 1 64 80 30 91 -Message d'origine- De : Jackson, Stephen [mailto:[EMAIL PROTECTED] Envoy : mercredi 19 mars 2003 16:31 A : 'Tomcat Users List' Objet : RE: Tomcat 4 load balancing There are lots of solutions for stuff like this. You can get complicated or very simple. The simple answer is create a common 0 byte file when writing to the file and delete it when you are finished. Simply check for the existence of the file. A more complete solution would be to use an ejb or XML-RPC. XML-RPC is much simpler than an ejb. This would give you a 3rd JVM for common functionality across you application. You may not need to go here. You just need to evaluate how much time you want to spend ( and money ) to create a solution. -Original Message- From: Rastislav Vasil [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 10:10 AM To: [EMAIL PROTECTED] Subject: RE: Tomcat 4 load balancing Hi, I' sorry, my mystake - lb is a type of the worker, while it's name is loadbalancer, I changed following: default.worker=lb -- default.worker=loadbalancer worker.list=lb -- worker.list=loadbalancer Now it works, but I have a question for one of my next steps: For some operations that write to a file I used to use a SYNCHRONIZED block of code to be sure to have only one user writing to the file. Probably that won't work when using 2 Tomcat instances to write to the same file - am I right? What is the solution/practise here? Thanks, Rasto -Original Message- From: Rastislav Vasil Sent: Wednesday, March 19, 2003 3:58 PM To: '[EMAIL PROTECTED]' Subject: Tomcat 4 load balancing Hi all, I'm trying to configure 2 Tomcat (4.1.12) instances on different hosts to serve under single IIS 5 web server. I defined 2 workers uriworkermap.properties: ### default.worker=lb /examples=$(default.worker) /examples/*=$(default.worker) workers.properties: # workers.tomcat_home=C:\Tomcat4.1 workers.java_home=C:\jdk1.3.0_01 worker.list=lb worker.w1.port=8009 worker.w1.host=localhost worker.w1.type=ajp13 worker.w2.port=8009 worker.w2.host=host2 worker.w2.type=ajp13 worker.w1.lbfactor=1 worker.w2.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=w1, w2 ### I get The page cannot be displayed for http://localhost/examples I get following in isapi.log file: [Wed Mar 19 15:47:10 2003] [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61 [Wed Mar 19 15:47:10 2003] [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 [Wed Mar 19 15:47:10 2003] [jk_isapi_plugin.c (716)]: HttpExtensionProc error, service() failed What I'm trying to do is to have 2 Tomcats servering Java part of a single application. What I'm not sure is how to map balanced workers to a single url mapping in uriworkermap. props. According docs (http://localhost:8080/tomcat-docs/jk2/jk/workershowto.html) balanced_workers is a comma separated list of workers that the load balancer need to manage. These workers should not appear in the worker.list property. - ... I don't have then there...- so if I'm balancing workers, should workers.list contain only the name of the load-balancing worker? To what worker(s) should the url mapping be set to? Thanks in advance. Rasto - 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: Do not understand tomcat-apache autoconfiguration
If it wasn't deprecated, I'd probably go back and add a 3.3-style all-in directive to the 4.x auto-config. In the mean-time go back and read http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html#Using%20Apach eConfig. Vincent Panel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Very simple servlet - won't show up
Hi; I am trying to get a very simple servlet to display. This is my web.xml file: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-nameWindward Utilities/display-name servlet servlet-namehello/servlet-name servlet-classHelloWorldExample/servlet-class /servlet /web-app My directory is: C:\Program Files\Apache Group\Tomcat 4.1\webapps\utils\WEB-INF\web.xml C:\Program Files\Apache Group\Tomcat 4.1\webapps\utils\WEB-INF\classes\HelloWorldExample.* C:\Program Files\Apache Group\Tomcat 4.1\webapps\utils\WEB-INF\classes\LocalStrings*.properties When I put in the url http://localhost:8080/servlet/hello I get: HTTP Status 404 - /servlet/hello type Status report message /servlet/hello description The requested resource (/servlet/hello) is not available. Apache Tomcat/4.1.18 any ideas? thanks - dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Very simple servlet - won't show up
-Original Message- From: David Thielen [SMTP:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 6:36 AM To: Tomcat Users Subject:Very simple servlet - won't show up Hi; I am trying to get a very simple servlet to display. This is my web.xml file: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-nameWindward Utilities/display-name servlet servlet-namehello/servlet-name servlet-classHelloWorldExample/servlet-class /servlet [Nandish S Angadi] servlet-mapping servlet-nameservlet name/servlet-name url-patternpath to be here/url-pattern /servlet-mapping !-- this servlet mapping is missing-- /web-app My directory is: C:\Program Files\Apache Group\Tomcat 4.1\webapps\utils\WEB-INF\web.xml C:\Program Files\Apache Group\Tomcat 4.1\webapps\utils\WEB-INF\classes\HelloWorldExample.* C:\Program Files\Apache Group\Tomcat 4.1\webapps\utils\WEB-INF\classes\LocalStrings*.properties When I put in the url http://localhost:8080/servlet/hello I get: HTTP Status 404 - /servlet/hello type Status report message /servlet/hello description The requested resource (/servlet/hello) is not available. Apache Tomcat/4.1.18 any ideas? thanks - dave - 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.18, apache 2.0.43, mod_jk 2.0.43
Hello again, Is anyone running with the combination of Tomcat 4.1.18, Apache 2.0.43 and mod_jk 2.0.43 on Redhat 8? Marion -Original Message- From: Marion McKelvie [mailto:[EMAIL PROTECTED] Sent: 19 March 2003 10:38 To: [EMAIL PROTECTED] Subject: tomcat 4.1.18, apache 2.0.43, mod_jk 2.0.43 Hi, I have an installation using Tomcat 4.1.18, Apache 2.0.43 and mod_jk 2.0.43 running on Redhat 8, all installed from rpms as executables (no building from source). Everything works fine for a while until I get the following error in catalina.out 19-Mar-2003 10:00:20 org.apache.tomcat.util.log.CommonLogHandler log INFO: All threads are busy, waiting. Please increase maxThreads or check the servlet sttus75 75 I can get this error just by playing with the Tomcat examples for long enough (presumably after 75 activities). It's a bit like each thread is not being released after it's used. I have a comparable installation which runs without problems but it's using Tomcat 4.1.12 with Apache 1.3.22. Server.xml is pretty much as installed by default (I've commented out the 8080 connector) so it's using the Coyote connector: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ If I change the timeout to 2, catalina.out reports that the timeout has been reached. workers.properties is as installed by default except that I've corrected the java_home path. mod_jk.conf is as follows JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /var/log/httpd/mod_jk.log JkLogLevel error # # Root context mounts for Tomcat # JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 # # Auto configuration for the /examples context starts. # # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory # # The following line mounts all JSP files and the /servlet/ uri to tomcat # JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 # # The following line prohibits users from directly access WEB-INF # Location /examples/WEB-INF/ AllowOverride None deny from all /Location ### # Auto configuration for the /examples context ends. ### Any help much appreciated - I'm sure I've probably missed something obvious but all the restarts are getting very annoying! Marion - 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: Error : JDBC ODBC
Where did you put your oracle jar ??? -Message d'origine- De : sanjeev/tcpl/[EMAIL PROTECTED] [mailto:sanjeev/tcpl/[EMAIL PROTECTED] Envoye : jeudi 8 novembre 2001 07:10 A : [EMAIL PROTECTED]; [EMAIL PROTECTED] Objet : Error : JDBC ODBC hi, i am facing these following errors if i using thin oracle client SQL Excepiton is Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver' code of server.xml Context path=/PO docBase=po debug=0 Resource name=jdbc/PURC auth=SERVLET type=javax.sql.DataSource/ ResourceParams name=jdbc/PURC parameternameuser/namevaluescott/value/parameter parameternamepassword/namevaluetiger/value/parameter parameternamedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value/parameter parameternamedriverName/name valuejdbc:oracle:thin: @192.10.15.68:1521:PURC/value/parameter /ResourceParams /Context --server.xml --- if i using simple jdbc oracle client SQL Excepiton is Cannot create JDBC driver of class 'sun.jdbc.odbc.JdbcOdbcDriver' for connect URL 'null' code of server.xml Context path=/PO docBase=po debug=0 Resource name=jdbc/PO auth=SERVLET type=javax.sql.DataSource/ ResourceParams name=jdbc/PO parameternameuser/namevaluescott/value/parameter parameternamepassword/namevaluetiger/value/parameter parameternamedriverClassName/name valuesun.jdbc.odbc.JdbcOdbcDriver/value/parameter parameternamedriverName/name valuejdbc:odbc:PURC/value/parameter /ResourceParams /Context --server.xml --- system configuration server windows NT4.0 Tomcat 4.1 jdk1.4 oracle 8i thanks in advance regards Sanjeev - 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: mod_jk.conf and ajp13
Hello, did you uncommented the following lines in server.xml? !-- Apache AJP13 support. This is also used to shut down tomcat. -- Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/ Parameter name=port value=8009/ /Connector and your workers.properties has something similar to the following lines: worker.list=ajp12, ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.loadbalancer.balanced_workers=ajp12, ajp13 Hope this helps. - Original Message - From: Erki Kriks [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, March 20, 2003 9:49 AM Subject: mod_jk.conf and ajp13 Hello! I want to use ajp13 (not ajp12). I'm using Windows 2000 server and tomcat 3.2.1 I have declared into mod_jk.conf following lines: LoadModule jk_module modules/mod_jk.dll IfModule mod_jk.c JkWorkersFile fill-path-to/workers.properties JkLogFile logs/jk.log JkLogLevel warn JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /examples/* ajp13 /IfModule But when tomcat is started then i can see in mod_jk.conf-auto following lines: ... JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 JkMount /examples/servlet/* ajp12 JkMount /examples/*.jsp ajp12 How it is possible? I declared ajp13?? Many thanx! - 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: mod_jk.conf and ajp13
Hi! Thank you for your help! I have the same configuration. But why are you using worker.list=ajp12, ajp13 instead of worker.list=ajp13 , while ajp13 is only required? It's very interesting, all auto-configuration files includes only ajp12 (instead of ajp13)? But nowhere ajp12 is declared, only ajp13 is used :-) Hello, did you uncommented the following lines in server.xml? !-- Apache AJP13 support. This is also used to shut down tomcat. -- Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/ Parameter name=port value=8009/ /Connector and your workers.properties has something similar to the following lines: worker.list=ajp12, ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.loadbalancer.balanced_workers=ajp12, ajp13 Hope this helps. - Original Message - From: Erki Kriks [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, March 20, 2003 9:49 AM Subject: mod_jk.conf and ajp13 Hello! I want to use ajp13 (not ajp12). I'm using Windows 2000 server and tomcat 3.2.1 I have declared into mod_jk.conf following lines: LoadModule jk_module modules/mod_jk.dll IfModule mod_jk.c JkWorkersFile fill-path-to/workers.properties JkLogFile logs/jk.log JkLogLevel warn JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /examples/* ajp13 /IfModule But when tomcat is started then i can see in mod_jk.conf-auto following lines: ... JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 JkMount /examples/servlet/* ajp12 JkMount /examples/*.jsp ajp12 How it is possible? I declared ajp13?? Many thanx! - 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: mod_jk.conf and ajp13
Hi! I suppose ajp12 is used in tomcat 3.2.1 to shutdown Tomcat, so it's still required. If you're still having trouble, you'd check which mod_jk configuration file is used to configure mod_jk: every time Tomcat restarts, it creates a new auto-config files, which, as you noted, declares to use only ajp12. You should tell httpd-server to use your mod_jk configuration file. (i.e. in Apache, you'd modify the last line of httpd.conf in include /tomcat-MY_mod_jk.conf ) - Original Message - From: Erki Kriks [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, March 20, 2003 11:08 AM Subject: Re: mod_jk.conf and ajp13 Hi! Thank you for your help! I have the same configuration. But why are you using worker.list=ajp12, ajp13 instead of worker.list=ajp13 , while ajp13 is only required? It's very interesting, all auto-configuration files includes only ajp12 (instead of ajp13)? But nowhere ajp12 is declared, only ajp13 is used :-) Hello, did you uncommented the following lines in server.xml? !-- Apache AJP13 support. This is also used to shut down tomcat. -- Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/ Parameter name=port value=8009/ /Connector and your workers.properties has something similar to the following lines: worker.list=ajp12, ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.loadbalancer.balanced_workers=ajp12, ajp13 Hope this helps. - Original Message - From: Erki Kriks [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, March 20, 2003 9:49 AM Subject: mod_jk.conf and ajp13 Hello! I want to use ajp13 (not ajp12). I'm using Windows 2000 server and tomcat 3.2.1 I have declared into mod_jk.conf following lines: LoadModule jk_module modules/mod_jk.dll IfModule mod_jk.c JkWorkersFile fill-path-to/workers.properties JkLogFile logs/jk.log JkLogLevel warn JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /examples/* ajp13 /IfModule But when tomcat is started then i can see in mod_jk.conf-auto following lines: ... JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 JkMount /examples/servlet/* ajp12 JkMount /examples/*.jsp ajp12 How it is possible? I declared ajp13?? Many thanx! - 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]
Problem with a Database ConnectionPool
Hi, I use Tomcat 4.0.1 with the parameter reloadable=true for my webapp. I have a problem with my Database Connection Pool when Tomcat Reloading this Context after install new classes or *.jar. My connections are not destroy by tomcat and remain latency but my ConnectionPool can't use its. So, my ConnectionPool create new connections but the number of connections increase. I use a finalyse method in my connectionPool but its not call . Do you have ideas ? Thank you for your help Albini Guillaume - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
restricting accesb by ip address
Hello, I am using tomcat4 and would like to restrict access to a set of jsp pages, based on the IP address of the client. I have found how to do this with apache, but I am using tomcat standalone. Please can anyone tell me if this is possible with Tomcat standalone. Neil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: restricting accesb by ip address
Try the Remote Address Filter http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html -Tim Neil Blue wrote: Hello, I am using tomcat4 and would like to restrict access to a set of jsp pages, based on the IP address of the client. I have found how to do this with apache, but I am using tomcat standalone. Please can anyone tell me if this is possible with Tomcat standalone. Neil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: restricting accesb by ip address
if it is a full application please look at Valve tag in server.xml Thanks guru -Original Message- From: Neil Blue [mailto:[EMAIL PROTECTED] Sent: 20 March 2003 11:55 To: '[EMAIL PROTECTED]' Subject: restricting accesb by ip address Hello, I am using tomcat4 and would like to restrict access to a set of jsp pages, based on the IP address of the client. I have found how to do this with apache, but I am using tomcat standalone. Please can anyone tell me if this is possible with Tomcat standalone. Neil - 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: restricting accesb by ip address
Context path=/admin docBase=../server/webapps/admin debug=0 privileged=true !-- Uncomment this Valve to limit access to the Admin app to localhost for obvious security reasons. Allow may be a comma-separated list of hosts (or even regular expressions). Valve className=org.apache.catalina.valves.RemoteAddrValve allow=127.0.0.1/ -- Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_admin_log. suffix=.txt timestamp=true/ /Context This is an example ... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 20 March 2003 12:04 To: [EMAIL PROTECTED] Subject: RE: restricting accesb by ip address if it is a full application please look at Valve tag in server.xml Thanks guru -Original Message- From: Neil Blue [mailto:[EMAIL PROTECTED] Sent: 20 March 2003 11:55 To: '[EMAIL PROTECTED]' Subject: restricting accesb by ip address Hello, I am using tomcat4 and would like to restrict access to a set of jsp pages, based on the IP address of the client. I have found how to do this with apache, but I am using tomcat standalone. Please can anyone tell me if this is possible with Tomcat standalone. Neil - 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]
Explanation for the server.xml
Hi, Where can I find an explanation of the tags in the server.xml of the Tomcat and the changes in the various versions of Tomcat. Kind Regards Balaji - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Most deployed version of Tomcat
Hi, Do anyone know which version of Tomcat is highly deployed? 3.x / 4.x . Is it advisable to move to the latest version of Tomcat? Kind Regards Balaji - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Explanation for the server.xml
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/index.html -Tim B A L A J I wrote: Hi, Where can I find an explanation of the tags in the server.xml of the Tomcat and the changes in the various versions of Tomcat. Kind Regards Balaji - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: restricting accesb by ip address
Thanks, I added that to the examples Context and it works fine :) I noted that I need to access the pages as http://127.0.0.1:8080... and that using my host name did not allow access. This is not a problem just an observation. Cheers Neil -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 20 March 2003 12:05 To: [EMAIL PROTECTED] Subject: RE: restricting accesb by ip address Context path=/admin docBase=../server/webapps/admin debug=0 privileged=true !-- Uncomment this Valve to limit access to the Admin app to localhost for obvious security reasons. Allow may be a comma-separated list of hosts (or even regular expressions). Valve className=org.apache.catalina.valves.RemoteAddrValve allow=127.0.0.1/ -- Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_admin_log. suffix=.txt timestamp=true/ /Context This is an example ... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 20 March 2003 12:04 To: [EMAIL PROTECTED] Subject: RE: restricting accesb by ip address if it is a full application please look at Valve tag in server.xml Thanks guru -Original Message- From: Neil Blue [mailto:[EMAIL PROTECTED] Sent: 20 March 2003 11:55 To: '[EMAIL PROTECTED]' Subject: restricting accesb by ip address Hello, I am using tomcat4 and would like to restrict access to a set of jsp pages, based on the IP address of the client. I have found how to do this with apache, but I am using tomcat standalone. Please can anyone tell me if this is possible with Tomcat standalone. Neil - 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: Most deployed version of Tomcat
Everyone will probably recommend 4.1.X. I still use 4.0.X with no problems on a fairly high volume site. Stay away from 3.X unless you are stuck with a 1.1 JDK or have some other wacky technical requirement. Not that 3.X is bad - it only supports the 2.2 spec. -Tim B A L A J I wrote: Hi, Do anyone know which version of Tomcat is highly deployed? 3.x / 4.x . Is it advisable to move to the latest version of Tomcat? Kind Regards Balaji - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Do not understand tomcat-apache autoconfiguration
Well, thanks, but I've already read this. It is not really explaining WHERE are supposed to be those Listeners that turn tomcat ApacheConfig on. When you read the doc, it seems that you're supposed to put one listener inside the Server tag and another one inside each Context tag (remember I do not want to use Virtualhosting). It's not clear whether you're supposed to use append=true or not. In any cases, it does not generate what I want (and there also seems to be some bugs in here : restarting tomcat twice does not give the same mod_jk.conf). I've also tried to put them in many places whithout success. However, I recently found a mod_jk.conf shipped with a RedHat RPM and it seems to have been auto-generated as it contains the following lines : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location This group of directives is exactly what I need but I don't know how to tell tomcat to generate them automatically. I'm almost forced to make a perl script to do something like For each context you're managing, generate an Alias, a Directory and a JkMount for Apache (using perl to manage a java application server... a bit strange isn't it ? :-) On Thu, 2003-03-20 at 10:04, Bill Barker wrote: If it wasn't deprecated, I'd probably go back and add a 3.3-style all-in directive to the 4.x auto-config. In the mean-time go back and read http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html#Using%20Apach eConfig. Vincent Panel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] signature.asc Description: This is a digitally signed message part
Worker found, but not doing any work?
I'm using Tomcat 4.1.18 with Apache 2.0.44. When I browse directly to the Tomcat examples all the servlets and JSPs work fine. I'm having trouble accessing the examples through apache. I've found numerous examples on the web for setup. Each is different and unfortunately, none of them has worked! I've gotten to the point with I can display all the static content and can see from the mod-_jk.log file that I have found a worker. Its just the worker is returning 404 and I don't know why?? Any thoughts would be GREATLY appreciated. Thanks, F [Thu Mar 20 08:58:15 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/jsp/dates/date.jsp' [Thu Mar 20 08:58:15 2003] [jk_uri_worker_map.c (558)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp [Thu Mar 20 08:58:15 2003] [mod_jk.c (1668)]: Into handler r-proxyreq=0 r-handler=jakarta-servlet r-notes=7932888 worker=ajp13 [Thu Mar 20 08:58:15 2003] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 [Thu Mar 20 08:58:15 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker [Thu Mar 20 08:58:15 2003] [mod_jk.c (485)]: agsp=80 agsn=www.fcgphoto.com hostn=www.fcgphoto.com shostn=www.fcgphoto.com cbsport=0 sport=0 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (1404)]: Into jk_worker_t::get_endpoint [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (1116)]: Into jk_endpoint_t::service [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (432)]: ajp_marshal_into_msgb - Done [Thu Mar 20 08:58:15 2003] [jk_connect.c (132)]: Into jk_open_socket [Thu Mar 20 08:58:15 2003] [jk_connect.c (139)]: jk_open_socket, try to connect socket = 664 [Thu Mar 20 08:58:15 2003] [jk_connect.c (148)]: jk_open_socket, after connect ret = 0 [Thu Mar 20 08:58:15 2003] [jk_connect.c (157)]: jk_open_socket, set TCP_NODELAY to on [Thu Mar 20 08:58:15 2003] [jk_connect.c (174)]: jk_open_socket, return, sd = 664 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (614)]: In jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 664 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (642)]: sending to ajp13 #581 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (884)]: ajp_send_request 2: request body to send 0 - request body to resend 0 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (729)]: received from ajp13 #81 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (483)]: ajp_unmarshal_response: status = 404 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (488)]: ajp_unmarshal_response: Number of headers is = 2 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[0] [Content-Type] = [text/html;charset=ISO-8859-1] [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[1] [Content-Language] = [en-US] [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (729)]: received from ajp13 #726 [Thu Mar 20 08:58:15 2003] [mod_jk.c (386)]: writing 722 (722) out of 722 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (729)]: received from ajp13 #2 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (1382)]: Into jk_endpoint_t::done, recycling connection [Thu Mar 20 08:58:15 2003] ajp13 www.fcgphoto.com 0.03 = __ My full time permanent email address is always: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
migrate from webapp to jk2
Hi, I still don't understand how to configure jk2. Let me explain a bit more. Today, we use Apache 1.2.x + Tomcat 4.0.x + mod_webapp. For every website I host, I do this: 1- Configure the virtual on Apache 2- Map some directories to tomcat 3- Configure a new host in Tomcat, with a related context to every directory mapped from apache. For example: http://portal/ - on apache http://portal/dinamic/ - on tomcat Now, I need to use jk2 to have more possibilities, beside the directory mapping, but I'm not understanding worker2.properties and what I need to put on httpd.conf to map this directories do Tomcat. Thanks! Herbert STOP THE WAR - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I install the ant to run with the TomCat 4.1.18 integrated with IIS?
Hello all, Somebody know How can I install the ant to run with the TomCat 4.1.18 integrated with IIS?? Please, if someone has some documentations or link about it let me know. I'll appreciate it!! Tks. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.463 / Virus Database: 262 - Release Date: 17/3/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question about AutoDeployment Feature of 4.1.18
You didn't clarify whether you have a Context ... entry for your app in server.xml or a context configuration file. If you do, then no, your .war file won't be automatically expanded. However, if you don't, with the default setup, if you drop your.war file into the webapps directory, it should be autoexpanded and that directory autodeployed. If this is no happening under said circumstances, then yes, something is wrong with your setup. Jake At 09:50 AM 3/20/2003 +0100, you wrote: Thanks Jacob for you reply, but I am wondering - if I have no existing directory, just a new .war file - should it unpack without a restart of tomcat or a call to the tomcat manager application? Does the running server know that a new war has been placed into webapps instinctively and unpack it with no intervention from myself? If so, then I must have something wrong with my config because it isn't doing this. :--) -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 3:12 PM To: Tomcat Users List Subject: RE: Question about AutoDeployment Feature of 4.1.18 If there is already a directory there, the .war will *not* be unpacked even if you drop a new one in. Also, if you have defined a Context ... for your app, the .war will, again, *not* be unpacked. The only time when the .war will be unpacked is if a directory doesn't already exist in the webapps directory which matches the name of your .war file (less the .war extension, of course). Jake At 12:26 PM 3/18/2003 +0100, you wrote: I want to make sure that I have configured it correctly and it is running the way it should - for the developers with regard to actually deploying automagically. They want to be able to add a war file into webapps - while the server is running - and it is automatically deployed with no intervention - either from a server restart or via the manager. I found this on the doc page for AutomaticApplicationDeployment( http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic% 2 0Application%20Deployment ): In addition to the automatic deployment that occurs at startup time, you can also request that new XML configuration files, WAR files, or subdirectories (containing web applications) that are dropped in to the appBase directory while Tomcat is running will be automatically deployed, according to the rules described above. I was told this does happen in NT, but it doesn't seem to be working on my unix box - host set-up as follows: Host name=coffee addressip.is.here debug=0 appBase=webapps unpackWARs=true autoDeploy=true Thanks again, Rachel -Original Message- From: Jamesey [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 12:09 PM To: [EMAIL PROTECTED] Subject: Re: Question about AutoDeployment Feature of 4.1.18 Rachel I been using 4.1.18 alot lately and i've been frustrated by the fact that i have to delete the unpacked war file directory and the war file itself every time i redeploy.. i beleive there is a way to make tomcat not unpack the war file .. something lik host unpackWar=false but i havent tried it myself. James Gerstel, Rachel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] c om... Hi All, Could someone please confirm how autoDeploy is supposed to work: You put a war file into webapps and then: 1.) Either restart the webserver and the war file is unpacked and a directory is created. or 2.) Use the manager tool to deploy the war file - or if the app was already there, then it can reload it. Is it possible for you to copy of war file into webapps and a running tomcat server will see it is there an automatically deploy it on it's own with no intervention? And, if the old unpacked app is there and you copy in a new war file and restart - does it create a new directory, overwriting the old one. Or should it only change files that are different from the new war file and the old app - or should it see that there is an old app that hasn't been removed and do nothing? I have been reading up on this and then got a developer account that differed from what I read so I was wondering if anyone else could clarify it further. Thanks, Rachel - 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]
build tomcat-connectors xdocs
Hi, Anybody knows how to build xdocs from jakarta-tomcat-connectors? It comes in XML format without linking to XSL... I suppose that it need to be build to HTML. Thanks, Herbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Do not understand tomcat-apache autoconfiguration
Close. One inside the Server tag and one inside each Host tag that you want autogenerated. Here's mine... Server Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=mod_jk.dll jkDebug=info / ... ... ... Host ... Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false / ... ... ... /Host ... ... ... /Server Jake At 02:09 PM 3/20/2003 +0100, you wrote: Well, thanks, but I've already read this. It is not really explaining WHERE are supposed to be those Listeners that turn tomcat ApacheConfig on. When you read the doc, it seems that you're supposed to put one listener inside the Server tag and another one inside each Context tag (remember I do not want to use Virtualhosting). It's not clear whether you're supposed to use append=true or not. In any cases, it does not generate what I want (and there also seems to be some bugs in here : restarting tomcat twice does not give the same mod_jk.conf). I've also tried to put them in many places whithout success. However, I recently found a mod_jk.conf shipped with a RedHat RPM and it seems to have been auto-generated as it contains the following lines : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location This group of directives is exactly what I need but I don't know how to tell tomcat to generate them automatically. I'm almost forced to make a perl script to do something like For each context you're managing, generate an Alias, a Directory and a JkMount for Apache (using perl to manage a java application server... a bit strange isn't it ? :-) On Thu, 2003-03-20 at 10:04, Bill Barker wrote: If it wasn't deprecated, I'd probably go back and add a 3.3-style all-in directive to the 4.x auto-config. In the mean-time go back and read http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html#Using%20Apach eConfig. Vincent Panel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Do not understand tomcat-apache autoconfiguration
OK, thanks But it generates Virutalhost directives and inside, there's only JkMount's, no Directory, no Alias, right ? What I really need (and I'm pretty sure I'm not the only one) is something like this (for each of my contexts) : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location On Thu, 2003-03-20 at 15:56, Jacob Kjome wrote: Close. One inside the Server tag and one inside each Host tag that you want autogenerated. Here's mine... Server Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=mod_jk.dll jkDebug=info / ... ... ... Host ... Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false / ... ... ... /Host ... ... ... /Server Jake At 02:09 PM 3/20/2003 +0100, you wrote: Well, thanks, but I've already read this. It is not really explaining WHERE are supposed to be those Listeners that turn tomcat ApacheConfig on. When you read the doc, it seems that you're supposed to put one listener inside the Server tag and another one inside each Context tag (remember I do not want to use Virtualhosting). It's not clear whether you're supposed to use append=true or not. In any cases, it does not generate what I want (and there also seems to be some bugs in here : restarting tomcat twice does not give the same mod_jk.conf). I've also tried to put them in many places whithout success. However, I recently found a mod_jk.conf shipped with a RedHat RPM and it seems to have been auto-generated as it contains the following lines : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location This group of directives is exactly what I need but I don't know how to tell tomcat to generate them automatically. I'm almost forced to make a perl script to do something like For each context you're managing, generate an Alias, a Directory and a JkMount for Apache (using perl to manage a java application server... a bit strange isn't it ? :-) On Thu, 2003-03-20 at 10:04, Bill Barker wrote: If it wasn't deprecated, I'd probably go back and add a 3.3-style all-in directive to the 4.x auto-config. In the mean-time go back and read http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html#Using%20Apach eConfig. Vincent Panel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] signature.asc Description: This is a digitally signed message part
Re: Do not understand tomcat-apache autoconfiguration
Here's an example of exactly what it creates: http://www.johnturner.com/howto/mod_jk_conf.html John On 20 Mar 2003 16:06:41 +0100, Vincent Panel [EMAIL PROTECTED] wrote: OK, thanks But it generates Virutalhost directives and inside, there's only JkMount's, no Directory, no Alias, right ? What I really need (and I'm pretty sure I'm not the only one) is something like this (for each of my contexts) : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location On Thu, 2003-03-20 at 15:56, Jacob Kjome wrote: Close. One inside the Server tag and one inside each Host tag that you want autogenerated. Here's mine... Server Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=mod_jk.dll jkDebug=info / ... ... ... Host ... Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false / ... ... ... /Host ... ... ... /Server Jake At 02:09 PM 3/20/2003 +0100, you wrote: Well, thanks, but I've already read this. It is not really explaining WHERE are supposed to be those Listeners that turn tomcat ApacheConfig on. When you read the doc, it seems that you're supposed to put one listener inside the Server tag and another one inside each Context tag (remember I do not want to use Virtualhosting). It's not clear whether you're supposed to use append=true or not. In any cases, it does not generate what I want (and there also seems to be some bugs in here : restarting tomcat twice does not give the same mod_jk.conf). I've also tried to put them in many places whithout success. However, I recently found a mod_jk.conf shipped with a RedHat RPM and it seems to have been auto-generated as it contains the following lines : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location This group of directives is exactly what I need but I don't know how to tell tomcat to generate them automatically. I'm almost forced to make a perl script to do something like For each context you're managing, generate an Alias, a Directory and a JkMount for Apache (using perl to manage a java application server... a bit strange isn't it ? :-) On Thu, 2003-03-20 at 10:04, Bill Barker wrote: If it wasn't deprecated, I'd probably go back and add a 3.3-style all-in directive to the 4.x auto-config. In the mean-time go back and read http://jakarta.apache.org/tomcat/tomcat-4.1- doc/config/jk.html#Using%20Apach eConfig. Vincent Panel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with a Database ConnectionPool
Can you destroy it in your initialization servlet's destroy method? -Original Message- From: Guillaume Albini [mailto:[EMAIL PROTECTED] Sent: March 20, 2003 6:32 AM To: [EMAIL PROTECTED] Subject: Problem with a Database ConnectionPool Hi, I use Tomcat 4.0.1 with the parameter reloadable=true for my webapp. I have a problem with my Database Connection Pool when Tomcat Reloading this Context after install new classes or *.jar. My connections are not destroy by tomcat and remain latency but my ConnectionPool can't use its. So, my ConnectionPool create new connections but the number of connections increase. I use a finalyse method in my connectionPool but its not call . Do you have ideas ? Thank you for your help Albini Guillaume - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Oracle Designer and Tomcat
I am using Oracle Designer to do my database stuff and Tomcat to manage my JSP. However, Oracle designer, which was installed first, stopped running properly after I installed Tomcat. I get an error claiming that my protocol adaptor in my TNSNAMES file is unknown and I can't open Designer or Repository. I have poked through any relevant files and the protocol is always TCP/IP nothing weird. I don't know for sure that this is cause and effect a result of installing Tomcat but before I rebuild my machine I thought I would ask if anyone else had a similar experience and what was the resolution? Sandra - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XP and session persistence
I have run a web application on NT and it works fine, when installed (with tomcat 4.0) on XP, it does not work properly. The problem seems to be session persistence. Under XP, when creating a session, tomcat does not attempt to put a cookie (JSESSIONID) to the browser. Has anybody come across this?
RE: Do not understand tomcat-apache autoconfiguration. To John Turner.
It for me is the better example about how-to... And John, I need configure now... :) Tomcat with IIS and SQL Server. Do you want other document how-to to realize these connections?? Or a link? Tnks, Regards, Victor González *** -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 9:12 AM To: Tomcat Users List Subject: Re: Do not understand tomcat-apache autoconfiguration Here's an example of exactly what it creates: http://www.johnturner.com/howto/mod_jk_conf.html John On 20 Mar 2003 16:06:41 +0100, Vincent Panel [EMAIL PROTECTED] wrote: OK, thanks But it generates Virutalhost directives and inside, there's only JkMount's, no Directory, no Alias, right ? What I really need (and I'm pretty sure I'm not the only one) is something like this (for each of my contexts) : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location On Thu, 2003-03-20 at 15:56, Jacob Kjome wrote: Close. One inside the Server tag and one inside each Host tag that you want autogenerated. Here's mine... Server Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=mod_jk.dll jkDebug=info / ... ... ... Host ... Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false / ... ... ... /Host ... ... ... /Server Jake At 02:09 PM 3/20/2003 +0100, you wrote: Well, thanks, but I've already read this. It is not really explaining WHERE are supposed to be those Listeners that turn tomcat ApacheConfig on. When you read the doc, it seems that you're supposed to put one listener inside the Server tag and another one inside each Context tag (remember I do not want to use Virtualhosting). It's not clear whether you're supposed to use append=true or not. In any cases, it does not generate what I want (and there also seems to be some bugs in here : restarting tomcat twice does not give the same mod_jk.conf). I've also tried to put them in many places whithout success. However, I recently found a mod_jk.conf shipped with a RedHat RPM and it seems to have been auto-generated as it contains the following lines : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location This group of directives is exactly what I need but I don't know how to tell tomcat to generate them automatically. I'm almost forced to make a perl script to do something like For each context you're managing, generate an Alias, a Directory and a JkMount for Apache (using perl to manage a java application server... a bit strange isn't it ? :-) On Thu, 2003-03-20 at 10:04, Bill Barker wrote: If it wasn't deprecated, I'd probably go back and add a 3.3-style all-in directive to the 4.x auto-config. In the mean-time go back and read http://jakarta.apache.org/tomcat/tomcat-4.1- doc/config/jk.html#Using%20Apach eConfig. Vincent Panel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Do not understand tomcat-apache autoconfiguration
Well, you could try it and see. Here is what is generated for me (attached)... Jake At 04:06 PM 3/20/2003 +0100, you wrote: OK, thanks But it generates Virutalhost directives and inside, there's only JkMount's, no Directory, no Alias, right ? What I really need (and I'm pretty sure I'm not the only one) is something like this (for each of my contexts) : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location On Thu, 2003-03-20 at 15:56, Jacob Kjome wrote: Close. One inside the Server tag and one inside each Host tag that you want autogenerated. Here's mine... Server Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=mod_jk.dll jkDebug=info / ... ... ... Host ... Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false / ... ... ... /Host ... ... ... /Server Jake At 02:09 PM 3/20/2003 +0100, you wrote: Well, thanks, but I've already read this. It is not really explaining WHERE are supposed to be those Listeners that turn tomcat ApacheConfig on. When you read the doc, it seems that you're supposed to put one listener inside the Server tag and another one inside each Context tag (remember I do not want to use Virtualhosting). It's not clear whether you're supposed to use append=true or not. In any cases, it does not generate what I want (and there also seems to be some bugs in here : restarting tomcat twice does not give the same mod_jk.conf). I've also tried to put them in many places whithout success. However, I recently found a mod_jk.conf shipped with a RedHat RPM and it seems to have been auto-generated as it contains the following lines : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location This group of directives is exactly what I need but I don't know how to tell tomcat to generate them automatically. I'm almost forced to make a perl script to do something like For each context you're managing, generate an Alias, a Directory and a JkMount for Apache (using perl to manage a java application server... a bit strange isn't it ? :-) On Thu, 2003-03-20 at 10:04, Bill Barker wrote: If it wasn't deprecated, I'd probably go back and add a 3.3-style all-in directive to the 4.x auto-config. In the mean-time go back and read http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html#Using%20Apach eConfig. Vincent Panel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ## Auto generated on Thu Mar 20 09:42:45 CST 2003## IfModule !mod_jk.c LoadModule jk_module C:/Java/Apache/Jakarta/tomcat-4.1.19/mod_jk.dll /IfModule JkWorkersFile C:/Java/Apache/Jakarta/tomcat-4.1.19/conf/jk/workers.properties JkLogFile C:/Java/Apache/Jakarta/tomcat-4.1.19/logs/mod_jk.log JkLogLevel info VirtualHost localhost ServerName localhost localhost:/admin # Static files Alias /admin C:/Java/Apache/Jakarta/tomcat-4.1.19/webapps/../server/webapps/admin Directory C:/Java/Apache/Jakarta/tomcat-4.1.19/webapps/../server/webapps/admin Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /admin/WEB-INF/* AllowOverride None deny from all /Location Location /admin/META-INF/* AllowOverride None deny from all /Location # # Use Directory too. On Windows, Location doesn't work unless case matches # Directory C:/Java/Apache/Jakarta/tomcat-4.1.19/webapps/../server/webapps/admin/WEB-INF/ AllowOverride None deny from all /Directory Directory C:/Java/Apache/Jakarta/tomcat-4.1.19/webapps/../server/webapps/admin/META-INF/ AllowOverride None deny from all /Directory JkMount /admin/j_security_check ajp13 JkMount /admin/*.do ajp13 JkMount /admin/*.jsp ajp13 localhost:/gateway # Static files Alias /gateway C:/Java/Apache/Jakarta/tomcat-4.1.19/webapps/gateway Directory
Re: Problem with a Database ConnectionPool
No, I use Struts 1.0.2 and my ConnectionPool call in business method outside my servlet's On Thu, 20 Mar 2003 09:59:54 -0500 Phillip Qin [EMAIL PROTECTED] wrote: Can you destroy it in your initialization servlet's destroy method? -Original Message- From: Guillaume Albini [mailto:[EMAIL PROTECTED] Sent: March 20, 2003 6:32 AM To: [EMAIL PROTECTED] Subject: Problem with a Database ConnectionPool Hi, I use Tomcat 4.0.1 with the parameter reloadable=true for my webapp. I have a problem with my Database Connection Pool when Tomcat Reloading this Context after install new classes or *.jar. My connections are not destroy by tomcat and remain latency but my ConnectionPool can't use its. So, my ConnectionPool create new connections but the number of connections increase. I use a finalyse method in my connectionPool but its not call . Do you have ideas ? Thank you for your help Albini Guillaume - 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 error when starting after enabling Ajp13Connector
All I am trying to plugin tomcat with IIS 5 using jk1.0 which requires enabling org.apache.ajp.tomcat4.Ajp13Connector. I commented out the org.apache.coyote.tomcat4.CoyoteConnector and uncommented org.apache.ajp.tomcat4.Ajp13Connector. Then I got a exception below when tomcat started. What's wrong with that ? Thanks. Mar 20, 2003 10:48:16 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Mar 20, 2003 10:48:16 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Mar 20, 2003 10:48:17 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Mar 20, 2003 10:48:17 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 ServerLifecycleListener: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with Ajp13Connector at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:225 ) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve rLifecycleListener.java:369) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve rLifecycleListener.java:777) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve rLifecycleListener.java:751) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve rLifecycleListener.java:339) at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Ser verLifecycleListener.java:206) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:166) at org.apache.catalina.core.StandardServer.start(StandardServer.java:218 2) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Mar 20, 2003 10:48:22 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Tim (Qinjian) Jian 3833 Farragut Ave. Kensington, MD 20895 Email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Do not understand tomcat-apache autoconfiguration. To John Turner.
Sorry, I don't use IIS for web servers. John On Thu, 20 Mar 2003 09:46:53 -0600, Victor Gonzalez [EMAIL PROTECTED] wrote: It for me is the better example about how-to... And John, I need configure now... :) Tomcat with IIS and SQL Server. Do you want other document how-to to realize these connections?? Or a link? Tnks, Regards, Victor González *** -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 9:12 AM To: Tomcat Users List Subject: Re: Do not understand tomcat-apache autoconfiguration Here's an example of exactly what it creates: http://www.johnturner.com/howto/mod_jk_conf.html John On 20 Mar 2003 16:06:41 +0100, Vincent Panel [EMAIL PROTECTED] wrote: OK, thanks But it generates Virutalhost directives and inside, there's only JkMount's, no Directory, no Alias, right ? What I really need (and I'm pretty sure I'm not the only one) is something like this (for each of my contexts) : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location On Thu, 2003-03-20 at 15:56, Jacob Kjome wrote: Close. One inside the Server tag and one inside each Host tag that you want autogenerated. Here's mine... Server Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=mod_jk.dll jkDebug=info / ... ... ... Host ... Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false / ... ... ... /Host ... ... ... /Server Jake At 02:09 PM 3/20/2003 +0100, you wrote: Well, thanks, but I've already read this. It is not really explaining WHERE are supposed to be those Listeners that turn tomcat ApacheConfig on. When you read the doc, it seems that you're supposed to put one listener inside the Server tag and another one inside each Context tag (remember I do not want to use Virtualhosting). It's not clear whether you're supposed to use append=true or not. In any cases, it does not generate what I want (and there also seems to be some bugs in here : restarting tomcat twice does not give the same mod_jk.conf). I've also tried to put them in many places whithout success. However, I recently found a mod_jk.conf shipped with a RedHat RPM and it seems to have been auto-generated as it contains the following lines : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location This group of directives is exactly what I need but I don't know how to tell tomcat to generate them automatically. I'm almost forced to make a perl script to do something like For each context you're managing, generate an Alias, a Directory and a JkMount for Apache (using perl to manage a java application server... a bit strange isn't it ? :-) On Thu, 2003-03-20 at 10:04, Bill Barker wrote: If it wasn't deprecated, I'd probably go back and add a 3.3-style all-in directive to the 4.x auto-config. In the mean-time go back and read http://jakarta.apache.org/tomcat/tomcat-4.1- doc/config/jk.html#Using%20Apach eConfig. Vincent Panel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Do not understand tomcat-apache autoconfiguration. To John Turner.
And a how-to with SQL Server?? -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 10:04 AM To: Tomcat Users List Subject: Re: Do not understand tomcat-apache autoconfiguration. To John Turner. Sorry, I don't use IIS for web servers. John On Thu, 20 Mar 2003 09:46:53 -0600, Victor Gonzalez [EMAIL PROTECTED] wrote: It for me is the better example about how-to... And John, I need configure now... :) Tomcat with IIS and SQL Server. Do you want other document how-to to realize these connections?? Or a link? Tnks, Regards, Victor González *** -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 9:12 AM To: Tomcat Users List Subject: Re: Do not understand tomcat-apache autoconfiguration Here's an example of exactly what it creates: http://www.johnturner.com/howto/mod_jk_conf.html John On 20 Mar 2003 16:06:41 +0100, Vincent Panel [EMAIL PROTECTED] wrote: OK, thanks But it generates Virutalhost directives and inside, there's only JkMount's, no Directory, no Alias, right ? What I really need (and I'm pretty sure I'm not the only one) is something like this (for each of my contexts) : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location On Thu, 2003-03-20 at 15:56, Jacob Kjome wrote: Close. One inside the Server tag and one inside each Host tag that you want autogenerated. Here's mine... Server Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=mod_jk.dll jkDebug=info / ... ... ... Host ... Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false / ... ... ... /Host ... ... ... /Server Jake At 02:09 PM 3/20/2003 +0100, you wrote: Well, thanks, but I've already read this. It is not really explaining WHERE are supposed to be those Listeners that turn tomcat ApacheConfig on. When you read the doc, it seems that you're supposed to put one listener inside the Server tag and another one inside each Context tag (remember I do not want to use Virtualhosting). It's not clear whether you're supposed to use append=true or not. In any cases, it does not generate what I want (and there also seems to be some bugs in here : restarting tomcat twice does not give the same mod_jk.conf). I've also tried to put them in many places whithout success. However, I recently found a mod_jk.conf shipped with a RedHat RPM and it seems to have been auto-generated as it contains the following lines : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location This group of directives is exactly what I need but I don't know how to tell tomcat to generate them automatically. I'm almost forced to make a perl script to do something like For each context you're managing, generate an Alias, a Directory and a JkMount for Apache (using perl to manage a java application server... a bit strange isn't it ? :-) On Thu, 2003-03-20 at 10:04, Bill Barker wrote: If it wasn't deprecated, I'd probably go back and add a 3.3-style all-in directive to the 4.x auto-config. In the mean-time go back and read http://jakarta.apache.org/tomcat/tomcat-4.1- doc/config/jk.html#Using%20Apach eConfig. Vincent Panel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED]
Re: Do not understand tomcat-apache autoconfiguration
OK, thanks. It still seems impossible to avoid this virtualhosting feature if you do not want it. Moreover, after setting exacly the same parameters than (both of) you, these three lines do not appear in my mod_jk.conf : JkWorkersFile /usr/local/jakarta-tomcat-4.0.4/conf/jk/workers.properties JkLogFile /usr/local/jakarta-tomcat-4.0.4/logs/mod_jk.log JkLogLevel emerg But that's OK, I'll wait for another version adding a bit more flexibility. Meanwhile, I'll play it manually. Thank you all. Vincent. On Thu, 2003-03-20 at 16:12, John Turner wrote: Here's an example of exactly what it creates: http://www.johnturner.com/howto/mod_jk_conf.html John On 20 Mar 2003 16:06:41 +0100, Vincent Panel [EMAIL PROTECTED] wrote: OK, thanks But it generates Virutalhost directives and inside, there's only JkMount's, no Directory, no Alias, right ? What I really need (and I'm pretty sure I'm not the only one) is something like this (for each of my contexts) : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location On Thu, 2003-03-20 at 15:56, Jacob Kjome wrote: Close. One inside the Server tag and one inside each Host tag that you want autogenerated. Here's mine... Server Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=mod_jk.dll jkDebug=info / ... ... ... Host ... Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false / ... ... ... /Host ... ... ... /Server Jake At 02:09 PM 3/20/2003 +0100, you wrote: Well, thanks, but I've already read this. It is not really explaining WHERE are supposed to be those Listeners that turn tomcat ApacheConfig on. When you read the doc, it seems that you're supposed to put one listener inside the Server tag and another one inside each Context tag (remember I do not want to use Virtualhosting). It's not clear whether you're supposed to use append=true or not. In any cases, it does not generate what I want (and there also seems to be some bugs in here : restarting tomcat twice does not give the same mod_jk.conf). I've also tried to put them in many places whithout success. However, I recently found a mod_jk.conf shipped with a RedHat RPM and it seems to have been auto-generated as it contains the following lines : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location This group of directives is exactly what I need but I don't know how to tell tomcat to generate them automatically. I'm almost forced to make a perl script to do something like For each context you're managing, generate an Alias, a Directory and a JkMount for Apache (using perl to manage a java application server... a bit strange isn't it ? :-) On Thu, 2003-03-20 at 10:04, Bill Barker wrote: If it wasn't deprecated, I'd probably go back and add a 3.3-style all-in directive to the 4.x auto-config. In the mean-time go back and read http://jakarta.apache.org/tomcat/tomcat-4.1- doc/config/jk.html#Using%20Apach eConfig. Vincent Panel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] signature.asc Description: This is a digitally signed message part
Re: Tomcat error when starting after enabling Ajp13Connector
Ajp13Connector is not compatible with MBeans. Either use CoyoteConnector, or disable the MBean lines in your server.xml. John On Thu, 20 Mar 2003 11:00:11 -0500, [EMAIL PROTECTED] wrote: All I am trying to plugin tomcat with IIS 5 using jk1.0 which requires enabling org.apache.ajp.tomcat4.Ajp13Connector. I commented out the org.apache.coyote.tomcat4.CoyoteConnector and uncommented org.apache.ajp.tomcat4.Ajp13Connector. Then I got a exception below when tomcat started. What's wrong with that ? Thanks. Mar 20, 2003 10:48:16 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Mar 20, 2003 10:48:16 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Mar 20, 2003 10:48:17 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Mar 20, 2003 10:48:17 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 ServerLifecycleListener: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with Ajp13Connector at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:225 ) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve rLifecycleListener.java:369) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve rLifecycleListener.java:777) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve rLifecycleListener.java:751) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve rLifecycleListener.java:339) at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Ser verLifecycleListener.java:206) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:166) at org.apache.catalina.core.StandardServer.start(StandardServer.java:218 2) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Mar 20, 2003 10:48:22 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Tim (Qinjian) Jian 3833 Farragut Ave. Kensington, MD 20895 Email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I need two really goods how-to both, IIS 5.0 and SQL Server
Hi, I have tomcat 4.1.18 to develop, but my client wants work with IIS and SQL Server, I want the how-to to realize these connections, Tnks. Victor González
Re: Do not understand tomcat-apache autoconfiguration
Sorry, I looked back in the thread, but I'm not clear what the problem is. The example mod_jk.conf file clearly has a virtual host for each Host, and a Directory and Alias container for each Context. This is demonstrated by the fact that /manager and /admin are dynamic Contexts, but have a Directory and Alias. What is it that you need that isn't happening? Every Host element in server.xml is a virtual host, so whether you want to avoid this virtualhosting feature or not you will have to put a Listener element within your Host element. You have to have at least one Host element in server.xml. My HOWTO describes exactly where to put the Listener elements to generate the mod_jk.conf example file I posted, which does have the three Jk* directives. http://www.johnturner.com/howto John On 20 Mar 2003 17:09:31 +0100, Vincent Panel [EMAIL PROTECTED] wrote: OK, thanks. It still seems impossible to avoid this virtualhosting feature if you do not want it. Moreover, after setting exacly the same parameters than (both of) you, these three lines do not appear in my mod_jk.conf : JkWorkersFile /usr/local/jakarta-tomcat-4.0.4/conf/jk/workers.properties JkLogFile /usr/local/jakarta-tomcat-4.0.4/logs/mod_jk.log JkLogLevel emerg But that's OK, I'll wait for another version adding a bit more flexibility. Meanwhile, I'll play it manually. Thank you all. Vincent. On Thu, 2003-03-20 at 16:12, John Turner wrote: Here's an example of exactly what it creates: http://www.johnturner.com/howto/mod_jk_conf.html John On 20 Mar 2003 16:06:41 +0100, Vincent Panel [EMAIL PROTECTED] wrote: OK, thanks But it generates Virutalhost directives and inside, there's only JkMount's, no Directory, no Alias, right ? What I really need (and I'm pretty sure I'm not the only one) is something like this (for each of my contexts) : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location On Thu, 2003-03-20 at 15:56, Jacob Kjome wrote: Close. One inside the Server tag and one inside each Host tag that you want autogenerated. Here's mine... Server Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=mod_jk.dll jkDebug=info / ... ... ... Host ... Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false / ... ... ... /Host ... ... ... /Server Jake At 02:09 PM 3/20/2003 +0100, you wrote: Well, thanks, but I've already read this. It is not really explaining WHERE are supposed to be those Listeners that turn tomcat ApacheConfig on. When you read the doc, it seems that you're supposed to put one listener inside the Server tag and another one inside each Context tag (remember I do not want to use Virtualhosting). It's not clear whether you're supposed to use append=true or not. In any cases, it does not generate what I want (and there also seems to be some bugs in here : restarting tomcat twice does not give the same mod_jk.conf). I've also tried to put them in many places whithout success. However, I recently found a mod_jk.conf shipped with a RedHat RPM and it seems to have been auto-generated as it contains the following lines : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location This group of directives is exactly what I need but I don't know how to tell tomcat to generate them automatically. I'm almost forced to make a perl script to do something like For each context you're managing, generate an Alias, a Directory and a JkMount for Apache (using perl to manage a java application server... a bit strange isn't it ? :-) On Thu, 2003-03-20 at 10:04, Bill Barker wrote: If it wasn't deprecated, I'd probably go back and add a 3.3-style all-in directive to the 4.x auto-config. In the mean-time go back and read http://jakarta.apache.org/tomcat/tomcat-4.1- doc/config/jk.html#Using%20Apach eConfig. Vincent Panel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -- --- To unsubscribe, e-mail: tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: tomcat-user- [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Re: I need two really goods how-to both, IIS 5.0 and SQL Server
as far as connecting to MSSQL Server, you could use the jtds drivers: http://jtds.sourceforge.net as for IIS.. hmm... /gilad Gilad Buzi RD Engineer · CONCATEL [EMAIL PROTECTED] c/Sardenya, 229-237 Atic. 2a · 08013 Barcelona Spain tel. +34.93.244.88.77 · fax +34.93.244.88.78 www.concatel.com Victor Gonzalez [EMAIL PROTECTED]Para: 'Tomcat Users List' [EMAIL PROTECTED] ks.com.mx cc: Asunto: I need two really goods how-to both, IIS 5.0 and SQL Server 20/03/2003 17:15 Por favor, responda a Tomcat Users List Hi, I have tomcat 4.1.18 to develop, but my client wants work with IIS and SQL Server, I want the how-to to realize these connections, Tnks. Victor González - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Do not understand tomcat-apache autoconfiguration. To John Turner.
Not sure what you mean...there's not much to it. You'll need a third-party driver ($$) to get true production-level features with multiple connections. The free Type 4 driver from Microsoft is fairly problematic, after a couple weeks of trying to make it work we ended up going with a third-party driver. After that, you just instantiate the driver, call it, and do your SQL, just like with any other Type 4 driver. John On Thu, 20 Mar 2003 10:07:28 -0600, Victor Gonzalez [EMAIL PROTECTED] wrote: And a how-to with SQL Server?? -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 10:04 AM To: Tomcat Users List Subject: Re: Do not understand tomcat-apache autoconfiguration. To John Turner. Sorry, I don't use IIS for web servers. John On Thu, 20 Mar 2003 09:46:53 -0600, Victor Gonzalez [EMAIL PROTECTED] wrote: It for me is the better example about how-to... And John, I need configure now... :) Tomcat with IIS and SQL Server. Do you want other document how-to to realize these connections?? Or a link? Tnks, Regards, Victor González *** -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 9:12 AM To: Tomcat Users List Subject: Re: Do not understand tomcat-apache autoconfiguration Here's an example of exactly what it creates: http://www.johnturner.com/howto/mod_jk_conf.html John On 20 Mar 2003 16:06:41 +0100, Vincent Panel [EMAIL PROTECTED] wrote: OK, thanks But it generates Virutalhost directives and inside, there's only JkMount's, no Directory, no Alias, right ? What I really need (and I'm pretty sure I'm not the only one) is something like this (for each of my contexts) : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location On Thu, 2003-03-20 at 15:56, Jacob Kjome wrote: Close. One inside the Server tag and one inside each Host tag that you want autogenerated. Here's mine... Server Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=mod_jk.dll jkDebug=info / ... ... ... Host ... Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false / ... ... ... /Host ... ... ... /Server Jake At 02:09 PM 3/20/2003 +0100, you wrote: Well, thanks, but I've already read this. It is not really explaining WHERE are supposed to be those Listeners that turn tomcat ApacheConfig on. When you read the doc, it seems that you're supposed to put one listener inside the Server tag and another one inside each Context tag (remember I do not want to use Virtualhosting). It's not clear whether you're supposed to use append=true or not. In any cases, it does not generate what I want (and there also seems to be some bugs in here : restarting tomcat twice does not give the same mod_jk.conf). I've also tried to put them in many places whithout success. However, I recently found a mod_jk.conf shipped with a RedHat RPM and it seems to have been auto-generated as it contains the following lines : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location This group of directives is exactly what I need but I don't know how to tell tomcat to generate them automatically. I'm almost forced to make a perl script to do something like For each context you're managing, generate an Alias, a Directory and a JkMount for Apache (using perl to manage a java application server... a bit strange isn't it ? :-) On Thu, 2003-03-20 at 10:04, Bill Barker wrote: If it wasn't deprecated, I'd probably go back and add a 3.3-style all-in directive to the 4.x auto-config. In the mean-time go back and read http://jakarta.apache.org/tomcat/tomcat-4.1- doc/config/jk.html#Using%20Apach eConfig. Vincent Panel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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] -- Using
User Web Applications with both apache and tomcat
Hello all, I tried to configure User Web Applications (the one with myserver.com/~username) with tomcat and it works I did the same with apache, and it works but I don't know (not managed to) get this working in a configuration with mod_jk and apache 2.0.44 and tomcat 4.1.18 Does anyone know how to do it? Simone - Simone Chiaretta www.piyosailing.com/S Any sufficiently advanced technology is indistinguishable from magic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unsure how to set Context.URL_PKG_PREFIXES for the javaURLContextFactory, Catalina container
Hi Folks, I'm currently writing some JUnit tests for an application that normally runs under Tomcat 4.1.18. To this end I need to spoof the Context that the tomcat container uses. I am using the javaURLContextFactory type when creating an InitialContext and am getting the following message after performing a lookup: javax.naming.NameNotFoundException: Name java:comp is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:811) at org.apache.naming.NamingContext.lookup(NamingContext.java:194) at javax.naming.InitialContext.lookup(InitialContext.java:347) at uk.co.goodtech.cms.unittest.CMSTest.init(CMSTest.java:79) I believe that this error is down to the Context.URL_PKG_PREFIXES not being set correctly, but I am unable to locate much information about how to do this (STFW, RTFM + source) and was wondering if anyone had any ideas? Cheers (and apologies if this is OT) James James Lewis Java Developer www.goodtechnology.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Classpath Question
Hi, I am using tomcat version 4 as a web service provider. I have 10 web services for my application and they all seem to compile properly. the issue is when I go to run the application I get a java.rmi.ServerException error with a missing port. I am nearly 95% sure that it is a problem with the CLASSPATH in that I dont declare where the class paths are for each application. How do I do this: An example of where the java classes are is C:\tops\classes. I cant move the classes as it is an application in itself and is connected to an oracle database. Please I need the following information? 1 Can this be done at all? Or is my boss nuts? 2 How do I do it? Regards Richard Newbie Jones -- ___ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 3 vs 4 issues
We've got a product which runs on tomcat 3.3.1. When we attempt to run it in 4.1.18 it fails. We think this is because the web.xml has a tld which doesn't exist in the products WEB-INF (or anywhere) directory. It looks like the old tomcat would silently ignore this issue. Is there anyway to get tomcat 4.1.18 to ignore those types of errors also? We don't want to keep modifying the web.xml (licensing and support reasons). Wayne Christian Sr. Staff Software Engineer Genesys Telecommunications Labs 2100 Gateway Centre Blvd. Suite 300 Morrisville, NC 27560 ? Office: (919) 466-6151 Fax:(919) 466-6157 ? EMail: mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XP and session persistence
If Tomcat is unable to set a cookie to the browser, it should do url rewriting. Are you seeing that? -scott -Original Message- From: Frank Diakovasilis [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 9:47 AM To: [EMAIL PROTECTED] Subject: XP and session persistence I have run a web application on NT and it works fine, when installed (with tomcat 4.0) on XP, it does not work properly. The problem seems to be session persistence. Under XP, when creating a session, tomcat does not attempt to put a cookie (JSESSIONID) to the browser. Has anybody come across this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't connect to X11 window server using '0:0' as the value ofthe display and now java.awt.HeadlessException
Hi, I put System.setProperty(java.awt.headless, true); in my servlet init method it's ok, but now when I open a Frame, I get the exception HeadlessException: java.awt.HeadlessException at java.awt.GraphicsEnvironnement.checkHeadless(GraphicsEnvironement.java:121) at java.awt.window.init(Window.java:226) at java.awt.Frame.init(Frame.java:398) ... What can I do? Georges Chad Johnson wrote: If I had to wager a guess you'll need to run tomcat in a 'headless' JVM. To do that add : -Djava.awt.headless=true To the : CATALINA_OPTS environment variable. -Chad Johnson -Original Message- From: Georges Roux [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 5:32 PM To: [EMAIL PROTECTED] Subject: Can't connect to X11 window server using '0:0' as the value of the display Hello everybody, Hi run Tomcat 4.1.18 Standalone on Linux debian(sid)and use J2sdk1.4.1_01. I have a servlet which manipulate exif informations in jpg images. it works well but when I try to run it on tomcat it fails (error 500) I have the following error: Can't connect to X11 window server using '0:0' as the value of the display What can I do? Georges - 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] -- 18:54 18:54 connard 18:55 18:54 t'as que ca a faire? ;) 18:56 18:55 je m'ennuies ferme ouais ! encore 5mn avant la fin du taf, donc j'en profite pour passer dans les fortunes :) +==+ | | | Georges Roux| | URL : georgesroux.pacageek.org | | email : [EMAIL PROTECTED]| | mobile : +33 (0) 613977573 | +==+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Classpath Question
I ran against the same problem and found a solution I'm more or less happy with (perhaps someone with more experience can correct me if my solution is crazy.) If you ABSOLUTELY cannot move your classes into %TOMCAT_HOME% \common\classes directory, there is another option: In your %TOMCAT_HOME%\bin\setclasspath.bat file, you can redefine the CLASSPATH variable to include all the important tomcat .jar files plus your classpath. This bypasses the bootstrapper. I.e.: . . set TOMCAT_HOME=c:\tomcat set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%TOMCAT_HOME% \common\lib\activation.jar;%TOMCAT_HOME%\common\lib\mail.jar; %TOMCAT_HOME%\common\lib\ant.jar;%TOMCAT_HOME% \common\lib\commons-collections.jar;%TOMCAT_HOME% \common\lib\commons-dbcp.jar;%TOMCAT_HOME% \common\lib\commons-logging-api.jar;%TOMCAT_HOME% \common\lib\commons-pool.jar;%TOMCAT_HOME% \common\lib\jasper-compiler.jar;%TOMCAT_HOME% \common\lib\jasper-runtime.jar;%TOMCAT_HOME% \common\lib\jdbc2_0-stdext.jar;%TOMCAT_HOME% \common\lib\jndi.jar;%TOMCAT_HOME%\common\lib\jta.jar;%TOMCAT_HOME% \common\lib\mail.jar;%TOMCAT_HOME% \common\lib\naming-common.jar;%TOMCAT_HOME% \common\lib\naming-factory.jar;%TOMCAT_HOME% \common\lib\naming-resources.jar;%TOMCAT_HOME% \common\lib\servlet.jar;%YOUR_CLASSPATH% . Please, if someone thinks this is nuts, let me know. I wish there was a more elegant way to do this, but for now this is the only thing I could think of. /gilad Gilad Buzi RD Engineer · CONCATEL [EMAIL PROTECTED] c/Sardenya, 229-237 Atic. 2a · 08013 Barcelona Spain tel. +34.93.244.88.77 · fax +34.93.244.88.78 www.concatel.com Richard JonesPara: [EMAIL PROTECTED] richardjones@cc: email.comAsunto: Classpath Question 20/03/2003 17:54 Por favor, responda a Tomcat Users List Hi, I am using tomcat version 4 as a web service provider. I have 10 web services for my application and they all seem to compile properly. the issue is when I go to run the application I get a java.rmi.ServerException error with a missing port. I am nearly 95% sure that it is a problem with the CLASSPATH in that I dont declare where the class paths are for each application. How do I do this: An example of where the java classes are is C:\tops\classes. I cant move the classes as it is an application in itself and is connected to an oracle database. Please I need the following information? 1 Can this be done at all? Or is my boss nuts? 2 How do I do it? Regards Richard Newbie Jones -- ___ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup - 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]
R: User Web Applications with both apache and tomcat
Thank you but I'm not using warp to connect the 2 services, but mod_jk... and I'm using apache 2 and not 1.3.x I suppose the configuration is quite different. One thing: I already got apache and tomcat working togheter with normal virtual hosts and so on I'm missing just the user directory part. Thx Simo - Simone Chiaretta www.piyosailing.com/S Any sufficiently advanced technology is indistinguishable from magic -Messaggio originale- Da: Edson Barbosa [mailto:[EMAIL PROTECTED] Inviato: giovedì 20 marzo 2003 17.56 A: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Oggetto: RE: User Web Applications with both apache and tomcat Hi, Simone !! Fist I'm sorry my bad english, but I try to help. I send below the some instructions about how join the Apache Web Server and Tom Cat. Let me know if you have solve(or not) this problems. Regards. Edson CARVAlho Essa descrição leva em conta que o Apache 1.3.26 e o Tom Cat 4.01 já estejam instalados no Windows 2000, Julio acho q vc pode tirar alguns parâmetros desse descritivo uma vez que na Wa60 esta na dependência da configuração do httpd.conf e do server.xml - Pegando o módulo warp Connection ( mod_webapp.so ) para o Windows em : http://jakarta.apache.org/builds/jakarta-tomcat-4.0/archives/v4.0. 1/bin/win32/webapp-module-1.0-tc40-windows.zip (Repara o texto no footer dessa página: Apache/2.0.40 Server at jakarta.apache.org Port 80 ) - Configurando o Apache : Vá para seuDiretórioInstalacaoDoApache/Apache/conf e edit o arquivo httpd.conf como mostro abaixo, .. #LoadModule usertrack_module modules/mod_usertrack.so #LoadModule unique_id_module modules/mod_unique_id.so (esta linha esta por volta da 192) # Declaracao para acrescentar o modulo de conector,Carva LoadModule webapp_module modules/mod_webapp.so (Adicione) .. #AddModule mod_unique_id.c AddModule mod_so.c AddModule mod_setenvif.c (esta linha esta por volta da 241) # Adicionei tb aqui, Carva AddModule mod_webapp.c (Adicione) ... # 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your # machine always knows itself by this address. If you use Apache strictly for # local testing and development, you may use 127.0.0.1 as the server name. # ServerName note-ebarbos (nome do minha máquina, nada impede 127.0.0.1 ou localhost ou outro nome tipo: naoacredito) (esta linha esta por volta da 296) .. # Declaracao para acrescentar o modulo de conector,Carva DocumentRoot C:/Tomcat 4.0/webapps (Colocar o endereço de onde estão os comteúdos para serem exibidos) (esta linha esta por volta da 305) . # Declaracao para acrescentar o modulo de conector,Carva Directory C:/Tomcat 4.0/webapps (Colocar o endereço de onde estão os comteúdos para serem exibidos) (esta linha esta por volta da 330) IfModule mod_userdir.c UserDir C:/Apache Group/Apache/users/ /IfModule # Inseri aqui para declarar os diretorios no Tom cat , Carva IfModule mod_webapp.c (esta linha esta por volta da 368) WebAppConnection warpConnection warp note-ebarbos:8008 (Obrigatório colocar porta 8008 é a porta onde o warp Connection acessa Tom Cat) WebAppInfo /webapp-info WebAppDeploy carvanovo warpConnection /carvanovo (declarei somente este contexto de acesso ao Tom Cat) WebAppDeploy fama warpConnection /fama (declarei somente este contexto de acesso ao Tom Cat caso queira mais contextos,inclua novas linhas) WebAppDeploy webdav warpConnection /webdav WebAppDeploy tomcat-docs warpConnection /tomcat-docs /IfModule Ehepara esse módulo, SÓ ISSO !!! - Configurando o Tom Cat : Vá para seuDiretórioInstalacaoDoTomCat/conf e edit o arquivo server.xml como mostro abaixo, - Onde estiver escrito Service name=Tomcat-Standalone troque para Service name=Tomcat-Apache Vá até a última tag : !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache (esta linha esta por volta da 332) E insira o seguinte conteúdo dentro da última tag service : !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/ !-- Replace localhost with what your Apache ServerName is set to -- !-- Apenas inseri o item defaultHost=note-ebarbos e as tags de Host e Context -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 defaultHost=note-ebarbos appBase=webapps Host name=note-ebarbos debug=0 appBase=webapps unpackWARs=true !-- Inseri esse contexto na duvida dele nao olhar para o contexto default do Tom, Carva -- Context path=/carvanovo docBase=carvanovo debug=0
RE: User Web Applications with both apache and tomcat
Hi, Simone !! Fist I'm sorry my bad english, but I try to help. I send below the some instructions about how join the Apache Web Server and Tom Cat. Let me know if you have solve(or not) this problems. Regards. Edson CARVAlho Essa descrição leva em conta que o Apache 1.3.26 e o Tom Cat 4.01 já estejam instalados no Windows 2000, Julio acho q vc pode tirar alguns parâmetros desse descritivo uma vez que na Wa60 esta na dependência da configuração do httpd.conf e do server.xml - Pegando o módulo warp Connection ( mod_webapp.so ) para o Windows em : http://jakarta.apache.org/builds/jakarta-tomcat-4.0/archives/v4.0.1/bin/win32/webapp-module-1.0-tc40-windows.zip (Repara o texto no footer dessa página: Apache/2.0.40 Server at jakarta.apache.org Port 80 ) - Configurando o Apache : Vá para seuDiretórioInstalacaoDoApache/Apache/conf e edit o arquivo httpd.conf como mostro abaixo, .. #LoadModule usertrack_module modules/mod_usertrack.so #LoadModule unique_id_module modules/mod_unique_id.so (esta linha esta por volta da 192) # Declaracao para acrescentar o modulo de conector,Carva LoadModule webapp_module modules/mod_webapp.so (Adicione) .. #AddModule mod_unique_id.c AddModule mod_so.c AddModule mod_setenvif.c (esta linha esta por volta da 241) # Adicionei tb aqui, Carva AddModule mod_webapp.c (Adicione) ... # 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your # machine always knows itself by this address. If you use Apache strictly for # local testing and development, you may use 127.0.0.1 as the server name. # ServerName note-ebarbos (nome do minha máquina, nada impede 127.0.0.1 ou localhost ou outro nome tipo: naoacredito) (esta linha esta por volta da 296) .. # Declaracao para acrescentar o modulo de conector,Carva DocumentRoot C:/Tomcat 4.0/webapps (Colocar o endereço de onde estão os comteúdos para serem exibidos) (esta linha esta por volta da 305) . # Declaracao para acrescentar o modulo de conector,Carva Directory C:/Tomcat 4.0/webapps (Colocar o endereço de onde estão os comteúdos para serem exibidos) (esta linha esta por volta da 330) IfModule mod_userdir.c UserDir C:/Apache Group/Apache/users/ /IfModule # Inseri aqui para declarar os diretorios no Tom cat , Carva IfModule mod_webapp.c (esta linha esta por volta da 368) WebAppConnection warpConnection warp note-ebarbos:8008 (Obrigatório colocar porta 8008 é a porta onde o warp Connection acessa Tom Cat) WebAppInfo /webapp-info WebAppDeploy carvanovo warpConnection /carvanovo (declarei somente este contexto de acesso ao Tom Cat) WebAppDeploy fama warpConnection /fama (declarei somente este contexto de acesso ao Tom Cat caso queira mais contextos,inclua novas linhas) WebAppDeploy webdav warpConnection /webdav WebAppDeploy tomcat-docs warpConnection /tomcat-docs /IfModule Ehepara esse módulo, SÓ ISSO !!! - Configurando o Tom Cat : Vá para seuDiretórioInstalacaoDoTomCat/conf e edit o arquivo server.xml como mostro abaixo, - Onde estiver escrito Service name=Tomcat-Standalone troque para Service name=Tomcat-Apache Vá até a última tag : !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache (esta linha esta por volta da 332) E insira o seguinte conteúdo dentro da última tag service : !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/ !-- Replace localhost with what your Apache ServerName is set to -- !-- Apenas inseri o item defaultHost=note-ebarbos e as tags de Host e Context -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 defaultHost=note-ebarbos appBase=webapps Host name=note-ebarbos debug=0 appBase=webapps unpackWARs=true !-- Inseri esse contexto na duvida dele nao olhar para o contexto default do Tom, Carva -- Context path=/carvanovo docBase=carvanovo debug=0 reloadable=true privileged=true / /Host !-- Global logger unless overridden at lower levels -- !-- Troquei o nome do Log para ApacheTomCat_log antes era apache_log -- Logger className=org.apache.catalina.logger.FileLogger prefix=ApacheTomCat_log. suffix=.txt timestamp=true/ !-- Because this Realm is here, an instance will be shared globally -- Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service /Server - Iniciando Apache x Tom Cat : Esse ponto é IMPORTANTE pois devemos PRIMEIRAMENTE iniciar TOM CAT para depois iniciar o APACHE, tentei fazer o contrário e NÃO funcionou !!! Se tudo estiver
Load balancing and Sticky sessions
Hello, I have Apache and 2 tomcats running on 2 separate servers which are in a cluster. I am running Tomcat 4.0(using ajp13) via mod_jk. I am also using load balancing.I am losing my session variables when there is a switch between the 2 tomcats. Any help is greatly appreciated. thanks in advance, Kavitha _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Load balancing and Sticky sessions
Hi Kavita, what clustering library are you using. There are several options that we can offer you to do. 1. Try the clustering that is going to ship with Tomcat 4, http://www.filip.net/tomcat-clustering.html 2. Take out Apache out of the equation to make sure your clustering is working clustering. At the end of the page that I mentioned above, there is a Java loadbalancer for testing (do not use this in production :) that you can use to test out session replication. Once you've done that, feel free to send your logs so that we can help you determine the rest of your problems Filip -Original Message- From: Kavitha ranga [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 10:10 AM To: [EMAIL PROTECTED] Subject: Load balancing and Sticky sessions Hello, I have Apache and 2 tomcats running on 2 separate servers which are in a cluster. I am running Tomcat 4.0(using ajp13) via mod_jk. I am also using load balancing.I am losing my session variables when there is a switch between the 2 tomcats. Any help is greatly appreciated. thanks in advance, Kavitha _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - 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: Load balancing and Sticky sessions
Unless you have session replication going on between the two Tomcats (or are running Tomcat 5...doubtful since it is in its infant stages), you will always lose your session if you get sent from one Tomcat to another. Ben Ricker On Thu, 2003-03-20 at 12:09, Kavitha ranga wrote: Hello, I have Apache and 2 tomcats running on 2 separate servers which are in a cluster. I am running Tomcat 4.0(using ajp13) via mod_jk. I am also using load balancing.I am losing my session variables when there is a switch between the 2 tomcats. Any help is greatly appreciated. thanks in advance, Kavitha _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker [EMAIL PROTECTED] Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Load balancing and Sticky sessions
Check your settings in workers.properties # # The loadbalancer (type lb) worker performs weighted round-robin # load balancing with sticky sessions. # Note: # If a worker dies, the load balancer will check its state #once in a while. Until then all work is redirected to peer #worker. worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tomcat1,tomcat2 # # END workers.properties # -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 1:18 PM To: Tomcat Users List Subject: Re: Load balancing and Sticky sessions Unless you have session replication going on between the two Tomcats (or are running Tomcat 5...doubtful since it is in its infant stages), you will always lose your session if you get sent from one Tomcat to another. Ben Ricker On Thu, 2003-03-20 at 12:09, Kavitha ranga wrote: Hello, I have Apache and 2 tomcats running on 2 separate servers which are in a cluster. I am running Tomcat 4.0(using ajp13) via mod_jk. I am also using load balancing.I am losing my session variables when there is a switch between the 2 tomcats. Any help is greatly appreciated. thanks in advance, Kavitha _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker [EMAIL PROTECTED] Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Load balancing and Sticky sessions
Hi Ben, session replication is working for Tomcat 5, and I have back ported a version to tomcat 4.1.x http://www.filip.net/tomcat-clustering.html Filip -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 10:18 AM To: Tomcat Users List Subject: Re: Load balancing and Sticky sessions Unless you have session replication going on between the two Tomcats (or are running Tomcat 5...doubtful since it is in its infant stages), you will always lose your session if you get sent from one Tomcat to another. Ben Ricker On Thu, 2003-03-20 at 12:09, Kavitha ranga wrote: Hello, I have Apache and 2 tomcats running on 2 separate servers which are in a cluster. I am running Tomcat 4.0(using ajp13) via mod_jk. I am also using load balancing.I am losing my session variables when there is a switch between the 2 tomcats. Any help is greatly appreciated. thanks in advance, Kavitha _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker [EMAIL PROTECTED] Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Load balancing and Sticky sessions
I think I did not make my point clear. I have to rephrase my question. we have Apache 1.3 and 2 tomcats(4.0 ) running on 2 different servers. The 2 servers are on SUN cluster and we have only apache and Oracle as part of the cluster. Tomcat is not in the cluster. So when a switch takes place between the 2 tomcats I am losing my sessions.Also we are on jdk1.3. Any suggesions in highly appreciated. Thanks for the quick response. Kavitha From: Ben Ricker [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Load balancing and Sticky sessions Date: 20 Mar 2003 12:18:09 -0600 Unless you have session replication going on between the two Tomcats (or are running Tomcat 5...doubtful since it is in its infant stages), you will always lose your session if you get sent from one Tomcat to another. Ben Ricker On Thu, 2003-03-20 at 12:09, Kavitha ranga wrote: Hello, I have Apache and 2 tomcats running on 2 separate servers which are in a cluster. I am running Tomcat 4.0(using ajp13) via mod_jk. I am also using load balancing.I am losing my session variables when there is a switch between the 2 tomcats. Any help is greatly appreciated. thanks in advance, Kavitha _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker [EMAIL PROTECTED] Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException
Hey, From the 1.4.x api docs: HeadlessException: Thrown when code that is dependent on a keyboard, display, or mouse is called in an environment that does not support a keyboard, display, or mouse. That Frame seems to be the culprit of this. -Chad Johnson -Original Message- From: Georges Roux [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 11:09 AM To: Tomcat Users List Subject: Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException Hi, I put System.setProperty(java.awt.headless, true); in my servlet init method it's ok, but now when I open a Frame, I get the exception HeadlessException: java.awt.HeadlessException at java.awt.GraphicsEnvironnement.checkHeadless(GraphicsEnvironement.java:1 21) at java.awt.window.init(Window.java:226) at java.awt.Frame.init(Frame.java:398) ... What can I do? Georges Chad Johnson wrote: If I had to wager a guess you'll need to run tomcat in a 'headless' JVM. To do that add : -Djava.awt.headless=true To the : CATALINA_OPTS environment variable. -Chad Johnson -Original Message- From: Georges Roux [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 5:32 PM To: [EMAIL PROTECTED] Subject: Can't connect to X11 window server using '0:0' as the value of the display Hello everybody, Hi run Tomcat 4.1.18 Standalone on Linux debian(sid)and use J2sdk1.4.1_01. I have a servlet which manipulate exif informations in jpg images. it works well but when I try to run it on tomcat it fails (error 500) I have the following error: Can't connect to X11 window server using '0:0' as the value of the display What can I do? Georges - 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] -- 18:54 18:54 connard 18:55 18:54 t'as que ca a faire? ;) 18:56 18:55 je m'ennuies ferme ouais ! encore 5mn avant la fin du taf, donc j'en profite pour passer dans les fortunes :) +==+ | | | Georges Roux| | URL : georgesroux.pacageek.org | | email : [EMAIL PROTECTED]| | mobile : +33 (0) 613977573 | +==+ - 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: Load balancing and Sticky sessions
yes, if you don't cluster your tomcat servers, don't expect session replication to work :-), yes, there are jdk 1.3 version out there, there is one commercial one which you have to pay for. just make a search on google, Filip -Original Message- From: Kavitha ranga [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 10:28 AM To: [EMAIL PROTECTED] Subject: Re: Load balancing and Sticky sessions I think I did not make my point clear. I have to rephrase my question. we have Apache 1.3 and 2 tomcats(4.0 ) running on 2 different servers. The 2 servers are on SUN cluster and we have only apache and Oracle as part of the cluster. Tomcat is not in the cluster. So when a switch takes place between the 2 tomcats I am losing my sessions.Also we are on jdk1.3. Any suggesions in highly appreciated. Thanks for the quick response. Kavitha From: Ben Ricker [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Load balancing and Sticky sessions Date: 20 Mar 2003 12:18:09 -0600 Unless you have session replication going on between the two Tomcats (or are running Tomcat 5...doubtful since it is in its infant stages), you will always lose your session if you get sent from one Tomcat to another. Ben Ricker On Thu, 2003-03-20 at 12:09, Kavitha ranga wrote: Hello, I have Apache and 2 tomcats running on 2 separate servers which are in a cluster. I am running Tomcat 4.0(using ajp13) via mod_jk. I am also using load balancing.I am losing my session variables when there is a switch between the 2 tomcats. Any help is greatly appreciated. thanks in advance, Kavitha _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker [EMAIL PROTECTED] Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException
You using Linux? What is your environment? Anyway, setting the JVM is the way to go if you are using Linux. At 06:09 PM 3/20/03 +0100, you wrote: Hi, I put System.setProperty(java.awt.headless, true); in my servlet init method it's ok, but now when I open a Frame, I get the exception HeadlessException: java.awt.HeadlessException at java.awt.GraphicsEnvironnement.checkHeadless(GraphicsEnvironement.java:121) at java.awt.window.init(Window.java:226) at java.awt.Frame.init(Frame.java:398) ... What can I do? Georges Chad Johnson wrote: If I had to wager a guess you'll need to run tomcat in a 'headless' JVM. To do that add : -Djava.awt.headless=true To the : CATALINA_OPTS environment variable. -Chad Johnson -Original Message- From: Georges Roux [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 5:32 PM To: [EMAIL PROTECTED] Subject: Can't connect to X11 window server using '0:0' as the value of the display Hello everybody, Hi run Tomcat 4.1.18 Standalone on Linux debian(sid)and use J2sdk1.4.1_01. I have a servlet which manipulate exif informations in jpg images. it works well but when I try to run it on tomcat it fails (error 500) I have the following error: Can't connect to X11 window server using '0:0' as the value of the display What can I do? Georges - 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] -- 18:54 18:54 connard 18:55 18:54 t'as que ca a faire? ;) 18:56 18:55 je m'ennuies ferme ouais ! encore 5mn avant la fin du taf, donc j'en profite pour passer dans les fortunes :) +==+ | | | Georges Roux| | URL : georgesroux.pacageek.org | | email : [EMAIL PROTECTED]| | mobile : +33 (0) 613977573 | +==+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I need two really goods how-to both, IIS 5.0 and SQL Server
Hey, Microsoft actually maintains a JDBC driver for SQL Server : http://www.microsoft.com/downloads/details.aspx?FamilyID=4f8f2f01-1ed7-4 c4d-8f7b-3d47969e66aeDisplayLang=en -Chad Johnson -Original Message- From: Victor Gonzalez [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 10:15 AM To: 'Tomcat Users List' Subject: I need two really goods how-to both, IIS 5.0 and SQL Server Importance: High Hi, I have tomcat 4.1.18 to develop, but my client wants work with IIS and SQL Server, I want the how-to to realize these connections, Tnks. Victor González - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Manager application.
Hello, I am using Tomcat 4.0.4 and the manager application to upload .war files. This works fine. The question I have is where are my files being uploaded to? as I don't see them in the webapps directory of the remote server. Also, if it is being held in memory some how then when I restart Tomcat will my new .war file still be there? My thanks in advance, Andoni. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Classpath Question
A problem with the classpath should indicate a classpath related exception, which essentially is an inability to find a class. Why do you think that hte java.rmi.ServerException fits into this pattern? If you don't declare where the class paths [sic] are for each application how do you expect the JVM to find the classes? You sure that is what you mean? At 04:54 PM 3/20/03 +, you wrote: Hi, I am using tomcat version 4 as a web service provider. I have 10 web services for my application and they all seem to compile properly. the issue is when I go to run the application I get a java.rmi.ServerException error with a missing port. I am nearly 95% sure that it is a problem with the CLASSPATH in that I dont declare where the class paths are for each application. How do I do this: An example of where the java classes are is C:\tops\classes. I cant move the classes as it is an application in itself and is connected to an oracle database. Please I need the following information? 1 Can this be done at all? Or is my boss nuts? 2 How do I do it? Regards Richard Newbie Jones -- ___ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error to create the keystores
Hi. I have a web server Tomcat 4.1.18 and it works fine. My problem is when I create the keystore tomcat of manual form. I have created two Java methods: addCertToKeyStore and addPKToKeyStore. I realize the following step to create my own keystore: - I add CA certificate in JDK keystore ($JAVA_HOME/jre/lib/security/cacerts). - I add Server certificate and CA certificate in Tomcat keystore ($TOMCAT_HOME/conf/keystore). - I add Server private key in Tomcat keystore. These steps works fine (I don't obtain any error). When I open a connection in a navigator I obtain the following error: Can't show the page. Am I realizing some error to configure the keystores?? Regards. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cookie differences in Migrating TC 3.2.3 to TC 4.0.1
Hi All I am migrating from TC 3.2.xx to 4.0.xx and can not get my cookie to validate the Login ID process. I am using a JNI to load a share object library for cookie validation. It works fine in 3.2 but it does not work in TC 4.0 The problem has to do with the way the cookie gets setup between 3.2.3 and 4.0.1 When I print the cookie result in 3.2.3 I get one line string sample %7B%2Name%2%3%5Amir%35%24%2LastName%45%23%12 Now the same string in 4.0.1 show up as {'Name': Amir, 'LastName':None '%7B%2.'} Remember these are just the sample. Someone mention to me about coded Cookies and Non coded Cookies? Please reply back to me to if you have any suggestions. Thanks Amir Shidfar VeriZon Wireless 845-365-7386 work 845-365-5910 fax [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I need two really goods how-to both, IIS 5.0 and SQL Server
Well, The gurus said The jdbc Microsoft is no the better, it is a shi..., blah blah..., I don't know, I never worked with SQL Server, but, I try with the 2 responses, Tnks gays, Love and peace Victor González *** -Original Message- From: Chad Johnson [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 12:36 PM To: 'Tomcat Users List' Subject: RE: I need two really goods how-to both, IIS 5.0 and SQL Server Hey, Microsoft actually maintains a JDBC driver for SQL Server : http://www.microsoft.com/downloads/details.aspx?FamilyID=4f8f2f01-1ed7-4 c4d-8f7b-3d47969e66aeDisplayLang=en -Chad Johnson -Original Message- From: Victor Gonzalez [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 10:15 AM To: 'Tomcat Users List' Subject: I need two really goods how-to both, IIS 5.0 and SQL Server Importance: High Hi, I have tomcat 4.1.18 to develop, but my client wants work with IIS and SQL Server, I want the how-to to realize these connections, Tnks. Victor González - 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: I need two really goods how-to both, IIS 5.0 and SQL Server
Doesn't hurt to try it, it might work for your purposes. We needed CachedRowSet, and at the time (last summer), the MSFT-supplied Type 4 driver didn't support it and there were no plans to do so in the future, so we went with another driver. IIRC, there was also an issue of DB support, as in 6.5=OK, 7.0=OK, 2000=Not OK, or maybe it was 7/2K=OK and 6.5=Not OK. John On Thu, 20 Mar 2003 12:52:22 -0600, Victor Gonzalez [EMAIL PROTECTED] wrote: Well, The gurus said The jdbc Microsoft is no the better, it is a shi..., blah blah..., I don't know, I never worked with SQL Server, but, I try with the 2 responses, Tnks gays, Love and peace Victor González *** -Original Message- From: Chad Johnson [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 12:36 PM To: 'Tomcat Users List' Subject: RE: I need two really goods how-to both, IIS 5.0 and SQL Server Hey, Microsoft actually maintains a JDBC driver for SQL Server : http://www.microsoft.com/downloads/details.aspx?FamilyID=4f8f2f01-1ed7-4 c4d-8f7b-3d47969e66aeDisplayLang=en -Chad Johnson Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't connect to X11 window server using '0:0' as the value ofthe display and now java.awt.HeadlessException
ok: there is another solution to the headless thing: (I wrote a graphical servlet that runs on a linux box without X, and had the same problems: The headless seemed to work, well, kinda, but not to my liking): So I went the xvfb route: This is a virtual frame buffer to can install on a linux box that emulates an X session, which then kinda solves all the graphical problems in one step. You set the xvfb to the resolution required and just start and forget about it. Worth I shot, I'd say, and might safe you hours of frustration [It did me ;-) ]. On Thu, 2003-03-20 at 18:34, Micael wrote: You using Linux? What is your environment? Anyway, setting the JVM is the way to go if you are using Linux. At 06:09 PM 3/20/03 +0100, you wrote: Hi, I put System.setProperty(java.awt.headless, true); in my servlet init method it's ok, but now when I open a Frame, I get the exception HeadlessException: java.awt.HeadlessException at java.awt.GraphicsEnvironnement.checkHeadless(GraphicsEnvironement.java:121) at java.awt.window.init(Window.java:226) at java.awt.Frame.init(Frame.java:398) ... What can I do? Georges Chad Johnson wrote: If I had to wager a guess you'll need to run tomcat in a 'headless' JVM. To do that add : -Djava.awt.headless=true To the : CATALINA_OPTS environment variable. -Chad Johnson -Original Message- From: Georges Roux [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 5:32 PM To: [EMAIL PROTECTED] Subject: Can't connect to X11 window server using '0:0' as the value of the display Hello everybody, Hi run Tomcat 4.1.18 Standalone on Linux debian(sid)and use J2sdk1.4.1_01. I have a servlet which manipulate exif informations in jpg images. it works well but when I try to run it on tomcat it fails (error 500) I have the following error: Can't connect to X11 window server using '0:0' as the value of the display What can I do? Georges - 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] -- 18:54 18:54 connard 18:55 18:54 t'as que ca a faire? ;) 18:56 18:55 je m'ennuies ferme ouais ! encore 5mn avant la fin du taf, donc j'en profite pour passer dans les fortunes :) +==+ | | | Georges Roux| | URL : georgesroux.pacageek.org | | email : [EMAIL PROTECTED]| | mobile : +33 (0) 613977573 | +==+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- p niemandt [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Clustering Tomcat with OSCAR
I was our intention is to cluster our apache/tomcat application server with a high performance clustering package called OSCAR. However, we saw a message in the OSCAR mailinglist archive stating that ..tomcat was not cluster aware in any sense. It mentioned using something called mod_backhand in Apache. Is anyone using tomcat application servers in a clustered environment? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't get logger/debug messages
Hi; In server.xml I changed logging to Server port=8005 shutdown=SHUTDOWN debug=4 Logger className=org.apache.catalina.logger.FileLogger verbosity=4 directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ Yet I get no additional messages. Any ideas? Also, I am assuming with a log level of 4, when I use my browser to get a servlet I think should show up - and instead I get an error, it will tell me why in the log. thanks - dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Clustering Tomcat with OSCAR
Tomcat 5 ships with a cluster module, that I have back ported to 4.1.x, you have to use JDK1.4 since it uses java.nio for performance reasons http://www.filip.net/tomcat-clustering.html Filip -Original Message- From: Matthew Sachs [mailto:[EMAIL PROTECTED] Behalf Of Frank Dmuchowski Sent: Thursday, March 20, 2003 10:40 AM To: [EMAIL PROTECTED] Subject: Clustering Tomcat with OSCAR I was our intention is to cluster our apache/tomcat application server with a high performance clustering package called OSCAR. However, we saw a message in the OSCAR mailinglist archive stating that ..tomcat was not cluster aware in any sense. It mentioned using something called mod_backhand in Apache. Is anyone using tomcat application servers in a clustered environment? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException
At 07:18 PM 3/20/2003 +, you wrote: ok: there is another solution to the headless thing: (I wrote a graphical servlet that runs on a linux box without X, and had the same problems: The headless seemed to work, well, kinda, but not to my liking): So I went the xvfb route: This is a virtual frame buffer to can install on a linux box that emulates an X session, which then kinda solves all the graphical problems in one step. You set the xvfb to the resolution required and just start and forget about it. Worth I shot, I'd say, and might safe you hours of frustration [It did me ;-) ]. I had tried xvfb and had some difficulties. Any pointers? suggestions? Thanks, Glenn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Latest distribution of coyote connector
Hi All, Where do I get the latest distribution of coyote connector. http://jakarta.apache.org/builds/jakarta-tomcat-connectors/coyote/release/ has only old releases. That is what is not bundled with 4.1.18. If I just the take necessary jars from 4.1.18(commons-logging.jar tomcat-coyote.jar tomcat-http11.jar tomcat-jk2.jar tomcat-util.jar ) for the coyote connector and move it to 4.0.4 - will it work? Please advise. Thanx Ganesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Clustering Tomcat with OSCAR
Hi ! have you ever tried google??# http://www.google.com/search?q=tomcat+cluster+session+replication I'm using the java-groups solution described in http://www.theserverside.com/resources/article.jsp?l=Tomcat and it works fine for me. We are running 6 tomcats4.1 on jdk1.4.1/linux 7.3 on dual-Xeon2,8Ghz Hardware, and it works great. Christoph [EMAIL PROTECTED] P.S.: But I changed the source a bit. Von: Filip Hanik [EMAIL PROTECTED] Betreff: RE: Load balancing and Sticky sessions Datum: Donnerstag, 20. März 2003 19:25 Hi Ben, session replication is working for Tomcat 5, and I have back ported a version to tomcat 4.1.x http://www.filip.net/tomcat-clustering.html Filip Frank Dmuchowski [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] I was our intention is to cluster our apache/tomcat application server with a high performance clustering package called OSCAR. However, we saw a message in the OSCAR mailinglist archive stating that ..tomcat was not cluster aware in any sense. It mentioned using something called mod_backhand in Apache. Is anyone using tomcat application servers in a clustered environment? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and statically included JSPs
hi we are using Tomcat 4.1.18/IIS on a win2000 machine. we have one JSP statically including other JSPs, and I know that Tomcat can detect and recompile statically included pages when they are modified (whether or not the calling page has been modified). This works fine on its own. However, when we call our servlet, it does some processing then forwards the request using a RequestDispatcher like this RequestDispatcher rd = getServletContext().getRequestDispatcher(page); rd.forward( req, res ); the problem is that Tomcat no longer detects that statically included pages have been modified. is it something to do with the request dispatcher, Tomcat or what? we have done a lot of internet research but have come up empty. thanks in advance john - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't connect to X11 window server using '0:0' as the value ofthe display and now java.awt.HeadlessException
Difficult to say: What kind of problems? I start mine using Xvfb :0 -screen 0 1600x1200x32 {I just added it to rc.local } On Thu, 2003-03-20 at 19:27, Glenn Parsons wrote: At 07:18 PM 3/20/2003 +, you wrote: ok: there is another solution to the headless thing: (I wrote a graphical servlet that runs on a linux box without X, and had the same problems: The headless seemed to work, well, kinda, but not to my liking): So I went the xvfb route: This is a virtual frame buffer to can install on a linux box that emulates an X session, which then kinda solves all the graphical problems in one step. You set the xvfb to the resolution required and just start and forget about it. Worth I shot, I'd say, and might safe you hours of frustration [It did me ;-) ]. I had tried xvfb and had some difficulties. Any pointers? suggestions? Thanks, Glenn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- p niemandt [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException
At 07:59 PM 3/20/2003 +, you wrote: Difficult to say: What kind of problems? I start mine using Xvfb :0 -screen 0 1600x1200x32 {I just added it to rc.local } Will retry with resolution change. Thanks, Glenn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
getting Tomcat's context from outside
I've developed a webapplication under tomcat with a datasource. It works fine, however, I'm trying to do a standalone application that uses the classes of this webapplication, everything works until it tries to get the context in order to get a connection to the database. How can I get the application's context within Tomcat from outside the webapplication? And then be able to get a connection to the database. This is the run-time error that it throws: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource f ile: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6 40) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Clustering Tomcat with OSCAR
for better performance code, uses TCP to convey the data instead http://www.filip.net/tomcat-clustering.html Filip -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of C. Gaffga Sent: Thursday, March 20, 2003 11:24 AM To: [EMAIL PROTECTED] Subject: Re: Clustering Tomcat with OSCAR Hi ! have you ever tried google??# http://www.google.com/search?q=tomcat+cluster+session+replication I'm using the java-groups solution described in http://www.theserverside.com/resources/article.jsp?l=Tomcat and it works fine for me. We are running 6 tomcats4.1 on jdk1.4.1/linux 7.3 on dual-Xeon2,8Ghz Hardware, and it works great. Christoph [EMAIL PROTECTED] P.S.: But I changed the source a bit. Von: Filip Hanik [EMAIL PROTECTED] Betreff: RE: Load balancing and Sticky sessions Datum: Donnerstag, 20. März 2003 19:25 Hi Ben, session replication is working for Tomcat 5, and I have back ported a version to tomcat 4.1.x http://www.filip.net/tomcat-clustering.html Filip Frank Dmuchowski [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] I was our intention is to cluster our apache/tomcat application server with a high performance clustering package called OSCAR. However, we saw a message in the OSCAR mailinglist archive stating that ..tomcat was not cluster aware in any sense. It mentioned using something called mod_backhand in Apache. Is anyone using tomcat application servers in a clustered environment? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Worker found, but not doing any work?
Hi, Check your logs for errors. You should find a message stating that a certain page can not be found. What is the path? If it is something like APACHE_HOME/htdocs/examples/*.jsp then the document root in httpd.conf needs looking at. Chris. -Original Message- From: Frank Garber [mailto:[EMAIL PROTECTED] Sent: Friday, 21 March 2003 1:59 a.m. To: [EMAIL PROTECTED] Subject: Worker found, but not doing any work? I'm using Tomcat 4.1.18 with Apache 2.0.44. When I browse directly to the Tomcat examples all the servlets and JSPs work fine. I'm having trouble accessing the examples through apache. I've found numerous examples on the web for setup. Each is different and unfortunately, none of them has worked! I've gotten to the point with I can display all the static content and can see from the mod-_jk.log file that I have found a worker. Its just the worker is returning 404 and I don't know why?? Any thoughts would be GREATLY appreciated. Thanks, F [Thu Mar 20 08:58:15 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/jsp/dates/date.jsp' [Thu Mar 20 08:58:15 2003] [jk_uri_worker_map.c (558)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp [Thu Mar 20 08:58:15 2003] [mod_jk.c (1668)]: Into handler r-proxyreq=0 r-handler=jakarta-servlet r-notes=7932888 worker=ajp13 [Thu Mar 20 08:58:15 2003] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 [Thu Mar 20 08:58:15 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker [Thu Mar 20 08:58:15 2003] [mod_jk.c (485)]: agsp=80 agsn=www.fcgphoto.com hostn=www.fcgphoto.com shostn=www.fcgphoto.com cbsport=0 sport=0 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (1404)]: Into jk_worker_t::get_endpoint [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (1116)]: Into jk_endpoint_t::service [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (432)]: ajp_marshal_into_msgb - Done [Thu Mar 20 08:58:15 2003] [jk_connect.c (132)]: Into jk_open_socket [Thu Mar 20 08:58:15 2003] [jk_connect.c (139)]: jk_open_socket, try to connect socket = 664 [Thu Mar 20 08:58:15 2003] [jk_connect.c (148)]: jk_open_socket, after connect ret = 0 [Thu Mar 20 08:58:15 2003] [jk_connect.c (157)]: jk_open_socket, set TCP_NODELAY to on [Thu Mar 20 08:58:15 2003] [jk_connect.c (174)]: jk_open_socket, return, sd = 664 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (614)]: In jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 664 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (642)]: sending to ajp13 #581 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (884)]: ajp_send_request 2: request body to send 0 - request body to resend 0 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (729)]: received from ajp13 #81 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (483)]: ajp_unmarshal_response: status = 404 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (488)]: ajp_unmarshal_response: Number of headers is = 2 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[0] [Content-Type] = [text/html;charset=ISO-8859-1] [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[1] [Content-Language] = [en-US] [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (729)]: received from ajp13 #726 [Thu Mar 20 08:58:15 2003] [mod_jk.c (386)]: writing 722 (722) out of 722 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (729)]: received from ajp13 #2 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (1382)]: Into jk_endpoint_t::done, recycling connection [Thu Mar 20 08:58:15 2003] ajp13 www.fcgphoto.com 0.03 = __ My full time permanent email address is always: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException
For me the easiest thing was just to provide the right command line options (java.awt.headless=true) when I started up Tomcat. At 02:27 PM 3/20/03 -0500, you wrote: At 07:18 PM 3/20/2003 +, you wrote: ok: there is another solution to the headless thing: (I wrote a graphical servlet that runs on a linux box without X, and had the same problems: The headless seemed to work, well, kinda, but not to my liking): So I went the xvfb route: This is a virtual frame buffer to can install on a linux box that emulates an X session, which then kinda solves all the graphical problems in one step. You set the xvfb to the resolution required and just start and forget about it. Worth I shot, I'd say, and might safe you hours of frustration [It did me ;-) ]. I had tried xvfb and had some difficulties. Any pointers? suggestions? Thanks, Glenn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSL Handshake failure
I setup a tomcat 3.3.1 system, with the ssl connector, JSSE, generated cert and keystore, per documentation. Every time I attempt to hit https://theserver:8443/ we get the below in the console window for tomcat... PoolTcpEndpoint: Handshake failed javax.net.ssl.SSLException: bad handshake record MAC at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275) at java.io.OutputStream.write(OutputStream.java:56) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275) at org.apache.tomcat.util.net.JSSESocketFactory.handshake(JSSESocketFactory.jav a:270) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:479) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:516) at java.lang.Thread.run(Thread.java:479) ThreadPool: Caught exception executing [EMAIL PROTECTED], terminating thread java.lang.NullPointerException at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:498) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:516) at java.lang.Thread.run(Thread.java:479) Jeremy Davis Senior Support Analyst BPI Marketplace Integration 614.760.8941 1.800.436.8726 - Support Line - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't connect to X11 window server using '0:0' as the value ofthe display and now java.awt.HeadlessException
Hi, Another common (Java) solution is to install PJA Toolkit: PJA (Pure Java AWT) Toolkit is a JavaTM library for drawing graphics developed by eTeks. It is 100% Pure Java and doesn't use any native graphics resource of the system on which the Java Virtual Machine runs. java.awt.Graphics methods such as drawLine (), fillOval (), drawString (),... are implemented in the default JVM with native graphical functions (except in some cases for Java2D) : That means that drawLine () finally calls a GDI system function on Windows or X11 function on a X11/UNIX machine even if the drawing is done in an off-screen image using the class java.awt.Image. This ensures the best performance for drawing graphics with Java. But in a few cases, this default behavior can cause problems that PJA library improves : When no X11 Display is available on a UNIX machine (also called headless environment) or when GDI resources are low on Windows, it is impossible to compute off-screen images with java.awt.Graphics methods under a JDK version 1.4, even if your program doesn't need to display these images. Typically, this situation happens for servlets returning dynamically generated images like pies, charts or web counters. With PJA, you don't need to change your Java programs that you expected to run : setting java.awt system property to com.eteks.awt.PJAToolkit is the only required modification to your program with Java 1.1 (see PJA FAQ and com.eteks.awt.PJAToolkit class documentation for more information). It is also impossible to compute off-screen images when the Java security manager forbids access to any Toolkit or the AWT library. In that case you can although create an instance of com.eteks.awt.PJAImage class which extends java.awt.Image, and draw into it with graphics methods. Drawing with native function doesn't give always the exact same results for each pixel on all platforms. For example, SansSerif font renders differently on MacOS, Windows and other systems : each letter of this font isn't drawn the same, and is different if font anti-aliasing is set or not on the system. On MacOS, circles aren't rendered as specified in Java documentation : fillArc () and drawArc () don't use the same base ellipse... Finally, PJA library available under GNU General Public License is supplied with its Java source files, and is a good exemple for studying : How pixels are drawn by graphics functions on a computer (com.eteks.awt.PJAGraphics uses Bresenham algorithms to draw lines and circles). How to use the Java paradigm for managing images specified by the ImageConsumer/ImageProducer/ImageObserver interfaces. How Java Toolkit works and what it needs to work (which abstract classes and interfaces to implement). Regards, Chris. -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED] Sent: Friday, 21 March 2003 7:18 a.m. To: Tomcat Users List Subject: Re: Can't connect to X11 window server using '0:0' as the value ofthe display and now java.awt.HeadlessException ok: there is another solution to the headless thing: (I wrote a graphical servlet that runs on a linux box without X, and had the same problems: The headless seemed to work, well, kinda, but not to my liking): So I went the xvfb route: This is a virtual frame buffer to can install on a linux box that emulates an X session, which then kinda solves all the graphical problems in one step. You set the xvfb to the resolution required and just start and forget about it. Worth I shot, I'd say, and might safe you hours of frustration [It did me ;-) ]. On Thu, 2003-03-20 at 18:34, Micael wrote: You using Linux? What is your environment? Anyway, setting the JVM is the way to go if you are using Linux. At 06:09 PM 3/20/03 +0100, you wrote: Hi, I put System.setProperty(java.awt.headless, true); in my servlet init method it's ok, but now when I open a Frame, I get the exception HeadlessException: java.awt.HeadlessException at java.awt.GraphicsEnvironnement.checkHeadless(GraphicsEnvironement.java:121) at java.awt.window.init(Window.java:226) at java.awt.Frame.init(Frame.java:398) ... What can I do? Georges Chad Johnson wrote: If I had to wager a guess you'll need to run tomcat in a 'headless' JVM. To do that add : -Djava.awt.headless=true To the : CATALINA_OPTS environment variable. -Chad Johnson -Original Message- From: Georges Roux [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 5:32 PM To: [EMAIL PROTECTED] Subject: Can't connect to X11 window server using '0:0' as the value of the display Hello everybody, Hi run Tomcat 4.1.18 Standalone on Linux debian(sid)and use J2sdk1.4.1_01. I have a servlet which manipulate exif informations in jpg images. it works well but when I try to run it on tomcat it fails (error 500) I have the following error: Can't connect to X11 window server using '0:0' as the value of the display What can I do? Georges
Problem with my aplication
Hello there, I´m using Tomcat 4.1.12 for a while and I'm very happy with it. Congratulations. Today I had a problem like this, it's happening sometimes. There are about 80 browser accessing it and my server has 2GB of RAM and 2 xeon processor at 2GHz. I'm using java 1.4.0 Take a look at tomcat's log file. 2003-03-20 17:09:42 StandardWrapperValve[ATMDemo]: Servlet.service() for servlet ATMDemo threw exception javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:533) at java.lang.Thread.run(Thread.java:536) - Root Cause - java.lang.OutOfMemoryError Is there a hint to solve this problem? I apreciate your help. Thanks a lot. Cláudio Pimentel Modesto System analist Bank of Brasília - Brazil Cartão BRB - DEINF/GERAS *362-3414 [EMAIL PROTECTED] O BRB não se responsabiliza pelo conteúdo da mensagem acima, sendo esta responsabilidade exclusiva de seu autor. A informação transmitida nesta mensagem destina-se estritamente à(s) pessoa(s) acima referida(s) e contém informação confidencial, legalmente protegida, para conhecimento exclusivo do(s) destinatário(s). A leitura, exame, retransmissão, divulgação, distribuição, cópia ou outro uso desta comunicação, ou ainda a tomada de qualquer ação baseada nesta informação, por pessoas ou entidades que não sejam o(s) destinatário(s), constitui obtenção de dados por meio ilícito e configura ofensa ao Art.5º, inciso XII, da Constituição Federal. Caso esta mensagem tenha sido recebida por engano, por favor inutilize-a e, se possível, avise ao remetente por e-mail. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with my aplication
You may want to try some JVM tweaks to play with the memory heap size, the garbage collection size and such? Jeremy Davis Senior Support Analyst BPI Marketplace Integration 614.760.8941 1.800.436.8726 - Support Line -Original Message- From: Claudio Pimentel Modesto [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 3:42 PM To: '[EMAIL PROTECTED]' Subject: Problem with my aplication Hello there, I´m using Tomcat 4.1.12 for a while and I'm very happy with it. Congratulations. Today I had a problem like this, it's happening sometimes. There are about 80 browser accessing it and my server has 2GB of RAM and 2 xeon processor at 2GHz. I'm using java 1.4.0 Take a look at tomcat's log file. 2003-03-20 17:09:42 StandardWrapperValve[ATMDemo]: Servlet.service() for servlet ATMDemo threw exception javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:533) at java.lang.Thread.run(Thread.java:536) - Root Cause - java.lang.OutOfMemoryError Is there a hint to solve this problem? I apreciate your help. Thanks a lot. Cláudio Pimentel Modesto System analist Bank of Brasília - Brazil Cartão BRB - DEINF/GERAS *362-3414 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need help with tomcat running as service with ajp13
Hello All, I have Tomcat 4.1.18 running as a service on an NT4.0 machine with Java 1.3.1 ... also it is getting requests via ajp13 from an apache server. It starts and works fine, but I am seeing a problem where it gets stuck and pegs the cpu. I can still connect to the administration page and connect to applications in a reasonable amount of time, but I am concerned about why it is using 100% cpu to do nothing. Has anyone experienced this or have a suggestion as to what I can log to figure out what is happening? (I have tried to log everything with no success.) TIA, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need help with tomcat running as service with ajp13
There is an issue with the JDK 1.3.x and NT running as a service? Maybe try and upgrade the jdk to 1.4? Jeremy Davis Senior Support Analyst BPI Marketplace Integration 614.760.8941 1.800.436.8726 - Support Line -Original Message- From: Strecker, Mark [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 4:15 PM To: Tomcat Users List Subject: Need help with tomcat running as service with ajp13 Hello All, I have Tomcat 4.1.18 running as a service on an NT4.0 machine with Java 1.3.1 ... also it is getting requests via ajp13 from an apache server. It starts and works fine, but I am seeing a problem where it gets stuck and pegs the cpu. I can still connect to the administration page and connect to applications in a reasonable amount of time, but I am concerned about why it is using 100% cpu to do nothing. Has anyone experienced this or have a suggestion as to what I can log to figure out what is happening? (I have tried to log everything with no success.) TIA, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help with tomcat running as service with ajp13
The very first thing I'd try is upgrading to the latest version of the JDK (1.4.1_01). I thought Tomcat 4.x required it -- I'm surprised you got as far as you did! -Jake - Original Message - From: Strecker, Mark [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, March 20, 2003 4:15 PM Subject: Need help with tomcat running as service with ajp13 Hello All, I have Tomcat 4.1.18 running as a service on an NT4.0 machine with Java 1.3.1 ... also it is getting requests via ajp13 from an apache server. It starts and works fine, but I am seeing a problem where it gets stuck and pegs the cpu. I can still connect to the administration page and connect to applications in a reasonable amount of time, but I am concerned about why it is using 100% cpu to do nothing. Has anyone experienced this or have a suggestion as to what I can log to figure out what is happening? (I have tried to log everything with no success.) TIA, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't connect to X11 window server using '0:0' as the value ofthe display and now java.awt.HeadlessException
Yep: Done correctly, this is probably the more 'correct' solution, but, and I'm probably opening myself to a lot of flamebait, but I do suspect that using something like Xvfb might give some advantages that using headless won't. For example, and I'm just guessing, but I think that 'headless' is purely a software solution, while Xvfb might be connected to your display adaptor, and therefor might be faster or less of a drain on your system resources. { But, like I said, I have no documentation to back up this statement, this is purely a guess and based on my personal findings: If anybody else knows differently, I would be very interested to know more, as I'm doing a lot more graphics orientated servlets, that usually run on headless boxes } On Thu, 2003-03-20 at 20:36, Micael wrote: For me the easiest thing was just to provide the right command line options (java.awt.headless=true) when I started up Tomcat. At 02:27 PM 3/20/03 -0500, you wrote: At 07:18 PM 3/20/2003 +, you wrote: ok: there is another solution to the headless thing: (I wrote a graphical servlet that runs on a linux box without X, and had the same problems: The headless seemed to work, well, kinda, but not to my liking): So I went the xvfb route: This is a virtual frame buffer to can install on a linux box that emulates an X session, which then kinda solves all the graphical problems in one step. You set the xvfb to the resolution required and just start and forget about it. Worth I shot, I'd say, and might safe you hours of frustration [It did me ;-) ]. I had tried xvfb and had some difficulties. Any pointers? suggestions? Thanks, Glenn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- p niemandt [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't connect to X11 window server using '0:0' as the value ofthe display and now java.awt.HeadlessException
Hi, I would say that Xvfb does _not_ connect to your display adapter - the v stands for virtual, ie it's not a real frame buffer as in a video card - it's a virtual one in your systems normal memory. It's specifically for taking the place of a display adapter when your server doesn't have one. We always used to use this on sun E250s without a display adapter, but now we use headless as it's more reliable. Andy -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED] Sent: 20 March 2003 21:47 To: Tomcat Users List Subject: Re: Can't connect to X11 window server using '0:0' as the value ofthe display and now java.awt.HeadlessException Yep: Done correctly, this is probably the more 'correct' solution, but, and I'm probably opening myself to a lot of flamebait, but I do suspect that using something like Xvfb might give some advantages that using headless won't. For example, and I'm just guessing, but I think that 'headless' is purely a software solution, while Xvfb might be connected to your display adaptor, and therefor might be faster or less of a drain on your system resources. { But, like I said, I have no documentation to back up this statement, this is purely a guess and based on my personal findings: If anybody else knows differently, I would be very interested to know more, as I'm doing a lot more graphics orientated servlets, that usually run on headless boxes } On Thu, 2003-03-20 at 20:36, Micael wrote: For me the easiest thing was just to provide the right command line options (java.awt.headless=true) when I started up Tomcat. At 02:27 PM 3/20/03 -0500, you wrote: At 07:18 PM 3/20/2003 +, you wrote: ok: there is another solution to the headless thing: (I wrote a graphical servlet that runs on a linux box without X, and had the same problems: The headless seemed to work, well, kinda, but not to my liking): So I went the xvfb route: This is a virtual frame buffer to can install on a linux box that emulates an X session, which then kinda solves all the graphical problems in one step. You set the xvfb to the resolution required and just start and forget about it. Worth I shot, I'd say, and might safe you hours of frustration [It did me ;-) ]. I had tried xvfb and had some difficulties. Any pointers? suggestions? Thanks, Glenn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- p niemandt [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: Can't connect to X11 window server using '0:0' as the value ofthedisplay and now java.awt.HeadlessException
Sorry but with headless I can't create a Frame, with Xvfb I can. Georges Andy Eastham wrote: Hi, I would say that Xvfb does _not_ connect to your display adapter - the v stands for virtual, ie it's not a real frame buffer as in a video card - it's a virtual one in your systems normal memory. It's specifically for taking the place of a display adapter when your server doesn't have one. We always used to use this on sun E250s without a display adapter, but now we use headless as it's more reliable. Andy -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED] Sent: 20 March 2003 21:47 To: Tomcat Users List Subject: Re: Can't connect to X11 window server using '0:0' as the value ofthe display and now java.awt.HeadlessException Yep: Done correctly, this is probably the more 'correct' solution, but, and I'm probably opening myself to a lot of flamebait, but I do suspect that using something like Xvfb might give some advantages that using headless won't. For example, and I'm just guessing, but I think that 'headless' is purely a software solution, while Xvfb might be connected to your display adaptor, and therefor might be faster or less of a drain on your system resources. { But, like I said, I have no documentation to back up this statement, this is purely a guess and based on my personal findings: If anybody else knows differently, I would be very interested to know more, as I'm doing a lot more graphics orientated servlets, that usually run on headless boxes } On Thu, 2003-03-20 at 20:36, Micael wrote: For me the easiest thing was just to provide the right command line options (java.awt.headless=true) when I started up Tomcat. At 02:27 PM 3/20/03 -0500, you wrote: At 07:18 PM 3/20/2003 +, you wrote: ok: there is another solution to the headless thing: (I wrote a graphical servlet that runs on a linux box without X, and had the same problems: The headless seemed to work, well, kinda, but not to my liking): So I went the xvfb route: This is a virtual frame buffer to can install on a linux box that emulates an X session, which then kinda solves all the graphical problems in one step. You set the xvfb to the resolution required and just start and forget about it. Worth I shot, I'd say, and might safe you hours of frustration [It did me ;-) ]. I had tried xvfb and had some difficulties. Any pointers? suggestions? Thanks, Glenn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- p niemandt [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]
Transfer-encoding:chunked responsibilities?
Dear All, I couldn't find mention in the servlet spec for this so I'm asking here if anyone knows what the correct procedure should be. In a servlet I want to use the HTTP 1.1 chunked transfer encoding, so, I add the Transfer-encoding header with a value of chunked as a response header. I then start writing my servlet data to the servlet's output stream. My question is this - is the servlet responsible for encoding the data as per the HTTP 1.1 chunking rules, or can I expect the servlet container to handle this for me. The reason I ask is that, as far as I can tell, tomcat is ignoring the chunk directive and my data is passed to the the browser 'unchunked'. If this is the case, and the servlet has to perform the chunking, how does this mesh with special character encodings that are meant to be performed prior to the transfer-encoding being applied? In my serlvet, I might set my serlvet locale to, say, japanese, and have the servlet engine do the appropriate encoding for me, ie. from unicode to Shift_js, but, If my serlvet is responsible for performing the transfer-encoding, how can I do this, when the character-encoding is meant to be performed prior to the transfer-encoding. Of course, all this is moot if the container performs the transfer-encoding for me and so can someone tell me the correct procedure for informing tomcat to use chunk-encoding. I've tried setting the Transfer-encoding header, but I still seem to be seeing a Content-Length header as well as a Transfer-Encoding header in my response header, and all data appears to be non-chunked, i.e. there's no prefix ie. Hex size crlf associated with the data I send. -Thom -- My friend, you would not tell with such high zest To children ardent for some desperate glory, The old Lie: Dulce et decorum est Pro patria mori. -- Wilfred Owen (1893-1918) http://www.etsu.edu/english/muse/owen.htm -- Borland -- Enabling a new digital world where our customers have the freedom of choice to develop, deploy, and integrate applications across the enterprise and the Internet. http://www.borland.com This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately and permanently delete the original and any copy of any e-mail and any printout thereof. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
weird mod_jk log messages
Hello everyone, I've looked through the mail archives for this mailing list and haven't found an answer to the weird mod_jk log message I get. So to end it once and for all, can any one please tell me why the following (see log below) is showing up in my mod_jk.log file? Are you guys getting this and ignoring it, or do you set the log level to emerg so they don't show up (they show up using JkLogLevel error)? Yet, my apps seems to work...? I'm using Linux (Debian 3.0), mod_jk 1.2.2 binary for Linux i386 downloaded from the tomcat-connectors project, Tomcat 4.0.4 (I know, I haven't had the chance to upgrade to 4.0.6 or 4.1.x yet but from the logs posted by others I don't think it's specific to TC 4.0.4). Here's a snippet of the mod_jk.log output: [Tue Mar 18 21:51:56 2003] [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. [Tue Mar 18 21:51:56 2003] [jk_ajp_common.c (1050)]: Error reading reply from tomcat. Tomcat is down or network problems. [Tue Mar 18 21:51:56 2003] [jk_ajp_common.c (1187)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 Many thanks in advance. Regards, Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]