Re: Tomcat 5.5 Load Balancing Rule Classes

2006-07-11 Thread Madhur K Tanwani
Hi, Thanks Michael, for your reply. I've almost got my setup up and working with Tomcat load balancer, session affinity and replication. But, we have not yet answered the question, it seems. Here are some that stick : - does Tomcat 5.5 release incorporate advance Rule Classes? (RoundRobin / W

Re: Running Tomcat Embedded

2006-07-11 Thread Bill Barker
"Mike Wannamaker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks Bill, > > I've looked at that and we actually have it running that way. What I'm > looking for is a way to duplicate org.apache.catalina.startup.Bootstrap > class in my own startup. I believe that JBoss does

Next try: mod_jk 1.2.17 release candidate ready to test

2006-07-11 Thread Rainer Jung
Hi, thanks to everyone who tested 1.2.16. Unfortunately we had one regression bug in the status worker (hanging update request because of double locking). For full results please see: http://marc.theaimsgroup.com/?l=tomcat-dev&m=115234851210076&w=2 Today version 1.2.17 of the Apache Tomcat mod_j

Re: Simple question, but can't figure out answer

2006-07-11 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ahhh... and in webapps/ROOT/ create a directory called WEB-INF (please note capitals) that should fix your problem... Regards Andrew On 11/07/2006, at 11:53 PM, Mead, Jennifer L - VSCM wrote: What this does is draw the box where the image s

Re: Simple question, but can't figure out answer

2006-07-11 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/07/2006, at 11:53 PM, Mead, Jennifer L - VSCM wrote: What this does is draw the box where the image should be. When I right click on it and look at the properties and it finds the right file. Just thought someone else would have ran int

Re: mod_jk 1.2.16 release candidate: ready to test

2006-07-11 Thread Edmon Begoli
OK - related to the subject. Does mod_jk have unit tests that we could use to do/help with regression testing? We found number of bugs in previous versions of mod_jk, but these were unfortunatelly bugs found in production environment. Since then we started using Apache workbench and push to tes

Re: mod_jk 1.2.16 release candidate: ready to test

2006-07-11 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. Thi

Re: Installing My Own DirContext

2006-07-11 Thread Mark Thomas
Mike Wannamaker wrote: > Does anyone have any input on this? > > What I want is through some config settings install my own DirContext.class Just configure a Resources element for your Context http://tomcat.apache.org/tomcat-5.5-doc/config/resources.html http://tomcat.apache.org/tomcat-5.5-doc/c

RE: Getting the date/time from the client

2006-07-11 Thread Tim Lucia
I was playing devil's advocate -- since we don't really know the OP's requirement(s), but we do know the OP seemed to really want the client's time. > -Original Message- > From: Pid [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 11, 2006 6:38 PM > To: Tomcat Users List > Subject: Re: Gett

Re: Getting the date/time from the client

2006-07-11 Thread Pid
A good devil's advocate question, or was it rhetorical? Either way it's got exactly the answer you'd expect, you'll set the date to whatever Locale the Request returns. Obviously. Tim Lucia wrote: > Is that really appropriate?? What if I have my Locale set to France, and my > clock set to P

Re: mod_jk 1.2.16 release candidate: ready to test

2006-07-11 Thread Brian Munroe
On 7/11/06, Richard Mixon <[EMAIL PROTECTED]> wrote: Thanks to all those who replied with respect to the orginal thread. Please do not hijack and existing thread. Start a new thread. You have thoroughly mucked up this thread on "mod_jk 1.2.16 rele4ase candidate: ready to test". Richard, I w

RE: Simple question, but can't figure out answer

2006-07-11 Thread Mead, Jennifer L - VSCM
Ok, it is something with my unix environment because I just pointed my code to the same gif on my windows box and up it comes! All code is fine, which I suspected because I have tried so many variations of it something had to work. Not sure what it could be but maybe I actually don't know where m

RE: mod_jk 1.2.16 release candidate: ready to test

2006-07-11 Thread Richard Mixon
Ibrahim, Please do not hijack and existing thread. Start a new thread. You have thoroughly mucked up this thread on "mod_jk 1.2.16 rele4ase candidate: ready to test". -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 11, 2006 2:55 PM To: Tomcat User

Re: mod_jk 1.2.16 release candidate: ready to test

2006-07-11 Thread Ibrahim . Siddiqui
Edmon, I currently have the following: JAVA_OPTS="-Xms256m -Xmx512m -verbosegc" I'd like to double the max. So do I simply edit to : JAVA_OPTS="-Xms256m -Xmx1024m -verbosegc" and restart Tomcat? would the changes apply or does something else need to be done or in another file as well? T

RE: Simple question, but can't figure out answer

2006-07-11 Thread Mead, Jennifer L - VSCM
Oh yes tomcat works for any language CGI, you need to go into the conf files and uncomment a few things but it works. Not recommended because it bypasses the security built into tomcat. Here is a sample code with the img tag inserted: #!/usr/local/bin/perl -w # ##

RE: mod_jk 1.2.16 release candidate: ready to test

2006-07-11 Thread Mead, Jennifer L - VSCM
Yes and you can use this -XX:MinHeapFreeRatio=NN That keeps the free memory at least NN of what is being used (or it is supposed to). Hope this helps, Jen -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 11, 2006 2:45 PM To: Tomcat Users List Cc

Re: mod_jk 1.2.16 release candidate: ready to test

2006-07-11 Thread Edmon Begoli
Add Xmx to catalina.sh. Set it in JAVA_OPTS Regards, Edmon On 7/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi Would anyone know the correct way to increase the heapsize on Tomcat 4.0.6? Could I simply edit the catalina.sh file, increasing the value after 'Xmx'? Or is there a export com

Re: mod_jk 1.2.16 release candidate: ready to test

2006-07-11 Thread Ibrahim . Siddiqui
Hi Would anyone know the correct way to increase the heapsize on Tomcat 4.0.6? Could I simply edit the catalina.sh file, increasing the value after 'Xmx'? Or is there a export command or a set command which properly increases it? Thanks, Ibrahim *

Re: mod_jk 1.2.16 release candidate: ready to test

2006-07-11 Thread Rainer Jung
Please have a look at: http://marc.theaimsgroup.com/?l=tomcat-dev&m=115234851210076&w=2 I'll roll 1.2.17 in the next hours, but it will take a couple of days before we have a final vote done. Rainer Edmon Begoli schrieb: > AFAIK - version 1.2.16 had a regression bug so mod_jk team is planning >

Re: mod_jk 1.2.16 release candidate: ready to test

2006-07-11 Thread Edmon Begoli
AFAIK - version 1.2.16 had a regression bug so mod_jk team is planning to release 1.2.17. Regards, Edmon On 7/11/06, Brian Munroe <[EMAIL PROTECTED]> wrote: On 7/3/06, Rainer Jung <[EMAIL PROTECTED]> wrote: > > version 1.2.16 of the Apache Tomcat mod_jk web server connector has been > tagged.

Re: mod_jk 1.2.16 release candidate: ready to test

2006-07-11 Thread Brian Munroe
On 7/3/06, Rainer Jung <[EMAIL PROTECTED]> wrote: version 1.2.16 of the Apache Tomcat mod_jk web server connector has been tagged. This version contains numerous bug fixes and some new improvements over our last release 1.2.15. Please test and share your experience. If no critical bugs will be

Re: Simple question, but can't figure out answer

2006-07-11 Thread Andrew Miehs
Hi Jennifer, Very strange! Tomcat and perl cgi! cool - didn't know it worked... Are you sure you are not using Apache with mod_jk, or mod_proxy? As for the perl. Where is the page that prints the HTML? why don't you just add print ''; Very confused Or could it be that you ar

RE: Getting the date/time from the client

2006-07-11 Thread Tim Lucia
Is that really appropriate?? What if I have my Locale set to France, and my clock set to Pacific Standard Time? Then what? (assume I am on the east coast of the USA...) Tim > -Original Message- > From: Vinu Varghese [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 11, 2006 8:05 AM > To:

Re: Problem with mod_jk and multiple workers.

2006-07-11 Thread Rainer Jung
It might not be the reason for your problems, but you should not start this with an apache version that old. If you want to use mod_jk, consider first updating to apache 2.0.58 or something close to it. Is your JkWorkersFile readable for the apache user? I never noticed such behaviour, so no other

RE: Simple question, but can't figure out answer

2006-07-11 Thread Mead, Jennifer L - VSCM
I am using perl CGI because that is what the company wants. I haven't used jsp ever, but I am researching it to teach myself. Then I could introduce it and convince my boss to let me develop in it. I have used the page over and over to no avail. That is why I was concerned that it was a browse

Re: Simple question, but can't figure out answer

2006-07-11 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 More stupid question... 1 - Why are you using perl when you have tomcat - can't you just use a jsp? 2 - why can't you use an tag? and have tomcat deliver the page... 3 - You are using tomcat aren't you? Confused Andrew On 11/07/2006, at 1

Re: Simple question, but can't figure out answer

2006-07-11 Thread Avi Deitcher
Jen, Unless there is a particular reason (e.g. dynamically created images), why are you reading image files directly in Perl, then dumping the output? You should just use CGI to generate HTML that looks like this: Even if you want to dynamically *choose* the image, you are better off having CGI

Simple question, but can't figure out answer

2006-07-11 Thread Mead, Jennifer L - VSCM
Hello, I am trying to create some cgi pages for my company. Or I should say I have created some and now just want to add a header graphic in the main page. Nothing fancy. However, I cannot get my image to display, no matter how I embed the darned thing. I can't even get regular html to displa

RE: Tomcat Symbolic Links

2006-07-11 Thread Mann, Bradley
Thanks, works perfectly. All of the examples I found online describe putting attribute in a Resources tag below the Context tag, which was not working for me. Brad Mann Software Engineer - Information Access Services HARRIS Corporation / GCSD (321) 984-6292 -Original Message- From: dirk

Re: Tomcat Symbolic Links

2006-07-11 Thread dirk ooms
in your server.xml or context description On Tuesday 11 July 2006 21:32, Mann, Bradley wrote: > How do I instruct Tomcat to follow symbolic links within the file > system? For instance, I need to have index.html be a symbolic link to > another file. > > Thanks, > > Brad Mann > Software Engineer -

Tomcat Symbolic Links

2006-07-11 Thread Mann, Bradley
How do I instruct Tomcat to follow symbolic links within the file system? For instance, I need to have index.html be a symbolic link to another file. Thanks, Brad Mann Software Engineer - Information Access Services HARRIS Corporation / GCSD (321) 984-6292

RE: Accessing a servlet

2006-07-11 Thread McRaven, Brian
OK I did that and now my system is hanging which I guess could be an error in my code or something with the server. I think it is my code so I'll look that over. Thanks for your help. Sorry for the confusion. Brian -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: T

Re: Accessing a servlet

2006-07-11 Thread David Smith
Did you reload the webapp after making the change? All changes to WEB-INF/web.xml or files in WEB-INF/classes and WEB-INF/lib will require a reload before they become active in tomcat. --David McRaven, Brian wrote: I was able to refer to a book I have and so I dropped the .class extensions

RE: Accessing a servlet

2006-07-11 Thread McRaven, Brian
I was able to refer to a book I have and so I dropped the .class extensions altogether. I get an error that requested resource is not available still. Any suggestions on this? My web.xml file has this entry: JustALittleTest JustAlittleTest JustALittleTest

Re: Increase heapsize with Tomcat 4.0.6

2006-07-11 Thread Ibrahim . Siddiqui
I am currently using Tomcat 4.0.6 with Vignette storyserver and IHS 1.3.26. I need to increase the heapsize. What is the correct method for this? Do I simply edit the catalina.sh file located at: /opt/vignette/tomcat-mcm/bin and increase the number next to Xmx? Or do I use a command to make it pe

Re: Using a property file in java class (not servlet)

2006-07-11 Thread sbell
Thank you, that does help! - Original Message - From: "Jon Wingfield" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, July 11, 2006 1:03 PM Subject: Re: Using a property file in java class (not servlet) > Probably not without using standard java io and a file path (which you

Re: starting with windows service

2006-07-11 Thread Shinya Koizumi
Any word on this problem. SK. - Original Message - From: "Shinya Koizumi" <[EMAIL PROTECTED]> To: Sent: Monday, July 10, 2006 3:22 PM Subject: starting with windows service Recently i take over project developed by servlet. Currently whenever start the web server I have to click on t

Re: session not maintained struts/tomcat 5.0.25

2006-07-11 Thread Rumpa Giri
It was not tomcat, we found the problem. We have been looking in the wrong place all along. It was the IIS JK worker.properties file that had a typo. In the wroker.properties file the jvmRoute name was wrong for these tomcats 6 to 8. As a result, the request was never sent to the same serve

Accessing a servlet

2006-07-11 Thread McRaven, Brian
Well I'm ticking these newbie questions off. I have a simple servlet that I want my form to access. I compiled the file fine and it is called JustALittleTest.class. I placed this file in the ROOT/WEB-INF/classes folder. In my JSP I have a form with some submit buttons. The action element of th

session not maintained struts/tomcat 5.0.25

2006-07-11 Thread Rumpa Giri
We have a struts application on tomcat 5.0.25 jdk1.4, which does not seem to maintain session, when the request lands up on a particular tomcat. We have two struts application, say app1, app2. tomcat 1 to 4 hosts app1. tomcat 6 to 8 hosts both app1 and app2. The problem happe

Alias' and the like

2006-07-11 Thread dhay
Hi, We're running Apache in front of multiple tomcats with mod_jk. We have an admin app that we'd like to access using a different URL from other server connections, and I am looking for advice on the best way to do this. We will have the single web app, but need to access parts of it from:

Re: Using a property file in java class (not servlet)

2006-07-11 Thread Jon Wingfield
Probably not without using standard java io and a file path (which you can't rely on for packed web-apps). If the file was in /appName/WEB-INF/classes it would be a resource that could be found by the classloader. HTH, Jon sbell wrote: Hello, Is there anyway of referencing a properties fi

RE: File isn't found in ROOT directory

2006-07-11 Thread McRaven, Brian
Dave et al, I'm not sure why my index.jsp file is now accessible but it is. I commented out the part of the web.xml file for the servlet-name and got an error. When I got rid of the comments my index file showed up in the browser on refresh as opposed to the tomcat version. All is well that end

Re: Common Access Card Authentication

2006-07-11 Thread Martin Gainty
Good Afternoon Bill- First step is to setup SSL http://tomcat.apache.org/tomcat-4.1-doc/ssl-howto.html IN your certificate keystore specify algo which conforms to DoD level Security (I would check with www.RSASecurity.com for the following example to replace the default of X509) keytool -genkey

Using a property file in java class (not servlet)

2006-07-11 Thread sbell
Hello, Is there anyway of referencing a properties file located in: /appName/WEB-INF/file.propertes From inside a standard java class file? steve

Problem with mod_jk and multiple workers.

2006-07-11 Thread Jim Riordan
Good afternoon, I am trying to configure apache to send requests to multiple instances of tomcat using mod_jk. I am using Redhat 9 Apache/2.0.40 Tomcat-5.5.17 and have tried jakarta-tomcat-connectors-jk-1.2.6 jakarta-tomcat-connectors-1.2.14.1 jakarta-tomcat-connectors-1.2.15 I can get httpd t

Re: File isn't found in ROOT directory

2006-07-11 Thread David Smith
admin/index.jsp is a placeholder page for the admin webapp, not shipped with tomcat. If you placed it there, the url would be http://localhost:8080/admin/index.jsp. --David McRaven, Brian wrote: I commented out the servlet-mapping but I still get the tomcat page for index.jsp. With my inst

RE: File isn't found in ROOT directory

2006-07-11 Thread McRaven, Brian
I commented out the servlet-mapping but I still get the tomcat page for index.jsp. With my installation of Tomcat there already was a folder called admin with index.jsp in it. I'm not sure if I was making that clear in my last post. I thought that was where the tomcat index.jsp was coming from.

Re: File isn't found in ROOT directory

2006-07-11 Thread David Smith
Two issue here: 1. Place the index.jsp in webapps/ROOT instead of webapps/ROOT/admin 2. ROOT context that comes with tomcat has all it's jsp files pre-compiled. Your new index.jsp is being ignored in favor of the pre-compiled version. Remove the servlet mapping in webapps/ROOT/WEB-INF/web.x

Installing My Own DirContext

2006-07-11 Thread Mike Wannamaker
Does anyone have any input on this? What I want is through some config settings install my own DirContext.class so that when the web app is trying to get resources like pages, it'll use my DirContext to try to find them. This way I can have some common files located outside each web application a

RE: Running Tomcat Embedded

2006-07-11 Thread Mike Wannamaker
Thanks Bill, I've looked at that and we actually have it running that way. What I'm looking for is a way to duplicate org.apache.catalina.startup.Bootstrap class in my own startup. I believe that JBoss does something similar? What I really want to do is get my version of Tomcat that I startup t

RE: File isn't found in ROOT directory

2006-07-11 Thread McRaven, Brian
I'm using Tomcat 5.5.17 and the server.xml file has this in it: Thanks, Brian -Original Message- From: Pid [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 11, 2006 10:56 AM To: Tomcat Users List Subject: Re: File isn't found in ROOT directory what version of tomcat? what have you got

Common Access Card Authentication

2006-07-11 Thread Riner Bill C Ctr AEDC/ATA
Is it possible to configure Tomcat to authenticate users using the DoD Common Access Card? I found a module for the SunONE app server and a commercial product for Windows, but nothing for Tomcat. Thanks, Bill

Re: File isn't found in ROOT directory

2006-07-11 Thread Pid
what version of tomcat? what have you got defined in the s in your server.xml? McRaven, Brian wrote: > I have placed an index.jsp file that I created in my servers > webapps/ROOT folder. When I place the following address in my browser: > > http://localhost/index.jsp > > I still come up with

Re: Tomcat shutdowns unexpectedly - Please help

2006-07-11 Thread Arunan Kannan
Hi David, Martin, and Alireza, Thank you very much for your comments and suggestions. Thanks a lot. Hi David, There is no logs corresponding to this shutdown anywhere on the system. I couldn't find any thing relevent to this crash on syslog or at any other place. Thanks for your help. Hi Martin

File isn't found in ROOT directory

2006-07-11 Thread McRaven, Brian
I have placed an index.jsp file that I created in my servers webapps/ROOT folder. When I place the following address in my browser: http://localhost/index.jsp I still come up with the tomcat homepage on my local host. I know that file is located in the ROOT/admin folder is there some way that m

Re: Tomcat shutdowns unexpectedly - Please help

2006-07-11 Thread Martin Gainty
I would also look at workers.properties files and make sure socket_KeepAlive is set on Also socket_timeout is set to 0 so it never times out M- * This email message and any files transmitted with it contain confidential informati

Re: url changes

2006-07-11 Thread Graham Reeds
Change the servlet mapping in Blojsom from blog/* to *. Then change the name of the Blojsom webapp to blogs. The end result is the desired URL such as http://www.company.com/blogs/employee.name. I suggested that on the blojsom users group and David Czarnecki responded saying "It'll probably

Question for mod_jk experts: Impact of exceeding maxThreads on mod_jk?

2006-07-11 Thread Edmon Begoli
Hi, This is a question for mod_jk folks. We ran into a situation where maxThreads on one of the Tomcats in our mod_jk load balanced cluster were exceeded. The result of this situation was that mod_jk could not "talk" to any of the Tomcats. It appeared like the whole cluster is non-responsive.

Re: Tomcat shutdowns unexpectedly - Please help

2006-07-11 Thread Mr Alireza Fattahi
Hi, I hope I get it correctly, the Tomcat shutdowns when it is ideal. That means no one is working with it and there is no connection to it. If I assume correct and this is the case, please let me know if this shutdown happens when there are some connections to it. We had this problem once with

Re: Tomcat shutdowns unexpectedly - Please help

2006-07-11 Thread Martin Gainty
If the app is crashing then you would see exceptions thrown in wither catalina.out / stdout_MMDD.log / stderr_MMDD.log If the service is crashing on startup(misconfigured JVM, startup jars missing) then check the jakarta_service_MMDD.log HTH, Martin--

Re: tomcat memory allocation

2006-07-11 Thread Leon Rosenberg
I think you need 64bit jvm. With 32bit vm 1.5 is pretty much the limit. With 64 bit sky is your limit :-) regards Leon On 7/11/06, Speulman, Elly <[EMAIL PROTECTED]> wrote: We have a /3GB switch (and the /PAE switch active), but the allocation limit is still 1500m. We were using j2sdk-1_4_2_03

RE: tomcat memory allocation

2006-07-11 Thread Speulman, Elly
We have a /3GB switch (and the /PAE switch active), but the allocation limit is still 1500m. We were using j2sdk-1_4_2_03 and tomcat-5.0.19. I have now tried the combination jdk-1_5_0_06 and tomcat-5.5..17.exe with the same poor result. So something seems to be wrong but what is it? Rg. Elly -

Re: forwarding to a remote host

2006-07-11 Thread Avi Deitcher
Get the params from the request and then populate them in the Post. I don't know of any automatic method. Zohar wrote: > What's the easiest way to transfer all the data from the Request to > the PostMethod? > > - Original Message - From: "Avi Deitcher" <[EMAIL PROTECTED]> > To: "Tomcat Us

Re: forwarding to a remote host

2006-07-11 Thread Zohar
What's the easiest way to transfer all the data from the Request to the PostMethod? - Original Message - From: "Avi Deitcher" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, July 11, 2006 14:38 Subject: Re: forwarding to a remote host Zohar, - In the same host & context,

Re: url changes

2006-07-11 Thread David Smith
Change the servlet mapping in Blojsom from blog/* to *. Then change the name of the Blojsom webapp to blogs. The end result is the desired URL such as http://www.company.com/blogs/employee.name. Consult the Blojsom docs before making these changes to insure they work as expected and Blojsom

Re: forwarding to a remote host

2006-07-11 Thread Avi Deitcher
Yeah, that is a good point. The third option - cross context disabled or remote host - will not keep session data, unless you one of three things: - the request is stateless (where it doesn't matter anyways) - you forward everything to the remote host, including the cookies and all; this seems comp

Re: Getting the date/time from the client

2006-07-11 Thread Vinu Varghese
Thanks Pid, I think that is a good idea Let me try - Regards Vinu Pid wrote: you can get a Locale from the request, and adjust the time accordingly. Vinu Varghese wrote: but that still sets the server date - yes ? Pid wrote: write a filter that activates for that url, and get the

Re: forwarding to a remote host

2006-07-11 Thread Vinu Varghese
Hi Zohar Check this http://marc.theaimsgroup.com/?l=tomcat-user&m=108568149602563&w=2 Hope this helps - Regards Vinu Zohar wrote: Hello list, I have a servlet that handles POST requests. Sometimes the request needs to be f

Re: forwarding to a remote host

2006-07-11 Thread Pid
not unless you've got clustering setup and the cluster is correctly sharing session data. the session data is otherwise local to the server in use. Vinu Varghese wrote: > Avi, > What will happen with the session and objects bound to it ?, Will they > be accessible in the second server ? > > - Re

Re: Getting the date/time from the client

2006-07-11 Thread Pid
you can get a Locale from the request, and adjust the time accordingly. Vinu Varghese wrote: > but that still sets the server date - yes ? > > Pid wrote: >> write a filter that activates for that url, and get the time just before >> you doFilter. if you need to, you can pass the date obj as an at

Re: Tomcat shutdowns unexpectedly - Please help

2006-07-11 Thread David Smith
I'm no expert, but off the top of my head it appears your JVM is crashing. Especially true if there is absolutely no logging data just before the process stops. You may have indications of what's happening in other log files like syslog or a core dump file. You may also want to look at bug r

Re: forwarding to a remote host

2006-07-11 Thread Vinu Varghese
Avi, What will happen with the session and objects bound to it ?, Will they be accessible in the second server ? - Regards Vinu Avi Deitcher wrote: Zohar, - In the same host & context, use RequestDispatcher.forward() - In the same host but different context, if cross-context enabled, get the

Re: forwarding to a remote host

2006-07-11 Thread Avi Deitcher
Zohar, - In the same host & context, use RequestDispatcher.forward() - In the same host but different context, if cross-context enabled, get the RequestDispatcher for that context then use forward() - Different host entirely, or cross-context not enabled, you will probably need to rebuild the reque

Re: Getting the date/time from the client

2006-07-11 Thread Vinu Varghese
but that still sets the server date - yes ? Pid wrote: write a filter that activates for that url, and get the time just before you doFilter. if you need to, you can pass the date obj as an attribute Date date = new Date(); hreq.setAttribute("thisIsTheDate", date); chain.doFilter(hreq, hres);

Tomcat shutdowns unexpectedly - Please help

2006-07-11 Thread Arunan Kannan
Hi, Please help me in guiding to find out the root cause of this problem. Tomcat Version: jakarta-tomcat-4.1.31 Server OS: SUN OS 5.8 JDK version: j2sdk1.4.2_11 Initially the tomcat server is running perfectly and there is no problem. There is no operation done on the server. Simply it is kept

forwarding to a remote host

2006-07-11 Thread Zohar
Hello list, I have a servlet that handles POST requests. Sometimes the request needs to be forwarded to a different servlet, which may be running on a different server. What is the best way to do that? Thanks, Zohar.

Re: Getting the date/time from the client

2006-07-11 Thread Pid
write a filter that activates for that url, and get the time just before you doFilter. if you need to, you can pass the date obj as an attribute Date date = new Date(); hreq.setAttribute("thisIsTheDate", date); chain.doFilter(hreq, hres); Jon Wingfield wrote: > The HTTP spec (rfc2616) says clie

Bug-list; ID:39865

2006-07-11 Thread Aurelio Sánchez Serrano
Hi! I cannot connect to OpenOffice from a JSP under Tomcat. Using the bootstrap call: xContext = com.sun.star.comp.helper.Bootstrap.bootstrap(); I receive the following error: com.sun.star.comp.helper.BootstrapException: no office executable found! I can run the same code directly,

Re: Getting the date/time from the client

2006-07-11 Thread Jon Wingfield
The HTTP spec (rfc2616) says clients should only send the Date header with http messages with body content (POST, PUT) and even then it's optional. Try adding a date string as a parameter on your GET request which your servlet can then parse from request.getParameter(...). One way to do this

Re: Getting the date/time from the client

2006-07-11 Thread Shinya Koizumi
uh... no luck yet. getDateHeader only returns the date value when you have some query strings in date format. So, send the time as a part of query string like this index.jsp?requesttime="25:40:12" or something similar. If one has a better solution let him know. SK - Original Message -

Re: Getting the date/time from the client

2006-07-11 Thread Vinu Varghese
SK, That javascript prints the current client time. But I want the client time with the request. The scenario is : I have a index.jsp <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> Insert title here Client time : Click and a servl

Re: Getting the date/time from the client

2006-07-11 Thread Shinya Koizumi
Vinu Yeah, you are right about it, I can't get getDateHeader working. For the solution one, I have setup like this for jsp and worked. <%@ page session="false" %> <%= application.getServerInfo() %> Current Time: <% out.println(""); out.println("var currentTime = new Date();"); out.

Re: Getting the date/time from the client

2006-07-11 Thread Vinu Varghese
Thanks SK, I tried the second solution , but request.getDateHeader("Date") returns -1 . Also I didn't understand the first solution ( embed a javascript), Can u pls elaborate that. Thanks and regards Vinu Shinya Koizumi wrote: One is to embed javascript in the output out.println("JavaScrip

Re: Getting the date/time from the client

2006-07-11 Thread Mr Alireza Fattahi
Hi, May be you can use: request.getDateHeader() Have a look at, there is a related thread there: http://www.theserverside.com/discussions/thread.tss?thread_id=38542 Vinu Varghese <[EMAIL PROTECTED]> wrote: Hi All, I am doing a project in jsp/servlet and tomcat, which requires to take the cl

Re: Getting the date/time from the client

2006-07-11 Thread Shinya Koizumi
One is to embed javascript in the output out.println("JavaScriptExample"); out.println(""); out.println("function back() {"); out.println("history.back(-1);"); out.println("}"); out.println(""); out.println(""); The other solution is to get it fro

Getting the date/time from the client

2006-07-11 Thread Vinu Varghese
Hi All, I am doing a project in jsp/servlet and tomcat, which requires to take the client date/time (ie the time of the machine the browser is running). Is there any way to accomplish this ? Thanks & regards Vinu -- Vinu Varghese [EMAIL PROTECTED]