Re: strange error messages in tomcat log and mod_jk2 log

2003-12-15 Thread Chris Joelly
Hi! thanx for your reply. hm. it's a very strange thing. some questions: are you running your application under heavy load? are the responses very big in size? do you use the apache2/mod_jk2/tomcat4 config on a windows nt4 box? does a dialogbox appear on the server with an error message

Tomcat performance on Windows versus Linux

2003-12-15 Thread Sean Dockery
I am planning to profile a web application on Windows XP (my development platform). I am curious as to whether or not different components in Tomcat and the JVM will behave differently (in a relative comparison) on Linux (production platform) than Windows. For example, I have had a person tell

Re: new JVM feature, just an idea

2003-12-15 Thread Rodrigo Ruiz
Just an idea, a jar archive can contain a list of jar dependencies in its META-INF/manifest.mf file. You could create such a jar in a fixed location in your system, and set your CLASSPATH point to it. An example of such a manifest could be: Manifest-Version: 1.0 Created-By: myself Class-Path:

Re: CSS in War file

2003-12-15 Thread Philippe Valle
Duncan Smith wrote: I've just started deploying a web app as a war file instead of uploading individual files. Everything works except my styles don't load. The stylesheet is added to the war file in the same location as before, but if I try to request the css file on it's own I get a

Re: Apache SSL variables - Imposible!

2003-12-15 Thread Federico Fernandez Cruz
No, it doesn't work. I have tried your code inside a JSP and always returns null. My Apache is running in a RH Linux 9.0 machine and Tomcat is running in a Window XP Professional Station. Several days ago I had problems about mappings from Apache to Tomcat and someone (thanks to Jorg Werner)

Re: CSS in War file

2003-12-15 Thread Duncan Smith
Sorry. Was a error in my server.xml that I had made. The server was in fact only serving the home page and nothing else, but seems to be working now. Thanks for the suggestions -Duncan www.pennymail.com Duncan Smith wrote: I've just started deploying a web app as a war file instead of

MBeans and DataSOurceRealm

2003-12-15 Thread Alan Halley
Hi I'm trying to configure a DataSourceRealm on Tomcat 4.1.29. Despite my best efforts I keep getting my best efforts I keep getting INFO: Initializing Coyote HTTP/1.1 on port 8080ServerLifecycleListener: createMBeans: MBeanExceptionjava.lang.Exception: ManagedBean is not found with

Re: Detecting HTTP connection state in Tomcat 4.x

2003-12-15 Thread Trott, David
How would java.nio help you here? The reason I am interested is that we have a kludge where by the processing method (doGet, doPost ) does not return until the batch transaction is complete. Hence we know that if the connection drops the browser is not interested in the result. However I am

RE: precompile jsp

2003-12-15 Thread Edson Alves Pereira
There are a big problem with JspC ant´s tag, its error messages. Someone must analyse JspC code and improve all messages within. But i hope that this exemple would help you: !--///-- target name=compilePaginasJSP

Tomcat-4.0.6 failed to startup

2003-12-15 Thread Jeppy Suparto
Hi All, I have a standalone Tomcat 4.0.6 startup which used to works OK. Now it stop working, I can't even get it started. On Win2K machine, starting tomcat's default startup.bat failed. Nothing shown on tomcat's log files. I guess the logging services are not even started. I also tried with

Re: character encoding issue

2003-12-15 Thread Stefanos Karasavvidis
there is an issue lately with character encodings when sent as HTTP GET. look for example in the developer list the [5.0] content-type and charset issues thread. Try using POST in your form and if this solves your problem, then you're hit by it. sk Adam Hardy wrote: This is something I

Re: Tomcat-4.0.6 failed to startup

2003-12-15 Thread Ben Souther
Try starting with catalina.bat (in the same directory as startup.bat). When you start Tomcat this way, the dos window will stay open so you can see any startup errors. On Monday 15 December 2003 07:06 am, you wrote: Hi All, I have a standalone Tomcat 4.0.6 startup which used to works OK.

Re: Default 404 page source?

2003-12-15 Thread Tim Funk
It should be: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/valves/ErrorReportValve.java But it would be WAA easier to use error-page in web.xml -Tim Josh G wrote: Hi, I'm trying to find the source for the default 404 not found page that tomcat uses, so I can add more

Re: Tomcat performance on Windows versus Linux

2003-12-15 Thread Tim Funk
[I hate saying this since its rather very much like flambait but...] If its worth anything, I haven't had enough load on any of our apps to know whether Linux or Windows is better. Instead, look at: *** - Maintenance - If your a windows shop - stay windows *** - Debugging - I think

Re: virtual hosts

2003-12-15 Thread Andoni
Hello, Try this: Back up server.xml, Delete all sections that are commented out, change all tags to be on a single line. Indent the file properly. Remove the examples context. Then comment the file by looking through the Docs. IMPORTANT: You need to have each host serving from a different

RE: /server/lib available to web applications?

2003-12-15 Thread Shapira, Yoav
Howdy, No, server/lib is not available to webapp. No, do not copy the jar from server/lib to common/lib. If you want it available to both webapps and the server, just have one copy in common/lib, that's what that repository is for. Yoav Shapira Millennium ChemInformatics -Original

RE: getDate on a resource

2003-12-15 Thread Shapira, Yoav
Howdy, You are doing this right, and the code is functioning as designed. 0 is a legitimate return value, and the JNDI url is appropriate. What are you really trying to find out? The date that the JSP page was modified? Yoav Shapira Millennium ChemInformatics -Original Message-

RE: JNDI comp namespace - Tomcat Developers Please Read

2003-12-15 Thread Shapira, Yoav
Howdy, You 2nd context probably has deployment problems which prevent JNDI from working. autoDeploy for the host just appears to break JNDI because it triggers deployment of your 2nd context. Yoav Shapira Millennium ChemInformatics -Original Message- From: Tony Colson [mailto:[EMAIL

RE: Need help to study thread dump

2003-12-15 Thread Shapira, Yoav
Howdy, It's a classic thread safety issue. Dump your homebrew connection pooling implementation in favor of a 3rd party one like DBCP that is better tested against these race conditions. Yoav Shapira Millennium ChemInformatics -Original Message- From: Vikas [mailto:[EMAIL PROTECTED]

Re: getDate on a resource

2003-12-15 Thread Tim Funk
If you really need to know the date - The DefaultServlet has code which gets the date. -Tim Shapira, Yoav wrote: Howdy, You are doing this right, and the code is functioning as designed. 0 is a legitimate return value, and the JNDI url is appropriate. What are you really trying to find out?

RE: setting opts to avoid OutOfMemory errors

2003-12-15 Thread Shapira, Yoav
Howdy, Don't blindly increase the max memory: figure out how much your application SHOULD need in order to handle the expected maximum load with an acceptable response time. Set your app to that number and load-test it. Repeat until you arrive at the true max memory needed for your app. It may

getPathInfo behaviour changed in tomcat 5.x?

2003-12-15 Thread Yiannis Mavroukakis
Hi everyone, I have an app running in Tomcat 4.1.x which I moved over to Tomcat 5. I noticed that the return results I was getting when calling getPathInfo() where different between the two server versions. Does anyone know whether the implementation changed? Cheers, Yiannis

RE: Tomcat Exception Handling =?= Web Tier Exception Handling

2003-12-15 Thread Shapira, Yoav
Howdy, But I read somewhere that one should always distance himself from system- level exception handling when it comes to web applications. Please save yourself time by ignoring references that say one should always... or one should never... -- there are real-world exceptions to nearly every

RE: getPathInfo behaviour changed in tomcat 5.x?

2003-12-15 Thread Shapira, Yoav
Howdy, Umm, yeah, we figured we'd completely rewrite something elementary just for kicks ;) Of course I'm just kidding. What is the behavior you're observing? Yoav Shapira Millennium ChemInformatics -Original Message- From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED] Sent: Monday,

Re: /server/lib available to web applications?

2003-12-15 Thread Antony Paul
Why this directory have jars of file upload,beanutils. Antony Paul - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 15, 2003 6:53 PM Subject: RE: /server/lib available to web applications? Howdy, No, server/lib

web administration tool and tomcat-users.xml

2003-12-15 Thread Eckard_Buchner
user administration with the Tomcat Web Server Administration Tool (/admin) a) umlauts No umlauts are supported. Try to enter Käsbär. The xml encoding is always utf-8. For Western Europe it should be iso-8859-1. Even if I set this encoding in the xml file it is overwritten by the web gui b)

Re: getPathInfo behaviour changed in tomcat 5.x?

2003-12-15 Thread Tim Funk
Is this it? http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25015 -Tim Yiannis Mavroukakis wrote: Hi everyone, I have an app running in Tomcat 4.1.x which I moved over to Tomcat 5. I noticed that the return results I was getting when calling getPathInfo() where different between the two server

RE: getPathInfo behaviour changed in tomcat 5.x?

2003-12-15 Thread Yiannis Mavroukakis
Hmm not quite but it could be related. I noticed that getPathInfo returned / instead of null when there where no parameters present, which is part of the issue I am facing... -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 15 December 2003 13:45 To: Tomcat Users List

RE: getPathInfo behaviour changed in tomcat 5.x?

2003-12-15 Thread Shapira, Yoav
Howdy, Isn't getPathInfo supposed to always return a string starting with /? Yoav Shapira Millennium ChemInformatics -Original Message- From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED] Sent: Monday, December 15, 2003 8:58 AM To: 'Tomcat Users List' Subject: RE: getPathInfo behaviour

session attributes seems don´t work with Mozilla 1.4

2003-12-15 Thread Edson Alves Pereira
Hello folks, i´m using Mozilla 1.4 and i just create a session atribute named Var_Blah with value here my value and made my JSP page show its value, like %= ( String )session.getAttribute( Var_Blah ) %. But it didn´t work, my browser window is modal, any idea? Regards,

Form Authentication/JAAS ??

2003-12-15 Thread Renato Romano
I would like some clarifications about handling authentication in a webapp: it seems to me the simplest way to authenticate users is using form base auth, in conjunction with declarative security (declaring resources/roles in web.xml); the main problem with this approach in my opinion is handling

using manager webapp in a portlet

2003-12-15 Thread Jason Novotny
Hi, I'm trying to create a portlet using our GridSphere framework that would essentially use the functionality of the tomcat manager webapp to allow dynamic webapp reloading, etc. This all worked by doing the following : try { URL u = new URL(http://127.0.0.1:8080/manager; +

RE: getPathInfo behaviour changed in tomcat 5.x?

2003-12-15 Thread Yiannis Mavroukakis
No dont think so, unless I got this completely backwards of course ;) This is from the J2EE API: Returns any extra path information associated with the URL the client sent when it made this request. The extra path information follows the servlet path but precedes the query string. This method

RE: getPathInfo behaviour changed in tomcat 5.x?

2003-12-15 Thread Shapira, Yoav
Howdy, Yeah, I was wrong, I realized as soon as I posted ;) It doesn't hurt to read the JavaDoc every now and then ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED] Sent: Monday, December 15, 2003 9:10 AM To: 'Tomcat

creating/configuring my own Realm

2003-12-15 Thread Jason Novotny
Hi, I hope this question isn't too stupid, but in all of my reading of configuring Realms, it looks like this process is done out of band, by hand. In other words someone needs to edit tomcat-users.xml or a JDBC database. What I would like to do is provide a web interface for admins to

Re: creating/configuring my own Realm

2003-12-15 Thread Tim Funk
The Realm is intended as a readonly gateway for authentication and authorization. Its not the job of the realm to update the datasource with respect to authentication creddentials or permissions. If you use JDBC, or LDAP, then any SQL or LDAP update tool can update the backing data source with

FW: tomcat-user-unsubscribe@jakarta.apache.org

2003-12-15 Thread Krause Karin
-Original Message- From: Krause Karin Sent: Montag, 15. Dezember 2003 15:36 To: 'Tomcat Users List' Subject: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: character encoding issue

2003-12-15 Thread Adam Hardy
Right yes - that would be it then. Thanks Adam On 12/15/2003 01:18 PM Stefanos Karasavvidis wrote: there is an issue lately with character encodings when sent as HTTP GET. look for example in the developer list the [5.0] content-type and charset issues thread. Try using POST in your form and

RE: JNDI Issue with GlobalNamingResources DefaultContext Solved

2003-12-15 Thread Derek Mahar
Peter: If you deploy your application as a web archive (.war), if you store your context file in META-INF/context.xml (where META-INF is at the same level as WEB-INF), upon deploy, Tomcat will copy META-INF/context.xml to $tomcat_home/conf/Catalina/$hostname/${contextName}.xml, where $host is the

Re: session attributes seems don´t work with Mozilla 1.4

2003-12-15 Thread Adam Hardy
On 12/15/2003 04:02 PM Edson Alves Pereira wrote: Hello folks, i´m using Mozilla 1.4 and i just create a session atribute named Var_Blah with value here my value and made my JSP page show its value, like %= ( String )session.getAttribute( Var_Blah ) %. But it didn´t work, my browser

Starting tomcat 5 as a service with parameters on win32

2003-12-15 Thread Michael Lehnen
Hello, we would like to install tomcat5 with one of our applications and we have a problem with creating the service with the needed parameters for our web-application. With tomcat 4 we did it with a batch file. This is the content of the batch file: c:\Tomcat\bin\Tomcat.exe -install

Re: creating/configuring my own Realm

2003-12-15 Thread Adam Hardy
Jason, check out this thread: http://marc.theaimsgroup.com/?l=tomcat-userm=107123762419428w=2 Adam On 12/15/2003 03:40 PM Tim Funk wrote: The Realm is intended as a readonly gateway for authentication and authorization. Its not the job of the realm to update the datasource with respect to

RE: response.reset() and forward() ... problematic? DBCP related?

2003-12-15 Thread Altankov Peter
Thanks for the nice feed-back Anthony. And Antonio, just for the record, the snipplet: public class TestServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException,

start stop problem

2003-12-15 Thread Saurabh Seth
Hi there I have embedded the tomcat version 4.1 in my java application whereby I start the tomcat and stop the tomcat and also creates the context on fly. Starting of the tomcat is not a problem , its only when I stop the embedded tomcat and restart it, tomcat stop method doesnt stop all the

IP Addresses on Subnets, etc.

2003-12-15 Thread webmaster
I want to use my home computer for some development on Tomcat. I frequently use a laptop which is on a home combination wire and wireless router (one wireless and four wires). How can I find out the ip address of each machine in the the network? A call to the ip address of the laptop yields

Re: access to manager broken

2003-12-15 Thread Adam Hardy
/manager/ gives me a directory listing of the manager context. The correct access is: http://localhost:8080/manager/html However you should check in your server.xml to see what your connectors are set up for. manager operates under ssl and the connector should redirect the http request to the

Re: new JVM feature, just an idea

2003-12-15 Thread Rodrigo Ruiz
It is a feature of the JAR specification. You can find the online document at http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html It is in the Main Attributes section. The feature is also present in JDK 1.4.1 (and I think in 1.3.1 too, but I have not tested this) :-) Regards, Rodrigo

Help writing pdf output securely

2003-12-15 Thread Wendy Smoak
I need help understanding where this is falling apart. Apache HTTP Server Tomcat 4.1.24 on HP-UX. Previously, we created pdf's, placed them on the web server, and redirected the browser to https://example.com/user/some.pdf so that Apache would serve them up over SSL. Now, however, I'm trying

New MMBase Installation HOWTO

2003-12-15 Thread Adrian Offerman
Hi everyone, I compiled an MMBase Installation HOWTO: http://www.offerman.net/MMBase-Installation-HOWTO/ Any feedback is welcome. I'm not a regular subscriber to this list, so please reply to mmbase-at-offerman-dot-net. Best, Adrian Offerman Abstract This document describes the

Re: response.reset() and forward() ... problematic? DBCP related?

2003-12-15 Thread Ben Souther
As long as you are using global variables to point to your request and response objects, you will eventually run into concurrency problems. On Monday 15 December 2003 10:15 am, Altankov Peter wrote: Thanks for the nice feed-back Anthony. And Antonio, just for the record, the snipplet:

Re: IP Addresses on Subnets, etc.

2003-12-15 Thread Alan Czajkowski
!!! u r posting a question about networking, this is the wrong place to post !!! but i will answer ur question anyway: u r behind a router, think of a router as two pieces, a piece that talks to the outside world (the internet) and a piece that allows your internal network to communicate with

Problems with sending a serialized object from servlet to applet using Tomcat

2003-12-15 Thread Dicheva, Darina
Hello, I have a problem sending a serialized object (instance of a class that is not part of the Java Core API) from a servlet to an applet. I don't have a problem to send a serialized String object though - everything works fine (even in both directions). But when I replace the String object to

Re: IP Addresses on Subnets, etc.

2003-12-15 Thread webmaster
Hi, Alan, The folks in the know suggested this as the appropriate list. I am not trying to obtain an ip address in order to access locally Tomcat, but to access Tomcat globally. Therefore, the local subnet address will not help. By a request object, I mean an http request object that I send

Re: IP Addresses on Subnets, etc.

2003-12-15 Thread Rod Giffin
webmaster said: I want to use my home computer for some development on Tomcat. I frequently use a laptop which is on a home combination wire and wireless router (one wireless and four wires). How can I find out the ip address of each machine in the the network? A call to the ip address

allowLinking

2003-12-15 Thread Michiel Meeuwissen
I just upgraded my test-machine from tomcat 4.1.29 to 5.0.16. It seems that the 'allow-linking' feature is broken, or I'm doing something wrong. My server.xml sais something like: Context path=/mm docBase=/home/mmbase/mmbase-app debug=1 Resources

Re: IP Addresses on Subnets, etc.

2003-12-15 Thread Alan Czajkowski
mike, ur still asking a technical question unrelated to tomcat, but here's the answer: ok .. here's my understanding: ur developing at home but the tomcat server is somewhere outside ur local network (somewhere on the internet) request.getRemoteAddr() is returning the IP that ur ISP assigns

Re: IP Addresses on Subnets, etc.

2003-12-15 Thread Alan Czajkowski
port forwarding is safer, but if u have no idea what ports to forward or u want the ISP's IP to actually point to a comp in ur local network then u must DMZ that computer Thanks, Alan Czajkowski - Database Administrator BMO Financial Group Decision Support

Re: IP Addresses on Subnets, etc.

2003-12-15 Thread Alan Czajkowski
definately try port forwarding first though, read ur router's documentation and try to figure out if u can solve ur dilema with port forwarding alone unfortunately, if u DMZ ur computer then u loose the security that the router gives u port forwarding allows u to punch holes in ur firewall but

Re: allowLinking

2003-12-15 Thread Matt Raible
With 5.0.16, it's now an attribute on the Context. HTH, Matt On Dec 15, 2003, at 9:34 AM, Michiel Meeuwissen wrote: I just upgraded my test-machine from tomcat 4.1.29 to 5.0.16. It seems that the 'allow-linking' feature is broken, or I'm doing something wrong. My server.xml sais something

Authentication Pattern

2003-12-15 Thread Renato Romano
I would like some clarifications about handling authentication in a webapp: it seems to me the simplest way to authenticate users is using form base auth, in conjunction with declarative security (declaring resources/roles in web.xml); the main problem with this approach in my opinion is handling

Re: allowLinking

2003-12-15 Thread Michiel Meeuwissen
Matt Raible [EMAIL PROTECTED] wrote: With 5.0.16, it's now an attribute on the Context. Thanks! -- Michiel Meeuwissen Mediapark C101 Hilversum +31 (0)35 6772979 nl_NL eo_XX en_US mihxil' [] () - To unsubscribe,

RE: web administration tool and tomcat-users.xml

2003-12-15 Thread George Sexton
There is a real, bigger problem. Without looking at the source, my guess is that the parameters are not being parsed correctly and they are being treated as ISO-8859-1 and not UTF-8. This can happen when there is a mismatch between the character encoding sent from the browser, and the encoding

JNDI Resource Collection

2003-12-15 Thread Jerry Haltom
I have an instance where I need the deployer of an application to provide an unknown number of DBCP connection pools to my application at start up time. The most appropiate way I can think to do this would be to deploy a name-value Map to my application using Tomcat. However, is this possible?

Re: Tomcat performance on Windows versus Linux

2003-12-15 Thread Sean Dockery
Thanks, Tim, for the even handed response. I'm not looking for a business case to choose one or the other, however; it is certain that our customers will be deploying our application on both Linux and Windows (and even Solaris). I'm just looking to find out whether or not OS service (TCP/IP

Silent Tomcat installation fails in Version 5.x

2003-12-15 Thread Porter Patrick E (Eden) NPRI
Title: Message I have been using Apache Tomcat version 4.1.18 to run a set of servlet-based web applications. As part of my software installation,Apache Tomcatis silentlyinstalled (AT use isdocumented in release notes). I am attempting to transition my project to using Apache Tomcat 5.x

jsp:include problem when using WAR

2003-12-15 Thread Robert L. Brueckmann
I cannot for the life of me find if this is a known issue or not but I'm using Tomcat 4.0.3 and I have a web application that, throughout the software, uses a single header.jsp file on every JSP page. There are multiple subdirectories that call that header.jsp file like so: jsp:include

Re: Tomcat 4.1.29 war unpacking problems

2003-12-15 Thread Joe Francis
Philipp Taprogge wrote: In tomcat 4 you have to either restart tomcat after you drop the war in it's webapps directory or manually install the webapp using the tomcat manager (the path to war file should be relative to the webapps dir, so if you drop the war there, you can just enter it's name

[Fwd: Re: [Opensymphony-sitemesh] Problems with SM 2.0.1 Example and Tomcat 5.0.16]

2003-12-15 Thread Seth Ladd
Hello, I'm sorry for the forward, but Scott from Sitemesh thought that a problem I was experiencing was a Tomcat bug. Below is a stacktrace I'm experiencing when running the sitemesh example webapp in Tomcat 5.0.16 (SuSE 9, JDK 1.4.2). Scott thinks it's a Tomcat 5 bug. Would the stacktrace

Re: Need some Tomcat Configuration help badly

2003-12-15 Thread QM
: I had the same question. In all of the years I've worked with Java I've : always thought it was free of memory leaks. This is a touchy topic, because a lot of it comes down to semantics: Java frees the developer of explicitly destroying objects. This is key in Java because your code only

RE: [Fwd: Re: [Opensymphony-sitemesh] Problems with SM 2.0.1 Example and Tomcat 5.0.16]

2003-12-15 Thread Shapira, Yoav
Howdy, If it's a tomcat bug, it's a very peculiar one. You need to walk through the code in your JSP and make sure you're not calling getWriter() twice on the response. Yoav Shapira Millennium ChemInformatics -Original Message- From: Seth Ladd [mailto:[EMAIL PROTECTED] Sent: Monday,

Re: precompile jsp

2003-12-15 Thread Hans Steinraht
Doing it this way your using ants jspc task giving the classes a packagename org.apache I have checked tomcats work directory and see that tomcat compiles the jsp in a package org.apache.jsp. Thats why I like to use tomcats jspc task (org.apache.jasper.JspC), to avoid that there are differences

RE: precompile jsp

2003-12-15 Thread Edson Alves Pereira
No dude, after org.apache JspC task will include jsp also, so the result is org.apache.jsp -- De: Hans Steinraht[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 15 de dezembro de 2003 11:52 Para: Tomcat Users List Assunto:

Re: Tomcat performance on Windows versus Linux

2003-12-15 Thread David Rees
On Mon, December 15, 2003 at 9:42 am, Sean Dockery wrote: Tim Funk [EMAIL PROTECTED] wrote in message: [I hate saying this since its rather very much like flambait but...] If its worth anything, I haven't had enough load on any of our apps to know whether Linux or Windows is better. Instead,

global.asa - Web.xml

2003-12-15 Thread neal cabage
I'm trying to do something as simple as define global constants for my JSP application. In ASP there is a Global.asa file and the closest thing in JSP is of course the web.xml file. I defined a value in my web.xml file and assumed I could retrieve it using the following line: String test =

RE: global.asa - Web.xml

2003-12-15 Thread Shapira, Yoav
Howdy, I'm trying to do something as simple as define global constants for my JSP application. In ASP there is a Global.asa file and the closest thing in JSP is of course the web.xml file. I defined a value in my web.xml file and assumed I could retrieve it using the following line: String

Sending HTTPS from Apache to Tomcat Successfully

2003-12-15 Thread Lenny R. Sorey
First of all, Here's my platform: Win2K Server J2SDK 1.4.2 Tomcat 4.1.29 Apache Http server 2.0.47 I have successfully set up Apache and Tomcat to work together per John Turners very good instructions. In addition, I also have successfully set up a server.keystore to allow Tomcat to run as

RE: Sending HTTPS from Apache to Tomcat Successfully

2003-12-15 Thread Wendy Smoak
From: Lenny R. Sorey [mailto:[EMAIL PROTECTED] I cannot successfully get any of my Tomcat https://localhost/webapps to run. all the Tomcat https://localhost:8443/webapps still run without any problems. What does your ssl.conf file look like? I'm assuming you've started Apache with ssl--

RE: global.asa - Web.xml

2003-12-15 Thread neal cabage
Oops, you're right that line would not have compiled...I meant I use this: DataSource ds = (DataSource) new InitialContext().lookup(application.getInitParameter(db.jndi.dsn)); ...to get a datasource values and assumed the similar line would work for retrieving a String: String str =

help using JDBCRealm - how to relate a realm with a security constraint

2003-12-15 Thread Pedro Garcia
Hi! I am trying to set up security management for my web applications through JDBCRealm. What i have done: 1. modify the server.xml file to add a Realm tag (Realm className=org.apache.catalina.realm.JDBCRealm debug=99 connectionName=root connectionPassword=

RE: global.asa - Web.xml

2003-12-15 Thread Shapira, Yoav
Howdy, Oops, you're right that line would not have compiled...I meant I use this: DataSource ds = (DataSource) new InitialContext().lookup(application.getInitParameter(db.jndi.dsn)); What is the type of the application object? ...to get a datasource values and assumed the similar line would

tips on using the catalina deploy ant task (war vs localWar attribute)

2003-12-15 Thread Patrick Taylor
I have been trying to use the catalina deploy ant task to deploy my web app to Tomcat 5.0 from a local directory structure (not a war file). Unfortunately, this proved rather difficult, as this task is not documented very well at present. After reading various bits of documentation and the

Re: help using JDBCRealm - how to relate a realm with a security constraint

2003-12-15 Thread Christopher Schultz
Pedro, What i have done: 1. modify the server.xml file to add a Realm tag (Realm className=org.apache.catalina.realm.JDBCRealm debug=99 connectionName=root connectionPassword= connectionURL=jdbc:mysql://myserver:3306/mydatabase driverName=org.gjt.mm.mysql.Driver roleNameCol=role_name

Manager Valve

2003-12-15 Thread Pitre, Russell
How can I restrict access to my manager app to only TWO ip addresses When I go into the admin app to add a valve for an ip address other than 127.0.0.1 or add multiple ip addresses to a single valvei get the following error: ==

RE: Manager Valve

2003-12-15 Thread Shapira, Yoav
Howdy, You can use comma-separated address in the allow list of the RemoteAddressValve. Of course you can also write your own Filter and map it to /* in the manager app's web.xml. Yoav Shapira Millennium ChemInformatics -Original Message- From: Pitre, Russell [mailto:[EMAIL PROTECTED]

Re: Authentication Pattern

2003-12-15 Thread Adam Hardy
On 12/15/2003 06:05 PMnbsp;Renato Romano wrote: it seems to me the simplest way to authenticate users is using form base auth, in conjunction with declarative security (declaring resources/roles in web.xml); the main problem with this approach in my opinion is handling several login pages, for

RE: Manager Valve

2003-12-15 Thread Pitre, Russell
Ahhvery nice..i was ripping my hair out, I used everything but a comma.Thank you.. Filter eh? Good idea...which is more secure? Russ -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, December 15, 2003 4:27 PM To: Tomcat

Re: Manager Valve

2003-12-15 Thread Pedro Garcia
Well, that works fine... but a new question arrives to my mind: why, when using a valve for a context it works well in one OS and not in another? This is what is happening: i put a valve tag in one of my contexts (Valve className=org.apache.catalina.valves.RemoteHostValve allow=xx.xx.xx.* /).

RE: Manager Valve

2003-12-15 Thread Pitre, Russell
I'm sure you have and I don't want to sound patronizing, but are both pc's on the same network you specified (allow=xxx.xxx.xxx.*) -Original Message- From: Pedro Garcia [mailto:[EMAIL PROTECTED] Sent: Monday, December 15, 2003 5:01 PM To: Tomcat Users List Subject: Re: Manager

Re: Manager Valve

2003-12-15 Thread Pedro Garcia
Yes, both pc's are on the same network. What i have found now is that it doesn't matter what OS the pc is running, the problem is with the one on which the web server is running -mine-. If the attribute 'allow' is specified in the 'valve' tag it takes me to the troubble; however if 'deny' is

CGI not working on Tomcat 5.0.16?

2003-12-15 Thread Jonathan Eric Miller
I've been having problems getting CGI to work with Tomcat 5.0.16. I have it working with Tomcat 4.1. Has anyone else been able to get it to work? I'm receiving the following error in my localhost_log*.txt log even though the file listed is there. Has anyone else had this problem? 2003-12-12

tomcat 5 admin app w/ clustering

2003-12-15 Thread Daniel
Hi, In Tomcat 5.0.16, I noticed that when I enable the clustering section of the server.xml (uncommenting the cluster and valve). So I would start tomcat, then login to the admin app, I would get the error below, shown in the console. But if I don't use clustering then all is fine... snipped

RE: CGI not working on Tomcat 5.0.16?

2003-12-15 Thread Lawrence, Gabriel
I've noticed that on tomcat 5 the working directory that it execs the cgi script in is different then it was on tomcat 4. I haven't solved my problem yet, but I have isolated that to be my problem. -gabe -Original Message- From: Jonathan Eric Miller [mailto:[EMAIL PROTECTED] Sent:

Re: Default context for web app

2003-12-15 Thread Kent Boogaart
When I do that, I get a context at / and a context at eSM. In $TOMCAT_HOME/work/Standalone/localhost/ tomcat makes both _ and eSM. I use exactly the same context config as you, except some I don't declare since the defaults are the same. The only one I don't recognise is 'displayName' - can't see

Re: CGI not working on Tomcat 5.0.16?

2003-12-15 Thread Jonathan Eric Miller
Do you have the same error that I do in your log? As far as I can tell this is a bug in Tomcat. Jon - Original Message - From: Lawrence, Gabriel [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 15, 2003 4:58 PM Subject: RE: CGI not working on Tomcat

Re: global.asa - Web.xml

2003-12-15 Thread Ben Souther
In your web.xml file: context-param param-namecity_name/param-name param-valueNY/param-value /context-param In your JSP City: %= application.getInitParameter(session-expired-page)% On Monday 15 December 2003 02:40 pm, you wrote: I'm trying to do something as simple as

Unable to compile class for JSP

2003-12-15 Thread Marc Dugger
Tomcat 5.0.16 I keep getting this error about every 20 to 25 requests for various pages. Sometimes I can simply send another request and it will compile, and other times it will consistently throw this exception: 2003-12-15 17:31:05,348 [http8080-Processor23] ERROR

REPOST : Tomcat Manager App Question

2003-12-15 Thread Swaminathan Gurumoorthy
I am posting this again since I could not figure out how to solve this. I wud really appreciate any help. *** Problem statement *** I need to use Tomcat's manager app to install my webapp with its context file. I was playing with the manager app to install my application on Tomcat in

Re: global.asa - Web.xml

2003-12-15 Thread neal cabage
Ah, thanks Ben. Yes, I tried what I wrote prior and also tried application.getAttribute ... but didn't realize there was a getInitParameter() method. That did the trick. Thanks. N Ben Souther [EMAIL PROTECTED] wrote: In your web.xml file: city_name NY In your JSP City: On

Re: global.asa - Web.xml

2003-12-15 Thread Ben Souther
No problem. BTW: If you're not using an IDE for development, you might want to bookmark the j2ee API Docs. http://java.sun.com/j2ee/1.4/docs/api/ On Monday 15 December 2003 07:39 pm, you wrote: Ah, thanks Ben. Yes, I tried what I wrote prior and also tried application.getAttribute ... but

Re: Urgent! Tomcat4 closed giving Out of Memory Error

2003-12-15 Thread qi zhang
I got Open too many files error when I set the max open files 4096, so that I changed it to 9182. But I think no matter how large it is, it won't affect the performace, right? I'm not good at Java. But I don't think I reloaded the classes in Tomcat manager. I didn't change web.xml. Is it the

  1   2   >