Re: Sharing webapps between linux and windows on single computer

2005-11-16 Thread Nikola Milutinovic
Dhaval Patel wrote: My question is, is it possible to put only webapps on P_FAT32 while tomcat install files are in P_NTFS and P_RES and configured tomcat to read P_FAT32 webapps directory as "appbase" in host node of server.xml? Have anyone done anything like this before? Only thing I am conf

Re: can't get #include to work

2005-11-16 Thread gbaynham
Thanks Mark, I made the changes to the conf/web.xml. after doing that, however, I still can't get any of the SSI scripts to run. any other help would be appreciated. thanks, GRB - Original Message - From: "Mark Thomas" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday,

Tomcat overwrites error response body

2005-11-16 Thread Anurag Chakravarti
Hi, Tomcat sends back a default error HTML page, even when I don't want it to. I want my servlet to send its own error response body. I am doing the following in my servlet doPut method. java.io.PrintWriter pr = resp.getWriter(); pr.println(e.getErrorCode().serialize()); resp.sendError(e.getCode(

Re: can't get #include to work

2005-11-16 Thread gbaynham
no, SSI scripts aren't recognized by some browsers, so to avoid letting them error out the SSI is wrapped in comments and older browsers will ignore it. The section on directives on this page gives an example: http://tomcat.apache.org/tomcat-5.5-doc/ssi-howto.html - Original Message ---

Re: Multiple .war files in single tomcat instance

2005-11-16 Thread Rob Hills
Hi Praveen, Simon On 17 Nov 2005 at 14:57, Simon Kitching wrote: > Praveen wrote: > > Hi - Iam trying to deploy multiple .war files on a > > single tomcat instance, but was wondering if theres a > > way in tomcat, to use the domain name and pick up the > > corresponding war file. > > For eg: I h

Re: JSP processing other than .jsp?

2005-11-16 Thread Yaakov Chaikin
That is correct. However, it's much better not to do this since it wastes a lot of bandwidth by sending the CSS code with every page. Much better to use and let the browser cache the file instead. Yaakov. On 11/16/05, Terence M. Bandoian <[EMAIL PROTECTED]> wrote: > Hi- > > In some cases, it may

JSP processing other than .jsp?

2005-11-16 Thread Terence M. Bandoian
Hi- In some cases, it may be desirable to include CSS or JavaScript files so that they are delivered in-line. For example: <[EMAIL PROTECTED] file="styles/style.css" %> or <[EMAIL PROTECTED] file="styles/style.css.jspf" %> Unless I'm mistaken, JSP tags in files included in this

case sensitive username

2005-11-16 Thread Jo
Hi folks, I am using UserDatabaseRealm with tomcat-users.xml and have noticed that the username returned by request.getUserPrincipal() is turned to lower case. Is there a flag that can tell tomcat not to change case ? Thanks. Jo.-

Re: Multiple .war files in single tomcat instance

2005-11-16 Thread Simon Kitching
Praveen wrote: Hi - Iam trying to deploy multiple .war files on a single tomcat instance, but was wondering if theres a way in tomcat, to use the domain name and pick up the corresponding war file. For eg: I have two war files sample1.war and sample2.war deployed on a single tomcat instance, an

Multiple .war files in single tomcat instance

2005-11-16 Thread Praveen
Hi - Iam trying to deploy multiple .war files on a single tomcat instance, but was wondering if theres a way in tomcat, to use the domain name and pick up the corresponding war file. For eg: I have two war files sample1.war and sample2.war deployed on a single tomcat instance, and lets say I have

Re: can't get #include to work

2005-11-16 Thread ALEX HYDE
Is that supposed to be a comment and not an include? <%@ include file="myinclude.html" %> --- Mark Thomas <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I'm trying to include a file as my footer section. > I have formatted the section in home.html as: > > > > > > > > after doing

Re: configure Tomcat/5.5.9 By ' set JAVA_OPTS=-Xmx256M '

2005-11-16 Thread NanFei Wang
Dear Richard Thank you for your response,my problem have solved by Chuck suggestion. Regards NanFei Dear Chuck, I use just -Xmx256m in another line at the Java Options text area. It work successfully. Thank so much. NanFei The .exe download does not include the scripts, for no discernable reas

Michelle Brett-Mitchell is out of the office.

2005-11-16 Thread mbrett-mitchell
I will be out of the office starting 11/16/2005 and will not return until 11/18/2005. I will respond to your message when I return. Please contact Liz Manning or Thomas Gaffney with any urgent issues. - To unsubscribe, e-mail:

stress test on tomcat

2005-11-16 Thread William Mok
Hi, I have tomcat running on top of apache. I am running some stress test and I got the following problem: I have 1000 threads running for the stresstest. It is very obvious an overloading problem. Is there anything I can tune in apache or tomcat to get rid of the overloading problem?

Re: can't get #include to work

2005-11-16 Thread Mark Thomas
[EMAIL PROTECTED] wrote: I'm trying to include a file as my footer section. I have formatted the section in home.html as: after doing this and viewing the file through my local_host:8080 i don't see the footer.html file showing up. from what I can see I need to enable SSI within tomcat. I

can't get #include to work

2005-11-16 Thread gbaynham
I'm trying to include a file as my footer section. I have formatted the section in home.html as: after doing this and viewing the file through my local_host:8080 i don't see the footer.html file showing up. from what I can see I need to enable SSI within tomcat. I'm supposed to add Option

Re: mod_jk bug serving up flash on non 2003 servers?

2005-11-16 Thread Mark Thomas
[EMAIL PROTECTED] wrote: Hi Mark, I have tested the following combination and it works quite happily: Win XP SP2, fully patched Apache 2.0.54 mod_jk 1.2.14 TC5.5.HEAD Firefox client and IE6 client Have you tested your config with an swf file? I've got a pretty similar setup, and everything

Re: http response 304 with content

2005-11-16 Thread Mark Thomas
hallyday1999 wrote: Hello Mark, Sorry, but the bug you quote mentions errors with the HTTP-response headers. My problem is an 304 response with sent content (=content-length >0): the content is e.g. the requested JPG file. kind regards Axel Do you have a simple test

Re: Query - Creation of a directory with special characters - _!':!bw"t!#4!a!"w!#4!bw"2 on HP-UX by Tomcat

2005-11-16 Thread Mark Thomas
Sandeep G R wrote: Hi, I have Tomcat 5.0 running on HP-UX. Under /.java/.userPrefs directory, a directory with special characters *_!':!bw"t!#4!a!"w!#4!bw"2* is created. I suspect Tomcat is creating this dir. Does anyone have information whether this directory is created by Tomcat? Thanks, Sande

Sharing webapps between linux and windows on single computer

2005-11-16 Thread Dhaval Patel
Hi all, I have computer three partitions: Partition 1 : Windows XP (NTFS) - (aka P_NTFS) Partition 2 : SuSE Linux 10.0 (Reiser) - (aka P_RES) Partition 3 : Share (FAT32) - (aka P_FAT32) Tomcat 5.5.12 with J2SE 1.5.0_05 on both SuSE and Windows. I use P_FAT32 for sharing my data files betwe

Re: mod_jk bug serving up flash on non 2003 servers?

2005-11-16 Thread dhay
Hi Mark, > I have tested the following combination and it works quite happily: > Win XP SP2, fully patched > Apache 2.0.54 > mod_jk 1.2.14 > TC5.5.HEAD > Firefox client and IE6 client Have you tested your config with an swf file? I've got a pretty similar setup, and everything else works fine. >

Re: JSP processing other than .jsp?

2005-11-16 Thread Hassan Schroeder
Yaakov Chaikin wrote: > 2) If you need to place JSP code in just one or two .css files, I > would not start messing with server specific configurations and just > rename those .css files to have extension of .jsp. So, now you will > have a stylesheet file with .jsp. It seems weird and unusual, but

Re: JSP processing other than .jsp?

2005-11-16 Thread Wade Chandler
--- "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote: > FYI, I had a case once where I needed to make my CSS > files JSP's because > I was using HTC's and for some reason I couldn't get > the path mappings > to work right unless I used request.getContextPath() > to prefix the HTC > names... more t

Re: JSP processing other than .jsp?

2005-11-16 Thread Frank W. Zammetti
FYI, I had a case once where I needed to make my CSS files JSP's because I was using HTC's and for some reason I couldn't get the path mappings to work right unless I used request.getContextPath() to prefix the HTC names... more than likely just my mistake somewhere, but making it a JSP (as Yaa

Re: JSP processing other than .jsp?

2005-11-16 Thread Yaakov Chaikin
I assume you need this because you want to place some JSP code inside your stylesheet Two approaches: 1) If you know that ALL of your .css files will need to include JSP code in them, then go to tomcat_dir/conf/web.xml and add another like so: jsp *.css 2) If you need to place JSP cod

JSP processing other than .jsp?

2005-11-16 Thread Marten Lehmann
Hello, how can I define, that e.g. the extension .css shall be processed by tomcat same as a .jsp-file? Regards Marten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: configure Tomcat/5.5.9 By ' set JAVA_OPTS=-Xmx256M '

2005-11-16 Thread Richard Mixon
Nehal, I believe he is talking about windows (startup.bat ?), so there's not ".profile" for the user. NanFei, there are a number of detailed posts on this topic during the last week - search/Google for them. I believe you need to run tomcatw.exe - but I do not have that version. You can also down

Re: advice on auto logout servlet

2005-11-16 Thread Frank W. Zammetti
You can do this strictly client-side, if requiring Javascript isn't a problem (which of course an AJAX-based solution does anyway). Just start a timer from the onLoad event on each page. When 20 minutes has elapsed, you can either pop an alert which is followed by a redirect to some appropria

Re: and

2005-11-16 Thread Rahul Akolkar
On 11/16/05, Marten Lehmann <[EMAIL PROTECTED]> wrote: > Hello, > > I was used define some taglibs manually in web.xml when using > http://java.sun.com/dtd/web-app_2_3.dtd as deployment descriptor. Now I > tried to upgrade but isn't available any longer > (http://java.sun.com/xml/ns/j2ee and > htt

Re: advice on auto logout servlet

2005-11-16 Thread Jon Wingfield
I did an AJAX version of this a couple of months ago. The slight gotcha is that the AJAX request prolongs the life of the session (you can't, it seems, override the cookie for AJAX requests) so the interval has to be slightly longer than the expiry time for the session. Reynir Hubner wrote: -

and

2005-11-16 Thread Marten Lehmann
Hello, I was used define some taglibs manually in web.xml when using http://java.sun.com/dtd/web-app_2_3.dtd as deployment descriptor. Now I tried to upgrade but isn't available any longer (http://java.sun.com/xml/ns/j2ee and http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd). How can I define

Re: tomcat and wbs

2005-11-16 Thread Reynir Hubner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm not really an axis specialist, so I guess you might want either post a new topic on this list, or post a question onto the axis-user list. regards, - -reynir Michael Niemaz wrote: > Hi and thanx again. > I played a lot with the listener an

session expires dealing with big objects

2005-11-16 Thread Alessandro Colantoni
Hi all. Some times my session expires wrongly when I deal with a bean very big. My bean is a Struts form bean. I didn't touch conf/server.xml and conf/web.xml of tomcat distribution In my web.xml I put 180 I've done such a file context.xml:

How to add client certificate to use in Servlets

2005-11-16 Thread Oliver Schoenwald
Hello, I'm using Tomcat 5.5.4 and have implemented a webapplication that connects to other servers to look for the existence of certain URLs and to load soap-data using the Jakarta Axis-Library. Now there is a remote server reachable via an https-adress, and that server should accept client ce

Re: Tomcat 5.5 and Logging - any plain english instructions anywhere?

2005-11-16 Thread Graham Leggett
Larry Isaacs wrote: You could try modifying common/classes/logging.properties to see if you can increase the output. Tomcat doesn't ship with such a config file, but it gives a sample one in the logging docs. Having tried to do some semi intelligent cut and pasting to create a logging config

RE: Tomcat 5.5 and Logging - any plain english instructions anywhere?

2005-11-16 Thread Larry Isaacs
You could try modifying common/classes/logging.properties to see if you can increase the output. I haven't worked with Struts enough to say what logging output you should expect. If no luck, then there's always Google. :) Cheers, Larry > -Original Message- > From: Graham Leggett [mailt

Re: tomcat and wbs

2005-11-16 Thread Michael Niemaz
Hi and thanx again. I played a lot with the listener and also the tag. Both lead me to this question: Is Axis keeping a reference of the according web service that I could reach? The reason is I can't instanciate 'yourService' from the listener because obscur reasons ;-) So I wonder if there was

RE: Eclipse setup questions

2005-11-16 Thread Allistair Crossley
We use the MyEclipse range of plugins www.myeclipseide.com which comes with a Deployer plugin to do this. I've not figured out how to JAR and distribute to several webapps though yet. -Original Message- From: Developer Developer [mailto:[EMAIL PROTECTED] Sent: 16 November 2005 13:37 To: T

Re: Tomcat 5.5 and Logging - any plain english instructions anywhere?

2005-11-16 Thread Graham Leggett
Larry Isaacs wrote: You mention Eclipse. Are you using a version of WebTools? No (or not that I am aware of). Tomcat is launched using the Sysdeo plugin. Assuming you are, be aware that the launch configuration created for Tomcat v5.5.x is missing the JVM argument: -Djava.util.logging.mana

Re: Eclipse setup questions

2005-11-16 Thread Developer Developer
I want to be able export my java classes, automatically when the project is built. I do not want to export them manually by clicking on file ->export etc. Is there any such setting ? Thanks ! On 11/16/05, Seak, Teng-Fong <[EMAIL PROTECTED]> wrote: > > Some more precisions are needed. What "outp

RE: Tomcat 5.5 and Logging - any plain english instructions anywhere?

2005-11-16 Thread Larry Isaacs
Graham, You mention Eclipse. Are you using a version of WebTools? Assuming you are, be aware that the launch configuration created for Tomcat v5.5.x is missing the JVM argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager that you would normally get from Tomcat 5.5's start

Tomcat 5.5 and Logging - any plain english instructions anywhere?

2005-11-16 Thread Graham Leggett
Hi all, I am in the process of trying to build a Struts project from scratch, and from the browser perspective it doesn't work, giving the vague error "Servlet action is not available". No worries, I look for catalina.out and/or the localhost_log*, or as a last resort the output of tomcat as

Re: http response 304 with content

2005-11-16 Thread hallyday1999
Hello Mark, Sorry, but the bug you quote mentions errors with the HTTP-response headers. My problem is an 304 response with sent content (=content-length >0): the content is e.g. the requested JPG file. kind regards Axel Mark Thomas <[EMAIL PROTECTED]> schrieb: Axel Ba

Query - Creation of a directory with special characters - _!':!bw"t!#4!a!"w!#4!bw"2 on HP-UX by Tomcat

2005-11-16 Thread Sandeep G R
Hi, I have Tomcat 5.0 running on HP-UX. Under /.java/.userPrefs directory, a directory with special characters *_!':!bw"t!#4!a!"w!#4!bw"2* is created. I suspect Tomcat is creating this dir. Does anyone have information whether this directory is created by Tomcat? Thanks, Sandeep

How to configure access.log < org.apache.catalina.valves.AccessLogValve >

2005-11-16 Thread Shyama Seshagiri
Hi All, I enabled access log valve in server.xml inorder to dump all the Request info like this: In localhost_access.log : [16/Nov/2005:15:06:49 -0800] "GET /servlet_jsp/examples/jsp/num/numguess.jsp?guess= HTTP/1.1" 200 544 But it's not dumping the requestinfo after reaching a particular siz

Re: Internationalization question

2005-11-16 Thread Seak, Teng-Fong
I'm using Tomcat 5.5.9 (in Windows). I've tried but I don't have any problem. Try to upgrade your Tomcat. Scott Smith wrote: I'm using Tomcat 4.1.29 on Windows. I have a context setup which contains some image files (simple jpgs). In the conf/server.xml file, the context looks something

Re: Eclipse setup questions

2005-11-16 Thread Seak, Teng-Fong
Some more precisions are needed. What "output" type are you referencing to? Jar? War? Or something else? But in any case, the general way is File > Export, and then choose your type and in the next screen, specify your export destination. You could use default settings for the rest.

Re: Announcement: ZK - an OSS project to enable rich user interfaces and easy-to-develop for Web applications

2005-11-16 Thread vineesh kumar
I just ckecked the ZK Framework by downloading it. Before going to more details I hav some queries, 1)Whether this framework can be used with struts? 2)Whether this is Lisenced? I am working on a commercial project. So wether i can adopt this framework to include on my app and i can sell the pr

Re: [HELP] I couldn't connect to Tomcat which is on another PC!

2005-11-16 Thread Pham Anh Tuan
Thank you Tom Burke! :) The reason why is Firewall :) ... again, thank you very much :) bowlkhin * Pham Anh Tuan Java Developer, HR Assistant ICHI Corporation Vietnam. Room #1001, 37 Ton Duc Thang, Dist. 1 Ho Chi Minh City, Vietnam. Phone: (+

Re: [HELP] I couldn't connect to Tomcat which is on another PC!

2005-11-16 Thread Tom Burke
Here are a couple of things to try: a) are you sure that Tomcat is actually serving up pages at all? - try opening a webpage in a browser on PC1, like this: http://localhost:8080/manager.html This should call up the Manager page (actually it should prompt you for a user name & password first)

[HELP] I couldn't connect to Tomcat which is on another PC!

2005-11-16 Thread Pham Anh Tuan
Hi all, I got a problem with Tomcat 5.0.28 and I hope that all you will help me to solve this problem. So, I have a Tomcat 5.0.28 which is installed on 1 PC called PC1 (WindowsXP), so, I have another PC called PC2, I try to connect to the PC1 which have a Tomcat server above, but I couldn't do

Re: Load balancing with apache + mod_jk

2005-11-16 Thread Olve Hansen
In addition to Mladens post, you have several errors in in your workers.properties. You should read the docs: http://tomcat.apache.org/connectors-doc/config/workers.html I have spent some hours deciphering these (they have gotten much better lately). ons, 16,.11.2005 kl. 09.29 +0200, skrev Mirek