Re: Questions about JSP programming

2007-01-15 Thread Zack Grafton
Rashmi Rubdi wrote: I replied about the same time Zack replied, didn't know he was taking care of this. From you recent reply, by compilation do you mean JSPC pre-compilation? Or on the fly compile? Because I do get this error with on the fly compile (didn't try JSPC):

Re: Questions about JSP programming

2007-01-15 Thread Rashmi Rubdi
Zack, I don't think it's the include directive alone causing a memory error. I'm guessing that there might be a lot of processes in his application running on Tomcat, eventually causing an out of memory error or may be the system does not have minimum required memory to run Tomcat. With

RE: Runtime.getRuntime.exec() problem

2007-01-15 Thread Mike Quilleash
Process is a fiddly class to work with at the best of times. I can't say I've ever come across the exec of a Process not returning, when I've used it it will return immediatly from the exec() and you have to use Process.waitFor() if you want to wait for the program to terminate. A common problem

different version of java

2007-01-15 Thread Raffaele Viola
Hi all, I have two different web application under tomcat 5.5.17. Can I use a different version of java for each of application. In example: webapps1 - java1.4 webapps2 - java 1.5 Thanks all Raffo

RE: JSTL c:if statements

2007-01-15 Thread Per Johnsson
Hi! I hade some similar strange problems when I had a very old xml jars. (like xml-api.jar etc) Check your jars for xml and update them. /Regards Per Jonsson -Original Message- From: rotvang [mailto:[EMAIL PROTECTED] Sent: den 12 januari 2007 06:32 To: users@tomcat.apache.org

Re: Questions about JSP programming

2007-01-15 Thread Pid
Firstly, all directives of the following form are executed at compile time: %@ ... % This means that URL request parameters are not available (yet) to the JSP. If the OP was using an include file directive containing the string 'request.getParameter(f)' it is unlikely that it ever worked as

Re: different version of java

2007-01-15 Thread Leon Rosenberg
no. you need two separate tomcat installations. regards Leon On 1/15/07, Raffaele Viola [EMAIL PROTECTED] wrote: Hi all, I have two different web application under tomcat 5.5.17. Can I use a different version of java for each of application. In example: webapps1 - java1.4 webapps2 - java 1.5

Re: different version of java

2007-01-15 Thread Pid
of course, if the question is actually can i use jars compiled for 1.4 in a webapp on a tomcat 5.5 installation then the answer is 'yes'. can you explain why you need different versions of java, Raffaele? p Leon Rosenberg wrote: no. you need two separate tomcat installations. regards Leon

Re: Questions about Apache Portable Runtime on Tomcat 5.5.x

2007-01-15 Thread Markus Schönhaber
Allen Young wrote: First, how can I use APR on a windows install version of tomcat 5.5.x. I've found several tutorials about setting APR, all of which are about adding something in catalina.bat. As you can see, windows install version doesn't have that file but do contains a tcnative-1.dll

Re: Questions about JSP programming

2007-01-15 Thread Xuekun Hu
Thanks Rashmi, Zack, and Pid Sorry it's my fault. %@ include file=request.getParameter(f) % should not be compiled successfully. I fisrt tested jsp:include page../, it works, TOMCAT translated and generated the .java and .class file, then I just modified the same jsp file with %@ ... %, TOMCAT

Re: Help loading XML config file via Init Servlet

2007-01-15 Thread robert lazarski
On 1/14/07, James Dekker [EMAIL PROTECTED] wrote: Hello there, I am using the Apache Commons Digester to load an XML config file via a servlet with init params... I keep getting this error when I start Tomcat 5.5.9 and have deployed the war file via my build script: INFO: Deploying web

RE: How to display chinese chars in JSP / encoding UTF-8 without @page encoding tag

2007-01-15 Thread PATTUS, Jean-Philippe
Thank you for your answers. After some tests, i have upgraded my Tomcat server from 4.x to 5.5, and i have done the same thing with my web application from servlet 2.3 to servlet 2.4. Now i can use the xml element jsp-config and jsp-property-group

Re: How to display chinese chars in JSP / encoding UTF-8 without @page encoding tag

2007-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, John McPeek wrote: Why are you using UTF8 in stead on UTF16. With UTF8 you have to escape all the characters, right? UTF16 will always use 2-byte characters even when it's not necessary. For instance, all of your HTML markup will be 2-byte

Re: Runtime.getRuntime.exec() problem

2007-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hui, hui zhang wrote: TOP is only an example in this case. Actually I am running some program which can not stop running until terminating it by Control + C. In this case, Tomcat can not run the following code if the external application does not

Re: different version of java

2007-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, Leon Rosenberg wrote: no. you need two separate tomcat installations. Technically, Raffo can use a single Tomcat installation but he must use two different instances of his JVMs in order to do this. There's also the 1.4 compatibility library

Re: different version of java

2007-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, Pid wrote: can you explain why you need different versions of java, Raffaele? He might have an application that has been fully tested in one environment (1.4?) and not in the latest (1.5). I have apps that are stuck running in Tomcat 4.1

RE: Tomcat unexpectedly shuts down

2007-01-15 Thread Nelson, Tracy M.
| From: Brown, Carlton [mailto:[EMAIL PROTECTED] | Sent: Thursday, 11 January, 2007 16:49 | | In catalina.out I see the Anthill application going through a shutdown | sequence right before the time Tomcat dies. So my assumption, maybe | invalid, is that it's shutting down because Tomcat

Re: different version of java

2007-01-15 Thread Raffaele Viola
Pid wrote: can you explain why you need different versions of java, Raffaele? He might have an application that has been fully tested in one environment (1.4?) and not in the latest (1.5). I have apps that are stuck running in Tomcat 4.1 because migration testing takes a /long/ time.

RE: Tomcat unexpectedly shuts down

2007-01-15 Thread Caldarale, Charles R
From: Nelson, Tracy M. [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat unexpectedly shuts down Anyhill doesn't call System.exit(), does it? If so, that'll take Tomcat down. Ant itself calls System.exit() when errors are detected, so unless it's running in a separate process, that might be

Re: different version of java

2007-01-15 Thread Leon Rosenberg
On 1/15/07, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, Leon Rosenberg wrote: no. you need two separate tomcat installations. Technically, Raffo can use a single Tomcat installation but he must use two different instances of his JVMs in

Re: Using tomcat as client application

2007-01-15 Thread Danilo Cubrovic
After some trouble starting embedded tomcat I manage to use it for what I want. Except one thing. When I start it like application it's ok but when I start it from within my signed applet it doesnt work at all. It looks like some ClassLoader's issues. I also have similar ClassLoader issues

Re: different version of java

2007-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, Leon Rosenberg wrote: Aehm... and how exactly you suppose to run one tomcat instance in two different jvms at the same time? :-) You said two separate installations. You can use the same install with multiple JVMs by using TOMCAT_HOME,

Re: different version of java

2007-01-15 Thread Leon Rosenberg
yes, but you can't run them both at the same time. regards Leon On 1/15/07, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, Leon Rosenberg wrote: Aehm... and how exactly you suppose to run one tomcat instance in two different jvms at the

Re: Trailing slash added

2007-01-15 Thread Len Popp
If you move a file you will have to fix some links, no matter what sort of URLs you use. If nothing else, the links that referred to the moved file will be broken. But regardless, there are many web sites that do use relative URLs, and that would be a problem in this case. It doesn't matter if

Re: different version of java

2007-01-15 Thread fausto mancini
The problem is for 'which' servlet specification your applications are designed for... I do not see too much effort in porting a J2EE application in a new JEE compliant web-container (TOMCAT included)... On Mon, 15 Jan 2007, Raffaele Viola wrote: Date: Mon, 15 Jan 2007 17:31:43 +0100 From:

RE: different version of java

2007-01-15 Thread Caldarale, Charles R
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Subject: Re: different version of java yes, but you can't run them both at the same time. Well, you can, but it would be ugly. You could have the secondary Tomcat configured with different ports, and a dummy secondary app in the primary Tomcat

RE: different version of java

2007-01-15 Thread Peter Crowther
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] yes, but you can't run them both at the same time. Can we distinguish *installation* and *instance*? Leon, you're reading 'instance' and assuming 'installation'; Chris, you're reading 'installation' and (sometimes implicitly) assuming 'instance'.

Re: different version of java

2007-01-15 Thread David Kerber
It's not the code port that is time-consuming; it's the testing and verification of correct operation of every function in that code. fausto mancini wrote: The problem is for 'which' servlet specification your applications are designed for... I do not see too much effort in porting a J2EE

About using encryption with Mod_jk

2007-01-15 Thread Debianito
Hi everyone! First of all, thanks in advance. I was searching the web in the way to find if it's possible to enable or activate any kind of encryption, this is SSL or some kind of hash, trough my Apache webserver (which faces the outdoor intenet side) and my Tomcat5 server, on the inside of my

RE: How can I get the unparsed URI from inside a servlet

2007-01-15 Thread happyharris . tomcatlist
HttpServletRequest.getRequestURI() does not provide the unparsed URI. 1) It does not include the query string 2) You cannot tell if the URL has a question mark in it, if there is no query string (e.g. http://foo/bar? And http://foo/bar look the same). 3) You cannot tell if the session ID came

Re: different version of java

2007-01-15 Thread Pid
yes, quite agree. but unless i read something wrong, both 1.5 and the servlet specs are backward compatible - so testing should be the route we encourage in this case, if the OP is able to take that route. note that he's running tomcat 5.5, and was enquiring about the 1.4 and 1.5 jvms.

RE: different version of java

2007-01-15 Thread Caldarale, Charles R
From: Pid [mailto:[EMAIL PROTECTED] Subject: Re: different version of java if the OP wants to run the 1.4 jvm, he'll need the compatibility pack for 5.5 and therefore 2 separate installations, i think(?). This is getting rather esoteric, but since each Tomcat instance would use its own

[OT] Trailing slash added

2007-01-15 Thread Rashmi Rubdi
- Original Message From: Len Popp [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, January 15, 2007 12:06:09 PM Subject: Re: Trailing slash added If you move a file you will have to fix some links, no matter what sort of URLs you use. If nothing else, the

Keeping the server side object alive !!!

2007-01-15 Thread Luis Rivera
Hi, I would like to know how could I jump start my web service in tomcat before any call from the client is made. My first version only needed to be stateless and that worked fine, since I noticed that each call from the client creates a new object in the server. However, now I would like to

Tomcat Session Replication via Database Problem

2007-01-15 Thread Nino Ulsamer
Hello, we have a problem replicating sessions using Tomcat. We are using two servers which are load-balanced using Apache. We want to achieve session preservation over multiple requests of the same user (he might be forwarded to different servers for those requests). What we tried to set up

Re: Trailing slash added

2007-01-15 Thread lightbulb432
Could anyone please expand a little more on what's meant by the two statements below? Len Popp wrote: It doesn't matter if it's done by URLRewriteFilter or some other method because it's the browser that interprets the relative URLs, not the server. If the containing page's URL

Re: Keeping the server side object alive !!!

2007-01-15 Thread Leon Rosenberg
I think what you need is a ContextListener. With it, you will be notified when the context (webapp) starts and can perform initialization, and when the context is destroyed you can perform de-initialization (stop your threads, cleanup ressources and such). regards Leon On 1/15/07, Luis Rivera

Re: Trailing slash added

2007-01-15 Thread Rashmi Rubdi
Could you explain to us, why you want to get rid of the trailing slash ? Could anyone please expand a little more on what's meant by the two statements below? Len Popp wrote: It doesn't matter if it's done by URLRewriteFilter or some other method because it's the browser that interprets the

Re: Issue with Changing sessionid values -- please help...

2007-01-15 Thread Kim Albee
Chris, Thanks for the thinking -- I'm aware of the client IP issues with AOL, and we checked that, but it appears that the IP is staying consistent for our testing -- but our sessionid still gets changed... We are not doing URL rewriting with sessionid, it's saving as a cookie... and we can see

Re: Keeping the server side object alive !!!

2007-01-15 Thread Luis Rivera
Dear Leon, Thanks for the info, I am reading about Contexts, but I am not sure if they are created as soon as tomcat starts. This listener seems to be event based, as long as an event is auto generated after Tomcat has started, it would work, or if there is another mechanism that can be used

Re: Keeping the server side object alive !!!

2007-01-15 Thread Leon Rosenberg
On 1/15/07, Luis Rivera [EMAIL PROTECTED] wrote: Dear Leon, Thanks for the info, I am reading about Contexts, but I am not sure if they are created as soon as tomcat starts. As soon as tomcat deploys your webapp which is effectively the same (depends on your settings like autodeploy etc,

Re: Trailing slash added

2007-01-15 Thread Len Popp
I was talking about what the browser does when you click on a link in a web page. Suppose you have a web page called http://www.example.com/directory/page1.html and it contains this hyperlink: a href=page2.htmlPage 2/a When you click on that link, the browser has to figure out what page2.html

Adding a virtual host in Tomcat 5.5

2007-01-15 Thread Werner Schalk
Hi, as I have now spend several hours trying to get this work, I am asking for your support guys. But please dare with me as I am a complete newbie to Tomcat. Basically I installed Tomcat 5.5 and mod_jk 1.2.20 as decribed in http://gentoo-wiki.com/HOWTO_Apache2_and_Tomcat5 and it works fine

HTTP Error 505

2007-01-15 Thread Jeanna Geier
Hello List- I'm seeing some odd behavior that I'm wondering if someone out there can help me with... I have the same exact configuration on a desktop and a laptop; our program uses icons stored on a slide server at https://localhost:8443/slide/files/APT_Icons. On the desktop, I can run the

How to enable log4 for use with Tomcat?

2007-01-15 Thread Lisa
I have tomcat 5.5.16 and have just downloaded log4j-1.2.14.jar and put it in common/lib. Now how do I tell Tomcat to use this jar and to specifiy a log4j.xml file to use for the configuration? I see conf/logging.properties but I want to use log4j.xml instead of a .properties file. Thanks

Re: HTTP Error 505

2007-01-15 Thread Rashmi Rubdi
Hello Jeanna, A quick search gave me this page: http://www.checkupdown.com/status/E505.html which explains the 505 error in detail They recommend upgrading one's browser. What browser are you using on your Laptop, and what is the version of that browser? If it is too old then it's time to

Re: HTTP Error 505

2007-01-15 Thread Rashmi Rubdi
Also what version of Tomcat/ Web Server are you using? - Original Message From: Rashmi Rubdi [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, January 15, 2007 7:53:25 PM Subject: Re: HTTP Error 505 Hello Jeanna, A quick search gave me this page:

RE: HTTP Error 505

2007-01-15 Thread Jeanna Geier
Thanks for the reply Rashmi. I've been searching and saw that page as well; both the desktop and laptop are running Mozilla Firefox v.2.0.0.1 and Tomcat v.5.0.28 as well. Unfortunately, that bit o' information is all our program is returning on the error... -Original Message- From:

Re: HTTP Error 505

2007-01-15 Thread Rashmi Rubdi
Both FF2.0 and Tomcat 5.0 support HTTP 1.1 , so that's definitely not the issue. I don't know if you ruled this one out: Is the laptop connected to some sort of a proxy server? Another site http://www.btinternet.com/~wildfire/reference/httpstatus/500.htm , suggests that the proxy server may

RE: HTTP Error 505

2007-01-15 Thread Jeanna Geier
OK, I got this; looks like somewhere during the database RESTORE on the laptop, the iconurl field got messed up, and the '/files/' portion of the url was deleted, so that explains why it couldn't find the files...didn't really have anything to do with the version of the browser, but, oh well, live

Re: HTTP Error 505

2007-01-15 Thread Martin Gainty
Rashmi is correct HTTP 303 is Resource not found HTTP 505 is Version not supported There is more work to determine the cause of the 505 Martin -- --- This e-mail message (including attachments, if any) is intended for the

Re: HTTP Error 505

2007-01-15 Thread Rashmi Rubdi
I should have said this earlier, sorry about too many e-mails. Firefox's LiveHTTPHeaders extension allows one to examine the details of a request and response. After you install that extension, check the request/response details of the page in question. It should look something like this

Re: HTTP Error 505

2007-01-15 Thread Rashmi Rubdi
I'm glad your problem is solved. My time's not wasted I learned something new HTTP 505. :) -Rashmi - Original Message From: Jeanna Geier [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, January 15, 2007 8:39:43 PM Subject: RE: HTTP Error 505 OK, I got

Re: Runtime.getRuntime.exec() problem

2007-01-15 Thread hui zhang
Mike Quilleash wrote: Process is a fiddly class to work with at the best of times. I can't say I've ever come across the exec of a Process not returning, when I've used it it will return immediatly from the exec() and you have to use Process.waitFor() if you want to wait for the program to

Re: Keeping the server side object alive !!!

2007-01-15 Thread Andre Prasetya
I attach an example for you. MigrationUtil is a helper class that needs initialisation when the webapp started and needs cleaning when the webapp stopped On 1/16/07, Luis Rivera [EMAIL PROTECTED] wrote: Dear Leon, Thanks for the info, I am reading about Contexts, but I am not sure if they

Re: HTTP Error 505

2007-01-15 Thread Rashmi Rubdi
We should probably report this as a bug, in case we can retrace the error? I believe it should have been 404 File Not Found -Rashmi - Original Message From: Martin Gainty [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, January 15, 2007 8:56:56 PM Subject:

Re: Help loading XML config file via Init Servlet

2007-01-15 Thread James Dekker
Robert, The problem with the getRealPath() is that I have the undeployWars set to false in server.xml and getRealPath() is just for raw File I / O, it can't be used to read from a jar file... Thanks for the suggestion, nonetheless! Sincerely, James Dekker On Jan 15, 2007, at 4:54 AM,

Re: Keeping the server side object alive !!!

2007-01-15 Thread Andre Prasetya
I attach an example for you. MigrationUtil is a helper class that needs initialisation when the webapp started and needs cleaning when the webapp stopped On 1/16/07, Luis Rivera [EMAIL PROTECTED] wrote: Dear Leon, Thanks for the info, I am reading about Contexts, but I am not sure if they

Re: No logging (or System.out) when I activate virtual hosts

2007-01-15 Thread Vacuum Joe
I'm tracking down part of the problem. I think this relates to JULI, a terrible mistake that happened around Tomcat 5.5.9. It is fragile junk which results in no log entries whenever virtual hosting is used. I can't figure out how to get it to do anything more sophisticated than silently

RE: No logging (or System.out) when I activate virtual hosts

2007-01-15 Thread Caldarale, Charles R
From: Vacuum Joe [mailto:[EMAIL PROTECTED] Subject: Re: No logging (or System.out) when I activate virtual hosts I'm running Tomcat, embedded within JBoss. I think this relates to JULI, a terrible mistake that happened around Tomcat 5.5.9. It is fragile junk which results in no log

RE: How to enable log4 for use with Tomcat?

2007-01-15 Thread Caldarale, Charles R
From: Lisa [mailto:[EMAIL PROTECTED] Subject: How to enable log4 for use with Tomcat? Now how do I tell Tomcat to use this jar and to specifiy a log4j.xml file to use for the configuration? Have you looked at the relevant doc? http://tomcat.apache.org/tomcat-5.5-doc/logging.html#log4j -

Re: No logging (or System.out) when I activate virtual hosts

2007-01-15 Thread Vacuum Joe
What a curious thing to say. I'm running JULI in standalone Tomcat 5.5.20 with multiple hosts with all expected log files created and log entries made. It's what I'm observing and it's totally reproducible. For all my apps that are not on virtual hosts, logging works fine. For apps that are on

Tomcat 5.5.x with JDK6

2007-01-15 Thread uma_rk
Hello... I would like to run Tomcat 5.5.x on JDK6. Is this supported? If not, are there obvious red flags with this combination? Thanks, U - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail:

Re: Tomcat 5.5.x with JDK6

2007-01-15 Thread Vacuum Joe
I would like to run Tomcat 5.5.x on JDK6. Is this supported? If not, are there obvious red flags with this combination? I've been using it with JDK6 for a while now and it is fine. I don't think I had to change anything at all. Java 6 is a good improvement, too.

RE: Tomcat 5.5.x with JDK6

2007-01-15 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Tomcat 5.5.x with JDK6 I would like to run Tomcat 5.5.x on JDK6. Is this supported? If not, are there obvious red flags with this combination? Works for me right out of the box, although admittedly I haven't done anything extensive

RE: How to enable log4 for use with Tomcat?

2007-01-15 Thread Caldarale, Charles R
From: Lisa [mailto:[EMAIL PROTECTED] Subject: RE: How to enable log4 for use with Tomcat? yes, but there is no mention about log4j.xml. What config file in tomcat do I edit to point to a log4j.xml file and have it use that for config instead of the .properties file. Look at the Default

Re: No logging (or System.out) when I activate virtual hosts

2007-01-15 Thread Vacuum Joe
I found a partial solution (requires Java 6): I wrote my own class: class MyLogger { public static void log(String message) { if(System.console() != null) System.console().printf(consoleLogger: %s\n, message); } } This has the unique advantage of working, unlike System.out. It

RE: No logging (or System.out) when I activate virtual hosts

2007-01-15 Thread Caldarale, Charles R
From: Vacuum Joe [mailto:[EMAIL PROTECTED] Subject: Re: No logging (or System.out) when I activate virtual hosts Is some system of dump all exceptions to the console possible in Tomcat? But unless you've changed your environment, you're not using the logging facilities of Tomcat - you're

Re: No logging (or System.out) when I activate virtual hosts

2007-01-15 Thread Vacuum Joe
But unless you've changed your environment, you're not using the logging facilities of Tomcat - you're using those of JBoss. We always get the full stack traces under either. Are you sure you haven't disabled logging in whichever you're actually using? I'm sure what's happening is there is a

tomcat in the embedded device

2007-01-15 Thread Vamshidhar Palkonda
Hi I am trying to solve a problem in a different way, or may be you have already solved it. And I want to know pros and cons Today, all the embedded devices like VPN, Firewall devices have a cli, httpd and configd daemons. These are all control pane daemons. They are all in C/C++. Now I

Cannot load applet on web browser

2007-01-15 Thread Teh Noranis Mohd Aris
Hi, I have created programs under the following directory: servlet program: jakarta-tomcat-4.1.31/webapps/myapp/WEB-INF/classes/AppletLogin.class applet program: jakarta-tomcat-4.1.31/webapps/myapp/applets/LoginApplet.class deployment descriptor: myapp/WEB-INF/web.xml

Re: Cannot load applet on web browser

2007-01-15 Thread Vacuum Joe
Oh my. Ok, you need to get some basic familiarity with Tomcat before you leap into that. First, your applet.class file should not be in WEB-INF. Second, don't do this as a servlet. Make a simple static HTML page work, with the applet, first. Disregard WEB-INF entirely. Getting an applet to