Re: Multiple instances of servlets

2006-06-16 Thread Len Popp
nager /servlet/com.mydomain2.bookingManager.BookingManager As I mentioned earlier it is mydomain2 that get four instances of the "BookingManager" servlet. Comments? Thanks /Magnus ----- Original Message - From: "Len Popp" <[EMAIL PROTECTED]> To: &quo

Re: Tomcat not setting session cookies ??

2006-06-16 Thread Len Popp
Are you sure it's not using session cookies at all, or is it only on the welcome page that you see the jsessionid? The first request to the server naturally doesn't include a session cookie, and the server can't know that the browser has accepted the cookie until the browser sends the cookie back

Re: multiple tomcat services

2006-06-21 Thread Len Popp
Here's a how-to that was posted to this mailing list: http://www.nabble.com/Re%3A-running-two-instances-of-tomcat-p3560229.html I haven't tried it myself, but it looks pretty complicated so it must be right. :-) -- Len On 6/21/06, Bharathi Kattamuri <[EMAIL PROTECTED]> wrote: Hi, I have instal

Re: Version of Tomcat installed

2006-06-24 Thread Len Popp
Tomcat 5.5 has the value "Version" under HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Tomcat\5.5 I don't know if earlier versions of Tomcat have a similar registry setting. -- Len On 6/24/06, Edward Diener <[EMAIL PROTECTED]> wrote: I need to be more precise in my question. How can I

Re: Need help deciphering eclipse console

2006-06-26 Thread Len Popp
That looks like a Java compile error (or warning). It says there's a variable that is set but never used. -- Len On 6/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: What does this mean in my console? SeverityDescription ResourceIn Folder LocationCreation Time Id 1 The loc

Re: getSession() creates new session every time when using IE6

2006-07-04 Thread Len Popp
It works correctly for me, with IE6 and Tomcat 5.5.17. On the first request, isNew = true. On subsequent requests, isNew = false and the session ID is the same. Perhaps your IE is set to ignore all cookies, or to ignore cookies from certain hosts. -- Len On 7/4/06, Galam <[EMAIL PROTECTED]> wrot

Re: Running multiple instances of 5.5x as Win services

2006-07-10 Thread Len Popp
Instructions for running multiple Tomcat services have been posted to this list before: http://www.nabble.com/Re%3A-running-two-instances-of-tomcat-p3560229.html service.bat and other useful batch files are not included in the Windows setup program, for some reason. Download the .zip Tomcat distr

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

2006-07-21 Thread Len Popp
On 7/21/06, Christopher Schultz <[EMAIL PROTECTED]> wrote: Dave, > I am using JSF (apache faces). The way to get Session or > HttpServletRequest from a backing bean is through FacesContext. > Backing beans are not servlet, so can not access HttpServletRequest > directly. > > After synchronizing

Re: Possible to send 503 status over JK?

2006-07-25 Thread Len Popp
The recent messages on this topic have confused me, so I've spent part of my evening running some tests. = First, with Tomcat standalone: Tomcat's default error pages can be overridden by an error-page declaration in the webapp's web.xml. If there is no error-page declared, Tomcat uses it

Re: Possible to send 503 status over JK?

2006-07-26 Thread Len Popp
s code, isn't that the whole point of having a status code handler in httpd.conf? Just seems that if Apache can handle the 503 with Tomcat down, that it shouldn't work any different with Tomcat running but with a webapp down, as long as if its returning the same status code. Thank you

Re: Possible to send 503 status over JK?

2006-07-26 Thread Len Popp
ed and the jar recompiled? I don't find the docs anywhere within my Tomcat version (4.1.3). -Original Message----- From: Len Popp [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 25, 2006 8:26 PM To: Tomcat Users List Subject: Re: Possible to send 503 status over JK? The recent messages on

Re: Writing files accessible from a browser

2006-08-07 Thread Len Popp
So, you need a directory where you can write files and serve them to the web, and you don't want that directory to be hard-coded in your application. First, you need a way to specify the directory when the app is installed. (In general your app may need a bunch of configuration settings.) There a

Re: Aborting servlet init() method

2006-09-04 Thread Len Popp
If I understand the situation correctly, You could use a filter to deny all requests to the servlet (return HTTP error 500) while the database is down. On initialization you check the database and set a flag to tell the filter if the database is down. When the database comes back up (assuming you

Re: Tomcat5.5.17 JNDI configure error

2006-09-29 Thread Len Popp
The JDBC driver must be in common/lib so that it is accessible to both Tomcat and your app. See http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html and http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html -- Len On 9/29/06, red phoenix <[EMAIL PROTECTED]> wrot

Re: Tomcat Filter Not Retro Active

2006-10-05 Thread Len Popp
Could it be that the old files are already cached by the browser? Try clearing the browser's cache, and put some logging in your filter so you can see if the filter is actually executed when you request a file. -- Len On 10/5/06, Threepwood <[EMAIL PROTECTED]> wrote: I am using a filter to set

Re: how to handle null values when storing db data from jsp forms?

2006-10-07 Thread Len Popp
You can use a variable that is null unless the corresponding parameter isn't empty. Like this: INSERT INTO my_database_table (firstname, middlename, lastname, suffix, email_address) VALUES (?, ?, ?, ?, ?) Note that this works with MySQL, but not some other databas

Re: server IP address

2006-10-09 Thread Len Popp
In a servlet, request.getLocalAddr() will return the server's IP address. -- Len On 10/9/06, Daniel Blumenthal <[EMAIL PROTECTED]> wrote: Hopefully, a pretty easy question: how do you determine the IP address of the server a servlet is running on? Thanks! Daniel -

Re: multilevel context path and auto reload

2006-10-10 Thread Len Popp
Boy, that page is confusing. For example, it says "Each such Context MUST have a unique context path, which is defined by the path attribute." But then, you must NOT use a path attribute unless the Context is in server.xml. ?!? And, is that "#" trick documented anywhere? I don't see it on that pag

Re: Session replication

2006-10-16 Thread Len Popp
I have run a Tomcat cluster without sticky sessions and it seems to work fine. Here's a how-to for configuring session replication without sticky sessions: http://www.paulkimbrel.com/?p=3 But I don't think sticky sessions are a problem for load balancing. The server rack won't tip over if one ser

Re: static server implementation?

2005-10-27 Thread Len Popp
In the current version of IE, there is an option to control whether or not to allow caching of https pages on disk. If this is disabled it might still cache the pages in memory (but that's just a guess). On 10/27/05, David Rees <[EMAIL PROTECTED]> wrote: > On 10/27/05, Leon Rosenberg <[EMAIL PROTE

Re: Pointers on setting up Tomcat 5.5x w/MySQL on OS X?

2005-11-09 Thread Len Popp
server.xml is the old location for the but these days it's usually found either in conf/Catalina/[hostname]/[appname].xml or in webapps/[appname]/META-INF/context.xml. Also note that the syntax of has changed in 5.5. See http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html

Re: Pointers on setting up Tomcat 5.5x w/MySQL on OS X?

2005-11-10 Thread Len Popp
etter tutorial somewhere for setting up Tomcat 5.5 and MySQL, but unfortunately I don't have a pointer to one. -- Len On 11/10/05, Benjamin Slade <[EMAIL PROTECTED]> wrote: > Thanks for the info, but one more question.. Where can I find > documentation on this sort of thing? >

Re: WatchedResource not watched

2005-11-13 Thread Len Popp
A relative pathname will work for . Look at the default entry in conf/context.xml: WEB-INF/web.xml which is exactly what you want. I just tested it, and editing web.xml causes my app to be reloaded, whether the is in conf/context.xml or in my app's META-INF/context.xml. I'm running Tomcat 5.5

Re: error in jasper precompilation

2005-11-14 Thread Len Popp
Don't compile header.jsp, as it's being included in all of the other pages. It's the same as including a .h file in C++. -- Len On 11/14/05, Michael P. Soulier <[EMAIL PROTECTED]> wrote: > I'm taking care of a site that uses a common header and footer, with a > dynamic header title, like so > > >

Re: request.getSession(false) incorrectly creates a session

2005-11-14 Thread Len Popp
I have observed that request.getSession(false) returns null when it's called from the top of my servlet in the first request from a client, but when the servlet forwards the request to a JSP page (via RequestDispatcher.forward) the session gets created. The session is not explicitly created by anyt

Re: JNDI from tomcat on remote Windows PC with ODBC ???

2005-11-17 Thread Len Popp
Sun has a JDBC-ODBC bridge, which is a JDBC driver that connects to an ODBC data source. I have used it with Tomcat 5. More info here: http://java.sun.com/j2se/1.4.2/docs/guide/jdbc/bridge.html You can download it from Sun's web site, but I can't give you a link because their Java download pages se

Re: Tomcat change in PageContextImpl.setAttribute from 4.1.30 to 4.1.31 makes 4.1.31 unusable... please confirm if it`s a bug ?????

2005-12-12 Thread Len Popp
That's correct. According to the spec that Tim linked to: Throws: java.lang.NullPointerException - if the name or object is null If you want to set it to null, call removeAttribute instead. This is different from HttpSession.setAttribute and ServletRequest.setAttribute, which explicit

Re: forwarding JDOM-Objects

2006-01-06 Thread Len Popp
On 1/6/06, Christian Stalp <[EMAIL PROTECTED]> wrote: > Duan, Nick schrieb: > > >Don't forget type casting the object. > > > > > > > String mystring = req.getAttribute("Object").toString(); > Document mydoc = mystring.? > > Casting from String to JDOM doesn't work!!! > So which way you pref

Re: distribution

2006-01-08 Thread Len Popp
On 1/8/06, Zohar Amir <[EMAIL PROTECTED]> wrote: > Hello, > I've used tomcat to run some naive servlets, and now I need to do something > more complicated. I need to be able to distribute my service. Clients > connect to a tomcat server and their requests are forwarded to a backend > server. I need

Re: Absolute Guide for config of JDBC Connection Pool ?

2006-01-19 Thread Len Popp
I don't know if there's a complete top-to-bottom guide, but here's what I know from setting up connection pooling under 5.5.12: 1. The JDBC driver JAR must go in the common/lib directory (because for connection pooling it needs to be accessible to both Tomcat and the web app). 2. DBCP is built in

Re: Connection Pool Woes

2006-01-20 Thread Len Popp
As far as I can tell, the JSTL actions are supposed to close the connections that they use. I can't say for sure, because *my* way of dealing with this is to never access the database directly in a JSP. :-) -- Len On 1/20/06, Alex Turner <[EMAIL PROTECTED]> wrote: > How do you deal with this when

Re: (newb) Tomcat servlet mapping problem

2006-01-23 Thread Len Popp
On 1/23/06, Darren Hall <[EMAIL PROTECTED]> wrote: > > > From: Darren Hall [mailto:[EMAIL PROTECTED] > > > Subject: RE: (newb) Tomcat servlet mapping problem > > > > > > Is there a way I can map these servlets (in the web.xml file) so > > > that Tomcat can see them and execute them? > > > > Not tha

Re: Apache does not override errors coming from Tomcat

2006-01-25 Thread Len Popp
On 1/24/06, Akoulov, Alexandre <[EMAIL PROTECTED]> wrote: > Hi all, > > I'd appreciate if you could help with the following problem. > > In our environment apache 1.3.33 acts as a web server that dispatches certain > requests to tomcat 5.5. What we're currently trying to achieve is to make > apac

Re: Best practice for Capturing JSP Errors

2006-02-03 Thread Len Popp
On 2/3/06, Mott Leroy <[EMAIL PROTECTED]> wrote: > Glen Mazza wrote: > > >> And another is to define the error page in your web.xml: > >> > >> > >> 500 > >> /myPage.jsp > >> > >> > > > > I would save these for generic HTTP error codes, or generic Java > > exceptions (NullPointerErrors,

Re: jasper exception and root cause

2006-02-03 Thread Len Popp
On 2/3/06, Mott Leroy <[EMAIL PROTECTED]> wrote: > Sorry, there was a thread about jsp errors, but i thought this was > different enough to warrant a new thread. > > I'm having trouble programatically retrieving the root cause of a JSP > Exception. Basically, if a NullPointerException is thrown on

Re: java.lang.Object cannot be resolved

2006-02-11 Thread Len Popp
On 2/11/06, Sebastian Funk <[EMAIL PROTECTED]> wrote: > > On Feb 11, 2006, at 6:30 PM, Caldarale, Charles R wrote: > > >> From: Sebastian Funk [mailto:[EMAIL PROTECTED] > >> Subject: java.lang.Object cannot be resolved > >> > >> import java.lang.Object; > >> > >> The type java.lan

Re: Example of Flaky Problems with Microsoft Products

2006-02-13 Thread Len Popp
On 2/13/06, Wade Chandler <[EMAIL PROTECTED]> wrote: > --- Rhino <[EMAIL PROTECTED]> wrote: > > > > > - Original Message - > > From: "George Sexton" <[EMAIL PROTECTED]> > > To: "'Tomcat Users List'" > > Sent: Monday, February 13, 2006 1:00 PM > > Subject: OT: Example of Flaky Problems with

Re: c:forEach not working as expected

2006-02-13 Thread Len Popp
On 2/13/06, Reinhard Moosauer <[EMAIL PROTECTED]> wrote: > Hi List, > > it seemed clear to me, that this construct: > > > ... (some inner logic) > > > should be equivalent to this one: > > <% > for (Iterator it=t.getRecords(); it.hasNext(); ) { > String x = (String)it.next(); >

Re: [Fwd: How can we capture all errors without defining it]

2006-02-17 Thread Len Popp
You need a separate error-page declaration for each error code, according to the servlet spec. The set of HTTP status codes is limited, so after a couple minutes of copy & paste you'll be done with it. On 2/16/06, Java Pro <[EMAIL PROTECTED]> wrote: > Is there anyone who can help me with this quer

Re: JNDI Datasource Problem

2006-02-19 Thread Len Popp
There is no ResourceParams in 5.5. Check the documentation again, and make sure you're looking at the docs for 5.5 not 5.0. -- Len On 2/19/06, Mark Whitby <[EMAIL PROTECTED]> wrote: > Yes I'm using version 5.5.15. What I have in the server.xml file is what is > advised in the Tomcat set up pages

Re: Can TOMCAT cache the file in element?

2006-03-06 Thread Len Popp
If you use <[EMAIL PROTECTED], the included file will be compiled along with the rest of the JSP code, so it will only be read once rather than every time the page is accessed. -- Len On 3/6/06, Mike Sabroff <[EMAIL PROTECTED]> wrote: > You should use > <%@ include file="other.jsp" %> instead of

Re: Problems with JavaMail

2006-03-11 Thread Len Popp
Yes, you need an SMTP server. If you've got Outlook Express running, you can use the same server it's using. -- Len On 3/11/06, Mark Whitby <[EMAIL PROTECTED]> wrote: > Dear all, > > I'm currently getting the following error when trying to test the JavaMail > set up: javax.mail.MessagingException

Re: Problems with JavaMail

2006-03-11 Thread Len Popp
t; Many thanks > > Mark > > - Original Message - > From: "Len Popp" <[EMAIL PROTECTED]> > To: "Tomcat Users List" > Sent: Saturday, March 11, 2006 3:15 PM > Subject: Re: Problems with JavaMail > > > Yes, you need an SMTP server. If

Re: Problems with JavaMail - catching bounced emails - help

2006-03-11 Thread Len Popp
; > Len, > > > > Thanks very much for your help, my class is now working fine. Ironically > > enough my smtp server is localhost as I use an ssh client to connect to my > > Universities mailhost via the ssh connection and then my emails go via > > that. > > > &g

Re: some functions are called twice

2006-03-13 Thread Len Popp
It's not just IE. Firefox, Opera, Safari, etc. also fetch favicon.ico - probably every browser that hits your site. If your webapp is set up as the root webapp then it will receive these requests, and you should either handle them or ignore them. -- Len On 3/13/06, Tim Diggins <[EMAIL PROTECTED]>

Re: Programmatic access to error 500 stack trace

2006-03-15 Thread Len Popp
Yes, you can do that. 1. Make sure your web.xml has an error-page declaration for exception-type java.lang.Throwable. (Throwable catches things like OutOfMemoryError, as well as Exception and its subclasses.) 2. In your error handling page the exception is available as a request attribute, either

Re: Tomcat 5.5.16 - Error configuring application listener of class listeners.ContextListener

2006-03-20 Thread Len Popp
The file ContextListener.class should be 2526 bytes in size (in both the jsp-examples and servlets-examples webapps). I can't test the problem in 5.5.16 as I'm still running 5.5.12. (It doesn't happen for me with 5.5.12 & JDK 1.5.0_06-b05.) I did verify that the ContextListener.class files are ide

Re: Tomcat 5.5.16 - Error configuring application listener of class listeners.ContextListener

2006-03-20 Thread Len Popp
Also, when I compared the ContextListener.class files I was working from the Windows zip downloads, not the .exe setups. (Charles C. has reported that the latter are corrupt.) -- Len On 3/20/06, Len Popp <[EMAIL PROTECTED]> wrote: > The file ContextListener.class should be 2526 bytes in

Re: Does tomcat badly handles error in included jsp?

2006-03-27 Thread Len Popp
There are a couple of things you can do. I haven't tried this, but I think you can prevent the IllegalStateException by putting "<%@ page buffer='128kb' %>" in the JSPs. Use a big enough buffer, and it won't start writing the response before it tries to redirect to the error page. Also, you could

Re: Distinguish between users and robots in access log?

2006-03-27 Thread Len Popp
What I do is look at the IP addresses that access robots.txt and consider any similar IP address to be a robot. "Similar" means the same first 3 bytes - often the requests for pages come from a different machine than the one that checked robots.txt. It's not perfect but it works pretty well. You s

Re: Here is site, not getting spidered.

2006-03-27 Thread Len Popp
Actually, it appears that Google is at least trying to crawl your site. In the access log you posted, a couple of pages are requested by 66.249.65.180 which is an address registered under googlebot.com. (I did a reverse DNS lookup.) However, when I try to access these pages myself (e.g. http://www

Re: iis 6.0 + apache-tomcat 5.0.28

2006-04-17 Thread Len Popp
It sounds like this bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=39041 -- Len On 4/17/06, Sergio Gonzalez Ramos <[EMAIL PROTECTED]> wrote: > I'm getting following error > > > Apr 17, 2006 6:28:57 AM org.apache.catalina.core.StandardContext > listenerStart > SEVERE: Error configurin

Re: Tomcat clustering session data

2006-04-20 Thread Len Popp
I'm starting to look at a similar problem. Where can I find info about the Tomcat Tribes module? -- Len On 4/20/06, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: > In tomcat 6, maybe 5.5.x we will have a ReplicatedContext, meaning that > the context attributes are replicated. > So you can sto

Re: Tomcat clustering session data

2006-04-21 Thread Len Popp
; MemberShipListener mlist = new MyMbrShipListener(); > channel.addMembershipListener(mlist); > channel.start(channel.DEFAULT); > > channel.send(channel.getMembers(),myMsg,0); > > Filip > > > Len Popp wrote: > > I'm starting to look at a similar problem. Where can

Re: is there a possibility to define the startup order for webapps?

2006-04-24 Thread Len Popp
A couple of other ideas: Use a small shared class (in shared/lib) to keep track of whether the database is running. The first webapp notifies this class when it's ready, and the second webapp checks if the database is ready before using it. Or, just accept that database errors will occur during s

Re: error page

2006-05-20 Thread Len Popp
It could be that the error page itself is throwing an error. Try using an ultra-simple error page. -- Len On 5/18/06, Zohar <[EMAIL PROTECTED]> wrote: No, I've used the "Letting a page define its error page" option. - Original Message - From: "Franck Borel" <[EMAIL PROTECTED]> To: "Tomc

Re: Multiple instances of servlets

2006-06-14 Thread Len Popp
How many web.xml files do you have, and how many declarations are there in those files? Each one of those is a different servlet (even if some of them happen to be implemented by similar Java classes). Normally, Tomcat will create one instance of each of those servlets (or one per JVM in a distri

Re: Problems with useBean

2006-10-20 Thread Len Popp
That is the correct behaviour. According to the JSP spec, the class attribute must be "The fully qualified name of the class that defines the implementation of the object." So you must include the full package name. -- Len Popp [EMAIL PROTECTED] http://www.lmp.dyndns.org/ On 10/20/06

Re: Eliminating the need for a trailing slash in accessing sub-directoryresourceson a Tomcat HTTP server

2006-10-21 Thread Len Popp
URLs will be handled correctly. -- Len Popp [EMAIL PROTECTED] http://www.lmp.dyndns.org/ On 10/21/06, Ramez Ghazzaoui <[EMAIL PROTECTED]> wrote: So the problem's origin is my unusual port assignment. Thank you Chuck. Case closed :-) -Ramez Caldarale, Charles R wrote: >> From: R

Re: Eliminating the need for a trailing slash in accessing sub-directoryresourceson a Tomcat HTTP server

2006-10-21 Thread Len Popp
It's not just Tomcat, every web server does that (from what I've seen). I would guess it's required by the HTTP spec. -- Len Popp [EMAIL PROTECTED] http://www.lmp.dyndns.org/ On 10/21/06, Ramez Ghazzaoui <[EMAIL PROTECTED]> wrote: Nice observation, champ! I still don&#x

Re: Howto continue TimerTask after Tomcat Server was restarted

2006-10-27 Thread Len Popp
You can write a ServletContextListener that is called when the app starts and stops. You specify it by a tag in web.xml. See the servlet spec for details. -- Len Popp [EMAIL PROTECTED] http://www.lmp.dyndns.org/ On 10/27/06, Dort Wach <[EMAIL PROTECTED]> wrote: Hello everybody, I

Re: Apache Tomcat/5.5.12

2006-10-28 Thread Len Popp
a line number in the translated Java file. -- Len Popp [EMAIL PROTECTED] http://www.lmp.dyndns.org/ On 10/28/06, asd <[EMAIL PROTECTED]> wrote: This is blocking a very important page. I must view it. I've tried deleting cookies, etc. I can't seem to get on the page I want to get

Re: Apache Tomcat/5.5.12

2006-10-28 Thread Len Popp
On 10/28/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: Where does the above class come from? (And why does its name have _005f in it rather than a plain underscore?) Jasper changes "_" in JSP file names to "_005f". But I don't know why. -- Len ---

Re: Tomcat Performance Concerns

2006-11-18 Thread Len Popp
Can you determine which part of the system is running slowly? One thing to try would be a simplified version of your application that doesn't access the database - if it is still slow then you know it's not related to the DB. You could also add logging messages at various points to measure how lon

Re: Global custom 503 error page

2006-11-21 Thread Len Popp
There's no easy way. The 503 error page is hard-coded in org.apache.catalina.valves.ErrorReportValve. You can replace that class with your own implementation, specified by the attribute errorReportValveClass. (I haven't tried that myself, I just read about it in the Tomcat docs.) -- Len On 11/20

Re: Web spiders - disabling jsessionid

2006-12-01 Thread Len Popp
On 12/1/06, Christopher Schultz <[EMAIL PROTECTED]> wrote: Mikolaj, Back to the original question... Mikolaj Rydzewski wrote: > As you may know url rewriting feature is not a nice thing when spiders > come to index your site - > http://gabrito.com/post/javas-seo-blunder-jsessionid. So, the pro

Re: Web spiders - disabling jsessionid

2006-12-01 Thread Len Popp
On 12/1/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > From: Chris Adams [mailto:[EMAIL PROTECTED] > Subject: RE: Web spiders - disabling jsessionid > > That's not true. A session id is assigned the moment you hit > the site. That contradicts what Len said about his site: "On my site (a

Re: Web spiders - disabling jsessionid

2006-12-03 Thread Len Popp
On 12/3/06, Rashmi Rubdi <[EMAIL PROTECTED]> wrote: No , I'm using Tomcat 5.5. And I've omitted the cookies attribute of Context in my Tomcat settings. And Googlebot or any other bot is accessing the URLs just fine (that is without the jsessionid ). When I look in the server access logs, jses

Re: tomcat5.5 service not find jre1.5.0, but startup.bat does

2006-12-07 Thread Len Popp
Run the Configure Tomcat program (tomcat5w.exe). Click on the Java tab. It'll show you what JVM it's using. If it's wrong, turn off "Use default" and select the correct JVM. -- Len On 12/7/06, sb4 <[EMAIL PROTECTED]> wrote: Under Windows XP Home, jre1.5.0, tomcat5.5, Oracle9i, JBuilder9 with jdk

Re: URL rewriting For Session Tracking

2007-01-04 Thread Len Popp
Or if you use the JSP standard tag lib (JSTL) you can do: second page -- Len On 1/4/07, Bill Barker <[EMAIL PROTECTED]> wrote: Usually you would use a tag lib for this sort of thing. With struts, it would look something like: second page <[EMAIL PROTECTED]> wrote in message news:[EMAIL PRO

Re: Standards Complaint Browser Campaign

2007-01-06 Thread Len Popp
The HTML is in the JSP file, it's not created by Tomcat. It's up to the JSP programmer to ensure that the HTML and logic in the JSP file are correct. Taglibs such as JSTL can generate HTML, but that's not part of Tomcat itself. -- Len On 1/6/07, Pierre Goupil <[EMAIL PROTECTED]> wrote: Errr...

Re: [OT] a Collection of beans to store sql data

2007-01-10 Thread Len Popp
On 1/10/07, Michael Ni <[EMAIL PROTECTED]> wrote: thanks for the quick reply, by the way everyone is telling me to make my functions return objects instead of resultset. why is returning resultset bad? Because of this line: try {if (rs != null) rs.close();} catch (SQLException e) {} Your

Re: Trailing slash added

2007-01-14 Thread Len Popp
Note that if you allow the browser to refer to directories without the trailing slash, you will break the handling of relative URLs on those pages. When the user clicks on a link with a relative URL, the browser has to convert that to an absolute URL. If the browser doesn't know that the current p

Re: Trailing slash added

2007-01-15 Thread Len Popp
efile.jsp, or ../somefolder/somefile.jsp I haven't tested the effect of URL Rewriting on the trailing slash on context relative URLs. But with URL Rewriting may of Apache's features, become available on Tomcat as well. For example you can rewrite http://www.domainname.com to http://doma

Re: Trailing slash added

2007-01-15 Thread Len Popp
lightbulb432 <[EMAIL PROTECTED]> wrote: Could anyone please expand a little more on what's meant by the two statements below? Len Popp wrote: > > It doesn't matter if it's done by URLRewriteFilter or some other > method because it's the browser that interprets the

Re: Trailing slash added

2007-01-17 Thread Len Popp
ts were that it's the server that does the URL creation/translation, and the browser that does URL resolution...two different concepts... Rashmi Rubdi wrote: > > Could you explain to us, why you want to get rid of the trailing slash ? > > >>Could anyone please expand a little mo

Re: Tomcat 5.5.20 on Windows - Service and App

2007-02-10 Thread Len Popp
When you run Tomcat with startup.bat it uses the JAVA_HOME environment variable to find the JAVA JVM. You must set JAVA_HOME to the JVM you want to use. When you run it as a service, the service wrapper gets the JVM location and other settings from the registry. You can change these using the Con

Re: custom error page for 500

2007-02-10 Thread Len Popp
The exception and other bits of error info are available as attributes of the request. For details see section 9.9 in the Servlet 2.4 spec and section 1.4.3 in the JSP 2.0 spec. -- Len On 2/10/07, Markus Sabadello <[EMAIL PROTECTED]> wrote: Hi, I have a cutom .jsp page handling my 500 errors. C

Re: TC 5.5.9 and 50X Custom Error Pages

2005-10-24 Thread Len Popp
The element is relative to the root of the web app - that is, you can only specify an error page within the same web app. There's a trick described here: http://marc.theaimsgroup.com/?l=tomcat-user&m=104160348302968 that uses a small .jsp that includes the Apache error page. Since you want the er

Re: Moving from a very old Tomcat to a new Tomcat.

2008-06-11 Thread Len Popp
In general, yes, your application has to be able to handle dropped sessions and session attributes. That's a consequence of the way the web works. A user could bookmark any page and return to it weeks later. You can't control the timing or order of web page requests. If a servlet finds some vital

Re: problem gzipping dynamic content with apache+jk+tomcat configuration

2008-06-16 Thread Len Popp
Did you put AddOutputFilterByType in *all* the and sections? In particular, in the associated with the Tomcat connector? -- Len On Mon, Jun 16, 2008 at 11:26, Kirti Teja <[EMAIL PROTECTED]> wrote: > Hi, > > > I use apache 2, tomcat 6.0.13 with modjk2. When I added > > AddOutputFilterByType

Re: Mod_JK / Tomcat Connector Default Maintenance Page

2008-07-07 Thread Len Popp
Since you're running Tomcat behind IIS, you should be able to configure a custom page in IIS for HTTP 503 errors. I know this is possible with the Apache web server, I suppose IIS can do it too. (Tomcat's error-page directive doesn't work because the webapp, or all of Tomcat, is down so it can't g

Re: Multiple tomcat versions in a same machine

2008-07-07 Thread Len Popp
Yes, you can do that. The exact procedure depends on what OS you're using and how you're starting Tomcat. -- Len On Mon, Jul 7, 2008 at 13:30, sridharmnj <[EMAIL PROTECTED]> wrote: > > I will explain the need clearly. > > We have a system with java 1.3 and tomcat 5.0.27. Some applications x and

Re: Multiple tomcat versions in a same machine

2008-07-07 Thread Len Popp
That doesn't solve the problem of using different versions of Java. To use different Javas you have to either set the JAVA_HOME variable or change the Tomcat service settings, whichever is appropriate in your environment. -- Len On Mon, Jul 7, 2008 at 13:42, David Smith <[EMAIL PROTECTED]> wrote

Re: Configuring DataSources using jsp: reload context.xml?

2008-07-08 Thread Len Popp
On Tue, Jul 8, 2008 at 08:53, Jonas Wagner <[EMAIL PROTECTED]> wrote: > Since the application connects to its datasources using the > DriverManager class, I cannot use connection pooling. That's one of the > reasons I tried using JNDI for such a long time :-( I think it's possible to use DBCP conn

Re: Apache/mod_jk serves random files from tomcat

2008-07-10 Thread Len Popp
That log file is from the httpd server, right? What does the Tomcat log file say? (Turn on AccessLogValve if you haven't already.) Is Tomcat always getting requests for the correct file, or is mod_jk requesting the wrong file sometimes? -- Len On Thu, Jul 10, 2008 at 11:44, Tim Redding <[EMAIL P

Re: Tomcat seems to have stopped servicing requests behind Apache

2008-07-10 Thread Len Popp
One way to do it safely is to have Tomcat serve all the files. Is there a reason why you need the Apache web server at all? -- Len On Thu, Jul 10, 2008 at 15:22, Tim Hunt <[EMAIL PROTECTED]> wrote: > Wow, that's a major headache/hassle I wasn't aware of. Where can I find > more about the risks

Re: Tomcat seems to have stopped servicing requests behind Apache

2008-07-10 Thread Len Popp
10, 2008 at 16:11, Tim Hunt <[EMAIL PROTECTED]> wrote: > Well, we believed apache was more flexible with mods (e.g., we use > mod_bwshare) and having apache serve static content would be > faster/higher performance. But you can tell me if any of that is wrong, > or out of date. > >

Re: Possibility of JSVC daemon with APR reacting strangely to TCP health checks

2008-07-14 Thread Len Popp
The obvious question is, are these TCP health checks well-formed HTTP requests or not? I guess it's hard to snoop the exact contents of the request since it's sent via SSL, but maybe you could configure it to send the exact same health checks to port 80 via plain HTTP. Then you could use Wireshark

Re: Both www.apache.org and tomcat.apache.org are down

2008-07-17 Thread Len Popp
www.apache.org is not currently working here. ping www.apache.org gets a response from 192.87.106.226, but Firefox doesn't get a response from either www.apache.org or 192.87.106.226. tomcat.apache.org is working. Maybe there was a DNS change that hasn't propagated everywhere yet? -- Len On Th

Re: Both www.apache.org and tomcat.apache.org are down

2008-07-17 Thread Len Popp
always due to a DNS issue. -- Len On Thu, Jul 17, 2008 at 14:47, Youssef Mohammed <[EMAIL PROTECTED]> wrote: > if you can't access 192.87.106.226 from firefox, then it has nothing to do > with DNS. > > > On Thu, Jul 17, 2008 at 9:36 PM, Len Popp <[EMAIL PROTECTED]>

Re: Both www.apache.org and tomcat.apache.org are down

2008-07-17 Thread Len Popp
... and now my DNS has caught up and it's working again. For those of you who are still stuck with incorrect DNS info, the IP address for both www.apache.org and tomcat.apache.org is 140.211.11.130. -- Len On Thu, Jul 17, 2008 at 14:54, Len Popp <[EMAIL PROTECTED]> wrote

Re: Spam Score

2008-07-22 Thread Len Popp
If you can't re-post the original email successfully, try: - posting in plain text format, not HTML - removing URLs - posting from a different email account, or from a web gateway such as nabble.com Perhaps the mailing list admin can give us some hints about what to avoid when sending email to thi

Re: Tomcat cannot find infrequently used classes

2008-07-23 Thread Len Popp
Is the class name really "XYZ" or is that just a placeholder? It makes a difference which class it's looking for - it could be a class from Tomcat, from your webapp, or from one of the libraries needed by the webapp. -- Len On Wed, Jul 23, 2008 at 04:33, <[EMAIL PROTECTED]> wrote: > I have a ve

Re: Tomcat cannot find infrequently used classes

2008-07-23 Thread Len Popp
, 2008 at 09:47, <[EMAIL PROTECTED]> wrote: > The XYZ is just a placeholder. None of the actual classes are Tomcat > classes, they are all servlets we have written. > > Rob > > -Original Message- > From: Len Popp [mailto:[EMAIL PROTECTED] > Sent: 23 July 2008 14

Re: Tomcat cannot find infrequently used classes

2008-07-23 Thread Len Popp
piled from the JSPs - some of those files weren't deleted when I updated a webapp, and that confused Tomcat. -- Len On Wed, Jul 23, 2008 at 12:43, Len Popp <[EMAIL PROTECTED]> wrote: > Since the classes are servlets, it may be that Tomcat's work directory > didn'

Re: Problem with Displaying Result of a MySQL Join in Tomcat

2008-08-03 Thread Len Popp
There might be a simpler solution than migrating to a completely different OS. :-) What exactly do you mean by "don't get retrieved"? Does it throw an exception? Is there an error message in Tomcat's log? When you execute the query in MySQL, do you get exactly the same results as on the old syste

Re: Problem with Displaying Result of a MySQL Join in Tomcat

2008-08-03 Thread Len Popp
at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) >at java.lang.Thread.run(Unknown Source) > > I ran the query in MySQL Command Line Client on both XP and Vista and they > return identical results. > > Thanks > Glyn > > -O

Re: Avast Antivirus and apache-tomcat-6.0.18.exe

2008-08-05 Thread Len Popp
2008/8/5 Johnny Kewl <[EMAIL PROTECTED]>: > > - Original Message - From: "Mark Thomas" <[EMAIL PROTECTED]> > To: "Tomcat Users List" > Sent: Tuesday, August 05, 2008 11:09 PM > Subject: Re: Avast Antivirus and apache-tomcat-6.0.18.exe > > >> Mark Thomas wrote: >>> >>> Ангелин Лалев wrote:

Re: Possible virus uploaded to Tomcat 5.5.3 - SOLVED

2008-08-10 Thread Len Popp
Thanks for figuring this out and posting the info. I checked my server log and found that just this morning some computer in China tried to poke at the manager app on my server. So it seems that it wasn't an isolated incident, there's someone out there trying to exploit Tomcat's manager app. Cavea

  1   2   3   4   >