AW: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Ralph Einfeldt
Of course you should check the syntax of the address before even opening a session to a mail server, but that was already discussed in this thread yesterday. With regular expression you won't know if a syntactical valid address is a real address. > -Ursprüngliche Nachricht- > Von: Ku

RE: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Kunal Shah
thats the wonderful idea. you are talking about doing something what mailing lists are doing . this is the way they check the validity of email address.. thanks a bunch --kunal > -Original Message- > From: Steven J. Owens [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 10, 2002

Re: AW: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Jon Eaves
Hi Ralph, (and others) Ralph Einfeldt wrote: > But keep in mind that this isn't completly safe, as you > won't know if the address really exists or the administrator > (the fallback receiver) acted as the receiver. If the administrator isn't the person who initiated the transaction, he's going

AW: Too Many Sessions!

2002-10-09 Thread Ralph Einfeldt
What makes you think that there is no user activity ? Have you verified this in the access log ? Is it possible that there is a cronjob running that checks the availability of the site ? > -Ursprüngliche Nachricht- > Von: Cindy Ballreich [mailto:[EMAIL PROTECTED]] > Gesendet: Mittwoch,

Re: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Steven J. Owens
On Thu, Oct 10, 2002 at 11:46:20AM +0530, Kunal Shah wrote: > suppose there is an domain xyz.com accepting mails for its user say > there are a, b and c users and administrator which will recieve > mails for unresolve members > > i am sending one mail at [EMAIL PROTECTED] dummy is not valid > mai

RE: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Kunal Shah
hummm that means you should load the server for checking validity of email address by sending a mail to the address, as it is not assuring that it would be correct way to find out the validity of email. I think in that case, regular expression is much convinient way to go with. --kunal > -O

AW: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Ralph Einfeldt
But keep in mind that this isn't completly safe, as you won't know if the address really exists or the administrator (the fallback receiver) acted as the receiver. So this depends on what you really want to achieve and what requirements you have. > -Ursprüngliche Nachricht- > Von: Jon

AW: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Ralph Einfeldt
You can't do much, as you won't get a direct feedback. Typically the sender (from or reply-to) of the mail will get a feedback mail (but there is no garantee for that) from the receiving mail server. The format and content of the mail depends on the mail server and it's configuration (some e

Re: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Jon Eaves
This isn't really a Tomcat question, but more of a general protocol question. The long answer is that you should look at mailing list software and see how they do it using acknowledgements. A good example of this is ezmlm which uses qmail as it's transport. Of course, you'll have to hold onto th

RE: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Kunal Shah
suppose there is an domain xyz.com accepting mails for its user say there are a, b and c users and administrator which will recieve mails for unresolve members i am sending one mail at [EMAIL PROTECTED] dummy is not valid mailbox still the mesg will be delivered to administrator of xyz.com. so th

Apache Tomcat Security

2002-10-09 Thread Nilesh Parmar
Hi, I've been subscribing to the this mailing list from quite a while. I'm interested in developing a book on Apache Tomcat security. For a start, here is what i've included as a specification for the book. Can anyone please give me your valuable suggestions/ideas to make it a better book? I'd

RE: Setting classpath..Kindly help...???

2002-10-09 Thread sathya
Hi Sexton, Thx for the quick response..But the problem when I start the tomcat thru console it is compiling the jsp but when I start thru the service it is not compiling & saying it is unable to compile class for jsp..In the jsp I have certain imports whose classes are present under WEB_IN

Re: JSDK 1.3 or 1.4 on FreeBSD 4.1.1 - must I compile it?

2002-10-09 Thread Nicholas Pappas
Thanks for the reply - I'll try it out! Best, Nick Malachi de AElfweald wrote: > I am currently using /usr/ports/java/linux-sun-jdk14 on my FreeBSD 4.6 > > 10/9/2002 3:01:05 PM, Nicholas Pappas <[EMAIL PROTECTED]> wrote: > > >Hello, > >I want to install the JSDK 1.3 or 1.4 on Free BSD 4.1.1 in o

Regarding tomcat access logs !!

2002-10-09 Thread rajinder . sandhu
Hi All, Entires in my Tomcat access logs in logs directory are like "127.0.0.1 - - [26/Aug/2002:16:22:53 5050] "GET /index.html HTTP/1.1" 304 -" How can I find out what is logged after Remote_IP or what information 5050 is giving? Can any body tell me where

Re: PostgreSQL JNDI resource under Tomcat 4.1.12 problem

2002-10-09 Thread Nikola Milutinovic
> Server.xml: This portion exists under the GlobalNamingResources element > under Server; the only pieces changed are the username and password.-) > > type="javax.sql.DataSource"/> > > > validationQuery > > Should this be empty? If you do not h

RE: Setting classpath..Kindly help...???

2002-10-09 Thread Sexton, George
You might want to post a more complete message that shows the JSP Compile error. If the JSP is unable to included classes in your WEB-INF/classes directory you should take a look at bug # 10036 in the Tomcat bug database. -Original Message- From: sathya [mailto:[EMAIL PROTECTED]] Sent: 0

Re: JSDK 1.3 or 1.4 on FreeBSD 4.1.1 - must I compile it?

2002-10-09 Thread Malachi de AElfweald
I am currently using /usr/ports/java/linux-sun-jdk14 on my FreeBSD 4.6 10/9/2002 3:01:05 PM, Nicholas Pappas <[EMAIL PROTECTED]> wrote: >Hello, >I want to install the JSDK 1.3 or 1.4 on Free BSD 4.1.1 in order to get >Tomcat 4.1 there, too. Now, I've searched the sun site and it appears >that t

Setting classpath..Kindly help...???

2002-10-09 Thread sathya
Hello, I am having a problem compiling my jsp files..it says "Unable to Compile Class for JSP"..How do I set the classpath for my application in WEB-INF.I am using Tomcat 4.1.10 and jdk 1.4.01. Kindly help Thanks in advance Sathya -- To unsubscribe, e-mail: For add

Beans & JSP in TOMCAT 4.1

2002-10-09 Thread Chris Wolcott
I am receiveing the following error with TOMCAT 4.1 & Apache 2.0 on Windows 2000 Server. I had no trouble with IIS 5.0 & Websphere and do not fully understand all the configuration of TOMCAT & APACHE. How do I debug this? (I tried to manually compile the BEAN1_JSP.JAVA file in the TOMCAT/w

RE: Using Non-Servlet Timers (Was - I need to run a servlet periodically)

2002-10-09 Thread Sexton, George
Register a context listener and free the timer in it. -Original Message- From: gautam [mailto:[EMAIL PROTECTED]] Sent: 09 October, 2002 9:53 PM To: Tomcat Users List Subject: Using Non-Servlet Timers (Was - I need to run a servlet periodically) Hello, We are using java.util.Timer objec

Re: mod_jk crash

2002-10-09 Thread Eugene Gluzberg
Going back to mod_jk version from tomcat_404 worked. I would like to use the JK_1_2_0 version though, so if anyone could help debug it would be great. I am running on RH 7.2 install. Eugene Gluzberg wrote: > > I am running apache 1.3 with mod_jk, my apache has apxs. > > I compiled and install

RE: Error with multipartParser

2002-10-09 Thread Rajiv Ramanasankaran
Can you give the full exception stacktrace?? That might help us figure it out. try e.printStackTrace() instead of creating the printwrite and printing to standard error. Send the tomcat log files too. Rajiv > -Original Message- > From: Sam Seaver [mailto:[EMAIL PROTECTED]] > Sent: Wednesd

RE: j_security_check weirdness

2002-10-09 Thread gautam
Ok. Another "Me Too". But does somebody have a solution ? What is happening here ? Regards, Gautam Satpathy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 10:18 PM To: [EMAIL PROTECTED] Subject: RE: j_security_check weirdness I

Using Non-Servlet Timers (Was - I need to run a servlet periodically)

2002-10-09 Thread gautam
Hello, We are using java.util.Timer objects to periodically run through a few object caches and get rid of stale items. Everything works fine. However, I can no longer stop Tomcat using the "Catalina.bat stop" command. I suspect that the Timer objects are still alive and are the cause of the prob

Fwd: log4j.jar locked by Tomcat even after remove/undeploy ....

2002-10-09 Thread Jacob Kjome
Hmm... This got no response on the tomcat-dev list. Does anyone in the Tomcat-use list have any clue as to why the log4j jar is getting locked even after a Tomcat manager stop/remove/undeploy? Jake >Date: Tue, 08 Oct 2002 00:14:40 -0500 >To: [EMAIL PROTECTED] >From: Jacob Kjome <[EMAIL PROT

Re: Tomcat 4.1.12 unpackWARs

2002-10-09 Thread Jacob Kjome
This is intended behavior based on Tomcat's documentation. There is a bug on this. Don't have the bug number handy. Search http://nagoya.apache.org/bugzilla/ and search for it. I'm not sure I agree with the behavior either, but that's the way it is for now. Jake At 05:23 PM 10/9/2002 -05

Re: Context/DBCP mess...

2002-10-09 Thread Jacob Kjome
Try moving to the latest tomcat-4.1.12. Lots of Datasource issues have been fleshed out there. Drop the 4.0.x series like a bad habit. 4.1.x is sweet! Jake At 03:08 PM 10/9/2002 -0400, you wrote: >I'm sure we're all tired of reading about these problems (and God knows >I'm tired of poundin

Stats programs for Tomcat

2002-10-09 Thread neal
Can anyone recommend a web traffic statistics app for a server running Tomcat Standalone? My ISP apparently runs Webalizer with Apache but said that they were having trouble setting it up to read the Tomcat logs (instead of the Apache logs). I was curious if perhaps there was a better solution fo

Re: connector between tomcat & apache

2002-10-09 Thread unplug
Any example for using mod_jk2 with apache1.3+tomcat4.1? I follow the instruction from the document to download the mod_jk2. Then I put it under apache_home/modules. Then I add LoadModule & AddModule of mod_jk2 in httpd.conf. After that, the document said there is a file called worker2.properti

PostgreSQL JNDI resource under Tomcat 4.1.12 problem

2002-10-09 Thread Steve Carrow
Hello, I'm trying to run a web app under Tomcat 4.1.12 with a PostgreSQL JNDI resource. When I use DriverManager directly, the DB works fine, but when I try to access it as a resource, the servlet seems to hang when it tries to acquire a connection from the datasource. Following are the relevant

java.sql.SQLException: Cannot load JDBC driver class 'null'

2002-10-09 Thread Java Lamer
Has any got the DBCP to work with tomcat 4.1.12 and MySQL? If so, what do you have to do to be able to get a connection? Thanks JL _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mai

Re: Cannot get mod_jk to work

2002-10-09 Thread Richard Pfeil
I had the problem originally and have read all the posts. Here some extra information: I am using RH Linux 7.3, Apache 1.3.26, Tomcat 4.0.4. I am using Apache without ssl but I tried both of these binaries just to be certain: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/

Servlets not working with tomcat 4.1.12(4.0.4 error)

2002-10-09 Thread Ashish Kulkarni
Hi, I have an issue with deploying servlets in Tomcat 4.1.12. It doesn't seem to pick up even though they have been defined in web.xml. I get 4.0.4 error These servlets work fine with Tomcat 4.0.4, I get this log when i start tomcat 2002-10-09 19:37:41,872 DEBUG [main] digester.Digester (Diges

Re: How to specify the location of a properties file.

2002-10-09 Thread Justin Ruthenbeck
Hey Shaun -- If the resource name given to getResourceAsStream() isn't found in the web application locations (WEB-INF/classes, WEB-INF/lib, Tomcat-specific locations), then the system class loader searches for the given resource in your classpath one entry at a time. If the properties file

Does "assert" work within JSP?

2002-10-09 Thread Liq Wnq
Environment: JDK 1.4.1 + Tomcat 4.1.x Does the "assert" feature work within a JSP with Tomcat? TIA. P.S. The "assert" works for me only when it is in a java file but not in a JSP file. It looks like that Tomcat cannot correctly translate a JSP file (that contains "assert") into a java file. __

RE: Exception starting filter Security Filter

2002-10-09 Thread Dan Payne
Thanks for the response, Charlie, but it appears our problems are actuall different. I went ahead and tried the solutions prescribed to Volker but to no avail. It appears, by looking at the local_host log, that the package is being found, and the classes loaded no problem. The only thing that i

tomcat4.1.2 - Servlet Error

2002-10-09 Thread Raj Mettai
Hi, I am running tomcat4.1.2 on solaris8. Tomcat is serving jsp pages fine but when I access servlet I am getting HTTP Status 404 and I found following exception in localhost_admin* log file. 2002-10-09 18:31:50 ContextConfig[/admin]: Configured an authenticator for method FORM 2002-10-09 18:

Re: Jasper and java source package problem

2002-10-09 Thread Justin Ruthenbeck
It's been a while since I scripted this all out (I'm using a script to do this part instead of an ant task), so I went back to see how ours works with regard to recursion on directories. Turns out we run jspc for each jsp file in each directory, passing the correct value for the package with

Tomcat 4.1.12 IIS 5 Redirector Problem

2002-10-09 Thread John Lee
Hi all, I cannot get this ISAPI redirector to work for JSP/Servlet programs running in the following platform: 01. TOMCAT 4.1.12 02. JDK 1.4.1 03. ISAPI_REDIRECTOR.DLL 04. IIS 5 05. W2KP SP3 11. I successfully did a http://localhost:8080/jsp/examples/index.html 12. However, I got a HTTP 500

Re: Deploying Web Application Programmatically

2002-10-09 Thread Craig R. McClanahan
I'd suggest having your administrative application use an HttpURLConnection to contact the manager webapp and use the "deploy" command (Tomcat 4.1 only). Besides eliminating the need for making your admin servlet go through all the hoops needed to be a ContainerServlet, you can also deploy to rem

Re: Deploying Web Application Programmatically

2002-10-09 Thread Jean-Francois Arcand
Scott Goldstein wrote: >I'm building a feature into a web application in which I need to deploy other >web applications to Tomcat programmatically. I've taken a look at the >ManagerServlet for an example of how to do this and I have a quesion. > >1. Is there any way to access the org.apache

Tomcat 4.1.12 unpackWARs

2002-10-09 Thread Shawn Church
I found some hint of this in past archives, and am wondering if this is a bug or if I am missing something. The following will not unpack a .war file existing in the appBase directory. Tomcat processes will start and then quickly die because according to the log messages generated, the docBase di

Tomcat IIS HowTo - with Tomcat 4?

2002-10-09 Thread Richard Katz
Does this just not work with Tomcat 4.0? I've followed all the steps but I still get a "down red" arrow instead of an "up green" one on the IIS MMC for the jakarta filter. Questions - about quotes: Tomcat 4 normally installs in "C:\Program Files\Apache Tomcat 4.0" which is where I installed it

Re: Form-based authentication

2002-10-09 Thread Padhu Vinirs
Shouldnt the url format be http://url?user=xxx&password=xxx ? Also, if you do this, you could encrypt the password it before calling sendRedirect and decrypt it at the url cgi. -- padhu Rajesh Kanderi wrote: >how do you access a webpage which has a form-based >authentication setup using java

JSDK 1.3 or 1.4 on FreeBSD 4.1.1 - must I compile it?

2002-10-09 Thread Nicholas Pappas
Hello, I want to install the JSDK 1.3 or 1.4 on Free BSD 4.1.1 in order to get Tomcat 4.1 there, too. Now, I've searched the sun site and it appears that they don't have binaries for FreeBSD. I see some places suggest they used binaries for Solaris; I've found one good link that recommends another

RE: Error with multipartParser

2002-10-09 Thread Ricky Leung
Did you set encoding type to multipart/form-data? I'm not sure how you are setting this but you may want to try using MultipartRequest instead also. Look up the information here and look at how it is implemented from the example. http://www.servlets.com/cos/javadoc/com/oreilly/servlet/multipart

Form-based authentication

2002-10-09 Thread Rajesh Kanderi
how do you access a webpage which has a form-based authentication setup using java. i am able to do it using an href http://:@url... but the problem is it shows the passowrd. I tried to construct the above url in a servlet and then doing a sendRedirect. but the sendRedirect doesn't seem to like

Re: How to specify the location of a properties file.

2002-10-09 Thread Shaun Campbell
Justin I have written my properties loading like this and I found once that it loaded from the classes directory. I guess the question I have is why it defaults to the classes directory and how could I set to something like a conf directory below my main webapp root directory. The other thing i

RE: Error with multipartParser

2002-10-09 Thread Sam Seaver
that didnt make any difference...it's really fustrating because I'm just not getting any specific messages... thanks for the reply though S >From: "Ricky Leung" <[EMAIL PROTECTED]> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> >To: "Tomcat Users List" <[EMAIL PROTECTED]> >Subject: RE: Erro

Re: integrated or standalone ?

2002-10-09 Thread Malachi de AElfweald
I have Standalone working fine here, but as of yet have not been able to integrate them. On FreeBSD though. Malachi 10/9/2002 1:50:19 PM, Daniel Hellstrand <[EMAIL PROTECTED]> wrote: >I have apache installed on my linux box and I am going to install tomcat >to be able to download midlets to m

Re: Tomcat 4.0.4 on OS/390?

2002-10-09 Thread Malachi de AElfweald
The problem, from what I remember, was that OS/390 required that, for Java, text files all be ASCII and binary files all be EBCDIC. Could be wrong there... but .properties, .java, .txt, whatever... UNLESS the program is written to use the codepage when loading the information then it can be i

allowLinking option under ROOT

2002-10-09 Thread paul miller
I can not get the allowLinking option to work under the ROOT docBase. That is it works for a url like "www.bla.com/foo/servlet" but not "www.bla.com/servlet" Here is a section of my server.xml And then in my httpd.conf I have WebAppConnection warpConnectio

Logs and stdout

2002-10-09 Thread Rafael Angarita
Hi, Is there any known issue about use stdout to send application logging messages? My programmers use to send all the messages debug and information messages to stdout (System.out...), and I'm wondering if this could associated with some problems related with poor performance an

RE: Error with multipartParser

2002-10-09 Thread Ricky Leung
> MultipartParser mpParser = new MultipartParser(req, > 10*1024*1024); try to use a smaller number and see what happens, like 1024bytes, instead of 10Megs. > -Original Message- > From: Sam Seaver [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 09, 2002 2:09 PM > To: [EMA

integrated or standalone ?

2002-10-09 Thread Daniel Hellstrand
I have apache installed on my linux box and I am going to install tomcat to be able to download midlets to my cell phone. My question is: Which is the easiest in my position, install a standalone version of tomcat (is it possible when apache is installed) or should I integrate tomcat with apache ?

Re: Classpath Issues, Tomcat 4.X and J2EE Interoperability frustrations...

2002-10-09 Thread Jean-Francois Arcand
Andrew Gilbert wrote: >We are finding this a particularly frustrating experience, and it seems to be a >"weak" point either/or both in specification and implementation (or a fatal flaw in >our basic approach - but would add we are consistent at least with the "intent" of >the EJB specs). Wou

RE: Exception starting filter Security Filter

2002-10-09 Thread Cox, Charlie
someone else had this problem a last week. http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg68531.html Charlie > -Original Message- > From: Dan Payne [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 09, 2002 1:56 PM > To: [EMAIL PROTECTED] > Subject: Exception startin

Re: want to show a message to the user before issuing shutdown command

2002-10-09 Thread Srinadh Karumuri
It is all a pull from client and we cannot PUSH from server to client. #1. You could probably write a JSP to keep polling server for messages and display in a separate frame/window. It is not the most efficient way but should work. #2. Each JSP, while loading, could check for a particular static

Re: Too Many Sessions!

2002-10-09 Thread Padhu Vinirs
Register a HttpSessionListener, and log the session destroy message in the sessionDestroyed method. -- padhu Michael Schulz wrote: >A few questions: > >1) does the session listener document when sessions are destroyed? > >2) are there other servlets in your web app that might be causing the >

Re: RESEND:How to catch the thrown Exception

2002-10-09 Thread Felipe Schnack
where this exception is being thrown? In a bean? In a Controller? In a taglib? Anyway, I don't think users in general like to see stack traces in their browsers :-) On Wed, 2002-10-09 at 17:08, Nagpal, Vikas wrote: > Hello Everybody, > > I have been trying to catch the thrown exception and

Re: How to catch the thrown Exception

2002-10-09 Thread Padhu Vinirs
If the exception is thrown from a Servlet, then catch the Exception, wrap it with a ServletException, throw this. Then you can retrieve the exception from attribute javax.servlet.error.exception, and get the root cause exception. yourException = request.getAttribute("javax.servlet.error.exc

RESEND:How to catch the thrown Exception

2002-10-09 Thread Nagpal, Vikas
Hello Everybody, I have been trying to catch the thrown exception and print it on my JSP page. As I catch the exception and print it using System.out.println command it displays NULL. But I want to print the number which threw the exception not NULL. Can anyone tell me how to catch this number

Classpath Issues, Tomcat 4.X and J2EE Interoperability frustrations...

2002-10-09 Thread Andrew Gilbert
We are finding this a particularly frustrating experience, and it seems to be a "weak" point either/or both in specification and implementation (or a fatal flaw in our basic approach - but would add we are consistent at least with the "intent" of the EJB specs). Would appreciate input and enlig

mod_jk crash

2002-10-09 Thread Eugene Gluzberg
I am running apache 1.3 with mod_jk, my apache has apxs. I compiled and installed mod_jk from source, tag TOMCAT_4_1_12, configured it using the following options: ./configure --with-gnu-ld --with-apxs=/myapxpath/bin/apxs --enable-EAPI --with-java-home=/usr/java/jdk1.3.1 ran make installed m

Re: Jasper complains when parsing valid TLD (was: Can't deploy CustomTag Library ... )

2002-10-09 Thread Mark R. Diggory
If anyone was concered about this issue, it looks like the Forte fixed this issue and my taglibraries are old and need to be updated to include the chages. Mark R. Diggory wrote: > Hmmm, this definitly looks like a booger in Forte's TLD generation > code... I'll have to *go bug them* for awhi

FYI -> accessClassInPackage

2002-10-09 Thread Jean-Francois Arcand
Hi, when reviewing the code (if you find something public and you think a user can access that class and change the value), don't forget that in Catalina.java, we have: // If a SecurityManager is being used, set properties for // checkPackageAccess() and checkPackageDefinition

RE: Context/DBCP mess...

2002-10-09 Thread Brown, Melonie S. - Contractor
Speaking of the context file, I can't seem to get Tomcat to recognize that I would like to put the compiled jsp pages somewhere other than the default work location. Is there something else that needs to be set to make this work? Melonie Brown -Original Message- From: [EMAIL PROTECTE

Re: Jasper complains when parsing valid TLD (was: Can't deploy CustomTag Library ... )

2002-10-09 Thread Mark R. Diggory
Hmmm, this definitly looks like a booger in Forte's TLD generation code... I'll have to *go bug them* for awhile now! Thank you Jan, -M. Jan Luehe wrote: >Mark, > > > >>So, on 4.1.* with logging cranked way up, I've been seeing errors that >>Jasper encountered a TEI class when the tld alrea

Re: Context/DBCP mess...

2002-10-09 Thread echambe1
Michael: I had the same problem. Mine was an issue about where I placed the Resource and Resource Parameters. Make sure both are embedded within the Context you are attempting to pull the datasource from. Also, DBCP (Database Connection Pooling) is not enabled with the given configuration. To u

Re: Context/DBCP mess...

2002-10-09 Thread Michael Nicholson
It's not often that I reply to myself (it's supposedly a bad sign..:)), but after re-reading the tomcat4.1 JNDI-DataSource how-to for the 40th time, I read "Also, you should be aware that some (early) versions of Tomcat 4.0 when used with JDK 1.4 will not load classes12.zip unless you unzip the f

Re: Context/DBCP mess...

2002-10-09 Thread Rick Fincher
Hi Michael, Have you tried this with Tomcat 4.1.x? Many bugs have been fixed and you may have better luck. Rick - Original Message - From: "Michael Nicholson" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, October 09, 2002 3:08 PM Subject: Context/DBCP

How to catch the thrown Exception

2002-10-09 Thread Nagpal, Vikas
Hello Everybody, I have been trying to catch the thrown exception and print it on my JSP page. As I catch the exception and print it using System.out.println command it displays NULL. But I want to print the number which threw the exception not NULL. Can anyone tell me how to catch this number an

Context/DBCP mess...

2002-10-09 Thread Michael Nicholson
I'm sure we're all tired of reading about these problems (and God knows I'm tired of pounding my head against a wall because of them), but I can't seem to get the contexts and connectionpooling/datasources working. For starters: Local Development Machine: pIII450, 512MB ram, win2000, tomcat

Re: AW: AW: jk2 uri mapping of SSL vhost

2002-10-09 Thread Malachi de AElfweald
Realistically, I hate using JNI (I'm a purist). I am considering using the jk2 with the jni just to speed it up... sockets add an extra level of redirection. On the flip side, I got bored and wrote an NIO server the other night. It is pretty fast, so I think I would be more likely to go the NIO

Re: AW: jk2 uri mapping of SSL vhost

2002-10-09 Thread Malachi de AElfweald
How did you mangage to get jk2 to build? Malachi 10/9/2002 2:16:24 AM, "Robert L Sowders" <[EMAIL PROTECTED]> wrote: >I've been using it for sometime now. It doesn't feel any slower that no >using it. No testing has been done. > >rls > > > > >Malachi de AElfweald <[EMAIL PROTECTED]> >10/08/

Re: RE: RE: JK2 Installation

2002-10-09 Thread Malachi de AElfweald
Yeah, running Tomcat in Standalone mode, it works fine with Apache. It is just the connectors that are an issue. They do have a port for mod_jk, but it is old. I emailed the maintainer, but no response. I also tried the linux binaries, but, to no avail I am on the freebsd-java mailing list,

RE: Too Many Sessions!

2002-10-09 Thread Michael Schulz
A few questions: 1) does the session listener document when sessions are destroyed? 2) are there other servlets in your web app that might be causing the activity? 3) what does your access_log indicate in the way of inbound requests? -Mike -Original Message- From: Cindy Ballreich [ma

Which versions ????

2002-10-09 Thread Jean-Baptiste Onofré
Hello all, i use Tomcat 4.0.4 with Apache 1.3.26 using mod_jk. On a new developpement computer, can i install Tomcat 4.1.12 with Apache 1.3.26 using mod_jk2 ? What's the differences/improves between Tomcat 4.0.4 and Tomcat 4.1.12 and between mod_jk and mod_jk2 ? Thanks for your help, Best regar

Re: I need to run a servlet periodically

2002-10-09 Thread Rick Fincher
Hi Filip, Your servlet can call a class (doesn't have to be a servlet) that sets up a java.util.timer to run your code as a timerTask. The servlet can get parameters from the web.xml file (like how often to execute) and pass that to your class that controls the timer. The servlet can pass your

Re: JNDI Initial Context, outside webapp

2002-10-09 Thread Craig R. McClanahan
Please don't cross-post to both TOMCAT-DEV and TOMCAT-USER (especially on a question like this, which is more user oriented). On Wed, 9 Oct 2002, Luca Zago wrote: > Date: Wed, 09 Oct 2002 20:19:18 +0200 > From: Luca Zago <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > To:

Re: Cocoon 2.1 + Tomcat 4.1 + reloadable="true"

2002-10-09 Thread Ilya A. Kriveshko
I am running Tomcat 3.3 on Win2k, and a recent snapshot of Cocoon from the HEAD of CVS. I am periodically having the same problems whereby Tomcat is running out of memory when either Tomcat or Cocoon are reloading some stuff. Is it possible that some cache collections are not being cleared? Also

Re: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Catalin
you could use a small java code and do the validation via regexp here is a DEMO: import java.lang.*; import java.util.*; import org.apache.oro.text.regex.*; public final class isEmail { public static boolean check(String email) { PatternMatcher matcher; PatternCompiler compiler; Pattern

Too Many Sessions!

2002-10-09 Thread Cindy Ballreich
I'm using Tomcat 4.1.12 on a NT 4.0 system. I've been watching my logs and I'm noticing a lot of sessions being created for no apparent reason when there is no user activity on the system and no activity (as far as I can tell) in my servlet. Here's a sample from the logs... 2002-10-09 11:05:15

RE: Cannot get mod_jk to work

2002-10-09 Thread jcosta
I agree--you could get into a quagmire this way. At this point, I would just settle for a version compiled against a plain-vanilla Apache 1.3.27 build. |-+> | | Milt Epstein | | | <[EMAIL PROTECTED]| | |

Calling session beans from tomcat

2002-10-09 Thread Hanasaki JiJi
How can tomcat call a session bean from BEA or iAS on another physical server? -- = http://www.sun.com/service/sunps/jdc/javacenter.pdf= =www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone = =

RE: Cannot get mod_jk to work

2002-10-09 Thread Milt Epstein
On Wed, 9 Oct 2002 [EMAIL PROTECTED] wrote: > Methinks it would be a good idea to maintain the binaries compiled > to the latest, greatest version of Apache (namely 1.3.27). Yes, that makes sense, but it's only part of the equation. For example, we don't know what version the person who was hav

JNDI Initial Context, outside webapp

2002-10-09 Thread Luca Zago
Hi, I noticed that is pratically impossible to retrieve a JNDI resource outside a webapp.If I need to access my resourse in some classes istantiated outside a single webapp, I always get an exception. Name jdbc/myDS is not bound in this Context I read the docs. If I understand well, the initialC

top-level mappings

2002-10-09 Thread Bruce W. Perry
hello all, I wondered if someone could clarify the role of the top-level deployment descriptor ( Tomcat4.0/conf/web.xml , given that Tomcat4.0 is the Tomcat installation directory), or tell me if this is inaccurate. When Tomcat starts up, it first establishes default servlet mappings from Tomca

Error with multipartParser

2002-10-09 Thread Sam Seaver
I cannot work this out as I get no more in my error messages despite trying to use the usual ways of debugging the bean. Basically I'm using a bean that extends HttpServlet and uses Hunter's MultipartParser, and the error ALWAYS occurs when I try to create an instance of the parser... Error:

Exception starting filter Security Filter

2002-10-09 Thread Dan Payne
I'm using TC 4.0.4, j2sdk1.4.0_01 and the securityfilter from sourceforge.net, which is a pseudo container managed JDBC/MySQL security realm. it's all running on win2000. i've also upgraded my commons-logging to 1.0.2 to see if that helps, but to no avail (although it did change the stack trace).

Re: Cannot get mod_jk to work

2002-10-09 Thread Luciano Kiniti Issoe
Hi all, I'm using the apache 1.3.26 and SuSE Linux 7.2 (i386) - Kernel 2.4.4-4GB (0). Had the same problem yesterday. To solve this I compiled mod_jk from source. Maybe there's really a problem with the binaries. miagi - Original Message - From: "Raj Saini" <[EMAIL PROTECTED]> To: "To

Re: Cannot get mod_jk to work

2002-10-09 Thread Raj Saini
I tried to use the binary on Apache Server version 1.3.23. I am using Redhat 7.2 Kernal version 2.4.7 Raj Milt Epstein wrote: > On Wed, 9 Oct 2002, Turner, John wrote: > > >>Are you sure there is something wrong with the binary? If so, the >>binary maintainers (like Henri Gomez) would probab

RE: XMLMapper:Can't find resource for entity error

2002-10-09 Thread jon wingfield
your web.xml file for the xsltExample webapp refers to the servlet 2.3 specification dtd and you are running tomcat 3.x which is an implementation of the servlet 2.2 specification. Tomcat has a cached version of the dtd in one of the jar files that are part of the distribution. This is in case the

RE: Cannot get mod_jk to work

2002-10-09 Thread jcosta
Methinks it would be a good idea to maintain the binaries compiled to the latest, greatest version of Apache (namely 1.3.27). |-+> | | Milt Epstein | | | <[EMAIL PROTECTED]| | | u> | |

Re: Redirect Valve - contribution

2002-10-09 Thread Jean-Francois Arcand
Hi, read : http://jakarta.apache.org/site/getinvolved.html -- Jeanfrancois Jens Andersen wrote: > Hi all, > > I would like to contribute a Redirct Valve to Tomcat for the next > release or so - but how do I do that? Whom do I contact? > > Best regards, > > Jens Andersen > > > > -- > To unsubs

Redirect Valve - contribution

2002-10-09 Thread Jens Andersen
Hi all, I would like to contribute a Redirct Valve to Tomcat for the next release or so - but how do I do that? Whom do I contact? Best regards, Jens Andersen -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: Cannot get mod_jk to work

2002-10-09 Thread Milt Epstein
On Wed, 9 Oct 2002, Raj Saini wrote: > Yes, there was a problem with binary one week ago. I am not sure if > binaries are updated after that. The error message was the same as > in this post. Or maybe there really was something wrong with the binary :-). > Turner, John wrote: > > Are you sure

RE: Cannot get mod_jk to work

2002-10-09 Thread Milt Epstein
On Wed, 9 Oct 2002, Turner, John wrote: > Are you sure there is something wrong with the binary? If so, the > binary maintainers (like Henri Gomez) would probably appreciate and > email message from you with details. There's no point in having > binaries if they aren't usable. As far as I know

Re: obtaining servlet classname

2002-10-09 Thread Craig R. McClanahan
You'd need to parse the web.xml file yourself in order to do this. The easiest way would be to use ServletContext.getResourceAsStream() to get an InputStream to the "/WEB-INF/web.xml" resource, and feed it to your XML parser via JAXP APIs. Tomcat itself uses a package called commons-digester for

obtaining servlet classname

2002-10-09 Thread Jason Novotny
Hi, I can successfully get the servlet name using ServletConfig.getServletName() but how do I get the class expressed in the web.xml file? e.g. I have the following: Login org.gridlab.gridsphere.portlets.core.LoginPortlet portletID org.g

  1   2   >