Is it possible to move Tomcat logfiles?

2009-05-09 Thread johnrock
I am setting up a CentOS 5 server running tomcat and wanted to know whether the best practice is to leave the Tomcat logfiles in their default location: /usr/share/apache-tomcat-6.0.18/logs or whether I should place them in another directory like /var/log/tomcat. Is this possible, and/or prefer

Re: Configuration help with tomcat connectors

2009-05-09 Thread Dave Filchak
Charles, Caldarale, Charles R wrote: WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'appbase' to 'webapps' did not find a matching property. The above is due to the invalid element in server.xml. I have removed the offending element but I am still getti

Re: Configuration help with tomcat connectors

2009-05-09 Thread Dave Filchak
Charles, Caldarale, Charles R wrote: It's not necessary to change the name (or the defaultHost) if you only have one element, so I'd recommend changing both back to localhost. You only need multiple names if you are serving multiple domains that have separate sets

RE: Sanity check: Multiple SSL virtual hosts

2009-05-09 Thread Martin Gainty
wrong again Martin Gainty __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unaut

RE: Sanity check: Multiple SSL virtual hosts

2009-05-09 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:mgai...@hotmail.com] > Subject: RE: Sanity check: Multiple SSL virtual hosts > I noticed you are using the same port 8443 for 2 different connectors > each connector needs their own IP/port combination ??? The OP's config clearly shows a separate IP address for each

RE: Configuration help with tomcat connectors

2009-05-09 Thread Caldarale, Charles R
> From: Dave Filchak [mailto:sub...@zuka.net] > Subject: Re: Configuration help with tomcat connectors > > name (or the defaultHost) if you only have one element, so I'd recommend changing both back to localhost. You only need multiple names if you are serving multiple domains t

RE: Sanity check: Multiple SSL virtual hosts

2009-05-09 Thread Caldarale, Charles R
> From: Mark Thomas [mailto:ma...@apache.org] > Subject: Re: Sanity check: Multiple SSL virtual hosts > > It should work. The only potential issue is that a request to > 123.123.123.111 can still access host2 Shouldn't there be elements for the IP addresses for each to insure proper routing fo

RE: Configuration help with tomcat connectors

2009-05-09 Thread Caldarale, Charles R
> From: Dave Filchak [mailto:sub...@zuka.net] > Subject: Re: Configuration help with tomcat connectors > > 1a: I assume that if the DNS for a particular virtualhost (domain) > points to this new IP, the tomcat server will serve the correct files > based on the context? True. > 2. Modify the

Re: Configuration help with tomcat connectors

2009-05-09 Thread Dave Filchak
André Warnier wrote: André, Thanks very much for taking the time to write this very helpful and detailed response. I truly appreciate it. I have basically come to terms with most of the theory in what you are saying here and slowly the light is coming on. ... BUT I have managed to

RE: Sanity check: Multiple SSL virtual hosts

2009-05-09 Thread Martin Gainty
I noticed you are using the same port 8443 for 2 different connectors each connector needs their own IP/port combination Martin Gainty __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité This mes

Re: Configuration help with tomcat connectors

2009-05-09 Thread André Warnier
Dave Filchak wrote: ... Hi. Since the simple answer did not work (or was not sufficient), and since on the other hand you seem to be wanting to understand what you are doing, let me try to give you an overview. For short, I will use "Apache" when I mean Apache httpd, and Tomcat to mean the Ap

Re: IIS Redirect Issue

2009-05-09 Thread Mark Thomas
Maze, Jeffrey S. wrote: > Hello, > I'm new to the list. > I'm having an issues with Tomcat. I'm using version 1.2.28 of > the redirect, and I've tried Tomcat versions 6.0.18 and 5.5.27 and Java > versions 1.5u18 and 1.6u13. No matter what Tomcat or Java version I > use, I have the sam

Re: Sanity check: Multiple SSL virtual hosts

2009-05-09 Thread Mark Thomas
Ognjen Blagojevic wrote: > Does this look right? It should work. The only potential issue is that a request to 123.123.123.111 can still access host2 (although they will get a warning about certificate validity). It would require playing with name resolution (eg local hosts file) to do this. Mark

Re: Configuration help with tomcat connectors

2009-05-09 Thread Dave Filchak
Caldarale, Charles R wrote: From: Dave Filchak [mailto:sub...@zuka.net] Subject: Re: Configuration help with tomcat connectors So, can you clarify what you mean by standalone? Not front-ended by httpd or other web server. Right now it is running on port 8080 and I have other sites ru

Sanity check: Multiple SSL virtual hosts

2009-05-09 Thread Ognjen Blagojevic
Hi all, I just configured Tomcat 6.0.18 (over CentOS 5.3 and Java 1.6.0u13) to work with two virtual hosts over https, and wanted to check is this the proper configuration: two https connectors (bounded to the IPs) with two keystores, two Host elements, all inside one Service element. Here i

RE: Configuration help with tomcat connectors

2009-05-09 Thread Caldarale, Charles R
> From: Dave Filchak [mailto:sub...@zuka.net] > Subject: Re: Configuration help with tomcat connectors > > So, can you clarify what you mean by standalone? Not front-ended by httpd or other web server. > Right now it is running on port 8080 and I have other sites > running on this server on the

Re: Configuration help with tomcat connectors

2009-05-09 Thread Dave Filchak
Caldarale, Charles R wrote: From: Dave Filchak [mailto:sub...@zuka.net] Subject: Re: Configuration help with tomcat connectors So, I am told there will be static content as well as JSP pages. Tomcat does an excellent job of serving static content all by itself. Unless you have

Re: Configuration help with tomcat connectors

2009-05-09 Thread Dave Filchak
André Warnier wrote: Hi. Just for a start, add a line after this one : > # Send JSPs for context /jsp-examples to worker named default > JkMount /jsp/*.jsp worker1 JkMount /jsp worker1 and just try again (after restarting Apache) Note : I also think you've got way too many workers there, includ

RE: Configuration help with tomcat connectors

2009-05-09 Thread Caldarale, Charles R
> From: Dave Filchak [mailto:sub...@zuka.net] > Subject: Re: Configuration help with tomcat connectors > So, I am told there will be static content as well as JSP pages. Tomcat does an excellent job of serving static content all by itself. Unless you have some other compelling need to run httpd

Re: Configuration help with tomcat connectors

2009-05-09 Thread Dave Filchak
Caldarale, Charles R wrote: From: Dave Filchak [mailto:sub...@zuka.net] Subject: Configuration help with tomcat connectors I have been trying to set up tomcat with apache 2.2 for the last few days and have been unsuccessful in getting the connectors working with the supplied example files.

RE: enable only localhost access to tomcat 6.0.18 /manager in win32

2009-05-09 Thread Caldarale, Charles R
> From: m zyzy [mailto:myz...@gmail.com] > Subject: enable only localhost access to tomcat 6.0.18 /manager in > win32 > Now , I want the /manager webapp only be accesible from localhost only > ( but other webapp must be accessible from outside whether private LAN > or Internet) ,but how ? Use th

Re: Tomcat and Oracle connections

2009-05-09 Thread George Sexton
Your application is not closing all result sets, statements, or connections. You might get a tool like FindBugs http://findbugs.sourceforge.net/ and look at your application if it's compiled java. Wouter D'Haeseleer wrote: Hi Guys, We have an Oracel RAC at work and using some applications r

RE: Tomcat and Oracle connections

2009-05-09 Thread Caldarale, Charles R
> From: Wouter D'Haeseleer [mailto:wdhaesel...@vangenechten.com] > Subject: Tomcat and Oracle connections Don't suppose you could be bothered to tell us the Tomcat version, JVM level, and OS you're running on? > And when I look at the connections itself in oracle I see that the > following conne

Mandragora 0.3.2 released : Ejb support

2009-05-09 Thread Alessandro Colantoni
Mandragora (http://mandragora.sourceforge.net/) is an opensource framework that provides a pre-built infrastructure for every kind of java application. Mandragora is a generic business layer highly configurable and easily extensible, suitable for distributed applications as well, that come with mo

RE: how to setup jconsole to monitor tomcat locally

2009-05-09 Thread Caldarale, Charles R
> From: Anamika raj [mailto:rajnam...@gmail.com] > Subject: Re: how to setup jconsole to monitor tomcat locally > > hi i m not getting the meaning of that > > [ " create CATALINA_HOME/bin/setenv.sh CATALINA_HOME refers to the directory in which you have Tomcat installed. > 3. Make it executable

RE: phpmyadmin and tomcat

2009-05-09 Thread Martin Gainty
not to mention if one of the php libraries (such as php5ts) crashes your server you will have to acquire all the make,cc,link build tools (good luck with that as you will have to get that from OS vendor) acquire all the makefile build scripts(BTW none of the php build scripts in the src distro

RE: how to setup jconsole to monitor tomcat locally

2009-05-09 Thread Caldarale, Charles R
> From: Karthik Nanjangude [mailto:karthik.nanjang...@xius-bcgi.com] > Subject: RE: how to setup jconsole to monitor tomcat locally > > Just add the following as 1'st line's into u'r " > /TOMCAT/bin/Catalina.bat ( .sh on Unix /Linux) Bad advice. You should not be modifying Tomcat-supplied scr

RE: Form Based Authentication creates user session before it is authenticated?

2009-05-09 Thread Martin Gainty
take a look at HttpServletRequest.code for method which creates a new session via getSession(request,true) http://www.java2s.com/Open-Source/Java-Document/6.0-JDK-Core/Servlet-API-by-tomcat/javax/servlet/http/HttpServletRequest.java.htm getSession(request,true) will create a new Session getSessio

Tomcat and Oracle connections

2009-05-09 Thread Wouter D'Haeseleer
Hi Guys, We have an Oracel RAC at work and using some applications running on a tomcat which needs oracle. Nearly every week we have a problem with these connections. We are getting: ORA-12520: TNS:listener could not find available handler for requested type of server This means, no connect

Re: Form Based Authentication creates user session before it is authenticated?

2009-05-09 Thread Pid
Pid wrote: > umeshkavade wrote: >> Hello, >> >> In my web application, I am using tomcat's form based authentication for >> protecting my secure web pages. Thus whenever user starts accessing webapp >> by providing an URL of protected page, it is redirected to login page. >> However, while doing so

Re: Form Based Authentication creates user session before it is authenticated?

2009-05-09 Thread Pid
umeshkavade wrote: > Hello, > > In my web application, I am using tomcat's form based authentication for > protecting my secure web pages. Thus whenever user starts accessing webapp > by providing an URL of protected page, it is redirected to login page. > However, while doing so it creates a sess

Deploy a WAR

2009-05-09 Thread Mosab Hsis
Hi everybody I have a problem with Apache Tomcat in Netbeans 6.5 and Apache Tomcat separated... I made my project with Netbeans 6.5, the server is Apache Tomcat who is included with it... When I deploy, it work very good But when a made my " *.WAR " and I installe Apache Tomcat separeted and I

enable only localhost access to tomcat 6.0.18 /manager in win32

2009-05-09 Thread m zyzy
I am using win32 server (Server 2008 Enterprise SP1) and tomcat 6.0.18 (extracted from zip) . I am a newbie in tomcat who use the bundled manager application as often as I can to deploy /undeploy webapp or simply to manage it. As I set a hard-to-guess password and username in the tomcat-users.xml ,

RE: Tomcat Configuration in Eclipse

2009-05-09 Thread Karthik Nanjangude
Hi I have been using this plug-in for long time...I have not found any issues... The plug in for Eclipse is used only for start/stop/ war file creation only For Tomcat and not for any other purpose Once the zip file exploded and placed under Eclipse/plugin's . u need to restart Eclipse and h