Re: status 404 when migrating from 4.0.4 to 4.1.24

2003-03-25 Thread Kwok Peng Tuck
The servlet invoker lets you call your servlet in the webapp without actually mapping one in the web.xml So you can do this in the browser: http://localhost/myapp/servlet/stuff You're not really missing much. Don't know if the other containers do that. Sven Köhler wrote: invoker /se

Re: status 404 when migrating from 4.0.4 to 4.1.24

2003-03-25 Thread Sven Köhler
invoker /servlet/* one stupid question, what does the invoker-servlet do? i always write my own servlets without using it, and my mapping them directly using web.xml. i wonder, if i'm missing a great feature. is the invoker servlet supported by all servlet containers? ---

RE: SMTP Logger

2003-03-25 Thread George Sexton
Here is a shell script to examine the logs for exceptions. I run mine every five minutes. #!/bin/sh ### # Tomcat Exception Log script. # # This script checks your tomcat log files for any lines containing # the word exception. If

Re: SMTP Logger

2003-03-25 Thread Chris Gokey
Thanks Craig. I just implemented your first appraoch. Although probably the second approach maybe a better choice. Chris On Tue, 2003-03-25 at 22:43, Craig R. McClanahan wrote: > On Tue, 25 Mar 2003, Chris Gokey wrote: > > > Date: 25 Mar 2003 21:47:43 -0500 > > From: Chris Gokey <[EMAIL PROTEC

Re: SMTP Logger

2003-03-25 Thread Craig R. McClanahan
On Tue, 25 Mar 2003, Chris Gokey wrote: > Date: 25 Mar 2003 21:47:43 -0500 > From: Chris Gokey <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > To: Tomcat Users List <[EMAIL PROTECTED]> > Subject: Re: SMTP Logger > > Hi everyone, > > Back to this again.. Any help would be

Re: url-pattern problem? Deployed servlet works in Tomcat 4.0.4 butfails in Tomcat 4.1.18

2003-03-25 Thread Craig R. McClanahan
On Tue, 25 Mar 2003, Randy Curnutt wrote: > Date: Tue, 25 Mar 2003 21:14:47 -0500 > From: Randy Curnutt <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>, > Randy Curnutt <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: url-pattern problem? Deployed servlet works i

Re: status 404 when migrating from 4.0.4 to 4.1.24

2003-03-25 Thread Romualdo Rubens de Freitas
Guillermo, Starting with version 4.1, TC dosen't enable default servlets anymore. So, you can: 1 Enable default servlet by changing %CATALINA_HOME%/conf/web.xml (not recommended) 2 Enable default servlet by putting the following into your web.xml invoker /servlet/* 3 Create a cont

status 404 when migrating from 4.0.4 to 4.1.24

2003-03-25 Thread Guillermo Mora Pérez
Hi, I had a JSP/servlet application running ok on a tomcat 4.0.4, I installed a 4.1.24 version, I updated my CATALINA_HOME an move my old CATALINA_HOME\classes\packageX\servletX.class to the dir CATALINA_HOME\webapps\ROOT\WEB-INF\classes\packageX\servletX.class of the new version, and obviou

Re: SMTP Logger

2003-03-25 Thread Chris Gokey
Hi everyone, Back to this again.. Any help would be very appreciated. I'd created a custom logger that will email errors rather than log them to a file system. Unfortunately, if I add another declaration to server.xml, it will not use the existing Logger (FileLogger). How can I make it use b

url-pattern problem? Deployed servlet works in Tomcat 4.0.4 but fails in Tomcat 4.1.18

2003-03-25 Thread Randy Curnutt
I have a Servlet (with JSP's) which was created using NetBeans, and I did use the appropriate hierarchy. When I run the servlet using the NetBeans Internal Tomcat version 4.0.4 the Servlet and JSP pages work fine. However, when I create a WAR file and let Tomcat do the Auto Deploy and try to r

Windows/Tomcat Single Sign On

2003-03-25 Thread Dan Payne
I'm experiencing a bit of info overload in researching single sign-on with windows. I was hoping that perhaps through someone's experience on this list I could narrow my focus. I've got TC 4.1.18 running on port 8080 (not integrated with IIS) and IIS on a Windows 2000 server for a client's intrane

Re: Tomcat SSL mutual authentication: Nobody's got a clue?

2003-03-25 Thread Mark Liu
Hi, No, the Tomcat docs only says how to turn on the *server* authentication, i.e., how to run Tomcat in SSL mode. It does not mention how to have the client also pass over its certificate to the Web server. You have an idea about how to turn on client cert? --- Norris Shelton <[EMAIL PROTECTED

Re: Problem with Bookmarking a Login Page

2003-03-25 Thread Mike Duffy
Thank Craig. I think the correct way to "educate" users is to create a specific error-page for the 400 error which says something like, "You may have reached this error page from the login page..", and to have a link on that page to the default secured page (which means the login page would be

RE: Cannot Update MYSQL Database (PROBLEM SOLVED)

2003-03-25 Thread jsp
The problem was my PRIMARY KEY, it was not auto_incrementing among other things. This is the method that works now. public void addInfo( java.lang.Integer i , String s ) throws SQLException, Exception { if (con != null) { try{ Statement

Re: mod_jk2 vs mod_jk

2003-03-25 Thread Boris Folgmann
Richard Anderson schrieb: > I've been using the rpm at www.jpackage.org. I already tried that. But it does not install on Red Hat 8.0. Rebuilding also failed. -- Dipl.-Inf. Boris Folgmann mailto:[EMAIL PROTECTED] Folgmann IT-Consulting http://www.folgmann.de

Re: Tomcat SSL mutual authentication: Nobody's got a clue?

2003-03-25 Thread Norris Shelton
That about sums it up. We are looking at client certs also. The Tomcat docs say how to turn on client authentication, but there is not much out there on hooking up to a CA and verifying against a CRL. All of that is beyond the scope of this list and dives deep into the realm of JCE. We are lo

mod_webapp for Windows

2003-03-25 Thread Claus Bitten
Hi, Does someone have a working mod_webapp.so/.dll for windows? I have one from tc40 (Version 1.0) and I can integrate it into apache 1.3.27, but when I try to deploy a webapp from tomcat 4.1.18 it does not work correctly. (Java is 1.4.1_02) Strange things happen, binary transfer seems to be br

Tomcat SSL mutual authentication: Nobody's got a clue?

2003-03-25 Thread Mark Liu
For over 1 week, I've been exploring about this. So far, I got no reply. Is this so professional, so tough that nobody's got a clue? __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com

Re: different clients using the same instance of a bean

2003-03-25 Thread Michael Ni
I copied some code I picked up from a website about application and session scope. Can someone explain how setAttribute and getAttribute works? what do the actual parameters do? also when i use jsp useBean, i usually have a name, which is the name of my instance. Where in servlet code does i

Re: Browser got incomplete html

2003-03-25 Thread Steven J. Owens
On Mon, Mar 24, 2003 at 09:25:36PM +, Jon Wingfield wrote: > Have a look in the tomcat log files. Either catalina.out or > localhost_log..txt. I'll bet there's an exception in one of those. > If a jsp scriptlet or custom tag throws an uncaught exception Tomcat may > not be able to forward to an

Re: different clients using the same instance of a bean

2003-03-25 Thread Leandro P. Martins Jr.
There's a number of solutions for your problem, but I think the simplest one is using ServletContext as you've been sugested. Actually JSP uses ServletContext to control application scope beans. So, using ServletContext directly, kindof give you more freedom to work. The concept is simple: you h

Re: Problem with Bookmarking a Login Page

2003-03-25 Thread Craig R. McClanahan
On Tue, 25 Mar 2003, Steven J. Owens wrote: > Date: Tue, 25 Mar 2003 03:54:23 -0500 > From: Steven J. Owens <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] > To: Tomcat Users List <[EMAIL PROTECTED]> > Subject: Re: Problem with Bookmarking a Login

Re: different clients using the same instance of a bean

2003-03-25 Thread Mark Pease
How will your application know which bean to direct a certain user to? Maybe if you give a little more insight into why you are trying to accomplish this, someone will think of a solution. For my application, I have an application-scope bean that acts as the 'manager' of a group of state beans, wh

different clients using the same instance of a bean

2003-03-25 Thread Michael Ni
How do I have groups of different clients from different browsers use the same instance of a bean. I'm not talking about application scope. Application scope is everyone using the same instance of a bean. I'm talking about bob and joe using one instance of bean A and ken and barbie using ano

Re: cross-context DataSource?

2003-03-25 Thread Jon Archer
Certainly do-able. I have done so in two ways: either by putting my datasource in under a DefaultContext (using the tomcat admin tool click on Tomcat Server --> Service --> Host, choose create DefaultCOntext from dropdown list of actions on RHS, then create a DataSource against the new DefaultCont

Reirecting System.out from Tomcat4

2003-03-25 Thread sting sting
Hello, I am developing a web application with Tomcat on linux. (I also use log4j for logging( I noticed that the System.out.println("...") messages of Tomcat4 goes to catalina.out; The probelm is that I use a third party classes which unfortunately also contain System.out.println() methods; I wan

Re: What is missing? Please help

2003-03-25 Thread Herbert G. Fischer
That's my server.xml (generated by Tomcat Admin). The file system struct is: /usr/local/tomcat/ webapps/ portal/ portal/ Andoni wrote: We need a little more information. Try posting the relevant chunck of your server.xml file even with the names ch

Reloading server.xml with manager app

2003-03-25 Thread johannes . fiala
Hi there, I've split the server.xml file as follows: /conf/server.xml <= contains the primary configuration /webapps/.xml <= contains the context specific configuration However, when I try to reload an app with the manager app it seems as if the information in .xml i

Error running Tomcat

2003-03-25 Thread Zytech
I am trying to use a program called connectDaily which uses the Tomcat container. I'm not going to pretend I understand what it does but after I installed it I ran into an error. When I start Tomcat it calls the catalina batch files but at the end of the run it gives me the error "Access deni

Re: What is missing? Please help

2003-03-25 Thread Andoni
We need a little more information. Try posting the relevant chunck of your server.xml file even with the names changed if you want to hide your identity. You may also post your web.xml file if you have one and the directory structure in which you have the .jsp file. Regards, Andoni. - Ori

exec java command from servlet

2003-03-25 Thread dkabic01
hi there I am trying to execute java command from my servlet but it not letting me do it . i am using tomcat server. here is the code wht i am trying to run: BufferedWriter writer4= new BufferedWriter(new FileWriter("/vol1/people/dinesh/htblast/test.html"));

What is missing? Please help

2003-03-25 Thread Herbert G. Fischer
Hi, I'm fresh to TomCat. I configured a new host and a new context. I did a small JSP file test and after calling it on the browser, I got the following error. What I miss? "Servlet jsp is currently unavailable" Thanks, Herbert ---

login screen localisation (OT)

2003-03-25 Thread Andoni
I seem to remember an unwritten rule about pre-login screens not using the database in web-based applications. Is this a common thing? If so how do I handle localisation of the login page? Apologies for OT nature, Thanks, Andoni. ---

Re: mod_jk2 vs mod_jk

2003-03-25 Thread Richard Anderson
I've been using the rpm at www.jpackage.org. --Rick On Tuesday, March 25, 2003, at 04:26 AM, Boris Folgmann wrote: Hi Chris! Chris Dodunski wrote: older JK connector. This may be causing some confusion. Personally, I persevered with JK2 and was successful (despite the sparse documentatio

Env-Variables in tomcat-cgi

2003-03-25 Thread Philipp Leusmann
Hi, I am running tomcat-standalone without apache. Since I need an external cgi-executable I configured the cgiservlet. This is running so far. But the problem is, that the cgi needs a env-variable set to run. How do I have to set up that variable? Hope someone can help. Philipp -

Re: Fix for SEVERE: Certificate convertion failed, bug in Tomcat-connectors-4.1.24

2003-03-25 Thread Ramsay Domloge
Thank God! I have been stuck on this for 10 days now, and I have been going a bit loopy! I really need to apply this patch *today*, but I'm having difficulty getting hold of all the sourcecode that I need to apply the patch to I would *really* appreciate it if you could help me out here an

Re: tomcat auto-configuration file for mod_jk (apache-mod_jk-tomcat)

2003-03-25 Thread John Turner
No problem, glad to help. John On Tue, 25 Mar 2003 09:52:51 -0800, Richie Chauhan <[EMAIL PROTECTED]> wrote: Thanks, the howto helped. Now to fool around with the settings some more. Couldn't find any documentation on that in the tomcat site. Thanks again. -Original Message- From: Joh

struts: JSP expression not evaluated

2003-03-25 Thread Timo Nentwig
Hi! I do have a very weird problem which I don't even know struts or jasper to address to so I post it to both mailing lists. Below is a small piece of JSP code, the struts tag contains an JSP expression in the href attribute which is not evaluated, i.e. the actuall link contains the expression

RE: tomcat auto-configuration file for mod_jk (apache-mod_jk-tomcat)

2003-03-25 Thread Richie Chauhan
Thanks, the howto helped. Now to fool around with the settings some more. Couldn't find any documentation on that in the tomcat site. Thanks again. -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 11:19 AM To: Tomcat Users List Subject: Re: to

Admin bug

2003-03-25 Thread Herbert G. Fischer
Hi all, I'm installing Tomcat 4.1.24 and I'm getting this error when trying to create a AJP connector via Tomcat Admin. == type Status report message Invalid path /connector/AddConnector was requested description The reques

classpath differences between nt service and starting manually

2003-03-25 Thread Steven Shand
Hi, I've come across a really weird problem. When I start tomcat (4.1.24) using the bin/startup.bat everything works fine. However if I start the server as an NT service then pages which have already been compiled work fine but new pages refuse to compile. I think I've managed to work out that

Re: JVM Bind error when starting Tomcat 3.2.4

2003-03-25 Thread John Turner
It means that there is already a process or application bound to the IP address and port that Tomcat is trying to use. If you have Tomcat set to listen on port 80, for example, and IIS is running, Tomcat will fail. Likewise, if you have Tomcat set to listen to another port such as 8080, and To

RE: JVM Bind error when starting Tomcat 3.2.4

2003-03-25 Thread Davis, Jeremy
Hi Carl, The error is simply telling you the address/port that it is attempting to connect to is in use. Possibly see what ports your using in the server.xml, and maybe compare that to a netstat -a command listing of the ports. Hope that helps some. Jeremy Davis Senior Support Analyst BP

JVM Bind error when starting Tomcat 3.2.4

2003-03-25 Thread Iddings, Carl (SAA)
I'm running Tomcat 3.2.4 on a Windows 2000 Server using IIS 5.0. I received the following error when issuing the batch command "tomcat.bat run": FATAL:java.net.BindException: Address in use: JVM_Bind java.net.BindException: Address in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(N

Fix for SEVERE: Certificate convertion failed, bug in Tomcat-connectors-4.1.24

2003-03-25 Thread Thorvald Natvig
For those that have been suffering problems using 2-way authenticating with the JK2 Coyote connector, this patch should fix the problem. It's not a good fix, but it's a fix nonetheless. --- jakarta-tomcat-connectors-4.1.24-src/jk/java/org/apache/jk/server/JkCoyoteHandler.java 2003-03-19

Mac: org.apache.catalina.startup.bootstrap app appears in dock?

2003-03-25 Thread Simon Twigger
Hi there, Im using Tomcat 4.1.18 and Java 1.3.1 on a dual processor G4, 1.5GB RAM. I'm using Tomcat to serve JSP and servlets and most of the time all is well. However, when one particular servlet is called that generates a variety of GIF images Tomcat starts another application that appears

Re: HPUX and tomcat help!

2003-03-25 Thread xyber
we have the same problem in the past , and the solution: just switch back to java1.3 and the problem is gone xyb Byington, Allen wrote: I'm having a problem keeping tomcat running on my hpux11 systems. The server just stops responding and no log entries are made. To get things going again, I

RE: Basic authentication question

2003-03-25 Thread Koes, Derrick
Sorry, it is a protected resource and I want to continue to use basic authentication, not form authentication. I still don't see a way around the problem. The relevant part of my web.xml: dora /index.jsp GET POST 1 2 3 BAS

Re: Basic authentication question

2003-03-25 Thread Boon Seong
In that case, meaning it is a protected resource right ? Maybe u can try using the container's security feature such as putting this configuration in your web application's web.xml file. admin page /admin/* FORM /admin/login.jsp /admin/error.jsp

RE: Basic authentication question

2003-03-25 Thread Koes, Derrick
Unfortunately, this does not work. Tomcat seems to use 401 as a prompt to put up the basic auth login dialog. If you add the configuration below, it goes to this page first without ever prompting for user login. Do you have any other suggestions? Thanks, Derrick -Original Message- Fro

Re: JSP won't work unless have package in taglib .java file

2003-03-25 Thread David Thielen
Hi; If I have a tld object (ie TemplateDesc.java) with no project and place it in WEB-INF/classes - it won't work. But if I give it a package name and place it in WEB-INF/classes/package - then it works. The problem seems to be that with no package it generates the code: TemplateDesc _jspx_

Why does Tomcat use xerces under java 1.4 instead of the internal jvm classes?

2003-03-25 Thread David Thielen
thanks - dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

debug statements

2003-03-25 Thread David Thielen
Hi; Two questions: 1) If I set I get no extra messages. But if I set: I do get more messages. This is not documented as far as I can tell so what's going on here? 2) Even with the debug="100", it doesn't tell me why a given url doesn't load anything. Is there any way to get ho

Re: Basic authentication question

2003-03-25 Thread Boon Seong
add this to the web.xml 401 /errorpage.jsp - Original Message - From: "Koes, Derrick" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 25, 2003 6:22 PM Subject: Basic authentication question > > I wish to replace tomcat's 401 error page with something more el

Basic authentication question

2003-03-25 Thread Koes, Derrick
I wish to replace tomcat's 401 error page with something more elegant and specific to my web app. How can I do this? Thanks, Derrick This electronic transmission is strictly confidential to Smith & Nephew and intended solely for the addressee. It may contain information which is covered by l

Re: java.sql.SQLException: Update failed, possible duplicate entry

2003-03-25 Thread Ramiro Gonzalez
Additionally... you are missing to insert a value for the primary key field. Saludos! Wileynet wrote: Ok, I tried that. Here is the new code public void addInfo( String referer ) throws SQLException, Exception { if (con != null) { try{ Prepa

Re: MYSQL and TOMCAT

2003-03-25 Thread Ramiro Gonzalez
What I see your are losing the real message of the error: catch (SQLException sqle) { error = "Update failed, possible duplicate entry"; throw new SQLException( error ); } Better you should do: catch (SQLException s

Re: Error connecting to the Tomcat process

2003-03-25 Thread John Turner
If you haven't changed your configuration since last Friday, then something changed externally. The error message that you are getting is "cannot connect to Tomcat". So, basically, "I can't find Tomcat" or "I can find Tomcat but it isn't listening". #2 is a config change (disabling the conne

RE: HPUX and tomcat help!

2003-03-25 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
Allen, I was referring to the HP patches found at http://www.hp.com/products1/unix/java/patches/index.html Also, make sure you are using the latest version of HP Java 1.4 found at http://www.hp.com/products1/unix/java/java2/sdkrte14/infolibrary/index.html I have not personally used 1.4 as I am s

RE: HPUX and tomcat help!

2003-03-25 Thread Byington, Allen
Thanks for the help! I went ahead and added in the catalina opts (just one more thing I didn't know about) and restarted the server. I have my SA looking into the kernel params for me. I'll let you all know if that fixes the problem. As far as the patches are concerned, I'm using the 4.1.18 bin

Re: Error connecting to the Tomcat process

2003-03-25 Thread Manu Kits
Hi John, THANKS for your reply. mydomain.com is resolvable by Apache/mod_jk since it is serving Static HTML Pages and used to work very well for JSP?Servlet since last Friday... Any other input is appreciated. THANKS! From: John Turner <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL

Re: HPUX and tomcat help!

2003-03-25 Thread Tim Funk
Can you use a 1.3 JVM with all the latest OS patches? I'd be surprised if a 1.4 JVM was production worthy for HPUX. (YMMV) OS patches are the most important part. Also make sure enableHost lookups are off. And when tomcat freezes - perform a thread dump to look for anything potentially insight

Tomcat and SSL

2003-03-25 Thread Ramsay Domloge
Can anyone tell me what classes I should look at in the Tomcat sourcecode to find the code that automatically spots certificate data in the request and converts it to javax.security.cert.Certificate objects? Ramsay

Re: Error connecting to the Tomcat process

2003-03-25 Thread John Turner
In your workers.properties, is "mydomain.com" still resolvable by Apache/mod_jk to a valid IP address? Do you still get the error if you change "mydomain.com" in workers.properties to 127.0.0.1, assuming that Tomcat is on the same machine as Apache? John On Tue, 25 Mar 2003 15:39:30 +, Ma

Error connecting to the Tomcat process

2003-03-25 Thread Manu Kits
Hello, I am using APache 1.3.26, JBoss (embedded with Catalina) on IBM AIX 5L. I configuerd my mod_jk.so and it was working fine. My Servlets and JSP used to work fine. From last couple of days however, I am getting following errors when I access JSP/Servlets (HTML works fine) wonder why: URL

RE: HPUX and tomcat help!

2003-03-25 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
Allen, What do you set for your memory parameters in catalina opts? an example from out setup is if [ -z "$CATALINA_OPTS" ] ; then CATALINA_OPTS="-XdoCloseWithReadPending -Xms256m -Xmn100m -Xmx256m -Xverbosegc:file=/tomca t/logs/gc.out" export CATALINA_OPTS echo start: CATALINA_OPTS set to $C

Native Posix Thread Library

2003-03-25 Thread Georges Roux
How can I use Blackdown JSDK with tomcat 4.1.24 on Debian Sid do I need to recompile with ANT? Cause the new NPTL. Georges - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: HPUX and tomcat help!

2003-03-25 Thread Björn Clemens
Hi, I've the same problem on RedHat and Windows, but nobody can help ... :( It occurs too with jdk 1.3 and different apache's, mod_jk and the internal http-listener and so on. Now I try other containers. :(( Regards Björn > > I'm having a problem keeping tomcat running on my hpux11 system

Tomcat Certificate extensions

2003-03-25 Thread Ramsay Domloge
Hey All, Can anyone tell me what certificate types Tomcat accepts? Which extensions are supported? Which extensions will cause an error? Does Tomcat have any limits on the accepted key length? Ramsay ==

HPUX and tomcat help!

2003-03-25 Thread Byington, Allen
I'm having a problem keeping tomcat running on my hpux11 systems. The server just stops responding and no log entries are made. To get things going again, I have to do a kill on the tomcat process and start it back up. The configration of the server looks like this: HP-UX 11/64 bit java 1.4 tomca

Re: Keep generated jsp - servlet

2003-03-25 Thread Matthew Oatham
Oh yes I remember now! I asked this question here as I am running Jboss and Tomcat. When run with Jboss Tomcat doesn't keep the generated servlet src in the same way! Does anyone know how to achive this in jboss? Thanks Matt. - Original Message - From: "John Turner" <[EMAIL PROTECTED]> To

Tomcat Bug: JDBC driver can not be found when webapp made root.

2003-03-25 Thread Stephen Riek
I've been tearing my hair out for days trying to work out why I've been getting "jdbc driver not found 'Null'" errors. Then I came across this previous post, http://www.mail-archive.com/[EMAIL PROTECTED]/msg83356.html The original poster was absolutely correct - it's all due to making the weba

Re: Keep generated jsp - servlet

2003-03-25 Thread John Turner
All of the Java source for compiled JSPs is kept in Tomcat's work directory, by virtual host name, then by JSP name. Run the JSP once, then look in the work directory to see the Java source. It will stay there until either the JSP source changes, or Tomcat is restarted and the work directory

Keep generated jsp - servlet

2003-03-25 Thread Matthew Oatham
Hi, Is there an option I can set to keep the java src generated from the runtime compilation of jsp's. I want to compare these with those that jspc produce when pre compiling. When running some pre complied jsp's (CLASS files) I get the error: # HotSpot Virtual Machine Error, Internal Error # P

RE: Diff 4.1.18 and 4.1.24

2003-03-25 Thread Shapira, Yoav
Howdy, Look at the RELEASE-NOTES-4.1.txt file in the root directory of your tomcat 4.1.24 installation. It lists things fixed in 4.1.19, 4.1.20, 4.1.21, 4.1.22, 4.1.23, and 4.1.24, and this set constitutes the differences between 4.1.18 and 4.1.24. Yoav Shapira Millennium ChemInformatics >

Diff 4.1.18 and 4.1.24

2003-03-25 Thread Koes, Derrick
Can anyone point me to some documentation which notes the differences between 4.1.18 and 4.1.24? Thanks, Derrick This electronic transmission is strictly confidential to Smith & Nephew and intended solely for the addressee. It may contain information which is covered by legal, professional or

Re: java.sql.SQLException: Update failed, possible duplicate entry

2003-03-25 Thread John Turner
You need a different SQL statement. A valid insert statement is: INSERT INTO table_name ( column_name ) VALUES ( column_value ) So, in your case: updateInfo = con.prepareStatement("insert into info ( referrer ) values ( ? )"); Also, in your try/catch block, don't throw that new Exception, you

DIGEST authentication!

2003-03-25 Thread Uwe Klosa
Hi, I'm using Tomcat 4.1.18, Apache 1.3.27 and mod_jk as the connector. I want to implement DIGEST authentication on tomcat. I implemented already the BASIC authentication which is working fine. But if I want to change to DIGEST it doesn't work anymore. This is the contents of my web.xml

Re: Infuriating port problem 80 - 8443 and 8008 - 8443

2003-03-25 Thread John Turner
If it was a root restriction issue, Tomcat wouldn't even start. John On Tue, 25 Mar 2003 13:26:35 -, James Lewis <[EMAIL PROTECTED]> wrote: Obviously I meant Linux, although root access on Linus sounds interesting... -Original Message- From: James Lewis [mailto:[EMAIL PROTECTED] S

RE: java.sql.SQLException: Update failed, possible duplicate entry

2003-03-25 Thread Kal Govindu
The SQL Insert statement usually looks like this: Insert into info(referer) value('?'); Your statement looks like it is going try and update a field with name = (what ever you pass in for referer). And no such field exists in your db, moreover you are not providing a value for the field. Hope th

RE: Servlet init() versus doPost() Classloading???

2003-03-25 Thread Cox, Charlie
you can have 2 instances if you have multiple definitions in web.xml. you can calso have 2 instances if you have a in your server.xml and it is autoreloading your context(or you have 2 entries with the same docbase). it sounds like the latter, where you have 2 instances of your context and the

RE: Infuriating port problem 80 - 8443 and 8008 - 8443

2003-03-25 Thread James Lewis
Obviously I meant Linux, although root access on Linus sounds interesting... > -Original Message- > From: James Lewis [mailto:[EMAIL PROTECTED] > Sent: 25 March 2003 13:24 > To: Tomcat Users List > Subject: RE: Infuriating port problem 80 - 8443 and 8008 - 8443 > > > is the User who is run

RES: Infuriating port problem 80 - 8443 and 8008 - 8443

2003-03-25 Thread Tiago Ferraz Machado
The ports under 1024... -Mensagem original- De: James Lewis [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 25 de março de 2003 10:24 Para: Tomcat Users List Assunto: RE: Infuriating port problem 80 - 8443 and 8008 - 8443 is the User who is running the server "root"? Some ports are pr

RE: Infuriating port problem 80 - 8443 and 8008 - 8443

2003-03-25 Thread James Lewis
is the User who is running the server "root"? Some ports are privileged and you need root access on Linus to use them (someone can correct me on the exact ones no doubt :p) james > -Original Message- > From: Jamesey [mailto:[EMAIL PROTECTED] > Sent: 25 March 2003 13:16 > To: [EMAIL PROTE

Infuriating port problem 80 - 8443 and 8008 - 8443

2003-03-25 Thread Jamesey
My web app has been working fine for weeks switching from 8080 to 8443.. however.. i've now reconfigured it to port 80 and it after submitting to my struts action servlet.. i get page not found.. if i switch it back to 8080 its fine.. anyone know if im doing sometihng wrong? DETAILS: - Server.xm

Re: Memory allocations with java & TomCat

2003-03-25 Thread Peter Lin
what kind of processes are you doing that requires setting your heap to 1gig RAM? If you're generating reports, I hope your handling it in streams and not reading the whole thing in at once. You can use the same heap setting on windows, but I'm not sure I understand your question to the list. A

Re: Memory allocations with java & TomCat

2003-03-25 Thread Mark Pease
If you are using the Windows service, this link gives you all the information you need to know: http://www.alexandriasc.com/software/JavaService/documentation.html Specifically, you add your JAVA_OPTS to the 'JVM Option Number n' registry settings, then make sure that you change 'JVM Option Count

RES: Tomcat+apache+reload application

2003-03-25 Thread Tiago Ferraz Machado
I never tried that, but you may change the connector. Instead using the warp connector, you may use the mod_jk (or mod_jk2). I think it's even better to you once you can redirect only the dinamic pages to tomcat and the static content to Apache, improving the performance. There are lots of pag

RE: Tomcat+apache+reload application

2003-03-25 Thread Krzysztof Janiszewski
Hi! > The Warp Connection doesn't "refresh" the connections. So, if > you put a new servlet or even upload a new version of an > existing servlet, the connection between Apache and Tomcat is lost. > But you don't have to restart Tomcat, just Apache. Is it the only solution? It is hard to restar

RES: Tomcat+apache+reload application

2003-03-25 Thread Tiago Ferraz Machado
Hi !! The Warp Connection doesn't "refresh" the connections. So, if you put a new servlet or even upload a new version of an existing servlet, the connection between Apache and Tomcat is lost. But you don't have to restart Tomcat, just Apache. []'s Tiago. -Mensagem original- De: Krzy

Tomcat+apache+reload application

2003-03-25 Thread Krzysztof Janiszewski
Hi! I have the following problem. When I change my servlets and do reload action of my context in Manager i can see changes when I browse pages via Tomcat- standalone http server, but when I try to do this via Apache+mod_webapp, I can't see new servlet. I have to restart tomcat and apache to see

Re: jspc and index.jsp

2003-03-25 Thread Matthew Oatham
Arrrgg! Also when I have .. With the mapping jsp.index jsp.index jsp.index jsp/index.jsp I don't get to see jsp/indesx.jsp instead I get a directory listing! I also changed the above to jsp.index /jsp/index.jsp and Still no luck! Is this something to with the urir

Memory allocations with java & TomCat

2003-03-25 Thread Francisco José Arnau Vives
Dear users: I usually run tomcat over a linux machine. I need improve my normal memory requirements because I generate very large reports. I use in the initialization script 'export JAVA_OPTS=-Xmx1024m' and I solve most of the problems in Linux. The problem that I have now is that I have installed

Re: Setting up permissions for jsp directory

2003-03-25 Thread Nihita Goel
Thanks a lot. I copied the jsps inside the WEB-INF and changed the path in the servlet accordingly. N goel Tim Funk wrote: > The easiest way is to place your jsps inside of your WEB-INF directory. > > Otherwise - if you are using apache in front of tomcat there are > directives which can do tha

Re: Too many processes

2003-03-25 Thread Rasputin
* Gaston Escobar <[EMAIL PROTECTED]> [0302 18:02]: > I'm running tomcat in a Red Hat 7.2. It works well when it is started, but > it starts too many concurrent processes and it starts using more and more > memory until it reaches 31% of my computer's memory. These things aren't problems in themsel

Re: jspc and index.jsp

2003-03-25 Thread Lee Peik Feng
If not mistaken, Files that you set under must be physically exist. else, you need to type http://localhost:8080/your-webapp/index.jsp as this is what we set in servlet-mapping index /index.jsp another workaround would be create a dummy index.html file that has the below code - O

RE: Cannot Update MYSQL Database

2003-03-25 Thread Hans Liebenberg
updateInfo.execute(); should be updateInfo.executeUpdate(); -Original Message- From: Kyle Lange [mailto:[EMAIL PROTECTED] Sent: 25 March 2003 01:43 To: 'jsp'; 'Tomcat Users List' Cc: [EMAIL PROTECTED] Subject: RE: Cannot Update MYSQL Database I think you probably need to do one of the

jspc and index.jsp

2003-03-25 Thread Matthew Oatham
Hi, I have managed to pre-compile my jsp's down to class files and put them in web-inf/classes. I have this entry in web.xml index.jsp index.htm index.html I have the servlet WEB-INF/classes/index.class I have the mapping: index index index /i

RE: MYSQL and TOMCAT

2003-03-25 Thread Ralph Einfeldt
First of all you shouldn't rethrow the exception. That hides the true nature of the problem. > -Original Message- > From: jsp [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 25, 2003 4:17 AM > To: 'Tomcat Users List' > Subject: MYSQL and TOMCAT > >PreparedStatement update

RE: Cannot Update MYSQL Database

2003-03-25 Thread Kyle Lange
I think you probably need to do one of the following; Insert into info set referer = ? Or Insert into info (referer) values (?) But I could be wrong. -Original Message- From: jsp [mailto:[EMAIL PROTECTED] Sent: Tuesday, 25 March 2003 07:17 To: 'Tomcat Users List' Cc: [EMAIL PROTECT

  1   2   >