AW: ServletContextListener and HttpSessionActivationListener

2004-09-08 Thread Michael Sudkamp
But it's not explicit enough, and for that you should ask the Servlet Expert Group (you can find a link for that on the JSR154 home page). Yes, I sent them a comment. Best regards Michael - To unsubscribe, e-mail: [EMAIL

Re: TOMCAT_OPT questions (-Xms, -Xmx)

2004-09-08 Thread nyhgan
thanks everyone for the answers! I will try a profiling tool later.. Thanks! Reynir_Þór_Hübner [EMAIL PROTECTED] wrote:Hi, nyhgan wrote: 1. I see a lot of java process running on my machine when I do a 'ps' to show the process list. So how many JVM are actually started by the

RE: web.xml security configuration.

2004-09-08 Thread David . Pawson
-Original Message- From: Ruth, Brice The security constraint is based on the actual URL requested, not the resource that is being accessed. So, if you're accessing: http://my.host.com/ - and its actually loading

[uri:127.0.0.1/servlet/*] in have no effect in servlet processing

2004-09-08 Thread nyhgan
Hi, It looks like that the [uri:127.0.0.1/servlet/*] settings in the workers2.properties doesn't have any effect jsp/servlet processing. I have to use the JkUriSet in the httpd.conf to make the servlets working. If that is the case, why do we need to have the uri in the workers2.properties

load balancing in workers2.properties

2004-09-08 Thread nyhgan
Hi, does anyone have a sample workers2.properties that can enable the load balancing between two tomat instances? Thanks! nyhgan - Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage!

RE: FW: is reloading the web context sufficient ?

2004-09-08 Thread Quinten Verheyen
What version of Tomcat are you referring to? Tomcat 4.1.x or Tomcat 5.0.x? Tomcat 5.0.25 to be exact ;) -Original Message- From: David Rees [mailto:[EMAIL PROTECTED] Sent: 07 September 2004 21:48 To: Tomcat Users List Subject: Re: FW: is reloading the web context sufficient ? Quinten

RE: basic authentification with IIS (tomcat 5.x) [FOUND]

2004-09-08 Thread Quinten Verheyen
Hi Philippe, are you absolutely forced to use IIS and Tomcat together or do you have a choice ? -Original Message- From: Philippe Lonchampt [mailto:[EMAIL PROTECTED] Sent: 07 September 2004 22:32 To: [EMAIL PROTECTED] Subject: Re: basic authentification with IIS (tomcat 5.x) [FOUND]

More than one thread

2004-09-08 Thread Bedrijven.nl
Hi, When I looked to my threads i saw this for one application: T Thread[StandardManager[/aclive],5,main] T Thread[StandardManager[/aclive],5,main] T Thread[StandardManager[/aclive],5,main] T Thread[StandardManager[/aclive],5,main] T

Re: Can't get servlet to work on tomcat5.0.x.

2004-09-08 Thread Jon Wingfield
You need a servlet-mapping for your servlet. The Invoker servlet, which gives you a configuration shortcut, has been disabled since Tomcat 4.1.12. http://jakarta.apache.org/tomcat/faq/misc.html#invoker nyhgan wrote: Hi, I finished the apach2 and tomcat5.0.27 integration today, The JSP is

More than one thread part II

2004-09-08 Thread Bedrijven.nl
Hello I submitted a question about multiple threads (See message below). What I discovered is that I have defined 7 (virtual) hosts in my engine tag (server.xml). And during startup Tomcat initiated 7 times (I think for each host all the hosts again) each application, but one time is enough or

Re: TLS-Enabled Connector Prevents Startup

2004-09-08 Thread Endre Stølsvik
On Tue, 7 Sep 2004, Igor Zlatkovic wrote: | I have found the solution and will share it here incase someone | encounters a similar problem in the future. | | The solution is: | | # cd /dev | # mv random random-old | # ln -s urandom random | | however bizarre that may sound. It seems that

RE: Setting JVM == file.encoding = Cp1252

2004-09-08 Thread Allistair Crossley
Ben, file.encoding is a JVM parameter specified e.g java -Dfile.encoding=Cp1252 SomeClass There is no need to set this in server.xml when you can do this in the startup scripts for TC. You could even try within Java code System.setProperty(file.encoding, Cp1252); ADC -Original

AW: Setting JVM == file.encoding = Cp1252

2004-09-08 Thread Ben Bookey
Hi Allistair (once again), I have no hair anymore !! Just so I understand correctly, this parameter means that all text files read and written with java, will write using the specified encoding. regards Ben -Ursprüngliche Nachricht- Von: Allistair Crossley [mailto:[EMAIL PROTECTED]

RE: Tomcat5 and Servlet Timeout: Possible?

2004-09-08 Thread Ralph Einfeldt
You may try following snippet as a base for a filter. (I havn't tried it in a filter chain, so no garantee) Filter InterruptTimer mTimer = new InterruptTimer(5000, 10); mTimer.start(); try { doChain() // Don't have the correct syntax at hand... } catch (??InterruptedIOException?? ex) { //

Server side redirect

2004-09-08 Thread Sreejith
Hi all, It is possible to do a server side redirect to another Tomcat Server (any other web server)? I dont want to use status codes 3xx, as this involves the user agent in redirection. Sreejith

RE: Setting JVM == file.encoding = Cp1252

2004-09-08 Thread Allistair Crossley
hi ben, the jvm always operates with utf. Data transferred into or out of the jvm is in a format matching the file.encoding property. i don't understand why you wish to change the file.encoding. the jvm file encoding should really match your file system, that's why on windows it is Cp1252

Re: Server side redirect

2004-09-08 Thread Tim Funk
Tomcat 5 has a balancer webapp. -Tim Sreejith wrote: Hi all, It is possible to do a server side redirect to another Tomcat Server (any other web server)? I dont want to use status codes 3xx, as this involves the user agent in redirection. Sreejith

Re: Server side redirect

2004-09-08 Thread Sjoerd van Leent
Sreejith wrote: Hi all, It is possible to do a server side redirect to another Tomcat Server (any other web server)? I dont want to use status codes 3xx, as this involves the user agent in redirection. Sreejith What you are asking is to locate a resource on another server. If you want to do

RE: Server side redirect

2004-09-08 Thread Sreejith
Thanks for the reply Sjoerd.. I am trying to write a framework over Tomcat, which can be used to manage the web apps. The framework maintains certain access levels based on the request data (from client). Following certains buisness rules, framework does forwarding (server side, using req

Re: AW: ThreadPool: Pool exhausted with 100 threads

2004-09-08 Thread Ronald Klop
Hi Matt, Another option is this. If you do 'kill -QUIT process-id' on Linux or ctrl-break on Windows in the dosbox running Java (if this is how you run Tomcat) it will print all stacktraces of all threads. Very helpfull to track down lost Threads. And another 'trick' I use is the following

Running Tomcat 5.5.1 With J2SE Version 1.3

2004-09-08 Thread Evgenij Galperin
Hi all, i'm trying to run Tomcat 5.5.1 with JDK 1.3.1_06 (compat package is properly installed). When I try to start it, it won't start up, in console I get this message: Exception in thread main java.lang.UnsupportedClassVersionError: org/apache/catalina/startup/Bootstrap (Unsupported

Re: Running Tomcat 5.5.1 With J2SE Version 1.3

2004-09-08 Thread Remy Maucherat
On Wed, 8 Sep 2004 13:35:24 +0200, Evgenij Galperin [EMAIL PROTECTED] wrote: Hi all, i'm trying to run Tomcat 5.5.1 with JDK 1.3.1_06 (compat package is properly installed). When I try to start it, it won't start up, in console I get this message: Anyone any idea??? Tomcat 5.5 will not

RE: Setting JVM == file.encoding = Cp1252

2004-09-08 Thread Allistair Crossley
Hi Ben, You appear to be right that this euro encoding is a right bastard. I have no idea how I have it working on our production server now. I have created a mini-webapp for anyone on this list who cares to have a go at this; www.adcworks.com/encode.zip Unzip this into an encode folder in

Re: Server side redirect

2004-09-08 Thread Sjoerd van Leent
Okay, you are trying to perform a forward from one server to another. Well the most easy option is to use a 306 but as you stated, you don't want to use any header redirects (though all conformant browsers accept these). Your next option is to reroute the messages from your server to another

Client-side caching via If-Modified-Since

2004-09-08 Thread Joost Baaij
Hi all, I'm new to the list. Have searched on the web for answers to my question, but was unable to find much. Summary: I am trying to utilize client-side caching via the If-Modified-Since request header and 304 response code for jsp pages. There is a mechanism in Tomcat that returns status 304

RE: org/apache/jsp/index_jsp (wrong name: index_jsp)

2004-09-08 Thread Shapira, Yoav
Hi, http://jakarta.apache.org/tomcat/faq/classnotfound.html. Yoav Shapira Millennium Research Informatics -Original Message- From: Arun Prasad R [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 1:06 AM To: [EMAIL PROTECTED] Subject: org/apache/jsp/index_jsp (wrong name:

Re: Client-side caching via If-Modified-Since

2004-09-08 Thread Tim Funk
It belongs in a filter like you have done. It doesn't belong in tomcat. Also your filter isn't correct - it is still executing your JSP code and wasting resources. It should be: doFilter() { ... if (contentIsFresh) { httpResponse.sendError(HttpServletResponse.SC_NOT_MODIFIED); } else {

RE: AW: Tomcat5 and Servlet Timeout: Possible?

2004-09-08 Thread Shapira, Yoav
Hi, I would investigate the JDK bug more, and maybe switch to a different JDK version, if I were you. Yoav Shapira Millennium Research Informatics -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Schildbach Sent: Tuesday, September 07, 2004 5:21 PM To:

RE: Some pretty basic Tomcat Connection Pooling Questions????

2004-09-08 Thread Shapira, Yoav
Hi, You might want to get a book on good Java design practices. The basic ideas are there: - Hold the connection for as little a time as possible. That is, get it from the pool, use it, and return it to the pool as soon as possible. - That means you don't get the connection in a servlet init()

RE: Tomcat on CD-ROM

2004-09-08 Thread Shapira, Yoav
Hola, As another alternative, I just recently added an option to disable the TLD scanning (someone asked for it as an enhancement). If it's not in 5.0.28, it'll be in 5.0.29 (and it's in CVS now on the TOMCAT_5_0 branch, which you can build easily). Yoav Shapira Millennium Research Informatics

Re: More than one thread part II

2004-09-08 Thread QM
On Wed, Sep 08, 2004 at 10:58:14AM +0200, Bedrijven.nl wrote: : I submitted a question about multiple threads (See message below). What I : discovered is that I have defined 7 (virtual) hosts in my engine tag : (server.xml). And during startup Tomcat initiated 7 times (I think for each : host all

Re: Can't get servlet to work on tomcat5.0.x.

2004-09-08 Thread QM
On Tue, Sep 07, 2004 at 09:31:48PM -0700, nyhgan wrote: : I finished the apach2 and tomcat5.0.27 integration today, The JSP is fine, but the servlets are not working. When I try to login to my application, I got the this page cannot be displayed message. There are no error messages in

Re: NoClassDefFoundError Issue

2004-09-08 Thread Avinash R S
Hi QM, Thanks for the reply We have not done any change to the application during server restart. We tried to deploy the application from the WAR file again and we are facing the NoClassDefFoundError. Avinash R S - Original Message - From: QM [EMAIL PROTECTED] To: Tomcat Users List

RE: More than one thread part II

2004-09-08 Thread Bedrijven.nl
thanx QM. They share the same appBase. Is this a problem (for instance performance) or not?? And what should i do then?? Isn't turning autodeploy to false not enough?? Maarten p.s. do you know where in the archive? -Oorspronkelijk bericht- Van: QM [mailto:[EMAIL PROTECTED] Verzonden:

Re: More than one thread part II

2004-09-08 Thread QM
On Wed, Sep 08, 2004 at 03:01:56PM +0200, Bedrijven.nl wrote: : They share the same appBase. Is this a problem (for instance performance) or : not?? And what should i do then?? Isn't turning autodeploy to false not : enough?? You tell me -- what do the Tomcat docs say about deployOnStartup vs

Re: Client-side caching via If-Modified-Since

2004-09-08 Thread Tim Funk
There is no need for the response's last modified header. Unless you wish to set a header in the caching response header. But at that point - that is your code setting it, not tomcat. If a client is sending a If-Modified-Since header - that means they have retrieved the content at some time.

Re: Why is Tomcat/Connector Installation So Incredibly Painful??

2004-09-08 Thread Greg Ward
On 07 September 2004, Endre St?lsvik said: The mod_jk approach of inventing a new binary protocol and whatnot is maybe not the right solution for this. A simple raw forwarding of the requests from Apache HTTPD to Apache Tomcat would be incredibly nice. Do what I did: try to replace mod_jk with

RE: Why is Tomcat/Connector Installation So Incredibly Painful??

2004-09-08 Thread Shapira, Yoav
Hi, * to forward both SSL and non-SSL requests with mod_proxy, you'd need two HTTP connectors in Tomcat, meaning two thread pools This is a serious stumbling block? Really? I buy your other (redirect-related) argument but not this one at all. You can easily configure thread pools to

Re:OFF TOPIC: Some pretty basic Tomcat Connection Pooling Questions????

2004-09-08 Thread Michael McQuade
Ok Yoav, so as I understand it, I open up my application say in the morning, by logging in my company.. I do not close the connection to my database Now any number of users can log into it, as they login (servlet) I do not need to open and close my database to update it?? this

Re: Why is Tomcat/Connector Installation So Incredibly Painful??

2004-09-08 Thread Greg Ward
[me] * to forward both SSL and non-SSL requests with mod_proxy, you'd need two HTTP connectors in Tomcat, meaning two thread pools [Yoav Shapiro] This is a serious stumbling block? Really? I buy your other (redirect-related) argument but not this one at all. You can easily configure

RE: OFF TOPIC: Some pretty basic Tomcat Connection Pooling Questions????

2004-09-08 Thread Shapira, Yoav
Hi, Your application is not started when you log into it. It's started when the server is started. That's when a connection pool should be created. You don't hold the connection as long as the user is logged in. You just use the connection to authenticate the user and then release the

RE: Why is Tomcat/Connector Installation So Incredibly Painful??

2004-09-08 Thread Shapira, Yoav
Hi, It wasn't the overhead of the extra thread pool that bothered me, it's more the fact that Tomcat would be unable to amortize thread creation as well. Eg. if I have one thread pool with max 75 threads for *all* requests, then Tomcat only has to create 75 threads, period. But if I need a

JDT-Compiler character encoding

2004-09-08 Thread Michael Schuerig
I've tried the following for combinations of settings, where jspx denotes the encoding declared and used in my jspx document, jsp-javaEncoding is declared in conf/web.xml, and jasper-out is the relevant line in the generated xxx_jspx.java. (1) jspx: ISO-8859-1 jsp-javaEncoding: not explicitly

Re: org/apache/jsp/index_jsp (wrong name: index_jsp)

2004-09-08 Thread Arun Prasad R
Hi, i get this problem only when my web.xml entry removed, also if i rename that index.jsp to someothername.jsp, dynamic compilation is done only for the file index.jsp dynamic compilation is not done Arun On Wed, 8 Sep 2004 08:40:00 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote: Hi,

RE: basic authentification with IIS (tomcat 5.x) [FOUND]

2004-09-08 Thread philippelonchampt
Hi, I'm forced. But I'm trying to move to an Apache/Tomcat solution, but there are some problems for my client. Anyway, I don't know well Apache, but it seems to be easy to configure with Tomcat ? Selon Quinten Verheyen [EMAIL PROTECTED]: Hi Philippe, are you absolutely forced to use IIS and

Re: Clustering and Virtual Hosts

2004-09-08 Thread Filip Hanik - Dev
Computer 1: You don't want to have the same multicast address. this address is what decides group membership. There is no point in two contexts from two different virtual host to be part of the same group, it will do nothing but cause over head. So give each virtual host their own mcast address.

AW: More than one thread part II

2004-09-08 Thread SH Solutions
Hi I have defined 7 (virtual) hosts in my engine tag (server.xml). And during startup Tomcat initiated 7 times (I think for each host all the hosts again) each application, but one time is enough or not?? You have 7 hosts. Each applications belongs to EXACTLY ONE host. If your appBase is the

RE: chinese charsets not supported on Tomcat5.0.28?

2004-09-08 Thread nyhgan
Hi Mark, I just tried 5.0.27, and the chinese pages displays fine. For 5.0.28, no matter which encoding I use on the Internet explorer to display the pages, all I see is ?.. nyhgna. Mark Thomas [EMAIL PROTECTED] wrote:I have tested this repeatedly and have yet to find any

RE: chinese charsets not supported on Tomcat5.0.28?

2004-09-08 Thread Shapira, Yoav
Hi, I'd guess it's related to this bug fix in 5.0.28: If ServletResponse.getWriter() is called and no char encoding has been specified, set response char encoding to default (ISO-8859-1) so that it is reflected in getContentType() and Content-Type header, as required by the Servlet Spec (Bugtraq

session replication slow/problems in 5.0.28

2004-09-08 Thread Joachim Martin
Hello, I have successfully gotten replication working. However, every 5-10 hits or so, the request takes forever, and I see the following in the log: Sep 8, 2004 11:33:38 AM org.apache.catalina.cluster.tcp.SocketSender waitForAck WARNING: Wasn't able to read acknowledgement from

Help with Tomcat Install?

2004-09-08 Thread Lash, David A (David)
Hi I am trying to figure out why my tomcat install is not working. System: Apache 1.3.29 Server: Solaris 8 Tomcat: 4.1.18 I installed tomcat (setting my CATALINA_HOME and JAVA_HOME). When I go to http://localhost:8080 I cannot display the 'default page'. Any idea why? Enclosed is the 'page'

Re: session replication slow/problems in 5.0.28

2004-09-08 Thread Filip Hanik - Dev
ok, you want to find out what is taking so long, are you storing megabyte size stuff in your session? The socket is timing out cause it is not receiving an acknowledgement from the other server. Also, what OS and JDK are you on, if you are on linux, you will need to set LD_ASSUME_KERNEL=2.4

Re: Help with Tomcat Install?

2004-09-08 Thread QM
On Wed, Sep 08, 2004 at 10:49:41AM -0500, Lash, David A (David) wrote: : When I go to http://localhost:8080 I cannot display the 'default page'. Any idea why? Step 1 of Apache/jk(2)/Tomcat debugging: take Apache and JK out of the picture. Enable an HTTP connector on Tomcat and access it

Re: Help with Tomcat Install?

2004-09-08 Thread John Villar
Well, certainly your Tomcat setup works fine, look at the end of your response page it could be, however, that the default webapp hasn't been installed, check webapps/ROOT and see if it is there, its a default response servlet in the WEB-INF/web.xml file Lash, David A (David) escribió: Hi

Re: Help with Tomcat Install?

2004-09-08 Thread Gerardo Juarez
Ok, you installed Tomcat, but is it running? Something like: $CATALINA_HOME/bin/start.sh should have happened before pointing at http://localhost:8080. It's a common mistake. Gerardo On Wed, 8 Sep 2004, Lash, David A (David) wrote: Hi I am trying to figure out why my tomcat install is not

RE: Help with Tomcat Install?

2004-09-08 Thread Lash, David A (David)
Thanks for the response. I do appear to have a ROOT/WEB-INF/web.xml file. It looks like the enclosed page. So that seems fine. Please let me know if you have any other ideas. Thanks Dave lash ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web

Re: session replication slow/problems in 5.0.28

2004-09-08 Thread Joachim Martin
Hi Filip, SunOS 5.6 (from uname -a; not sure what that corresponds to) java version 1.4.0 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92) Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode) I didn't realize I was using 1.4.0- I also have 1.4.2_04 available, and tried it

RE: Help with Tomcat Install?

2004-09-08 Thread Lash, David A (David)
Thanks for the help, though I did startup.sh. It appears to start (I have a tomcat deamon running). The file logs/Catalina.out was not clean during the startup (don't know if that is normal). It looks like the enclosed Thanks Dave lash Catalina.start: LifecycleException: Protocol handler

Re: Tomcat on CD-ROM

2004-09-08 Thread Ruth, Brice
Just a heads up to others who might be trying this. I was able to successfully launch Tomcat (with TLD scanning), by simply setting the CATALINA_TMPDIR variable. Not sure why this didn't occur to me previously, but hey - at least it works now! If anyone wants details on what we did to put the

Re: web.xml security configuration.

2004-09-08 Thread Ruth, Brice
[EMAIL PROTECTED] wrote: in my web.xml I have servlet-mapping servlet-namerepository/servlet-name url-pattern/repository/url-pattern /servlet-mapping servlet-mapping servlet-namegetit/servlet-name url-pattern/getit/url-pattern /servlet-mapping I.e. its a one to one, so if I

Re: Help with Tomcat Install?

2004-09-08 Thread John Villar
Yep, there isn't any default servlet definition, that's why you aren't seeing the tomcat default page. Web.xml should have some servlet and servlet-mapping definitions on it anyhow, you should add something to ROOT/ and see if you can touch that file via

Re: Help with Tomcat Install?

2004-09-08 Thread John Villar
Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 This error is saying that port 8080 is already

AW: Setting JVM == file.encoding = Cp1252

2004-09-08 Thread Ben Bookey
Dear Allistair, (et.al) Many many many thanks for ALL your help. The problem has disapeared! oh joy, oh rapture unforseen The problem seemed to disapear when I inserted a filter-mapping where servlets are mapped, for the incoming request filter which converts all request objects to utf-8 for

Re: Help with Tomcat Install?

2004-09-08 Thread Avinash R S
It looks like the port is being used by another application. Run Shutdown.sh once, and then run startup.sh and still if you get the same error as Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 Then some other

RE: Setting JVM == file.encoding = Cp1252

2004-09-08 Thread Allistair Crossley
lol, good good .. now why doesn't my version work lol ;) -Original Message- From: Ben Bookey [mailto:[EMAIL PROTECTED] Sent: 08 September 2004 17:23 To: Tomcat User List Cc: Allistair Crossley Subject: AW: Setting JVM == file.encoding = Cp1252 Dear Allistair, (et.al) Many

RE: Help with Tomcat Install?

2004-09-08 Thread Shapira, Yoav
Hi, There is at least one of other possible cause for this error. Perhaps your shutdown cannot be completed normally. For example, if you start a non-daemon thread from your app and never shut it down, it will keep running. That will prevent the JVM process from exiting and the port will stay

Re: Help with Tomcat Install?

2004-09-08 Thread John Villar
I think that's not the case, look that he gets a 404 status from tomcat with a Apache Tomcat/4.1.18 signature at the end the problem he's having is that the default servlet for tomcat root isn't insatalled very rare indeed, but that's the case Shapira, Yoav escribió: Hi, There is at

RE: Help with Tomcat Install?

2004-09-08 Thread Shapira, Yoav
Hi, I don't think so ;) You're confusing two threads here. This guy doesn't get a 404, he gets a bind exception. There's no way to rule out the option I suggested from the information he's posted so far. Your suggestion to the other guy who's getting the 404 is also likely wrong: the

SSL encryption

2004-09-08 Thread Robert Harper
What is the default encryption level with SSL in Tomcat? I have created a private key with the RSA algorithm an using SSL in the connection descriptor. I need to know what bit encryption is used whit a default setup and if I can change that. Robert S. Harper Senior Engineer 1100 East 6600

Re: Help with Tomcat Install?

2004-09-08 Thread Avinash R S
John, Root App does not have a servlet. The page accessed is a static html page ROOT/index.html. Then verify whether index.html file along with 3 image files is available at location ROOT app. Best Regards, Avinash R S - Original Message - From: John Villar [EMAIL PROTECTED] To:

RE: Help with Tomcat Install?

2004-09-08 Thread Lash, David A (David)
Hi all Here is the contents of webapps/ROOT WEB-INF/ index.jspjakarta-banner.gif tomcat-power.gif tomcat.gif I also tried http://localserver:8080/index.jsp And got the same 404 error. So its like tomcat is looking in a different directory. Is there a config file

Re: session replication slow/problems in 5.0.28

2004-09-08 Thread Filip Hanik - Dev
I believe the timeout is related to NIO hickups, and there were plenty in the Sun implementation. See if you can get 1.4.2 working and if the error still occurs. FIlip - Original Message - From: Joachim Martin [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday,

JSP Compiler produces huge HTML files with whitespace

2004-09-08 Thread Brad Neuberg
It seems like Tomcats JSP compiler produces _huge_ HTML pages, retaining all the white space in the original JSP file. When I view source I see a tremendous amount of white space with barely any tags. The file sizes are bloated by about three times. I have GZIP encoding on, but the white

RE: JSP Compiler produces huge HTML files with whitespace

2004-09-08 Thread Shapira, Yoav
Hi, trimSpaces at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html. Yoav Shapira Millennium Research Informatics -Original Message- From: Brad Neuberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 12:55 PM To: [EMAIL PROTECTED] Subject: JSP Compiler

RE: Help with Tomcat Install?

2004-09-08 Thread Gerardo Juarez
David, In the sequence of events to start Tomcat, binding to the port comes first. If the log says that this failed, then Tomcat is not listening there. I have seen many times the 404 error to know that it doesn't tell me much about what it is really happening. The Tomcat logs are the place

Re: Xalan problem :(

2004-09-08 Thread Reza Ferrydiansyah
Yep that did the trick. Downloaded the xalan. And put the xalan.jar file into that directory made it work Thanks. On Tue, 7 Sep 2004 16:31:50 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, As the release notes say, the first thing to try if you are experimenting Xalan problems is to

Location of third party jar files.

2004-09-08 Thread Kyle A. Boyd
We are using a couple of third party jar files. I can only get our application to see them if I add them to the tomcat/common/lib/ directory. This is inconvenient for our setup. Is there any other way for Tomcat to find the jar files in the classpath (works with Tomcat 3.2), a .xml file, or

RE: Location of third party jar files.

2004-09-08 Thread Shapira, Yoav
Hi, The right and best way is to include copies of them in your WEB-INF/lib directory. Don't symlink, don't put them in common/lib or shared/lib, don't put them on the bootstrap classpath. Yoav Shapira Millennium Research Informatics -Original Message- From: Kyle A. Boyd

jakarta-tomcat-5.0.25, apache2.0.49 ,mod_jk2 , solaris9 and channelApr.receive errors

2004-09-08 Thread Pablo
Hi Folks, I am having some problems with tomcat and apache. I keep experiencing problems like apache all of a sudden not serving https to tomcat pages via mod_jk2 . I have been forced to restart my production servers (restart processes) a few times this week in order to fix these issues.

RE: JSP Compiler produces huge HTML files with whitespace

2004-09-08 Thread Brad Neuberg
Yoav, thanks; this works. One question; why isn't this true by default? Brad At 09:56 AM 9/8/2004, you wrote: Hi, trimSpaces at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html. Yoav Shapira Millennium Research Informatics -Original Message- From: Brad Neuberg

RE: JSP Compiler produces huge HTML files with whitespace

2004-09-08 Thread Shapira, Yoav
Hola, I'm not a Jasper expert, my guess is for two reasons: - It's a slight performance hit - There's a slight change of bugs or sub-optimal behavior. For example a subtle one was pointed out the other day: with trimSpaces on, ${something} followed by a space becomes just ${something} without a

Re: JSP Compiler produces huge HTML files with whitespace

2004-09-08 Thread Peter Lin
it is not on by default due to spec issues. for tomcat to be strictly compliant, by default it should not strip the extra carriage returns. If you search the mailing list back to 2001-2002, you see there was lots of discussion about it. the funny thing is, it also makes it easy to tell when a

RE: JSP Compiler produces huge HTML files with whitespace

2004-09-08 Thread Brad Neuberg
At 10:47 AM 9/8/2004, you wrote: Hola, I'm not a Jasper expert, my guess is for two reasons: - It's a slight performance hit True, but this at compile time when the JSP is compiled; thats a one time yet that is already slow due to the JSP being compiled. You should see how ugly these HTML files

JSP XML syntax - was -Re: JSP Compiler produces huge HTML files with whitespace

2004-09-08 Thread Robert Koberg
Hi, If you use the XML syntax you can handle whitespaces nicely. There are times when you want/need whitespace to remain, so managing it with the XML syntax is better, imho. Are people using the XML syntax? best, -Rob Shapira, Yoav wrote: Hola, I'm not a Jasper expert, my guess is for two

Re: JSP Compiler produces huge HTML files with whitespace

2004-09-08 Thread Brad Neuberg
At 10:49 AM 9/8/2004, you wrote: it is not on by default due to spec issues. for tomcat to be strictly compliant, by default it should not strip the extra carriage returns. If you search the mailing list back to 2001-2002, you see there was lots of discussion about it. the funny thing is, it also

Re: JSP Compiler produces huge HTML files with whitespace

2004-09-08 Thread Peter Lin
well I don't consider that an security issue. just because you know someone is using jsp tags, it doesn't mean you know how the whole architecture works. The only thing it tells a competitor is that it is feasible to use jsp tags. beyond that, all the important and interesting stuff is what makes

channelApr.receive errors

2004-09-08 Thread Pablo
Hi guys, I am getting really strange errors in my apache errors log from my mod_jk2 config. Have any of you ever seen this ? It is affecting services on my machines. [Wed Sep 08 12:50:39 2004] [notice] shm.createSlot() found existing slot epStat.21 [Wed Sep 08 12:50:39 2004] [notice]

Re: JDT-Compiler character encoding

2004-09-08 Thread Michael Schuerig
On Wednesday 08 September 2004 16:07, Michael Schuerig wrote: There seem to be two possible causes for the incorrect output the JDT compiler doesn't behave as advertised, i.e., it does not take UTF-8 as default input encoding. *Or* the JDT compiler produces character output in UTF-8 which is

Re: Location of third party jar files.

2004-09-08 Thread Jeffrey Barnett
I believe Yoav said earlier it was OK to put JDBC drivers into common/lib. Or did I misunderstand, there was a bit of back and forth on the topic. Search Archives for Tomcat 4.1: JSP pages don't always compile the first time? Shapira, Yoav wrote: Hi, The right and best way is to include

RE: Location of third party jar files.

2004-09-08 Thread Shapira, Yoav
Hi, I feel like I'm repeating myself endlessly into the void sometimes ;) As I said below, the best way is in WEB-INF/lib. If you want to stick stuff in common/lib, you can. If you want to use the Tomcat container-provided connection pooling, you must put the JDBC driver in common/lib. But

RE: Location of third party jar files.

2004-09-08 Thread Mike Curwen
I believe you'd *need* to put them there (common/lib) if you were using a container-managed connection pool. -Original Message- From: Jeffrey Barnett [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 1:18 PM To: Tomcat Users List Subject: Re: Location of third party jar

Re: Location of third party jar files.

2004-09-08 Thread Jeffrey Barnett
That was my point earlier. Or is there something so inherently wrong with using /common/lib that you would forgo the pooling option? Mike Curwen wrote: I believe you'd *need* to put them there (common/lib) if you were using a container-managed connection pool. -Original Message-

Re: Help with Tomcat Install?

2004-09-08 Thread John Villar
Let me wrap this up. initially he said that he (david lash) was getting the following page: HTTP Status 404 - / -- type Status report message / description The requested resource (/) is not available.

JSP on-server compilation: classpath problem?

2004-09-08 Thread Michael Schuerig
When I deploy a JSP document with Tomcat 5.5.1 without precompiling, I get an error message when accessing the corresponding web page. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 32 in the jsp file: /test.jspx Generated

RE: Location of third party jar files.

2004-09-08 Thread Shapira, Yoav
Hi, Under some circumstances, it's preferable to bundle your own pooling library with your app rather than use the container-provided one. It's trivial to drop commons-dbcp.jar (and its one dependency, commons-pool.jar) into your WAR and configure your own connection pooling. Advantages: - You

Re: Location of third party jar files.

2004-09-08 Thread Kyle A. Boyd
Ok, I moved them to tomcat/webapps/MyServer/WEB-INF/lib/ and I am now getting a java.lang.NoClassDefFoundError Kyle Shapira, Yoav wrote: Hi, The right and best way is to include copies of them in your WEB-INF/lib directory. Don't symlink, don't put them in common/lib or shared/lib, don't put

Programmatically assign servlet mappings

2004-09-08 Thread SH Solutions
Hello I want to archive the following: I want to start my application using some ContextListener. Then my application shall register the required servlet-mappings. In my web.xml I do NOT want to have any servlet-mappings at all. The reason for this is, that my cms system serves different

Re: JSP Compiler produces huge HTML files with whitespace

2004-09-08 Thread Mark Lowe
Look in the web.xml in the conf directory and use the trimSpaces parameter.. servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-nametrimSpaces/param-name param-valuetrue/param-value /init-param

RE: Location of third party jar files.

2004-09-08 Thread Shapira, Yoav
Hi, What's the stack trace for the NoClassDefFoundError? Don't mistake that for a ClassNotFoundException. Yoav Shapira Millennium Research Informatics -Original Message- From: Kyle A. Boyd [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 2:51 PM To: Tomcat Users List

RE: Programmatically assign servlet mappings

2004-09-08 Thread Shapira, Yoav
Hi, There's no portable way to do this. I've posted example code for this to the list numerous times. Navigate the Tomcat container hierarchy down to the context you want, create and add your servlet wrapper instance, and call StandardContext#addServletMapping. Yoav Shapira Millennium Research

  1   2   >