Re: Problem with getRealPath() on Tomcat 8

2013-08-02 Thread Ognjen Blagojevic
Mark, On 2.8.2013 13:33, Mark Thomas wrote: I noticed that (unlike Tomcat 7.0.42) this version throws IllegalArgumentException upon calling ServletContext.getRealPath(). That looks like a bug in the new resources implementation. Thank you for your prompt response. I filed a bug:

Re: Cannot start apache tomcat 7.0 if server path contains two consecutive spaces.

2013-07-31 Thread Ognjen Blagojevic
Tran, On 31.7.2013 7:11, TRAN Trung Thanh wrote: Today, I tried to start apache tomcat 7.0.42 in Linux environment. Server path contains two consecutive spaces. When I run ./catalina.sh run, server cannot start and there is the following exception in console I am able to reproduce the same

Re: JSVC - two processes running as root

2013-07-23 Thread Ognjen Blagojevic
Shridev, On 23.7.2013 16:14, Shridev Makim wrote: The version of tomcat installed is 7.0.32 if that helps. Anyone has seen this issue? How do we resolve this? FWIW, I'm running JSVC for years, and I never saw anything similar. When we execute this shell script, it creates two processes and

Re: JSVC - two processes running as root

2013-07-23 Thread Ognjen Blagojevic
Shridev, On 23.7.2013 20:41, Shridev Makim wrote: Here are the content of the script. Your script looks ok to me. 1. Do you actually have user dmadmin6 on your system? Does su - dmadmin6 works for you? 2. Did you compiled jsvc as described in the docs [1]? 3. Do you invoke your script as

Re: JSVC - two processes running as root

2013-07-23 Thread Ognjen Blagojevic
Chris, On 23.7.2013 23:05, Christopher Schultz wrote: Why bother changing the script when you can either set the TOMCAT_USER environment variable or pass --tomcat-user to the script? Speaking of which, maybe the TOMCAT_USER environment variable is actually set to root, so modification of the

Re: Security Issue in Tomcat

2013-07-12 Thread Ognjen Blagojevic
Chanaka, On 12.7.2013 6:51, Chanaka Dharmarathna wrote: I'm using Tomcat 7.0.40 for hosted application. I have not configured any user accounts for tomcat (admin, manager, user etc.). Recently my deployed web application was damaged. Restarting tomcat recovered it back. But it seems someone

Re: redirect request from 8080 to port 80

2013-05-16 Thread Ognjen Blagojevic
Chris, On 15.5.2013 16:47, Christopher Schultz wrote: I see that only the URI is being send in the first-line of the request, and not the protocol-qualified URL. Ognjen asserted that most user agents send the whole URL but I have not observed this -- neither today nor in the past. I think most

Re: redirect request from 8080 to port 80

2013-05-16 Thread Ognjen Blagojevic
André, On 15.5.2013 23:56, André Warnier wrote: Anyway, to get back to the OP's original issue, and considering the documentation only, I do understand a bit of confusion as to what is really being logged in the Access Log. Yes, I see. You are right, the documentation or the behavioir of

Re: redirect request from 8080 to port 80

2013-05-15 Thread Ognjen Blagojevic
Anil, On 15.5.2013 13:42, Anil Goyal -X (anigoyal - Aricent Technologies at Cisco) wrote: We are using tomcat version 7.0.25 and in server.xml, we have two connector port defined:80 (http)and 443(https). In /etc/sysconfig/iptables, we have redirect logic written that will redirect the

Re: redirect request from 8080 to port 80

2013-05-15 Thread Ognjen Blagojevic
André, On 15.5.2013 15:38, André Warnier wrote: As far as I understand here, we are not talking about a proxy situation, we are talking about Iptables, which does not proxy, it just modifies packets. So the URL that Tomcat gets from the 1st request line does not contain a hostname[:port}.

Re: SSL configuration on Tomcat7.

2013-04-25 Thread Ognjen Blagojevic
Shahid, Chris, On 25.4.2013 19:14, Christopher Schultz wrote: On 4/25/13 11:10 AM, Shahid Tamboli wrote: Hello Everyone, I am Shahid Tamboli and working at Mobimedia Technologies, Pune, India. We are stuck up with configuring our server with SSL. We have taken an Ubuntu instance on Amazon. We

Re: Tomcat 5.0.28 documentation

2013-04-15 Thread Ognjen Blagojevic
M Eashwar, On 15.4.2013 13:25, M Eashwar wrote: I am searching for Tomcat 5.0.28 documentation in old mail archives and searching in web. But still I am not finding that. The reason to find this old documentation is, our application developed long back and its working in Tomcat 5.0.28

Re: Re : Memory leak in Tomcat 6.0.35 ( 64 bit)

2013-04-02 Thread Ognjen Blagojevic
Saumil, On 2.4.2013 5:01, saumil shah wrote: I recently deployed one of the COTS products SAP Business Objects. When the product was deployed , everything seemed to run fine but yesterday we started experiencing Service is unavailable error , upon enabling DEBUG logs in Tomcat , we saw the

Re: Setting up tomcat to run on port 443 on ubuntu system

2013-03-31 Thread Ognjen Blagojevic
Shyam, On 29.3.2013 14:54, Shyam Yadav wrote: I did all the setting you have mentioned for Unix Daemon for Tomcat, but still i am getting the same problem. i.e. Permission Denied. When you run your jsvc-based Tomcat startup script, you MUST do it as root. It will bind port 443 as root, and

Re: Setting up tomcat to run on port 443 on ubuntu system

2013-03-29 Thread Ognjen Blagojevic
Shyam, On 29.3.2013 9:38, Shyam Yadav wrote: I want to run my tomcat on port 443 with https on an Ubuntu machine. what are the required steps i should take, please guide me through it. I search Internet but did not get any proper solution that is why i am here sending you this mail. Please

Re: Setting up tomcat to run on port 443 on ubuntu system

2013-03-29 Thread Ognjen Blagojevic
Shyam, On 29.3.2013 11:16, Shyam Yadav wrote: I am getting this following exception and the tomcat doesn't start. java.net.BindException: Permission denied null:443 I am really stuck with it. Please help me out with it. How do you start tomcat? Which user runs the Tomcat process? It is

Re: Setting up tomcat to run on port 443 on ubuntu system

2013-03-29 Thread Ognjen Blagojevic
Shyam, On 29.3.2013 13:36, Shyam Yadav wrote: You are right. I am not running tomcat from root user. But I have an requirement where tomcat should be running from normal user. Is it possible anyway? It is possible, and recommended. Using jsvc for instance, as I explained in previos post.

Re: Tomcat 6 centos 5 64 Bit

2013-03-26 Thread Ognjen Blagojevic
Sean, On 26.3.2013 4:14, Sean wrote: Hello, I have setup tomcat6 on port 8080 using 64 bit- Centos 5. I am able to see the default tomcat page, but if I try to go to the webadmin gui (and yes have set my gui-web admin user, etc in server.xml) and or geoserver web app it says connection timed

Re: Tomcat 6 centos 5 64 Bit

2013-03-26 Thread Ognjen Blagojevic
Sean, Mark, On 26.3.2013 10:16, Mark Thomas wrote: On 26/03/2013 08:55, Ognjen Blagojevic wrote: Sean, On 26.3.2013 4:14, Sean wrote: Hello, I have setup tomcat6 on port 8080 using 64 bit- Centos 5. I am able to see the default tomcat page, but if I try to go to the webadmin gui (and yes

Re: SSL Best Practices

2013-03-20 Thread Ognjen Blagojevic
Jeffrey, On 19.3.2013 15:33, Jeffrey D. Fisher wrote: Yes, I do have a CA-issued certificate with a chain to a trusted CA. I've imported it to the keystore. I am close to a solution. When I attempt to open the default Apache web page using https: I get an error page that says that the server

Re: How to allow only TLS 1.1 connections to Tomcat (6.0) server with https ?

2013-03-13 Thread Ognjen Blagojevic
Chris, On 6.3.2013 7:02, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- It seems that Tomcat 6.0.32 (and probably other 6.0.xx versions) use undocumented attribute for HTTPS connector protocols. So in Tomcat 7 you might use: sslProtocol=TLSv1.1 sslEnabledProtocols=TLSv1.1 and

Re: How to allow only TLS 1.1 connections to Tomcat (6.0) server with https ?

2013-03-08 Thread Ognjen Blagojevic
Chris, On 8.3.2013 1:25, Christopher Schultz wrote: For Tomcat 6.0.36 it reports: Protocols TLS 1.2 Yes TLS 1.1 Yes TLS 1.0 Yes SSL 3.0 Yes SSL 2.0 No Tomcat 7.0.37: Protocols TLS 1.2 No TLS 1.1 No TLS 1.0 Yes SSL 3.0 Yes SSL 2.0 No I agree, it is strange.

Re: How to allow only TLS 1.1 connections to Tomcat (6.0) server with https ?

2013-03-07 Thread Ognjen Blagojevic
Chris, On 7.3.2013 5:58, Christopher Schultz wrote: Which behavior is right? I prefer how Tomcat 6 is interepreting that attribute -- trying to enable best possible TLS protocol versions available. OTOH, from Tomcat 7 documents it seems that the value of attribute setProtocol is just passed to

Re: How to allow only TLS 1.1 connections to Tomcat (6.0) server with https ?

2013-03-06 Thread Ognjen Blagojevic
Chris, On 6.3.2013 7:02, Christopher Schultz wrote: So in Tomcat 7 you might use: sslProtocol=TLSv1.1 sslEnabledProtocols=TLSv1.1 and in Tomcat 6.0.32: sslProtocol=TLSv1.1 protocols=TLSv1.1 It works for me. Can you file a bug for this? That should be a) documented and b) accept either

Re: Error configuring tomcat with ssl certificates

2013-03-06 Thread Ognjen Blagojevic
Siddhi, On 6.3.2013 10:41, Siddhi Borkar wrote: The certificate that I am using is RSA based certificate, I tried listing the RSA based ciphers in the server the xml, however it still gave me the same error. Connector port=443 protocol=HTTP/1.1 SSLEnabled=true

Re: Issue in IPv6 evironment

2013-03-06 Thread Ognjen Blagojevic
Geett, On 6.3.2013 11:37, Geett Chanddra Singha wrote: - what version of Tomcat (x.y.z) you are using - *Tomcat Version 6.0.035* - under what version of Java - *Java version 1.6.033* * * - under what platform O.S. - *Windows and Linux* 1. Did I understand correctly: - You are able

Re: Issue in IPv6 evironment

2013-03-06 Thread Ognjen Blagojevic
Geett, On 6.3.2013 15:14, Geett Chanddra Singha wrote: Right? What about IPv4? Do you use it? Is it similar situation when you use IPv4 (works only when you add protocol attribute)? Are you sure that IPv6 protocol is being used? Do you access your server using hostname or IP address?

Re: How to allow only TLS 1.1 connections to Tomcat (6.0) server with https ?

2013-03-05 Thread Ognjen Blagojevic
Brijesh, On 5.3.2013 7:09, Brijesh Deo wrote: Is there a way to make TLS 1.1 required for https connection with Tomcat server. I am currently on Tomcat 6.0.32 with JRE 1.7 on Windows 7. I tried setting [sslProtocol=TLSv1.1] in the Connector definition in server.xml but that did not stop TLS

Re: How to allow only TLS 1.1 connections to Tomcat (6.0) server with https ?

2013-03-05 Thread Ognjen Blagojevic
Igor, On 5.3.2013 8:51, Igor Cicimov wrote: You need java7 for tls1.1 and 1.2 as far as i know. Java 6 supports up to TLSv1.1, and Java 7 up to TLSv1.2. -Ognjen - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

Re: How to allow only TLS 1.1 connections to Tomcat (6.0) server with https ?

2013-03-05 Thread Ognjen Blagojevic
Brijesh, On 5.3.2013 10:11, Brijesh Deo wrote: Thanks for your detailed reply and the explanation. I gave it a quick try but it doesn’t quite work with Tomcat 6.0.32, the version that I am currently using. I checked the Http Connector documentation for Tomcat 6.0 and Tomcat 7.0 and the

Re: How to allow only TLS 1.1 connections to Tomcat (6.0) server with https ?

2013-03-05 Thread Ognjen Blagojevic
Brijesh, On 5.3.2013 11:47, Brijesh Deo wrote: Thanks Ognjen. I tried with -Dhttps.protocols=TLSv1.1 in Tomcat startup but even this doesn’t work with Tomcat 6.0. Looks like upgrading to Tomcat 7.0 seems to be the only way to achieve this easily through configuration in server.xml. That was

Re: Tomcat(7.0.35) vulnerability or issues

2013-02-25 Thread Ognjen Blagojevic
dkumar, On 25.2.2013 10:02, dku...@ccilindia.co.in wrote: We are upgrading the tomcat from version 6.0.18 to 7.0.35 Operating System Version : HP-UX 11.31 Please inform us if there are any known issues or any vulnerability on latest tomcat version of 7.0.35. 1. Good you are upgrading,

Re: Question regarding JNDIRealm - tomcat 6.0.35

2013-02-25 Thread Ognjen Blagojevic
André, On 25.2.2013 10:34, André Warnier wrote: So, on the face of it, there seems to be a contradiction between you saying on the one hand that the LDAP server closes the connection, and on the other hand that netstat shows the connection still being active. TCP connection is established

Re: Question regarding JNDIRealm - tomcat 6.0.35

2013-02-25 Thread Ognjen Blagojevic
André, On 25.2.2013 14:53, André Warnier wrote: Yes, but as soon as Tomcat would try to write to (or read from) that connection, it would immediately get an error, no ? So to say that in the meantime tomcat keeps on trying one of these connections doesn't seem to fit, or ? In regular

[OT] Tomcat upgrade 7.0.35 - 7.0.37, SSL/TLS handshake failure

2013-02-20 Thread Ognjen Blagojevic
Hi, I just wanted to report a problem with JSSE TLS/SSL handshake that became obvious only after I upgraded Tomcat from 7.0.35 to 7.0.37. Server: Tomcat 7.0.37, BIO Connector, Oracle JDK 1.7.0_xx (e.g. _09) Client: Java TLS/SSL client, e.g. [1], Oracle JDK 1.6.0_xx (e.g. _35) Exception is:

Re: How to Enable SSL on Tomcat 7 on Linux Test using curl?

2012-12-18 Thread Ognjen Blagojevic
James, On 18.12.2012 3:03, James Dekker wrote: Dec 17, 2012 5:43:08 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler [http-bio-8443] Dec 17, 2012 5:43:08 PM org.apache.coyote.AbstractP INFO: Server startup in 9611 ms You successfully configured

Re: How to Enable SSL on Tomcat 7 on Linux Test using curl?

2012-12-18 Thread Ognjen Blagojevic
Chris, On 18.12.2012 20:44, Christopher Schultz wrote: If you are using curl just to check the certificate or test HTTPS, it is easier and faster to do that with your favorite web browser. Better yet, use sslscan. Nice tool, thank you for the tip. You seem to be confused by the fact that

Re: SSL Certificate Help

2012-11-08 Thread Ognjen Blagojevic
Alissa, On 7.11.2012 22:13, Alissa Schneider wrote: Here are the steps I have taken thus far: * I deleted my original keystore that held my self-signed certificate. * I deleted the self-signed certificate. * I recreated the keystore. * I imported the

Re: How do I get Tomcat 7 to start up faster in Linux CentOS kernel version 2.6.18?

2012-10-31 Thread Ognjen Blagojevic
Dilshad, On 30.10.2012 22:55, Dilshad Shahid wrote: I am experiencing a problem with slow start up times for Tomcat 7. I have done some testing by tweaking configuration parameters both on Linux CentOS kernel version 2.6.18 and on Windows 7 using this link as my primary guide:

Re: Implementing SSL and error invocating https://localhost:8443/ (Tomcat 7.0 on Windows 7)

2012-10-29 Thread Ognjen Blagojevic
Gabriel, On 28.10.2012 3:48, Gabriel Huerta Araujo wrote: 5.- When I open IE with http://mydomain.com:8080/ or https://mydomain.com:8443/ appears or : IE can not show web page. It seems that your hosts file is not properly configured. 1. Make sure you are editing

MySQL connection error [was: error while shutting down tomcat]

2012-08-20 Thread Ognjen Blagojevic
Ijlal, On 18.8.2012 2:03, Ijlal EL HAZITI wrote: I understand that it's an access to mysql problem. So I gave the user sakai all permissions required, and re-verified the file catalina.properties (where I should put mysql username and the password) but in vain. I still have the same error.

Re: error while shutting down tomcat

2012-08-17 Thread Ognjen Blagojevic
Ijal, On 17.8.2012 1:18, Ijlal EL HAZITI wrote: Well, I have a full access to the server, Here is the logs file, hope it helps. Great, now take a look at your log files, and try to understand what they are trying to tell you. Hint: Access denied for user 'sa'@'localhost' (using password:

Re: Problem with uploading large files

2012-08-17 Thread Ognjen Blagojevic
Sahana, On 17.8.2012 14:33, Sahana Voleti wrote: I am trying to upload really large files (size about 10GB) using the Apache commons upload. I have followed the steps properly, increased the java heap size and the maxPostSize in tomcat (I am using tomcat version 7.0.29). Also I am using

Re: Issue with running Tomcat from Eclipse/STS

2012-08-16 Thread Ognjen Blagojevic
Julien, On 15.8.2012 22:12, Julien Martin wrote: I am having trouble getting Tomcat-7.0.29 to work with Eclipse/sts. My war deploys fine when I drop it into the deploy directory of Tomcat directly but when I deploy it using Eclipse/STS, I get a ClassNotFoundException whereas I know for certain

Re: error while shutting down tomcat

2012-08-15 Thread Ognjen Blagojevic
Ijlal, On 15.8.2012 0:32, Ijlal EL HAZITI wrote: I installed a wab application (sakai precisely) on a distant server remotely, but it doesn't start, and when I shutdown tomcat, I get that error: /opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar 14 août 2012 13:55:44

Re: need help debugging why a simple app install fails

2012-08-13 Thread Ognjen Blagojevic
my, On 12.8.2012 18:52, my koseli wrote: I just tested some more with 6.0.26, and indeed InstallTask seems to be problematic, so just use DeployTask as recommended by Tomcat docs: Again, what exact Tomcat version do you use? I changed the build.xml to below but I still get the error. Any

Re: need help debugging why a simple app install fails

2012-08-10 Thread Ognjen Blagojevic
Hi my, On 10.8.2012 6:13, my koseli wrote: I tried adding /text to the end of manager url but that didnt work. There is nothing interesting in the /var/log/tomcat6/ also. When I do *build* I do get warning as below but I am not sure how serious this warning is. On this list, bottom-posting

Re: need help debugging why a simple app install fails

2012-08-10 Thread Ognjen Blagojevic
Hi my, On 10.8.2012 6:13, my koseli wrote: I tried adding /text to the end of manager url but that didnt work. There is nothing interesting in the /var/log/tomcat6/ also. When I do *build* I do get warning as below but I am not sure how serious this warning is. I just tested some more with

Re: need help debugging why a simple app install fails

2012-08-09 Thread Ognjen Blagojevic
Hi my, On 9.8.2012 14:55, my koseli wrote: When I do ant build, deploy it seems to work but when I do ant install -v I get failed to build with output below. I cant find the reason this is failing. Is it possible to get some help on debugging this? You get the message from Manager webapp

Re: need help debugging why a simple app install fails

2012-08-09 Thread Ognjen Blagojevic
Hi my, On 9.8.2012 16:57, my koseli wrote: Here's the relevant lines from build.xml 101 target name=install description=Install application in Tomcat Tomcat docs says that install task is deprecated. Although it is maybe equivalent to deploy, I recommend to switch to deploy

Re: Adding the manager app to a Standalone tomcat install

2012-05-07 Thread Ognjen Blagojevic
Todd, On 4.5.2012 22:01, Todd Seidenberg wrote: xx.x.32.16 - - [04/May/2012:13:59:05 -0600] GET /manager/html HTTP/1.1 404 991 - Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/12.04 Chromium/18.0.1025.151 Chrome/18.0.1025.151 Safari/535.19 xx.x.32.16 - -

Re: Problem tomcat

2012-04-06 Thread Ognjen Blagojevic
Fairouz, On 4.4.2012 17:25, Fairouz Fakhfakh wrote: I use Tomcat 6 and java 5. Good to know. Send us exact versions for both. OS type and version could also be informative. I have a problem by clicking on a button to access a JSP page. Which button? If the button is on the HTML/JSP

Re: PermGen error

2012-04-03 Thread Ognjen Blagojevic
On 3.4.2012 10:35, Casper Wandahl Schmidt wrote: Den 03-04-2012 10:26, Vijay skrev: Why i am getting PermGen space error even increasing permgen size Heap Size to 1024MB. Tomcat : apache-tomcat-6.0.33 Try reading: http://www.catb.org/~esr/faqs/smart-questions.html Exactly. Also, check

Re: tomcat dbcp encryption

2012-03-27 Thread Ognjen Blagojevic
이재만, On 27.3.2012 9:54, 이재만 wrote: how do i encrypt my datasource's user and password in server.xml ?? Read this: http://wiki.apache.org/tomcat/FAQ/Password -Ognjen - To unsubscribe, e-mail:

Re: memory heap size

2012-02-14 Thread Ognjen Blagojevic
On 14.2.2012 14:55, André Warnier wrote: The Heap is only one part of the memory used by the Java process. Exactly. Here is some more information on the topic: http://stackoverflow.com/questions/8037920/tomcat-memory-consumption-is-more-than-heap-permgen-space -Ognjen

Re: How to configure certificate file (*.cer) in Tomcat 6

2012-01-30 Thread Ognjen Blagojevic
Geet, Bottom-posting style is standard on this list (http://en.wikipedia.org/wiki/Posting_style#Bottom-posting). On 30.1.2012 5:42, Geet Chandra wrote: - The customer has got very secure environment...they don't want to use the *.keystore being shipped with particular product. Uhm... lots

Re: How to configure certificate file (*.cer) in Tomcat 6

2012-01-30 Thread Ognjen Blagojevic
On 30.1.2012 12:44, Geet Chandra wrote: 1. By *.keystore, do you mean keystore or truststore? Do you understand the difference between them? - Could you please explain the difference. Google is your friend: http://stackoverflow.com/questions/318441/truststore-and-keystore-definitions 2.

Re: New development, Re: More, Re: Problem bringing up SSL with a CA certificate

2012-01-23 Thread Ognjen Blagojevic
James, On 19.1.2012 18:05, James Lampert wrote: You must find keystore with earlier generated key pair (the one you also used to generate CSR for CA), and import all three certificates into that keystore. At this point, I still don't have the keystore used to generate the CSR, but I *do* now

Re: More, Re: Problem bringing up SSL with a CA certificate

2012-01-19 Thread Ognjen Blagojevic
James, On 19.1.2012 1:41, James Lampert wrote: secondary, Jan 18, 2012, trustedCertEntry, Certificate fingerprint (MD5): EB:A3:71:66:38:5E:3E:F4:24:64:ED:97:52:E9:9F:1B wintouch, Jan 18, 2012, trustedCertEntry, Certificate fingerprint (MD5): 55:D7:4D:D4:83:01:D6:E0:EB:A4:F3:9A:06:BD:87:38

Re: SSL Certificate Update Not Reflected on the Website

2012-01-09 Thread Ognjen Blagojevic
Conway, On 9.1.2012 11:19, Conway Liu wrote: Does anyone have any suggestion where might be wrong? Do you have anything between your browser and Tomcat? Apache HTTPd, perhaps, or some kind of load balancer with SSL termination? -Ognjen

Re: SSL Configuration Errors

2012-01-09 Thread Ognjen Blagojevic
Justin, On 9.1.2012 20:40, Justin Larose wrote: This seems to be the problem. How do I set my imported cert as a key entry or get Tomcat to read it as a CertEntry? You must use the same keystore and same alias when you: 1. generate key, 2. generate csr, 3. import certificate. Example:

Re: Java 7

2011-11-23 Thread Ognjen Blagojevic
André, On 22.11.2011 20:31, André Warnier wrote: The reason I'm asking is that for testing some unrelated Java software, I am being asked to install Java 7 on a system on which currently happily runs Tomcat 6.x with Java 6 (Oracle), and I'd like to know if I would be setting myself up for some

Re: [Tomcat 6.0.29] Why do I have to configure the datasource in the context.xml of the server and in the context.xml of the application?

2011-08-01 Thread Ognjen Blagojevic
Hi AN, On 30.7.2011 22:34, AN wrote: (...) I'm using Liferay (the application is a portlet). I believe that you cannot apply webapp configuration to portlets. It is probably better if you ask your question at Liferay mailing lists. -Ognjen

Re: Support for a jarsToInclude property?

2011-07-30 Thread Ognjen Blagojevic
On 30.7.2011 0:27, Konstantin Kolinko wrote: 2. Note that you can configure JarScanner element in context.xml. Maybe it is worth to add a pair of such attributes (skip/include) there? http://tomcat.apache.org/tomcat-7.0-doc/config/jar-scanner.html That makes sense. Most of the jar files are

Re: Updating JAR META-INF/resources at runtime

2011-07-27 Thread Ognjen Blagojevic
Hi David, On 27.7.2011 16:20, David Wolverton wrote: I'm running Tomcat 7.0.19 with IntelliJ IDEA IDE. I'm using the new Servlet 3.0 feature that allows webapp resources to be served from within JARs' META-INF/resources directory. This technique is working fine, however I would like to be able

Re: Unable to generate pw hash on cmd line since 7.0.16

2011-07-26 Thread Ognjen Blagojevic
Hi Jeremy, On 26.7.2011 17:37, M. Jeremy Carter wrote: Since upgrading to Tomcat 7.0.16, the command line noted at http://tomcat.apache.org/tomcat-7.0-doc/realm-howto.html hasn't worked for me. I've been unable to find any answers from google, other than some references that seem to say I'm

Re: Unable to generate pw hash on cmd line since 7.0.16

2011-07-26 Thread Ognjen Blagojevic
On 27.7.2011 0:11, Ognjen Blagojevic wrote: Add tomcat-coyote.jar to your classpath, and you should be fine. Ops... Didn't notice you already solved it. Thunderbird broke it into separate threads. -Ognjen - To unsubscribe

Re: [Tomcat 6.0.29] Why do I have to configure the datasource in the context.xml of the server and in the context.xml of the application?

2011-07-25 Thread Ognjen Blagojevic
On 25.7.2011 16:57, AN wrote: I don't understand why do I have to place the Resource element in both files. You don't. It seems that you misconfigured something. Resource auth=Container driverClassName=oracle.jdbc.OracleDriver Could be the source of the problem? If you deploy as

Re: Tomcat 7: Why is JDK needed ?

2011-07-22 Thread Ognjen Blagojevic
Bobi, What Konstantin is suggesting, is if you want to get your question answered, you *really* need to describe your problem in detail. Which OS, JRE and Tomcat version are you using, which Tomcat distribution (installer or .zip), how are your environment variables set, how do you try to

Re: Tomcat 7: Why is JDK needed ?

2011-07-22 Thread Ognjen Blagojevic
Bobi, You are doing something wrong, but your sparse explanations make it difficult to determine what. Here is example how to run Tomcat just with JRE: C:\apps\apache-tomcat-7.0.11\binset JRE_HOME= C:\apps\apache-tomcat-7.0.11\binset JAVA_HOME=

Re: Same .war handling more Context Path

2011-05-07 Thread Ognjen Blagojevic
GF, On 7.5.2011 10:41, GF wrote: Is there some alternative way? I have the underlying .war written in struts2 and it's context-path indipendent, so the best choice for me would be to place the language information in the context-path section of the url. I use one webapp at ROOT context which

Re: OT: Versioning in Javascript Files

2011-04-12 Thread Ognjen Blagojevic
On 11.4.2011 23:47, George Sexton wrote: I'm looking for ideas on how other people are doing versioning in Javascript files. I'm hitting issues if I change my files in an incompatible way, or I upgrade files. For example, if I upgrade from DOJO 1.5 to DOJO 1.6, the user's browsers are not

Re: OT: Versioning in Javascript Files

2011-04-12 Thread Ognjen Blagojevic
Chris, href=some.css?v=${parameter} Some clients and proxies will refuse to cache resources with a query string. In those cases, caching (obviously) won't work and there might be a significant loss in performance of the web site. Exactly. I tested on one usecase (no proxy, limited number

Re: Is it possible to configure 2 SSL connectors on one Tomcat instance?

2011-03-09 Thread Ognjen Blagojevic
Nikko, On 9.3.2011 8:26, Nikko Nikko wrote: Thanks for the answers! I have one IP and wildcard certificate which I signed using local CA. I want to have different trust stores for client certificate authorization. It is a small PoC/demo and I do not have 2 IP-s. The example above is using 2

Re: Is it possible to configure 2 SSL connectors on one Tomcat instance?

2011-03-08 Thread Ognjen Blagojevic
On 8.3.2011 13:57, Nikko Nikko wrote: Is It possible to define 2 SSL connectors for 2 different virtual domain domains? For example I want to define 2 virtual hosts: “host1.myhost.com” and “host2.myhost.com” and want to have different trust store for each of them. I want to run them in one

Re: Is it possible to configure 2 SSL connectors on one Tomcat instance?

2011-03-08 Thread Ognjen Blagojevic
On 8.3.2011 14:51, Borut Hadžialić wrote: Maybe if your domains are really similar to host1.myhost.com and host2.myhost.com you could use a wildcard certificate (*.myhost.com) or if you are using a self-signed certificate and want just https encryption and not server verification - then you

Re: how to contribute to tomcat documentation?

2011-03-02 Thread Ognjen Blagojevic
On 2.3.2011 7:56, Daniel Baktiar wrote: if i want to contribute to the documentation of tomcat, where should i start? i saw a lot of contributions are welcomed, patches are welcomed, but cannot find the end of thread: the where to start 1. Checkout Tomcat

Re: Trouble setting up ssl

2011-02-26 Thread Ognjen Blagojevic
On 26.2.2011 6:42, Joseph L. Casale wrote: I have setup a keystore as follows: keytool -genkey -alias tomcat -keyalg RSA -dname CN=server FQDN,OU=Company Name,O= Company Name ,L=city,ST=province,C=CA \ -keystore /path/keystore -keypass phrase -storepass phrase ... I added the signed sert:

Re: what to do in conf. files

2011-02-26 Thread Ognjen Blagojevic
On 26.2.2011 18:50, ahmet temiz wrote: ?xml version=1.0 encoding=UTF-8? Context path=/usr/local/workspace1/pro1 docBase=pro1 crossContext=true reloadable=true debug=1 Resource name=jdbc/bzk2 auth=Container type=javax.sql.DataSource

Re: what to do in conf. files

2011-02-26 Thread Ognjen Blagojevic
On 26.2.2011 22:29, Ognjen Blagojevic wrote: 3. Remove the reloadable attribute. Docs: This feature is very useful during application development, but it requires significant runtime overhead and is not recommended for use on deployed production applications. That's why the default setting

Re: how to refresh connection pool before it gets completely busy

2011-02-02 Thread Ognjen Blagojevic
Hi Rhonny, Can anyone help how we can achieve this , that connection pool refreshes before all connections get busy? You might want to check jdbc-pool, which sovles some of the problems with dbcp: http://people.apache.org/~fhanik/jdbc-pool/jdbc-pool.html Regards, Ognjen

Re: apache question

2011-02-02 Thread Ognjen Blagojevic
Hi Lava, On 1.2.2011 19:35, Lava Saleem wrote: yeah I have read what you quote before but my question is that I need to set apache httpd as a proxy and I'm not sure if it buildin within the apache tomcat and what about the mod_jk do I need to download it ? Apache Tomcat comes packaged with

Re: war app, Tomcat, public IP and port 8080 - remote access

2011-01-29 Thread Ognjen Blagojevic
On 28.1.2011 23:14, Amilcar De Leon wrote: So, on my server, if I type, 211.210.19.11:8080/myAPP I can run my app OK. The same if I try from another computer within the same LAN (connected to the same router). Your webapp seems to be working just fine. When I try to access that same address

Re: Step by Step Guide – Install Jakarta on Windows 2003 and 2008 Server

2010-12-07 Thread Ognjen Blagojevic
Hi Gabriel, These Step by Step Guides covers the installation of Apache Tomcat Connector Jakarta on Windows 2003 and 2008 Server. The name you chose for your product is confusing. IANAL, but I also think it is against the Apache License. Please read guidelines [1], section What is the

Re: Tomcat SSL godaddy

2010-12-03 Thread Ognjen Blagojevic
On 3.12.2010 14:53, Nathaniel Thalluri wrote: I still haven't been able to resolve this issue. Does anyone have any suggestions? Provide more details about the problem: 1. If you open your site with e.g. Firefox, and certificate is not valid, under section technical details, you will see

Re: [ANN] New Tomcat committer: Christopher Schultz (schultz)

2010-11-23 Thread Ognjen Blagojevic
On 22.11.2010 21:52, Caldarale, Charles R wrote: On behalf of the Tomcat committers I am pleased to announce that Christopher Schultz (schultz) has been voted in as a new Tomcat committer. Please join me in welcoming him. And you thought you were busy before... Congratulations.

Re: RequestDumperFilter improvement

2010-11-12 Thread Ognjen Blagojevic
On 12.11.2010 21:51, Christopher Schultz wrote: 1. condition. This may cause confusion as it acts the opposite way to AccessLogValve's condition. 2. ifSet or even if 3. Give the user a choice: ifSet /and/ ifUnset (or both!) I like no. 3, to have it both. It's clear and flexible. BTW, it

Re: Have a Problem Importing an SSL Certificate

2010-10-31 Thread Ognjen Blagojevic
Hi Marwan, I'm spinning into circles importing the certificate into my system. We are using a web based software that resides on tomcat. Here are the instructions I have got from the vendor on how to import the SSL: Instructions seems correct. I'm assuming the root certificate is the one

Re: Have a Problem Importing an SSL Certificate

2010-10-31 Thread Ognjen Blagojevic
On 31.10.2010 23:38, Caldarale, Charles R wrote: From: Marwan Kandeel [mailto:marwan.kand...@bupa.com.sa] Subject: Re: Have a Problem Importing an SSL Certificate You do this SSL process by running batches. So you actually do not have access to tomcat interface. I think the system is built on

Re: Maven and Tomcat and Eclipse

2010-10-18 Thread Ognjen Blagojevic
Here is how I use it: 1. Eclipse EE with WTP 2. Tomcat installed form .zip archive 3. Tomcat registered in Eclipse at Server view (allows clean deploy, incremental deploy, restart and debug) 4. m2eclipse plug-in (allows pom.xml - Eclipse dependency configuration) It copies jsp files to Tomcat

Re: Serialization

2010-10-04 Thread Ognjen Blagojevic
If I understand correctly both ddm2 and dm5t are defined in .jsp files? If so, you could separate class definitions from .jsp files. -Ognjen On 4.10.2010 15:38, Wolfgang Orthuber wrote: w4a.jsp and w4b.jsp are the names of two different jsp files. Both contain %@ include file=wtovedi.jsp %

Re: Tomcat 6.0 and Windows 7

2010-09-27 Thread Ognjen Blagojevic
On 27.9.2010 15:45, Julie Gautier wrote: I installed the web application on a server : I installed Apache Tomcat (as a service) on the server machine and put my web application under Apache Software Foundation\Tomcat 6.0\webapps\ROOT. The first client machine is mine (running XP), the second one

Re: Tomcat not listening on specified port

2010-09-24 Thread Ognjen Blagojevic
On 24.9.2010 7:37, Garg, Saman wrote: We are using tomcat-6.0.24 with jdk1.6.0.17 on RHEL 3 OS. We have a wrapper script which sets few variables and then call tomcat.start to start up the instance. In the tomcat log, I do see org.apache.jk.common.ChannelSocket init not getting loaded on the

Re: Tomcat performance tuning

2010-09-24 Thread Ognjen Blagojevic
Rujin, I Installed tomcat 5.5.20 version in my Windows 2008 server and the java version is Java 1.6.0.b105.We are using 2 Mbps Bandwidth Leased line.In tomcat we hosted around 5(five) application.When the no of seesion increases more than 1600 session the total application is slow and not able

Re: Tomcat 7 and mySQL

2010-09-19 Thread Ognjen Blagojevic
Tina, On 19.9.2010 8:25, Tina Schliemann wrote: I try to connect the Tomacat 7 to a mySQL. ... Host name=localhost appBase=webapps ... Context path=/ode docBase=ode debug=5 reloadable=true crossContext=true ... Resource name=jdbc/ode auth=Container

Re: [ANN] CI for Tomcat 6 and 7 docs now available

2010-09-17 Thread Ognjen Blagojevic
On 17.9.2010 14:56, André Warnier wrote: Sorry if I ask, but I am really unfamiliar with these things. Does this involve any actual compiling of code ? I mean, if the only thing that is changed is some documentation page, it won't I guess. But would the build break just because there is no

Re: [OT] Tomcat on Linux

2010-09-16 Thread Ognjen Blagojevic
On 15.9.2010 22:08, Tommy Pham wrote: I was wondering what flavor(s) of Linux, if applicable, do you use to develop? And what Linux flavor(s) do you have Tomcat running production on? We use latest CentOS Linux. [r...@server ~]# uptime 15:27:31 up 65 days, 22:54, 1 user, load average:

Re: How to solve To prevent a memory leak

2010-09-16 Thread Ognjen Blagojevic
On 16.9.2010 15:32, Alex wrote: I run an web application which uses spring, hibernate, apache-cxf and the quartz scheduler which is referenced by spring. The webapp work as it should, but on shutdown or restart the apache tomcat server I always get following output. The webapp is not stopped

Re: How to solve To prevent a memory leak

2010-09-16 Thread Ognjen Blagojevic
On 16.9.2010 16:04, Alex wrote: The MySql driver is in $TOMCAT/webapps/xxx/lib. I using Hibernate as OMR Mapper with Spring 3.0, here my hibernateApllicationContext.xml (partial) bean id=datasource class=com.mchange.v2.c3p0.ComboPooledDataSource Check with c3p0 documentation how to unregister

Re: Best practice for running Tomcat on port 80

2010-09-07 Thread Ognjen Blagojevic
On 7.9.2010 9:51, Pid wrote: 3. Iptables Actually, remarkably simple to implement. Should be properly documented within your organisation because it might be hard to discover for less familiar users. If you are talking about NAT, like in this example: = *nat :OUTPUT ACCEPT [93:16135]

<    1   2   3   >