Re: HTTP Redirections with Tomcat

2004-05-20 Thread Eric Noel
On 5/20/2004 1:51 AM, Guillermo Zarabozo wrote: Hi Everyone, I have a Tomcat Appl. Server running with Atlassian JIRA application. Recently We had an upgrade to a newer version, so the clients now need to change this URL http://:8080/altlassian-jira-2.0.2 for ... http://:8080/altlassian-jira-2.5.

tomcat thru netbeans 3.6

2004-05-20 Thread Tim Ashman
I've got this problem and I'm not sure how to solve it. I'm hoping someone can steer me the right way. My problem is that I have my static files for the webapp located right off of the webapps directory like this. $tomcat/webapps/myapps $tomcat/webapps/myapps/images Now on my production ser

RE: Conversion of String value to Double...

2004-05-20 Thread birendar . waldiya
Double  db = new Double(); double  num = db.doubleValue() ; Birendar Singh Waldiya Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com "Mike Curwen" <[EMAIL PROTECTED]> 21-05-04 04:23 AM Please respond to "Tomcat Users List" <[EMAIL PROTECTED]> To "'T

Re: Different Problem with error-page

2004-05-20 Thread Antonio Fiol Bonnín
Your error page is too small. For IE to show an error page (by default) it has to be more than 1Kb long, IIRC. Suggestion: Append to your page a comment like the following: The text is optional. Antonio Fiol Frank T. Murphy wrote: I have a different problem with the error-page. Our goal is to h

Re: session data in Tomcat 5

2004-05-20 Thread M.Hockings
Jacob Kjome wrote: I didn't see the earlier posts, but are you using Tomcat-5.0.24? There's a bug related to session cookies which requires a hotfix. However, I'd just install 5.0.25 which has the fix, plus a few others. Also note that Tomcat-5.0.24+ is very strict about objects in the sessi

Pass info between Tomcat Valve and Filter

2004-05-20 Thread Rui Zhang
Hi all, I'm trying to pass some info (say, as an Object) between a valve and a filter. Is anyone aware of a effective way to do this within the context of Tomcat? Many thanks. Best, Rui - To unsubscribe, e-mail: [EMAIL P

RE: access log format

2004-05-20 Thread Nanda
Thank you Patrick!. did the trick. - Nanda > You can define a custom pattern. > > Below is the one I use. In there you can use ascii codes like " to > insert a quote. I haven't tried it so I am not sure if it works but you > could try to insert a tab character > > directory="logs"

Re: session data in Tomcat 5

2004-05-20 Thread Jacob Kjome
At 04:53 PM 5/20/2004 -0400, you wrote: Ben Souther wrote: On Thursday 20 May 2004 10:15 am, Shapira, Yoav wrote: in starting jsp 1 session.setAttribute("ml",ml); in target jsp 2 MyPackage.MyClass ml = (MyPackage.MyClass)session.getAttribute("ml"); System.out.println("ml = "+ml); then in the log I

RE: install4iis.js error

2004-05-20 Thread Shane Linley
Once upon a time I once wrote: >Well to tell the complete truth, at my site here we used this open source JK2 IIS installer to do all the nitty gritty for us! > > http://www.shiftomat.com/opensource/ > >It doesn't use the latest version of JK2, but I don't see why a simple dll upgrade shouldn't fi

Re: access log format

2004-05-20 Thread Tim Funk
Ya. Use a custom pattern. -Tim Nanda wrote: Is there a way to configure access log to have "TAB" as delimiter? I am using Tomcat 4.1.29. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: Tricky situation

2004-05-20 Thread Tim Funk
why not -Tim Rajesh_Narayanan wrote: I have to configure my tomcat to look into two different directories for file availability. Scenario: I have a different webserver iplanet with docroot say C:\iplanet\server\docs... I hv my tomcat installed in c:\tomcat lets assume that a user try to access ht

RE: access log format

2004-05-20 Thread Patrick Willart
You can define a custom pattern. Below is the one I use. In there you can use ascii codes like " to insert a quote. I haven't tried it so I am not sure if it works but you could try to insert a tab character grts, Patrick -Original Message- From: Nanda [mailto:[EMAIL PROTECTED] Sent

Stefan Neuhaus/IMNES/IM/DE/BAYER ist außer Haus.

2004-05-20 Thread stefan . neuhaus
Ich werde ab 21.05.2004 nicht im Büro sein. Ich kehre zurück am 24.05.2004. Ich werde Ihre Nachricht nach meiner Rückkehr beantworten. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

RE: Conversion of String value to Double...

2004-05-20 Thread Mike Curwen
I highly recommend http://saloon.javaranch.com/ for java programming questions. > -Original Message- > From: soh_mah [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 20, 2004 4:49 PM > To: Tomcat Users List > Subject: Conversion of String value to Double... > > > Hi all > > I have a

access log format

2004-05-20 Thread Nanda
Is there a way to configure access log to have "TAB" as delimiter? I am using Tomcat 4.1.29. Thanks Nanda --- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Conversion of String value to Double...

2004-05-20 Thread Robert F. Hall
Not the right forum for this question, but here you go: String s = "0.1234"; double d = Double.valueOf(s).doubleValue(); Robert soh_mah wrote: Hi all I have a basic problems in JSP. How can I convert a String value into double, Like String a="0.2345"; double b=0; I need to assign the value of varia

Re: Conversion of String value to Double...

2004-05-20 Thread Ben Souther
double b = new Double(a).doubleValue(); You'll need to either catch or throw a NumberFormatException. BTW: This isn't a Tomcat question (or even a JSP one for that matter). You might want to check out the forums at http://java.sun.com for java issues like this. Good-luck On Thursday 20 May 2

Re: access ENV variables

2004-05-20 Thread Graham Bleach
On Thu, May 20, 2004 at 07:53:44AM -0700, Daniel Gibby wrote: > Thanks for answering resurfacing this thread! I just happened to see my > name and realized that I was the one who started it originally... but > with no response when I first answered. So with mod_jk there is a way to > pass in apa

Use of Apache Commons Logging in Tomcat

2004-05-20 Thread Hut Carspecken
Hello There, I have a particular problem that someone may have seen before. I am writing a web service using Apache Axis 1.1 and I want to use Apache Commons to do my logging. I am using Apache Commons in the correct manner import org.apache.commons.logging.Log org.apache.axis.components.logg

Conversion of String value to Double...

2004-05-20 Thread soh_mah
Hi all I have a basic problems in JSP. How can I convert a String value into double, Like String a="0.2345"; double b=0; I need to assign the value of variable a into varuble b, How can I do that. Thanks in advance for ur help!! = Regards Sohail Mahmood (416) 636-2553

SingleSignOn session timeout question

2004-05-20 Thread Jonathan Eric Miller
I'm using "org.apache.catalina.authenticator.SingleSignOn" for single sign on with container-based security. I have a question about session time outs. When the session for a given application times out, if a user attempts to access the application after the session has timed out, the user should

RE: Problem with error-page

2004-05-20 Thread Yansheng Lin
Doooh. My quick guess was not right, then:). Sorry. -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: May 20, 2004 14:48 To: 'Tomcat Users List' Subject: RE: Problem with error-page DOH! prepend is what I meant to say. > -Original Message- > From: Mike Curw

RE: jsvc versus startup.sh with jdk 1.4

2004-05-20 Thread Jonathan Quinn
Hi, Thanks for the reply here. Actually, this issue is not solved by having tools.jar in the classpath. I made sure that it was there for both the jsvc case as well as the startup.sh case. It seems there is some other difference. Thanks, Tal Original message >Date: Mon, 17 May 20

Conversion of String value to Double...

2004-05-20 Thread soh_mah
Hi all I have couple of basic problems in JSP. How can I convert in String value into double, Like String a="0.2345"; double b=0; I need to assign the value of variable a into varuble b, How can I do that. Thanks in advance for ur help!! = Regards Sohail Mahmood (416) 636-2553

RE: Different Problem with error-page

2004-05-20 Thread Benjamin Armintor
Check under Tools/Internet Options/Advanced to see whether the "Show friendly HTTP error messages" property is active. If it is, I think IE puts its own page up whenever it gets a server response that indicates an error. Benjamin J. Armintor Systems Analyst ITS-Systems: Mainframe Group University

Re: session data in Tomcat 5

2004-05-20 Thread M.Hockings
Ben Souther wrote: On Thursday 20 May 2004 10:15 am, Shapira, Yoav wrote: in starting jsp 1 session.setAttribute("ml",ml); in target jsp 2 MyPackage.MyClass ml = (MyPackage.MyClass)session.getAttribute("ml"); System.out.println("ml = "+ml); then in the log I see... ml = null You didn't i

Different Problem with error-page

2004-05-20 Thread Frank T. Murphy
I have a different problem with the error-page. Our goal is to have any 404's redirected to a particular web page called act_check.html the web.xml piece looks as follows 404 /act_check.html It works on netscape 7.0 but I still get the standard IE 404 page when running IE Any thou

RE: Problem with error-page

2004-05-20 Thread Mike Curwen
DOH! prepend is what I meant to say. > -Original Message- > From: Mike Curwen [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 20, 2004 3:45 PM > To: 'Tomcat Users List' > Subject: RE: Problem with error-page > > > I had never thought of that! But when I tested it, it seems > that JAS

RE: Problem with error-page

2004-05-20 Thread Mike Curwen
I had never thought of that! But when I tested it, it seems that JASPER appends a _, and so a JSP page that starts with a number should still work. > -Original Message- > From: Yansheng Lin [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 20, 2004 3:33 PM > To: 'Tomcat Users List'; [EMA

RE: Problem with error-page

2004-05-20 Thread Yansheng Lin
Class names must be a legal Java identifier, i.e., starts with a letter, $, or _. -Yan -Original Message- From: Jim Kennedy [mailto:[EMAIL PROTECTED] Sent: May 20, 2004 12:50 To: 'Tomcat Users List' Subject: Problem with error-page I am trying to configure a custom error page when use

RE: problem with bundle

2004-05-20 Thread Shapira, Yoav
Hi, Create a Turkish locale bundle or modify your servlet to not require one. Yoav Shapira Millennium Research Informatics >-Original Message- >From: hookah [mailto:[EMAIL PROTECTED] >Sent: Thursday, May 20, 2004 4:30 PM >To: [EMAIL PROTECTED] >Subject: problem with bundle > >hi >i have

problem with bundle

2004-05-20 Thread hookah
hi i have a problem with servlet given error is like this -- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.util.MissingResourceException: Can't find bundle for base name

RE: tag library compile - semi-resolution

2004-05-20 Thread Zollinhofer, Matt
Right, class dir = exploded jar, I follow you there. Let me lay out the situation a little better. I'm trying to compile HelloTag.java. My classpath initially was set to this: "/Users/matt/development/java:." So, I realize, the jar files I need (jsp-api.jar, included in tomcat distro) are not i

Re: converting a certificate for use on Tomcat

2004-05-20 Thread Jim Hopp
Hi Chris- I had to do this myself a month ago. You can't use Sun's keytool to import private keys into keystores. You'll need to use something else to load the private key and corresponding cert into a keystore which Tomcat can then read. See the program and notes at http://www.comu.de/docs/tomc

GateLock Virus Notification.

2004-05-20 Thread GateLockX200
Dear GateLock user, GateLock has detected the WORM_NETSKY.D in your email attachment "your_picture.pif". The file could not be cleaned and was therefore deleted.--- Begin Message --- Your file is attached. --- End Message --- - T

Re: access ENV variables

2004-05-20 Thread Oreste Luci
That did it, thanks. This is what I did: 1. In Apache httpd.conf: JkEnvVar REDIRECT_URL NULL ErrorDocument 404 /404.jsp 2. In 404.jsp: <%=request.getAttribute("REDIRECT_URL")%> And that way I can capture the URL the user typed. Thanks for all the help. Here goes a link I found useful: http://groups

Re: The tomcat not accept more connections

2004-05-20 Thread Software
OK but is that the reasos that the tomcat not accept more connections? Shapira, Yoav wrote: Hi, The parameter uses milliseconds. The default and recommended value for 99% of applications is 6ms. I suggested upgrading your tomcat version: 4.1.30 and 5.0.24 are good releases. Yoav Shapira Millen

Tricky situation

2004-05-20 Thread Rajesh_Narayanan
I have to configure my tomcat to look into two different directories for file availability. Scenario: I have a different webserver iplanet with docroot say C:\iplanet\server\docs... I hv my tomcat installed in c:\tomcat lets assume that a user try to access http:\\localhost:8080\a (where "a" is

Re: Memory leak with Tomcat 5.0.19

2004-05-20 Thread Emerson Cargnin
Our load is very low, and all the new app deployed after changing to 5.0.19 was tested (undeployed to see if mem usage get lower) and I didn't find any other clue. I think I'll have to profile it... hope to find the hole ;P thanks anyway Emerson Shapira, Yoav wrote: Hi, What if your webapp actua

Problem with error-page

2004-05-20 Thread Jim Kennedy
I am trying to configure a custom error page when users try to access an area of my site that they don't have sufficient rights to access. The book says this to configure this in web.xml: 403 /error/403.jsp This doesn't work for me, but

RE: webdav servlet problems with Tomcat 5.0.24 and IE

2004-05-20 Thread Mark Thomas
Roy, First of all it is worth pointing out that this works quite happily for me on WinXP using TC5.0.24 and IE6. There are difference between how tomcat 4 and 5 handle redirection from www.yourhost.com/webdav to www.yourhost.com/webdav/ Either should be valid but the webdav implementation in IE d

RE: The tomcat not accept more connections

2004-05-20 Thread Shapira, Yoav
Hi, The parameter uses milliseconds. The default and recommended value for 99% of applications is 6ms. I suggested upgrading your tomcat version: 4.1.30 and 5.0.24 are good releases. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Software [mailto:[EMAIL PR

RE: The tomcat not accept more connections

2004-05-20 Thread Benjamin Armintor
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/http11.html "The number of milliseconds this Connector will wait, after accepting a connection, for the request URI line to be presented. The default value is 6 (i.e. 60 seconds)." Benjamin J. Armintor Systems Analyst ITS-Systems: Mainfram

Re: Why 41 processes with Tomcat under Linux

2004-05-20 Thread Software
Which Linux platform are do you install, because with RH 7.3 you can see many proccess (almost 40 proccess) with ps -auxw --forest | grep java and i've installed to test the same environmet and using the same command to review the java proccess and i've saw only one...my conclusion is the kerne

Re: The tomcat not accept more connections

2004-05-20 Thread Software
The parameter connectionTimeout in the server.xml file which unit of time uses ? what is te recomendable for tomcat 4.0.3 Software wrote: Hi i have tomcat 4.03 with Apache 1.3.24 with mod_jk module over RedHat 8.0. The problem when i starting the tomcat it is stable for a some time, then th

RE: jar and jad with httpd

2004-05-20 Thread Shapira, Yoav
Hi, As an aside, the choice of .jad as an extension standard is amusing to anyone who's used the JAD decompiler ;) Yoav Shapira Millennium Research Informatics >-Original Message- >From: kalin mintchev [mailto:[EMAIL PROTECTED] >Sent: Thursday, May 20, 2004 1:50 PM >To: Tomcat Users Lis

Re: jar and jad with httpd

2004-05-20 Thread kalin mintchev
>> >> thanks a lot... does that mean i can use the httpd?! > > If your app is running on the client side (Applets or J2ME) then you don't > need httpd or anything other than a webserver on the server side. None of > you code gets executed on the server anyway. It all get's downloaded to > the >

tomcat5 server stalling

2004-05-20 Thread Steven Garrett
Hi, I'm running tomcat5 on a Redhat9 box. It looks like its accepting connections for a while, which is good. But then it hits a limit and there are alot of TIME_WAIT connections in the netstat output. Below are the server.xml portions where we configure tomcat to listen and accept connections

Re: Session Timeout and "Direct Reference to login page"

2004-05-20 Thread Jonathan Eric Miller
Thanks for the suggestion. The reason that I can't do it that way (as far as I know) is because I'm using container-based security. I'm not handling the submission of the login form directly. Before I switched to using container-based security, I was doing it exactly as you described. Jon -

Re: Session Timeout and "Direct Reference to login page"

2004-05-20 Thread Ben Souther
What was wrong with the first suggestion? 1.) When your user logs in, throw an object in their session. 2.) In each servlet/jsp (or, better, in a filter), test for the existence of that object and forward back to the login if it is null. Seems pretty straight forward to me. On Thursday 20 M

RE: Memory leak with Tomcat 5.0.19

2004-05-20 Thread Shapira, Yoav
Hi, What if your webapp actually requires more than 120MB of memory under your load? Yoav Shapira Millennium Research Informatics >-Original Message- >From: Emerson Cargnin [mailto:[EMAIL PROTECTED] >Sent: Thursday, May 20, 2004 1:09 PM >To: Tomcat Users List >Subject: Re: Memory leak w

Re: Memory leak with Tomcat 5.0.19

2004-05-20 Thread Emerson Cargnin
> Someone could answer this question, please? Becouse my available memory > is going down from 120 to 50 and to 10 megabytes to fast. And I'm not > finding any leak in my apps... Sorry if I looked rude, didn't mean that :P Maybe this leak is solved in tomcat 5.0.24?? Emerson Cargnin wrote: wsedio

Re: Memory leak with Tomcat 5.0.19

2004-05-20 Thread Emerson Cargnin
wsedio wrote: On 19-05-2004 23:15, Michiel Toneman wrote: We were having severe memory problems too with 5.0.19. Does Tomcat 5.0.24 fix this problem? We added this to the jk2.properties: request.registerRequests=false and the memory usage was normal again. Somewhat non-obvious, I agree. It also

RE: Trying to get a Cluster/Session Replication working

2004-05-20 Thread Randy
DUH! thanks -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 8:55 AM To: Tomcat Users List Subject: Re: Trying to get a Cluster/Session Replication working You're problem is obvious, the application in "team.xml" is only running on box 2

The tomcat not accept more connections

2004-05-20 Thread Software
Hi i have tomcat 4.03 with Apache 1.3.24 with mod_jk module over RedHat 8.0. The problem when i starting the tomcat it is stable for a some time, then the tomcat not accept any more connection and i must to restart the service to our application start working without problem Theses the errors m

converting a certificate for use on Tomcat

2004-05-20 Thread Chris Purcell
I have an Apache server with an SSL certificate installed from a CA. Its just a plain text certificate that looks like this.. -BEGIN CERTIFICATE- MIID/DCCAuSgAwIBAgIEAIXW1jANBgkqhkiG9w0BAQQFADCBozELMAkGA1UEBhMC blablablba /WeCY0ZzyRYuHhQYIm3R+A== -END CERTIFICATE- I want to move

Re: Session Timeout and "Direct Reference to login page"

2004-05-20 Thread Jonathan Eric Miller
Yeah, that seems like it would work. I'm wondering if I could maybe use a filter by itself though and not use the listener and do something like the following. 1. Intercept all requests with a filter. 2. Get the HttpSession out of the request. Get the session ID by calling HttpSession.getId(); 3.

RE: Is there any way to check # of Records in RecordSet

2004-05-20 Thread Adam Buglass
On Thu, 2004-05-20 at 16:38, Dale, Matt wrote: > Adam - I mentioned this in another post but unless the result set is scrollable then > you can't reset it back to the beginning. You need to declare the statement object > as scrollable when you create it to achieve this. So Filip was right in that

Jk2 URI mapping: global virtual host and jkstatus mappings coexist?

2004-05-20 Thread Clute, Andrew
I have a forward facing HTTPD server that forwards certain requests via mod_proxy to my Tomcat box that has it's own version HTTPD and jk2 running. I actually have two instances of Jboss/Tomcat running on this machine, bound to different IP's Every request that is incoming to to the Jboss HTTPD s

Re: FW: Server.xml/AccessLog question

2004-05-20 Thread Tim Funk
Tomcat 4.0 doesn't support the %{xxx}i syntax. You need 4.1.16 or better. -Tim Marc X. Schroeder wrote: Tim, Many thanks for replying. A custom pattern is what I figured I needed to do, but when I tried it in many combinations it errored on certain tags. I would ultimately like to get all fields s

RE: FW: Server.xml/AccessLog question

2004-05-20 Thread Marc X. Schroeder
Tim, Many thanks for replying. A custom pattern is what I figured I needed to do, but when I tried it in many combinations it errored on certain tags. I would ultimately like to get all fields so trying this worked for all values except the %{}i entries. pattern='%a %A %b %B %h %H %l %m %p %q "

Re: Any Resource talking abt how Tomcat intergrated to Apache

2004-05-20 Thread Paul Gregoire
You can use mine http://www.gregoire.org/howto/virtualhost.jk2.html just make sure you rename the "worker=" to "group=" in the workers2.properties file Salvador Santander Gutierrez wrote: >http://johnturner.com/howto/apache-tomcat-howto.html > >I hope this helkp you > >- Original Message ---

When will the JK2 connector be available for Fedora AMD64?

2004-05-20 Thread Brad Hafichuk
Just wondering if someone is working on the JK2 connector for Fedora Core 1 x86_64 (AMD64). If someone is and needs a test site, let me know. Cheers, Brad

Bug? Repost: JkCoyoteHandler Error

2004-05-20 Thread Allistair Crossley
Hi All, This is a repost of an issue we are still experiencing on the production server. I found a similar post re: tomcat 4 that was a bug (although cannot find in bugzilla now). The same thing happens to us .. I have been looking through our production server logs and the following error blo

need workers2.properties for multiple tomcats w/ same IP, diff po rts

2004-05-20 Thread Wendell Holmes
Can someone point me to a tutorial/example of a workers2.properties file that shows how to set up several instances of Tomcat on the same machine, different ports? What I want to do is have a mapping from worker1 to /context1 on 1st tomcat instance and a worker2 that handles requests to /context2

RE: Is there any way to check # of Records in RecordSet

2004-05-20 Thread Dale, Matt
Adam - I mentioned this in another post but unless the result set is scrollable then you can't reset it back to the beginning. You need to declare the statement object as scrollable when you create it to achieve this. So Filip was right in that it will only work once with the default behaviour.

RE: how to configure tomcat5.0 to remove the limitation of jsp code length?

2004-05-20 Thread Benjamin Armintor
This is somewhat of a stab, but it's possible the Jasper changed so that the generated code for your page is slightly more verbose, bumping it into some restrictions of the Java language spec. The magic number seems to be 64k. From the Java Specialists (http://www.javaspecialists.co.za/archive

Re: session data in Tomcat 5

2004-05-20 Thread Filip Hanik - Dev
setAttribute("ml",null); is the same as removeAttribute("ml"); just an fyi :) - Original Message - From: "Ben Souther" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, May 20, 2004 10:24 AM Subject: Re: session data in Tomcat 5 On Thursday 20 May 2004 10:

Re: session data in Tomcat 5

2004-05-20 Thread Ben Souther
On Thursday 20 May 2004 10:15 am, Shapira, Yoav wrote: > >in starting jsp 1 > > session.setAttribute("ml",ml); > > > > > >in target jsp 2 > > MyPackage.MyClass ml = (MyPackage.MyClass)session.getAttribute("ml"); > > System.out.println("ml = "+ml); > > > > > >then in the log I see... > > > > > >

RE: aparche log backup and cleanup

2004-05-20 Thread Simon Zeng
That's a linux tool, isn't it? Is there a similar tool in Windows because our production servers are all WinNt/2K. Thanks, -Simon -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 10:04 AM To: Tomcat Users List Subject: RE: aparche log backup a

install4iis.js error

2004-05-20 Thread Sasha Borodin
I'm getting the following error when running the JavaScript installer for the JK2 ISAPI filter on my W2K box: "Unable to find Web Server ROOT Directory" Looking inside the JavaScript, this error is reported here: if ((IIsROOT = findADSIObject(IIsWebServer, _IIS_WEBDIR, "ROOT")) == null) { ER

Re: session data in Tomcat 5

2004-05-20 Thread M.Hockings
Shapira, Yoav wrote: Hi, Is your attribute Serializable? That's a big deal ;) There's no limit imposed by Tomcat on session attribute size. Yoav Shapira Millennium Research Informatics Hmm, interesting thought Yoav. It is a class derived from a properties file but I'm not sure if the derive

RE: Is there any way to check # of Records in RecordSet

2004-05-20 Thread Adam Buglass
First of all forgive me for being very stressed and tired - All I did was put into some kind of code model a suggestion previously put forward by Matt: > If the result set is scrollable you can iterate through it counting the number of iterations, then set it back to the start when > you want to pr

RE: Is there any way to check # of Records in RecordSet

2004-05-20 Thread Kannan Sundararajan
Please dont use for other than stated purpose of the list. I hope you understand that. -Original Message- From: soh_mah [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 10:50 AM To: Tomcat Users List Subject: RE: Is there any way to check # of Records in RecordSet Thanks Adam :)

Re: Is there any way to check # of Records in RecordSet

2004-05-20 Thread Filip Hanik - Dev
first code => result set not scrollable, you can only loop through it once Filip; - Original Message - From: "soh_mah" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, May 20, 2004 9:50 AM Subject: RE: Is there any way to check # of Records in RecordSet T

RE: Is there any way to check # of Records in RecordSet

2004-05-20 Thread Dale, Matt
The first code will work if when you create your statement object you define it as scrollable. Statement stmt = con.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); -Original Message- From: soh_mah [mailto:[

Re: access ENV variables

2004-05-20 Thread Daniel Gibby
Thanks for answering resurfacing this thread! I just happened to see my name and realized that I was the one who started it originally... but with no response when I first answered. So with mod_jk there is a way to pass in apache environment variables to tomcat? How do you access them? Thanks a

RE: Is there any way to check # of Records in RecordSet

2004-05-20 Thread soh_mah
Thanks Adam :) First of all I subscribe to the list yesterday and I m new to JSP. Secondly could u plz tell me right list name so I can subscribe to that. Adam, I did exactly the same way u mentioned, but when I use like //--- ResultSet rs = stmt.executeQuery(query); while(rs.next()

Re: Is there any way to check # of Records in RecordSet

2004-05-20 Thread QM
On Thu, May 20, 2004 at 03:26:25PM +0100, Dale, Matt wrote: : This is the wrong list i'm pretty sure but there are a couple of ways to get : the number but there isnt a direct method that returns it. : : If the result set is scrollable you can iterate through it counting the number : of iterations

Re: Is there any way to check # of Records in RecordSet

2004-05-20 Thread Filip Hanik - Dev
ResultSet rs; int i = 0; while( rs.next() ) { i++; } If the cursor is non scrollable, this will only work once. It is better for you to execute a "Select count(1) ..." query, to find out how many results you would get back. Or even better, execute a stored procedure that returns the count as an o

Re: tag library compile - semi-resolution

2004-05-20 Thread QM
On Thu, May 20, 2004 at 10:02:27AM -0400, Zollinhofer, Matt wrote: : So, it works, but I don't really understand the necessity of having the : particular jar file on the classpath. Is this a confusion of "class directories vs JAR files" or "webapp class search paths" ? JAR files a

RE: Is there any way to check # of Records in RecordSet

2004-05-20 Thread Adam Buglass
This is the wrong list but never mind An alternative is the following: ResultSet rs; int i = 0; while( rs.next() ) { i++; } The integer i should be the length of your result set (by the way, don't get confused with RecordSets which are VB - I used to do that all the time!) at the end of

RE: Is there any way to check # of Records in RecordSet

2004-05-20 Thread Dale, Matt
This is the wrong list i'm pretty sure but there are a couple of ways to get the number but there isnt a direct method that returns it. If the result set is scrollable you can iterate through it counting the number of iterations, then set it back to the start when you want to process the records

Is there any way to check # of Records in RecordSet

2004-05-20 Thread soh_mah
Hi Is there any way to check number of Records in RecordSet? = Regards Sohail Mahmood (416) 636-2553 __ Do you Yahoo!? Yahoo! Domains – Claim yours for only $14.70/year http://smallbusiness.promotions.yahoo.com/offer

RE: session data in Tomcat 5

2004-05-20 Thread Shapira, Yoav
Hi, Is your attribute Serializable? That's a big deal ;) There's no limit imposed by Tomcat on session attribute size. Yoav Shapira Millennium Research Informatics >-Original Message- >From: M.Hockings [mailto:[EMAIL PROTECTED] >Sent: Thursday, May 20, 2004 9:20 AM >To: Tomcat Users L

Re: session data in Tomcat 5

2004-05-20 Thread M.Hockings
Yes, good point, gives you an idea how long some of this stuff has been deployed :-) However, even changing to setAttribute() and getAttribute() does not seem to solve the problem. This should be trivial I would think but it seems to be beyond me at the moment. Is there maybe some (small) lim

RE: aparche log backup and cleanup

2004-05-20 Thread Shapira, Yoav
Hi, Logrotate: http://www.rt.com/man/logrotate.8.html. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Simon Zeng [mailto:[EMAIL PROTECTED] >Sent: Thursday, May 20, 2004 10:05 AM >To: 'Tomcat Users List' >Subject: aparche log backup and cleanup > >Hello, > >Our a

RE: equivalent of DefaultContext element for Host

2004-05-20 Thread Shapira, Yoav
Hi, There isn't an equivalent for Host at this point. Be careful when relying on the DefaultContext, it can lead to laziness. Yoav Shapira Millennium Research Informatics >-Original Message- >From: wsedio [mailto:[EMAIL PROTECTED] >Sent: Thursday, May 20, 2004 9:25 AM >To: Tomcat Users

RE: tag library compile - semi-resolution

2004-05-20 Thread Zollinhofer, Matt
Thanks for all help Yoav, QM, and Filip. It turns out that the jsp-api.jar was the jar I needed to have on the classpath. The confusing thing is that I had the directory that it was in on the class path (eg. $CATALINA_HOME/common/lib) but my HelloTag.java still would not compile. It was only whe

aparche log backup and cleanup

2004-05-20 Thread Simon Zeng
Hello, Our aparche access.log is getting bigger & bigger. I would like to put in a script to check the size and do a backup & cleanup without shutdowning Apache. But it won't allow me to do that because other process(Apache) is using it. Is there any way to work around this. Or if Aparch has simi

Re: java.lang.ClassCircularityError

2004-05-20 Thread Jeanfrancois Arcand
Viktor Matic wrote: On Wed, 2004-05-19 at 18:49, Jeanfrancois Arcand wrote: /*This line is in servlet service method*/ Subject.doAsPrivileged(subject, new SecuredActions(), null ); Yes, that's probably the problem since SecurityUtil has already set that value. The AccesControlContext

Re: Trying to get a Cluster/Session Replication working

2004-05-20 Thread Filip Hanik - Dev
You're problem is obvious, the application in "team.xml" is only running on box 2. Make sure that all your clustered applications are deployed on all servers. Filip - Original Message - From: "Randy" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Wednesday, May 1

Re: session data in Tomcat 5

2004-05-20 Thread M.Hockings
QM wrote: On Thu, May 20, 2004 at 08:55:43AM -0400, Ben Souther wrote: : putValue and getValue have been deprecated. : See: : http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSession.html : : Use setAttribute and getAttribute instead. Yes, did you rebuild your app when you upgraded? T

Re: trick question

2004-05-20 Thread Sam Seaver
Thank you for your reply, so basically, this shouldn't affect Tomcat adversley in anyway right? I was considering having tomcat automcatically restart a minute later after httpd every sunday morning, is there anything wrong with that idea? Cheers Sam Bill Barker wrote: "Sam Seaver" <[EMAIL PROT

RE: session data in Tomcat 5

2004-05-20 Thread Ryan Lissack
Hi, >> I've included that, and other tips, in my (brief) 4.x -> 5.x upgrade >> guide: >> http://www.brandxdev.net/misc/tomcat_upgrade.site Thanks for making that available, quite useful. Regards, Ryan. - To unsubscribe, e

equivalent of DefaultContext element for Host

2004-05-20 Thread wsedio
Hi all, I've found the "DefaultContext" element very useful: --- The DefaultContext element represents a subset of the configuration settings for a Context, and can be nested inside an Engine or Host element to represent

Re: session data in Tomcat 5

2004-05-20 Thread QM
On Thu, May 20, 2004 at 08:55:43AM -0400, Ben Souther wrote: : putValue and getValue have been deprecated. : See: : http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSession.html : : Use setAttribute and getAttribute instead. Yes, did you rebuild your app when you upgraded? That would

Caching Service for clustered tomcat

2004-05-20 Thread Holly, Michael
I have written a web app that uses my own object cache, this works great as a singleton, but would like to eventually get where I can cluster my servlet container. I have just heard about jcs and jCache. Does anyone have any other resources for implementing these on a clustered tomcat 4.x? Am I

Re: Production configuration

2004-05-20 Thread QM
On Thu, May 20, 2004 at 11:56:00AM +0200, Wojciech Sobczuk wrote: : I'm running a production server currently with Tomcat 5.0.19 (should I : upgrade?) serving 200-300 thousand hits per day (and increasing). I'm : curious what kind of configurations you are using (server.xml, web.xml, : JVM para

Re: java.lang.ClassCircularityError

2004-05-20 Thread Viktor Matic
On Wed, 2004-05-19 at 18:41, Filip Hanik - Dev wrote: > where are your classes? > if you put them in server/lib or server/classes and not in your webapp, > do you still get the error? > > Filip These classes are placed in the webapp directory together with application that use them. This approach

  1   2   >