XML parser issue while defining a Realm
Hello My environment : Windows 2003 server Tomcat 5.5.12 What i tried : userSearch=(amp;(uid={0})(|(dncomp=ou=Oneorgunit)(dencomp=ou=AnOtherOU))) while defining a Realm using an LDAP directory I gave a xml parser error when i started the Tomcat Instance : org.xml.sax.SAXParseException: The entity name must immediately follow the '' in the entity reference. When i use this filter through an LDAP browser (replacing {0} with a valid uid) that works well Thanks Jean-Claude
RE: XML parser issue while defining a Realm
Sorry I made a mistake The .war with an erronous context.xml stays under the webbapps directory while i tried to modify the context.xml under the application directory Now it works fine Jean-Claude -Message d'origine- De : Serlet Jean-Claude Envoyé : mercredi 21 février 2007 14:44 À : TomcatUsers Objet : XML parser issue while defining a Realm Hello My environment : Windows 2003 server Tomcat 5.5.12 What i tried : userSearch=(amp;(uid={0})(|(dncomp=ou=Oneorgunit)(dencomp=ou=AnOtherOU))) while defining a Realm using an LDAP directory I gave a xml parser error when i started the Tomcat Instance : org.xml.sax.SAXParseException: The entity name must immediately follow the '' in the entity reference. When i use this filter through an LDAP browser (replacing {0} with a valid uid) that works well Thanks Jean-Claude - 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: Database connection pooling in Tomcat 5.5
Have you tried username=myuserid password=mypassword instead username=(myuserid) password=(mypassword) Jean-Claude -Message d'origine- De : Sameer Acharya [mailto:[EMAIL PROTECTED] Envoyé : mardi 19 septembre 2006 08:49 À : Tomcat Users List Objet : Re: Database connection pooling in Tomcat 5.5 Instead of defining the username and password as attributes have you tried defining them as resource parameters ? just a hunch .. parameter nameusername/name valuemyoracleuser/value /parameter -Sameer Parsons Technical Services [EMAIL PROTECTED] wrote: Try this: http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq_0.htm#0 5_03 Otherwise there is some differences in the parameter names. Others have used connectionUser and connectionPassword , I think it was. You can search the archives for OracleDriver to see what I mean. Sorry, I do not use oracle, so I cannot say what is right. Doug - Original Message - From: Darren Hall To: 'Tomcat Users List' Sent: Monday, September 18, 2006 4:38 PM Subject: RE: Database connection pooling in Tomcat 5.5 Further progress... When I connect to the database directly (not using a connection pool) and specify the same username and password below, the code executes fine. When I try to do the context lookup and connect to the database via the connection pool, I get the invalid username/password; logon denied error. This leads me to believe the error is in my configuration (or my code). What am I doing wrong here?? Thanks, Darren -Original Message- From: Darren Hall [mailto:[EMAIL PROTECTED] Sent: Monday, September 18, 2006 2:45 PM To: 'Tomcat Users List' Subject: RE: Database connection pooling in Tomcat 5.5 You are likely connecting to the wrong catalog. Is the pool parameter defaultCatalog set? That's specified in my Context, correct? If so, then no, I don't have my defaultCatalog parameter set. Here is my context.xml file (comments removed, as well as domain uname and passwd) debug=5 reloadable=true crossContext=true type=javax.sql.DataSource driverClassName=oracle.jdbc.OracleDriver url=jdbc:oracle:thin:@devdb1.(mydomain).com:1521:flcdb username=(uname) password=(passwd) maxActive=20 maxIdle=10 maxWait=-1 removeAbandoned=true moveAbandonedTimeout=180 logAbandoned=true/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session and sendRedirect(url)
Hello What i'm looking for is the answer to this question Under Tomcat 5.5 _ Windows 2003 what happen to a session when there is a sendRedirect(url) used ? Is this session be invalidate ? Thanks you Jean-Claude
RE: how to change session time out one of the web app in tomcat
Hello By default it's 30 minutes You change it in the web-inf/webxml by setting the tag session-config session-timeout3/session-timeout /session-config after the mapping oy your sevlets Jean-Claude -Message d'origine- De : bhavik shah [mailto:[EMAIL PROTECTED] Envoyé : jeudi 22 juin 2006 15:14 À : users@tomcat.apache.org Objet : how to change session time out one of the web app in tomcat HI I want to modify the time out of web app in tomcat where should i change that? what is the default value of time out? thanks bhavik - 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/firewall configuration problems
Please give the configuration of your workers : the workers.properties.file Have you set worker.yourworker.socket_keepalive=1 in it ? Jean-Claude _ De : Greg Allen [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juin 2006 16:42 À : users@tomcat.apache.org Objet : Mod_jk/firewall configuration problems I am having a problem with mod_jk.so. I have apache set up as my web server, forwarding my jsp traffic to a tomcat server running on the same machine. This setup works fine when the client is inside of my firewall. However, when I try to access my site from outside the firewall, mod_jk does not forward the traffic to tomcat and the page is not displayed. My firewall is set up to forward port 80 traffic from outside to my web server machine. This is working, as I can get non-tomcat served pages to appear on clients outside of the firewall. I have attached the debugging log from mod_jk. In it you can see two requests - the first is from outside (which fails), while the second is from inside and you can see that it is served correctly. I'm sure this is some sort of configuration issue. But I don't know what. Can anyone point out what is wrong? Thanks, -- Greg
RE: Mod_jk/firewall configuration problems
Sorry : that 's all i thought Hope that you don't forget to stop and restart your Apache server after modifying workers.properties Jean-Claude _ De : Greg Allen [mailto:[EMAIL PROTECTED] Envoyé : mercredi 21 juin 2006 13:37 À : Serlet Jean-Claude; users@tomcat.apache.org Objet : RE: Mod_jk/firewall configuration problems I didn't have socket_keepalive set. But I added it and still have the same problem. From my httpd.conf: JkLogFile /var/log/httpd/mod_jk.log JkLogLevel debug # Just like workers.properties but exact line is prefixed # with JkWorkerProperty # Minimal jk configuration JkWorkerProperty worker.list=ajp13w JkWorkerProperty worker.ajp13w.type=ajp13 JkWorkerProperty worker.ajp13w.host=localhost JkWorkerProperty worker.ajp13w.port=8009 JkWorkerProperty worker.ajp13w.socket_keepalive=1 # enter the full path to the tomcat webapps directory JkAutoAlias /opt/tomcat/webapps # Mount 'testapp' directory. It's physical location # is assumed to be in the /opt/tomcat/webapps/testapp # ajp13w is a worker defined in the workers.properties JkMount /testapp/* ajp13w # Unmount desired static content from testapp webapp. # This content will be served by the httpd directly. JkUnMount /testapp/images/*.gif ajp13w JkUnMount /testapp/images/*.jpg ajp13w -- Greg _ From: Serlet Jean-Claude [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 2:35 AM To: Greg Allen; users@tomcat.apache.org Subject: RE: Mod_jk/firewall configuration problems Please give the configuration of your workers : the workers.properties.file Have you set worker.yourworker.socket_keepalive=1 in it ? Jean-Claude _ De : Greg Allen [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juin 2006 16:42 À : users@tomcat.apache.org Objet : Mod_jk/firewall configuration problems I am having a problem with mod_jk.so. I have apache set up as my web server, forwarding my jsp traffic to a tomcat server running on the same machine. This setup works fine when the client is inside of my firewall. However, when I try to access my site from outside the firewall, mod_jk does not forward the traffic to tomcat and the page is not displayed. My firewall is set up to forward port 80 traffic from outside to my web server machine. This is working, as I can get non-tomcat served pages to appear on clients outside of the firewall. I have attached the debugging log from mod_jk. In it you can see two requests - the first is from outside (which fails), while the second is from inside and you can see that it is served correctly. I'm sure this is some sort of configuration issue. But I don't know what. Can anyone point out what is wrong? Thanks, -- Greg
session-timeout or setMaxInactiveInterval
I try to invalidate sessions which are inactive during 20 minutes I thought that session-timeout works fine I use a java class which implements HttpSessionBindingListener to destroy the connections made to the database when the container invalidate the session after 20 minutes of inactivity In fact there are connections in the the database which were created by sessions that was more 20 minutes of inactivity I saw explanations about the way used by Tomcat to invalidate sessoins : it invalidate only when it is in need of memory So now i hope that the use of setMaxInactiveInterval will give the solution Before using this in production environment ( where the problem appears) i send these mail to know if any body succeed in using this way to really invalidate sessions after a given time of inactivity I am working under Windows 2000 - Tomcat 1.4.31 - jdk 1.4 Thanks a lot Jean-Claude Serlet INSEE- CNIL Service Développement 03.20.62.89.74 [EMAIL PROTECTED]
RE: Tomcat and Apache Connector Problem
Add the directive JkMount to tell Apache using Tomcat to serve your JSP JkMount /yourWebaaps ajp13 Jean-Claude -Message d'origine- De : Donald Beck [mailto:[EMAIL PROTECTED] Envoyé : dimanche 28 mai 2006 17:11 À : users@tomcat.apache.org Objet : Tomcat and Apache Connector Problem I have installed the following on a Windows Server: Apache 2.0.58 Tomcat 5.0.28 SDK 1.4.2.11 mod_jk_1.2.6_2.0.50.dll (renamed mod_jk.dll and placed it in APACHE_HOME/modules) I am trying to configure Tomcat to server up JSP pages, and have made the following modifications to the following files: server.xml -- !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / httpd.conf - LoadModule jk_module modules/mod_jk.dll #Configure mod_jk JkWorkersFile conf/workers.properties # workers.properties # list the workers by name worker.list=ajp13 # # First tomcat server # worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 jk2.properties - channelSocket.address=localhost channelSocket.port=8009 The server.xml file is the default settings in that file. I have verified the location of my files and they are in the correct directory. I try to go to http://localhost/jsp-examples/ and page is not found, http://localhost:8080/jsp-examples/ works fine. I have tried reading the documentation but I cannot find what I am missing. Any thoughts? TIA __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - 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: sysdeo: whoa, wait a minute
Hello You are right : no help about JSP with the plugin SYSDEO You may use an other one :Lomboz http://lomboz.objectweb.org/overview.html Jean-Claude -Message d'origine- De : Dola Woolfe [mailto:[EMAIL PROTECTED] Envoyé : lundi 27 mars 2006 08:53 À : Tom Cat Objet : sysdeo: whoa, wait a minute Hi, I'm evaluating everyone's advice (thank you, by they way!!!) concerning IDE's for jsp development and the first thing I tried was sysdeo with eclipse (webtools next, then netbeans). Boy, am I getting a surprise. So I created a Tomcat Project (right?) and pointed to the directory that already has all of my jsp pages. Now I see the new project and the list of the jsp files. So far so good. But I'm not getting any help from the IDE! I need: highlighting, indenting, and automatic building or any kind of building, but I'm not getting any of that!!! These are the only things that actually need from my IDE as (so far) I'm using ant to compile and deploy. Was I naive to expect to get these features? Or am I missing something now? Thanks in advance! Dola __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HTTP 500 error JasperException: Unable to compile class for J SP
Don't forget : CATALINA_HOME : the directory where you have installed Tomcat CATALINA_BASE : the directory where you install your web applications They could be the same but, that is my point of vue, it is better to have two distinct repertories Jean-Claude -Message d'origine- De : Antonio Petrelli [mailto:[EMAIL PROTECTED] Envoyé : mercredi 15 mars 2006 09:26 À : Tomcat Users List Objet : Re: HTTP 500 error JasperException: Unable to compile class for JSP Stuart Lowes ha scritto: Catalina logfile: - Using CATALINA_BASE: /var/lib/tomcat4 Using CATALINA_HOME: /usr/share/tomcat4 Using CATALINA_TMPDIR: /var/lib/tomcat4/temp I saw it just now. CATALINA_BASE and CATALINA_HOME shouldn't point to the same directory? I think that Tomcat starts with a bit of confusion :-P HTH Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: apache tomcat like service
Hello Under Windows 2000 i can see in event viewer == Application Log each start and stop of Windows Services corresponding to a Tomcat's instance Jean-Claude -Message d'origine- De : v1k1ng0 [mailto:[EMAIL PROTECTED] Envoyé : mercredi 1 mars 2006 12:28 À : users@tomcat.apache.org Objet : apache tomcat like service Hi, I've apache tomcat like service, it works correctly. But I want know when the apache tomcat service is restarted ... not only the latest restart. I can see the last restart in stdout.log, but I want know when the service is restarted, in for example a week. Apache tomcat doesn't generate nothing in the windows viewfinder events / system? It doesn't generate nothing control service manager ... 7035/7036 event ids ... Thanks beforehand. Cheers... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: apache tomcat like service
Hello There are 5 instances Tomcat which are stopped every night and start every morning They were created as Windows Services and their start type are automatic That's all i did : not any auditing directives And i can see that these 5 services are stopped and started in the Application Log : i get an information with the Service's name and when i open this line i see that the service has stardet or stopped Regards Jean-Claude -Message d'origine- De : v1k1ng0 [mailto:[EMAIL PROTECTED] Envoyé : mercredi 1 mars 2006 14:15 À : Serlet Jean-Claude Cc : users@tomcat.apache.org Objet : Re: apache tomcat like service Hello, 2006/3/1, Serlet Jean-Claude [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] : Hello Under Windows 2000 i can see in event viewer == Application Log each start and stop of Windows Services corresponding to a Tomcat's instance Jean-Claude are you sure in Application Log? I see many Control Service Manager in System Log, but anything of Tomcat. What event id has your entries of Tomcat? Do you have some auditing directive activated? Thanks beforehand. Cheers...
RE: Same jkmount, different server
Hello What's about the directive NameVirtualHost in your httpd.conf ? Jean-Claude -Message d'origine- De : Cedric Fontaine [mailto:[EMAIL PROTECTED] Envoyé : mardi 28 février 2006 00:04 À : Tomcat Users List Objet : Same jkmount, different server Hello, I'm trying to setup a development environment and wondering why my configuration doesn't work. Everything seems to be fine, but I figured out that in fact for both virtualhost traffic to my mount point go to tomcatdev. It seems that even if the instruction is in my VirtualHost, it only keeps the first jkmount. If I put tomcatpreprod in first position, then all the traffic goes to this one. Apache/2.0.54 (Linux) mod_jk/1.2.15 Here is my httpd.conf : JkWorkersFile /virtual/apache/conf/workers.properties VirtualHost *:80 ServerName dev.mydomain.com DocumentRoot /home/www/htdocs/mydomain.com JkLogFile /dev/null JkLogLevel info Alias /tiki/ /home/www/htdocs/tikidev/ JkMount /mount* tomcatdev /VirtualHost VirtualHost *:80 ServerName preprod.mydomain.com DocumentRoot /home/www/htdocs/mydomain.com JkLogFile /dev/null JkLogLevel info JkMount /mount* tomcatpreprod /VirtualHost and my workers.properties ps=/ worker.list=tomcatdev,tomcatpreprod worker.tomcatdev.host=10.1.0.1 worker.tomcatdev.port=8010 worker.tomcatdev.type=ajp13 worker.tomcatdev.lbfactor=1 worker.tomcatdev.cachesize=10 worker.tomcatdev.cache_timeout=600 worker.tomcatdev.socket_keepalive=1 worker.tomcatdev.socket_timeout=300 worker.tomcatdev.recycle_timeout=300 worker.tomcatpreprod.host=10.1.0.1 worker.tomcatpreprod.port=8011 worker.tomcatpreprod.type=ajp13 worker.tomcatpreprod.lbfactor=1 worker.tomcatpreprod.cachesize=10 worker.tomcatpreprod.cache_timeout=600 worker.tomcatpreprod.socket_keepalive=1 worker.tomcatpreprod.socket_timeout=300 worker.tomcatpreprod.recycle_timeout=300 Cedric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Time out on sessions with AJP13
Hello Secund send of this message : i didn't see the first one in the digest i received My environment : OS= Windows 2000 Web Server = Apache 2.0 Tomcat-Apache = 1.4.31 with AJP 13 connector Application uses JSP, Servlet and Driver JDBC Thin of Oracle RDBMS = Oracle 7.3.62 under z/OS (mainframe IBM) The application does'nt use connexion pooling : one physical connexion is used for each user The connexion is explicitly closed only when the user click on the button Quit of the application What's happen when a session is timed out ( without activity during the time set in web.xml) for the processor(limited by maxProcessor of ajp13) in which the last request was executed ? does this processor be released ? what's happen for the connexion to the database ? i didn't find documentation for this situation on the web : only about howto configure AJP13 connector ( that is done ) Last day i have to reboot the tomcat instance because the maxProcessor was reached ( saw it in the log of Tomcat ) I suppose that many users don't quit the application properly I see many more sessions open in the database than users connected ( under z/os the connection not cleanly closed stay ther until the shutdown of database) Regards [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Time out with AJP13
Hello My environment : OS= Windows 2000 Web Server = Apache 2.0 Tomcat-Apache = 1.4.31 with AJP 13 connector Application uses JSP, Servlet and Driver JDBC Thin of Oracle RDBMS = Oracle 7.3.62 under z/OS (mainframe IBM) The application does'nt use connexion pooling : one physical connexion is used for each user The connexion is explicitly closed only when the user click on the button Quit of the application What's happen when a session is timed out ( without activity during the time set in web.xml) for the processor(limited by maxProcessor of ajp13) in which the last request was executed ? does this processor be released ? what's happen for the connexion to the database ? i didn't find documentation for this situation on the web : only about howto configure AJP13 connector ( that is done ) Last day i have to reboot the tomcat instance because the maxProcessor was reached ( saw it in the log of Tomcat ) I suppose that many users don't quit the application properly I see many more sessions open in the database than users connected ( under z/os the connection not cleanly closed stay ther until the shutdown of database) Regards [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]