RE: Why does tomcat redirect to welcome files
Thanks Mark, found some good info. Another question: Is is possible to force a forwards for welcome pages with Tomcat. Is there an engine setting for that? Or would I be forced to change the Tomcat source. I notice with other web servers (i.e. IIS) I can specify a default page which returns HTTP 200 code instead of redirect codes. Thanks -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Sunday, September 04, 2005 3:19 PM To: Tomcat Users List Subject: Re: Why does tomcat redirect to welcome files Jim Kennedy wrote: I have setup Tomcat to use index.html as the only welcome file. I noticed that the engine redirects to index.html. I'm wondering why that is the case. I would prefer Status: HTTP/1.1 200 OK Not: Status: HTTP/1.1 302 Moved Temporarily spec quote section=SRV.9.10 The container may send the request to the welcome resource with a forward, a redirect, or a container specific mechanism that is indistinguishable from a direct request. /spec-quote There is also the issue of security constraints. See http://marc.theaimsgroup.com/?l=tomcat-devm=110980317127394w=2 for a discussion. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Why does tomcat redirect to welcome files
I have setup Tomcat to use index.html as the only welcome file. I noticed that the engine redirects to index.html. I'm wondering why that is the case. I would prefer Status: HTTP/1.1 200 OK Not: Status: HTTP/1.1 302 Moved Temporarily As the server response. The are very good reasons for this as search engine indexers don't like 302's. I confirmed the above using http://www.searchengineworld.com/cgi-bin/servercheck.cgi A nice web tool that checks http header. thanks for any help Jim Kennedy IT Consultant
Using Tomcat's HTTP processor and SSL
I am considering using Tomcat alone as my HTTP server as well as my servlet container with SSL configured. I know a lot of people use Apache HTTP Server instead of Tomcat for this and Tomcat is just the servlet container only. Is there any reason why I should not use just Tomcat alone for this. I'm actually using JBOSS with Tomcat, but Tomcat still handles the HTTP and servlet requests. I have no static pages at all on my site. Seems like a hassle to configure a separate server (Apache HTTP) when I don't have to. Unless there is a good reason (i.e. performance) to do so. I am using v4.1.28 Thanks for any help or suggestions. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using Tomcat's HTTP processor and SSL
-Original Message- From: Jim Kennedy [mailto:[EMAIL PROTECTED] Sent: Saturday, June 12, 2004 3:37 PM To: 'Tomcat Users List' Subject: Using Tomcat's HTTP processor and SSL I am considering using Tomcat alone as my HTTP server as well as my servlet container with SSL. I know a lot of people use Apache HTTP Server instead of Tomcat for this and Tomcat is just the servlet container only. Is there any reason why I should not use just Tomcat alone for this. I'm actually using JBOSS with Tomcat, but Tomcat still handles the HTTP requests. I have no static pages on my site. Seems like a hassle to configure a separate server (Apache HTTP) when I don't have to. Also, are there any difficulties configuring Tomcat with SSL? I am using v 4.1.28 Thanks for any help or suggestions. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using Tomcat's HTTP processor and SSL
I am considering using Tomcat alone as my HTTP server as well as my servlet container with SSL. I know a lot of people use Apache HTTP Server instead of Tomcat for this and Tomcat is just the servlet container only. Is there any reason why I should not use just Tomcat alone for this. I'm actually using JBOSS with Tomcat, but Tomcat still handles the HTTP requests. I have no static pages on my site. Seems like a hassle to configure a separate server (Apache HTTP) when I don't have to. Also, are there any difficulties configuring Tomcat with SSL? Thanks for any help or suggestions. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using Tomcat's HTTP processor and SSL
I am considering using Tomcat alone as my HTTP server as well as my servlet container with SSL. I know a lot of people use Apache HTTP Server instead of Tomcat for this and Tomcat is just the servlet container only. Is there any reason why I should not use just Tomcat alone for this. I'm actually using JBOSS with Tomcat, but Tomcat still handles the HTTP requests. I have no static pages on my site. Seems like a hassle to configure a separate server (Apache HTTP) when I don't have to. Also, are there any difficulties configuring Tomcat with SSL? Thanks for any help or suggestions. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with error-page
The suggestion to change 403.jsp to something like _403.jsp did not work. I did however change my browser setting in the advanced section concerning friendly error messages. This did work. I still don't understand why the IE browser distinguishes between an HTML error page and a JSP error page. The browser, it would seem to me, would not be aware of that. Here's the first message again: I am trying to configure a custom error page when users try to access an area of my site that they don't have sufficient rights to access. The book says this to configure this in web.xml: error-page error-code403/error-code location/error/403.jsp/location /error-page This doesn't work for me, but error-page error-code403/error-code location/error/403.html/location /error-page Does work. Is there a problem with using JSP's. I'm am using JBOSS with Tomcat, but that shouldn't matter. It's still the Tomcat engine. I'm also using Struts. I'm using Tomcat 4.1.24. -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 5:32 PM To: 'Tomcat Users List' Subject: RE: Problem with error-page Doooh. My quick guess was not right, then:). Sorry. -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: May 20, 2004 14:48 To: 'Tomcat Users List' Subject: RE: Problem with error-page DOH! prepend is what I meant to say. -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 3:45 PM To: 'Tomcat Users List' Subject: RE: Problem with error-page I had never thought of that! But when I tested it, it seems that JASPER appends a _, and so a JSP page that starts with a number should still work. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with error-page
I am trying to configure a custom error page when users try to access an area of my site that they don't have sufficient rights to access. The book says this to configure this in web.xml: error-page error-code403/error-code location/error/403.jsp/location /error-page This doesn't work for me, but error-page error-code403/error-code location/error/403.html/location /error-page Does work. Is there a problem with using JSP's. I'm am using JBOSS with Tomcat, but that shouldn't matter. It's still the Tomcat engine. I'm also using Struts. I'm using Tomcat 4.1.24. Anybody have troublem with this out there? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How does tomcat redirect from login
I am using form based login, which is working fine for me. I would like to display different login content (on my login form) based on the desired intent of the user. So , if the user wants to go to a certain section of my site that is secure, I would like to capture the redirect page (the url of the secure page) before the user logs in. Knowing that URL will allow me to display specific content for that section. I have searched the session and the request scopes for something that looks like a redirect page. Can't find anything. Not even a cookie. So, how does tomcat store the intended (redirect) page during the login process for form based login. Where is it stored? How can I get it? Hope I don't need to hack the source for j_security_check. thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How does tomcat redirect from login
Thanks, I'm surprised there is no way to do this. Why wouldn't they just pop it in the request. Seems very easy. I wonder if I could find the source for j_security_check and make the appropriate changes. I don't want to reinvent J2ee security. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Saturday, April 17, 2004 1:44 PM To: Tomcat Users List Subject: Re: How does tomcat redirect from login There is no way to do that. Your best alternative is to NOT use authentication/authorization via the spec and create some Servlet Filters to perform the appropriate authentication and authorization checks. That way, the filter can be smart enough to determine you user context and handle it approriately. The upside - is the path is very portable to othre conatiners. The downside is you reinvent some of the wheel. Lucky for you - there are other projects on the Internet which use Filters for this very purpose - so some of your work might already be done. -Tim Jim Kennedy wrote: I am using form based login, which is working fine for me. I would like to display different login content (on my login form) based on the desired intent of the user. So , if the user wants to go to a certain section of my site that is secure, I would like to capture the redirect page (the url of the secure page) before the user logs in. Knowing that URL will allow me to display specific content for that section. I have searched the session and the request scopes for something that looks like a redirect page. Can't find anything. Not even a cookie. So, how does tomcat store the intended (redirect) page during the login process for form based login. Where is it stored? How can I get it? Hope I don't need to hack the source for j_security_check. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How does tomcat redirect from login
Actually, I'm stupid here. j_security_check is not the issue. It's actually deeper in the container. Not a part of the motor I want to touch. -Original Message- From: Jim Kennedy [mailto:[EMAIL PROTECTED] Sent: Saturday, April 17, 2004 2:08 PM To: 'Tomcat Users List' Subject: RE: How does tomcat redirect from login Thanks, I'm surprised there is no way to do this. Why wouldn't they just pop it in the request. Seems very easy. I wonder if I could find the source for j_security_check and make the appropriate changes. I don't want to reinvent J2ee security. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Saturday, April 17, 2004 1:44 PM To: Tomcat Users List Subject: Re: How does tomcat redirect from login There is no way to do that. Your best alternative is to NOT use authentication/authorization via the spec and create some Servlet Filters to perform the appropriate authentication and authorization checks. That way, the filter can be smart enough to determine you user context and handle it approriately. The upside - is the path is very portable to othre conatiners. The downside is you reinvent some of the wheel. Lucky for you - there are other projects on the Internet which use Filters for this very purpose - so some of your work might already be done. -Tim Jim Kennedy wrote: I am using form based login, which is working fine for me. I would like to display different login content (on my login form) based on the desired intent of the user. So , if the user wants to go to a certain section of my site that is secure, I would like to capture the redirect page (the url of the secure page) before the user logs in. Knowing that URL will allow me to display specific content for that section. I have searched the session and the request scopes for something that looks like a redirect page. Can't find anything. Not even a cookie. So, how does tomcat store the intended (redirect) page during the login process for form based login. Where is it stored? How can I get it? Hope I don't need to hack the source for j_security_check. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Datasource problem upgrading from 4.06
Below is a little bit of the trace I'm seeing. org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'com. microsoft.jdbc.sqlserver.SQLServerDriver' for connect URL 'null', cause: java.lang.NullPointerException at java.lang.String.regionMatches(String.java:967) at com.microsoft.jdbc.base.BaseURLParser.parse(Unknown Source) at com.microsoft.jdbc.base.BaseDriver.acceptsURL(Unknown Source) at java.sql.DriverManager.getDriver(DriverManager.java:232) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource. java:743) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.jav a:518) . I just upgraded from Tomcat 4.06 to 4.1.29. I've made no changes to code or web.xml. Just a straight copy of my app over to the new server. Here's a snippet of my server.xml. The below config for the context is the same (which worked on 4.06). I'm having problems with the jdbc/eaglepro datasource. Context path=/cds docBase=D:\serverapps\Tomcat 4.1\webapps-noauto\cds reloadable=true debug=0 crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_cds_log. suffix=.log timestamp=true/ Environment name=maxExemptions type=java.lang.Integer value=15/ Parameter name=context.param.name value=context.param.value override=false/ Resource name=jdbc/eaglepro auth=SERVLET type=javax.sql.DataSource/ ResourceParams name=jdbc/eaglepro parameternameuser/name valueeflowuser_t/value /parameter parameternamepassword/name value#$%^*/value /parameter parameternamedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameternamedriverName/name valuejdbc:microsoft:sqlserver://192.168.2.14:1433;DatabaseName=jtest;SelectMethod=cursor/value /parameter /ResourceParams Resource name=mail/bay4 auth=Container type=javax.mail.Session/ ResourceParams name=mail/bay4 parameter namemail.smtp.host/name valuesmtp.algx.net/value /parameter /ResourceParams Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver connectionURL=jdbc:microsoft:sqlserver://192.168.2.14:1433;DatabaseName=eflow_dev;User=eflowadmin;Password=#$%^*;SelectMethod=cursor userTable=ef_users userNameCol=user_name userCredCol=user_password userRoleTable=j2ee_user_roles roleNameCol=role_name/ /Context
Re: Datasource problem upgrading from 4.06
How do I define host and database name with this version? Need a good example to look at. Thanks Jim Kennedy IT Consultant Mobile Phone: 813-503-1484 - - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 12:41 PM Subject: RE: Datasource problem upgrading from 4.06 Howdy, You need a ResourceParam for the DB URL. It looks like your driver name me be the URL? Yoav Shapira Millennium ChemInformatics -Original Message- From: Jim Kennedy [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 12:30 PM To: Tomcat Users List Subject: Datasource problem upgrading from 4.06 Below is a little bit of the trace I'm seeing. org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'com. microsoft.jdbc.sqlserver.SQLServerDriver' for connect URL 'null', cause: java.lang.NullPointerException at java.lang.String.regionMatches(String.java:967) at com.microsoft.jdbc.base.BaseURLParser.parse(Unknown Source) at com.microsoft.jdbc.base.BaseDriver.acceptsURL(Unknown Source) at java.sql.DriverManager.getDriver(DriverManager.java:232) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSourc e. java:743) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.j av a:518) . I just upgraded from Tomcat 4.06 to 4.1.29. I've made no changes to code or web.xml. Just a straight copy of my app over to the new server. Here's a snippet of my server.xml. The below config for the context is the same (which worked on 4.06). I'm having problems with the jdbc/eaglepro datasource. Context path=/cds docBase=D:\serverapps\Tomcat 4.1\webapps-noauto\cds reloadable=true debug=0 crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_cds_log. suffix=.log timestamp=true/ Environment name=maxExemptions type=java.lang.Integer value=15/ Parameter name=context.param.name value=context.param.value override=false/ Resource name=jdbc/eaglepro auth=SERVLET type=javax.sql.DataSource/ ResourceParams name=jdbc/eaglepro parameternameuser/name valueeflowuser_t/value /parameter parameternamepassword/name value#$%^*/value /parameter parameternamedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameternamedriverName/name valuejdbc:microsoft:sqlserver://192.168.2.14:1433;DatabaseName=jtest; Sele ctMethod=cursor/value /parameter /ResourceParams Resource name=mail/bay4 auth=Container type=javax.mail.Session/ ResourceParams name=mail/bay4 parameter namemail.smtp.host/name valuesmtp.algx.net/value /parameter /ResourceParams Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver connectionURL=jdbc:microsoft:sqlserver://192.168.2.14:1433;DatabaseNam e=ef low_dev;User=eflowadmin;Password=#$%^*;SelectMethod=cursor userTable=ef_users userNameCol=user_name userCredCol=user_password userRoleTable=j2ee_user_roles roleNameCol=role_name/ /Context This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Datasource problem upgrading from 4.06
Much thanks, I can figure it out from here. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how to.html Actual link above. Jim Kennedy IT Consultant Mobile Phone: 813-503-1484 - - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 12:57 PM Subject: RE: Datasource problem upgrading from 4.06 Howdy, http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples -howto.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Jim Kennedy [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 12:47 PM To: Tomcat Users List Subject: Re: Datasource problem upgrading from 4.06 How do I define host and database name with this version? Need a good example to look at. Thanks Jim Kennedy IT Consultant Mobile Phone: 813-503-1484 - - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 12:41 PM Subject: RE: Datasource problem upgrading from 4.06 Howdy, You need a ResourceParam for the DB URL. It looks like your driver name me be the URL? Yoav Shapira Millennium ChemInformatics -Original Message- From: Jim Kennedy [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 12:30 PM To: Tomcat Users List Subject: Datasource problem upgrading from 4.06 Below is a little bit of the trace I'm seeing. org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'com. microsoft.jdbc.sqlserver.SQLServerDriver' for connect URL 'null', cause: java.lang.NullPointerException at java.lang.String.regionMatches(String.java:967) at com.microsoft.jdbc.base.BaseURLParser.parse(Unknown Source) at com.microsoft.jdbc.base.BaseDriver.acceptsURL(Unknown Source) at java.sql.DriverManager.getDriver(DriverManager.java:232) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSour c e. java:743) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource. j av a:518) . I just upgraded from Tomcat 4.06 to 4.1.29. I've made no changes to code or web.xml. Just a straight copy of my app over to the new server. Here's a snippet of my server.xml. The below config for the context is the same (which worked on 4.06). I'm having problems with the jdbc/eaglepro datasource. Context path=/cds docBase=D:\serverapps\Tomcat 4.1\webapps-noauto\cds reloadable=true debug=0 crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_cds_log. suffix=.log timestamp=true/ Environment name=maxExemptions type=java.lang.Integer value=15/ Parameter name=context.param.name value=context.param.value override=false/ Resource name=jdbc/eaglepro auth=SERVLET type=javax.sql.DataSource/ ResourceParams name=jdbc/eaglepro parameternameuser/name valueeflowuser_t/value /parameter parameternamepassword/name value#$%^*/value /parameter parameternamedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameternamedriverName/name valuejdbc:microsoft:sqlserver://192.168.2.14:1433;DatabaseName=jtest ; Sele ctMethod=cursor/value /parameter /ResourceParams Resource name=mail/bay4 auth=Container type=javax.mail.Session/ ResourceParams name=mail/bay4 parameter namemail.smtp.host/name valuesmtp.algx.net/value /parameter /ResourceParams Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver connectionURL=jdbc:microsoft:sqlserver://192.168.2.14:1433;DatabaseNa m e=ef low_dev;User=eflowadmin;Password=#$%^*;SelectMethod=cursor userTable=ef_users userNameCol=user_name userCredCol=user_password userRoleTable=j2ee_user_roles roleNameCol=role_name/ /Context This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information
Determining remote user and inrole for unprotected pages
I have recently noticed that when you have a site with both protected and unprotected pages that getRemoteUser returns null on the unprotected pages eventhough I have authenticated against a protected page. isUserInRole also does not work. Is there a way I can determine who is logged in when I access an unprotected url? To answer my own Q, I supose I could create an object and store it in the session then access later, but is there another way? Ultimately I would like to present a dynamic menu in which administrators see a different menu than regular joe users. The menu is part of every page in this case. I would simple like to hide admin only sections so regular users don't see them. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Resource Reference and server.xml
One of the main reasons of using resource ref's in code is because you get a level of indirection. I see that level of indirection in the J2EE ref impl from Sun, but I don't see that in Tomcat. How can you specify a datasource (let's say) in the web.xml as a res ref different than the one setup in the server.xml. Is this possible? Here's an example: WEB.XML: resource-ref id=mail1 descriptionThis is used to send email/description res-ref-namemail/bay4/res-ref-name res-typejavax.mail.Session/res-type res-authContainer/res-auth res-sharing-scopeShareable/res-sharing-scope /resource-ref SERVER.XML: Resource name=mail/bay4 auth=Container type=javax.mail.Session/ ResourceParams name=mail/bay4 parameter namemail.smtp.host/name valuesmtp.host.net/value /parameter /ResourceParams --- mail/bay4 has to match everywhere, right? Anyway, this all works just fine for me. But I would like to disconnect the reference I use IN CODE, from the resourceparam used in the server.xml. This way I can change the server.xml without affecting the deployed WAR file. You can do this with SUN's Ref impl for the J2EE. Jim Kennedy IT Consultant -
Location of property files
I would like to know how to configure Tomcat to look for property files (.properties) in a directory other than ...\webapps\myapp\WEB-INF\classes. I've tried put them in the WEB-INF dir and the WEB-INF\lib directory, but I get MissingResourceException. It only seems to find them in the classes dir - which makes sense. But I would like to place them elsewhere under my web application, preferably in the WEB-INF dir. How can I do this? Thanks to all Jim Kennedy IT Consultant