Re: Example build.xml error?

2005-10-12 Thread Anto Paul
On 10/10/05, René Schade [EMAIL PROTECTED] wrote: Hi List, Starting a new project, I deceided to move to Tomcat 5.5. In the Application Developer's Guide http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html There is an example build.xml file for installing reloading the

Re: newbee question on servlet and html

2005-10-12 Thread Anto Paul
On 10/11/05, Developer Developer [EMAIL PROTECTED] wrote: I wrote my first html and servlet and deployed it on tomcat 5.5. The html works okay when i call it from the browser. The servlet too works okay when i call its doget() method by invoking it from the browser. EG:.

RE: Getting Apache2 forwarding to tomcat5

2005-10-12 Thread Richard Mixon
I believe that SuSE does not supply JK2, but only JK. And as another poster said, JK2 is now deprecated. I got the RPM apache2-jakarta-tomcat-connectors working pretty easily as I remember. I moved from the RPM to a newer compiled version of JK version 1.2.14 a couple of months ago to get newer

RE: Tomcat 5.5.12 and user-agent header

2005-10-12 Thread Richard Mixon
Mark, Thanks - should have thought of that first. Now that I turned on LiveHTTPHeaders, I cannot get it to fail. I was able to do this consistently before. Just to be sure, I'll try again tomorrow morning. Maybe its just late. Thanks much - Richard -Original Message- From: Mark Thomas

dynamical class loading

2005-10-12 Thread dumbQuestionsAsker _
can somone give me an information? I want to know if it is possible to past and load classes into web-inf/classes path without beeing forced to reload the whole webapp ? _ 10 Mo pour vos pièces jointes avec MSN Hotmail !

RE: dynamical class loading

2005-10-12 Thread Allistair Crossley
this is a complex answer that *probably* only the Tomcat devs can answer of someone knowledgable about the JVM and class loaders, so don't expect too many users to answer. i believe from my limited knowledge that you cannot reload single classes in a tomcat web application as a whole class

Re: serving content from outside the context

2005-10-12 Thread Darryl L. Miles
John Laughton wrote: Hi, I hope this is the right mailing list for this question I am using tomcat 5.0.28 I have a simple web app and want to serve up some images in the jsp pages, but the images are outside the context The HTTP statement looks like trtd img alt=thumb image

Re: More helpful reporting of exceptions in JSPs

2005-10-12 Thread Darryl L. Miles
Tim Fennell wrote: I've posted my patch for Jasper/Tomcat at the following location: http://www.tfenne.com/jasper/ The page has a brief overview, a download link and before and after screenshots so you can get an idea for what exactly the patch does before you decide to patch your own

RE: dynamical class loading

2005-10-12 Thread dumbQuestionsAsker _
Thank you for your answer. You told me that it has more to deal with JVM, I tried using a URLClassLoader unsuccessfully, that's why I asked. Have a nice day(or night). @++ From: Allistair Crossley [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users

RE: serving content from outside the context

2005-10-12 Thread Arup Vidyerthy
Or if you don't want to do what Darryl is suggesting you can configure your tomcat to use unix symlinks by setting the allowLinking attribute to true. Then you can simply create a softlink inside your webapp directory that points to your data directory. That will work as well. Arup

connection timeout reached JK IsapiRedirect.dll

2005-10-12 Thread Reynir Hubner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm using tomcat 4.1.x and Coyote JK connector, with IIS 5. I just updated to isapi_redirect-1.2.14.dll. I did that because I've been getting alot of those error messages into the log(stderr.log): - - 12.10.2005 09:50:53

Re: connection timeout reached JK IsapiRedirect.dll

2005-10-12 Thread Reynir Hubner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ah sorry, I mean IIS 6 (the newest one). - -reynir Reynir Hubner wrote: Hi, I'm using tomcat 4.1.x and Coyote JK connector, with IIS 5. I just updated to isapi_redirect-1.2.14.dll. I did that because I've been getting alot of those error

Tomcat on Windows: advantages of running as a service?

2005-10-12 Thread Tom Burke
I'm running Tomcat 5.0.28 on a Windows 2003 server, and I need to automatically shut it down restart it. One way is to control it via shutdown.bat startup.bat, and run these as scheduled tasks at (say) 3:30am and 3:31am. However, I've noticed that while shutdown.bat will shut it down if it

RE: Tomcat on Windows: advantages of running as a service?

2005-10-12 Thread Peter Crowther
From: Tom Burke [mailto:[EMAIL PROTECTED] Sent: 12 October 2005 11:18 To: Tomcat Users List Subject: Tomcat on Windows: advantages of running as a service? I'm running Tomcat 5.0.28 on a Windows 2003 server, and I need to automatically shut it down restart it. One way is to control it

Re: Tomcat on Windows: advantages of running as a service?

2005-10-12 Thread Ben Souther
The net start service name and net stop service name commands will allow you to stop and start Windows services from the command line (and thus from a batch script). You can get the service name from the Services property window. On Wed, 2005-10-12 at 06:18, Tom Burke wrote: I'm running

RE: Tomcat on Windows: advantages of running as a service?

2005-10-12 Thread Dale, Matt
Running from a service makes it a no brainer to start up tomcat when you reboot the machine as it does it automatically. Disadvantages I would see is that it hides the console and makes it difficult to changes options like JAVA_OPTS. -Original Message- From: Ben Souther

RE: Illegal Field Name Error

2005-10-12 Thread Asad Habib
Hello, below I have provided the struts configuration file: ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.2//EN http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd; struts-config global-forwards

RE: Illegal Field Name Error

2005-10-12 Thread Raghupathy,Gurumoorthy
Can you prove me the action registration.RegistrationTypeAction as well ? -Original Message- From: Asad Habib [mailto:[EMAIL PROTECTED] Sent: 12 October 2005 12:42 To: Raghupathy,Gurumoorthy Cc: [EMAIL PROTECTED]; 'Tomcat Users List' Subject: RE: Illegal Field Name Error Hello, below

Refresh ResourceBundle

2005-10-12 Thread Roland Carlsson
Hi! I'm using the i18n taglibrary to i18n a site i'm working on. The administration features not only i18n but also contentmanagement. The problem is that I can't find out how to refresh my ResourceBundle in any kind of way other than restart the whole webapp. Are there any way to tell

Re: dynamical class loading

2005-10-12 Thread David Delbecq
Hi, I used dynamic class reloading on a commercial J2EE server and, believe me, it brings far more problems than it solves. First, when you dynamically reload a class here is what can happen: webapp start under classloader instance x webapp instanciate class A and store in session

AW: Refresh ResourceBundle

2005-10-12 Thread Bernhard Slominski
Hi, you can write a class which handles the loading of the resoucres, so you can control the behaviour. We have the resource bundles in the DB, so we can administer it via the DB without restarting the application Cheers Bernhard -Ursprüngliche Nachricht- Von: Roland Carlsson

RE: dynamical class loading

2005-10-12 Thread Allistair Crossley
Thrust me, when dynamically classloading, half of code breaks ^^ *rotfl* this has made my afternoon FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474

Re: dynamical class loading

2005-10-12 Thread David Delbecq
Allistair Crossley a écrit : Thrust me, when dynamically classloading, half of code breaks ^^ *rotfl* this has made my afternoon Nice one indeed :D - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Fw: Tomcat on Windows: advantages of running as a service?

2005-10-12 Thread Tom Burke
Thanks to Peter and other who made this, in retrospect, obvious suggestion! I'm pleased to say it works perfectly. Tom Burke - Original Message - From: Peter Crowther [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, October 12, 2005 11:49 AM

filter: How to set browser encoding?

2005-10-12 Thread Mark
Hi everybody, I've got a request from my client to force an encoding in the browser, regardless what user have set. When I set encoding inside my filter to Windows-1257 in the HTML source code I see only ?s:??? ? ???. Is there any easy way to enforce browser to set proper encoding? May be

Re: filter: How to set browser encoding?

2005-10-12 Thread Frank W. Zammetti
Mark, have a look here: http://javawebparts.sourceforge.net/javadocs/javawebparts/filter/CharacterEncodingFilter.html Just added that to JWP last weekend :) It essentially calls request.setCharacterEncoding() with whatever you configure. (Oops... ignore the description of the encodingScheme

RE: Q:how to remove charset from HTTP responce to allow browser use a browser selected charset?

2005-10-12 Thread Mark
Hi Rick, Yes my data comes from different locales I should say it's a legacy data. I have no ability co convert it to UTF-8 right now. response.setContentType(text/html;charset=...); mess up the not UTF-8 output, I'm getting ???s instead of a valid data. I think I'll go with

RE: serving content from outside the context

2005-10-12 Thread John Laughton
Thanks for the suggestions I didn't really want to run Apache, especially as I have tomcat (which is suppose to be a web server - I thought ?) For now I have added a file to .../tomcat/conf/Catalina/localhost/myData.xml This xml file contains ?xml version='1.0' encoding='utf-8'? Context path

Re:Tomcat on Windows: advantages of running as a service?

2005-10-12 Thread ooper
Why do you have to stop and start Tomcat each night? Just curious... - a href=http://Tomcat_User_List.roomity.com;roomity.com/a Your Roomity Broadband Webapp ~~1129134722658~~

RE: Tomcat 5.5.12 and user-agent header

2005-10-12 Thread Richard Mixon
OK - yes, it was lack of sleep that was causing the problem to not appear, I was starting Tomcat 5.5.9 instead of 5.5.12, sorry :( The problem is still there. I even took SiteMesh out of the picture, to make sure it was not the problem (should of done that sooner). Here are the steps: 1)

Re: Tomcat 5.5.12 and user-agent header

2005-10-12 Thread Jess Holle
Does this only occur when connecting directly to Tomcat or is it also an issue when going through Apache and mod_jk? Richard Mixon wrote: OK - yes, it was lack of sleep that was causing the problem to not appear, I was starting Tomcat 5.5.9 instead of 5.5.12, sorry :( The problem is still

where is a text/html;charset= ?

2005-10-12 Thread Mark
Hi everybody, How can I see the complete output stream for each http request? I tried: -- $telnet localhost 8080 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. GET / htmlheadtitleHello Test4/title/headbody/body/html - Where is a text/html;charset=...? or

Re: where is a text/html;charset= ?

2005-10-12 Thread Jon Wingfield
You need to submit a valid HTTP request. Yours doesn't have the version at the end of the request line. Try: GET / HTTP/1.0 (Thats a two linefeeds: one marking the end of the request line and one blank line indiating the end of the http headers) You should then see the HTTP response,

RE: Tomcat 5.5.12 and user-agent header

2005-10-12 Thread Richard Mixon
Have not tried it with Apache/mod_jk in front - just with Tomcat and accessing it as http://computername:8080/stars/HomePage.do . Not sure of your drift. Are you just looking for another date point (that's good) - or is there some implication as to how user-agent headers work with Tomcat

Re: Tomcat 5.5.12 and user-agent header

2005-10-12 Thread Jess Holle
Richard Mixon wrote: Have not tried it with Apache/mod_jk in front - just with Tomcat and accessing it as http://computername:8080/stars/HomePage.do . Not sure of your drift. Are you just looking for another date point (that's good) - or is there some implication as to how user-agent headers

Re: Newbee question on servlet and html - Really frustated with this problem.

2005-10-12 Thread Developer Developer
thanks everybody. I could solve the problem. There was a typo in my response text. When I changed the following line response.setContentType(test/html); with response.setContentType(text/html); It jus worked like a charm. thanks ! On 10/10/05, Developer Developer [EMAIL PROTECTED] wrote:

Context Relative versus Path Relative error pages

2005-10-12 Thread Arlene Milgram
Hi All, We ran into a problem with JSP pages under Tomcat 5.5.9 which did not exist under Tomcat 4.1.31. In Tomcat 5.5.9 if we forward to a JSP page that is in a different directory then the initial request the errorPage directive does not work as we expected. If we use a path relative

Re: where is a text/html;charset= ?

2005-10-12 Thread Mark
Thanks Jon, text/html;charset= is not there yet... Here what I've got: HTTP/1.1 200 OK Set-Cookie: JSESSIONID=95EA4260325D4C1FCBF8196773A4BED3; Path=/ Content-Length: 478 Date: Wed, 12 Oct 2005 20:34:37 GMT Server: Apache-Coyote/1.1 Connection: close htmlheadtitleHello Test4/title Mark.

Re: apache virtual hosting + server.xml + context

2005-10-12 Thread sudip shrestha
We are having the similar problem, but if we place context in server.xml, ( I also have a META-INF/context.xml ) and as we are using dbcp connection pool, and it seems that tomcat initializes those pool twice On 10/7/05, gianni dalmasso [EMAIL PROTECTED] wrote: hi list, i have a problem. i

Re: Getting Apache2 forwarding to tomcat5

2005-10-12 Thread Dan Chesmore
Thank you very much. That did the trick. On Tue, 2005-10-11 at 16:58 -0700, Lyndon Tiu wrote: Hello, 1) It is recommended to use mod_jk version 1 as version 2 is deprecated and anything that is new in version 2 has been rolled into version 1. 2) All you need is this in server.xml:

RE: apache virtual hosting + server.xml + context

2005-10-12 Thread Caldarale, Charles R
From: sudip shrestha [mailto:[EMAIL PROTECTED] Subject: Re: apache virtual hosting + server.xml + context We are having the similar problem, but if we place context in server.xml, ( I also have a META-INF/context.xml ) and as we are using dbcp connection pool, and it seems that tomcat