HELP!! TOMCAT and MYSQL

2003-08-03 Thread engp0510
Hi, I am using Tomcat 4.0 and MySQL 4.0.14 on WIn2K Professional. In Server.XML of Tomcat, I use: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/authority?user=leeson;password=

RE: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread pete . storey
I dont think the java versi0on is necessarily a problem however what you need to remeber is when you install the service, you fix the settings of the JVM. If you want to control memory settings, you need to do it in the tomcat.exe command which you run to install the service. My server is

Re: HELP!! TOMCAT and MYSQL

2003-08-03 Thread engp0510
Thanks very much! Y, I have tried. But always throw org.xml.sax.SAXParseException said a ; is needed to end the quote of password. Any advice? - Original Message - From: Emmanuel G. Dialynas [EMAIL PROTECTED] To: engp0510 [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent:

RE: HELP!! TOMCAT and MYSQL

2003-08-03 Thread Stuart MacPherson
Split the user and pass off of the URL, and into separate properties... stu -Original Message- From: engp0510 [mailto:[EMAIL PROTECTED] Sent: 03 August 2003 11:40 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; Emmanuel G. Dialynas Subject: Re: HELP!! TOMCAT and MYSQL Thanks very much! Y, I

Re: HELP!! TOMCAT and MYSQL

2003-08-03 Thread engp0510
Thanks Stuart. I always do this when I use JDBC in normal application. But during configing the Tomcat Server.XML, there is no instruction about separated properties for this REALM. Regards - Original Message - From: Stuart MacPherson [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL

RE: HELP!! TOMCAT and MYSQL

2003-08-03 Thread Zille Hassan
I have got the binaries for linux, does anyone know how do I install those binaries on linux workstation. I don't know much about linux and I need to know what the commands are and how to do it. There is nothing in the Readme File that lets me know how to install the Binaries on linux machines

UTF-8 problems

2003-08-03 Thread Nathan Coast
Hi, I have an text fields in a form that will contain UTF-8 characters e.g. ''. I can retrieve utf-8 chars from the db and display them correctly in jsps via tomcat. The only problem comes with submiting forms to tomcat. request.getParameter() returns the incorrect value for the char e.g.

RE: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread Robert Porter
I agree with your view on memory usage on a client, but what I am not clear on is do those settings constitute a hard limit for Tomcat/JVM? And if so, what happens when the limit is exceeded, or it attempts to. What we see now is a gradual increase in memory usage over a 10 - 15 minute period,

Mapping environment-etries to database-table?

2003-08-03 Thread Philipp Leusmann
Hello, In my Application I do some configuration via environment-entries in the server.xml. Is there any standard way to map this env-table to a database-table? This would be quite comfortable for my customer to edit the preferences via a database-connected servlet instead of editing the

RE: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread pete . storey
The settings are not controlled in the startup.bat - if you want to control them from the command line, you set the environment variable JAVA_OPTS with them. The default settings for a Sun JVM is to allow a max heap of 64m - if you try to exceed this, java.lang.OutOfMemoryException s will be

Re: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread Tim Funk
If you need to run NT as a service, use this tool to set it up. It makes life pretty nice. http://web.bvu.edu/staff/david/tcservcfg/ -Tim http://jakarta.apache.org/tomcat/faq/windows.html Robert Porter wrote: I agree with your view on memory usage on a client, but what I am not clear on is do

Re: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread pete . storey
thanks been looking for something like that for ages! Tim Funk [EMAIL PROTECTED] 03/08/2003 16:52 Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: Tomcat 4.1x running as NT Service Issue If you need to run NT

RE: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread Robert Porter
Found that while googling my issue, it looks very promising, but I need something we can include in a custom setup that will be run by users. Although that tool will help in testing! Seen anything like it for deploying webapps? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]

RE: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread pete . storey
well in that case the tomcat.exe included with the tomcat dist is fine once you have fixed your setup. It is simply run as a batch script, or as part of an install (you execute tomcat.exe once with the relevant parameters to install it) Pete Robert Porter [EMAIL PROTECTED] 03/08/2003

Programmatic authentication into the Servlet Container

2003-08-03 Thread kapil khanna
How do i programmatically authenticate to the servlet container usin Tomcat? I was unable to find the appropriate API call to do so. The reason i need this is because the web app that i have has a self registration feature (like most other web apps). Currently without making the API call, i first

RE: Tomcat IBM SSL Provider

2003-08-03 Thread McClure, Timothy J(IndSys, GE Interlogix)
I am still having trouble trying to use Tomcat with the IBM JVM 1.4 on AIX. I took the 4.1.26 jsse package and replaced to tomcat-util 4.1.24 jsse package files. I was running everything with 4.1.24 except for the 4.1.26 jsse package. When I brought Tomcat up I received some reflection

Tomcat 4.1.18 JSP reload issue

2003-08-03 Thread Greg H
We are running Tomcat 4.1.18 on Solaris 8 and have been having issues with JSP reloading. We have 4 instances of Tomcat running on two boxes. There are two instances on each box that are load balanced through mod_jk. Because we are a content based site, and most of our content is not database

error-page directive has no effect

2003-08-03 Thread pete . storey
Hi, ive got a problem currently with the error-page directive doing nothing when I use it in an app (on either tomcat 4.1.18 or .27). At the bottom of my app's web.xml, I have the following tag: error-page error-code500/error-code location/errorPages/500x.jsp/location /error-page

Problem with allowLinking=true

2003-08-03 Thread Bongrip
I have the following symbolic link under webapps/ROOT lrwxrwxrwx1 root root 9 Aug 2 10:08 orca - /mnt/orca /mnt/orca is an NFS mounted filesytems containing some web content. I added allowLinking=true to the ROOT context in conf/server.xml !-- Tomcat Root Context -- Context path=

Re: Running external C routine from a servlet ? The solution...

2003-08-03 Thread Michel Jubault
Hi Rick ! I've found a better way to precise the default directory for a particular subprocess : rather than using : exec(String command) to launch your process, use : exec (String command, null, File directory) where directory is the default dir for your external routine !! It's working well for

Configuration of Customer Resource Factory in JNDI

2003-08-03 Thread Paul Worrall
I am using Tomcat 4.1.12-LE-jdk14 and am trying to create a resource to return an org.apache.ojb.broker.PersistenceBroker object from the Apache OJB 1.0.rc3 distribution using my own implementation of the javax.naming.spi.ObjectFactory class called FLGPersistentBrokerFactory. Although Tomcat

RE: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread Robert Porter
I reinstalled Tomcat using the ServiceCfg tool mentioned previously and badda boom badda bing! No more creeping memory loss, at least not over the past several hours. I set some limits on memory usage etc. Am now trying to determine what exactly, I have to pass as parameters to the tomcat.exe

Configuration Error?

2003-08-03 Thread Sekhmet
I am really having a bad time using Apache Tomcat for the first time... But I won't give up... Just need help... I have a JSP page that works with a javabean (a simple test page), just look at the code: %@ page contentType=text/html; charset=iso-8859-1 language=java import=java.sql.* errorPage=

Setting filename when sending binary/octet-stream

2003-08-03 Thread Philipp Leusmann
Hi, is there a way to set the filename in a servlet when sending a file with response.setContentType(binary/octet-stream); and sending binary data with the ServletoutputStream? Thanks, Philipp - To unsubscribe, e-mail:

Re: Setting filename when sending binary/octet-stream

2003-08-03 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/misc.html#saveas Be warned that this may not work for all browsers or might not work for different versions or patch levels of the same browser. -Tim Philipp Leusmann wrote: Hi, is there a way to set the filename in a servlet when sending a file with

AW: Setting filename when sending binary/octet-stream

2003-08-03 Thread Philipp Leusmann
Better than nothing. Thanks -Ursprungliche Nachricht- Von: Tim Funk [mailto:[EMAIL PROTECTED] Gesendet: Montag, 4. August 2003 00:33 An: Tomcat Users List Betreff: Re: Setting filename when sending binary/octet-stream http://jakarta.apache.org/tomcat/faq/misc.html#saveas Be

Re: Tomcat 4.1.18 JSP reload issue

2003-08-03 Thread Tim Funk
Sorry if this sounds stupid but, can you reproduce with 4.1.27? (Maybe by luck this issue is already fixed before more probing questions) -Tim Greg H wrote: We are running Tomcat 4.1.18 on Solaris 8 and have been having issues with JSP reloading. We have 4 instances of Tomcat running on two

Re: Programmatic authentication into the Servlet Container

2003-08-03 Thread Tim Funk
There is no API available to webapps for this functionality. To get around this gap, you'll probably need to look at writing your own Valve. What and how - I am am unsure based on the description below. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html

RE: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread Robert Porter
Appears I spoke to soon. While memory usage is much better during the application execution, it still eventually begins a steep climb in terms of memory consumption, even with setting the various memory parameters on the JVM. What is most baffling to me is that this behavior does not occur when

JVM tuning

2003-08-03 Thread pete . storey
Has anyone got any clues on JVM tuning for Tomcat on Windows 2000, Sun 141 or 142? Im playing with some of the young/old generation and GC settings but am having trouble deciding what is best. I think that I should probably push out the young generation to be a larger than normal amount as

[ERR] Re: Post-authentication tasks

2003-08-03 Thread postmaster
Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) ---BeginMessage--- If this is not an appropriate list to ask design questions, could someone point me to a more suitable resource? Perhaps the tomcat-dev list? Thank you, -Sasha Borodin On 7/28/03 11:35,

Re: UTF-8 problems

2003-08-03 Thread Tang Guangyu
This problem was caused by your browser. The browser will use its own encoding to encode form values post back. You need set proper encoding to request - request.setEncoding(BROWSER_ENCODING). Or you can write a filter to simplify your work. - Original Message - From: Nathan Coast [EMAIL

Re: Tomcat startup problems

2003-08-03 Thread Tang Guangyu
It seems caused by a wrong user realm configuration. Check server.xml under %TOMCAT_HOME%/conf, remove or correct user realm part. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 03, 2003 8:26 AM Subject: Tomcat startup problems Hello, I am

OFF-TOPIC: using .htpasswd and OpenSSL

2003-08-03 Thread achana
Hi All. I use .htpasswd to protect some directories/vhosts which are OpenSSL-enabled. Ideally I would like to use MD5 rather than Basic for logging on. How does this work togethr with the OpenSSL encryption ? This odd idea lingers in the back of my mind that OpenSSL might encrypt the encrypted

Re: HELP!! TOMCAT and MYSQL

2003-08-03 Thread Emmanuel G. Dialynas
Try: connectionURL=jdbc:mysql://localhost/authority?user=leesonpassword= At 04:32 ìì 03/08/03 +0800, engp0510 wrote: Hi, I am using Tomcat 4.0 and MySQL 4.0.14 on WIn2K Professional. In Server.XML of Tomcat, I use: Realm className=org.apache.catalina.realm.JDBCRealm debug=99

[ERR] Re: rename workers2.properties file?

2003-08-03 Thread postmaster
Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) ---BeginMessage--- Hi, Although I haven't heard of anyone doing this you could add in your httpd.conf: JkSet config.file /full/system/path/to/workers2.properties I don't see why you couldn't change that to

Re: HELP!! TOMCAT and MYSQL

2003-08-03 Thread Mark Matthews
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 engp0510 wrote: Thanks very much! Y, I have tried. But always throw org.xml.sax.SAXParseException said a ; is needed to end the quote of password. Any advice? Tomcat's config file is in XML. The 'XML way' to produce an ampersand () is to use the

RE: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread Robert Porter
I am not sure why we are not running 1.4, but the image from corporate has 1.3.1 and we have been told to live with it. We are running pretty much the same configuration from what you describe but with drastically different results. I am checking on JVM settings, and I will try what you