Re: Use of return statement in servlet.

2003-10-30 Thread Nikola Milutinovic
Antony Paul wrote: Hi, If any one feel it off topic mark it as off topic. I want to exit from a servlet if no database connection is available. For this can I use a return statement in the beginning of a servlet. Will it cause any state problems. I dont like putting the code in an if block. The

RE: deploy question/problem

2003-10-30 Thread Erik Weibust
My bad. My web.xml was in my root dir not the WEB-INF dir. Thanks. --- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote: > > Howdy, > Your web.xml looks fine. What's in the tomcat error > logs? > > Yoav Shapira > Millennium ChemInformatics > > > >-Original Message- > >From: Erik Weibust [ma

Problems with mod_jk and DirectoryIndex directives

2003-10-30 Thread Mark Meytin
Hello! I know that this question has been discussed before, and I searhed through the archives, but was not able to find the answer. What I am trying to accomplish seems like a fairly trivial matter. I want to connect Apache 1.3 with Tomcat 4.1.27 via mod_jk (1.2.5) so that the static content in

Opinions

2003-10-30 Thread Robert Charbonneau
Does anyone have an opinion of Tomcat running in a very high traffic environment, let's say, 100K - 500K unique visits/day? I'm also wondering about the possibility of running a Tomcat server standalone as opposed to using mod_jk.so with Apache to mount webapps with. Would this be more stable,

Use of return statement in servlet.

2003-10-30 Thread Antony Paul
Hi, If any one feel it off topic mark it as off topic. I want to exit from a servlet if no database connection is available. For this can I use a return statement in the beginning of a servlet. Will it cause any state problems. I dont like putting the code in an if block. There will be lots of

Re: custom web app classloader

2003-10-30 Thread Glenn Nielsen
I have done this but I started by extending org.apache.catalina.loader.WebappLoader, then overriding anything I needed to customize. Regards, Glenn Jwahar Bammi wrote: I want to write my own custom web application class loader, for Tomcat 4.1* (and hopefully it will continue to work for Tomcat 5*

My own mistake (Fwd: [5.0.14] Does it have the "logs" folder ?)

2003-10-30 Thread Sriram N
Hello: Sorry. I just deleted my tomcat installation, and extracted 5.0.12 again using tar -xvzf jakarta-tomcat.5.0.12.tar.gz, and found that the logs folder is very much there. I am able to run TC5 on my RH9 system without any changes. My apologies for the wrong bug report. -- Sriram --- Srira

custom web app classloader

2003-10-30 Thread Jwahar Bammi
I want to write my own custom web application class loader, for Tomcat 4.1* (and hopefully it will continue to work for Tomcat 5*). From the precious little info that is available, I have gleaned the following: - the class I write should implement org.apache.catalina.Loader interface. - once I

Re: xhtml and Internet Explorer

2003-10-30 Thread Marius Scurtescu
JSP is a templating language which is using a meta language: the JSP constructs. The new line is in the JSP indeed, but is it part of the meta language or part of the literal output? I would argue that these new lines are part of the meta language and that they should not be output. You put them th

ERROR using the tomcat db connection pool against one SQL SERVER 200 database. Please help me

2003-10-30 Thread Dionisio Ruiz de Zarate
Hello i am trying for using the Tomcat database conecition pool (dbcp) against one SQL SERVER 2000 but i cannot connect always appears this error: DBCP borrowObject failed: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Unable to connect. Invalid URL. org.apache.commons.dbcp.Dbc

RE: [OT] CVS question

2003-10-30 Thread Yansheng Lin
O, it only does that for known file types! I had a file called changeLog, and the keywords get ignored by the CVS. Thanks. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Marius Scurtescu Sent: October 30, 2003 4:01 PM To: [EMAIL PROTECTED] Subject: Re: [OT] CV

Re: xhtml and Internet Explorer

2003-10-30 Thread Adam Hardy
On 10/30/2003 10:08 PM Marius Scurtescu wrote: I will consider implementing a filter to remove the empty lines before the tag. For now I eliminated most of the empty lines by changing: <[EMAIL PROTECTED] import="..." %> <[EMAIL PROTECTED] language="Java" %> to: <[EMAIL PROTECTED] import="..."

Re: [OT] CVS question

2003-10-30 Thread Marius Scurtescu
The keywords you mention are expanded every time you add or commit your file. You do have some control over the expansion, check the cvs documentation, see the -k option. http://www.cvshome.org/docs/manual/cvs-1.11.7/cvs_12.html Marius Yansheng Lin wrote: How do you get something like the follow

Using SSL and Tomcat 4.1.27, IE6 reports servlet outputstream is not encrypted

2003-10-30 Thread Rom Construct
Hello, I have enabled SSL in Tomcat 4.1.27 and all of my static pages: html, xsd, etc. are encrypted fine. However, when I access an html page that was written directly to the servlet outputstream (rather than a redirect to a jsp or a static page), IE6 reports that the connection is not encrypt

RE: Apache proxy question

2003-10-30 Thread Mark Gastel
Hi William, I use apache with a reverse proxy setup to tomcat. This is primarily so I can use a hardware load balancer (it understands http, not ajp13 etc etc) Hopefully this answers your questions: Basically I use mod_rewrite to rewrite a url and send it off to tomcat: ProxyPassReverse /servl

RE: Who is knocking on what door?

2003-10-30 Thread Luc Foisy
I was looking at the documentation. It wasn't really apparent to me, or perhaps I wasn't reading everything :) Under http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html Nested Components section, it didn't list Valve, so was confused, and in server.xml it is in the Host section.

Sometimes HTTP ERROR: 500 General error, Why?

2003-10-30 Thread westmeier
Hi, sometimes I get the following error: HTTP ERROR: 500 General error RequestURI=/pmhelp/frameinhalt.jsp after pressing the reload-button of the browser it works without an error. What may be the Problem? My Configuration is: Tomcat 4.1.27 - IIS 5 - isapi_redirector2 -- Gratis: Nokia Han

[OT] CVS question

2003-10-30 Thread Yansheng Lin
How do you get something like the following autopopulated by CVS? I don't want to type the date all the time. I don't seem to be able to do this. A! I tried: --- $Header$ $Revision$ $Date$ --- Do you have to set up anything on your cvs server? I am using pserver, would that cause any probl

RE: Who is knocking on what door?

2003-10-30 Thread Shapira, Yoav
Howdy, You can log per context. RTFM: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Luc Foisy [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 30, 2003 4:18 PM >To: Tomcat Users List >Subject: RE:

Re: jk2 as a static library

2003-10-30 Thread Christopher Schultz
Mark, Thanks for getting back to me. Where can I get instructions for doing this? I can only find instructions for compiling the mod_jk2 as a shared object. Check the INSTALL file that came with the source code. It occurs to me that the instructions were pretty easy to follow. Of course, you'll

RE: Who is knocking on what door?

2003-10-30 Thread Luc Foisy
Great! Thank you very much. Don't suppose I can get this to log per context? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2003 11:01 AM To: Tomcat Users List Subject: RE: Who is knocking on what door? Howdy, Yes, enable the AccessLogValve

Re: jk2 as a static library

2003-10-30 Thread Mark W. Webb
Thanks for getting back to me. Where can I get instructions for doing this? I can only find instructions for compiling the mod_jk2 as a shared object. Christopher Schultz wrote: Mark, is it possible to compile mod_jk2 into apache statically? Absolutely! In fact, I would personally recomm

Re: xhtml and Internet Explorer

2003-10-30 Thread Marius Scurtescu
I will consider implementing a filter to remove the empty lines before the tag. For now I eliminated most of the empty lines by changing: <[EMAIL PROTECTED] import="..." %> <[EMAIL PROTECTED] language="Java" %> to: <[EMAIL PROTECTED] import="..." language="Java" %> Ugly, but at least there i

Re: xhtml and Internet Explorer

2003-10-30 Thread Jason Viers
Marius Scurtescu wrote: Thanks for all the replies. I did solve the mystery. IE is indeed a POS. It looks like it completely ignores the Content-Type headers and it just scans the beginning of the file. You know what's great about that? It's not a bug, it's a feature. http://msdn.microsoft.com/li

Questions on Tomcat 5012/isapi_redirect_1.2.5.dll

2003-10-30 Thread Ravichandran Mahalingam
dear administrator, I have a couple of questions: and a apology for creating 2 error logs that were uncalled for: 0. I got my tomcat 5012 to work and created my own contexts inside the tomcat folders and outside the tomcat folders and both of them worked fine. 1. i opened 23891 and 23980 errors;

RE: OT: db pool problems - jdbc connection count?

2003-10-30 Thread john-paul delaney
Oscar... I'll keep a close lookout for when you publish your HOWTO. In the meantime, I'll try to follow Yoav's instructions, and get back to the list with any eventual errors I make. thanks again to you both, /j-p. On Thu, 30 Oct 2003, Oscar Carrillo wrote: > Thanks for a more complete solut

Re: jk2 as a static library

2003-10-30 Thread Christopher Schultz
Mark, is it possible to compile mod_jk2 into apache statically? Absolutely! In fact, I would personally recommend it for any high-traffic production site. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

FW: Source of JSP returned to user

2003-10-30 Thread Jon O'Sullivan
Thanks to all who responded. I didn't get any of the replies as the whole digest was blocked with the virus infected message but saw them on the archive. As recommended, changing the JDK from 1.4.2 to 1.4.2_02 has resolved this java or as some of you pointed out, windows bug. :) > Hi, >

RE: OT: db pool problems - jdbc connection count?

2003-10-30 Thread Shapira, Yoav
Howdy, >Can I put your example up on my site when I finally get to doing a HOWTO >on how to do connection pools? Of course, no problem. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprieta

RE: OT: db pool problems - jdbc connection count?

2003-10-30 Thread Oscar Carrillo
Thanks for a more complete solution Yoav! I'm still using a homebrew connection pool, so I'm lacking in some features. I'm planning on moving to one of the standard connection pools since they exist now and look quite good. Can I put your example up on my site when I finally get to doing a HOWTO

RE: Intermittent Performance Problems

2003-10-30 Thread Mike Curwen
cocoon uses XSL/XML a lot doesn't it? If I'm remembering correctly, then there's a memory leak in jdk 1.4.1(_some build number I forget) that is exposed readily on systems that use StringBuffers quite a bit (which XSL processors apparently do). You might try an upgrade on the JDK to see if the p

Windows 2003 & iis 6 works but...

2003-10-30 Thread Jason Dravet
With the new jk connector IIS 6 and tomcat finally talk to one another. I can get the examples to show up and run (192.168.1.13/examples/jsp/index.html). I put a hello.jsp page into the wwwroot folder where all of pages are stored. I cannot get the hello.jsp page to show up. I get HTTP Status

RE: Intermittent Performance Problems

2003-10-30 Thread Shapira, Yoav
Howdy, >2003-10-22 12:24:28 CoyoteAdapter An exception or >error occurred in the container during the request >processing >java.lang.OutOfMemoryError This is the problem. >So, based on these two things, the problem seems to be >a memory issue. I run java with the -Xmx2 That's an unusua

jk2 as a static library

2003-10-30 Thread Mark W. Webb
is it possible to compile mod_jk2 into apache statically? ...thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Intermittent Performance Problems

2003-10-30 Thread icewind
Hello, I'm having performance issues that are hard to pin down. Every so often, the site's performance will slow to an absolute crawl for some period of time, and the only solution is to restart tomcat or wait for the problem to "fix itself", which it sometimes does. My cocoon app is hosted on

RE: OT: db pool problems - jdbc connection count?

2003-10-30 Thread Shapira, Yoav
Howdy, It's very similar to how you get a connection. Let's say your datasource is defined in server.xml with name "jdbc/myDataSource". Then: InitialContext ic = new InitialContext(); DataSource ds = (DataSource) ic.lookup("java:comp/env/jdbc/myDataSource"); If you wanted a connection, you'd ca

RE: OT: db pool problems - jdbc connection count?

2003-10-30 Thread john-paul delaney
Thanks Yoav... sorry it's a wee bit above my immediate understanding (e.g lookup my connection pool by JNDI name - I could do with an example of what this means) plese be patient and point me to a resource that will give me some lead to catch up with you. regards /j-p. On Thu, 30 Oct 2003, Sha

Re: OT: db pool problems - jdbc connection count?

2003-10-30 Thread john-paul delaney
Thanks Oscar... I ran some servlets and observed the postgres processes going over the maxActive (33 to 30) limit set in server.xml and also those processes marked idle topped the maxIdle value (21 to 15). The number of processes then dropped to 25, and I don't experience any problems with db c

Re: Help needed with Apache 2.0.47 Tomcat 4.1.27 + mod_jk

2003-10-30 Thread Oscar Carrillo
Be careful in sending to this list. There were multiple messages of the same post. Answers within. On Thu, 30 Oct 2003, Joaquin Corchero wrote: > Hi everyone > > I hope someone can help me > > After having a look to your url. I've to say that I think I'm closer to a > solution, but I haven't a

Re: jk or jk2

2003-10-30 Thread Cary_Anderson
I actually use the warp connector (mod_webapp.so) to connect to my tomcat server in most cases. The upside is that it simple to implement. The downside is that it no longer being developed. As far as the connectors jk vs jk2 go I would probably recommend using jk2 unless you are committed to an

RE: Tomcat 3.3 performance issues

2003-10-30 Thread Joao Batistella
Yes, we use. AJP1.3. Why? Thanks -Original Message- From: Maillist [mailto:[EMAIL PROTECTED] Sent: quinta-feira, 30 de janeiro de 2003 19:54 To: Tomcat Users List Subject: Re: Tomcat 3.3 performance issues Hi, do you use Tomcat with am Apache-Server connected with modjk ? -Gonzo ---

Re: xhtml and Internet Explorer

2003-10-30 Thread Christopher Schultz
Marius, Thanks for all the replies. I did solve the mystery. IE is indeed a POS. I told you :) IE seems to be scanning for the tag (don't ask why) and if it does not find it soon enough then it gives up and treats the file as raw XML. Pretty smart. Now this is sort of a show stopper for me, unles

RE: OT: db pool problems - jdbc connection count?

2003-10-30 Thread Shapira, Yoav
Howdy, You can write a bit of code to do this: - Create an InitialContext - Get the java:comp/env context - Lookup your connection pool by JNDI name - Cast your connection pool to the appropriate type as specified in your server.xml Then you can call the implementation-specific method, e.g. getN

Re: xhtml and Internet Explorer

2003-10-30 Thread Jon Wingfield
Put all the tag and page directives on one line. Looks horrible in the source but if it works... The alternative is to write a filter which wraps the response and strips off the empty lines at the beginning as they are written to the outputstream. We've implemented this and it works quite nicel

Re: OT: db pool problems - jdbc connection count?

2003-10-30 Thread Oscar Carrillo
How about just watching the processes for postgresql while you access the site?: ps auxw | grep "postgres" Oscar On Thu, 30 Oct 2003, john-paul delaney wrote: > Hello List... > > Sorry if this is off-topic. Although I think I'm following the > jndi-resources-howto fairly well, I find I'm run

Re: xhtml and Internet Explorer

2003-10-30 Thread Marius Scurtescu
Thanks for all the replies. I did solve the mystery. IE is indeed a POS. It looks like it completely ignores the Content-Type headers and it just scans the beginning of the file. The JSPs I was struggling with are using lots of JSP directives (tag lib and page), includes and tiles. The result was t

RE: jk or jk2

2003-10-30 Thread Dean Searle
The Oreilly book is only for Tomcat and Tomcat as a Standalone web/application server. I have spent six months trying to figure out how everything works together and how to get things implemented. Both from FreeBSD and Windows. I do have documentation on how to get Apache2, Tomcat 4.1 and mod_jk

Re: [OT] reloading bean upon session time out

2003-10-30 Thread Justin Ruthenbeck
At 07:59 AM 10/30/2003, you wrote: Upon my users first request to my JSP-pages I retrive their user name and loads their authorization level etc. from a database. This information is stored in a bean given session scope. Thing is that after 30 minutes (default) the session times out and the require

RE: Tomcat JK Connector DLLs for IIS in IIS 6.0/Win2k3SBS - Won't Load!

2003-10-30 Thread rsteck
One additional thing to note (though it may be obvious to some), is that the ISAPI function needs to be enabled on IIS6. This is done under the IIS Manager --> --> Web Service Extensions. From here the ISAPI extension can be "allowed" to run. Thanks again for the assistance Adam. ---

RE: Serialized Java Beans.

2003-10-30 Thread Shapira, Yoav
Howdy, And what happens if you restart tomcat before a session with such attribute times out? ;) Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Andoni [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 30, 2003 12:17 PM >To: Tomcat Users List >Subject: Re: Serialized

RE: Serialized Java Beans.

2003-10-30 Thread Jeremy Whitlock
Andoni, You can't serialize a class if it doesn't implement the Serializable Interface. -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2003 10:17 AM To: Tomcat Users List Subject: Re: Serialized Java Beans. My JavaBeans are being stored in s

Re: Serialized Java Beans.

2003-10-30 Thread Andoni
My JavaBeans are being stored in session even though they don't explicitly implement java.io.Serializable. What am I missing? Should I add it? Andoni. - Original Message - From: "Shapira, Yoav" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, October 29,

OT: db pool problems - jdbc connection count?

2003-10-30 Thread john-paul delaney
Hello List... Sorry if this is off-topic. Although I think I'm following the jndi-resources-howto fairly well, I find I'm running out of connections and I have to restart tomcat to free them up. I'd like to know how many jdbc connections are in use at any given time with the intention of find

RE: Who is knocking on what door?

2003-10-30 Thread Shapira, Yoav
Howdy, Yes, enable the AccessLogValve in server.xml. You probably want to change the pattern from "common" to "combined". Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Luc Foisy [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 30, 2003 10:52 AM >To: Tomcat User L

[OT] reloading bean upon session time out

2003-10-30 Thread Thomas Nybro Bolding
Hi folks, know this is somewhat off topic but Im still quite confident some (if not most) of you is capable of answering my question. Upon my users first request to my JSP-pages I retrive their user name and loads their authorization level etc. from a database. This information is stored in a be

Re: Who is knocking on what door?

2003-10-30 Thread Tim Funk
Access Logs? -Tim Luc Foisy wrote: Is there something in any one of the tomcat management utilities or logging mechanisms or whatever where I can see who is hitting the tomcat server and what they are requesting? - To unsubscr

Who is knocking on what door?

2003-10-30 Thread Luc Foisy
Is there something in any one of the tomcat management utilities or logging mechanisms or whatever where I can see who is hitting the tomcat server and what they are requesting? - To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: intermitant availabilty of JNDI Realm

2003-10-30 Thread Pieter Jan Velzeboer
the ldap is server is one router hop away. i have noticed that upon startup, tomcat opens a connection to the ldap and keeps it open, is this by design? if so it could be that the ldap directory is tired of keeping a connection open and closes it without tomcat realising. is this possible? Che

Re: Html files not displayed with webapp

2003-10-30 Thread Christopher Schultz
Matthias, Thanks for your help, I guess I will switch to mod_jk. I thought perhaps it would be something easy to change but I don't want to use this with those problems unsolved. Do you have good experience with mod_jk? Yeah, I use mod_jk (not jk2). I've built it myself on Linux as a DSO for Apach

Re: deploy question/problem

2003-10-30 Thread Christopher Schultz
Erik, Is Tomcat configured to auto-deploy WAR files? If not, you'll have to add a to server.xml. If it *is* configured to auto-deploy WAR files, what log file output are you getting? -chris - To unsubscribe, e-mail: [EMAIL PR

Re: deploy question/problem

2003-10-30 Thread [EMAIL PROTECTED]
Erik, send the request of the page directly to TOMCAT. have you stop and (after 10 seconds...) start tomcat? Can you unzip the war file of your web application in the webapps directory? It must have the same structure of other web application. Riccardo > Da: Erik Weibust <[EMAIL PROTECTED]>

RE: Accessing objects with any servlets, where the object is alre ady pre-created

2003-10-30 Thread Dmitry Sklyut
How about Servlet Context, or Session? Context would be the most logical place for it. -Original Message- From: John Moore [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2003 10:32 AM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Accessing objects with any servlets, wher

RE: deploy question/problem

2003-10-30 Thread Shapira, Yoav
Howdy, Your web.xml looks fine. What's in the tomcat error logs? Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Erik Weibust [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 30, 2003 10:13 AM >To: [EMAIL PROTECTED] >Subject: deploy question/problem > >I am having

Re: Accessing objects with any servlets, where the object is already pre-created

2003-10-30 Thread John Moore
Anson, What about loading them up with an MBean and retrieving via the servlet? I've done this with JBoss/Tomcat, never with standalone tomcat though. Or, you populating the objects when the application starts and put the object it into the JNDI tree? John Moore On Tue, 2003-10-07 at 03:4

RE: Html files not displayed with webapp

2003-10-30 Thread Matthias Schulz
Jon, Seems to be the best to switch to mod_jk. Thanks, Matthias > -Original Message- > From: Jon Wingfield [mailto:[EMAIL PROTECTED] > Sent: Donnerstag, 30. Oktober 2003 16:07 > To: Tomcat Users List > Subject: Re: Html files not displayed with webapp > > > Odd stuff ;) > Looks like y

RE: Html files not displayed with webapp

2003-10-30 Thread Matthias Schulz
Chris, Thanks for your help, I guess I will switch to mod_jk. I thought perhaps it would be something easy to change but I don't want to use this with those problems unsolved. Do you have good experience with mod_jk? Thanks again for your help, Matthias > >>But if you transliterate any .html UR

deploy question/problem

2003-10-30 Thread Erik Weibust
I am having a problem deploying/installing (I think these words can be used interchangeably) my war file. I am copying my war to the webapps directory of my Tomcat installation (Apache Tomcat/4.1.27). When I try to access my simple servlet I get a "The requested resource (/quiz_servlet/quizpage.h

BASIC atuhentication on TOMCAT 4.0.5

2003-10-30 Thread [EMAIL PROTECTED]
Dear friends, I have a problem that I can't solve. I'm trying to use BASIC authentication in TOMCAT 4.0.5 for a web application and its web.xml file is: http://java.sun.c

Re: Html files not displayed with webapp

2003-10-30 Thread Jon Wingfield
Odd stuff ;) Looks like you are using the mod_webapp connector (the default setup in server.xml). AFAIK this connector passes ALL webapp requests to tomcat including those for static resources. As such, I think the IOException you are getting is significant. Development for mod_webapp is dead, i

Re: Html files not displayed with webapp

2003-10-30 Thread Christopher Schultz
Matthias, But if you transliterate any .html URL to .htm, then it works? Bizarre. No its not only the URL I have to change. I have to rename all the html files to htm and then of course use htm in the URL. Of course this could be an approach to get my things work but I would like to understand th

RE: Html files not displayed with webapp

2003-10-30 Thread Matthias Schulz
Chris, > > Its from Apache. If I use a URL for any existing or non > existing page > > in the examples (mapped to Tomcat) that ends with html, then Apache > > gives an 404 error, if the page does not end with html then it is > > found if it exists or Tomcat gives the 404 error if it does > no

Re: jk or jk2

2003-10-30 Thread Florian Ebeling
Hi Bernhard, > Here's a great book including mod_jk2: > http://www.oreilly.de/catalog/tomcat/index.html I got this book right next to my laptop, and I also like it quite much. But I can't find it useful when it comes to using mod_jk2. It don't really understand the contents of workers2.perpertie

Re: Html files not displayed with webapp

2003-10-30 Thread Christopher Schultz
Matthias, Its from Apache. If I use a URL for any existing or non existing page in the examples (mapped to Tomcat) that ends with html, then Apache gives an 404 error, if the page does not end with html then it is found if it exists or Tomcat gives the 404 error if it does not exist. But if you tr

RE: Html files not displayed with webapp

2003-10-30 Thread Matthias Schulz
Chris, > That's totally weird. Does Apache give you the 404 error, or Tomcat? Its from Apache. If I use a URL for any existing or non existing page in the examples (mapped to Tomcat) that ends with html, then Apache gives an 404 error, if the page does not end with html then it is found if it exis

Re: jk or jk2

2003-10-30 Thread Bernhard Erdmann
Florian Ebeling wrote: Hi, mod_jk2 is more or less undocumented. If you dont't want to dive into the C sources, be careful. mod_jk comes with quite solid descriptions. [...] Here's a great book including mod_jk2: http://www.oreilly.de/catalog/tomcat/index.html ---

coyote connector timeout in seconds or milliseconds?

2003-10-30 Thread Klaas van der Ploeg
Hi All, Using tomcat4.1.12 (but seen in other versions too). According to the documentation the connection timeout for the coyote connector is set in milliseconds (in server.xml, http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html). However, the implementation in org.apache.coyo

RE: ThreadLocal relationship to servlet requets and use to store variables

2003-10-30 Thread Shapira, Yoav
Howdy, ThreadLocal is risky. This is the type of situation where the servlet 2.4 request listeners might be useful: you'd create you session-like object when the request is initialized, use it etc, and then destroy it when the request is done. That object would be a Map-type structure, decoupled

Re: Html files not displayed with webapp

2003-10-30 Thread Christopher Schultz
Matthias, > E.g. if I get a directory listing from Tomcat and there is a *.html file and I klick it to open, then Apache says the file is not found. That's totally weird. Does Apache give you the 404 error, or Tomcat? Are you on UNIX or windoze? SuSE Linux 8.2 Good! What do your server logs say?

AM_PROG_LIBTOOL building mod_jk

2003-10-30 Thread Joaquin Corchero
Hi In my production environment I'm finding a problem when I try to build mod_jk (jakarta-comcat-connectors-jk-1.2-src-current.tar.gz). The error Message is the next: libtoolize --force --automake --copy ./buildconf.sh: line 4: libtoolize: command not found aclocal calocal: configure

RE: Html files not displayed with webapp

2003-10-30 Thread Matthias Schulz
> > That's vey odd. Does your URL end in ".htm"? :) No, I use the adapted URL. Would be a nice and simple solution of course ;-) E.g. if I get a directory listing from Tomcat and there is a *.html file and I klick it to open, then Apache says the file is not found > Are you on UNIX or windoze? S

Re: Html files not displayed with webapp

2003-10-30 Thread Christopher Schultz
Matthias, If I rename the html files to *.htm they are displayed correctly. What could be the reason for this and what can I do to get the html files displayed? That's vey odd. Does your URL end in ".htm"? :) Are you on UNIX or windoze? Also, Apache must have its DocumentRoot or an Alias (I prefe

(OT) LiveHTTPHeaders (was Re: xhtml and Internet Explorer)

2003-10-30 Thread Christopher Schultz
Jon, LiveHTTPHeaders is a very cool plug-in for Mozilla. It captures HTTP request/response headers. It's like having a RequestDumperValve in your browser ;) http://livehttpheaders.mozdev.org/ Okay, this is one of the coolest (and simple) tools I've ever seen. Thanks for pointing it out to us!

Html files not displayed with webapp

2003-10-30 Thread Matthias Schulz
Hi, I am trying to use Tomcat (4.1.18) and Apache (1.3.27) connected with the webapp module. Each is working fine standalone and jsp's and servlets of the examples WebApp are running as well in connected mode but the html pages in the examples webapp are not found by apache (error in apache error_

RE: Problems with JK2 / Virtual hosts / tomcat 4

2003-10-30 Thread jakarta
www.shaolincenter.com/john.jsp does show the code (It actually puts up a download dialog box) > -Original Message- > From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 30, 2003 8:39 AM > To: Tomcat Users List > Subject: Re: Problems with JK2 / Virtual hosts / to

RE: Multiple requests to the same servlet is problem

2003-10-30 Thread Edson Alves Pereira
No, but i store my database connection into a Session Attribute with servlet´s name. Now i now that´s reason for my problem, i´ll try to use JNDI DataSource, i hope it helps. > -- > De: [EMAIL PROTECTED]:[EMAIL PROTECTED] > Responder:Tomcat Users List > Enviada: quarta-f

Re: Problems with JK2 / Virtual hosts / tomcat 4

2003-10-30 Thread Christopher Schultz
John, I tried to follow the how-to and think I did everything right, but one of my hosts still will not serve up jsp pages. Some pages it loads as if they where just html and some it tries to download. server.xml [snip] I checked this site, and yup, your page is showing up as text. The good

Re: Session vs. Application Replication

2003-10-30 Thread Christopher Schultz
All, I agree with this inquiry. I think replication of application context attributes is conceptually as necessary as session replication. I usually store things like connection information to back-end servers, counters and other stuff that I need to share among all sessions. I'm sorry, but I thi

Re: Defining JNDI DataSource...why decl'd/def'd in server.xml and not in web.xml.

2003-10-30 Thread Christopher Schultz
Mike, Why can't I describe the JNDI DataSource in the web.xml of my web application? I didn't notice this possibility in dtd for web.xml. That's because the application developers and server deployment team might be different people. It's much more natural to have the JNDI resources setup by tho

AW: Test mail list

2003-10-30 Thread Nitschke Michael
No ;) -Ursprüngliche Nachricht- Von: LEONARDO MARTINEZ [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 30. Oktober 2003 15:17 An: [EMAIL PROTECTED] Betreff: Test mail list Testing U can see me? Atte. Leonardo Martínez Paz. -

Test mail list

2003-10-30 Thread LEONARDO MARTINEZ
Testing U can see me? Atte. Leonardo Martínez Paz. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: xhtml and Internet Explorer

2003-10-30 Thread Jon Wingfield
LiveHTTPHeaders is a very cool plug-in for Mozilla. It captures HTTP request/response headers. It's like having a RequestDumperValve in your browser ;) http://livehttpheaders.mozdev.org/ Adam Hardy wrote: On 10/30/2003 12:24 AM Marius Scurtescu wrote: Hi, I am using Tomcat 4.0.5 with JBoss 3.

Re: intermitant availabilty of JNDI Realm

2003-10-30 Thread Christopher Schultz
Charlie, Im have some destinct troubles with the Tomcat JNDIRealm. The problem is that I need to login four times before I get authenticated. Has anyone else experienced the same? ldap://ldap.domain.com"; userBase="o=company name" userSearch="(mail={0})"/> How far away is this

Re: jk or jk2

2003-10-30 Thread Florian Ebeling
Hi, mod_jk2 is more or less undocumented. If you dont't want to dive into the C sources, be careful. mod_jk comes with quite solid descriptions. -Florian Bernhard Erdmann wrote: Cory 'G' Watson wrote: If starting a new _production_ setup, should I be using jk or jk2? I've seen conflicting inf

Problems with JK2 / Virtual hosts / tomcat 4

2003-10-30 Thread jakarta
I tried to follow the how-to and think I did everything right, but one of my hosts still will not serve up jsp pages. Some pages it loads as if they where just html and some it tries to download. Here is what I think are the relevent portions of my httpd.conf, workers2.properties and server.xml

Re: ThreadLocal relationship to servlet requets and use to store variables

2003-10-30 Thread Christopher Schultz
JiJi, > Unfortunately, the corporate architects do not allow presentation tier (ie: servlet requests) to be passed all the way down to the persistence tier. This is a good policy. Your persistence should have nothing to do with your presentation. The goal is to put the session pull the login id

Re: Session vs. Application Replication

2003-10-30 Thread Rodrigo Ruiz
I agree with this inquiry. I think replication of application context attributes is conceptually as necessary as session replication. I usually store things like connection information to back-end servers, counters and other stuff that I need to share among all sessions. If I need to dinamically mo

Re: jk or jk2

2003-10-30 Thread Bernhard Erdmann
Cory 'G' Watson wrote: If starting a new _production_ setup, should I be using jk or jk2? I've seen conflicting information in my searches. Hi, I recommend mod_jk2 for apache2. I discovered mod_jk does not forward properly requests by their JSESSIONID to the right servlet engine in a two tom

[5.0.14] Does it have the "logs" folder ?

2003-10-30 Thread Sriram N
Hello: With the votes going on for 5.0.14, I have a question. I'm using Redhat 9. When I installed the 5.0.14 tgz and ran the startup script, I had faced a problem with the startup script not being able to create the $CATALINA_HOME$/logs/catalina.out file using the touch command. As it turned ou

Re: Help needed with Apache 2.0.47 Tomcat 4.1.27 + mod_jk

2003-10-30 Thread Joaquin Corchero
Hi everyone I hope someone can help me After having a look to your url. I've to say that I think I'm closer to a solution, but I haven't arrived yet. I haven't achieved yet to make apache and tomcat work together. I followed the steps to setup apache nonssl, tomcat and mod_jk because I had java

Re: Help needed with Apache 2.0.47 Tomcat 4.1.27 + mod_jk

2003-10-30 Thread Joaquin Corchero
Hi everyone I hope someone can help me After having a look to your url. I've to say that I think I'm closer to a solution, but I haven't arrived yet. I haven't achieved yet to make apache and tomcat work together. I followed the steps to setup apache nonssl, tomcat and mod_jk because I had java

  1   2   >