Re: Problems running pre-compiled JSP classes when in subdirectories

2004-01-08 Thread Riaan Oberholzer
The generated servlets are not put in a package. When Tomcat is compiling JSP it is put in org.apache.jsp. How to set this in the jspc task. The files are generated as usual in the work directory in the same structure as Tomcat itself compiles JSP files. Not entirely true. You can compile

Re: Tomcat stops handling HTTP connections, socket is SYN_RECV

2004-01-08 Thread Frode E. Moe
On Wed, Jan 07, 2004 at 21:00:30 +0100, Antonio Fiol Bonnín wrote: I have not read through all the thread, so maybe I am repeating something. If so, sorry about being lazy. You seem to be hitting maxProcessors. If you do, no more threads are created, and connections start getting into

Problem with embedded Tomcat and JSP compilation.

2004-01-08 Thread benjamin . cassan
Hi, I wrote an application running an embedded Tomcat, based on the sample code of the onJava site (an org.apache.catalina.startup.Embedded class with manual configuration of things usually found in server.xml). I use Tomcat 4.1.27 and Java 1.3.1. Tomcat starts well, but is not able to compile

japanese download filename

2004-01-08 Thread David La France
Hello, (B (BI've got a servlet that allows users to download files. I'm specifying (Bthe filename using the Content-Disposition header, and the charset using (Bthe Content-Type header. It all works lovely when the filename is English (B- but not with Japanese. (B (BI got the following

Re: Custom-Principal

2004-01-08 Thread anis
Hi, thanx. You did answer the question. But I didn´t know how to realize what you suggested for the embedded version of Tomcat into JBoss. I didn´t even find the server.xml. Any idea about it? Best regards anis - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users

criteria for a session

2004-01-08 Thread Günter Kukies
Hi, what are the criteria for tomcat 4.1.26 to say the session is null (((HttpServletRequest)request).getSession(false))? It seams to depend on something in the request. When i open a second new IE Window, not a child from the first IE Window, the session is null. I dontt call

RE: criteria for a session

2004-01-08 Thread Ralph Einfeldt
3) Request contains no session id (URL/Cookie) 4) Request contains invalid session id (URL/Cookie) Have a look at - isRequestedSessionIdFromCookie - isRequestedSessionIdFromUrl - isRequestedSessionIdValid - getRequestedSessionId in HttpServletRequest to find out if the request contains a session

RES: Off-topic - Java and X11 Window Server

2004-01-08 Thread Jose Euclides da Silva Junior - DATAPREVRJ
1/ is Tomcat running on the same host with X? YES! If not, change $DISPLAY to that_host:0.0 2/ is X running on said host? YES! 3/ is X on said host set to accept connections? I guess its not necessary, since they are at the same host... isnt it? Jose Euclides Junior Projeto DOP201

RES: Off-topic - Java and X11 Window Server

2004-01-08 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Dear Patrick, Where (and HOW ) should i set it? Thanks in advance, José Euclides Junior Projeto DOP201 Infra-estrutura J2EE para as aplicações corporativas da Previdência Social -Mensagem original- De: Patrick Willart [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 7 de janeiro de

Re: Tomcat maximum heap size on Linux

2004-01-08 Thread Daniel Williams
It's not a system roof, we use around 200Mb on average and under high load we use around 700Mb with maximum heap set to 900Mb. Also it's not tomcat using the RAM but the JVM, and yes the jvm can use a gig of ram and even more. One more thing, use this jsp code to monitor the JVM's heap usage.

Re: Tomcat 5 standalone on Linux 2.6

2004-01-08 Thread Remy Maucherat
David Rees wrote: On Wed, January 7, 2004 1at 1:54 am, Remy Maucherat wrote: Does anyone have stability issues on this platform (without any LD_ASSUME_KERNEL, and with Sun JDK 1.4.2 or similar very recent VM) ? I'm trying to compare with Redhat 9 and see if the troubles also happen with that

Static ints being cached

2004-01-08 Thread Allistair Crossley
Hi All, I have an interface containing public final static ints. My servlets reference these ints when making database inserts. Yesterday I reordered the values of the ints and noticed that old values were still being placed into the database. I guess this was somehow a caching problem. I

Re: Static ints being cached

2004-01-08 Thread Frode E. Moe
On Thu, Jan 08, 2004 at 09:53:14 -, Allistair Crossley wrote: Hi All, I have an interface containing public final static ints. My servlets reference these ints when making database inserts. Yesterday I reordered the values of the ints and noticed that old values were still being placed

AW: Static ints being cached

2004-01-08 Thread SH Solutions
Hi I cannot recompile the whole app everytime I change constant values. This is the problem. public final static ints are not referenced by the compiler but placed inside the class files as constants as far as I know. Therefor, the value is in every class file which uses those. After all,

RE: Static ints being cached

2004-01-08 Thread Allistair Crossley
OK, thanks. ADC -Original Message- From: Frode E. Moe [mailto:[EMAIL PROTECTED] Sent: 08 January 2004 09:57 To: Tomcat Users List Subject: Re: Static ints being cached On Thu, Jan 08, 2004 at 09:53:14 -, Allistair Crossley wrote: Hi All, I have an interface containing public

RE: Forms Authentication

2004-01-08 Thread Chris Ward
snip I want to have a login link and a logout link.snip snip how do you tell j_security_check where to go once the user has logged in successfully. snip If your application requires the click here to login functionality, where would the user expect to go after logging in? If it's to a

Tomcat OutOfMemory at 158MB - Not reclaiming any memory overnight

2004-01-08 Thread Allistair Crossley
Hi, The other day Tomcat threw an OutOfMemoryException. This is our development version of Tomcat. Looking at the Windows processes revealed Tomcat at 158MB. I could not tell you whether that is a good or bad statistic for a 2 man development Tomcat that uses database pooling to SQL Server,

RE: criteria for a session

2004-01-08 Thread Chris Ward
I thought sessions were essentially browser sessions. For anything I've done that requires knowledge of user state between different browsers (but same machine) I've used cookies to save some form of user id. I did turn on the Tomcat setting for persistent sessions and found that preserved

RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory overnight

2004-01-08 Thread Francois JEANMOUGIN
-Original Message- The other day Tomcat threw an OutOfMemoryException. This is our development version of Tomcat. Looking at the Windows processes revealed Tomcat at 158MB. Let me do some divination. You are using a SUN Jvm, with no Xms nor Xmx parameter. So, the memory allocated

Squid with ESI + Tomcat

2004-01-08 Thread Konrad
Hi all I'm trying to use squid as a reverse proxy in front of Tomcat and to make things more complicated squid is compiled with ESI enabled :-) I've allready convinced squid-tomcat dou to process basic esi example but squid doesn't cache anything. I suspect that it's because of http headers

installing tomcat 5 on Linux

2004-01-08 Thread Prince
Hi What are the steps for installing tomcat 5 on Linux I have don ethese Installed JDK untared everything from the Tomcat5 installation file to a tomcat5 directory set the JAVA_HOME and CATALINA_HOME when i give the command sh $CATALINA_HOME/bin/startup.sh the following messages getting

Tomcat 5 is not generating IOException when connection closes

2004-01-08 Thread Paulo Pizarro
I have a servlet with a persistent connection open to a client (browser), and when the browser is closed or the user hits the stop button, the connection is closed, but the servlet isn't throwing the IOException when it should do it. (i guess) As i could notice, after about 8k of data being

TEST

2004-01-08 Thread Vitor Buitoni
TEST - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory overn ight

2004-01-08 Thread Edson Alves Pereira
In my opnion, is better instead of increasing memory of tomcat JVM try to profile your application. I´m sure if tomcat complain about memory, your servlets have something wrong. -- De: Francois JEANMOUGIN[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada:

RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory overnight

2004-01-08 Thread Allistair Crossley
Yes I would like to profile my applicationbut do you have any tips on how to do this or where to start? Thanks -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: 08 January 2004 12:49 To: 'Tomcat Users List' Subject: RE: Tomcat OutOfMemory at 158MB - Not

Re: Tomcat 5 is not generating IOException when connection closes

2004-01-08 Thread Remy Maucherat
Paulo Pizarro wrote: I have a servlet with a persistent connection open to a client (browser), and when the browser is closed or the user hits the stop button, the connection is closed, but the servlet isn't throwing the IOException when it should do it. (i guess) As i could notice, after

RE: Connection Pooling

2004-01-08 Thread Hume, John - NA US HQ Delray
Justin, The DBCP that's bundled with Tomcat as well as most other pools (proxool for one) return a java.sql.Connection implementation class that wraps the actual DB driver java.sql.Connection implementation. Calling close() on the Connection that you got from the pool returns the underlying

Re: Tomcat 5 is not generating IOException when connection closes

2004-01-08 Thread Vitor Buitoni
What do you mean by ok? As far as i can see, the connection closes and writing data to the OutputStream should generate an IOException, but this isn't happening... :-( The problem is that my servlet is inside a loop, and needs to know when the client closes the connection, so it can exit the

Re: Problems running pre-compiled JSP classes when in subdirectories

2004-01-08 Thread Antony Paul
The problem is when files are kept in work directory. I dont want to put the generated files in web-inf\classes and add mapping. My purpose is to compile jsp pages as part of a build before the application is given for testing. I will keep files in work directory. This I have to do frequently and

Servlet Unavailable when Reloading Application

2004-01-08 Thread Oscar (TOMCAT)
Hi, List, I'm using TOMCAT 4.1.27 integrated with WebSphere Studio Application Developer 5.1 under Windows. When I change a class and recompile it, I wish to reload my application to test the changes made. Using the TOMCAT Manager application, I click in the reload link, and when I try to

RE: Tomcat 5 is not generating IOException when connection closes

2004-01-08 Thread Ralph Einfeldt
Are you using tomcat standalone or behind apache/iis ? In the later case there may be some buffering in the webserver or mod_jk that can't be controlled from within tomcat. -Original Message- From: Vitor Buitoni [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 1:37 PM

RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory overn ight

2004-01-08 Thread Edson Alves Pereira
JProfiler is the best for this job, there are examples to show you how bind JProfiler to tomcat ( www.jprofiler.com ), its pretty easy to handle this tool. -- De: Allistair Crossley[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quinta-feira, 8 de

Re: Tomcat 5 is not generating IOException when connection closes

2004-01-08 Thread Vitor Buitoni
I'm using tomcat standalone... Vitor Ralph Einfeldt wrote: Are you using tomcat standalone or behind apache/iis ? In the later case there may be some buffering in the webserver or mod_jk that can't be controlled from within tomcat. -Original Message- From: Vitor Buitoni

Re: Tomcat 5 is not generating IOException when connection closes

2004-01-08 Thread Remy Maucherat
Vitor Buitoni wrote: What do you mean by ok? As far as i can see, the connection closes and writing data to the OutputStream should generate an IOException, but this isn't happening... :-( The problem is that my servlet is inside a loop, and needs to know when the client closes the connection,

HttpConnector class not found int Tomcat 5.0.12

2004-01-08 Thread R. Stransky
When trying to use Apache Proxy Support the connector configuration: ... Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 proxyPort=80/ ... forces the following error (in catalina.out): SEVERE: Begin event threw exception

Problem with Web app, javax.print, SecurityManager, and printer discovery

2004-01-08 Thread Michael Duffy
I'm running a Web app that uses the javax.print API to do discovery on attached printers and passes a java.util.List of names to a JSP to display to clients in an HTML select box . I'm running under Tomcat 4.1.29 on Windows 2000 SP 4 and Sun's JDK 1.4.1_03. The drop-down list box is empty - no

RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory overn ight

2004-01-08 Thread Oswald Campesato
On Unix you can also use the truss command to attach to a running process (check Google for examples). I used this technique on a web application and discovered that a file with *static* content was being opened 1,000 times per hour by the application. Before I showed up at the company,

weird tomcat questions

2004-01-08 Thread T K
Can someone please decipher the following questions? * How does scoping work in Tomcat? * Why would you bother using a singleton when you're working with Tomcat? Why would scoping be different in tomcat than any other servlet-complying container? What does a singleton have to do with a web

Tomcat 4.2 with IIS5

2004-01-08 Thread Dave . Anger
Hi, Where can I find a copy of isapi_redirect.dll ? Dave Anger Sr. Product Analyst - Technology Effectiveness Services I.T. Division 612.752-3002 (w) 612.386-5463 (cell) [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL

Re: The security example doesn't

2004-01-08 Thread Nick
Were you able to use form based auth at all? Is it just the example. I was able to load a .war from a file that used basic and it worked fine. Does a bug report need to be submitted? On Wed, 2004-01-07 at 16:16, FTP Admin wrote: yep. Had exactly the same behavior bad don't know the reason!

Problem in configuration

2004-01-08 Thread Ronak Patel
Respected sir/madam, I have a probe in configuration of tomcat server Following are my installations in my pc OS: win98se C:\jdk1.3.1_09\bin C:\jakarta-tomcat-4.1.29\bin ( abstracted ) also i have attacthed the startup.bat file with this mail and it is not working So help me to execute the

Tomcat 5 installation

2004-01-08 Thread Prince
Hi What ar ethe steps for installing tomcat 5 on Linux I have don ethese Installed JDK untared everything from the Tomcat5 installation file to a tomcat5 directory set the JAVA_HOME and CATALINA_HOME when i give the command sh $CATALINA_HOME/bin/startup.sh the following messages getting

Re: installing tomcat 5 on Linux

2004-01-08 Thread Nick
On Thu, 2004-01-08 at 05:28, Prince wrote: Hi What are the steps for installing tomcat 5 on Linux I have don ethese Installed JDK untared everything from the Tomcat5 installation file to a tomcat5 directory set the JAVA_HOME and CATALINA_HOME when i give the command sh

RE: Tomcat 4.2 with IIS5

2004-01-08 Thread Allistair Crossley
http://jakarta.apache.org/site/binindex.cgi scroll down to Tomcat Web Server Connectors ADC -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 07 January 2004 22:09 To: [EMAIL PROTECTED] Subject: Tomcat 4.2 with IIS5 Hi, Where can I find a copy of

RE: weird tomcat questions

2004-01-08 Thread Ralph Einfeldt
See below: -Original Message- From: T K [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 9:03 PM To: [EMAIL PROTECTED] Subject: weird tomcat questions * How does scoping work in Tomcat? What kind of scoping do you mean ? - attribute scoping a la servlet spec ?

RE: Tomcat maximum heap size on Linux

2004-01-08 Thread Shapira, Yoav
Howdy, 150MB is definitely not a roof for the JVM. We have several production machines running heaps with 1GB allocated. They're well tuned, GC shows no discernible pauses even during high usage, and they effectively use numerous processors. Yoav Shapira Millennium ChemInformatics

mod_jk2 JNI question for the brave :)

2004-01-08 Thread Yiannis Mavroukakis
Hi everyone, Bringing the woes of jk2+JNI again here with the dreaded Can't find child xx in scoreboard, since I haven't found a satisfactory answer by anyone. Using TC5 with Apache 2.0.x under Linux, I can get jk2 to work using sockets. However the fun begins when I try to use JNI. Looking at

RE: HttpConnector class not found int Tomcat 5.0.12

2004-01-08 Thread Shapira, Yoav
Howdy, What makes you think HttpConnector (which was deprecated for long time before tomcat 5 stable came out) is available in tomcat 5? ;) Use Coyote. Yoav Shapira Millennium ChemInformatics -Original Message- From: R. Stransky [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08,

RE: Custom-Principal

2004-01-08 Thread Shapira, Yoav
Howdy, thanx. You did answer the question. But I didn´t know how to realize what you suggested for the embedded version of Tomcat into JBoss. I didn´t even find the server.xml. Any idea about it? So you asked the exact same question? ;) JBoss uses its own configuration for embedded tomcat,

RE: Problem with Web app, javax.print, SecurityManager, and printer discovery

2004-01-08 Thread Shapira, Yoav
Howdy, I remember helping with this a while ago. Ahh, yes: http://marc.theaimsgroup.com/?l=tomcat-userm=105672303905158w=2 Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 8:22 AM To: [EMAIL

RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory overnight

2004-01-08 Thread Shapira, Yoav
Howdy, JProfiler is one option, there are many others. I use OptimizeIt on a regular basis. How to profile? Umm, that's a bit of a black art. Basically, start the profiler following its documentation on how to tie it into your tomcat process. You will see where CPU time is spent and where

RE: Best practices - doing code pushes

2004-01-08 Thread Shapira, Yoav
Howdy, I'm sure there are fancier ways, but I always opt for the old-fashioned way, which is to deploy and restart when no one is using the application. This is almost always possible in an intranet environment. On the big web it's a different story, but I'd still probably do it the same way:

RE: Retrieving the context path from a standalone class

2004-01-08 Thread Shapira, Yoav
Howdy, One way is by taking advantage of Tomcat's naming conventions with the tempdir String tempdir = + context.getAttribute(javax.servlet.context.tempdir); int lastSlash = tempdir.lastIndexOf(File.separator); if ((tempdir.length() - 1) lastSlash) {

RE: weird tomcat questions

2004-01-08 Thread Ralph Einfeldt
One thing i forgot in my previous reply: To implement singletons under tomcat requires more knowhow as a typical stand alone applications. Tomcat has several classloaders and there can a copy of the same class in different classloaders. This way the simple approach of using static class vars

RE: Tomcat maximum heap size on Linux

2004-01-08 Thread Shapira, Yoav
Howdy, I've seen this answer twice today, make scripts to stress-test your app. How do you do that? What am I connecting to and looking for in a script that stress-tests a Java servlet or web app? I'm only asking because I'm a little green at this and there are obviously other people with the

RE: Retrieving the context path from a standalone class

2004-01-08 Thread Shapira, Yoav
Howdy, If it isn't then I want to know the correct way to deal with the problem. Can you restate your problem? If I remember correctly, it was that you need to index your site using lucene upon tomcat startup. You don't want to wait for the first user request because you don't want that

RE: weird tomcat questions

2004-01-08 Thread Shapira, Yoav
Howdy, * How does scoping work in Tomcat? The same as in all java programs. * Why would you bother using a singleton when you're working with Tomcat? Why would scoping be different in tomcat than any other servlet-complying container? What does a singleton have to do with a web container?

Re: HttpConnector class not found int Tomcat 5.0.12

2004-01-08 Thread R. Stransky
Because it is mentioned in the documentation devivered with Tomcat 5 (http://localhost:8080/tomcat-docs/proxy-howto.html). But thanks for your answer. I will use Coyote instead. Raienr On Thursday 08 January 2004 14:37, Shapira, Yoav wrote: Howdy, What makes you think HttpConnector (which

RE: Problem with Web app, javax.print, SecurityManager, and printer discovery

2004-01-08 Thread Michael Duffy
Now that I have your reminder, I can see that I've got the fix in my notes dated 27Jun2003. Too bad I wasn't looking back that far before I sent my note to the list. I'm glad your memory is better than mine. Sorry to bother you again, Yoav. I hope your holidays were good, and my best to you

RE: mod_jk2 JNI question for the brave :)

2004-01-08 Thread Mladen Turk
From: Yiannis Mavroukakis Subject: mod_jk2 JNI question for the brave :) Hi everyone, Bringing the woes of jk2+JNI again here with the dreaded Can't find child xx in scoreboard, since I haven't found a satisfactory answer by anyone. Using TC5 with Apache 2.0.x under Linux, I can

RE: Problem with Web app, javax.print, SecurityManager, and printer discovery

2004-01-08 Thread Shapira, Yoav
Howdy, No problem, glad to help ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 9:46 AM To: Tomcat Users List Subject: RE: Problem with Web app, javax.print, SecurityManager, and printer

Re: HttpConnector class not found int Tomcat 5.0.12

2004-01-08 Thread Remy Maucherat
R. Stransky wrote: Because it is mentioned in the documentation devivered with Tomcat 5 (http://localhost:8080/tomcat-docs/proxy-howto.html). Fixing all the stale stuff from the docs takes time :-( -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe)

Squid with ESI + Tomcat

2004-01-08 Thread Konrad
Hi all I'm trying to use squid as a reverse proxy in front of Tomcat and to make things more complicated squid is compiled with ESI enabled :-) I've allready convinced squid-tomcat dou to process basic esi example but squid doesn't cache anything. I suspect that it's because of http headers that

RE: Tomcat reconnect to database server?

2004-01-08 Thread Derek Mahar
Actually, I am correct that the Microsoft SQL Server JDBC driver does not support a validationQuery option. However, I agree that I was incorrect in assuming that the resource parameters configured the JDBC driver, rather than the connection pool (and the JDBC driver indirectly). I'm glad

RE: HttpConnector class not found int Tomcat 5.0.12

2004-01-08 Thread Shapira, Yoav
Howdy, And I see Remy beat me to this one ;) The doc change will be visible with the next release and site update. Yoav Shapira Millennium ChemInformatics -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 9:57 AM To: Tomcat Users List

Microsoft SQL Server validation query

2004-01-08 Thread Derek Mahar
Does anyone happen to know which validation query I should use for Microsoft SQL Server? Derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Microsoft SQL Server validation query

2004-01-08 Thread D'Alessandro, Arthur
Any, such as if you have a user table, Select lastname from user where userid = 1 It's just a query which is going to return results. -Art D'Alessandro CBE Technologies Office: 617-514-1785 Cell: 617-905-5917 -Original Message- From: Derek Mahar [mailto:[EMAIL PROTECTED] Sent:

RE: Microsoft SQL Server validation query

2004-01-08 Thread Allistair Crossley
i think you could use anything .. maybe SELECT COUNT(*) FROM table The dual table is an oracle dummy table and is quite handy, but I think the validation query can just be any old select statement that should return true a result always. ADC -Original Message- From: Derek Mahar

RE: Microsoft SQL Server validation query

2004-01-08 Thread Michael Duffy
Or even SELECT 1 FROM TABLE. No COUNT overhead, if any. - MOD --- Allistair Crossley [EMAIL PROTECTED] wrote: i think you could use anything .. maybe SELECT COUNT(*) FROM table The dual table is an oracle dummy table and is quite handy, but I think the validation query can just be any

RE: Retrieving the context path from a standalone class

2004-01-08 Thread Jacob Kjome
Quoting Shapira, Yoav [EMAIL PROTECTED]: Howdy, One way is by taking advantage of Tomcat's naming conventions with the tempdir String tempdir = + context.getAttribute(javax.servlet.context.tempdir); int lastSlash = tempdir.lastIndexOf(File.separator);

RE: Microsoft SQL Server validation query

2004-01-08 Thread Allistair Crossley
I would not do that because that would return as many 1s as there are rows in the table. Something like count(*) may not be the most efficient but it returns just 1 row always. Also with using 1, you cannot guarantee a row will come back. Allistair Crossley __

RE: Microsoft SQL Server validation query

2004-01-08 Thread Peter Lin
in the past I just select the date from sql server. unless you want to test a specific table, but that has potential performance impact. the safe simple query to see if sql server is alive is to just select the date. peter lin Allistair Crossley [EMAIL PROTECTED] wrote: I would not do

RE: Microsoft SQL Server validation query

2004-01-08 Thread Ralph Einfeldt
If that takes to long, you can limit the search, if you have a table with an indexed column where you know that there is certain id SELECT 1 FROM TABLE WHERE ID = known id (We always have such tables) --- Allistair Crossley [EMAIL PROTECTED] wrote: i think you could use anything .. maybe

Conn.Pooling stopped Tomcat from starting at boot time

2004-01-08 Thread Nadia Kunkov
Hi, I implemented connection pooling for Tomcat 4.0 and it works fine. The only thing is Tomcat is not starting at boot time anymore. Any reason for that? How can I correct it? Also, what should I do to start Tomcat 5.0.16 at boot time on my other machine? Thanks N.K.

RE: mod_jk2 JNI question for the brave :)

2004-01-08 Thread Yiannis Mavroukakis
Hi Mladen, thank you for the reply that helps me gain some understanding in the issue. Would it not be possible to bind JNI under a single worker and then isolate that worker from the rest of the pool (possibly provide the ability for workers to carry some sort of identification bit with regards

SocketException - JK2, Tomcat 4.1.29, IIS 5.1

2004-01-08 Thread Frank Febbraro
When accessing pages on my Tomcat server via IIS and isapi_redirector2.dll I get the following errors on every page request. The errors below are for a simple page invokation like http://localhost/asis/index.jsp Each page is returned successfully, but there are reams of errors generated. Thanks

Possible Bug in 4.1.27 - RequestDispatcher fails after cross context include

2004-01-08 Thread Scott Goldstein
I have two web applications, client and server (attached). In the client web application, there is a single servlet, ClientServlet which performs an include to another servlet, ServerServlet, in server web application. This is done through the following code: ServletContext

RE: Retrieving the context path from a standalone class

2004-01-08 Thread Shapira, Yoav
Howdy, Not sure, but we will probably want to update it to work with Ceki's new configuration mechanism which is to replace the DOMConfigurator (what was it called again?) and also use the new watchdogs instead of It's called Joran, and the JoranConfigurator. We'll continue this discussion on

RE: Retrieving the context path from a standalone class

2004-01-08 Thread Mike Curwen
-Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 7:36 AM To: Tomcat Users List Subject: RE: Retrieving the context path from a standalone class I took a look at lucene's indexing code. It seems like you can construct an

Mapping /BAH/ to /

2004-01-08 Thread Green, Jeffrey
Hi all. Quick question regarding Tomcat. I'd like to create a mapping such that all requests to http://hostname:8080/FOO/ http://hostname:8080/FOO/ are forwarded to http://hostname:8080/ http://hostname:8080/ in a transparent manner (to the user, at least). Thus, if there is a JSP at

RE: Retrieving the context path from a standalone class

2004-01-08 Thread Shapira, Yoav
Howdy, I took a look at lucene's indexing code. It seems like you can construct an Analyzer from a Reader (so an InputStreamReader constructed from the InputStream returned by ServletContext#getResourceAsStream would work), and then use a RAMDirectory as the IndexWriter's Directory

RE: TC 4.1.12 on Linux - session swapping

2004-01-08 Thread Norris Shelton
I took a look at the code. UGLY. All of the code is in the JSP and there are no class variables. There are lots of page scope beans. Page scope is not something that I am used to using. I usually use request. Could this be a problem where the next request is hitting the page before it has

RE: Mapping /BAH/ to /

2004-01-08 Thread Shapira, Yoav
Howdy, Sure, make BAH a simple web application with just one class, a filter mapped to url-pattern /* that does a sendRedirect to / + the rest of the path. I don't know if that's simpler than a Valve, but it's portable. Apache's mod_rewrite can also do this, but you probably don't want to add

Re: TC 4.1.12 on Linux - session swapping

2004-01-08 Thread Norris Shelton
They are being posted to the same JSP. There are several beans that are page scope. Think that is it? I have a newer part that was written by me that uses request and session scope beans. I will have the QA person run her tests against that part of the project. I am assuming that this will be

Changing location of jk2.properties

2004-01-08 Thread Andrew Kerr
Hi there, The jk2 documentation mentions that conf/jk2.properties is the *default* location for this file, which implies that it can be changed. However, I can't find any documentation indicating how this can be done. I have done a lot of digging through the source code, and I can see that the

RE: Mapping /BAH/ to /

2004-01-08 Thread Green, Jeffrey
Thanks for the response. How bout if I want the mapping to be for *all* webapps on the appserver? Eg, I want: http://hostname:8080/FOO/bar to map to /bar http://hostname:8080/FOO/sampleWebapp to map to /sampleWebapp http://hostname:8080/FOO/anotherWebapp to map to /anotherWebapp Etc for all

RE: Making index.jsp work as welcome page after upgrade

2004-01-08 Thread Talley, Angelina
I realized that one and put it back. Still the same problem, unfortunately. I tried with both my webapp precompiled and not precompiled, both with index.jsp present. I even tried Tomcat's default ROOT webapp, same problem. Still just get the directory index. *sigh* -Original Message-

Re: Mapping /BAH/ to /

2004-01-08 Thread Tim Funk
mod_proxy might work too (A *very* quick guess at syntax, ymmv) ProxyPass / http://more.cowbell.com/BAH/ ProxyPassReverse / http://more.cowbell.com/BAH/ -Tim Shapira, Yoav wrote: Howdy, Sure, make BAH a simple web application with just one class, a filter mapped to url-pattern /* that does a

RE: Making index.jsp work as welcome page after upgrade

2004-01-08 Thread Talley, Angelina
Since I'm running with JK2 and went the workers2.properties route to configure it I don't have any JKMount statements anymore (I did with JK). FYI, we're running Apache 1.3.27. This is the relevant part of my workers2.properties: # # IP socket channel # [channel.socket:localhost:8009]

RE: Mapping /BAH/ to /

2004-01-08 Thread Green, Jeffrey
Mod_proxy does indeed do exactly what I'm asking for (in the Apache space) however, I'm looking to do this in the Tomcat space (without having Apache proxy to Tomcat). Any ideas? Thanks again! -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004

RE: Mapping /BAH/ to /

2004-01-08 Thread Shapira, Yoav
Howdy, Thanks for the response. How bout if I want the mapping to be for *all* webapps on the appserver? Eg, I want: http://hostname:8080/FOO/bar to map to /bar http://hostname:8080/FOO/sampleWebapp to map to /sampleWebapp http://hostname:8080/FOO/anotherWebapp to map to /anotherWebapp Etc

RE: Microsoft SQL Server validation query

2004-01-08 Thread Derek Mahar
Thank you to all of you for your quick replies. It seems that the connection pool validation query is not specific to any database server implementation unless the query statement itself is server-specific (that is, it refers to a special server system database, table, or function). I like the

Migrate Apache+Jserv to Tomcat

2004-01-08 Thread Marco Roda
Hello. I am trying to migrate a web application from Apache+Jserv to Tomcat. Under Apache/htdocs I have a folder with the index.html and the applet in JAR format. The servlet zone folder contains the zone.properties, the servlets in JAR format and some other classes. How to deploy to Tomcat? I

Tomcat error when accessing Apache Web Manager

2004-01-08 Thread Alicia Forsythe
Netware 6.5 Apache/2.0.48 mod_jk/1.2.5 Tomcat/4.1.28 When using the Apache Web Manager, some pages are inaccessible due to 500 errors (exact error follows...). None of the files for Web Admin have been modified nor has Tomcat orApache. One day it worked, the next it didn't. Error: HTTP

RE: Retrieving the context path from a standalone class

2004-01-08 Thread Mike Curwen
AFAIK there's no way to get the HTML that a JSP page would show without an actual request. Right, which is why we need the context path. I think where we diverge is in our assesment of 'bad practice'. You had mentioned trouble with getRealPath(). Incorrect placement of a method in the API

What replaced ApacheConfig in Tomcat 5

2004-01-08 Thread Matthew Scarrow
I'm trying to get the Automation of my apache mod_jk2 scripts to work but it seems that things have changed in Tomcat 5. Does anyone know how to do this with tomcat 5. The only thing I can find that comes close to the ApacheConfig class is GeneratorApache2 but from what I can tell this should be

Re: tomcat 5.0.16 Replication

2004-01-08 Thread jean-philippe . belanger
Hi Filip. I did some profiling of 40mins of tomcat with and without a 2nd node up. here are the results with -Xrunhprof:cpu=samples,thread=y,file=/u01/portal/java.hprof.txt,depth=10: Those number are cpu=times and not samples since the later one freezes on my systems. So that list shows the

Cross Site Scripting

2004-01-08 Thread Matthias Maier
Hi there, I'm using tomcat 4.1.29 (binary distribution) under Solaris 2.9 and I'm wondering, if there's a possibility to disable TRACE methods which are supposed to be enabled. I've been looking araoung the last couple of days and was unable to find anything good enough which would make me

RE: Migrate Apache+Jserv to Tomcat

2004-01-08 Thread Shapira, Yoav
Howdy, You need to follow the deployment structure explained here: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Marco Roda [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 11:11 AM To:

RE: Microsoft SQL Server validation query

2004-01-08 Thread Peter Lin
off hand I know selecting the date from sybase, sql server and oracle are all different. one way around it is to use a stored procedure, that way you can have the same stored proc in each RDBMS and the java call is the same. I'm sure others have done it a different way, but that's how I've

  1   2   >