Re: Terminating Timer Thread Gracefully

2011-07-12 Thread Len Popp
On Tue, Jul 12, 2011 at 10:03, David kerber wrote: > On 7/12/2011 9:59 AM, Kris Schneider wrote: > >> On Tue, Jul 12, 2011 at 7:59 AM, Caldarale, Charles R >> wrote: >> >>> From: Terence M. Bandoian [mailto:tere...@tmbsw.com] Subject: Terminating Timer Thread Gracefully >>> >>> Final

Re: [OT] Setting HTTP response headers caching for 1 year doesn't work

2011-01-16 Thread Len Popp
On Sun, Jan 16, 2011 at 08:41, André Warnier wrote: > Ran Berenfeld wrote: >> >> well ...no... first evaluate, then assign. and constants are int by >> default. >> I think C/C++ would have the same problem... >> > Maybe.  But then why does the fact of specifying just the first right-hand > side co

Re: Release COM Objects

2010-11-02 Thread Len Popp
I would use a ServletContextListener. It gets notified when the webapp is initialized and destroyed. -- Len On Tue, Nov 2, 2010 at 14:53, Leo Donahue - PLANDEVX wrote: > http://j-integra.intrinsyc.com/support/com/doc/gc/index.html > > #4 com.linar.jintegra.Cleaner.releaseAll(); > > Can Tomcat c

Re: META - Thread Hijacking

2010-09-01 Thread Len Popp
On Wed, Sep 1, 2010 at 19:08, Konstantin Kolinko wrote: > Have you ever searched the list archives? Good idea... http://tomcat.markmail.org/search/?q=hijack#query:hijack%20list%3Aorg.apache.tomcat.users+page:1+state:facets More than 700 messages! Really, is there a reason they all need to be sent

Re: META - Thread Hijacking

2010-09-01 Thread Len Popp
On Wed, Sep 1, 2010 at 18:06, Christopher Schultz wrote: > In the end, it's mostly up to the user's own personal preference which > way things should go. Those of us whose mail clients respect the > thread-id in the SMTP headers can see immediately when someone hijacks a > thread. Those folks have

Re: 7.02 on Windows XP: An instance of "Tomcat7" is already running

2010-08-31 Thread Len Popp
On Tue, Aug 31, 2010 at 19:49, Steven Woody wrote: > If launch "Configure Tomcat":   An instance of "Tomcat7" is already running; > If launch "Monitor Tomcat": An instance of "Tomcat7w" is already running. Despite the different wording, the meaning is the same: The Monitor/Configure app is alread

Re: Tomcat Version Numbers

2010-08-20 Thread Len Popp
On Fri, Aug 20, 2010 at 12:26, Christopher Schultz wrote: > It's not that I > don't get it... it's that I have a deep-seated need for the release > version to be called 7.0.0 for some reason. Call me cynical, but I naturally assume that a major new version will have more bugs (no matter how much

Re: Is there a better way to disable JSESSIONID in the URLs?

2010-08-19 Thread Len Popp
On Thu, Aug 19, 2010 at 12:01, Christopher Schultz wrote: > The servlet specification mandates this behavior. Tomcat simply must > support it. The spec says nothing of configurability, so Tomcat does not > provide any. Hence the need to write a filter to achieve your desired > behavior. That's no

Re: Is there a better way to disable JSESSIONID in the URLs?

2010-08-17 Thread Len Popp
On 2010-08-17, at 18:15, "Caldarale, Charles R" > wrote: Tomcat won't put the jsessionid in the URL unless cookies are disabled. If they are, then your webapp could refuse to talk to the client. That's not true. Tomcat doesn't know if cookies are available until the second request, so t

Re: weird bug?

2010-07-13 Thread Len Popp
On Tue, Jul 13, 2010 at 17:42, Caldarale, Charles R wrote: > You really don't know how to create a new e-mail message, rather than hitting > the reply button?  What seriously deficient e-mail client are you using? > >  - Chuck You really don't know that most people don't understand your problem,

Re: favicon when serving non-html

2010-07-06 Thread Len Popp
The usual way to specify the favicon is by putting it at the root of the web site, e.g. http://www.example.com/favicon.ico. On the server, this file is usually found in [Tomcat dir]/webapps/ROOT/favicon.ico - change that file to whatever icon you want. There are some other ways to specify the favi

Re: FAQ: Tomcat 6 Java Version Requirements

2010-04-29 Thread Len Popp
On Thu, Apr 29, 2010 at 18:02, Konstantin Kolinko wrote: > Requiring to read documentation before running a product is "unfair" ? >  All the files that you have to read first do contain that > information.  Maybe we can adjust some wording and some headers to be > more clear, though. One good thi

Re: [OT] Imperialism and sad demise

2010-04-01 Thread Len Popp
That's terrible! I predict a humungous backlash from lmgtfy users, and they'll be forced to restore the old service. Probably by tomorrow morning. :-) -- Len On Thu, Apr 1, 2010 at 15:25, André Warnier wrote: > Well, fellow Tomcatters, it is with deep sadness that I have to report that > one o

Re: How to surpress The requested resource XYZ is not available - response

2010-03-15 Thread Len Popp
I don't think you can do that. After Tomcat accepts the HTTP connection and decides whether to respond, it's too late to pretend there's no server there. The user's web browser displays a different error message for no server (something like "can't establish a connection") vs. server timeout (somet

Re: Webapp slow down after idle - 5.5.x

2010-02-22 Thread Len Popp
One thing that comes to mind is virtual memory swapping. If Tomcat is idle for a long time, all of its memory may be swapped out to disk to make room for other programs. Then when Tomcat needs to handle a request, it must be swapped back in from disk which takes time. I've observed the har

Re: Can't Disable Apache Tomcat

2010-02-02 Thread Len Popp
What exactly is it that appears in the Task Manager? Is it tomcat6.exe? Or tomcat6w.exe? Or java.exe? tomcat6.exe is the Tomcat service. java.exe appears if you run Tomcat using startup.bat. tomcat6w.exe is the "Monitor Tomcat" program. It is not Tomcat, it is a separate small program for managing

Re: error-page problem - nested exceptions

2010-01-22 Thread Len Popp
Yes, in the error page you can get the exception as a request attribute, either "javax.servlet.jsp.jspException" or "javax.servlet.error.exception" (sometimes it's one, sometimes the other). In my app, I found that this exception has already been "unwrapped" - it's the original exception, not a Ser

Re: error-page problem - nested exceptions

2010-01-22 Thread Len Popp
You could have your error handler check if the exception is a NestedServletException and its getRootCause() is a UnAuthorisedAccessException, and display the nested exception's error message in that case. You might want to use a separate for NestedServletException. -- Len On Fri, Jan 22, 2010

Re: Ignore http header if-modified-since

2009-12-18 Thread Len Popp
Add some debugging code to your app to find the point where the Last-Modified header is added. Call HttpServletResponse.containsHeader to see if the header has been set. -- Len On Fri, Dec 18, 2009 at 10:47, Abid Hussain wrote: > OK, it seems that tomcat is working correctly. > > Still I would

Re: mod_jk and session stickyness of images requests

2009-12-11 Thread Len Popp
On Fri, Dec 11, 2009 at 12:38, Kockert, Timo wrote: > Just to clarify: I know the EncodeUrlTransformer does the > encoding for me. The problem seems to be that some > devices do not send session ID cookies with image > requests. Do you know what type of devices they are? Your log file may contain

Re: Tomcat / windows 2008 IIS 7 x64

2009-11-19 Thread Len Popp
The Setup section of the docs describes basic Tomcat setup. Info about integrating with IIS is in the Tomcat Connectors docs: http://tomcat.apache.org/connectors-doc/ There's an IIS how-to in there. -- Len On Thu, Nov 19, 2009 at 12:54, Sabo, Eric wrote: > Which doc would that be under?  Can y

Re: What is the difference between running Tomcat 6 as a Windows Service vs. running from the command line?

2009-10-19 Thread Len Popp
On Mon, Oct 19, 2009 at 12:40, Alan Kennedy wrote: > Thanks for the suggestion Markus, it was a good one. > > Unfortunately, it did not solve the problem: the behaviour is exactly > the same when running under my own account: the bug still occurs. > > Regards, > > Alan. Besides the user account,

Re: Tomcat + APR non-root on linux: Socket bind failed: [98] Address already in use

2009-10-15 Thread Len Popp
On Thu, Oct 15, 2009 at 10:39, Christopher Schultz wrote: > That's port 8443, not port 98. Where's your real defined? 98 isn't a port number, it's an error code. It stands for "Address already in use". -- Len - To unsubscribe,

Re: Create FileInputStream in servlet from remote file with accentuated character name

2009-09-22 Thread Len Popp
On 2009-09-22, at 11:33, Christopher Schultz > wrote: Somebody needs to write a virus that just converts everything to UTF-8 so we can be done with it. I hear you can contract out that sort of work these days. :-) -- Len - T

Re: website offline

2009-08-28 Thread Len Popp
On Fri, Aug 28, 2009 at 08:07, Nikolay Diulgerov wrote: > Can someone involved directly state if this anyway compromised the builds > provided for download in some timeframe in the past. http://blogs.apache.org/infra/entry/apache_org_downtime_initial_report -- Len ---

Re: Apache Tomcat hangs

2009-08-23 Thread Len Popp
2009/8/23 Pid : > On 23/08/2009 11:08, fps wrote: >> >> I got this kind of exception with a jsp defined with session="false" (in the >> <%@ page... %>  section at the top of the file) including another jsp which >> was not including that session="false" directive >> > > Which kind of exception? > W

Re: Custom 404 page when webapp stopped

2009-08-20 Thread Len Popp
On Thu, Aug 20, 2009 at 10:58, Tim Funk wrote: > From a high level, whats the difference between a webapp thats stopped and a > webapp thats undeployed? When a webapp is undeployed it is deleted from the webapps directory. When it's stopped it's not deleted and can simply be re-started. In this ca

Re: Clearing the catalina.out file

2009-08-14 Thread Len Popp
On Fri, Aug 14, 2009 at 11:23, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Susan, > > On 8/14/2009 11:06 AM, Susan Richards wrote: >> No, but I will do it with a test server first since no one knows the answer. > > It's not that nobody knows the answer: it's tha

Re: JSESSIONID cookie permanent?

2009-08-12 Thread Len Popp
It comes up all the time. The solution is typically to use a separate cookie and *not* tie the persistent data to the browser session, since the browser session is transient. -- Len On Wed, Aug 12, 2009 at 14:54, Mitch Claborn wrote: > > If I can't find a another way that's what I'll have to do.

Re: Calling JNI/COM from Tomcat when running as a Windows service

2009-08-10 Thread Len Popp
Could it be a problem finding a DLL? Check the PATH variable in your dev account and see if it includes any directories with relevant DLLs. Even if you call LoadLibrary with a DLL's full pathname, other subsidiary DLLs may not be found if they're not on the search path. -- Len On Mon, Aug 10, 20

Re: Tomcat copies context.xml to, conf/Catalina/localhost/app.xml,but neverupdates it?

2009-08-07 Thread Len Popp
On Fri, Aug 7, 2009 at 10:33, M4N - Arjan Tijms wrote: > Either you trust the web application or you don't. If you don't trust the > web application the maintainer of a Tomcat instance puts his own context.xml > in conf/Catalina, thereby overriding whatever the web application defines. > If you d

Re: Service fails to start

2009-08-05 Thread Len Popp
I think I read about it on this mailing list. :-) -- Len On Wed, Aug 5, 2009 at 10:54, venu007 wrote: > > This worked for me. > > How did you find out about it. > > > > Len Popp wrote: > > > > This error occurs when it can't find the Microsoft C

Re: Tomcat for serving only static files - how to prevent the likes of JSP execution

2009-07-04 Thread Len Popp
The default handling of JSP files is set in conf/web.xml: *.jsp and *.jspx are handled by JspServlet. In your "special" context, you could handle *.jsp and *.jspx files with a servlet that just returns an error. That should do the trick. -- Len 2009/7/4 Keith67 : > > This might seem like a str

Re: JSP when tag question

2009-07-04 Thread Len Popp
On Sat, Jul 4, 2009 at 13:52, Jim Anderson wrote: > Having said that, I'm a bit surprised that there was not > error message generate by  tomcat about seeing a reference > to and with no definition available. I would guess that JSP processor allows unknown tags in case its output is to be proces

Re: Reading POSTed data

2009-06-16 Thread Len Popp
2009/6/16 Caldarale, Charles R : >> From: Kyle Brantley [mailto:k...@averageurl.com] >> Subject: Reading POSTed data >> I cannot figure out how to read this posted data from the servlet. > > Read the servlet spec, not just the javadocs; section 3.1 discusses how POST > data should be retrieved (as

Re: [SECURITY] CVE-2009-0580 Apache Tomcat User enumeration vulnerability with FORM authentication

2009-06-04 Thread Len Popp
It looks to me like the change fixes an NPE when a null or nonsense password is given. The NPE would allow an attacker to determine if a username is valid (without having to know the password). Not the most serious security breach, but login protocols aren't supposed to let you guess usernames. --

Re: Service fails to start

2009-05-28 Thread Len Popp
This error occurs when it can't find the Microsoft C runtime library. Try copying the file msvcr71.dll from the Java bin directory to the Tomcat bin directory. -- Len On Thu, May 28, 2009 at 16:39, cum.nex wrote: > > Tomcat installed from apache-tomcat-6.0.18.exe in WXP SP2 + Java from > jre-6

Re: retrive Arabic data

2009-05-28 Thread Len Popp
On Thu, May 28, 2009 at 15:35, André Warnier wrote: > Hi. > My knowledge of java and Tomcat is limited, so I may be off-base here. > But I have also has occasional issues with Tomcat and non-US character sets > on various Windows platforms. > Just for information, what is the basic Windows languag

Re: Compile JSP before the first request arrives

2009-05-27 Thread Len Popp
On Wed, May 27, 2009 at 09:51, Serge Fonville wrote: > Hi > >> Some JSP containers (as per section 8.4.2 of the JSP 1.2 specification) >> support the capability of precompiling a JSP page. >> >> To precompile a JSP page, access the page with a query string of >> ?jsp_precompile > > How is this dif

Re: Servlets that use response.getOutputStream(): do they play nicely with Tomcat's error pages?

2009-04-29 Thread Len Popp
There's no possible way for Tomcat to "start from scratch". If some data has already been sent to the client, it can't be called back to the server. What's sent is sent. Typically, the HTTP response is buffered because the JSP handler does that automatically. So if an error occurs before the respo

Re: Services not working under Program Files folder

2009-04-07 Thread Len Popp
I have used the service.bat in various versions of Tomcat with no such error. The script you posted is different from the service.bats in Tomcat 5.0, 5.5 and 6.0 that I have lying around. Where did you get your service.bat from? -- Len On Tue, Apr 7, 2009 at 19:52, mailinglist wrote: > Hi, >

Re: [OT] Re: Default Tomcat Page w/o Redirect

2009-03-09 Thread Len Popp
On Mon, Mar 9, 2009 at 16:03, Ken Bowen wrote: > I agree with everything in both posts, but I just don't see what the > /location/ of the jsp files (inside/outside WEB-INF) has to do with it. > All that controls is whether a user/client can find a way to look inside the > file. > One can (as I do)

Re: [OT] Re: Default Tomcat Page w/o Redirect

2009-03-09 Thread Len Popp
ectly by the user. > On Mon, Mar 9, 2009 at 8:23 PM, Len Popp wrote: >> What I mean is, clients *never* access a .jsp file by URL, e.g. >> "http://www.example.com/app/foo.jsp";. > > This is definately wrong. When you call a jsp directly from within a > Servlet-Con

Re: [OT] Re: Default Tomcat Page w/o Redirect

2009-03-09 Thread Len Popp
t's lots easier to modify the format of a web page if the app logic isn't all tangled up in it. This is an application of the model-view-controller (MVC) method of programming. -- Len On Mon, Mar 9, 2009 at 15:04, Gregor Schneider wrote: > Len, > > On Mon, Mar 9

[OT] Re: Default Tomcat Page w/o Redirect

2009-03-09 Thread Len Popp
On Mon, Mar 9, 2009 at 05:13, Gregor Schneider wrote: > JSPs in WEB-INF-folder? > > Well, I'm not familiar with Spring, however, *that* concept is > completely new to me... Really? That's how I write all my apps! Requests are handled by servlets, which forward to JSPs to format their output. Sinc

Re: mod_jk and 304

2009-03-07 Thread Len Popp
I'm not seeing that problem on my system, but I'm running newer versions (httpd 2.2.9 and Tomcat 6.0.18). I do recall seeing some strange 304 responses with 2.0 & 5.5, but it was a while ago and I don't remember if the problem was extra bytes in the response. What version of mod_jk are you using?

Re: ClassNotFoundException org.apache.commons.dbcp.BasicDataSourceFactory

2009-03-03 Thread Len Popp
On Tue, Mar 3, 2009 at 16:53, Gregor Schneider wrote: > I just looked it up in our old server (vanilla download from > tomcat.apache.org, more info: > > Using CATALINA_BASE:   /home/tomcat/local/tomcat55/ > Using CATALINA_HOME:   /home/tomcat/local/tomcat55/ > Using CATALINA_TMPDIR: /home/tomcat/l

Re: Failed installing 'Tomcat5' service

2009-02-12 Thread Len Popp
Is there another version of Tomcat (5.0 or 6.0) already installed? I have seen that error when installing two different versions of Tomcat because both versions try to use the same name for the service, which is not allowed. -- Len On Thu, Feb 12, 2009 at 17:15, boraldo wrote: > > Please help

Re: Fresh install problems

2009-01-25 Thread Len Popp
your Tomcat bin directory with those ones. (Rename tomcat5.exe -> tomcat6.exe, tomcat5w.exe -> tomcat6w.exe.) -- Len On Sun, Jan 25, 2009 at 09:58, Shaolin wrote: > 64 bit > > On 25/01/2009, Len Popp wrote: >> Are you using the 32-bit or 64-bit version of the JRE? >> --

Re: Fresh install problems

2009-01-25 Thread Len Popp
Are you using the 32-bit or 64-bit version of the JRE? -- Len On Sun, Jan 25, 2009 at 09:47, Shaolin wrote: > Ok - So what do I have to do then ? Im really lost, Ive tried every > possible way I know and nothing works. > > On 25/01/2009, Ken Bowen wrote: >> No. >> >> On Jan 25, 2009, at 9:18 AM

Re: SECURITY breach in Tomcat

2009-01-22 Thread Len Popp
Yes, you should remove all other webapps ("manager", "examples", etc.) You can remove ROOT too, unless you've put files in there that you need to serve. -- Len On Thu, Jan 22, 2009 at 14:50, Toby Kurien wrote: > Yea, I rebuild server from scratch. Fortunately, we have virtual > machines so we

Re: SECURITY breach in Tomcat

2009-01-22 Thread Len Popp
This sounds like an attack that has been seen before: http://markmail.org/message/jrqw75yw3d3xh3p6 That message also has tips on tightening security. In those cases it seems that the security hole was a weak password for the manager webapp. -- Len On Thu, Jan 22, 2009 at 10:16, Toby Kurien wro

Re: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Len Popp
On Fri, Jan 16, 2009 at 16:45, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Keith, > > Keith Thomas wrote: >> As part of the >> deployment I just need a way of defining the datasource in a manner that is >> external to my code and configurable by administrators.

Re: Tomcat returns HTTP status of 200 when HttpServletResponse.sendError() called.

2009-01-12 Thread Len Popp
On Mon, Jan 12, 2009 at 19:58, Nathan Potter wrote: > > On Jan 12, 2009, at 3:34 PM, Caldarale, Charles R wrote: > >> Don't think so. Does your code happen to call response.setStatus(200) >> somewhere along the way? >> >> - Chuck > > > > > Well at first I didn't think so, but now I am wondering..

Re: Is it possible to install both TOMCAT5.5 & TOMCAT6?

2009-01-02 Thread Len Popp
The problem is that the Tomcat 5.5 and 6.0 installers are both using the same "display name" for the service ("Apache Tomcat"), and Windows doesn't allow that. You can install the service correctly using service.bat in Tomcat's bin directory. 1. Install one version of Tomcat (let's say 5.5). The s

Re: [OT] Basic int/char conversion question

2009-01-01 Thread Len Popp
On Thu, Jan 1, 2009 at 14:39, André Warnier wrote: > I note with satisfaction that I'm not the only one laboring away on this > day-after, but you're just all going a bit too fast for me and my growing > but still limited Java knowledge. No hang-over here. :-) > In other words, in order to keep

Re: [OT] Basic int/char conversion question

2009-01-01 Thread Len Popp
On Thu, Jan 1, 2009 at 12:09, Caldarale, Charles R wrote: >> From: Len Popp [mailto:len.p...@gmail.com] >> Subject: Re: [OT] Basic int/char conversion question >> >> Another option: Read the bytes into a ByteBuffer, then convert >> the bytes into a string. You c

Re: [OT] Basic int/char conversion question

2009-01-01 Thread Len Popp
On Thu, Jan 1, 2009 at 11:13, André Warnier wrote: > Hi. > > This has nothing specific to Tomcat, it's just a problem I'm having as a > non-java expert in modifying an exiting webapp. > I hope someone on this list can answer quickly, or send me to the > appropriate place to find out. I have tried

Re: Hot to disable DST option from tomcat cinfiguration.

2008-12-30 Thread Len Popp
You can use a time zone name like "GMT+1" to specify a time zone with no DST rules. See the documentation for java.util.TimeZone for more info. -- Len On Tue, Dec 30, 2008 at 07:25, arif8899 wrote: > > i set a variable in tomcat configuration and that is > "-Duser.timezone=Europe/Brussels". i

Re: [OT] JK Connector problem

2008-12-07 Thread Len Popp
On Sun, Dec 7, 2008 at 14:27, André Warnier <[EMAIL PROTECTED]> wrote: > I believe the point some people (me) are trying to make is that it is not > because MS does stupid things, that all software developers have to follow > suit. And specially not open source software developers. > "Apache Group

Re: [ANN] Apache Tomcat 4.1.39 stable is released

2008-12-03 Thread Len Popp
On Wed, Dec 3, 2008 at 10:30, André Warnier <[EMAIL PROTECTED]> wrote: > Remembering numerous exhortations on this list to upgrade, I must say this > announcement is somewhat surprising to me. So there are older versions > which are still maintained/enhanced ? Yes. See http://tomcat.apache.org/#A

Re: java.lang.Exception: Socket bind failed: [730048]

2008-11-20 Thread Len Popp
The command "netstat -ao" will tell you which process is listening on port 80, and Task Manager will show which program is running in that process. -- Len On Thu, Nov 20, 2008 at 14:47, Toby Kurien <[EMAIL PROTECTED]> wrote: > Well, I have had this application for many years and usually > resta

Re: Servlets / JSP can't connect to MySQL in Ubuntu Server

2008-11-20 Thread Len Popp
On Thu, Nov 20, 2008 at 07:37, Krapacs Ambrose <[EMAIL PROTECTED]> wrote: > I have to say that I do not think Tomcat is doing the right thing in this > particular situation. There should be some sort of security exception being > thrown indicating that the socket connection was being block by tomca

Re: [ANNOUNCE] Beta candidate for Tomcat connection pool

2008-11-13 Thread Len Popp
A brief list of reasons is given in the link from Filip's post: https://issues.apache.org/bugzilla/show_bug.cgi?id=46038 The most important reason IMO is that you can't build Tomcat with a recent JDK. See: https://issues.apache.org/bugzilla/show_bug.cgi?id=43147 -- Len On Thu, Nov 13, 2008 at 1

Re: JAVA_HOME is not found but tomcat is running. possible?

2008-10-17 Thread Len Popp
When it's running as a service, Tomcat gets the location of Java from the registry, not from JAVA_HOME. You can change this and other settings using tomcat4w.exe. -- Len On Fri, Oct 17, 2008 at 09:28, Thangavel Sankaranarayanan <[EMAIL PROTECTED]> wrote: > Hi all , > > I have a tomcat 4.x versi

Re: [OT] Why can NOT run Tomcat on my Laptop

2008-10-11 Thread Len Popp
On Sat, Oct 11, 2008 at 16:45, André Warnier <[EMAIL PROTECTED]> wrote: > Caldarale, Charles R wrote: >>> >>> From: IceManPat [mailto:[EMAIL PROTECTED] >>> Subject: Re: Why can NOT run Tomcat on my Laptop >>> >>> C:\>set JAVA_HOME =D:\Program Files\Java\jdk1.6.0_07 >> >> The problem is you have a s

Re: tomcat 6.0.18 and JDK 6

2008-10-01 Thread Len Popp
a file msvcr71.dll -- Regards, Andy Susanto,S.Kom == for better search http://www.slashmysearch.com/earn/id/24828 HP : 081513039998 On Wed, Oct 1, 2008 at 9:39 PM, Len Popp <[EMAIL PROTECTED]> wrote: That usually happens because it can&#x

Re: tomcat 6.0.18 and JDK 6

2008-10-01 Thread Len Popp
That usually happens because it can't find msvcr71.dll (Microsoft C runtime). Copy that file from Java's bin directory to Tomcat\bin. -- Len On Wed, Oct 1, 2008 at 10:29, ib solution <[EMAIL PROTECTED]> wrote: > hai, > > i would like to use tomcat 6.0.18 and JDK 6 update 7 > > the installation no

Re: How do you have your dev environment setup?

2008-09-16 Thread Len Popp
I use Eclipse with the Web Standard Tools plug-in. That lets me run and debug the app in Eclipse. When the app is ready to go I export it to a .war file and deploy the .war to the server. -- Len On Tue, Sep 16, 2008 at 17:59, Bai Shen <[EMAIL PROTECTED]> wrote: > I've been doing a lot of webapp

Re: Exception when trying to configure a pool of connections for use of WS

2008-09-06 Thread Len Popp
Does the error occur in that piece of code or is it during Tomcat startup? The stack trace looks like the exception is thrown during startup, if I'm reading it correctly. -- Len On Sat, Sep 6, 2008 at 06:29, Daniele Development-ML <[EMAIL PROTECTED]> wrote: > Thanks David! > The code is: > > Clas

Re: difference in how applications are displaying

2008-09-06 Thread Len Popp
If the same browser is displaying the two pages differently, there must be a difference in the web pages. Compare the HTML of the pages as they are received by the browser. Also compare any CSS and Javascript files referenced by the HTML page. -- Len On 05/09/2008, Scott, Ewan <[EMAIL PROTECTED]>

Re: question

2008-09-03 Thread Len Popp
Sun says that their Java 5 does run on Windows 98 SE - see here: http://java.sun.com/j2se/1.5.0/system-configurations.html Jojo, can you post the whole error message? The problem might be that the Microsoft C runtime lib is missing - or maybe not. -- Len On Wed, Sep 3, 2008 at 17:48, Steve Och

Re: ERROR Starting 2nd instance of Tomcat

2008-08-28 Thread Len Popp
Where does that "In the config file" come from? It's not in a Tomcat script, is it? -- Len On Thu, Aug 28, 2008 at 18:54, Eduardo Ponce de León <[EMAIL PROTECTED]> wrote: > > > I am trying to run a 2nd instace of tomcat. For this, ive duplicated the > tomcat folder and modified the server.xml fil

Re: Tomcat 5.5 won't use APR

2008-08-27 Thread Len Popp
On Wed, Aug 27, 2008 at 12:03, Gregor Schneider <[EMAIL PROTECTED]> wrote: > If I'm not mistaken, Tomcat should state in tomcat.log.INFO that it is > using APR, right? Right. > So according to the above tomcat.log.INFO, is it > true that in my case Tomcat is not using the APR? No, it also logs a

Re: Re: errors in deploying war file to tomcat 5.5

2008-08-24 Thread Len Popp
Shouldn't the .jar file go in WEB-INF/lib? Where is the commons-fileupload.jar file? commons-io.jar should go in the same directory. .war and .jar files are the same as .zip files, so you can unpack them using any utility that unpacks .zip files. On Windows, the easiest way is to rename the file w

Re: errors in deploying war file to tomcat 5.5

2008-08-23 Thread Len Popp
>From the stack trace, it looks like you're missing commons-io.jar, or it's the wrong version. commons-io.jar is required by commons-fileupload.jar. Make sure you have the correct versions of both of those files. -- Len On Sat, Aug 23, 2008 at 10:53, sam wun <[EMAIL PROTECTED]> wrote: > Hi, > >

Re: I WANT Tomcat to die when a given servlet fails to initialize

2008-08-22 Thread Len Popp
There isn't a clean way for webapps to shut down the server because they're not really supposed to do that. :-) If you thrown an UnavailableException from a servlet's init method, that servlet won't run. If you do app initialization in a ServletContextListener and throw an exception from the conte

Re: Remastering tomcat installer ..

2008-08-21 Thread Len Popp
The source code for the latest Tomcat release is in the Subversion repository here: http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_18/ The build script for the release package is here: http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_18/dist.xml The NSIS install script

Re: Tomcat can't see a new function

2008-08-20 Thread Len Popp
Is there an older copy of the jar in another directory where it gets picked up before your new one? -- Len On Wed, Aug 20, 2008 at 21:33, Daniel L. Gross <[EMAIL PROTECTED]> wrote: > I have a strange problem. I am using Borland to compile my source files and > create jar files. For some reason

Re: Custom error page with stacktrace

2008-08-20 Thread Len Popp
In your error page, the variable "exception" is set to the exception (if any). You can get the error message and stack trace from the exception like this: Exception message: <%= (exception == null) ? "" : exception.getMessage() %> <% String stStack = ""; if (exception != null) { java.io.St

Re: java version in windows and tomcat server

2008-08-19 Thread Len Popp
No, it will not work. If you compile with a new compiler you need a new JRE to run it. You can tell Eclipse to compile the code for an older JRE. The setting is in Project > Properties > Java Compiler. -- Len On Tue, Aug 19, 2008 at 09:44, sam wun <[EMAIL PROTECTED]> wrote: > Hi, > > when I cr

Re: Post form with "x-www-form-urlencoded" content type and Coyote Connector

2008-08-18 Thread Len Popp
No, when a browser sends a POST request the request params are *not* sent as part of the request URI. They are sent in the body of the request. With Content-Type: application/x-www-form-urlencoded the request body looks like this: param1=a¶m2=b You can use a browser plugin such as LiveHTTPHeaders

Re: where to place context configuration

2008-08-15 Thread Len Popp
Schultz <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Len, > > Len Popp wrote: >> So, the server admin can configure the DB server etc. by editing the >> file under the conf dir, but every time they deploy a new version of >

Re: where to place context configuration

2008-08-14 Thread Len Popp
On Thu, Aug 14, 2008 at 15:55, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > If you just want to replace the webapp, then dropping in a new .war file will > not lose the element in conf/Catalina/[host]/[appName].xml file, but things > may not be cleaned up properly, especially on Windows syst

Re: where to place context configuration

2008-08-14 Thread Len Popp
So, the server admin can configure the DB server etc. by editing the file under the conf dir, but every time they deploy a new version of the app the settings are auto-wiped? Setting aside for the moment what you think I deserve... That's far from ideal in an environment where the developers and t

Re: where to place context configuration

2008-08-14 Thread Len Popp
What you're missing is how Tomcat copies the META-INF/context.xml file to conf/localhost/Catalina/mywebapp.xml under some circumstances. (Not surprising that you missed this, since it doesn't seem to be mentioned in the Tomcat docs.) One guess is that context.xml is copied into the conf directory

Re: startup order for deployment

2008-08-13 Thread Len Popp
If you need to call the web service during startup, you could retry the call as long as you get a service-not-available error. Or you could find a way to synchronize the two webapps (e.g. using a shared class if they're always going to be on the same server). Or maybe you could load & cache the dat

Re: startup order for deployment

2008-08-13 Thread Len Popp
You cannot control the order in which the webapps start. There are ways that you can ensure the initialization is complete before your webapp starts accepting requests, but first ask yourself: Why? Your webapp must be able to handle the situation of the web service being down, so is it really a pro

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

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: 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: 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: 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: 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
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: 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: 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: 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
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: 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

  1   2   3   4   >