problem setting up tomcat 5.5 as deamon with jsvc

2007-03-06 Thread Christian Andersson
Hi there I'm having a problem getting tomcat 5.5 working with jsvc on a server of mine as of this moment I have not managed to get it working properly (I'm sending this to both commons-user and tomcat-user mailing lists in hope to get good answers :-)) The hardware: SunFire x4200

java.lang.UnsupportedClassVersionError -- Please advise

2007-03-06 Thread Arshan Varsi
Hi everybody My system confi is : Win XP , JDK 6 . My env variables are : PATH :C:\Program Files\Java\jdk1.6.0\bin and CLASSPATH : . (Dot). I have ran many java programs in my system without any problems. I have installed tomcat 6 (by just using the Windows Service installer

Re: [OT] server.xml configuration..

2007-03-06 Thread prt
Thank you for your help, If i dont want to remov the jsp files so my solution is good ? Another example is, Uploaded images was stored in products/images under test, i change it to d:\data\products\images buy same solution, added this part to server.xml under the Host tag, Context

Re: [OT] How to get hold of security information from web.xml

2007-03-06 Thread Peter Coppens
Thanks for the reply Mark. In my case that should not really be an issue so I'll go for it. Peter Mark Thomas-14 wrote: Peter Coppens wrote: Works fine, but what worries me is that I have to make this a priviliged web app now and I am unclear as to what the consequences of that are. The

RE: java.lang.UnsupportedClassVersionError -- Please advise

2007-03-06 Thread Peter Crowther
From: Arshan Varsi [mailto:[EMAIL PROTECTED] My system confi is : Win XP , JDK 6 . My env variables are : PATH :C:\Program Files\Java\jdk1.6.0\bin and CLASSPATH : . (Dot). I have ran many java programs in my system without any problems. I have installed tomcat 6 (by just

Named based virtual host redirection

2007-03-06 Thread Darren Kukulka
Hi there I'm doing some testing of redirection with a separate Apache web farm serving front end redirection of specific tags to Tomcat server via an ajp13 worker. The problem I'm coming across is redirecting a DNS alias to a specific tag on the same web server. I've been trying virtual

Re: trimDirectiveWhitespaces not working

2007-03-06 Thread Tim Funk
trimDirectiveWhitespaces is only applicable at servlet configuration time. See $TOMCAT_HOME/conf/web.xml -Tim Peik Feng wrote: Hi, I have installed Tomcat 6.0.10 with JRE 1.6.0. I tried to set trimDirectiveWhitespaces in page directive but it doesn't take effect. %@ page

Re: server.xml configuration..

2007-03-06 Thread Tim Funk
Use a servlet filter which is mapped to *.jsp - see Google for more details on Servlet Filters. (javax.servlet.Filter) -Tim prt wrote: Hi to all, Where i have to config and what, to prevent direct access to my jsp files ?

Re: Tomcat 6 - includes broken

2007-03-06 Thread Patrick Lee
Thanks everyone. Much appreciated. I think part of my confusion was that when I create a directory to deploy into, I have to remove subdirectories from the appBase because it finds them first there before it looks in the ROOT directory I'm deploying into. This may be as intended but it was

RE: server.xml configuration..

2007-03-06 Thread Raghupathy, Gurumoorthy
Any reason why cant you put all pf the jsp inside WEB-INF folder This way you can be sure that no one is able to access your jsp file Regards Guru --- Gurumoorthy Raghupathy Email : [EMAIL PROTECTED]

Cannot re-set component value

2007-03-06 Thread Michal Glowacki
Hi I've written about this problem already, but still I didn't find solution. The problem is that my components on the pages somehow are saving values that are assigned to them for the first time. So, when I am first time at page A and set hidden field value to 3, then go to B, and then

TZUpdater for Extended DST issue

2007-03-06 Thread epyonne
Has anyone had any issue applying TZUpdater on the web server? Because of the Extended Daylight Savings Time, I need to apply this patch on our web servers where Tomcat are running, and I would like to hear if there is any known problem. Thanks. epy.

How to request a client Certificate Authentication ?

2007-03-06 Thread Jung, Alexander (AGIS)
Hello, I try to implement a custom client certificate authentication, that does some complicated LDAP-lookups in the background and gives an authenticated value with request.getRemoteUser() back to the applications. Peeking through the jcifs source, I chose to implement a filter. This

Re: How to request a client Certificate Authentication ?

2007-03-06 Thread Dima Retov
Hi, SSL stuff happens before any actual HTTP data is sent. It not possible to see request's URL at this stage. Dima Tuesday, March 6, 2007, 3:29:15 PM, you wrote: JAA Hello, JAA I try to implement a custom client certificate authentication, that does JAA some complicated LDAP-lookups in the

AW: How to request a client Certificate Authentication ?

2007-03-06 Thread Jung, Alexander (AGIS)
Hi, I'm not trying to see the SSL stuff itself, but make the connector ask for a client certificate. This works with the security-constraint config mentioned below, if I reference a role from the user-realm. As I do not have the users defined in some realm, i try to find a was to make the

Server suddenly using GMT instead of local time

2007-03-06 Thread David Kerber
I had a weird thing happen yesterday: I'm running TC 5.5.12 on Windows 2000 server. The jre is version 1.5.0_07. I did windows updates through IE, and used tzedit to update the DST settings, then rebooted the server. Everything came back up normally, but when I looked at the data being

Re: Tomcat Smart Card (CAC card) problem

2007-03-06 Thread Jung, Alexander (AGIS)
Hi, The issue seems to be with the IE /Tomat handshake. When IE hits my Tomcat site, it puts up a dialog with a title of Choose a Digital Certificate. However the list of certificates to choose from is empty. The certificates are loaded into my IE browser. It seem to work with IIS.

Re: trimDirectiveWhitespaces not working

2007-03-06 Thread Rémy Maucherat
On 3/6/07, Tim Funk [EMAIL PROTECTED] wrote: trimDirectiveWhitespaces is only applicable at servlet configuration time. See $TOMCAT_HOME/conf/web.xml There's a new directive and new jsp property which is supposed to do the same as our trimSpaces (of course, it's far more complicated). While it

AW: How to request a client Certificate Authentication ?

2007-03-06 Thread Jung, Alexander (AGIS)
Hello, I just found it searching the list. clientAuth=want Does what I need: It permits Users without clientcerts, but asks for them in case they have some... This together with my filter, that checks for the certs brings the desired effect. Mit freundlichen Grüßen, Alexander Jung

Re: Specify location of server.xml as a start up argument

2007-03-06 Thread Jim Goodspeed
You could put a case statement in the catalina.sh file where you change the CATALINA_BASE directory based on user input: echo Enter the application you want to start read app case $app in app1) export CATALINA_BASE=/usr/local/app1base ;; app2) export CATALINA_BASE=/usr/local/app2base ;;

RE: Named based virtual host redirection

2007-03-06 Thread Darren Kukulka
Further to this I modified the httpd-vhosts.conf file, after discovering that the main server will not serve the jkmount directives if virtual hosts are active...hence the looping and no response... NameVirtualHost 1.2.3.4:80 VirtualHost *:80 DocumentRoot d:/apache2/htdocs ServerName

Re: Named based virtual host redirection

2007-03-06 Thread Hassan Schroeder
On 3/6/07, Darren Kukulka [EMAIL PROTECTED] wrote: This worked but I want to hide the redirect URL, and eliminate the doubled network traffic, I hope? :-) Anyway, VirtualHost *:80 DocumentRoot d:/apache2/htdocs ServerName test.abc.co.uk ProxyPass / http://fred.abc.co.uk/app1/

Servlet Filtering performance..

2007-03-06 Thread prt
Hi to all again, I added filter object for all requests url-pattern/*/url-pattern. In the Filter class i check the ServletPath (HttpServletRequest.getServletPath()) and i check if is equals to alist of allowd paths. it is work just perfect. But i think that is damage the performance, is it ?

Re: trimDirectiveWhitespaces not working

2007-03-06 Thread Tim Funk
D'oh! I had an older copy of the spec without those notes. -Tim Rémy Maucherat wrote: On 3/6/07, Tim Funk [EMAIL PROTECTED] wrote: trimDirectiveWhitespaces is only applicable at servlet configuration time. See $TOMCAT_HOME/conf/web.xml There's a new directive and new jsp property which is

Re: [OT] log4j, fileappender, owner, group, and umask

2007-03-06 Thread stevethames
Thanks for the input, Dan. Actually, I am aware of how permissions. The question is how to set permissions, owner, group on a log file created by FileAppender when it actually creates the log file. For the moment, I have solved the problem by using a separate log file for tomcat. Daniel

Re: trimDirectiveWhitespaces not working

2007-03-06 Thread Rémy Maucherat
On 3/6/07, Tim Funk [EMAIL PROTECTED] wrote: D'oh! I had an older copy of the spec without those notes. It's a very minor issue anyway (trimSpaces doesn't do all that much). Rémy - To start a new topic, e-mail:

Re: Servlet Filtering performance..

2007-03-06 Thread Tim Funk
If your allowed list check is small and simple (and NOT synchronized) - the performance impact is probably not noticeable. If your list of URLS is large - then your check would be based on your check algorithm. (http://en.wikipedia.org/wiki/Big_O_notation) -Tim prt wrote: Hi to all again,

Re: Server suddenly using GMT instead of local time

2007-03-06 Thread Tim Funk
Look at your system properties [user.timezone] -Tim David Kerber wrote: I had a weird thing happen yesterday: I'm running TC 5.5.12 on Windows 2000 server. The jre is version 1.5.0_07. I did windows updates through IE, and used tzedit to update the DST settings, then rebooted the server.

Re: Server suddenly using GMT instead of local time

2007-03-06 Thread David Kerber
What file would that be in? Tim Funk wrote: Look at your system properties [user.timezone] -Tim David Kerber wrote: I had a weird thing happen yesterday: I'm running TC 5.5.12 on Windows 2000 server. The jre is version 1.5.0_07. I did windows updates through IE, and used tzedit to

Re: Server suddenly using GMT instead of local time

2007-03-06 Thread David Kerber
Ok, thanks. This gave me enough to go on that I could find the fix with a bit of googling. Apparently it's something that occasionally happens in Win2k when messing with timezones and updates. The workaround was to just change the timezone to something different and then change it back, and

Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, get class compile error.

2007-03-06 Thread David Smith
There's no reason I know of to have .classpath or .project in the webapp. The servlet spec doesn't define them and tomcat doesn't use them. I would imagine these are specific to the development environment you are working in. I've seen posts from other people integrating PHP with Tomcat, but

Re: Server suddenly using GMT instead of local time

2007-03-06 Thread Tim Funk
Its a system property - you can see it by with of the following in a sample jsp: out.println(System.getProperties().getProperty(user.timezone)) or System.getProperties().list(new java.io.PrintWriter(out)); -Tim David Kerber wrote: What file would that be in?

Re: [OT] Servlet Filtering performance..

2007-03-06 Thread prt
Hi, My list is small only 5 URLS, I save it in (String[]), that load in the Filter init method by init parameter in the web.xml. Every request i take the ServletPath and to this part in function, boolean bRunURL; for(int i = 0, max = sArrAlowd.length; i max !bRunURL; i++) bRunURL =

Re: [OT] Servlet Filtering performance..

2007-03-06 Thread Tim Funk
You won't even notice this code being run. -Tim prt wrote: Hi, My list is small only 5 URLS, I save it in (String[]), that load in the Filter init method by init parameter in the web.xml. Every request i take the ServletPath and to this part in function, boolean bRunURL; for(int i = 0, max

Re: [OT] Servlet Filtering performance..

2007-03-06 Thread prt
Well so you say is good, thank you for your help. I have another problem, I save uploaded images(by users) in folder place at D:\storeg\data\uf\. So when the URL is http://localhost/test/uf/xyz.jpg; then is redirect to D:\storeg\data\uf\xyz.jpg And that so because i cunfigure in server.xml

Redirect question

2007-03-06 Thread Jean-Sebastien Pilon
Hello, I am migrating an application to a new server. The web application is installed on the new server, I still need to serve it on port 8080 since some users are using it like this. But I also need to serve it on port 80. On the old server, apache was installed to redirect to

Re: [OT] log4j, fileappender, owner, group, and umask

2007-03-06 Thread Daniel Stephens
Ok cool.. I just had a round with our umask and groups being setup incorrectly. just a mess. On 3/6/07, stevethames [EMAIL PROTECTED] wrote: Thanks for the input, Dan. Actually, I am aware of how permissions. The question is how to set permissions, owner, group on a log file created by

Re: [OT] Servlet Filtering performance..

2007-03-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 prt, prt wrote: I have another problem, You should post a separate message in this case. I save uploaded images(by users) in folder place at D:\storeg\data\uf\. So when the URL is http://localhost/test/uf/xyz.jpg; then is redirect to

tomcat connector through cgi-bin?

2007-03-06 Thread Jacob Rhoden
Hi, Has anyone here ever had to use a cgi-bin directory to try and connect to tomcat? ie, some script that when run under cgi-bin, connects and forwards the info to tomcat? I cant find much on it, but it would be really handy. (Have a web server that i cant install a connector in!). Best

Re: tomcat connector through cgi-bin?

2007-03-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jacob, Jacob Rhoden wrote: Hi, Has anyone here ever had to use a cgi-bin directory to try and connect to tomcat? ie, some script that when run under cgi-bin, connects and forwards the info to tomcat? Ugh. This sounds miserable. ;) I cant find

Re: [OT] log4j, fileappender, owner, group, and umask

2007-03-06 Thread stevethames
Here's the thing about umask. In the Unix file system, file permissions is an octal value with one digit for each user type. When using chmod, these permissions can be set directly and do not require a leading zero. chmod 664 file Each digit represents a user class and each bit within the

Startup errors

2007-03-06 Thread Hernâni Cerqueira
Hello all, after upgrading my jdk to 1.6 on my gentoo server running tomcat 5.5 and started up i got this errors: Starting tomcat5: lock file found but no process running for pid 9691, continuing /usr/bin/rebuild-jar-repository: error: Could not find jdbc-stdext Java extension for this JVM

RE: Startup errors

2007-03-06 Thread Caldarale, Charles R
From: Hernâni Cerqueira [mailto:[EMAIL PROTECTED] Subject: Startup errors Hello all, after upgrading my jdk to 1.6 on my gentoo server running tomcat 5.5 and started up i got this errors: These errors are from a 3rd-party script that apparently comes with gentoo's repackaging of Tomcat,

Re: tomcat connector through cgi-bin?

2007-03-06 Thread Jacob Rhoden
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jacob, Jacob Rhoden wrote: Hi, Has anyone here ever had to use a cgi-bin directory to try and connect to tomcat? ie, some script that when run under cgi-bin, connects and forwards the info to tomcat? Ugh. This

deploying without a context?

2007-03-06 Thread Donal Roantree
Hi. Sorry this seems so simple but I've been tearing my hair out. I want to have my Tomcat application deployed to /AAA/BBB/CCC and browseable at www.ABC.com. In the server.xml file I have a Host tag but I don't know what I should put into the Context tag. I've been trying Context path=

Re: Startup errors

2007-03-06 Thread Hernâni Cerqueira
I first tried that solution, i tried to install tomcat6 but i keep getting Could not reserve enough space for object heap error. This is kind of strange because my server is a vps with 8GB of shared memory, with just 50mb free but more than 4GB are in cache so there should be no problem.

Re: server.xml configuration..

2007-03-06 Thread Li
Hi, Tomcat forbids directly access to files in your WEB-INF, which you can use the feature to setup a simple solution to protect certain jsp files so you can not direct access your jsp resource but use dispatched way to access ... On 3/6/07, Raghupathy, Gurumoorthy [EMAIL PROTECTED] wrote:

Re: java.lang.UnsupportedClassVersionError -- Please advise

2007-03-06 Thread Li
I updated my tomcat 5 to 6 (beta) which I didnt have this problem. Class version problem sometimes caused by system time. have you changes your system time? Or try to clean up all classes you had generated and compile your java program again see how On 3/6/07, Peter Crowther [EMAIL PROTECTED]

Re: trimDirectiveWhitespaces not working

2007-03-06 Thread Peik Feng
Hi, According to JSP Spec v2.1 (page 122/123): JSP.3.3.8 Removing whitespaces from template text Whitespaces in template text of a JSP page are preserved by default (See SectionJSP.1.3.8, White Space). Unfortunately, this means that unwanted extraneous whitespaces often make it into the

Re: trimDirectiveWhitespaces not working

2007-03-06 Thread Peik Feng
Hi, Sorry for the previous incomplete post. According to JSP Spec v2.1 (page 122/123), and also page 82-84 # The trim-directive-whitespaces element is a subelement of jsp-property-group (See SectionJSP.3.3.1, JSP Property Groups). It has no subelements. Its valid values aretrue andfalse,

How to set global variable in Tomcat 5.5.17

2007-03-06 Thread Kathy Lo
Hi, I setup Tomcat 5.5.17 in Linux Fedora Core 4 and develop a Web Application under /webapps directory. I have so many configuration files that need to be loaded into my web application. These configuration files are in a self-defined format and I wrote some Java classes to parse these

Re: How to set global variable in Tomcat 5.5.17

2007-03-06 Thread Jacob Rhoden
Instead of attaching information to a session context you can attach information to an application context, whats more, instead of loading the config each time a session is created, you can create what is called a Lifecycle listener which will load the configuraiton file once, when the

Re: How to set global variable in Tomcat 5.5.17

2007-03-06 Thread tang jie
Kathy Lo: I think you can use the interface javax.servlet.ServletContextListener.In you implementation's method contextInitialized(ServletContextEventfile:///E:/java/api/j2eeri-1_4-doc-api/apidocs/javax/servlet/ServletContextEvent.html sce),you can parse these configuration files and save the

how to set role for JAASRealm

2007-03-06 Thread shahab
Hi: I am trying to implement authentication and authorization using JAASRealm. (I am following the instruction provided at - http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html). However, looks like the role that I set (in the RolePrincipal) is not taking effect. I have created a class

RE: how to set role for JAASRealm

2007-03-06 Thread Caldarale, Charles R
From: shahab [mailto:[EMAIL PROTECTED] Subject: how to set role for JAASRealm I have also made entries in server.xml as follows (i set debug to 0 hoping for more debug info, The value 0 provides minimal diagnostic information; 99 is what you really want. Check all the logs to make sure

RE: Tricks for enabling manager host-manager via IIS

2007-03-06 Thread Dan Carwin
Resending... Are there tricks/gotchas to getting IIS 6 to properly pass the auth check for manager and host_manager to the browser? - We have enabled the manager and host-manager apps, and they work through the http connector. - We have other apps working via isapi redirector. The difference

Re: [OT] Servlet Filtering performance..

2007-03-06 Thread prt
I dont want to handle the display process, just to map it from the filter to D:\storeg\data\uf... But thank you for your solution. Christopher Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 prt, prt wrote: I have another problem, You should post a separate message