Re: mod_jk replacement?
ProxyPass doesn't accept wildcards like this. You can either Proxy a complete path, and 'unproxy' the ones you don't need: ProxyPass /scripts/ ! # exclamation mark == 'not' ProxyPass /images/ ! # exclamation mark == 'not' ProxyPass / ajp://host:0/ # proxy the rest Or you can use mod_rewrite to proxy more specific URLs: RewriteEngine on RewriteRule ^\/(.+)\.jsp(.+)? ajp://host/$1.jsp$2 [P,L] rgds p Raj Mettai wrote: Hi, how to put wildcards into ProxyPass, for example if I want to send only jsp requests to tomcat and not html like below. ProxyPass /*.jsp ajp://127.0.0.1:8009/ the above config is not working, I have jsp files spread across multiple folders on tomcat and the same folder structure on apache has html pages, so I want to forward only jsp requests to tomcat thanks Raj Please Note: Due to Florida's very broad public records law, most written communications to or from College employees regarding College business are public records, available to the public and media upon request. Therefore, this email communication may be subject to public disclosure [EMAIL PROTECTED] 1/22/2007 4:14:54 AM >>> Recently i'm using mod_proxy_ajp, as mod_jk replacement with apache. I don't have this in an production environment, but along this week I plan to do it. This is an extract of my apache config: ProxyPass /app/img/ ! ProxyPass /app/js/ ! ProxyPass /app/doc/ ! ProxyPass /app/css/ ! ProxyPass /app/ ajp://127.0.0.1:8009/app/ Alias /app "/srv/www/tomcat5/base/webapps/app" Options None allow from all -Mensaje original- De: JNeuhoff [mailto:[EMAIL PROTECTED] Enviado el: lunes, 22 de enero de 2007 0:27 Para: users@tomcat.apache.org Asunto: mod_jk replacement? Is there another connector software available between Apache 2.0.59 and Tomcat 5.5.17 on Windows 2003 which is more stable and suitable for a live web service? mod_jk 1.2.20 (which I believe is the latest version) appears to have some problems with managing TCP connections (see http://www.nabble.com/Apache-mod_jk-memory-leak--tf3023318.html for details). We are desparately looking for a working connection software between Apache and Tomcat. Alternatively, we are thinking of running a standalone Tomcat in which case we'd find to find a way of mapping some web-enabled directories with static resources (mainly PNG images and some simple PHP scripts) to Tomcat in addition to our Servlet. Is that possible? -- View this message in context: http://www.nabble.com/mod_jk-replacement--tf3050993.html#a8481132 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- La Información incluida en el presente correo electrónico es SECRETO PROFESIONAL Y CONFIDENCIAL, siendo para el uso exclusivo del destinatario arriba mencionado. Si usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que esta totalmente prohibida cualquier divulgación, distribución o reproducción de esta comunicación, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada. Gracias. The information contained in this e-mail is LEGALLY PRIVILEDGED AND CONFIDENTIAL and is intended only for the use of the addressee named above. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, or you have received this communication in error, please be aware that any dissemination, distribution or duplication of this communication is strictly prohibited, and please notify us immediately and return the original message to us at the address above. Thank you. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat monitoring
there is probably no such thing as "best way" - JVM Heap usage manager and lambdaprober - Number of active threads (if by active threads you mean current requests) manager, lambdaprobe, moskito - JDBC connection pool stats lambdaprobe - Active thread list lambdaprobe, moskito (if by active threads you mean current requests) - Hits/Sec (running average) all of the above. However, running average is pretty useless, since after a week of running it won't change even if the hits doubled or halved. If you want the average in last 15 minutes or some other time interval go for moskito. regards Leon On 2/27/07, H H <[EMAIL PROTECTED]> wrote: Does anyone know whats the best way to monitor a tomcat application remotely - I have seen the mailing lists and there are some tools that provide monitoring. However I need a way to programatically ping Tomcat and collect performance statistics - Any language would do : perl/java, I need to integrate the monitoring to another application. I am looking to collect the foll stats: - JVM Heap usage - Number of active threads - JDBC connection pool stats - Active thread list - Hits/Sec (running average) - TV dinner still cooling? Check out "Tonight's Picks" on Yahoo! TV. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
allowing others ip connect
Hi Using tomcat, how do I (or where) configure tomcat so I can allow other computers on the network access my http server... Do you know which file I can add ip addresses so that they are allowed see my local sites content? Thanks Eoghan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cannot run JVM in server mode with JSVC
Hello, I need to run the JVM in server mode but jsvc does not switch to the server mode despite the configuration below. There aren't even any error messages. Can somebody please tell me what's wrong? Cheers, Pete JAVA_HOME1=/usr/local/jdk1.5.0_06 CATALINA_HOME=/usr/local/jakarta-tomcat-5.5.9 DAEMON_BIN=/usr/local/jakarta-tomcat-5.5.9/bin/jsvc TOMCAT_USER=loew TMP_DIR=/var/tmp CATALINA_OPTS="-Xmx1900m -Xms256m -XX:MaxPermSize=256m -XX:ReservedCodeCacheSize=64m -Dcom.sun.management.jmxremote " CLASSPATH=/usr/local/jdk1.5.0_06/lib/tools.jar:\ $CATALINA_HOME/bin/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar case "$1" in start) # # Start Tomcat # $DAEMON_BIN \ -user $TOMCAT_USER \ -home $JAVA_HOME1 \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$TMP_DIR \ -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '&1' \ $CATALINA_OPTS \ -cp $CLASSPATH \ org.apache.catalina.startup.Bootstrap \ -jvm server \ # # To get a verbose JVM # -verbose \ # To get a debug of jsvc. #-debug \ ;;
Re: [OT] Parallel Tomcat 5 and 6 services on Windows
The message was "Failed to install Tomcat6 service. Ignore and continue anyway (not recommended)?" Tomcat 5 service has been stopped prior to the installation. I wonder why the setup issues this message, since the tomcat6 service should be considered independent of tomcat5 service. Maybe there is some name/description clash in the service installation routine (does Windows allow to have more than one service with an identical DisplayName?). Anyways, the services.bat is indeed the best workaround. Mark Thomas-14 wrote: > > Robert Novotny wrote: >> Greetings, >> I would like to test Tomcat 6 on Windows, however I would still like to >> retain the previous Tomcat 5 installation (along with the Tomcat 5 >> service). > > I don't think the windows installer isn't set up to do this. I can't > remember what the issue was but have a vague recollection of a bug > report in this area. Using services.bat is the best work-around. > > Mark > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Parallel-Tomcat-5-and-6-services-on-Windows-tf3292307.html#a9180663 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reload on demand?
Kent Tong wrote: In a development environment it's desirable to reload a webapp if any of its class files has been changed. Are you serious?! Our developers rely on Hot Code Replacement to enable them to continue debugging after changes to program logic, and only restart if they want/need to or if HCR fails (e.g. because they added/altered a public member signature etc.). They would not be happy with your policy! I know about the reloadable flag, but it will keep reloading the webapp whenever a change is made and slows down the computer. Instead, I'd like to reload it on demand, ie, when it is accessed again. Don't you run tests after changing your apps? ;-) Is it a desirable feature? It shouldn't be that hard to implement (invoke the reload logic before any access to the webapp instead of from a background scheduler). I (think I) understand your Wish, but I reckon they way you work is so unusual that you won't be able to rally much support for it. In our apps, it's initialisation of the application bean that takes time, and this happens at first request, not at reload. Yes, I know about the reload function in the Tomcat manager. But it requires two manual steps: first, reload the webapp; second, access a page in the webapp. Paul Singleton - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.rmi.server.ExportException thrown when stopping Tomcat
Hi there, I have edited the catalina.bat to enable jmx connections to tomcat server. set JAVA_OPTS=%JAVA_OPTS% - Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager - Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9004 - Dcom.sun.management.jmxremote.authenticate=false - Dcom.sun.management.jmxremote.ssl=false After making the necessary settings, when i run the shutdown.bat, an exception is thrown Error: Exception thrown by the agent : java.rmi.server.ExportException: Port alr eady in use: 9004; nested exception is: java.net.BindException: Address already in use: JVM_Bind Any advice on this issue?
RE: allowing others ip connect
> From: eoghan [mailto:[EMAIL PROTECTED] > Subject: allowing others ip connect > > Using tomcat, how do I (or where) configure tomcat so I can allow > other computers on the network access my http server... > Do you know which file I can add ip addresses so that they are allowed > see my local sites content? By default, Tomcat listens on port 8080 of all IP addresses on the box it's running on. Read the doc if you want to change that: http://tomcat.apache.org/tomcat-5.5-doc/config/http.html Make sure firewalls are not blocking access from other systems. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.rmi.server.ExportException thrown when stopping Tomcat
On 2/27/07, chuanjiang lo <[EMAIL PROTECTED]> wrote: Hi there, I have edited the catalina.bat to enable jmx connections to tomcat server. set JAVA_OPTS=%JAVA_OPTS% - Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager - Dcom.sun.management.jmxremote - Dcom.sun.management.jmxremote.port=9004 -Dcom.sun.management.jmxremote.authenticate=false - Dcom.sun.management.jmxremote.ssl=false After making the necessary settings, when i run the shutdown.bat, an exception is thrown Error: Exception thrown by the agent : java.rmi.server.ExportException: Port alr eady in use: 9004; nested exception is: java.net.BindException: Address already in use: JVM_Bind Any advice on this issue? i think i solved the problem. Looking into catalina.bat again i guess i only set the parameters to enable rmi connections if it is start server set JAVA_OPTS=%JAVA_OPTS% - Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager if ""%1"" == ""start"" set JAVA_OPTS=%JAVA_OPTS% - Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9004 - Dcom.sun.management.jmxremote.authenticate=false - Dcom.sun.management.jmxremote.ssl=false
Updating java
Hello, Because of DST changes I need to upgrade a lot of java installations. I am using JSVC and I am wondering if I will need to recompile it since I am doing minor updates. 5.0_u6 and 5.0_u8 to 5.0_u10. Any hint would be appreciated. NOTICE: This email contains privileged and confidential information and is intended only for the individual to whom it is addressed. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this transmission by mistake and delete this communication from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. AVIS: Le présent courriel contient des renseignements de nature privilégiée et confidentielle et nest destiné qu'à la personne à qui il est adressé. Si vous nêtes pas le destinataire prévu, vous êtes par les présentes avisés que toute diffusion, distribution ou reproduction de cette communication est strictement interdite. Si vous avez reçu ce courriel par erreur, veuillez en aviser immédiatement lexpéditeur et le supprimer de votre système. Notez que la transmission de courriel ne peut en aucun cas être considéré comme inviolable ou exempt derreur puisque les informations quil contient pourraient être interceptés, corrompues, perdues, détruites, arrivées en retard ou incomplètes ou contenir un virus. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk replacement?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Raj, Raj Mettai wrote: > how to put wildcards into ProxyPass, for example if I want to send > only jsp requests to tomcat and not html like below. > > ProxyPass /*.jsp ajp://127.0.0.1:8009/ > > the above config is not working, I have jsp files spread across > multiple folders on tomcat and the same folder structure on apache > has html pages, so I want to forward only jsp requests to tomcat This was one of the reasons that I decided not to use mod_proxy_ajp. I could never get anything except entire-URI-space proxying, instead of selected URIs (including wildcards). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF5DTm9CaO5/Lv0PARAhi8AKClw1dphDj6jDw2sb/03O6Dr5qmWwCfW+CU drFxjoDA16QSe6EcMVvB4qw= =3ITC -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk sticky session still not working
Scott Ensure that the following line is commented out. You may have already done this And uncomment Hope that will help. Rasool Asal -Original Message- From: Scott Danforth [mailto:[EMAIL PROTECTED] Sent: 23 February 2007 15:04 To: Tomcat Users List Subject: Re: mod_jk sticky session still not working P.S. I see a mention of "cluster" in the documentation for jvmRoute. Do I need to configure a "cluster" perhaps? -- Scott. Scott Danforth wrote: > Mladen Turk wrote: > >> Scott Danforth wrote: >> >>> I'm trying to use jk1.2.20 mod_jk with Apache 1.3 for load balancing >>> two tomcat services and sticky sessions aren't working. >> >> >> >> You don't have session affinity mark >> For each instance add jvmRoute="tomcat1" or >> jvmRoute="tomcat2 for a second instance. See: >> http://tomcat.apache.org/tomcat-5.5-doc/config/engine.html > > > > Thanks for your help. That sounds very reasonable, and I modifed the > two server.xml Engine elements as suggested, but it appears to make no > difference. > > Below are 3 segments from mod_jk.log. > > The first segment shows the initial request coming in without a > sessionid. The request is routed to tomcat1 with route=tomcat1. > > The second segment shows the response coming back from tomcat1, with a > new session id. > > The third segment shows the second request coming in with the expected > session id, and shows tomcat2 being selected with route=tomcat2. > > You say I don't have session affinity mark. How would that show up in > the log? Is the "partial sessionid" an indication of the problem? > >-- Scott. > > > [Fri Feb 23 09:08:53 2007] [6000:] [debug] > map_uri_to_worker::jk_uri_worker_map.c (575): Attempting to map URI > '/servlets/Build' from 1 maps [Fri Feb 23 09:34:59 2007] [6266:] > [debug] map_uri_to_worker::jk_uri_worker_map.c (587): Attempting to > map context URI '/servlets/*=loadbalancer' source 'JkMount' > [Fri Feb 23 09:34:59 2007] [6266:] [debug] > map_uri_to_worker::jk_uri_worker_map.c (602): Found a wildchar match > '/servlets/*=loadbalancer' > [Fri Feb 23 09:34:59 2007] [6266:] [debug] > wc_get_worker_for_name::jk_worker.c (114): found a worker loadbalancer > [Fri Feb 23 09:34:59 2007] [6266:] [debug] > wc_maintain::jk_worker.c (321): Maintaining worker loadbalancer [Fri > Feb 23 09:34:59 2007] [6266:] [debug] > wc_get_name_for_type::jk_worker.c (290): Found worker type 'lb' > [Fri Feb 23 09:34:59 2007] [6266:] [debug] > init_ws_service::mod_jk.c (561): Service protocol=HTTP/1.1 method=GET > host=(null) addr=192.168.1.50 name=build port=8008 auth=(null) > user=(null) laddr=192.168.1.7 raddr=192.168.1.50 [Fri Feb 23 09:34:59 > 2007] [6266:] [debug] service::jk_lb_worker.c > (840): service sticky_session=1 id='empty' > [Fri Feb 23 09:34:59 2007] [6266:] [debug] > get_most_suitable_worker::jk_lb_worker.c (785): found best worker > tomcat1 (tomcat1) using method 'Request' > [Fri Feb 23 09:34:59 2007] [6266:] [debug] service::jk_lb_worker.c > (860): service worker=tomcat1 route=tomcat1 > > ... > > [Fri Feb 23 09:35:00 2007] [6266:] [debug] > ajp_unmarshal_response::jk_ajp_common.c (603): status = 200 [Fri Feb > 23 09:35:00 2007] [6266:] [debug] > ajp_unmarshal_response::jk_ajp_common.c (610): Number of headers is = > 2 [Fri Feb 23 09:35:00 2007] [6266:] [debug] > ajp_unmarshal_response::jk_ajp_common.c (666): Header[0] [Set-Cookie] > = [JSESSIONID=9E36E3DC58A09ED9045B25F839E37A2C; Path=/] [Fri Feb 23 > 09:35:00 2007] [6266:] [debug] > ajp_unmarshal_response::jk_ajp_common.c (666): Header[1] > [Content-Type] = [text/html;charset=ISO-8859-1] [Fri Feb 23 09:35:00 > 2007] [6266:] [debug] > ajp_connection_tcp_get_message::jk_ajp_common.c (1029): received from > ajp13 pos=0 len=2309 max=8192 > > ... > > [Fri Feb 23 09:35:10 2007] [6266:] [debug] > map_uri_to_worker::jk_uri_worker_map.c (575): Attempting to map URI > '/servlets/Build' from 1 maps [Fri Feb 23 09:35:10 2007] [6266:] > [debug] map_uri_to_worker::jk_uri_worker_map.c (587): Attempting to > map context URI '/servlets/*=loadbalancer' source 'JkMount' > [Fri Feb 23 09:35:10 2007] [6266:] [debug] > map_uri_to_worker::jk_uri_worker_map.c (602): Found a wildchar match > '/servlets/*=loadbalancer' > [Fri Feb 23 09:35:10 2007] [6266:] [debug] > wc_get_worker_for_name::jk_worker.c (114): found a worker loadbalancer > [Fri Feb 23 09:35:10 2007] [6266:] [debug] > wc_get_name_for_type::jk_worker.c (290): Found worker type 'lb' > [Fri Feb 23 09:35:10 2007] [6266:] [debug] > init_ws_service::mod_jk.c (561): Service protocol=HTTP/1.1 method=POST > host=(null) addr=192.168.1.50 name=build port=8008 auth=(null) > user=(null) laddr=192.168.1.7 raddr=192.168.1.50 [Fri Feb 23 09:35:10 > 2007] [6266:] [debug] service::jk_lb_worker.c > (840): service sticky_session=1 id='9E36E3DC58A09ED9045B25F839E37A2C' > [Fri Feb 23 09:35:10 2007] [6266:] [debug]
Re: .java(Permission denied) error in tomcat
Try clearing out your work directory and restarting tomcat. Tomcat will rebuild the stuff it had there. Also check to be sure ownership or permissions of files in the work directory aren't being altered. The work directory and all it's contents should be owned by tomcat and read/write by owner. --David Muruganantham wrote: > hi, > > When i tried to access a jsp page the tomcat shows the following error > message > > org.apache.jasper.JasperException: Unable to compile class for JSP > > and the root cause is > > java.io.FileNotFoundException: > /usr/local/jakarta/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/Serv_jsp.java > > (Permission denied) > > > Please any one help me. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 6 Compatibility Patch?
Hi, Tomcat 5 allowed for the installation of a compatibility patch to allow it to run with Java 1.4. I've taken a look at the documentation for Tomcat 6 and do not see any mention of a similar facility so, my assumption is that it does not exist. Can anyone confirm that for me? Does Tomcat 6 have a hard requirement for Java 1.5? Thanks, Fran -- View this message in context: http://www.nabble.com/Tomcat-6-Compatibility-Patch--tf3301097.html#a9182849 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Noobie Questions
I am a relative noobie when it comes to using the Tomcat software and have a few questions. I have been reading these threads for a few weeks now and I know that a lot of the things discussed on here are out of my league, but I just wanted to know what a few of you would do in my situation. OK we administer databases for higher education institutions, we also set up and support all software for the databases. This software includes web access software. We have 7 different clients, 14 databases(1 prod and 1 test for each client), and 14 web sites for accessing information 1 for each live and test. 1 Web Server running RHEL and tomcat 5.5.2 we also use 7 SSL certs, on for each institution which has the live name in it, so test will still be secure you just have to answer a prompt when visited or install the cert. It has been set up as the Tomcat standalone, the only way our software vendor will support it. And have set up each servlet as it's own service in the server.xml. Is this how you guys would have done it. This is the only way we could apply different certs to the different servlets. This is probably everywhere on the net but, Is there a way to bounce these services independently from the tomcat app itself? Also is it possible to script the deployment and reload proccess? I can't seem to figure that out.
Re: Tomcat 6 Compatibility Patch?
Tomcat 6 requires Java 1.5 (since the servlet spec does) -Tim Fran Varin wrote: Hi, Tomcat 5 allowed for the installation of a compatibility patch to allow it to run with Java 1.4. I've taken a look at the documentation for Tomcat 6 and do not see any mention of a similar facility so, my assumption is that it does not exist. Can anyone confirm that for me? Does Tomcat 6 have a hard requirement for Java 1.5? Thanks, Fran - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Bootstrap stop()
I took a look at the source for Tomcat 6 and the "// FIXME" remains in the "destroy" method within "Bootstrap" as well. The lack of documentation around this part of Tomcat's API is not helping much here either. So, it begs the question is what I've coded sufficient to start and stop Tomcat from a Java class sufficient or am I missing something? Any help would be greatly appreciated. Fran -- View this message in context: http://www.nabble.com/Bootstrap-stop%28%29-tf3296281.html#a9183310 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Tomcat 6 Compatibility Patch?
thanks Tim, That was my assumption but, I thought I'd ask the question at any rate. Fran Tim Funk wrote: > > Tomcat 6 requires Java 1.5 (since the servlet spec does) > > -Tim > > Fran Varin wrote: >> Hi, >> Tomcat 5 allowed for the installation of a compatibility patch to allow >> it >> to run with Java 1.4. I've taken a look at the documentation for Tomcat 6 >> and do not see any mention of a similar facility so, my assumption is >> that >> it does not exist. Can anyone confirm that for me? Does Tomcat 6 have a >> hard >> requirement for Java 1.5? >> >> Thanks, >> Fran > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Tomcat-6-Compatibility-Patch--tf3301097.html#a9183341 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reload on demand?
Paul Singleton jbgb.com> writes: > Are you serious?! Our developers rely on Hot Code Replacement to > enable them to continue debugging after changes to program logic, > and only restart if they want/need to or if HCR fails (e.g. because > they added/altered a public member signature etc.). They would > not be happy with your policy! I don't think we're talking about the same thing. I don't rely on the debugger as heavily as your developers. I like implement each feature bit by bit and test run each bit. This has nothing to do with the debugger. > Don't you run tests after changing your apps? If it doesn't reload, how can I run the tests? > I (think I) understand your Wish, but I reckon they way you work > is so unusual that you won't be able to rally much support for it. You mean that the reloadable flag is useless? Marty Hall strongly suggests setting it to true for development (ref: http://www.coreservlets.com/Apache-Tomcat-Tutorial). > In our apps, it's initialisation of the application bean that takes > time, and this happens at first request, not at reload. If for some reason you have to perform lengthy initialization, it may make sense to make the edit-reload-test cycle longer. However, this is just your case. There are many webapps under development that doesn't require length initialization. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
URL-pointing problem
Hello, having a bit of a problem here. We have deployed a web application on our server by putting it in the webapps directory, this makes it appear at a URL like http://mjau.com/pub_db. Now we want to change the URL for this webapp to something else, (in this case http://mjau.com/publications). Currently we've tried messing around with URL-mapping in /tomcat5/conf/web.xml and /tomcat5/webapps/WEB-INF/web.xml. We've tried to use the servlet-mapping directive in our web data xml-files, but it seems that the servlet is implicitly defined when putting the webapp in the webapps directory, because we have no servlet section in our web data xml-files. But things work anyway. But when we try to define our own servlet section, it won't work. We are running Tomcat 5.0.30, Java 5.0, on a Debian Etch server. This is what we've tried to do in the /tomcat5/conf/web.xml: pubdb pubdb --> Anyone have a clue what we're doing wrong? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL-pointing problem
There's a difference between webapp names and servlet names. You want to change the webapp's name. To do that, just change the name of the webapp in the webapps folder ie pub_db -> publications or pub_db.war -> publications.war. You may have to make a similar name change to the context.xml file in conf/Catalina/localhost and then restart tomcat. --David wille wrote: >Hello, > >having a bit of a problem here. > > >We have deployed a web application on our server by putting it in the >webapps directory, this makes it appear at a URL like >http://mjau.com/pub_db. Now we want to change the URL for this webapp to >something else, (in this case http://mjau.com/publications). > >Currently we've tried messing around with URL-mapping >in /tomcat5/conf/web.xml and /tomcat5/webapps/WEB-INF/web.xml. > > >We've tried to use the servlet-mapping directive in our web data >xml-files, but it seems that the servlet is implicitly defined when >putting the webapp in the webapps directory, because we have no servlet >section in our web data xml-files. But things work anyway. > >But when we try to define our own servlet section, it won't work. > >We are running Tomcat 5.0.30, Java 5.0, on a Debian Etch server. > > > > >This is what we've tried to do in the /tomcat5/conf/web.xml: > > >pubdb > >pubdb > > --> > > > > > > > > > >Anyone have a clue what we're doing wrong? > > >- >To start a new topic, e-mail: users@tomcat.apache.org >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Noobie Questions
En l'instant précis du 27/02/07 15:25, Henderson,Nathan s'exprimait en ces termes: > We have 7 different clients, 14 databases(1 prod and 1 test for each > client), and 14 web sites for accessing information 1 for each live and > test. 1 Web Server running RHEL and tomcat 5.5.2 we also use 7 SSL > certs, on for each institution which has the live name in it, so test > will still be secure you just have to answer a prompt when visited or > install the cert. > Are those client certificates? (identifying client based on a client certificate residing next to internet explorer or firefox) Or are those server certificate (allowing SSL encryption of transmission + authentification of server, but client authentification is still done using a simple user + password method)? Based on your answer, the interpretation of your main question is totally different :) I will go assuming you speak of server certificates as those are more frequently used than SSLClientAuth So you say you have a different 'entry' in server.xml for each 'servlet' ?! Do you mean different Connector, different Hosts or different Contexts? (A connector can contain several host which in turn can contain several context (webapplications) which each have several servlet) If what you need is to have https://client1.company.com/client1/ https://client1-test.company.com/client1-test/ https://client2.company.com/client2/ https://client2-test.company.com/client2-test/ ... and have client1 and 2 present different certificates but have client1 and client1-test present same certificate, i would recommand. connector 8080 (ssl=true) -> host client1 -> context client1 -> host client1-test -> context client1-test connector 8081 (ssl=true) -> host client2 -> context client2 -> host client2-test -> context client2-test In short, 1 connector per certificate. Why not a single connector for everything? Because, in HTTPS you have to present server certificate to client before client sends you the http header containing the name of virtual host he tries to access. So you only have 2 possibilities to find out which certificate to send to client, either use the server IP of connection (in your case, all the same, so useless information), either use the port number (8080 is certificate 1, 8081 is certificate 2, etc) Note, in another possible configuration: https://client1.company.com/client1/ https://client1.company.com/client1-test/ https://client2.company.com/client2/ https://client2.company.com/client2-test/ connector 8080 (ssl=true) -> host client1 -> context client1 -> context client1-test connector 8081 (ssl=true) -> host client2 -> context client2 -> context client2-test Not sure my information is helpfull, try to help you based on you informations :) Also, if you provide additionnal informations, try to use correct word (or provide us with you server.xml file to make discussion clear) > It has been set up as the Tomcat standalone, the only way our software > vendor will support it. And have set up each servlet as it's own > service in the server.xml. Is this how you guys would have done it. > This is the only way we could apply different certs to the different > servlets. > > This is probably everywhere on the net but, Is there a way to bounce > these services independently from the tomcat app itself? Also is it > possible to script the deployment and reload proccess? I can't seem to > figure that out. > > Not sure what you mean by 'bouncing services' Scripting deployement is possible using ant (see http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html#Deploying%20using%20the%20Client%20Deployer%20Package). Also, if you are on a linux machine, you can use curl in scripts to POST the .war at /manager/html/upload to reload tomcat you can simply stop it and then start it using provided scripts in tomcat distribution. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL-pointing problem
Hi Wille, wille wrote: We have deployed a web application on our server by putting it in the webapps directory, this makes it appear at a URL like http://mjau.com/pub_db. Now we want to change the URL for this webapp to something else, (in this case http://mjau.com/publications). The simplest thing to do is to stop Tomcat, rename the pub_db subdirectory in webapps to publications and then restart Tomcat. If you have a pub_db.xml file in Tomcat5/conf/ then you'll have to rename that to publications.xml. Let me know if you can't rename the directory for some reason and I'll give you a more complex solution. regards, Richard - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk sticky session still not working
Hi, Rasool. Yes, I missed the actual Engine element that follows the comment. Thanks, -- Scott. [EMAIL PROTECTED] wrote: Scott Ensure that the following line is commented out. You may have already done this And uncomment Hope that will help. Rasool Asal -Original Message- From: Scott Danforth [mailto:[EMAIL PROTECTED] Sent: 23 February 2007 15:04 To: Tomcat Users List Subject: Re: mod_jk sticky session still not working P.S. I see a mention of "cluster" in the documentation for jvmRoute. Do I need to configure a "cluster" perhaps? -- Scott. Scott Danforth wrote: Mladen Turk wrote: Scott Danforth wrote: I'm trying to use jk1.2.20 mod_jk with Apache 1.3 for load balancing two tomcat services and sticky sessions aren't working. You don't have session affinity mark For each instance add jvmRoute="tomcat1" or jvmRoute="tomcat2 for a second instance. See: http://tomcat.apache.org/tomcat-5.5-doc/config/engine.html Thanks for your help. That sounds very reasonable, and I modifed the two server.xml Engine elements as suggested, but it appears to make no difference. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Embedded documentation
Can somebody send me some pointers to some documentation on Tomcat embedded edition? I need to find out how JDBC datasources can be registered(or whether this can be done). -- Thanks Afkham Azeez http://www.wso2.org GPG Fingerprint: 643F C2AF EB78 F886 40C9 B2A2 4AE2 C887 665E 0760
RE: Tomcat Embedded documentation
> From: Afkham Azeez [mailto:[EMAIL PROTECTED] > Subject: Tomcat Embedded documentation > > Can somebody send me some pointers to some documentation on > Tomcat embedded edition? http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/index.html Start with the Embedded class of the org.apache.catalina.startup package. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
log4j exception only when stopping and starting a web application
I am deploying an unpacked webapp directory to TOMCAT_HOME/webapps/myapp, If i (stop and) start tomcat then my application runs fine and the logging works fine. However if i stop the application (successfully, it seems) and restart it using Tomcats manager app then I get the following error: 2007-02-27 16:21:17,671 ERROR http-8080-Processor3 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager] - FAIL - Application at context path /myapp could not be started java.lang.NullPointerException at org.apache.log4j.helpers.PatternConverter.spacePad(PatternConverter.java:106 ) at org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:68) at org.apache.log4j.PatternLayout.format(PatternLayout.java:503) at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301) at org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:236) at org.apache.log4j.WriterAppender.append(WriterAppender.java:159) at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230) at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(Append erAttachableImpl.java:65) at org.apache.log4j.Category.callAppenders(Category.java:203) at org.apache.log4j.Category.forcedLog(Category.java:388) at org.apache.log4j.Category.log(Category.java:853) at org.apache.commons.logging.impl.Log4JLogger.debug(Log4JLogger.java:171) at qmul.jndirealm.JNDIRealm.open(JNDIRealm.java:1592) at qmul.jndirealm.JNDIRealm.start(JNDIRealm.java:1690) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4097) Configuration details - Tomcat 5.5.17 Windows XP I am using server-minimal.xml I have a context.xml in my webapp's META-INF dir I have an application specific log4j.properties file in my webapps WEB-INF/classes dir I have an log4j.properties file in TOMCAT_HOME/common/classes The closest I can find on the web to my problems are the following threads but there is no clear solution in my situation http://www.junlu.com/msg/295563.html http://www.mail-archive.com/log4j-dev@logging.apache.org/msg06424.html This is especially strange because the configuration must have been correct initially in order for everything to work in the first instance. So what changes when an application is stopped and started in order to cause this error? I have run out of things to check now, can anybody suggest any more leads? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Parallel Tomcat 5 and 6 services on Windows
There might be a better explanation in the windows Event Viewer. Good luck, Mojo Robert Novotny wrote: The message was "Failed to install Tomcat6 service. Ignore and continue anyway (not recommended)?" Tomcat 5 service has been stopped prior to the installation. I wonder why the setup issues this message, since the tomcat6 service should be considered independent of tomcat5 service. Maybe there is some name/description clash in the service installation routine (does Windows allow to have more than one service with an identical DisplayName?). Anyways, the services.bat is indeed the best workaround. Mark Thomas-14 wrote: Robert Novotny wrote: Greetings, I would like to test Tomcat 6 on Windows, however I would still like to retain the previous Tomcat 5 installation (along with the Tomcat 5 service). I don't think the windows installer isn't set up to do this. I can't remember what the issue was but have a vague recollection of a bug report in this area. Using services.bat is the best work-around. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Morris Jones Monrovia, CA http://www.whiteoaks.com Old Town Astronomers: http://www.otastro.org - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: connection pool - DBCP error
Daniel, I scoured the APIs for that method and couldn't find anywhere, but I added to my server.xml file any way. Without something like lamda probe, would I see any connections dropping, or would I need a third party tool like that to see it logged? ORwould I just not get any errors like before and assume that that addition and revision has successfully addressed it? Thanks! Barry -Original Message- From: Stephens, Daniel [mailto:[EMAIL PROTECTED] Sent: Monday, February 26, 2007 4:55 PM To: Tomcat Users List Subject: RE: connection pool - DBCP error I had to add the following before I saw that behavior. You'll have to check the API, to make sure the minEvictableIdleTimeMillis and timeBetweenEvictionRunsMillis are set correctly for your pool. But once I added these, I would see abandoned connections get dropped. I put these settings in, because I found that the DBCP pool only evalutes connections on a check-in/out basis. minEvictableIdleTimeMillis5000 timeBetweenEvictionRunsMillis1 testWhileIdletrue validationQueryselect count(*) from dual -Original Message- From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] Sent: Monday, February 26, 2007 3:48 PM To: Tomcat Users List Subject: connection pool - DBCP error I am getting a slight error with regards to my connection pool configuration. I may not have totally closed the connection properly, but shouldn't the following account for it? AbandonedObjectPool is used ( [EMAIL PROTECTED]) LogAbandoned: true RemoveAbandoned: true RemoveAbandonedTimeout: 60 in other words, if I have the following configured like so, maxWait 7000 removeAbandoned true removeAbandonedTimeout 60 logAbandoned true shouldn't the RemoveAbandoned params account for an open or vagrant connection and kill it off properly? Am I wrong in the assumption this attribute should have? Thanks, Barry - The information in this message may be proprietary and/or confidential, and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify First Data immediately by replying to this message and deleting it from your computer.
IIS Plugin Experience Anyone?
So far, there have been no responses to my recent requests for help with the IIS plugin (ISAPI_redirect.dll v 1.2.20). Because I'm getting Windows Active/X error messages in response to servlet requests, it appears that my problem has to do with environmental assumptions that are not satisfied by my version of IIS 5.0 on Windows XP. I've read that the version of IIS included with XP is not the full version, so perhaps that's the problem. Who knows... But, my reason for experimenting is that I need to use Tomcat servlets on Unix servers from IIS 6.0 on a Windows 2003 system to which I do not yet have access. And now, since I've struck out trying to experiment with my desktop system, I'm curious about other people's experiences. If you've tried to use ISAPI_redirect.dll v 1.2.20 (successfully, or not), could you reply with a few words? For example, what Windows OS and IIS versions we're you using? Thanks for the help, -- Scott. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: log4j exception only when stopping and starting a web application
On 2/27/07, Rachel Wilson <[EMAIL PROTECTED]> wrote: I am deploying an unpacked webapp directory to TOMCAT_HOME/webapps/myapp, If i (stop and) start tomcat then my application runs fine and the logging works fine. However if i stop the application (successfully, it seems) and restart it using Tomcats manager app then I get the following error: 2007-02-27 16:21:17,671 ERROR http-8080-Processor3 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager] - FAIL - Application at context path /myapp could not be started java.lang.NullPointerException at org.apache.log4j.helpers.PatternConverter.spacePad(PatternConverter.java :106 ) at org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:68) It looks like you have bad syntax in you log4j.properties file. -- Gary Evesson
RE: connection pool - DBCP error
ok, thanks, David! -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 27, 2007 1:06 PM To: Tomcat Users List Subject: Re: connection pool - DBCP error The pooling in tomcat is a refactored copy of Commons-DBCP (http://jakarta.apache.org/commons/dbcp). See the javadocs for org.apache.commons.dbcp.BasicDataSource for all the options settable. minEvictableIdleTimeMillis="" translates to setMinEvictableIdleTimeMillis(). --David Propes, Barry L [GCG-NAOT] wrote: >Daniel, > >I scoured the APIs for that method and couldn't find anywhere, but I added to >my server.xml file any way. > >Without something like lamda probe, would I see any connections dropping, or >would I need a third party tool like that to see it logged? > >ORwould I just not get any errors like before and assume that that >addition and revision has successfully addressed it? > >Thanks! > >Barry > >-Original Message- >From: Stephens, Daniel [mailto:[EMAIL PROTECTED] >Sent: Monday, February 26, 2007 4:55 PM >To: Tomcat Users List >Subject: RE: connection pool - DBCP error > > >I had to add the following before I saw that behavior. You'll have to check >the API, to make sure the minEvictableIdleTimeMillis and >timeBetweenEvictionRunsMillis are set correctly for your pool. But once I >added these, I would see abandoned connections get dropped. > >I put these settings in, because I found that the DBCP pool only evalutes >connections on a check-in/out basis. > > >minEvictableIdleTimeMillis5000eter> > >timeBetweenEvictionRunsMillis1arameter> > testWhileIdletrue > validationQueryselect count(*) from >dual > > >-Original Message- >From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] >Sent: Monday, February 26, 2007 3:48 PM >To: Tomcat Users List >Subject: connection pool - DBCP error > >I am getting a slight error with regards to my connection pool >configuration. > >I may not have totally closed the connection properly, but shouldn't the >following account for it? > > > >AbandonedObjectPool is used ( >[EMAIL PROTECTED]) > > LogAbandoned: true > RemoveAbandoned: true > RemoveAbandonedTimeout: 60 > > >in other words, if I have the following configured like so, > > > maxWait > 7000 > > > removeAbandoned > true > > > removeAbandonedTimeout > 60 > > > logAbandoned > true > > >shouldn't the RemoveAbandoned params account for an open or vagrant >connection and kill it off properly? >Am I wrong in the assumption this attribute should have? > >Thanks, > >Barry > > >- >The information in this message may be proprietary and/or >confidential, and protected from disclosure. If the reader of this >message is not the intended recipient, or an employee or agent >responsible for delivering this message to the intended recipient, >you are hereby notified that any dissemination, distribution or >copying of this communication is strictly prohibited. If you have >received this communication in error, please notify First Data >immediately by replying to this message and deleting it from your >computer. > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: connection pool - DBCP error
The pooling in tomcat is a refactored copy of Commons-DBCP (http://jakarta.apache.org/commons/dbcp). See the javadocs for org.apache.commons.dbcp.BasicDataSource for all the options settable. minEvictableIdleTimeMillis="" translates to setMinEvictableIdleTimeMillis(). --David Propes, Barry L [GCG-NAOT] wrote: >Daniel, > >I scoured the APIs for that method and couldn't find anywhere, but I added to >my server.xml file any way. > >Without something like lamda probe, would I see any connections dropping, or >would I need a third party tool like that to see it logged? > >ORwould I just not get any errors like before and assume that that >addition and revision has successfully addressed it? > >Thanks! > >Barry > >-Original Message- >From: Stephens, Daniel [mailto:[EMAIL PROTECTED] >Sent: Monday, February 26, 2007 4:55 PM >To: Tomcat Users List >Subject: RE: connection pool - DBCP error > > >I had to add the following before I saw that behavior. You'll have to check >the API, to make sure the minEvictableIdleTimeMillis and >timeBetweenEvictionRunsMillis are set correctly for your pool. But once I >added these, I would see abandoned connections get dropped. > >I put these settings in, because I found that the DBCP pool only evalutes >connections on a check-in/out basis. > > >minEvictableIdleTimeMillis5000eter> > >timeBetweenEvictionRunsMillis1arameter> > testWhileIdletrue > validationQueryselect count(*) from >dual > > >-Original Message- >From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] >Sent: Monday, February 26, 2007 3:48 PM >To: Tomcat Users List >Subject: connection pool - DBCP error > >I am getting a slight error with regards to my connection pool >configuration. > >I may not have totally closed the connection properly, but shouldn't the >following account for it? > > > >AbandonedObjectPool is used ( >[EMAIL PROTECTED]) > > LogAbandoned: true > RemoveAbandoned: true > RemoveAbandonedTimeout: 60 > > >in other words, if I have the following configured like so, > > > maxWait > 7000 > > > removeAbandoned > true > > > removeAbandonedTimeout > 60 > > > logAbandoned > true > > >shouldn't the RemoveAbandoned params account for an open or vagrant >connection and kill it off properly? >Am I wrong in the assumption this attribute should have? > >Thanks, > >Barry > > >- >The information in this message may be proprietary and/or >confidential, and protected from disclosure. If the reader of this >message is not the intended recipient, or an employee or agent >responsible for delivering this message to the intended recipient, >you are hereby notified that any dissemination, distribution or >copying of this communication is strictly prohibited. If you have >received this communication in error, please notify First Data >immediately by replying to this message and deleting it from your >computer. > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
j_security_check
I have tried all I can to setup Netbeans/Tomcat to use postgre for my user auth via J_security_check by talking with my Postgre DBcan anyone review the following files and let me know if I have done anything wrong. I verified I can connect via a JSP and return a result. But I cant get the Auth to work. Here is what I used that works to talk to the DB: <% Class.forName("org.postgresql.Driver"); String url = "jdbc:postgresql://localhost:5432/landt"; Connection con = DriverManager.getConnection(url, "postgres", "postgres"); Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY); ResultSet srs = stmt.executeQuery("SELECT username FROM users"); while (srs.next()) { String name = srs.getString("username"); out.println(name); } %> Web.xml --- http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> 30 index.jsp TenantConstraint tenant Tenant /secureTenant/* GET POST HEAD PUT OPTIONS TRACE DELETE tenant LandlordConstraint landlord Landlord /secureLandlord/* GET POST HEAD PUT OPTIONS TRACE DELETE landlord FORM /login.jsp /error.html For Tenants tenant For Landlords landlord - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: j_security_check
I connect to Oracle, but mine's configured slightly different. in the server.xml file, connectionName="user_name" connectionPassword="password" userTable="users" userNameCol="user_name" userCredCol="user_pass" userRoleTable="user_roles" roleNameCol="role_name"/> I have an underscore between mine -- on the roleNameCol value. Does j_security check require that? And are you also configuring this within the server.xml file as well as the web.xml file? I'm running TC 4.1.3 and it requires it there, too...maybe not for your version. Good luck! -Original Message- From: Wade Little [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 27, 2007 2:37 PM To: users@tomcat.apache.org Subject: j_security_check I have tried all I can to setup Netbeans/Tomcat to use postgre for my user auth via J_security_check by talking with my Postgre DBcan anyone review the following files and let me know if I have done anything wrong. I verified I can connect via a JSP and return a result. But I cant get the Auth to work. Here is what I used that works to talk to the DB: <% Class.forName("org.postgresql.Driver"); String url = "jdbc:postgresql://localhost:5432/landt"; Connection con = DriverManager.getConnection(url, "postgres", "postgres"); Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY); ResultSet srs = stmt.executeQuery("SELECT username FROM users"); while (srs.next()) { String name = srs.getString("username"); out.println(name); } %> Web.xml --- http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> 30 index.jsp TenantConstraint tenant Tenant /secureTenant/* GET POST HEAD PUT OPTIONS TRACE DELETE tenant LandlordConstraint landlord Landlord /secureLandlord/* GET POST HEAD PUT OPTIONS TRACE DELETE landlord FORM /login.jsp /error.html For Tenants tenant For Landlords landlord - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Noobie Questions
-Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 27, 2007 10:29 AM To: Tomcat Users List Subject: Re: Noobie Questions En l'instant précis du 27/02/07 15:25, Henderson,Nathan s'exprimait en ces termes: > We have 7 different clients, 14 databases(1 prod and 1 test for each > client), and 14 web sites for accessing information 1 for each live > and test. 1 Web Server running RHEL and tomcat 5.5.2 we also use 7 SSL > certs, on for each institution which has the live name in it, so test > will still be secure you just have to answer a prompt when visited or > install the cert. > Are those client certificates? (identifying client based on a client certificate residing next to internet explorer or firefox) Or are those server certificate (allowing SSL encryption of transmission + authentification of server, but client authentification is still done using a simple user + password method)? We use server certificates Based on your answer, the interpretation of your main question is totally different :) I will go assuming you speak of server certificates as those are more frequently used than SSLClientAuth So you say you have a different 'entry' in server.xml for each 'servlet' ?! Do you mean different Connector, different Hosts or different Contexts? (A connector can contain several host which in turn can contain several context (webapplications) which each have several servlet) If what you need is to have https://client1.company.com/client1/ https://client1-test.company.com/client1-test/ https://client2.company.com/client2/ https://client2-test.company.com/client2-test/ ... and have client1 and 2 present different certificates but have client1 and client1-test present same certificate, i would recommand. connector 8080 (ssl=true) -> host client1 -> context client1 -> host client1-test -> context client1-test connector 8081 (ssl=true) -> host client2 -> context client2 -> host client2-test -> context client2-test In short, 1 connector per certificate. Why not a single connector for everything? Because, in HTTPS you have to present server certificate to client before client sends you the http header containing the name of virtual host he tries to access. So you only have 2 possibilities to find out which certificate to send to client, either use the server IP of connection (in your case, all the same, so useless information), either use the port number (8080 is certificate 1, 8081 is certificate 2, etc) Note, in another possible configuration: https://client1.company.com/client1/ https://client1.company.com/client1-test/ https://client2.company.com/client2/ https://client2.company.com/client2-test/ connector 8080 (ssl=true) -> host client1 -> context client1 -> context client1-test connector 8081 (ssl=true) -> host client2 -> context client2 -> context client2-test Not sure my information is helpfull, try to help you based on you informations :) Also, if you provide additionnal informations, try to use correct word (or provide us with you server.xml file to make discussion clear) This is an "entry" from our server.xml for one of our connections there are 14 just like this with different ip addresses for each entry and names of course, I set up IP aliases on the NIC card for this purpose. xxx.xx.xxx.xx > It has been set up as the Tomcat standalone, the only way our software > vendor will support it. And have set up each servlet as it's own > service in the server.xml. Is this how you guys would have done it. > This is the only way we could apply different certs to the different > servlets. > > This is probably everywhere on the net but, Is there a way to bounce > these services independently from the tomcat app itself? Also is it > possible to script the deployment and reload proccess? I can't seem > to figure that out. > > Not sure what you mean by 'bouncing services' OK, in the Tomcat html administration tool, I see a tree to the left that starts out with Tomcat Server under this heading is Services then the name of my like Service (Catalina) Under this services heading are my connectors and so on. Is there a way to stop and start this "Service" or connector or something under this heading so I do not have to restart the entire Tomcat server Hope this helps Also thanks for all the information Scripting deployement is possible using ant (see http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html#Deploying%20using%20the%20Client%20Deployer%20Package). Also, if you are on a linux machine, you can use curl in scripts to POST the .war at /manager/
The requested resource (/manager/) is not available.
Hi list, I'm trying to use the manager webapp for the custom Ant tasks on Tomcat 6.0.9 with Sun Solaris 10. I've gone into the tomcat-users.xml file and created a username/password admin/admin that has the manager role. However, when I try to connect to the manager webapp by pointing my browser to http://localhost:port/manager, I get the error: _The requested resource (/manager/) is not available. _I know I must be missing something obvious. I've searched Google for suggestions and I've read the Manager How-To online but to no avail. Perhaps I am missing some directories in my Tomcat installation? When I try to navigate to http://localhost:port/tomcat-docs I receive the same error. Is it possible I have a directory in the wrong place? I doubt that would be the case because I simply downloaded the Tomcat 6.0.9 core distribution and followed the instructions. Do I need the deployer or something? Thanks, Dan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: The requested resource (/manager/) is not available.
> From: Daniel Gresh [mailto:[EMAIL PROTECTED] > Subject: The requested resource (/manager/) is not available. > > However, when I try to connect to the manager webapp by pointing my > browser to http://localhost:port/manager, I get the error: > > _The requested resource (/manager/) is not available. There is no mapping for just plain /manager. Look in webapps/manager/WEB-INF/web.xml to see what is there. The typical ones are /manager/html and /manager/status. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The requested resource (/manager/) is not available.
Caldarale, Charles R wrote: From: Daniel Gresh [mailto:[EMAIL PROTECTED] Subject: The requested resource (/manager/) is not available. However, when I try to connect to the manager webapp by pointing my browser to http://localhost:port/manager, I get the error: _The requested resource (/manager/) is not available. There is no mapping for just plain /manager. Look in webapps/manager/WEB-INF/web.xml to see what is there. The typical ones are /manager/html and /manager/status. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Ah I see now. This also helps me understand how the manager webapp will work with custom Ant tasks. With the above explanation in mind, I saw why http://localhost:port/tomcat-docs was not working; it is now http://localhost:port/docs apparently. Thanks a lot for the help, Dan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] mod_jk sticky session now working !! My bad.
Hi Scott, Good its now working for you, I hope you can share your server.xml and workers.properties for community, so others can benefits of it. I would like to know do you use cluster or not? If yes, you tried stopping one of tomcat and your session is still continued or not? With cluster one can do session replication and it will help to have high availabilty and load balancing together. Please update. Babu Satasiya Cisco System Inc. Scott Danforth wrote: > > Aha!!! > > I was confused by the XML. I was changing the Engine element that was > previously commented out, and this, of course, is followed by another > (the real one, which wins, and didn't have a jvmRoute). > > Thanks so much! Your comments helped me find my problem. > > Thanks, > -- Scott. > > > Scott Danforth wrote: > >> Hi Mladen, >> >> I really appreciate your help, and am happy that you're seeing a >> problem in the log output. >> >> I think I've got the Engine attributes specified correctly, and the >> two different jvmRoute values do show up in the mod_jk log. >> >> > jvmRoute="tomcat1" /> >> > jvmRoute="tomcat2" /> >> Maybe if I give the Engines different names? It sounds like we're >> expecting the jvmRoute to be appended to the sessionId that is >> returned in the Set-Cookie header? If so, I guess mod_jk is working as >> expected, and I'm just not getting the right sessionid created by Tomcat. >> >> I'm not using Boss. Just Apache and Tomcat on a single Solaris machine. >> >>-- Scott. >> >> >> Mladen Turk wrote: >> >>> Scott Danforth wrote: >>> Mladen Turk wrote: Thanks for your help. That sounds very reasonable, and I modifed the two server.xml Engine elements as suggested, but it appears to make no difference. get_most_suitable_worker::jk_lb_worker.c (733): searching worker for partial sessionid 9E36E3DC58A09ED9045B25F839E37A2C >>> >>> >>> >>> You still don't have jvmRoute appended. >>> Check if jvmRoute (param name is case sensitive!) is >>> correctly set up. >>> Also, if you use JBoss add true >>> see: >>> http://www.jboss.org/wiki/Wiki.jsp?page=UsingMod_jk1.2WithJBoss >>> >>> >>> Regards, >>> Mladen. >>> >>> - >>> To start a new topic, e-mail: users@tomcat.apache.org >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> > > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/mod_jk-sticky-session-not-working---tf3276314.html#a9192294 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: connection pool - DBCP error
> -Original Message- > From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] > Sent: Monday, February 26, 2007 4:48 PM > To: Tomcat Users List > Subject: connection pool - DBCP error > > AbandonedObjectPool is used > ( [EMAIL PROTECTED]) > >LogAbandoned: true >RemoveAbandoned: true >RemoveAbandonedTimeout: 60 Isn't this just an informational message saying that abandoned objects will be detected? It appears on startup when I configure DBCP to evict abandoned connections... Tim - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat monitoring
> -Original Message- > From: H H [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 27, 2007 1:12 AM > To: users@tomcat.apache.org > Subject: Tomcat monitoring > > Does anyone know whats the best way to monitor a tomcat application > remotely - I have seen the mailing lists and there are some tools that > provide monitoring. However I need a way to programatically ping Tomcat > and collect performance statistics - Any language would do : perl/java, I > need to integrate the monitoring to another application. I am looking to > collect the foll stats: > > - JVM Heap usage > - Number of active threads > - JDBC connection pool stats > - Active thread list Most of these are available in some for from /manager/status, or via JMX. I have written a few Perl scripts to feed them into MRTG. > - Hits/Sec (running average) I have a filter which collects this particular statistic. Mail me off-list if you want a copy of any of these items... Tim > > > > > > > > - > TV dinner still cooling? > Check out "Tonight's Picks" on Yahoo! TV. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: connection pool - DBCP error
Thats purely informational. On 2/27/07, Tim Lucia <[EMAIL PROTECTED]> wrote: > -Original Message- > From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] > Sent: Monday, February 26, 2007 4:48 PM > To: Tomcat Users List > Subject: connection pool - DBCP error > > AbandonedObjectPool is used > ( [EMAIL PROTECTED]) > >LogAbandoned: true >RemoveAbandoned: true >RemoveAbandonedTimeout: 60 Isn't this just an informational message saying that abandoned objects will be detected? It appears on startup when I configure DBCP to evict abandoned connections... Tim - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: connection pool - DBCP error
yes, I believe soI added some other param attributes that I think will properly kill off abandoned connections if they didn't before get killed off. -Original Message- From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 27, 2007 4:22 PM To: 'Tomcat Users List' Subject: RE: connection pool - DBCP error > -Original Message- > From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] > Sent: Monday, February 26, 2007 4:48 PM > To: Tomcat Users List > Subject: connection pool - DBCP error > > AbandonedObjectPool is used > ( [EMAIL PROTECTED]) > >LogAbandoned: true >RemoveAbandoned: true >RemoveAbandonedTimeout: 60 Isn't this just an informational message saying that abandoned objects will be detected? It appears on startup when I configure DBCP to evict abandoned connections... Tim - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ant custom tasks: how to compile .java files and restart Tomcat (Tomcat 6.0.9)?
Hi all, I've been reading through the documentation on using custom Ant tasks with Tomcat, but I am sorry to say that I am confused. This will most likely turn out to be a very basic question, but I'm not sure where to go with it. I have a src directory for my .java files that I wish to compile to .class files and simply store them on $CATALINA_HOME/webapps/ROOT for now. I have a build.xml file in the src directory which I have been using to deploy the class files to the appropriate directory. My question is, how would I use Ant custom tasks to restart Tomcat when I deploy the class files (please continue reading, as I will explain where I am confused)? Looking at the manager-howto, I see there are custom tasks for Deploy, Reload, Start, Stop, etc that I should place in the build.xml file. I am unsure how to use these to restart Tomcat. For example, the Reload task looks like this: What would I specify for ${path}? In the example file provided in the howto, it says I should specify it to be myApp. However, I am not necessarily restarting an app; I wish to restart Tomcat. Is it even possible to accomplish this? Did I miss something in the tutorial? If this is not possible, is there a better way I could be doing this? The reason I am compiling .java files and deploying them is simply to test a few things, as I am in the process of learning JSP and Tomcat. Thanks for any advice you can give, Dan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Ant custom tasks: how to compile .java files and restart Tomcat (Tomcat6.0.9)?
> From: Daniel Gresh [mailto:[EMAIL PROTECTED] > Subject: Ant custom tasks: how to compile .java files and > restart Tomcat (Tomcat6.0.9)? > > I have a src directory for my .java files that I wish > to compile to .class files and simply store them on > $CATALINA_HOME/webapps/ROOT for now. Immediately under a webapp directory is not an appropriate location for class files - ever. They should go into webapps/[appname]/WEB-INF/classes, as defined by the servlet spec. > However, I am not necessarily restarting an app; I > wish to restart Tomcat. Why? There's no reason to do so, if all you're doing is updating the app. Restarting Tomcat requires running the shutdown and startup scripts. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Ant custom tasks: how to compile .java files and restart Tomcat (Tomcat 6.0.9)?
Try with "/", is the context ROOT. But I'm not sure that it will work. -Mensaje original- De: Daniel Gresh [mailto:[EMAIL PROTECTED] Enviado el: martes, 27 de febrero de 2007 23:58 Para: Tomcat Users List Asunto: Ant custom tasks: how to compile .java files and restart Tomcat (Tomcat 6.0.9)? Hi all, I've been reading through the documentation on using custom Ant tasks with Tomcat, but I am sorry to say that I am confused. This will most likely turn out to be a very basic question, but I'm not sure where to go with it. I have a src directory for my .java files that I wish to compile to .class files and simply store them on $CATALINA_HOME/webapps/ROOT for now. I have a build.xml file in the src directory which I have been using to deploy the class files to the appropriate directory. My question is, how would I use Ant custom tasks to restart Tomcat when I deploy the class files (please continue reading, as I will explain where I am confused)? Looking at the manager-howto, I see there are custom tasks for Deploy, Reload, Start, Stop, etc that I should place in the build.xml file. I am unsure how to use these to restart Tomcat. For example, the Reload task looks like this: What would I specify for ${path}? In the example file provided in the howto, it says I should specify it to be myApp. However, I am not necessarily restarting an app; I wish to restart Tomcat. Is it even possible to accomplish this? Did I miss something in the tutorial? If this is not possible, is there a better way I could be doing this? The reason I am compiling .java files and deploying them is simply to test a few things, as I am in the process of learning JSP and Tomcat. Thanks for any advice you can give, Dan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Certificate Installation Issues
Hello List- After having our application running smoothly with self-signed certificates, we made the change today and purchased a Comodo InstantSSL certificate - and after following the instructions on installing it, I'm having some problems that I am hoping someone with more experience who has ran across this can help me with.. I received three certificates from Comodo: * AddTrustExternalCARoot.crt * netrequest_biz.crt * UTNAddTrustServerCA.crt I followed their instructions on importing them in the order: 1) Root, 2) IntermediateCA, 3) Domain/Site Certificate On my Server, I ran the following to install the certificates into my Java cacerts: C:\Program Files\Java\jdk1.5.0_06\jre\lib\security\keytool -import -trustcacerts -alias root -file C:\AddTrustExternalCARoot.crt -keystore cacerts C:\Program Files\Java\jdk1.5.0_06\jre\lib\security\keytool -import -trustcacerts -alias INTER -file C:\UTNAddTrustServerCA.crt -keystore cacerts C:\Program Files\Java\jdk1.5.0_06\jre\lib\security\keytool -import -trustcacerts -alias netrequest -file C:\netrequest_biz.crt -keystore cacerts For good measure (because I wasn't sure if I had to or not) I also added them to my Java cacerts file on the pc that I'm going to use to remotely connect to the Server... OK, so my first test was to test that the certificate got installed on the Server correctly, so I opened Internet Explorer and from the File -> Open (Open as Web Folder) box typed: https://localhost:8443/slide/files - and I was prompted with a 'Security Alert' that said that: "The security certificate was issued by a company you have not chosen to trust. View the certificate to determine whether you want to trust the certifying authority." & "The name on the security certificate is invalid or does not match the name of the site" (The security date was valid). So, when I clicke don two things struck me: 1) the issued by is 'netrequest.biz' (shouldn't this be Comodo - isn't this why we buy the certificate? our self-signed ones had this on it...) and 2) the date Valid from 2/27/2007 to 5/28/2007 (we purchased a two-year certificate, shouldn't this be until 2009??). Even after installing the certificate, logging out, and logging back in, I still get the "Security Alert" message box - something we don't want our customers to have to deal with. Second test: attempting to log into the Server where our DataBase is stored to access it and run the program. However, after putting in my Username and Password, when the program continues on to validate the sign-on, I get a pop-up with the following error message: "IO Error loading patterns: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification pathe to requested target" Prior to installing these new certificates from Comodo and while using our self-signed ones, all was working OK; we're getting ready to "go live" in a day and a half, so we really need to get this worked out, so any thoughts, comments, or expertise that anyone could provide to help me straighten this out would be greatly appreciated!!! Thanks in advance for your time and help!! -Jeanna - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
deploying classpath problem
I an running windows XP, Tomcat 5.5, axis 1.4. I am trying to deploy a =20 web service using a wsdd. I am using the command java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd I went to system properties/advanced/enviroment variables and add the =20 following entries AXIS_HOME: C:\Program~1\axis-1_4\lib AXIS_LIB: %AXIS_HOME%\lib AXISCLASSPATH: =20 %AXIS_LIB%\axis-ant.jar;%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery-0.2= .jar;%AXIS_LIB%\commons-logging-1.0.4.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\s= aaj.jar;%AXIS_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\wsdl4j-1.5.1.jar my axis dir is C:\Program Files\axis-1_4 my tomcat dir is C:\Program Files\Apache Software Foundation\Tomcat 5.5 I have followed tutorials and looked online and have had no luck I =20 keep getting the error Exception in thread "main" java.lang.NoClassDefFoundError: =20 org/apache/axis/client/AdminClient Please if you know what is wrong I would love advice. Devon Austen - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP plus
I guess I'll answer my own question here after some testing and research That is: If you override the "service()" method on servelet all you need is a "service name" and a "path" to the servlet followed by two newlines as the "minimal" header. ie: X /Z\n\n for the most minimal header. "X" being the service name and "/Z" being the path to the servlet. On reply if "service()" if you write to the response.getOutputStream() you are in essence writing directly to the connected socket unfiltered. At 18:32 2/26/2007, you wrote: Was this last message of mine just too naive :) Should I break it into smaller parts? Still curious :) Peter K. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] deploying classpath problem
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: deploying classpath problem This has nothing to do with Tomcat. > AXIS_HOME: C:\Program~1\axis-1_4\lib > AXIS_LIB: %AXIS_HOME%\lib Try expanding the AXIS_LIB expression on paper and see how many lib directories you come up with... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Bootstrap stop()
OK, after spending a considerable amount of time crawling through Tomcat's Bootstrap and Catalina classes. I have narrowed the problem down I believe. It seems that the Bootstrap.stop() method is capable of stopping all of the threads except for one named "http-8080...". When the Bootstrap.start() is subsequently invoked an exception is throw when the start() method attempts to load the class loaders again. The only remnant of Tomcat left at that point is the lone thread I mentioned above. In looking at the class for the thread "org.apache.tomcat.util.threads.ThreadWithAttributes" there does not appear to be a way to bring the thread down gracefully. In tracking down the actual source, it extends Thread which usually means there is a concrete "run()" method...not in this case. So, tomcat must be using a technique I'm not familiar with to satisfy the "run()" requirement. It seems from looking at the code that tomcat attempts to allow a restart of sorts but, to my un-enlightened eye it looks like the implementation is not quite there to fully support that notion. So, it looks like once you start a tomcat instance within a JVM you are for the most part stuck with it unless you want to terminate the entire JVM and restart the application. I'm not sure that is a good long term solution but, it is the best I can do I think at this point. If anyone has any insights please don't hesitate to share. Fran Fran Varin wrote: > > > I took a look at the source for Tomcat 6 and the "// FIXME" remains in the > "destroy" method within "Bootstrap" as well. > > The lack of documentation around this part of Tomcat's API is not helping > much here either. So, it begs the question is what I've coded sufficient > to start and stop Tomcat from a Java class sufficient or am I missing > something? > > Any help would be greatly appreciated. > > Fran > -- View this message in context: http://www.nabble.com/Bootstrap-stop%28%29-tf3296281.html#a9198023 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Bootstrap stop()
> From: Fran Varin [mailto:[EMAIL PROTECTED] > Subject: Re: [OT] Bootstrap stop() > > In looking at the class for the thread > "org.apache.tomcat.util.threads.ThreadWithAttributes" > there does not appear to be a way to bring the thread > down gracefully. In tracking down the actual source, > it extends Thread which usually means there is a > concrete "run()" method...not in this case. So, tomcat > must be using a technique I'm not familiar with to > satisfy the "run()" requirement. Note the Runnable object used in the ThreadWithAttributes constructor; that provides the necessary run() method, not the subclass of Thread. Look at the API doc for java.lang.Thread for more information. The two Tomcat classes that utilize ThreadWithAttributes are: org.apache.tomcat.util.net.MasterSlaveWorkerThread org.apache.tomcat.util.threads.ThreadPool You'll find the real methods in there (including ones to stop the threads). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Having trouble building mod_jk on Solaris 10 x86
I'm trying to compile with gcc 3.4.3, and I'm using 'gmake', but I keep getting the errors below. Apache compiled and installed fine. I ran this short script to do the configure step: LDFLAGS="-L/usr/sfw/lib" CPPFLAGS="-I/user/sfw/include" ./configure --with-apxs=/usr/local/apache2/bin/apxs Here are the errors when I run 'gmake': Making all in common gmake[1]: Entering directory `/usr/local/src/tomcat-connectors-1.2.20-src/native/common' /usr/local/apache2/build/libtool --silent --mode=compile gcc -I/usr/local/apache2/include -g -O2 -g -O2 -DHAVE_APR -I/usr/local/apache2/include -I/usr/local/apache2/include -g -O2 -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I /include -I /include/ -c jk_ajp12_worker.c -o jk_ajp12_worker.lo In file included from /usr/include/sys/socketvar.h:43, from jk_global.h:146, from jk_logger.h:27, from jk_ajp12_worker.h:27, from jk_ajp12_worker.c:26: /usr/include/sys/zone.h:16:28: sys/tsol/label.h: No such file or directory In file included from /usr/include/sys/socketvar.h:43, from jk_global.h:146, from jk_logger.h:27, from jk_ajp12_worker.h:27, from jk_ajp12_worker.c:26: /usr/include/sys/zone.h:109: error: syntax error before '*' token gmake[1]: *** [jk_ajp12_worker.lo] Error 1 gmake[1]: Leaving directory `/usr/local/src/tomcat-connectors-1.2.20-src/native/common' gmake: *** [all-recursive] Error 1 Thanks for any help. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Cannot run JVM in server mode with JSVC
Hello, can somebody please help don't know how to solve this. Cheers, Pete > -Ursprüngliche Nachricht- > Von: Peter Neu [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 27. Februar 2007 12:43 > An: users@tomcat.apache.org > Betreff: Cannot run JVM in server mode with JSVC > > > > Hello, > > > > I need to run the JVM in server mode but jsvc does not switch to the > server > mode despite the configuration below. > > > > There aren't even any error messages. Can somebody please tell me what's > wrong? > > > > Cheers, > > Pete > > > > JAVA_HOME1=/usr/local/jdk1.5.0_06 > > CATALINA_HOME=/usr/local/jakarta-tomcat-5.5.9 > > DAEMON_BIN=/usr/local/jakarta-tomcat-5.5.9/bin/jsvc > > TOMCAT_USER=loew > > TMP_DIR=/var/tmp > > CATALINA_OPTS="-Xmx1900m -Xms256m -XX:MaxPermSize=256m > -XX:ReservedCodeCacheSize=64m -Dcom.sun.management.jmxremote " > > CLASSPATH=/usr/local/jdk1.5.0_06/lib/tools.jar:\ > > $CATALINA_HOME/bin/commons-daemon.jar:\ > > $CATALINA_HOME/bin/bootstrap.jar > > > > case "$1" in > > start) > > # > > # Start Tomcat > > # > > $DAEMON_BIN \ > > -user $TOMCAT_USER \ > > -home $JAVA_HOME1 \ > > -Dcatalina.home=$CATALINA_HOME \ > > -Djava.io.tmpdir=$TMP_DIR \ > > -outfile $CATALINA_HOME/logs/catalina.out \ > > -errfile '&1' \ > > $CATALINA_OPTS \ > > -cp $CLASSPATH \ > > org.apache.catalina.startup.Bootstrap \ > > -jvm server \ > > # > > # To get a verbose JVM > > # -verbose \ > > # To get a debug of jsvc. > > #-debug \ > > ;; > > > > > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]