Offline entity resolver

2005-11-01 Thread Jose Javier Rodriguez
Hello, I am trying to run a tomcat webapp in a system without internet access. The application cant run because it cannot access the dtds cuz the URIS. Is there a way to access tomcat internal entity resolver catalog, to add extra dtds needed to run JSF applications in intranet enviroment ? Or is

Re: ant reload

2005-11-01 Thread Robert Parsons
You'll probably find that your web application is being copied into tomcats folder on install. So when you compile your new classes and reload, it just reloads the web-app from its own copy (which is still old). Try creating a context.xml file in META-INF that looks something like this:

Re: Installing Tomact as a service... update

2005-11-01 Thread Robert Parsons
Since the script is run under a different use (tomcat) make sure that the tomcat user has access to read all the appropreate configuration files, the web app and the database driver etc. Preston Crawford wrote: So I've been trying to use this site and the daemon script here.

Re: Tomcat as a service under Linux... To dream the impossible dream

2005-11-01 Thread Mike Fowler
Leon Rosenberg wrote: Just shooting into the heaven... Why not copy startup.sh in your init.d? Leon On 11/1/05, Preston Crawford [EMAIL PROTECTED] wrote: I've tried this so many different ways and I can't get it to work. Why is something that works out of the box on Windows so hard on

RE: Tomcat 5.5.12 Refresh/Cache problem

2005-11-01 Thread Arlene Milgram
/** Turn on caching: expire in one hour * @param response The Http Response. */ public static void setHeadersCacheOn( HttpServletResponse response ){ java.util.Calendar expireDate = java.util.Calendar.getInstance(); expireDate.add(java.util.Calendar.SECOND, 30 );

Parameters for init jvm

2005-11-01 Thread Javier
Hi I need to pass parameters to jvm to allow the use of LDAP connection pool. How could I do it ? Thanks in advance == Javier Leyba Sabadell - Barcelona Spain - To unsubscribe,

How to access URL in JAAS LoginModule

2005-11-01 Thread Pat Young
I need to access the URL from within a JAAS LoginModule. Does anyone know how to do this? In the documentation, it says that only Name and Password callbacks are provided by Tomcat security realms. I think I need a URL callback to make this work. Any ideas? Thanks, Pat Young --- Javier

RE: Jsvc vs tomcat shutdown -force

2005-11-01 Thread Klotz Jr, Dennis
Now this is under Suse 9.2 linux, so keep that in mind ;) Create a file such as tomcat5 in /etc/init.d with the contents: #!/bin/sh # # Startup script for the tomcat 5 Server # # chkconfig: 345 92 8 # description: tomcat is a jsp and servlet Web server. It is used to serve \ #

Re: ant reload

2005-11-01 Thread Tamas Hegedus
Dear Robert, Although, I could not find a good doc for context.xml I tried your context path solution. 1. It works the same way. 2. You wrote: That should stop the application from being copied. BUT: I want to copy the new version of classes and reload tomcat. The easiest way at this moment

RE: ant reload

2005-11-01 Thread Raghupathy,Gurumoorthy
Can you tell me the directory structure ? Like source directory Project ...src ...bin ../..myapp ../WEB-INF/ ../classes Regards guru -Original Message- From: Tamas Hegedus

Re: How to access URL in JAAS LoginModule

2005-11-01 Thread Mark Benussi
Pat. I think you hijacked another thread. If you want to create a new thread do so. In answer to your question just implement your own CallbackHandler and pass it to the LoginModule. You can then construct the CB with the url as well the user name and password. I need to access the

Re: ant reload

2005-11-01 Thread Tamas Hegedus
Hmm. Yes, that could be the problem. Now I tried to figure out how the developing environment should be created, but I can not be sure if I am rigth. I have the CATALINAHOME in a separate dir: /home/src/apache-tomcat webapps/myapp/index.html webapps/myapp/WEB-INF/web.xml

RE: ant reload

2005-11-01 Thread Raghupathy,Gurumoorthy
Can you send the build.xml and build.properties ? -Original Message- From: Tamas Hegedus [mailto:[EMAIL PROTECTED] Sent: 01 November 2005 15:35 To: Tomcat Users List Subject: Re: ant reload Hmm. Yes, that could be the problem. Now I tried to figure out how the developing environment

RE: Tomcat 5.5.12 Refresh/Cache problem

2005-11-01 Thread Samit Paul
Arlene, Thanks for the reply. My file is a PNG file. Can you tell me where can I put this piece of code. Thanks, Samit Paul -Original Message- From: Arlene Milgram [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 01, 2005 8:20 AM To: users@tomcat.apache.org Subject: RE: Tomcat 5.5.12

ClassNotFoundException: org.apache.catalina.realm.UserDatabaseRealm

2005-11-01 Thread Peter Ng
Hi all, I have been running Tomcat 5.5 w/Java 5 on linux. The service starts up and my webapps works fine. However, periodically and randomly (it seems) tomcat throws an exception and the service shuts itself down: At Line 151 /Server/Service/Engine/Realm/

A Simple Advice

2005-11-01 Thread Alvaro Seixas
Hello List!! I need a simple advice from you guys. I'm running TC 4.1 on Win 2K. I need to share large amounts of static content (image files) between contexts. These images will be stored in 12 shared folders (in a NAS storage). What's the best approach to do that?? I thought of creating a

How to use -security when running as a service under Windows.

2005-11-01 Thread Andoni
Hello, I am currently running Tomcat under OpenVMS by calling catalina.bat with the -security switch to allow it to connect to several RMI servers. Now that I am moving this app. to windows I want to be able to call the same switch from my service-driven installation of Tomcat 4.1.

Still failing authentication - need help on how to Debug

2005-11-01 Thread Alan Chandler
I am still struggling to get tomcat to authenticate access to my application. As a starting point I am trying to use BASIC authentication with the DataSource Realm (basically because I can check the query SQL) Whatever I do the user is presented with the authentication dialog box, but this

Re: Still failing authentication - need help on how to Debug

2005-11-01 Thread Andoni
Hi Alan, Show us the relevant section of your server.xml. Are you using a view in your database? What the authenticator is doing is basically two select statements on your database to find the usernames and passwords. If the name of the username column is not correctly corresponding to the

Re: Still failing authentication - need help on how to Debug

2005-11-01 Thread Alan Chandler
On Tuesday 01 Nov 2005 20:26, Andoni wrote: Hi Alan, Show us the relevant section of your server.xml. Are you using a view in your database? What the authenticator is doing is basically two select statements on your database to find the usernames and passwords. If the name of the username

Passing message to login failure page from a customer realm

2005-11-01 Thread Surya Mishra
Hi, I want to show a error page when the login fails. And I want to show a custom message whenever there is some system error like if the user database is down or there is a network failure. How can I pass on the message from my customer realm to the error page? The realm doesn't have access to

Backing up a web application?

2005-11-01 Thread Larry Mulcahy
My question is: Is there a straightforward way to back up a web application in Tomcat (5.0.28)? By this I mean make a copy of a deployed webapp with a different application context. I'd like to deploy a new version of a web application on a production server while retaining the old version in

Passing typed (non-String) data to tag file - error in getValueFromPropertyEditorManager

2005-11-01 Thread andrew cooke
I have a JSP page that includes: c:out value=${name.class}/ data:name value=${name}/ and when the second line is commented out, the page prints class org.acooke.collaborate.data.transport.Name However, when the second line is present, I get the error shown below. The appropriate code

Passing values to tags [Was: Passing typed (non-String) data to tag file - error in getValueFromPropertyEditorManager]

2005-11-01 Thread andrew cooke
More generally, I can't see how to pass a value at all! If I change my tag to accept a string, then the value it receives if ${name} (literally). This is true even if rtexprtype is explicitly set to true. I can force evaluation by calling data:name jsp:attribute name=valuec:out

Re: Tomcat 5.5.12 Refresh/Cache problem

2005-11-01 Thread Stephan van Loendersloot
Samit Paul wrote: Arlene, Thanks for the reply. My file is a PNG file. Can you tell me where can I put this piece of code. Thanks, Samit Paul -Original Message- From: Arlene Milgram [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 01, 2005 8:20 AM To: users@tomcat.apache.org

Re: Passing values to tags [Was: Passing typed (non-String) data to tag file - error in getValueFromPropertyEditorManager]

2005-11-01 Thread Rahul Akolkar
On 11/1/05, andrew cooke [EMAIL PROTECTED] wrote: More generally, I can't see how to pass a value at all! If I change my tag to accept a string, then the value it receives if ${name} (literally). This is true even if rtexprtype is explicitly set to true. I can force evaluation by calling

RE: Tomcat 5.5.12 Refresh/Cache problem

2005-11-01 Thread MW Janssen
that's what i meant. regards. -Oorspronkelijk bericht- Van: Stephan van Loendersloot [mailto:[EMAIL PROTECTED] Verzonden: woensdag 2 november 2005 4:39 Aan: Tomcat Users List Onderwerp: Re: Tomcat 5.5.12 Refresh/Cache problem Samit Paul wrote: Arlene, Thanks for the reply. My file