Re: Tomcat in the development envrionment (avoiding undepoly / deploy)

2005-10-21 Thread Bob Hall
--- "Bruce E. Stemplewski" <[EMAIL PROTECTED]> wrote: > Ah just did some searching and found that Tomcat is > for Java and I > should be running Apache for PHP? > > Bruce, I would have thought so too, but a quick Google search of 'Tomcat PHP' produced a 1st hit of:

Re: Tomcat in the development envrionment (avoiding undepoly / deploy)

2005-10-21 Thread Bruce E. Stemplewski
Bruce E. Stemplewski wrote: I have just installed Tomcat on my XP local workstation. I just starting working with PHP using Ecplise. The only way I can get Tomcat to recognize changes to my development directory and files is to undeploy the directory and deploy the directory again. Is ther

Tomcat in the development envrionment (avoiding undepoly / deploy)

2005-10-21 Thread Bruce E. Stemplewski
I have just installed Tomcat on my XP local workstation. I just starting working with PHP using Ecplise. The only way I can get Tomcat to recognize changes to my development directory and files is to undeploy the directory and deploy the directory again. Is there any way to avoid this? P

Re: hacking the tomcat DefaultServlet

2005-10-21 Thread Maurice Yarrow
Hi Tim Yes, as I described in one of my letters, I have used the getRequestDispatcher, but when I do, images don't cache in IE under https, no matter what I am forward'ing to or include'ing to, whether it is in my web app context or outside of it. I have a META-INF/context.xml with allowLinking=

Re: hacking the tomcat DefaultServlet

2005-10-21 Thread Tim Funk
Filters are only run on the incoming request. They can run on include() and forward() to but you need to see configure that in web.xml. If you are renaming the servlet path - you can't call chain.doFilter() and get the results you expect. YOu need to get a new RequestDistpatcher for the locati

Re: Server Access Log and Request Information

2005-10-21 Thread Tim Funk
Look at the javadocs for AccessLogValve. It allows for conditional logging. -Tim TK wrote: Hi, I am looking for ways to associate each object recorded in the log file with the corresponding page requested. Say, for example, Page A contains objects p, q, r, s Page B contains onjects x, y, z Re

Re: Unable to open Tomcat Manager?

2005-10-21 Thread andy gordon
Confine to a certain directory: yes since that is a context. i noticed the connection url you are using is different than mine. Mine is from the 5.5. doc and includes the password and user name in it.I am presuming the database with your users and users_roles tables is named ERP. I am also pr

j_security_check returns 400 response with valid login

2005-10-21 Thread Chris Birch
Hi, I'm currently experiencing an error that only occurs with IE6 (sp1 and sp2) on Windows (tested on Win98 and WinXP). When trying to access a tomcat resource protected by security contstraints, the login form is correctly displayed, however, when using Internet Explorer a correct username

Log Readers?

2005-10-21 Thread Greg Hamer
I am looking to step up from using my text editor for reading Tomcat logs. Are any among you using a program that they would recommend? (I am on Windows.) Thanks. g

RE: Server Access Log and Request Information

2005-10-21 Thread John Laughton
Or if you are using commons logging <%@ page import="org.apache.commons.logging.Log" %> <%@ page import="org.apache.commons.logging.LogFactory" %> . <% Log log = LogFactory.getLog(yourJsp1Name.class); log.info("this message was writed from yourJsp1Name.jsp"); %> This way you will have all

RE: Tomcat webapps problem.

2005-10-21 Thread Mauricio Fernandez A.
... > But as those jar files are specific to this application, so they should not be placed in shared/lib folder. ... Do you have any good reason to place the jar files in other location than $CATALINA_HOME/webapps//WEB-INF/lib? You are saying that jar files are specific to the application so I w

Re: ~ mod_jk Random Errors

2005-10-21 Thread jack rodriguez
OKey, I updated my configs and now I still have the same problem. The only other thing I can think of is trying to compile mod_jk on the Apache machine directly. Workers.properties worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=eofapps.usitc.gov worker.ajp13.type=ajp13 worker.ajp13.co

RE: Server Access Log and Request Information

2005-10-21 Thread Mauricio Fernandez A.
TK, If i understand what you want, you can do something like this. you can define a logger for each page (I think you have jsp`s), that causes that every record on the log file has its logger name on the log file. example: (if you are using log4j) your jsp´s must be like this: (yourJspName = yo

RE: session problem

2005-10-21 Thread Mauricio Fernandez A.
No, I never had that problem, it was just an idea, I was reviewing my app and that is the way I have my servlets a jsp`s Mauricio Fernández A. Ingeniero de Sistemas U. Autónoma de Manizales -Mensaje original- De: David Won [mailto:[EMAIL PROTECTED] Enviado el: viernes, 21 octubre, 2005 19

Re: JAVA_OPTS settings

2005-10-21 Thread David Tonhofer, m-plify S.A.
If you are using the Sun JVM, the first page that comes to mind is and more generally . But it looks like a lot of patience and testing/simulation will be needed to get good results. --On Frid

JNDIRealm Configuration

2005-10-21 Thread PHIL CAVAZOS
I need advice on configuring a JNDIRealm to authenticate with Novell eDirectory. I've attempted to create a JNDIRealm using Tomcat's Administrative GUI. When I click to save, I get a save error. The log file indicates the following... Oct 21, 2005 12:59:13 PM org.apache.catalina.realm.RealmBase st

RE: ActiveX question

2005-10-21 Thread Richard Mixon
Satyavrat, I believe that is a browser issue, not a server issue. Microsoft Internet Explorer and a limited number of other browsers support ActiveX plugins. However many other popular browsers do not support ActiveX. - Richard -Original Message- From: Satyavrat A. Prabhune [mailto:[EM

Re: ~ mod_jk Random Errors

2005-10-21 Thread Rainer Jung
>> Which version of mod_jk are you using? > > 1.2.14 Current Version OK > What is errno 113 on your platform? > > Linux Error :113 No route to host Since that error number was shown in the log line, I assume that a system call returned this error. Is it possible, that your network is unstable?

default work directory?

2005-10-21 Thread John Rodriguez
I want to step through my web application through an Eclipse debugger. My web app is made up of servlets and jsps. Right now, the jsps are compiled into servlets and put into a directory OUTSIDE the web app file hierarchy. I wish to reconfigure Tomcat so that jsp are compiled and put INSIDE t

Re: Tomcat 5.5.12 - Why does app undeploy when war file deleted

2005-10-21 Thread Wendy Smoak
From: "Jay Thompson" <[EMAIL PROTECTED]> Yes, but if I understand how this works, if I set unpackWARs to "false", then the war files would never deploy (even on startup). Probably not with autoDeploy set to false. :) Have you considered using the Manager app to deploy and undeploy your apps?

Re: Tomcat 5.5.12 - Why does app undeploy when war file deleted

2005-10-21 Thread Jay Thompson
At 12:58 PM 10/21/2005, you wrote: From: "Jay Thompson" <[EMAIL PROTECTED]> So, to stop the behavior, I needed to change the host lines that read:... unpackWARs="true" autoDeploy="true" to read... unpackWARs="true" autoDeploy="false" deployOnStartup="true" You could set unpackWARs="false"

Re: Tomcat 5.5.12 - Why does app undeploy when war file deleted

2005-10-21 Thread Wendy Smoak
From: "Jay Thompson" <[EMAIL PROTECTED]> So, to stop the behavior, I needed to change the host lines that read:... unpackWARs="true" autoDeploy="true" to read... unpackWARs="true" autoDeploy="false" deployOnStartup="true" You could set unpackWARs="false" and then you wouldn't have to bother

Re: Configuring Tomcat for Multiple versions

2005-10-21 Thread Hassan Schroeder
Bliesner, Christopher P wrote: > Is it as simple as just changing the various ports? Yep. As Markus pointed out, though, don't forget: > - the shutdown port () I find it easier on a day-to-day basis having different IPs associated with different Host names, but that's strictly personal prefere

RE: Tomcat4 webapps problem.

2005-10-21 Thread Saha Rabindra N
I am putting some business logic implementation jar files in webapps's lib folder. Surprisingly if I put the jar file there and restart tomcat, it stops recognizing the webapp. Then, if I take the jar files back and put that in shared/lib folder and restart and then everything works ok. My JDBC

RE: Configuring Tomcat for Multiple versions

2005-10-21 Thread Bliesner, Christopher P
This did work...thanks everyone! Chris Bliesner El Paso Boeing Oracle DBA 915-834-1757 -Original Message- From: Markus Schönhaber [mailto:[EMAIL PROTECTED] Sent: Friday, October 21, 2005 1:32 PM To: Tomcat Users List Subject: Re: Configuring Tomcat for Multiple versions Am Freitag, 21

RE: Tomcat4 webapps problem.

2005-10-21 Thread George Sexton
Its probably JDBC drivers and you're using JNDI. JNDI and related JDBC drivers can't reside in the application class loader. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -Original Message- > From: Saha Rabindra N [mailto:[EMAIL PROTECTED] > Sent: Fr

Tomcat4 webapps problem.

2005-10-21 Thread Saha Rabindra N
Hi, > This question is regarding Tomcat web server on Unix. > > I am using Tomcat4.1.18 on HP-UX to run some jsp pages. > > Those jsp pages use some jar files which should be placed in > '$CATALINA_HOME/webapps//WEB-INF/lib' folder. > > But when I place those jar files in webapps lib folder, th

RE: Configuring Tomcat for Multiple versions

2005-10-21 Thread Bliesner, Christopher P
Is it as simple as just changing the various ports? -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Friday, October 21, 2005 1:35 PM To: Tomcat Users List Cc: tomcat-user@jakarta.apache.org Subject: Re: Configuring Tomcat for Multiple versions Bliesner, Christ

Re: Tomcat 5.5.12 - Why does app undeploy when war file deleted

2005-10-21 Thread Jay Thompson
OK...I've answered my own question...but just in case someone else needs the answer... "...the Tomcat 4 attribute named liveDeploy has been renamed autoDeploy in Tomcat 5, and the Tomcat 4 attribute named autoDeploy has been renamed deployOnStartup in Tomcat 5. (from www.onjava.com). So,

Re: Configuring Tomcat for Multiple versions

2005-10-21 Thread Hassan Schroeder
Bliesner, Christopher P wrote: > I am trying to setup multiple versions of Tomcat on the same server. > What changes do I need to perform to the server.xml file to make this > happen? Different port and/or IP on the Connector elements should do it. If you're using different IPs, of course, that

Re: Configuring Tomcat for Multiple versions

2005-10-21 Thread Markus Schönhaber
Am Freitag, 21. Oktober 2005 21:25 schrieb Bliesner, Christopher P: > Hello, > > I am trying to setup multiple versions of Tomcat on the same server. > The Server already uses Tomcat 3 and I'm trying to setup Tomcat 4 on the > same server. > > What changes do I need to perform to the server.xml fil

Tomcat webapps problem.

2005-10-21 Thread Saha Rabindra N
> This question is regarding Tomcat web server on Unix. > > I am using Tomcat4.1.18 on HP-UX to run some jsp pages. > > Those jsp pages use some jar files which should be placed in > '$CATALINA_HOME/webapps//WEB-INF/lib' folder. > > But when I place those jar files in webapps lib folder, the to

Re: Configuring Tomcat for Multiple versions

2005-10-21 Thread Bliesner, Christopher P
Hello, I am trying to setup multiple versions of Tomcat on the same server. The Server already uses Tomcat 3 and I'm trying to setup Tomcat 4 on the same server. What changes do I need to perform to the server.xml file to make this happen? Thanks! Chris Bliesner El Paso Oracle DBA 915-834-1757

Re: hacking the tomcat DefaultServlet

2005-10-21 Thread Maurice Yarrow
Hello Tomcat users I am attempting to use a Filter to first modify a portion of the incoming URL (request.getServletPath()) and next, to send this filtered request on to the tomcat DefaultServlet. The filter is indeed called and I am able to complete the first goal of modifying the incoming URL.

Server Access Log and Request Information

2005-10-21 Thread TK
Hi, I am looking for ways to associate each object recorded in the log file with the corresponding page requested. Say, for example, Page A contains objects p, q, r, s Page B contains onjects x, y, z Requests for pages A & B, and objects p, q, r, s, x, y & z will be recorded in log file. How cou

Re: ~ mod_jk Random Errors

2005-10-21 Thread jack rodriguez
> Which version of mod_jk are you using? 1.2.14 Current Version What is errno 113 on your platform? Linux Error :113 No route to host Each tcp connection from apache to tomcat blocks a thread inside tomcats > jk connector thread pool, that exclusively services requests coming over > that conn

Should a missing jsp:include target cause TC to throw an exception or HTTP error code?

2005-10-21 Thread Steve Kirk
TC 5.5.9 WinXP SP2 JDK 1.5.0_02-b09 My webapp framework is based around my own Invoker servlet, which response to every request via a generic JSP build page. This build page itself includes other files, as shown in this snippet: " /> " /> Each request to the webapp is

Re: session problem

2005-10-21 Thread David Won
Hi Tim, My project suddenly works today, I am really confused about this problem. As for your solution, I always use the same PC's browser to access the problem-PC's project, so I guess this has nothing to do with the browser in that PC, right? Thank you very much. David Tim Funk <[EMAIL

Re: ActiveX question

2005-10-21 Thread Frank W. Zammetti
Embeding an ActiveX control in a page is independent of the server you are running on, that's why you found no results. The only thing I can think of is you might need a MIME type mapping on the server so that when the browser tries to retrieve the control it is sent back properly. I'm not sure a

RE: session problem

2005-10-21 Thread David Won
Hi Mauricio, It is really weired that after 2 weeks failuer, this morning it works! I did not change a single code but it works now. Also I did not change any system configuration related with network and any other enviorenment. Yesterday the session did not work, now because it works I even c

JAVA_OPTS settings

2005-10-21 Thread Ritchie Gillam
I am wondering what JAVA_OPTS I can set to make my application run more efficiently. Right now the application is slow and if I can set the proper JVM parameters I am thinking the application might run faster? Do anyone know which options I can try to set to help my performance? -Xmx512m? -s

ActiveX question

2005-10-21 Thread Satyavrat A. Prabhune
Hi, Does any Apache product support embedding ActiveX into HTML? I searched for "activex" on apache site and it returned me zero results! Thanks, Satyavrat. - Yahoo! FareChase - Search multiple travel sites in one click.

classpath in tomcat

2005-10-21 Thread Raviteja Veerla
Hi all, I am having an interesting problem. I have an java api that looks for some config files in a folder which is in the system classpath. to serve this purpose, i have added the path of this folder to the line. set CLASSPATH=%JAVA_HOME%\lib\tools.jar;C:\TestCases\Conf in setclasspath.bat in wi

Re: SSL and Tomcat - can't secure individula pages

2005-10-21 Thread Hassan Schroeder
Greg Brownell wrote: > My whole site, all pages, are redirected to port 443 - everything is > secure. I only wanted the *.htm and the single file login.jsp to use > https. > What am I doing wrong? I thought the in > was there to identify which pages should be secure? which pages *must* be sec

RE: mod_jk & tomcat

2005-10-21 Thread Rainer Jung
A list of options with default values for version 1.2.14 is given in http://marc.theaimsgroup.com/?l=tomcat-user&m=112535749710073&w=2 You should check documentation about the meaning of the params. The one you are looking for is the attribute recover_time for the load balancer worker. Unfortunat

Re: ~ mod_jk Random Errors

2005-10-21 Thread Rainer Jung
Which version of mod_jk are you using? What is errno 113 on your platform? Each tcp connection from apache to tomcat blocks a thread inside tomcats jk connector thread pool, that exclusively services requests coming over that connection. So what are your MPM settings inside apache httpd.conf, you

RE: mapping multiple paths to one context

2005-10-21 Thread Caldarale, Charles R
> From: Chandrasekar Krishnan [mailto:[EMAIL PROTECTED] > Subject: mapping multiple paths to one context > > The trouble is I can't specify the path attribute in the two options > described above. The path is derived from the name of the .xml file in conf/Catalina/localhost, so you should be abl

Tomcat 5.5.12 - Why does app undeploy when war file deleted

2005-10-21 Thread Jay Thompson
I have been running Tomcat 4.x for about a year. When I wish to deploy a war file, I... - Copy the war file to it where it belongs (keeping original war file on another storage server) - Restart Tomcat - Wait for successful deployment - Delete war file (to save disk space on tomcat server)

Re: Unable to open Tomcat Manager?

2005-10-21 Thread 梁炳場
I have server.xml, no resource-env-ref nor manager.xml My context.xml is within meta-inf directory. The problem still persists. Can I confine the prompt of username and password of JDBCRealm to certain directory only? such as http://localhost:8080/welcome.jsp, does not prompt http://localhost:808

RE: mod_jk & tomcat

2005-10-21 Thread MC Moisei
I've seem that too after new redeploys. Constantin http://www.goodstockimages.com From: Andrew Marcum <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" To: users@tomcat.apache.org Subject: mod_jk & tomcat Date: Thu, 20 Oct 2005 13:58:11 -0700 (PDT) We are running mod_jk-1.2.13 and apache-

RE: Unable to open Tomcat Manager?

2005-10-21 Thread Caldarale, Charles R
> From: Paul Singleton [mailto:[EMAIL PROTECTED] > Subject: Re: Unable to open Tomcat Manager? > > Does anyone else find that 5.5.9 rewrites it with these > permissions under Linux? > -rw-rw-r-- 1 tomcat tomcat 439 Oct 2 20:01 tomcat-users.xml Hadn't noticed that before, but it does the same

~ mod_jk Random Errors

2005-10-21 Thread jack rodriguez
I have installed Apache 2.0.52 on a seperate machine along with mod_jk connector 1.2.14 to connect to another machine running Tomcat 5.5.9. I have had some success on getting mod_jk to work but during times of load mod_jk errors saying it does not have a connection to the tomcat server. After mod_j

SSL and Tomcat - can't secure individula pages

2005-10-21 Thread Greg Brownell
All, My whole site, all pages, are redirected to port 443 - everything is secure. I only wanted the *.htm and the single file login.jsp to use https. I have set up tomcat 5.5.9 with SSL as follows: server.xml: and web.xml: secure pages *.htm

RE: Tomcat shortcut to webapps on Windows

2005-10-21 Thread Faine, Mark
There is an admin.xml, balancer.xml and manager.xml, admin and manager do not apply as they will be located in server/webapps and balancer.xml has only a single line that doesn't look to me that it should preclude it from running from a shortcut. (doesn't matter I don't need it anyway). The thing

Re: Unable to open Tomcat Manager?

2005-10-21 Thread Paul Singleton
Caldarale, Charles R wrote: ... Note that you cannot manually edit tomcat-users.xml while Tomcat is running, since Tomcat rewrites it at some point (probably at termination, but I haven't verified that). Does anyone else find that 5.5.9 rewrites it with these permissions under Linux? -rw-rw-

Re: Unable to open Tomcat Manager?

2005-10-21 Thread andy gordon
Just a couple of other thoughts... I presume you are using tomcat 5.5x THere is a default resource definition under global naming resources for an in memory database that points to conf/tomcat-users.xml. Without having testing myself, if it still exists in you server.xml file i am wondering

remote deployments

2005-10-21 Thread Nehal Sangoi
Hi, How can i configure manager deployer in tomcat 5.5.9 (os - solaris10) to conduct deployment on remote tomcat host? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Antwort: Re: JAASRealm, Tomcat 5.5 getting HTTP error page 403 Access denied

2005-10-21 Thread Brad O'Hearne
Carsten, This is a confirmed bug -- I've just spent a couple days wrestling with it myself. It is a logged bug and fixed on the trunk. http://issues.apache.org/bugzilla/show_bug.cgi?id=37044 Brad Carsten Schiller wrote: Jukka Uusisalo <[EMAIL PROTECTED]> wrote on 20.10.2005 17:37:31:

Re: Tomcat shortcut to webapps on Windows

2005-10-21 Thread Viorel Dragomir
See the context.xml deployed into conf/Catalina/localhost folder or see any file located there. Viorel Dragomir . .. --- - Original Message - From: "Faine, Mark" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Frid

Tomcat shortcut to webapps on Windows

2005-10-21 Thread Faine, Mark
Tomcat 5.0.28 and 5.0.30 on Windows XP will not allow a shortcut for webapps instead of an actual directory. Is there any way around this? -Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [OT] Problems with web.xml generated from RAD and from Ecplise.

2005-10-21 Thread David Kerber
Frank W. Zammetti wrote: ... No, my IDE of choice is UltraEdit, and you'll have to pry it out of my cold, dead hands before I give it up :) Ditto! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

mapping multiple paths to one context

2005-10-21 Thread Chandrasekar Krishnan
Hi all, I have a web application under webapps (say app1) and have multiple paths mapped to it (/path1 and /path2) through the two Context elements. I'm upgrading to Tomcat 5.5 and read the documentation that says: "Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended to place

Re: HHTP 302 redirect issue with Tomcat 5.0.28

2005-10-21 Thread Tim Funk
Check bugzilla. This was reported but I can't remember if the report was resolved as FIXED or INVALID. Keywords to use include mapper -Tim Bray, Ian wrote: Hi, I have a problem with Tomcat 5.0.28 (after upgrading from 4.1.29) responding to a HTTP POST request with a 302 redirect. Requests t

Re: session problem

2005-10-21 Thread Tim Funk
Cookies might be blocked on the other pc's browser -Tim David Won wrote: I developed a very simple project, there is a jsp page and a servlet. In servlet: session.setAttribute("my","abc"); In jsp: String mystring = (String) session.getAttribute("my"); This project works perfect in one of m

HHTP 302 redirect issue with Tomcat 5.0.28

2005-10-21 Thread Bray, Ian
Hi, I have a problem with Tomcat 5.0.28 (after upgrading from 4.1.29) responding to a HTTP POST request with a 302 redirect. Requests to a specified URL (eg. /localhost/eaifclient) are being rejected with a 302 response indicating a redirect to the same URL but with "/" appended (eg./localhost/e

RE: session problem

2005-10-21 Thread Mauricio Fernandez A.
David, try this: In Servlet: request.getSession().setAttribute("my","abc"); In jsp: String myString = (String)request.getSession().getAttribute("my"); Mauricio Fernández A. Ingeniero de Sistemas U. Autónoma de Manizales -Mensaje original- De: David Won [mailto:[EMAIL PROTECTED] E

RE: where is "catalina.out" defined and enabled?

2005-10-21 Thread Mauricio Fernandez A.
It was an error, so in windows you don´t have catalina.out, there you have catalina_log.txt as in the server.xml specification. The other log file localhost_log.txt is intended to the localhost virtual server, that is, if you have several virtual servers, each one can has its own log file. Mauric

Re: Windows, Runtime.exec() problems [solved]

2005-10-21 Thread Christoph P. Kukulies
On Fri, Oct 21, 2005 at 08:39:16AM +0200, David Teran wrote: > Well, it was not tomcat, the problem was starting tomcat as windows > service, then the process invoked by exec cannot use OLE Automation. This reminds me of the situation when I wrote a service that was supposed to interact with the

Re: context.xml file and war

2005-10-21 Thread Lionel Farbos
Some times ago, I wrote a HowTo deploy on Tomcat 5.5 (with an example) and I put it here : http://issues.apache.org/bugzilla/show_bug.cgi?id=35063 This doc is for Tomcat 5.5 but, perhaps, you'll find your answer for Tomcat 4 ... On Thu, 20 Oct 2005 21:48:13 +0200 Alexander Eller <[EMAIL PROTECT

Antwort: Re: JAASRealm, Tomcat 5.5 getting HTTP error page 403 Access denied

2005-10-21 Thread Carsten Schiller
Jukka Uusisalo <[EMAIL PROTECTED]> wrote on 20.10.2005 17:37:31: > Carsten Schiller wrote: > > Hello! > > > > We are trying to implement a login/security environment using Tomcat 5.5's > > JAASRealm and Struts as a MVC-Framework. > > After Login ,which fails with error "HTTP Status 403 - Acces