Yet Another Clustering Problem

2006-06-19 Thread Pid
tual host are identical, as I've tarred, gzipped & ftp'd them over from one to the other. Any help would be appreciated. Pid *I'm forcing Apache to select each Tomcat by commenting out the others in the balancer config.

Re: Yet Another Clustering Problem

2006-06-20 Thread Pid
Shades of embarrassment. Our server clocks weren't sync'd. It all works, just like it says it ought to. Which was nice. Pid wrote: > > We're running the following: > > Apache2.2 + Tomcat5.5.17 > mod_proxy, mod_proxy_ajp, mod_proxy_balancer > on 2 l

Re: pdf documents

2006-06-21 Thread Pid
Don't you need to put the context file pdf.xml in a different place? $CATALINA_HOME/conf///pdf.xml Once it's there you have to call the correct URL, which will be /pdf/.pdf Bob Wyatt wrote: > Mark, > > I appreciate all of your help and energy on my behalf... > > But alas, this does not wor

Re: pdf documents

2006-06-21 Thread Pid
Sorry if I came to this late, but what does your webapp do and why is it looking there, and not at /pdf/C666119.pdf? Is it just a link that you're clicking or does your webapp download/open the PDF file? Bob Wyatt wrote: > Pid, > > Thank you very much for this response..

Re: pdf documents

2006-06-21 Thread Pid
Bob Wyatt wrote: > Pid, > > I mean that it appears as though the webapp is looking in its own path for > the pdf, and not the path of pdf files defined for Tomcat... Yes, see below. > The webapp true path would be: > $CATALINA_HOME/webapps/myapp/jsp/app/C666119.pdf... O

Re: how do I set up a default context for a virtual host

2006-06-21 Thread Pid
Read the docs: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html Context path attribute: "The value of this field must not be set except when statically defining a Context in server.xml, as it will be infered from the filenames used for either the .xml context file or the docBase."

Re: what happens with the content.xml file

2006-06-21 Thread Pid
Read the docs: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html Context path attribute: "The value of this field must not be set except when statically defining a Context in server.xml, as it will be *infered from the filenames* used for either the .xml context file or the docBase."

Re: pdf documents

2006-06-21 Thread Pid
Bob Wyatt wrote: > Pid, > > HREF="C666119.pdf" OK. The above is a relative path. The client browser (not the webapp) is looking in the wrong place, because you aren't telling it the correct path. You really need to try to get your head round the difference between rel

Re: how do I set up a default context for a virtual host

2006-06-21 Thread Pid
using just with no success > > Pid wrote: >> Read the docs: >> >> http://tomcat.apache.org/tomcat-5.5-doc/config/context.html >> >> Context path attribute: "The value of this field must not be set except >> when statically defining a Context in

Tomcat session replication/cluster

2006-06-21 Thread Pid
I'm seeing an issue on 5.5.17 with a 2 node cluster config. When a context is reloaded, it sends the context node name incorrectly to the cluster. E.g. context is called "website1" SEVERE: Context manager doesn't exist:website1website1 The config I'm using is exactly the same as the default from

Re: Tomcat session replication/cluster

2006-06-22 Thread Pid
reloading: Node1 sees Node2 send "website2" Node2 sees Node1 send "website1website1" I think that the context name is being appended to itself. > Pid wrote: >> I'm seeing an issue on 5.5.17 with a 2 node cluster config. >> When a context is reload

Re: Tomcat session replication/cluster

2006-06-22 Thread Pid
t)context).getParent(); > if(host != null && host instanceof Host) > clusterName = host.getName() + name ; > } > } > return clusterName; > } > > > You see we append "hostname + context" as cluster engine cont

Re: pdf documents

2006-06-22 Thread Pid
Bob Wyatt wrote: > Pid, > > Your question sent me hunting, and we were specifying no path at all, so it > was a relative reference. I have changed it to an absolute reference, and it > is now working. Great. > Can I have multiple docBase assignments in the pdf.xml file for m

Re: SEVERE: Context [/myApp] startup failed due to previous errors

2006-06-22 Thread Pid
configure a logger for that Context and set swallowOutput="true" in the context below. the log output for the Context will have more info about why it's failing. Deepak Gupta wrote: > I'm using Tomcat 5.5.17. > > I've trawled the web for this error, but haven't found a solution so far. > > I b

Re: Tomcat session replication/cluster

2006-06-22 Thread Pid
rying over it's previous value, and appending again, rather than resetting. I'm not familiar enough with the code to see where it's occuring though. Pid wrote: > OK, > > I'm probably being dense here. > > (There's only 1 context in each host, the ROOT context

Re: How does Tomcat detect whether a browser accepts cookies

2006-06-22 Thread Pid
You could use the session id location as an indicator, assuming there's a session already. if (hreq.isRequestedSessionIdFromCookie()) { // we're good, do whatever } else { // no cookies, begone! } if your initial point of contact does a single instant redirect to the detector,

Re: Running code on Tomcat startup

2006-06-22 Thread Pid
lookup ServletContextListener Andrew Braae wrote: > I've handled this by using a servlet filter that intercepts all requests > (something like this in your web.xml file)... > > > Do Startup Filter > /* > > > Then inside the do.. method you can set up your object and attach to either

Re: what happens with the content.xml file

2006-06-23 Thread Pid
ry symlinks/url mapping to get /probe/ to map to /probe_ver_num/. The context path attribute behaves in a pretty restrictive way. I'm not sure what the thinking behind it is/was - maybe someone more knowledgable can help. tom ot wrote: > Hi pid, > thanks for your answer. I have anot

Re: Tomcat session replication/cluster

2006-06-23 Thread Pid
How are you defining the cluster in your server.xml? I did this recently, and had a bunch of small problems. E.g. my server clocks weren't sync'd. I found that enabling just the SimpleTcpCluster element (without all the rest) helped me get up and running. Sean O'Reilly wrote: > On Fri, 23 Jun 2

Re: Tomcat session replication/cluster (mod_proxy_ajp)

2006-06-23 Thread Pid
Sean O'Reilly wrote: > On Fri, 23 Jun 2006 09:05:18 -0500 > Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: > I am sure it would be easier to use mod_proxy_balancer and > mod_proxy_ajp but can't find any documentation anywhere. My servers didn't have their clocks synchronised, check that. Als

Re: log4j warning: Please initialize the log4j system properly

2006-06-24 Thread Pid
JS Portal Support wrote: > Hi, > > Just upgraded to Tomcat 5.5. In order to see what's happening at the context > level I need to see the internal logging of Tomcat. Isn't this a different problem to the one below? (Assuming you can get your logging working:) Will direct all your context lo

Ajp error message, NPE

2006-06-24 Thread Pid
I'm getting a fair number of these in my catalina.out. If it's nothing to worry about then fine, but I'm assuming a SEVERE message ought to have a reason/solution. Is this something for you devs? (Server config on request.) Jun 24, 2006 11:24:08 AM org.apache.coyote.ajp.AjpMessage appendString

Re: JSPs forcing session ID to be created?

2006-06-25 Thread Pid
I think Tomcat creates a session, unless you tell it otherwise. http://wiki.jboss.org/wiki/Wiki.jsp?page=DisableSessionPersistence I repeat the popular refrain "Google is your friend." Michael Rimov wrote: > Environment: Tomcat 5.5.17 using http connector, Servlet API 2.4. > > Hi All, >

Re: Tomcat session replication/cluster (mod_proxy_ajp)

2006-06-26 Thread Pid
y wrote: > On Fri, 23 Jun 2006 16:43:16 +0100 > Pid <[EMAIL PROTECTED]> wrote: > >> >> Sean O'Reilly wrote: >>> On Fri, 23 Jun 2006 09:05:18 -0500 >>> Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: >>> I am sure it would be easier

Re: Tomcat session replication/cluster (mod_proxy_ajp)

2006-06-26 Thread Pid
Sean O'Reilly wrote: > Still having some problems with load balancing and state replication > neither of which appear to be working. If i shutdown tomcat on the > main server i can still get to the application directory from one of > the other servers but get a 503 error if i try to run any of

Re: Tomcat session replication/cluster (mod_proxy_ajp)

2006-06-26 Thread Pid
could well be. depends on your setup... > > WARNING: Unable to asynchronously send session with > id=[88798A041EC3F104045E5C22B47ADE77.jvm1-1151322148155] - message will > be ignored. java.net.Connect

Re: many No Referrers in logs

2006-06-26 Thread Pid
Jon Wingfield wrote: > Additionally, many client-side Security/Anti-Virus software packages > automatically remove the referer header from requests. Because it improves security. Apparently. > Markus Schönhaber wrote: >> Robert Kudyba wrote: >>> We have our server.xml file set w/ the following

Re: Need help deciphering eclipse console

2006-06-26 Thread Pid
probably not the right mailing list for that. try: http://www.eclipse.org/community/ [EMAIL PROTECTED] wrote: > What does this mean in my console? > > SeverityDescription ResourceIn Folder LocationCreation Time > Id > 1 The local variable name is never read LoginAction.ja

Re: sort an array

2006-06-27 Thread Pid
You put the compareTo object on the object to be compared. You could also try: java.utils.Arrays.sort(Object[] array, Comparator comp) There are plenty of tutorials to be found via Google on the use of both this and Collections.sort(). password password wrote: > Please, can you put an example?

Re: Apache2 (virtual hosts) + Tomcat5 (one host multiple contexts) + mod_jk +mod_ext_filter (sed)

2006-06-27 Thread Pid
HOOGHE Gilles wrote: > Hi, > I have several small websites/virtual hosts in Apache. > For each virtual host I want to map the root folder "/" to its own webapp in > Tomcat using mod_jk. > The Tomcat documentation describe this using virtual host on both sides > Apache and > Tomcat, this is a set

Re: Problem referencing webapp with different context name

2006-06-27 Thread Pid
[EMAIL PROTECTED] wrote: > Hi, > > We install a webapp under tomcat\webapps\mywebapp by exploding the > appropriately named war file. > > However, we need users to be able to reference it by typing in > http://myserver/differentName. > > I tried adding a mywebapp.xml file under C:\jakarta-tomc

Re: Graphics Display

2006-06-27 Thread Pid
CATALINA_OPTS=" -Djava.awt.headless=true" ^ ^ If that doesn't work, set it as a JVM option. I set it in my /etc/profile on Linux, don't know if AIX is the same. JAVA_OPTS="-server -verbosegc -Djava.awt.headless=true" Bob Wyatt wrote: > I have Tomcat 5.0.28 on AIX 5.2.

Re: Logfile flooded with mod_jk2-notice messages...filesystem full

2006-06-28 Thread Pid
debug is a bit high, try using error. Oliver Schoenwald wrote: > Good morning, > > Wer are running the following configuration: > Apache 2.0.58 with mod_jk2 > Tomcat 5.5.7 > > This morning we had to stop our system and remove a 1.5 > GigaByte-Errorlogfile of > our apache installation because our

Re: Programmatic Security

2006-06-28 Thread Pid
It really depends on what you're trying to achieve, maybe you could elaborate? Do you need to restrict access to filesystem resources, servlets, jsps, images, DB content, or something else? Martin Gainty wrote: > Good Evening All- > > The best way is to put up a Jsp / servlet which itself has

Re: 'Black' Icons and Intermittent Page not Found

2006-06-28 Thread Pid
configure an access logging valve for your application also configure application logging for the app. the docs are pretty clear on how to do this. is tomcat serving the images? David Delbecq wrote: > Hi bob > > There are several ways to try to find where this comes from > > 0) Check in the t

Re: Tomcat 5.5 JNDI Question Using Admin

2006-06-28 Thread Pid
You need a ResourceLink in the Host or Context, to make the global resource available. Does the Context xml file contain this? Scott Purcell wrote: > Hello, > > > > I am receiving errors when configuring a JNDI resource for my database > using Tomcat 5.5 on a Windoz box. I used the admin in

Re: JspCompilationContext.createCompiler(JspCompilationContext.java:234)

2006-06-28 Thread Pid
It sounds like the Tomcat installation isn't able to locate some of it's classes. the error logs might give you more information, look at those. ie Tomcat isn't installed/embedded properly. Lucilene Souza wrote: > Anybody, can help me? > Why can it instantiate the classes in the JSPCompilationC

Re: Tomcat 5.5 JNDI Question Using Admin

2006-06-28 Thread Pid
You can also configure DBCP to do some connection pooling, without much effort. I'd recommend avoiding the root user for your DB connection. The error message you saw is a poor one, but common. In your global resources: A DataSource in your A Realm in your or Pid

Re: Cannot use Tomcat

2006-06-28 Thread Pid
Before all that, the poster might like to tell us where they installed it, and anything else about the installation/config... David Smith wrote: > Yup. Gotta love Windows. You might also want to check with the domain > admins to be sure some group policy hasn't been set that would > interfere.

Re: filter increase number of session

2006-06-29 Thread Pid
If you getSession() Tomcat looks for a session, and creates a new one if it can't find one. It looks for a cookie called JSESSIONID or a url variable ;jsessionid=. If your voice app client can't handle cookies, and you have not URL encoded each URL in the app, then a new session will be created e

Re: tomcat startup problem

2006-06-30 Thread Pid
post your server.xml IMRANKHAN wrote: > Hi Steve, > I run the command netstat -an. It is showing that port 9099 is not > listening. > Plz provide your valuable feedback > > Thanks, > Imran KHan - To start a new topic, e-mail:

Re: The Jakarta NT Service - The service stops immediately

2006-06-30 Thread Pid
Did you say Tomcat 3.3.1? McDaniel, Brad wrote: > Hello all - I am using Callidus TrueComp Viewer 3.2, which comes bundled > with Jakarta Tomcat 3.3.1. I have followed all the documentation (to > the best of knowledge) to get Jakarta set up. It is working fine when I > run startup.bat. This is

Re: problem with doPost method - executed twice

2006-07-01 Thread Pid
'course, if you're not getting any mail from the list, you won't see these answers... if you look up the list on the web you might read this and see my "check your spam filter" hint. p Michael Jouravlev wrote: > If you submit the form from form.onsubmit, return false to tell > browser that the fo

Re: Critical bug in RequestDispatcher.include(..) in Tomcat 5.5.16 ?

2006-07-01 Thread Pid
I didn't see him mention "forward", you do understand what he's saying right? j.random.programmer wrote: > You do understand that we are talking about an > include, not a > forward right ? > > --- Garth Patil <[EMAIL PROTECTED]> wrote: > >> Try using the same code in a servlet, and you won't

Re: log4j in webapp hanging Tomcat?

2006-07-02 Thread Pid
Dumb question perhaps, but has your disk got enough space? Avi Deitcher wrote: > Boris, > > Thank you, I should get to trying it this evening EDT. > > One other thing I will try it enabling logging in core Tomcat from JDK > logging as opposed to log4j, to see if I can get Tomcat to tell me where

Re: Tomcat under JBoss

2006-07-05 Thread Pid
error logs? config files? define "does not work" with some more precision and we might be able to help... Richard Doust wrote: > I need help getting Tomcat to process JSTL tags when an ear is deployed > to JBoss 4.0.4 with Tomcat 5.5.17. > The same application that works with JBoss 4.0.1 and Je

Re: cluster manual

2006-07-05 Thread Pid
i posted a bunch of stuff to this list a week or two ago, search for "cluster" or something similar to find it. pid Hassan Schroeder wrote: > On 7/5/06, MW Janssen <[EMAIL PROTECTED]> wrote: > >> Can you send how you did it? I mean what is your server.xml settings

Re: Serving CSS files from a certain URL

2006-07-05 Thread Pid
Where do your logs say that it is looking for the CSS files? There must be a record somewhere of the hit for each file, maybe that can tell you what's wrong. Post the log entries? Alec Swan wrote: > Web designers don't run web servers or servlet containers on their machines. > (I call their env

Re: Tomcat under JBoss

2006-07-05 Thread Pid
ers from Jetty's. > > On Jul 5, 2006, at 10:38 AM, Pid wrote: > >> error logs? >> config files? >> >> define "does not work" with some more precision and we might be able to >> help... >> >> >> >> Richard Doust wrote: &g

Re: Tomcat under JBoss

2006-07-05 Thread Pid
Can you execute an arbitrary JSP scriptlet in the page, or does that get ignored too? Pid wrote: > And the taglibs are definitely being imported on the page in question? > > Richard Doust wrote: >> Config files are straight out of the box as Tomcat is deployed under >>

Re: Getting the date/time from the client

2006-07-11 Thread Pid
write a filter that activates for that url, and get the time just before you doFilter. if you need to, you can pass the date obj as an attribute Date date = new Date(); hreq.setAttribute("thisIsTheDate", date); chain.doFilter(hreq, hres); Jon Wingfield wrote: > The HTTP spec (rfc2616) says clie

Re: Getting the date/time from the client

2006-07-11 Thread Pid
you can get a Locale from the request, and adjust the time accordingly. Vinu Varghese wrote: > but that still sets the server date - yes ? > > Pid wrote: >> write a filter that activates for that url, and get the time just before >> you doFilter. if you need to, you can pa

Re: forwarding to a remote host

2006-07-11 Thread Pid
not unless you've got clustering setup and the cluster is correctly sharing session data. the session data is otherwise local to the server in use. Vinu Varghese wrote: > Avi, > What will happen with the session and objects bound to it ?, Will they > be accessible in the second server ? > > - Re

Re: File isn't found in ROOT directory

2006-07-11 Thread Pid
what version of tomcat? what have you got defined in the s in your server.xml? McRaven, Brian wrote: > I have placed an index.jsp file that I created in my servers > webapps/ROOT folder. When I place the following address in my browser: > > http://localhost/index.jsp > > I still come up with

Re: Getting the date/time from the client

2006-07-11 Thread Pid
ers List >> Subject: Re: Getting the date/time from the client >> >> Thanks Pid, >> >> I think that is a good idea >> Let me try >> >> - Regards >> Vinu >> >> Pid wrote: >>> you can get a Locale from the request, and adjust the

Re: Accessing a servlet

2006-07-12 Thread Pid
TheServletName package.ThisIsTheClassName TheServletName /a/path/to/theservlet "servlet-name" is used to link the definition to the mapping. defs are grouped together in web.xml, as are mappings. "url-pattern" refers to the path by which you'll access the servlet. it can any uniqu

Re: Simple question, but can't figure out answer

2006-07-12 Thread Pid
Is tomcat actually configured to serve the image directory? Do you have your logging ramped up? Try enabling an AccessLogValve if you haven't already. Mead, Jennifer L - VSCM wrote: > Nope, where and what is it trying to display? > > -Original Message- > From: Andrew Miehs [mailto:[EM

Re: Tomcat 5.5 load balancing URL redirefction not transparent to client

2006-07-14 Thread Pid
I'd suggest investigating Apache2.2 and mod_proxy + mod_proxy_ajp + mod_proxy_balancer. Madhur K Tanwani wrote: > Thanks Filip. > I understand now that Tomcat performs redirection - which implies that the > URL must change. > Then, I suppose I must ask > - Is something like mod_proxy available i

Re: mod_proxy_ajp with multiple ajp ports

2006-07-14 Thread Pid
Christopher Schultz wrote: > Bill, > > Thanks for the response. > >> I've seen some talk on [EMAIL PROTECTED] about implementing support for >> regexps in mod_proxy, but I don't think anything has happened yet. > > It doesn't appear to be a question of regular expressions, since the > elemen

Re: New Session Created Randomly in Tomcat 5.0.28

2006-07-19 Thread Pid
Nilesh wrote: > Problem Description : > > 1. I have a typical JSP-Servlet web application running on tomcat > 5.0.28. > > 2. After successful login a new session is created. (in login.jsp) and > user specific data is kept in session > > 3. User moves on through the application . A

Re: SuPHP alternative for JSP and Tomcat

2006-07-19 Thread Pid
Do you want to prevent all users from access the file system, or permit individual users access to their own part? Peter Crowther wrote: >> From: Vaclav Kaspar [mailto:[EMAIL PROTECTED] >> For security reasons I >> need JSP scripts to run under different users > > A single JVM runs as a single

Re: getSession() thread-safe? User A can see user B's account

2006-07-21 Thread Pid
Are you storing/defining these user details outside the doPost or doGet methods of any of the servlets used to access them? the only way that these details will (should, could) be shared across different user sessions are if the session hasn't been properly invalidated or cleared, and the user log

Re: Tomcat as a proxy server

2006-07-24 Thread Pid
using config only.) > > To summarize - I would like to configure my tomcat instance to call my > servlet independent of the URL or http "host" header which tomcat receives. > Does anyone know how to do this? Do you have a default host configured? http://tomcat.apache.org/t

Re: java:comp/UserTransaction NameNotFoundException Tomcat 5.0.28

2006-07-24 Thread Pid
Have you got useNaming="true" enabled in your context.xml, or server.xml Thanks, but got the same exception. > > -Original Message- > From: Vivek Mohan [mailto:[EMAIL PROTECTED] > Sent: Monday, July 24, 2006 4:16 PM > To: Tomcat Users List; [EMAIL PROTECTED] > Subject: Re: java:comp/UserT

Re: ResponseWrapper and sendRedirect not working

2006-07-25 Thread Pid
What do the wrapper classes actually do? Is your Auth mechanism in them? If not, how are you checking Auth? Also, how does the filter know to avoid the request for the login page, or the subsequent form submission? If you're redirecting to a page that the filter applies to you'll end up in a nev

Re: Apache, mod_jk and Tomcat looses sessions

2006-08-07 Thread Pid
are you rewriting the URLs in each of the pages to maintain the session? each URL should get modified as a result: /path/to/file.jsp;jsessiond=00?q=param what's your jk config? (unless i've missed something, and given that most people seem to get this to work OK, it's probably a problem

Re: Code performance question #2

2006-08-07 Thread Pid
here's another obvious question: if you're in a servlet, and you're getting an & separated string from somewhere, where is the "somewhere" that you're getting it from? does the servlet activate and collection the data somehow, or does the data get sent to the servlet (in, for example the query st

Re: Code performance question #2

2006-08-08 Thread Pid
David Kerber wrote: > Pid wrote: > >> here's another obvious question: >> >> if you're in a servlet, and you're getting an & separated string from >> somewhere, where is the "somewhere" that you're getting it from? >> >

Re: class loader for native library

2006-08-08 Thread Pid
Le Nguyen-Thinh wrote: > I use following taglibs in my JSP: > > <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %> > <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"; %> > <%@ taglib prefix="ora" uri="orataglib" %> > Could you help me please, how to configure/

Re: Taglibs ; error in a JSP using expression langluage

2006-08-08 Thread Pid
which version of tomcat are you using? is Expression Language enabled? as it looks like it's passing the ${0} variable as a string rather than evaluating it. Try setting the following attribute in your JSP 'page' directive. <%@ page ... isELIgnored="false" %> Le Nguyen-Thinh wrote: > Dear frie

Re: unsubscribe please

2006-08-08 Thread Pid
hotmail is probably eating your unsubscribe request replies. this is a common issue. configure your hotmail account to accept all mail, or at least to not auto-delete the junkmail. you'll probably find the unsubscribe confirmation in your junkmail next time you try. ahmed qaoud wrote: > >

Re: Create an object that's shared with multiple applications?

2006-08-09 Thread Pid
put it in a database? 0 8 wrote: > Hello, > > I currently have a JSP application under Tomcat that uses an object > created when Tomcat starts up. The object is created using a class > that implements ServletContextListener and I can call the object from > my JSPs. All is well. > > Originally,

Re: JDBCRealm with Simple Servlet Filter

2006-08-10 Thread Pid
rver sends. So when it fails, the server sends a 403 or something. If you want to control the pages the user sees, you're probably better off configuring FORM Auth, instead of BASIC. It allows you to specify a page/servlet for the login form, and a page/servlet for the login error page. pi

Re: Unknown attribute type (String) for attribute folder.

2006-08-11 Thread Pid
java.lang.String, not String Edoardo Panfili wrote: > hi, > I have a custom tag that seems not work as I need. > I need th use the tag with a parameter that I know only at run time. For > this reason I put > true in the tag description. > When I use the tag Tomcat (5.5.17) raises that exception

Re: Problem with java_opts in catalina.sh

2006-08-11 Thread Pid
You probably want the Open Exchange mailing list, rather than the Tomcat one... Jim Mensinger wrote: > Hi everyone, I am trying to install open xchange on a fresh install of > fedora core 4. To make life easier I followed the instructions from: > > http://www.open-xchange.org/attachments/fedo

Re: getting authentication information from apache

2006-08-11 Thread Pid
http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html set Jason Nesbitt wrote: > I'm using apache as a front end to my tomcat 5.5 server and they are > connected through the AJP 1.3 Connector. The problem I am having is that > the authentication info doesn't seem like its getting propagated

Re: getting authentication information from apache

2006-08-11 Thread Pid
I don't know of a way to make that happen, sorry. I don't think Apache's authentication mechanism permits (what are effectively) proxy sources access to the request in that way. Marc Farrow wrote: > Thanks for the tip Pid. How do you go the other way? What if I have an >

Re: Missing Request Parameters

2006-08-16 Thread Pid
(i can't see a previous thread for this, new mail setup, so apologies if I'm restating.) Are you using GET or POST? And how many parameters are you submitting? And are there any particularly long bits of data in the parameters? lmelendez wrote: Hi Rache, Well, we are seeing the problem. Ou

Re: Tomcat5.5.17 work directory have the whole tomcat structure

2006-08-16 Thread Pid
Sounds like you set a Context up with the Tomcat directory as the base appDir, so it's trying to publish the lot. Check your Server.xml Pid Raju Balugu wrote: Hi all, I installed the image(my project)with all the class files(work is having the class files)by doin

Re: Missing Request Parameters

2006-08-18 Thread Pid
have we seen your connector config, and your apache forwarding setup (JK i assume)? Nicolas Schwartz wrote: As I said it happens even on GET requests and very small urls on our side. Since it is a get request, we do see the parameter in the apache log, but we can't get it with the getParame

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-27 Thread Pid
Remy Maucherat wrote: On 8/26/06, Andrew Miehs <[EMAIL PROTECTED]> wrote: ?! Now I am confused ?! 10,000 connections and 10,000 virtual hosts have NOTHING to do with one another. As to 10,000 virtual hosts in Tomcat, vs 10,000 virtual hosts in Apache No idea - I don't think 10,000 virtual

Re: mod_jk garbled - how to change JK* directives for ProxyPass?

2006-09-06 Thread Pid
Do a mod_rewrite with the [P] directive for JSPs RewriteRule ^\/(.+)\.jsp(.+)? ajp://tomcat.server:8009/$1.jsp$2 [P,L] RewriteRule ^\/(.+)\.xml(.+)? ajp://tomcat.server:8009/$1.xml$2 [P,L] RewriteRule ^\/(.+)\/j_security_check(.+)? ajp://tomcat.server:8009/$

Re: 5.5.17 cluster doesn't sync sessions on startup

2006-09-07 Thread Pid
Check that your server times are all synchronised. Ronald Klop wrote: > Thanks for your anser. I'm going to look into this. > > I have some thoughts about this. Tomcat 5.0 synced in 0.3-3 seconds for > the same amount of sessions. > Our (about 3000-5000) sessions contain only one String 'userid

Re: 408 with virtual host and j_security_check

2006-09-15 Thread Pid
Maybe the clock is wrong on the server. Montilla Markus (KIUH 43) wrote: > Hi > I have an error with my Application using Tomcat 5 and a virtual host. > When > I access it using localhost defined as host everything works. Otherwise > I can access > the login page and then I get an "HTTP Status

Re: SimpleTagSupport invalid bodycontent JSP

2006-09-15 Thread Pid
try "scriptless" Scott Van Wart wrote: > This has been bugging me for a few days, so bear with me, I thought I'd > try the list. I'm using SimpleTagSupport (I find it much easier than > the JSP 1.2 interfaces). In my TLD I put "JSP" as the , > and Tomcat gives me an error (invalid body-content

Re: Database connection pooling in Tomcat 5.5

2006-09-18 Thread Pid
post your context.xml Darren Hall wrote: > Hi all. > > > > I'm attempting to set up database connection pool using Tomcat 5.5 and > Oracle 10g. I've been following the "JNDI How To" guide from Apache > (http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html > ). My ques

Re: Tomcat5 on RHEL4 U3, NoClassDefFoundError

2006-09-25 Thread Pid
ClassDefFoundError: > > java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester At a guess, the org.apache.commons.digester.Digester class can't be found pid > Thanks, > .../Bosse > > - > To start a new topic, e-ma

Re: New session PER REQUEST

2006-09-25 Thread Pid
have you consciously decided that you're using tomcat with an http mode connector instead of an ajp connector? also, you're duplicating the proxy by doing ProxyPass /flc ... as well as RewriteCond %{REQUEST_URI} !^/flc... Darren Hall wrote: > Thanks David, > >> For using mod_proxy, have

Re: Why I see only the defaultHost?

2006-09-30 Thread Pid
look for the alias directive in the hosts documentation www.host2.net Samsamoddin Rajaei wrote: > Hi everybody, > > I use linux-apache2 and tomcat 5.0.28 and have the following problem. I have > a configuration like: > > > > > URIEncoding="UTF-8" > protocolHandlerClassName="o

Re: change in versions?

2006-10-05 Thread Pid
Dan Adams wrote: > I had a tomcat 5.5.17 install with a bunch of webapps that was running > great. Then I had to set up a new tomcat install on another server so I > grabbed 5.5.20 and all of a sudden the urlrewritefilter in my apps > stopped working completely. So after like a day of frustration a

Re: JNDI inside a JAAS LoginModule

2006-10-09 Thread Pid
good question. anyone? John McPeek wrote: > Hi all, > I am hitting a database form a LoginModule. I would like to use a > datasource. I don't have any problem configuring the datasource and > accessing it from an app. I have a global resource > > >... >maxIdle="5

Re: Global Error Page Override

2006-10-11 Thread Pid
very bad practice to return a blank page, or worse no response at all. your 404 shouldn't contain information that is 'best kept secret' anyway. given that you can customise the error response, you could just return a really simple page (but bear in mind the IE error page file size 'feature'). y

custom Form authenticator

2006-10-14 Thread Pid
Am thinking about implementing a custom Form authenticator, does anyone have any tips or links they can recommend before i get started? Particularly want to know if I can use it on one webapp, not force all on the server to use it too. cheers, pid

Re: CGI vs SMTP vs Tomcat

2006-10-18 Thread Pid
is there a simple answer here? if OP's running under a security manager, does the CGI servlet require port permissions setting in catalina.policy? Martin Gainty wrote: > As Tomcat is written in Java JSP and Servlet (with C code for native function > calls to the underlying OS~this is at least

Re: Server certificate configuration for multiple IP addresses and domain names

2006-10-25 Thread Pid
If you're talking about SSL, then this is the common misunderstanding about about how the SSL layer works. SSL is negotiated before HTTP - where the HOST header resides - so the server has no way of knowing during the SSL connection phase which host to talk to, so selects the default certificate.

Re: Uniquely identifying an servlet runner instance...

2006-10-25 Thread Pid
you could also use a properties fil, containing a unique name for each app/server Peter Björkman wrote: > I need to store in our database (along with other information) which of our > servers that made the save. Is it possibly to dynamically find a property > that identifies it? Or will I have t

Re: Changing defaultHost from localhost to a FQDN

2006-10-27 Thread Pid
And try adding myhost.com, instead of changing the host name. The latter changes expected dir locations too, which is probably why your app is broken. p Caldarale, Charles R wrote: >> From: Alan Burlison [mailto:[EMAIL PROTECTED] >> Subject: Changing defaultHost from localhost to a FQDN >> >>

Re: Is it possible to log IP Address of requestor with custom AccessLogValve pattern?

2006-10-30 Thread Pid
Do you have a local proxy between the tomcat instance and the requestor? Rashmi Rubdi wrote: > Li, > > Thanks for the reply. > > As indicated in your illustration, in your case the remote IP address (IP of > the client browser) is correctly displaying. > > But in my case, for some reason

Re: Changing port for tomcat5.5

2006-10-30 Thread Pid
Start here: http://tomcat.apache.org/tomcat-5.5-doc/ Then read all of: http://tomcat.apache.org/tomcat-5.5-doc/config/index.html Then find "conf/server.xml" and change the port 8080 to 80 CANADAFAST INC. wrote: > > Hello! > > My tomcat 5.5 is running on port 8080 on my pc(windows xp)

Re: Very basic web server hosting question

2006-10-30 Thread Pid
The reason no-one is finding this an interesting question is that it's not really anything to do with Tomcat. Your LinkSys router probably has a manual, or at least some basic instructions for how to map external ports to the internal server. CANADAFAST INC. wrote: > Hello! > > > I a

  1   2   3   4   5   6   7   8   9   10   >