Re: How to read and save a simple file?!?

2005-11-15 Thread Jan Andersson
Regarding the classloader: The read and save methods, respectively, reside in two different classes. The read method is static and called like ReadClass.GetProperties (i.e. without an object). The save method is part of a servlet class and is not static. May this cause problems? I know

tomcat and wbs

2005-11-15 Thread Michael Niemaz
Hi all, Could someone explain me or point me to an explanation of how tomcat initialize web services? I'd like to initialize them automatically at tomcat start-up instead of just before their invocation. Thanx, --mike -

Re: How to disable Tomcat Admin directory

2005-11-15 Thread David N. Smith
Ok. This only makes sense if you have a connector like mod_jk or the isapi_redirector mapping contexts from Apache or IIS back to tomcat. In that case, review your config and unmount the tomcat admin context from your front-end web server. --David Mark, The \conf\catalina\localhost

Re: request.getSession(false) incorrectly creates a session

2005-11-15 Thread Tim Funk
If you are using jsp - you need [EMAIL PROTECTED] session='false'% in your page otherwise - a session is created for your whether you use it or not. -Tim Andy wrote: Hi, When I deploy my web app and call request.getSession(false), according to the javadoc, if a session does not exist null is

Asking Again: How to create multiple context's linked to the same webapp, without instantiating multiple webapp instances

2005-11-15 Thread Leon Rosenberg
asking again... any ideas, anyone? thanx leon On 11/15/05, Leon Rosenberg [EMAIL PROTECTED] wrote: Hi, I have following situation: Business wishes (God knows why) to have a proxy proxying 6 different context's on our server and fetching context from another server:

Re: Asking Again: How to create multiple context's linked to the same webapp, without instantiating multiple webapp instances

2005-11-15 Thread Tim Funk
If the servlet is that simple. I would 1) rewrite it as a filter 2) Put it in the root webapp 3) Map the filter to all requests 4) Use a config file to handle all your mappings 5) make the filter smart enough to re-read the config file (servletContext.getResourceAsStream()) to detect changes so

Net Disk Failure in JSP with Tomcat 5.5.9

2005-11-15 Thread NanFei Wang
Hi, I made a Net Disk named P:\ The file ' test.jsp ' as following: - %@ page import=java.io.File % % String net = P:\\; java.io.File netDir=new java.io.File(net); out.print(net+ exist = +netDir.exists()+br); out.print(net+ is Directory =

RE: advice on auto logout servlet

2005-11-15 Thread Peter Crowther
From: Mark [mailto:[EMAIL PROTECTED] So there is no way to provide this functionality using just servlets :( You could sort-of hack something together using meta-refresh directives on the pages so that the browser knew to refresh the page just as the server timed out the session, but you

Re: advice on auto logout servlet

2005-11-15 Thread Reynir Hubner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I would suggest that you do this by using somethinglike JSON or AJAX. See jasonspec: http://www.crockford.com/JSON/index.html You could make the client query your server, in some interval and check the session state. hope it helps - -reynir

Re: advice on auto logout servlet

2005-11-15 Thread Mario Ivankovits
Hi Mark, Is there any way to allow servlets to auto-logout a user when the timeout has been reached. We solved the problem slightly different. We use a rather small timeout for the session (say 10 minutes) and put a small iframe (nearly hidden, just changing colors) on the page where we use

Re: issue tomcat and special characters

2005-11-15 Thread Seak, Teng-Fong
IMO, it's a bad idea to still use Latin-1 these days. The best way is to find out why you can't insert those characters. Well, I don't know why you can't do so. Maybe there's because the MySQL provided by EasyPHP is quite old. By the way, since you use EasyPhp, that implies you're

Eclipse setup questions

2005-11-15 Thread Developer Developer
Hello All, i am posting this question to the tomcat user group assuming people in this group are familiar with eclipse IDE. I am new to eclipse IDE. I have a question on the setup. I have 3 different packages built in ecplise. I want to be able to direct the ouput of these packages to 3

Re: Asking Again: How to create multiple context's linked to the same webapp, without instantiating multiple webapp instances

2005-11-15 Thread Leon Rosenberg
thanks tim. What is the benefit of using Filter instead of servlet? The only thing I see, is that I can reconfigure it without changing the web.xml and therefore without restarting the server. Anything else? I wanted to keep this functionallity out of the root webapp, not to save the server from

Re: tomcat and wbs

2005-11-15 Thread Michael Niemaz
Thanx Reynir, it helps ... although I wouldn't mind if you could give me more details ;-) I have many web services that are initialised only when invoked the first time. I must admit that this init part looks a bit confused to me. Any example based on servlet or singleton would be very much

Re: tomcat and wbs

2005-11-15 Thread Reynir Hubner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, you need to insert something like this : listener listener-class com.your.package.YourContextListener /listener-class /listener your servlet class might look something like this : import javax.servlet.*; public final

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

2005-11-15 Thread dhay
Hi Mark, Yes, as I mentioned, we can access non-swf files without a problem. We have exactly the same setup, I believe, for 2003 Server and XP Sp2 - it runs from the same installer, which has no checking to distinguish between the two. We also have Apache talking to Tomcat via mod_jk quite

Re: Asking Again: How to create multiple context's linked to the same webapp, without instantiating multiple webapp instances

2005-11-15 Thread Tim Funk
A filter can trap all requests before the servlet is invoked. Thats why I like them better for this situation (in the root webapp). You can use a filter to rewrite the request to another context with the same code as you would do it with a servlet. (Via a cross context forward) -Tim Leon

Tomcat and Web Services

2005-11-15 Thread Brohm Michael
Hi I have question concerning Tomcat and Web Services. I have a web services running on a server named 'DTJAS' under tomcat with JWSDP 1.6, that sits behind a firewall. I would like to publish this to the outside, so we came up with a name of LLOYDS, we have a web server sitting outside the

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

2005-11-15 Thread Ryan McDonald
have you looked at the mod-jk and apache log files? On 15-Nov-05, at 11:19 AM, [EMAIL PROTECTED] wrote: Hi Mark, Yes, as I mentioned, we can access non-swf files without a problem. We have exactly the same setup, I believe, for 2003 Server and XP Sp2 - it runs from the same installer,

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

2005-11-15 Thread dhay
Have checked and can't see anything...do you know how to turn up logging to the maximum to really see what's going on? cheers, David x54680 |-+ | | Ryan McDonald| | | [EMAIL PROTECTED]| | | brand.com

mod_jk and url encoding

2005-11-15 Thread Dan Adams
Okay, i'm using tomcat 5.5 and mod_jk with apache 2. It looks like I've got jk set up okay for the most part. I'm able to use the site as I did before switching to mod_jk except for one thing. When I try to access the following url I got a 404 from apache and tomcat never gets a chance to touch

Re: mod_jk and url encoding

2005-11-15 Thread Dan Adams
got it. needed AllowEncodedSlashes On. On Tue, 2005-11-15 at 14:35 -0500, Dan Adams wrote: Okay, i'm using tomcat 5.5 and mod_jk with apache 2. It looks like I've got jk set up okay for the most part. I'm able to use the site as I did before switching to mod_jk except for one thing. When I try

Using Authentication/Authorization

2005-11-15 Thread Jess
Hiya, I am using Tomcat and Apache to host a simple website. I need to have some security on the site. At least to start with. Eventually I need to have security, period. :) So, following the documentation and several walk-thrus from many sources, I cannot get tomcat to cooperate.

Re: Using Authentication/Authorization

2005-11-15 Thread Jeremy Crosbie
Can you supply the relevant sections of your web.xml? I am using FORM-based authentication--tested with both the Memory and JAAS realms--but maybe this will give you some hints: ... security-constraint web-resource-collection web-resource-namehome page/web-resource-name

Re: Building tc 5.0.28 on Sol 9 gives gzip error for mx4j-2.0.1.zip

2005-11-15 Thread Creeping Death
I found an archived email on the dev list that shows the latest version being mx4j-2.1.0.tar.gz. This did work. --- Creeping Death [EMAIL PROTECTED] wrote: I am trying to build tomcat 5.0.28 on a Sun 410 with Solaris 9. I downloaded the source, setup ant and have tried to build. I

Re: Asking Again: How to create multiple context's linked to the same webapp, without instantiating multiple webapp instances

2005-11-15 Thread Leon Rosenberg
thanx again :-) On 11/15/05, Tim Funk [EMAIL PROTECTED] wrote: A filter can trap all requests before the servlet is invoked. Thats why I like them better for this situation (in the root webapp). You can use a filter to rewrite the request to another context with the same code as you would do

Re: How to disable Tomcat Admin directory

2005-11-15 Thread Mark Thomas
Jarrod Holder wrote: Mark, The \conf\catalina\localhost directory is empty and there isn't an admin folder at \server\webapps. The admin interface is not installed, I'm only trying to get Tomcat to stop responding when I hit the WEB_ROOT/admin folder from a web browser. The reason being

Re: How to disable Tomcat Admin directory

2005-11-15 Thread Jarrod Holder
Mark, I found and deleted the admin folder you mentioned. However, I'm still not getting the real admin folder on my web server. Tomcat is still responding but with a 404 - The requested resource (/admin/) is not available. I even tried killing the entire webapps\ROOT folder, but that didn't

RE: problem on running tomcat as windows services

2005-11-15 Thread wendy
Thanks a lot, it worked... =) Longson, Robert [EMAIL PROTECTED] wrote: lalyne, Either a) edit service.bat and change the PR_CLASSPATH to include your stuff then type service remove followed by service install. or b) run tomcat5w.exe //ES//tomcat, go to the java tab and edit the Java

Re: Load balancing with apache + mod_jk

2005-11-15 Thread Mladen Turk
Mirek Kopriva wrote: Not sure if I'm sending this question to the right forum, but Thanks a lot for any help. #properties workers.ajp13.1.host=127.0.0.1 workers.ajp13.1.port=8009 workers.ajp13.2.host=xx.xx.xx.xx (other server IP) workers.ajp13.2.port=8009 worker.list=loadbalancer, ajp13.1,