Re: Tomcat / CPanel

2005-10-27 Thread Deltaphon Multimedia GmbH
Both are compatible with cPanel. mod_rewrite is standard. Tomcat can be automatically installed as a AddOn -- Dave Anders Does anyone know if Tomcat is Compatible with CPanel? And if so, is it a reasonable production server configuration? One additional semi-related question. I have been

RE: Forwarding *all* webapps with mod_jk

2005-10-27 Thread Harry Hartley
Ditto, Please let me know if you find a solution. Harry -Original Message- From: Simon MARTIN [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 29, 2004 5:25 AM To: tomcat-user@jakarta.apache.org Subject: Forwarding *all* webapps with mod_jk Hi, I've integrated Tomcat

Re: new Date() returns 0 w/ Tomcat 5.028 on IBM JDK 1.4.2 Linux PPC

2005-10-27 Thread Seak, Teng-Fong
There's no asterisk in the package name, of course. My mail client added them Seak, Teng-Fong wrote: There are other Date classes in other packages, for instance in SQL related packages. Maybe for an obscure reason, you're not using *java.util.Date after some time. Try to use the

How to use 2 different authentication types for one applicatio

2005-10-27 Thread Peter . Neu
Hello, I have an application which has two different user groups. The first one will authenticat with a simple form and the second one will send their username password directly in a request. How can I get this to work with the authentication provided by tomcat? Regards, Pete -- Telefonieren

RE: Repeated logging problem on 5.5

2005-10-27 Thread Steve Kirk
This is a repost of a message I first posted in June that I got no replies to. I have a double-logging problem, by which I mean that some of my log messages get logged to two logfiles. I have only one logfile configured using java.util.logging, but in some cases, the same log message gets

How to share resources across two applications

2005-10-27 Thread Nihita Goel
Hi, I have two applications running on the tomcat application server. w1 - with context path /w1app and w2 with context path /w2app I wish to provide links in w1 displaying pages of w2. I have used this code in my HttpServlet class of w1 if /// some condition Servlet Context othercontext =

Tomcat and Apache

2005-10-27 Thread Filip Ruymen
Hi all, bear with me because I'm a newbie with apache and Tomcat. I installed apache2 which is working fine, I also installed tomcat which is also working fine on port 8080. I also compiled the module required for apache to pass jsp-scriplets to tomcat. I followed for this the documentation I

Re: How to share resources across two applications

2005-10-27 Thread Nihita Goel
I cannot use simple href tags in w1 application coz this application has a single controller Servlet where all requestes are received and then authenticated and other checks .. if all is well it calles the respective page. w2 application has no security restrictions as of now - I just want a

Re: How to share resources across two applications

2005-10-27 Thread Archana Mathur
In order to access resource of other applications, you have to set parameter crossContext = true in context.xml file of application w1. Example - ?xml version=1.0 encoding=UTF-8? Context docBase=/w1app path=/w1app crossContext = true/ getServletContext().getContext(/w2app) will not return null,

Re: How to share resources across two applications

2005-10-27 Thread David Delbecq
Hi, maybe the problem is not were we thought it was. If you get a NullPointerException a (1) (i mean not somewhere deeper inside 1 but exactly at 1), that can only mean getServletContext() returned false. This may be the case if servelt was not properly initialized. Check your init(ServletConfig

Log4j issues upgrading from 5.5.9 to 5.5.12

2005-10-27 Thread Rick
After upgrading from 5.5.9 to 5.5.12, all the same log4j.properties files, I now have some web-app level classes that I can not catch in my web-app log4j logger. I ended up having to put loggers in my common/classes/log4j.properties file to deal with them. Again, this worked normally in 5.5.9

mod_jk, deployment, and auto-conf

2005-10-27 Thread Harry Hartley
What I want: 1) To have apache responsible for running all my static (html) pages from my /www directory. 2) To have tomcat responsible for running all my web applications (jsp's and Servlets) from my ./tomcat/webapps directory. 3) To be able to deploy from my local client

JSP Precompilation vs. JSR-45 Debugging

2005-10-27 Thread Jess Holle
I have noticed that when I use an Ant script based on that documented in the Tomcat docs to precompile all my JSPs the resulting JSPs do not support source-level (JSR-45) debugging. I thought I was doing something wrong so I looked through the JspC source code and I can't see how I could feed

Re: Securing Manager Role

2005-10-27 Thread Charlie C.L. King
for you. On 10/27/05, Nehal Sangoi [EMAIL PROTECTED] wrote: Hi, I modified my server.xml as follows. Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase digest=SHA1/ Also, downloaded commons-logging-20051027.tar.gz and untarred the same. Later i tried

RE: Error: Cannot get a connection, pool exhausted

2005-10-27 Thread KUMAR, NANDA [AG-Contractor/1000]
Thanks Jan, Let me try this. I need to add these parameters in context.xml? Am I right? Thanks Nanda -Original Message- From: Jan Pernica [mailto:[EMAIL PROTECTED] Sent: Thursday, October 27, 2005 1:49 AM To: Tomcat Users List Subject: Re: Error: Cannot get a connection, pool exhausted

deploy a war on startup

2005-10-27 Thread Iratxe Etxeberria Sainz-Ezquerra
Hello! I am using tomcat 5.0.28. When we have the tomcat running and we update the .war, the war is deployed ok. When the tomcat is stopped and we update the war, logically it is not deployed. But if I start tomcat, it doesn t deploy the war. Is there any way to deploy wars on startup if

Re: DBCP connection leak after undeploy

2005-10-27 Thread Bogdan Calmac
This problem is caused by Tomcat not cleaning up the JDBC resources defined in context.xml. When a context is stopped the DBCP resource is not notified and the pooled connections are leaked. I've submitted a bug along with a fix (http://issues.apache.org/bugzilla/show_bug.cgi?id=37262) but it was

RE: Trying to use a filter to redirect to a servlet

2005-10-27 Thread Klotz Jr, Dennis
Thanks for the reply. Sorry, I guess I didn't explain how I'm applying the filter well enough. The filter is mapped to my JSP pages. When a user goes to the URL for the JSP page of interest they get a form to log in. The action of the form is j_security_check. When the filter is executed it

RE: org.apache.jasper.JasperException: setAttribute: Non-serializable attribute

2005-10-27 Thread Steve Kirk
Not sure, but this could be it: TC saves Session objects to files when the webapp is started/stopped. (This is a configurable feature in context.xml). To do this, any attribute that you add to a Session object must be serializable. Therefore I would guess that if you call

RE: Error: Cannot get a connection, pool exhausted

2005-10-27 Thread Steve Kirk
yes. in the same place you have set maxActive etc. -Original Message- From: KUMAR, NANDA [AG-Contractor/1000] [mailto:[EMAIL PROTECTED] Sent: Thursday 27 October 2005 15:46 To: 'Tomcat Users List' Subject: RE: Error: Cannot get a connection, pool exhausted Thanks Jan, Let me

RE: DBCP connection leak after undeploy

2005-10-27 Thread Steve Kirk
Interesting, thanks for mailing to the list. Have you considered whether managing the DBCP resource yourself might help? In other words you don't have to use the TC container-managed method of declaring DBCP resources if you don't want to. If you wrote a ServletContextListener to create and

Re: static server implementation?

2005-10-27 Thread John Laughton
Let me know if you find one, I was faced with the same issue a while ago I was basically told: you have to use apache I did not want to have (in my opinion) second web server running for just that purpose I ended up created a second context in tomcat that allows access to the static content

RE: static server implementation?

2005-10-27 Thread Caldarale, Charles R
From: John Laughton [mailto:[EMAIL PROTECTED] Subject: Re: static server implementation? I ended up created a second context in tomcat that allows access to the static content (ie. large jpegs) I'm confused. Why wasn't Tomcat's default servlet sufficient? It's sole purpose is to deliver

Remote Host /xxx.xx.xxx.xx SocketException

2005-10-27 Thread TG . Somashekara
Dear Friends, I am running the Tomcat 5.0.28 on Sun Solaris 5.9. In catalina.out log file I am getting lot of error messages saying org.apache.tomcat.util.net.TcpWorkerThread runIt SEVERE: Remote Host /xxx.xx.xx.xx SocketException: Invalid argument Any idea why it's giving this error message and

RE: static server implementation?

2005-10-27 Thread John Laughton
The problem with the servlet is sandboxing If you try to refer (href) to a file outside the container, it will not work Chuck, I want to have a jsp page with lots of jpeg's. In order to keep them in the container, I would need to put them into the war file. This would make the war file huge !

Re: static server implementation?

2005-10-27 Thread Robert Koberg
Caldarale, Charles R wrote: From: John Laughton [mailto:[EMAIL PROTECTED] Subject: Re: static server implementation? I ended up created a second context in tomcat that allows access to the static content (ie. large jpegs) I'm confused. Why wasn't Tomcat's default servlet sufficient? It's

Re: DBCP connection leak after undeploy

2005-10-27 Thread Bogdan Calmac
PS I don't think that I have see the problem that you have reported. I run TC 5.5.9 on WinXP with Mysql 4.1.11 and Connector/J 3.1.8, have never noticed that problem, my pools always seem to clean up fine. You might not have the same setup. I would suggest to try the following: 1. make sure

Re: static server implementation?

2005-10-27 Thread Robert Koberg
Caldarale, Charles R wrote: From: Robert Koberg [mailto:[EMAIL PROTECTED] Subject: Re: static server implementation? If you have a need for many virtual hosts, but do not need or want any ability for dynamic activity it would make sense to have a limited version of a tomcat host/context. I

Re: static server implementation?

2005-10-27 Thread Robert Koberg
Steve Kirk wrote: Have you considered that you can remove much of the dynamic config from conf\web.xml so that there is no default servlet or other dynamic behaviour in any webapp unless you explictly configure it so in the webapp's own web.xml? Right, but say an evil user creates a

Re: Tomcat is dying unpredictably

2005-10-27 Thread Mark Shifman
Thanks for your reply. After adding the export, tomcat doesn't die but I am getting an ERROR that ThreadDeath happened. see trace below. Any ideas where to go next? Oct 27, 2005 10:31:55 AM org.apache.catalina.loader.WebappClassLoader loadClass INFO: Illegal access: this web application

Realm JDBC

2005-10-27 Thread Vicente Couto
Hi All, I'm trying to configure a JDBC realm for request users authentication and i'm using netbeans 4.1. I follow the tomcat docs, and when i use a memory realm everything works fine. But when i put the JDBC realm in server.xml file tomcat throws a lot of exceptions, and ask for tomcat manager

Re: Configuring two-way SSL

2005-10-27 Thread Daniel
When you the client presents the list, I assume you mean the client's list of certificates. If this is the case the certificate is malformed. I suspect your using IE. For testing, switch to Foxfire; it will show you both the client and the server certificates during the certificate exchange

Re: static server implementation?

2005-10-27 Thread David Smith
Quote: And finally, Internet Explorer should know to cache this image and reuse when the request is made again (assuming image is unmodified, of course). Well all this works, EXCEPT, for the caching part (which mozilla does know how to do). AFAIK Internet Explorer is set by default to not cache

outputstream.flush() hangs at 32K

2005-10-27 Thread Daniel
I have a servlet on TC 5.5.9 that services a page with applet content that will reguire three GETs to complete the page 1) basic page, 2) applet jar and 3)image. The basic page GETs served OK and the browser comes back with a GET to request the JAR file which is modestly large (150K) so I

Re: static server implementation?

2005-10-27 Thread Leon Rosenberg
Maybe I'm missing the point completely, but why not MD5 encode the path to your image along with a timestamp, how long this link should be valid? I' used this several times, decoding the link in the servlet and streaming it to the client. You can alternatively have a filter for url-rewriting. The

Re: How to use 2 different authentication types for one applicatio

2005-10-27 Thread PHIL CAVAZOS
I've not done this before, but I'm wondering if Tomcat will allow you to setup two separate security configs within the context deployer. One used specifically for GET, and the other for POST. Try this. [EMAIL PROTECTED] 10/27/05 4:07 AM Hello, I have an application which has two different

RE: Securing Manager Role

2005-10-27 Thread Nehal Sangoi
. Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase digest=SHA1/ Also, downloaded commons-logging-20051027.tar.gz and untarred the same. Later i tried giving below command : $ java -classpath $CATALINA_HOME/server/lib/catalina.jar:/opt/commons-logging/commons