Re: DefaultServlet, allowLinking, symbolic links do not work

2007-11-15 Thread Artur Rataj
Mark wrote: > Tomcat version? I think I recall some issues with this on older versions. I installed 6.0.14 and it works, thank you for help. Best regards, Artur - To start a new topic, e-mail: users@tomcat.apache.org To unsubsc

DefaultServlet, allowLinking, symbolic links do not work

2007-10-24 Thread Artur Rataj
Hello, this is the DefaultServlet definition to allow listings: Listings org.apache.catalina.servlets.DefaultServlet debug 0 listings true 1 Listings /

Re: Why DefaultServlet listing does not work

2007-10-24 Thread Artur Rataj
> > The way the default servlet works, if it isn't mapped to '/', it won't > work properky. Thanks, with that mapping it works. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Why DefaultServlet listing does not work

2007-10-23 Thread Artur Rataj
Is not the listings option in apps' web.xml enough? I wanted the app to decide if it allows listings of its servlet. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Why DefaultServlet listing does not work

2007-10-23 Thread Artur Rataj
Hello. I have the following servlet definition: Listings org.apache.catalina.servlets.DefaultServlet debug 0 listings true 1 Listings /listings It did

Re: Java source encoding

2007-08-03 Thread Artur Rataj
> > > What do you need source files stored inside war file for? > I don't need them them there. The conversion of characters is at compile time, of course. I have mistaken this. Thank you. Best regards, Artur - To start a new to

Java source encoding

2007-08-02 Thread Artur Rataj
Hello, can I specify the encoding of java source files in the war file? Best regards, Artur - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Context.xml error

2007-07-18 Thread Artur Rataj
On 7/10/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > From: Artur Rataj [mailto:[EMAIL PROTECTED] > Subject: Re: Context.xml error > > I have a web app that has servlets on /library/*, and want tomcat to > also display some directory listing under /files or

Re: Context.xml error

2007-07-10 Thread Artur Rataj
On 7/9/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: What are you actually trying to accomplish? I have a web app that has servlets on /library/*, and want tomcat to also display some directory listing under /files or something like that. Artur ---

Re: Context.xml error

2007-07-09 Thread Artur Rataj
On 7/8/07, Mark Thomas <[EMAIL PROTECTED]> wrote: Because each context.xml file can oly define a single context. So, if an app has additional context for some directory listing, where it should be defined? Artur - To start

Context.xml error

2007-07-07 Thread Artur Rataj
Hello. I added a second context to Context.xml: WEB-INF/web.xml and tomcat stopped to work: 2007-07-07 11:23:06 org.apache.tomcat.util.digester.Digester fatalError SEVERE: Parse Fatal Error at line 20 column 2: The markup in the document following the root element must be well-formed. or

Re: A disk directory context without cache

2007-03-21 Thread Artur Rataj
Thank you for help, it was indeed the listings setting in web.xml that needed to be changed. Now it works ok. Artur - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: A disk directory context without cache

2007-03-21 Thread Artur Rataj
Please help me. I tried this: with various combinations of slashes, with a symlink etc. it all gives 404 when trying http:///disk - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail:

Re: A disk directory context without cache

2007-03-21 Thread Artur Rataj
I have just copied the context from another one in the default configuration file. On 3/21/07, Mikolaj Rydzewski <[EMAIL PROTECTED]> wrote: Artur Rataj wrote: > docBase="/home/lib/disk/" >reloadable="true"> >

A disk directory context without cache

2007-03-21 Thread Artur Rataj
Hello. How to configure a context that displays the contents of a given disk directory, but without it being cached? I tried this, but it does not work at all, i. e. I get an error message from tomcat when trying to access /disk. -

Contexts in Tomcat 6, why does not work

2007-02-08 Thread Artur Rataj
Hello. I upgrade some webapp to Tomcat 6. The app has three contexts, one for dynamic pages, one for some disk directory. I put them into the server.xml file on the new Tomcat, into the Host part. Here are the first two contexts, that is, one for the servlets and one for some disk directory.

Re: Converting characters to "ascii" value

2006-03-19 Thread Artur Rataj
char is a numeric type. You might try this code as an example: char c = 32; c += '@'; if(c > 31) System.out.println(c + " = " + (int)c); The exception is it adds to strings as a character, thus the cast is needed. Regards, Artur --

Re: ClassLoader IllegalStateException

2006-03-06 Thread Artur Rataj
To turn it off, set reloadable="false" in the context definition of your app. I do not know where you have it defined, it might be tomcat's server.xml or context.xml of your app. I am not sure if it will work -- I have used applications listeners to stop the threads, which was very easy. Artur --

Re: ClassLoader IllegalStateException

2006-03-06 Thread Artur Rataj
It might that it unloaded an app. You may turn off app unloading/reloading in serwer.xml. Or start and stop threads using listeners. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ClassLoader IllegalStateException

2006-03-06 Thread Artur Rataj
One of the reasons might be that you have stray threads that do not stop when Tomcat tries to stop. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: A simple question about creating a thread in Tomcat app

2006-02-22 Thread Artur Rataj
I had some problems with the thread run in init(), that I described in the thread `STrange problem with a thread made in Servlet.init()'. Now I use the listeners with both startup/shutdown of the thread. Best regards, Artur - To

Re: STrange problem with a thread made in Servlet.init()

2006-02-22 Thread Artur Rataj
I replaced HttpServlet.init() with a listener, do both startup/shutdown of the thread, and also shut down HSQLDB not before VM shutdown, but in the listener. And now the thread works OK, and these error messages are gone. Best regards, Artur ---

Re: STrange problem with a thread made in Servlet.init()

2006-02-22 Thread Artur Rataj
On 2/22/06, David Smith <[EMAIL PROTECTED]> wrote: > Hmmm A very verbose exception message. Can we see the code that > threw the exception? Are there any other exceptions in the logs before > this one? > There is a servlet that loads on start up. In its init(ServletConfig config) is a code s

STrange problem with a thread made in Servlet.init()

2006-02-22 Thread Artur Rataj
I made a servlet that starts on startup, and in its init() method a new thread is started. The thread reads from a FS and uses JDBC, yet, it does not work, as many errors similar to that occur: Feb 22, 2006 5:26:27 PM org.apache.catalina.loader.WebappClassLoader loadClass INFO: Illegal access: thi

Re: A simple question about creating a thread in Tomcat app

2006-02-22 Thread Artur Rataj
Thanks for help, Artur - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

A simple question about creating a thread in Tomcat app

2006-02-22 Thread Artur Rataj
Hello! I would like, just after tomcat starts, to create a new thread. Where can I put the code that starts it? I do not want to wait with starting the thread until some servlet is needed. Best regards, Artur - To unsubscribe, e

Re: Strange servlet exception

2006-02-22 Thread Artur Rataj
I have resolved it at last! For some reason, tomcat is looking for class files under the current directory, even that the CLASSPATH variable does not point to the current directory. And in the current directory there were some stray subdirectories with class files, that apparently had priorities ov

Re: Strange servlet exception

2006-02-22 Thread Artur Rataj
Now, I changed the name of the method, adding an underscore before it, clean and rebuild in Netbeans worked fine, the WAR worked in the tomcat bundled with Netbeans, yet, copying the WAR to any other tomcat I tried causes now: javax.servlet.ServletException: Servlet execution threw an exception r

Re: Strange servlet exception

2006-02-21 Thread Artur Rataj
5. And the error occurs also with Java 1.5 and Tomcat 5.5.15. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Strange servlet exception

2006-02-21 Thread Artur Rataj
More details: 1. The jars within the war do not have servlet_api.jar, too. 2. The method session.removeAttribute() works OK in servlets.LoginScreenServlet.processRequest, but in the method called by processRequest it throws the exception. 3. processRequest is in the netbeans webapp, and removeUs

Re: Strange servlet exception

2006-02-21 Thread Artur Rataj
The error is there again. javax.servlet.ServletException: Servlet execution threw an exception root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpSession org.algstoch.httpuserlib.Password.removeUserId(Password.java:118) servlets.LoginScreenServlet.processRequest(Lo

Re: Strange servlet exception

2006-02-21 Thread Artur Rataj
Thank you for help. It was the tomcat web app that was putting the servlet-api-jar into war. I corrected it and the app works ok again. Artur - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

Strange servlet exception

2006-02-21 Thread Artur Rataj
Hello! I am developing a web app inside netbeans, and it worked until the following servlet exception began to appear: javax.servlet.ServletException: Servlet execution threw an exception root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpSession org.algstoch.httpuserlib

Blank servlet pages

2005-10-30 Thread Artur Rataj
Hello! I have written a servlet application (no JSPs), and it has the following problem: occasionally, rarely, a blank page appears instead of what the servlet returns, and doGet() in the servlet is not executed at all, even that it should. Reloading once or more the page in the browser corrects t