Re: "Jasper 2 JSP Engine How To" ant script - ServletException not found

2006-01-31 Thread Glen Mazza
Olinga K. Abbott wrote: BUILD FAILED E:\workspace\progsoftware\trunk\source\jasper\build.xml:5: taskdef A class needed by class org.apache.jasper.JspC cannot be found: javax/servlet/ServletException Of course, it looks like it can't find javax.servlet.ServletException while building. This

Re: Tomcat upgrade: 3.3.1 --> 5.0.28, hang up after running 1 or 2 days

2006-01-31 Thread Glen Mazza
Monica Wu wrote: This is a update for this problem/solution. After removing Java 1.5 + Tomcat 5.0, reinstalling Java 1.3 + Tomcat 3.3.1 on last Monday, 1/23/2006, everything has been running fine by far. I have certain confidence to conclude that different versions of Java and Tomcat coexist

Context Path

2006-01-31 Thread Antonio W. Lagnada
Hi Everyone, Is there an assumption or some unwritten rule on what the context path should be when deploying a web application in Tomcat (or any other standard J2EE Web Server)? Should an application context like this be allowed? # Context 1 context = "/myapp/app1" # Context 2 conte

Re: was 404 - now 500

2006-01-31 Thread vineesh kumar
Ok now u hav created a new hirarchy now try make a new file like Download1.xml in the {TOMCAT_HOME}/conf/Catalina/localhost directory and add the following lines in that file On 2/1/06, Glen Mazza <[EMAIL PROTECTED]> wrote: > DEEPA M N wrote: > > > Hi, > > I jus tried this. I created another

"Jasper 2 JSP Engine How To" ant script - ServletException not found

2006-01-31 Thread Olinga K. Abbott
Hello, I've been trying to follow the "Jasper 2 JSP How To" located at http://tomcat.apache.org/tomcat-5.0-doc/jasper-howto.html to compile a sample JSP, but I'm running into the error BUILD FAILED E:\workspace\progsoftware\trunk\source\jasper\build.xml:5: taskdef A class needed by class org

Re: Download file Problem - 404 error

2006-01-31 Thread Glen Mazza
DEEPA M N wrote: Hi, wen i checked the log file, i think the error might be in the line of the code. root = propFile.getProperty("app.directory"); This code should be able to download the files from the server. so i m using application.properties where app.directory="D:\\temp\\file

Re: was 404 - now 500

2006-01-31 Thread Glen Mazza
DEEPA M N wrote: Hi, I jus tried this. I created another folder under webapps and the tree structure is as below. Download1-- --WEB-INF/web.xml --WEB-INF/classes/com/deepa/servlet/DownloadFiles.class --WEB-INF/lib Download1 is under webapps folder. But after trying this too i

Re: Download file Problem - 404 error

2006-01-31 Thread DEEPA M N
Hi, wen i checked the log file, i think the error might be in the line of the code. root = propFile.getProperty("app.directory"); This code should be able to download the files from the server. so i m using application.properties where app.directory="D:\\temp\\files\\" I doubt b

Re: Re: was 404 - now 500

2006-01-31 Thread DEEPA M N
Hi, I jus tried this. I created another folder under webapps and the tree structure is as below. Download1-- --WEB-INF/web.xml --WEB-INF/classes/com/deepa/servlet/DownloadFiles.class --WEB-INF/lib Download1 is under webapps folder. But after trying this too i am getting the same

re: Tomcat Manager behaviour difference between 5.0 and 5.5

2006-01-31 Thread Grandy Fu
It seems that no one can answer my question, maybe my English is not good enough to express the problem, sorry about that. Let me rephrase the problem: Objective: Allow all users (students) to enable/disable/reload their own tomcat applications by using Tomcat Manager. How: Users are require

RE: RE: context.xml

2006-01-31 Thread Caldarale, Charles R
> From: Klotz Jr, Dennis [mailto:[EMAIL PROTECTED] > Subject: RE: RE: context.xml > > I am hoping to find a place for a context.xml to live where it will > never get deleted. That a customer can change and when we give them a > new war file, the context.xml changes that they have made will stick

RE: RE: context.xml

2006-01-31 Thread Warren Pace
> > From: "Klotz Jr, Dennis" <[EMAIL PROTECTED]> > Date: 2006/01/31 Tue AM 08:01:01 EST > To: "Tomcat Users List" > Subject: RE: RE: context.xml > > Thanks again Warren. > > I guess I must be approaching this from the wrong perspective of what > the designers originally intended. > > I am ho

RE: rotating tomcat logs

2006-01-31 Thread Tim Lucia
I use log4j as the logging implementation, and then chose the RollingFileAppender (Daily or Size--your choice) Tim -Original Message- From: Patrick Ward [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 7:39 PM To: users@tomcat.apache.org Subject: rotating tomcat logs Does Tomc

rotating tomcat logs

2006-01-31 Thread Patrick Ward
Does Tomcat have a directive for rotating logs? I would like to rotate out the following logs: admin.log catalina.log host-manager.log localhost.log localhost_access_log manager.log or do I need to rotate them out manually, e.g. cp -p admin.log admin.`date +%Y-%m-%d`.log cat /dev/null > admin.

How to secure a folder?

2006-01-31 Thread François
Hi all, I've been trying to secure a folder so that BASIC authentication occurs whenever someone tries to access a .txt under it, configuring both web.xml and tomcat-users.xml. I've successfully implemented this type of authentication for jsp files (using /path/to/my/folder/*), but any o

APP/1.3 stops responding

2006-01-31 Thread Eddie Dimond
We are running five apache 2 web servers which all load balance between 12 tomcat 5.0.28 app servers all on SuSE 9.3 machines. We are experiencing occasional problems with tomcat not responding to the apache servers. The apache/logs/jk.log reports "[error] ajp_service::jk_ajp_common.c (1758): Err

Re: Session.getId() throws IllegalStateException

2006-01-31 Thread Remy Maucherat
On 1/31/06, Blair Cooper <[EMAIL PROTECTED]> wrote: > The following code generates an exception when getId() is called with > Tomcat 5.5.15. In 5.5.7 it returned the session id. > > I realize that the session is being invalidated, thus valueUnbound() > being > called. I also realize that the servle

RE: Re: Re: APR Connector Shutdown Problem

2006-01-31 Thread Fenlason, Josh
I added the following line to tomcat-native.1.1.1/jni/native/src/network.c (added at line 388): apr_socket_opt_set( s, APR_SO_REUSEADDR, 1 ); But I'm still running into the same problem. Does anyone who works on the APR Connector have any input on this? Or do I need to post this issue on the de

Performance twice slower on a multiprocessor machine

2006-01-31 Thread Karim Zaki
Dear all, I'm facing a very odd situation with my Tomcat installation. I don't know if it is a Tomcat problem or a Java problem, but here is the situation: I have a Java-based Vignette app that uses Tomcat as its back-end app server. I'm running Tomcat 5.0.28 using the server JVM from 1.4.2. I'm

RE: Cannot transform and load jsp file with Tomcat under Eclipse

2006-01-31 Thread Caldarale, Charles R
> From: David Ziants [mailto:[EMAIL PROTECTED] > Subject: Cannot transform and load jsp file with Tomcat under Eclipse > > I also added META-INF\context.xml file: > == > > > == The p

Re: Cannot transform and load jsp file with Tomcat under Eclipse

2006-01-31 Thread Vinu Varghese
Hi David, Just put your jsp files to 'D:\eclipse_ws_swing\MusarAvicha' directory and remove the showlogin_jsp showlogin_jsp 6 from your web.xml. Then try to access the jsp files thru the browser. - Regards Vinu David Ziants wrote: This is the first time I have had to do my

Cannot transform and load jsp file with Tomcat under Eclipse

2006-01-31 Thread David Ziants
This is the first time I have had to do my own configuration of tomcat (5.5) using eclipse (3.1) and Java 5, and I am having a few teething problems. Everything is installed under Windows XP. I just took the latest release of Tomcat as I see there ought to be proper support for Java 5 which I

MAPPING configuration error for request URI /

2006-01-31 Thread Sadjied Idoe
Hi, I am a newbie in Tomcat. I have just installed Tomcat4 on Apache2, on a debian sarge system. This is what I see in the log file : 2006-01-31 19:28:39 StandardHost[unlimited-xs.com]: MAPPING configuration error for request URI /numguess.jsp 2006-01-31 20:03:11 StandardHost[unlimited-xs.com]: M

Re: Tomcat 5.5.9 + JDK 1.4.2 + Freebsd 5.3

2006-01-31 Thread Mike Sabroff
I can't answer that, but it seems to make a difference. It also helps to have a "setenv.sh" which contains all of the environment variables i.e CATALINA_HOME JAVA_HOME, etc. catalina.sh looks for this. Actually, I never tried to go straight to the catalina.sh Vinu Varghese wrote: Hi Mike Than

Session.getId() throws IllegalStateException

2006-01-31 Thread Blair Cooper
The following code generates an exception when getId() is called with Tomcat 5.5.15. In 5.5.7 it returned the session id. I realize that the session is being invalidated, thus valueUnbound() being called. I also realize that the servlet spec/errata says that this exception should be throw

Re: Tomcat and client certificates

2006-01-31 Thread Mark Thomas
Tom Bednarz wrote: > Is it possible to run on the same container (instance of Tomcat) web > application that DO require certificates and other applications that do > NOT require certificates? Just specify CLIENT-CERT in web.xml. Assuming of course that you have a security constraint tha

Re: Tomcat 5.5.9 + JDK 1.4.2 + Freebsd 5.3

2006-01-31 Thread Vinu Varghese
Hi Mike Thank you. But what is difference in using startup.sh and catalina.sh start. The startup.sh simply calls catalina.sh with start . - Regards Vinu Mike Sabroff wrote: and shutdown.sh Vinu Varghese wrote: Hi, I am running Tomcat 5.5.9 with JDK 1.4.2 on freebsd 5.3. I use the 'catal

Re: Cannot create JDBC driver of class '' for connect URL 'null'

2006-01-31 Thread Lothar Krenzien
Hi Petr, thanks for your answer. That exactly the configuration I have. But after playing around I got success by removing the line from the server.xml. Even I don't know what it means ;) Lothar "Tomcat Users List" schrieb am 31.01.06 17:55:29: > > Hi, > > I have the following probl

RE: File "/jsp/struts-html" not found

2006-01-31 Thread Diwan, Dronesh \(Genworth, Contractor\)
Hi Lothar, Seems there is some configration problem or tld file is not in place.Can you send your web.xml and struts-conf.xml. Thanks, Dronesh -Original Message- From: Lothar Krenzien [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 1:42 PM To: users@tomcat.apache.org Subject: F

File "/jsp/struts-html" not found

2006-01-31 Thread Lothar Krenzien
Hi, I'm having a struts 1.1 application on tomcat 5.5.9. Because of some mysterious problems (see my previous post "can't load any JSP anymore" in this list) I switched to 5.5.15 but now have an another problem. In the browser I get the following error: org.apache.jasper.JasperException: File

Re: From Java to C#, ASP.NET [Off Topic]

2006-01-31 Thread David Tonhofer, m-plify S.A.
Hello, I think will have to make amends for my post where I recommended to "consider steering clear of J2EE". Thus deepening the off-topicness. Jess Holle said it: This affects things ranging from surveys of developers asking "Which of the following do you use? (a) J2EE, (b) .NET, ..." where d

Re: Tomcat 5.5.9 + JDK 1.4.2 + Freebsd 5.3

2006-01-31 Thread Mike Sabroff
and shutdown.sh Vinu Varghese wrote: Hi, I am running Tomcat 5.5.9 with JDK 1.4.2 on freebsd 5.3. I use the 'catalina.sh start' to start tomcat. Now it creates a bunch of java processes - which can be seen using ps command. Now the problem is when I shutdown tomcat with command 'catalina.sh

Re: Tomcat 5.5.9 + JDK 1.4.2 + Freebsd 5.3

2006-01-31 Thread Mike Sabroff
use startup.sh Vinu Varghese wrote: Hi, I am running Tomcat 5.5.9 with JDK 1.4.2 on freebsd 5.3. I use the 'catalina.sh start' to start tomcat. Now it creates a bunch of java processes - which can be seen using ps command. Now the problem is when I shutdown tomcat with command 'catalina.sh s

Tomcat 5.5.9 + JDK 1.4.2 + Freebsd 5.3

2006-01-31 Thread Vinu Varghese
Hi, I am running Tomcat 5.5.9 with JDK 1.4.2 on freebsd 5.3. I use the 'catalina.sh start' to start tomcat. Now it creates a bunch of java processes - which can be seen using ps command. Now the problem is when I shutdown tomcat with command 'catalina.sh stop' , still there exists some java p

Re: Cannot create JDBC driver of class '' for connect URL 'null'

2006-01-31 Thread Petr Hadraba
Hi, I have the following problem. I found this solution: There is in the server.xml the Resource tag describing your dataSource. Move this element into the Context element in the same xml file (at the bottom). See http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html section `JDBC Da

Cannot create JDBC driver of class '' for connect URL 'null'

2006-01-31 Thread Lothar Krenzien
Hi, after switching from Tomcat 5.5.9 to 5.5.15 I get the following error : 2006-01-31 16:43:38,130 [INFO ] QueryLogger.*** error. org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' at org.apache.tomcat.dbcp.dbcp.BasicDataSource

RE: Tomcat log to syslog

2006-01-31 Thread Caldarale, Charles R
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Mark F > Subject: Tomcat log to syslog > > If there is a newer version available for SLES > could someone please let me know where to find it. Other than the optional APR connector, Tomcat is pure Java, so just grab the latest level from the To

RE: Tomcat and client certificates

2006-01-31 Thread Caldarale, Charles R
> From: Tom Bednarz [mailto:[EMAIL PROTECTED] > Subject: Tomcat and client certificates > > If that is not possible, I need two servers, each running > an instance of Tomcat with different server.xml settings. I haven't tried it, but I would think all you need is two sets of tags, not two comp

Specifying SSL Provider During Startup

2006-01-31 Thread Jeba Bhaskaran
Is there any way to to speicify which SSL provider an tomcat instance should during startup? I know I can specify it in the java.security file, but I can not modify the existing java.security as it is shared by other instances of tomcat as well as app servers. Jeba __

Re: is there any way to monitor application server when it is working ?

2006-01-31 Thread Haroon Rafique
On Today at 12:25am, LW=>Legolas Woodland <[EMAIL PROTECTED]> wrote: LW> thank you for reading my post LW> LW> is there any application that help monitor an application server when it is LW> working ? LW> for example , total active sessions , Connections , ... i need this LW> application to moni

Tomcat and client certificates

2006-01-31 Thread Tom Bednarz
Is it possible to run on the same container (instance of Tomcat) web application that DO require certificates and other applications that do NOT require certificates? To define required client certificate authorization one needs to define in SERVER.XML ="org.apache.coyote.tomcat4.CoyoteSer

Tomcat log to syslog

2006-01-31 Thread Mark F
I have installed Tomcat 5.0.19 on Suse Linux Enterprise Server 9 SP3(SLES) If there is a newer version available for SLES could someone please let me know where to find it. As a relatively new user of SLES, poor package availability has been my only significant gripe. I would like to configu

SSL Client Authentication

2006-01-31 Thread Markus
Hi! Setting clientAuth to true in the coyote connector configuration forces the client to send his client certificate before a ssl session to any page/servlet is established. I'd like to divide my webapp into two areas: 1) a public area whith ssl encryption only for example mydomain.com/publi

RE: RE: context.xml

2006-01-31 Thread Klotz Jr, Dennis
Thanks again Warren. I guess I must be approaching this from the wrong perspective of what the designers originally intended. I am hoping to find a place for a context.xml to live where it will never get deleted. That a customer can change and when we give them a new war file, the context.xml ch

Re: can't load any JSP anymore

2006-01-31 Thread Lothar Krenzien
I solved it partially by adding ant.jar to the classpath. But now I get the following errors: 2006-01-31 13:12:26,220 [ERROR] [jsp].Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: Class must implement

Re: is there any way to monitor application server when it is working ?

2006-01-31 Thread Tim Funk
Look at the archives for peter Lin and jmeter. He has a jmeter plugin for monitoring tomcat. I don' think it has all you need - but could be a good foundation for what you need. -Tim Legolas Woodland wrote: thank you for reading my post is there any application that help monitor an applicati

Help to run the program

2006-01-31 Thread Charles Curi
Hi people. I have the source code of a shopping cart made with struts without errors. No matter how hard I try I can´t run the program. I need help If anybody support me I will be grateful. Send me an e-mail and I send the source code back Charles I always receive this log: javax.servlet.Serv

Help to run the program

2006-01-31 Thread Charles Curi
Hi people. I have the source code of a shopping cart made with struts without errors. No matter how hard I try I can´t run the program. I need help If anybody support me I will be grateful. Send me an e-mail and I send the source code back Charles I always receive this log: javax.servlet.Serv

can't load any JSP anymore

2006-01-31 Thread Lothar Krenzien
Hi, I'm having a struts application within Tomcat 5.5.9 and Java 5 but just become a (for me) mysterious problem. After changing a simple JSP (just removed a row in a table) I got lots of problems. Now I can't load any JSP anymore. It means that I even can't start my application. There are real

users@tomcat.apache.org

2006-01-31 Thread Lothar Krenzien
Hi, I'm having a struts application within Tomcat 5.5.9 and Java 5 but just become a (for me) mysterious problem. After changing a simple JSP (just removed a row in a table) I got lots of problems. Now I can't load any JSP anymore. It means that I even can't start my application. There are real

Re: Download file Problem - 404 error

2006-01-31 Thread David Smith
Let's recap all the suggestions so far for this (assuming a package of com.deepa.servlet): 1) The class DownloadFiles.class must be located in WEB-INF/classes/com/deepa/servlet/. I won't mention jar files until this is working :-) 2) There can be only one of these class files in WEB-INF/clas

Re: Download file Problem - 404 error

2006-01-31 Thread vineesh kumar
that's ok. the test is for checking the path is recognised by tomcat or not.if tomcat is not showing the index.html, then the problem is in ur servel.xml ot context,xml. for making sure what's the problem only i suggesterd the test On 1/31/06, DEEPA M N <[EMAIL PROTECTED]> wrote: > I hav changed w

Re: Download file Problem - 404 error

2006-01-31 Thread DEEPA M N
I hav changed web.xml after including package. In this code i m not accessing the servlet thr' html rather i m using the url in the browser window. http://localhost:8080/DownloadFile/servlet/DownloadFiles vineesh kumar <[EMAIL PROTECTED]> wrote: one more thing u can do is put an in

Re: RE: context.xml

2006-01-31 Thread Warren Pace
> > From: "Klotz Jr, Dennis" <[EMAIL PROTECTED]> > Date: 2006/01/30 Mon PM 08:28:10 EST > To: "Tomcat Users List" > Subject: RE: context.xml > > Thanks Warren for the reply. > > Wouldn't that version of the file be deleted when I undeploy? > If you're using the manager app to "un-deploy" the

Re: Download file Problem - 404 error

2006-01-31 Thread vineesh kumar
one more thing u can do is put an index.html on ur Downloadfile directory(ie the root folder of ur app).and try typing http://localhost:8080/Downloadfile/ then the tomcat should show the html file if that too is not happening, the problem may be with ur server.xml or even worse on ur catalina conf

Re: Download file Problem - 404 error

2006-01-31 Thread vineesh kumar
do u changed ur web.xml also the code is ok it should work.but u hav to check all the other files also like web.xml from the older web.xml file it was written that the servlet class is Downloadfiles but u hav to change it to com.deepa.servlet.Downloadfiles if all these things are working, u

Re: From Java to C#, ASP.NET [Off Topic]

2006-01-31 Thread Hans Sowa
Hi Chuck See this link from Sun http://java.sun.com/j2ee/1.4/docs/glossary.html#120385 I know Sun says "typically" a distributed system but of course most of the J2EE are distributed. 2006/1/30, Caldarale, Charles R <[EMAIL PROTECTED]>: > > > From: Hans Sowa [mailto:[EMAIL PROTECTED] > > Subje

Re: Download file Problem - 404 error

2006-01-31 Thread DEEPA M N
Here r few lines of codes; package com.deepa.servlet; import java.io.*; import java.util.*; import java.net.*; import javax.servlet.*; import javax.servlet.http.*; import java.util.zip.GZIPOutputStream; public class DownloadFiles extends HttpServlet { private static final String DIR = "d

Jaas authentication refresh

2006-01-31 Thread lio tomcat
Hello world, I wonder what configuration or piece of code is doing a jaas authentication refresh while it's unecessary and unwanted... I have a web-app running on jboss 3.2.2/tomcat 4.1. It's form based authenticated. FORM myRealm /authentication.jsp

Re: Download file Problem - 404 error

2006-01-31 Thread vineesh kumar
that may be the correct path also check that package com.deepa.servlet; at the first line itself is declared in ur java file - Show quoted text - On 1/31/06, vineesh kumar <[EMAIL PROTECTED]> wrote: > that may be the correct path > also check that > package com.deepa.servlet; > at the first line i

Re: Download file Problem - 404 error

2006-01-31 Thread vineesh kumar
that may be the correct path also check that package com.deepa.servlet; at the first line itself is declared in ur java file On 1/31/06, Bob Hall <[EMAIL PROTECTED]> wrote: > Deepa, > > As someone pointed out in an earlier post you need to > include the following in your DownloadFile.java file: >