RE: class reloading - a question

2002-09-22 Thread Stefaan Nachtergaele
Hi all, The 3.x version of tomcat only did reloading of servlets, not on other classes. Does the 4.x version do reloading of other classes as well. I'm hoping it does and if it does, I'm hoping someone might provide some clues as to why it's not working for me :). Detection is done via comparison

Tomcat 4.1 Installation

2002-09-22 Thread Ray Madigan
Hi, I have a set of webapps that run ok on tomcat 4.0 - except for the fact that the responseDispatcher.include puts the included page at the beginning of the including html page. I have installed tomcat 4.1.10 and am attempting to get it to work. The problem is in the startup of the server whe

RE: Cannot setup tomcat

2002-09-22 Thread Ray Madigan
I don't know if this is your problem but your CATALINA_HOME AND BASE point to a *-tomcat-4.0.10 when it maybe should be 4.1.10? -Original Message- From: Marc Vila Perez [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 22, 2002 5:17 PM To: Tomcat Users List Subject: Cannot setup tomcat

AW: AW: How can I achieve thread safe for context attributes?

2002-09-22 Thread Ralph Einfeldt
That depends on how much work is done inside the synchronized block compared to the amount of work that is done outside this block. The more is done inside the block the more the server will slow down when concurrent requests hit blocks that are synchronized on the same object. > -Ursprüngli

Security question

2002-09-22 Thread David Jenkins
I'm trying to retrieve the userid that logged into apache and accessed the current JSP page. How can I get this info? Explanation: I'm implementing a very crude security system on my site for right now (mainly to just keep people from accessing the email addresses and photos on the site), but

Re: Cannot load JDBC driver class 'null'

2002-09-22 Thread John Walstra
>From the mysql-connector-java-2.0.14 README ... -- A simple connection example looks like: Class.forName("com.mysql.jdbc.Driver").newInstance(); java.sql.Connection conn; conn = DriverManager.getConnection( "jdbc:mysql://localhost/test?user=blah&password=blah"); -- And if I un-jar

Re: Cannot load JDBC driver class 'null'

2002-09-22 Thread Jacob Kjome
Yes, it should find it. Have you verified that the class in the driverClassName element actually does exist in that package in the jar file you just mentioned? Jake At 10:56 PM 9/22/2002 -0500, you wrote: >I do have mysql-connector-java-2.0.14-bin.jar in the common/lib directory. >Shouldn't

Re: Cannot load JDBC driver class 'null'

2002-09-22 Thread Kwok Peng Tuck
Well, when you listed the contents of your commons directory, I didn't see it there, and it still isn't .But I'll take your word that it is :) . In this case, I'd double check to see if driverClassName com.mysql.jdbc.Driver is actually correct (the value attrib

Re: Cannot load JDBC driver class 'null'

2002-09-22 Thread John Walstra
I do have mysql-connector-java-2.0.14-bin.jar in the common/lib directory. Shouldn't it find the correct class being there? On Sunday 22 September 2002 10:39 pm, Kwok Peng Tuck wrote: > Are you actually using the mysql driver? Cause if it says loading driver > null, means there isn't one. > >

RE: FW: XML Parsing in Servlet

2002-09-22 Thread Toby Saville
I tried using the file protocol in the doctype, similar to my original post, ie: And this worked. But isnt this defeating the multiplatform and distributability benefits of Java and webapps as you mentioned before? Is there an alternative? Thanks again. t0bes -Original Message- From:

Re: Cannot load JDBC driver class 'null'

2002-09-22 Thread Kwok Peng Tuck
Are you actually using the mysql driver? Cause if it says loading driver null, means there isn't one. John Walstra wrote: >I'm trying to set up a JNDI connection to MySQL. I'm using the binary release >of 4.1.11 with 4.0.4's jasper-compiler.jar and jasper-runtime.jar. I'm also >using mysql-co

RE: FW: XML Parsing in Servlet

2002-09-22 Thread Toby Saville
Thanks for your help Jake, I created an inputstream the way you said and passed it to the XML parser but it stopped at the same point. I realised that i had set my DOCTYPE definition to http://127.0.0.1/xml/metadata.xml. I figured this could be a problem as the web server isnt yet started when th

Cannot load JDBC driver class 'null'

2002-09-22 Thread John Walstra
I'm trying to set up a JNDI connection to MySQL. I'm using the binary release of 4.1.11 with 4.0.4's jasper-compiler.jar and jasper-runtime.jar. I'm also using mysql-connector-java-2.0.14. It's very similar to this thread http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg64346.html

Re: FW: XML Parsing in Servlet

2002-09-22 Thread Jacob Kjome
Stay away from File IO in webapps anyway. Use an InputStream if at all possible. You've made your app work on Windows only which defeats the purpose of the multi-platform and distibutability benefits of Java and webapps. Also, if you run your app out of a .war file and the file you are try

URGENT: SQL Server and Tomct 4.1 Pooling

2002-09-22 Thread Amitabh Dubey
Hello Guys, I have been working on this problem for 3 days now and have not been able to make Tomcat create a connection pool for me. This is my setup Database - SQL Server 2000 Driver - JDBC Driver by microsoft Tomcat - 4.1.2 (Packaged as part of JWSDK from SUN) I was able to successfull

Re: JSP working but Servlets not working

2002-09-22 Thread Jacob Kjome
Notice your form action: You prefixed it with a "/" meaning that it looks for your servlet from the root of the web. Since your context is not the root of the web, the message you got is exactly what I would expect. To be correct, here is what you would do: Further, that will still not

Re: owner.group for TomCAt

2002-09-22 Thread Kwok Peng Tuck
I put mine as a user other than root or nobody. For testing you *could* put it as root. I guess it is safer as some user other than root. [EMAIL PROTECTED] wrote: >Hi All. >Should the owner.groupd for Tomcats be nobody.nogroup rather than >root.root ??? > >-- >To unsubscribe, e-mail:

FW: XML Parsing in Servlet

2002-09-22 Thread Toby Saville
Hi, back again, i sent my last email without writing what standard out prints. Here it is: Starting service Tomcat-Standalone Apache Tomcat/4.1.10 Sorry for re posting. -t0bes -Original Message- From: Toby Saville Sent: Monday, 23 September 2002 12:06 PM To: 'Tomcat Users List' Sub

XML Parsing in Servlet

2002-09-22 Thread Toby Saville
Hi, Im not sure if this is the correct place to post this type of message but ill try anyways. Im trying to parse an XML file in a servlet's init(Servlet config) method on a tomcat4.1 server. I am using a xerces SAX parser. The servlet has a load-on-startup tag in web.xml with a value of 1. Whe

RE: Postgresql DataSource Tomcat 4.1 SQLException

2002-09-22 Thread Ray Madigan
Paul: Did you get this problem fixed. I have nearly the identical situation you are using working and will help if you need it. Thanks -Original Message- From: Ben Walding [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 22, 2002 1:36 AM To: Tomcat Users List Subject: Re: Postgresql

Re: Cannot setup tomcat

2002-09-22 Thread Kwok Peng Tuck
The problem with the shutdown probably has something to do with the fact that it didn't start up in the first place. I think we should concentrate on why it won't start first. After starting up, do a ps to see if java is listed as a process. Then we'll know if tomcat started up in the first pl

JDBC realm on 4.1.10

2002-09-22 Thread Paul Phillips
I have a server running 4.0.3. On this server, I implemented a webapp that uses a JDBC realm for form based authentication. The database is mysql. It works fine. The lines in the 4.0.3 server.xml file relative to the JDBC realm look like this: So, I decided to give 4.1.10 a try. I used

Cannot setup tomcat

2002-09-22 Thread Marc Vila Pérez
Hi!!! I cannot setup Tomcat 4.1.10, on Redhat 7.2 with Apache 1.3.22 and jdk1.4.1. I've followed all the instructions to install it, and seems all it's ok, but when I start tomcat: bash-2.05$$CATALINA_HOME/bin/startup.sh Using CATALINA_BASE: /usr/local/jakarta-tomcat-4.0.10 Using CATALINA_HOME: /u

RE: Simple Bean not working but Servlet/JSP Working

2002-09-22 Thread Ron Day
You have to put your java classes in a package. If you do not, and put the class files in WEB-INF/classes then Tomcat cannot find them because this is not the default package location for Tomcat. Bottom line: always use pacjages for your classes ! ron -Original Message- From: "Ma

RE: tomcat start up errors

2002-09-22 Thread Sexton, George
Look around for files named hs_err_pidN.log. This is the crash log the JVM will write when it falls over. -Original Message- From: Kathleen Flores [mailto:[EMAIL PROTECTED]] Sent: 20 September, 2002 1:29 PM To: Tomcat Users List Subject: RE: tomcat start up errors Thank you for you

DESPAIR : Apache NOT talking with Tomcat now...

2002-09-22 Thread achana
Hi All. Apache talked with Tomcat on the same box on Thu-Fri. Then I put Apache on one box and Tomcat on another. One slight difference : the Tomcat box has RH7.1/Apache1.3.16 (I cannot change that) whereas the box where I got them working has RH7.1/Apache2. I read thru all docos from various web

jmx and context management

2002-09-22 Thread Jakob Praher
hi all, I'd like to use the JMX in Catalina and to be able to do Context administration with the JMX Api. After successfully building catalina from source with jmx support I think it can be done within a priviledged servlet, which should have access to the MBeanServer via the Context.getAttribut

RE: Simple Bean not working but Servlet/JSP Working

2002-09-22 Thread Manoj Kithany
Hi Mr. Reynir, THANKS for reply. I have already removed the package name from the FormBean.java file. Please help. Thanks! Manoj G. Kithany >From: Reynir Hübner <[EMAIL PROTECTED]> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> >To: "Tomcat Users List" <[EMAIL PROTECTED]> >Subject: RE:

RE: Simple Bean not working but Servlet/JSP Working

2002-09-22 Thread Reynir Hübner
do you have the bean specified in a package ? either put it into a package (and the correct "folder") as /classes/com/domain/packagename/FormBean.class and then use this (with import line), or remove the package com.domain.packagename; from the file, and it should work. hope it helps [EMAIL PRO

RE: how to handle requests to www.domain.com (no context path) w/ISAPI redirector and IIS?

2002-09-22 Thread Reynir Hübner
hi, you will have to create a virtual host in IIS, and install the ISAPI redirector in that host to redirect to a host installed in tomcat. in other words, if you have a virtual host configured in tomcat with by the name host.domain.com you must have a virtual host with the same hostmark in IIS

Simple Bean not working but Servlet/JSP Working

2002-09-22 Thread Manoj Kithany
Hi Experts, I tried a simple JSP/Servlet applications and it worked. I am using Apache 1.3.26 + (Jboss 3.0.3, Tomcat 4.0.4 bundle) Now, I am trying for simple Bean Application with JSP/Servlets and Html pages. My directory structure is : /kithany (root) /kithany/register.html /kithany/success

Re: JSP working but Servlets not working

2002-09-22 Thread Lindomar
Hi Mano! The problem is in your servlet. See line:ResourceBundle rb = ResourceBundle.getBundle("LocalStrings",request.getLocale()); The method getLocale() because is a ploblem getting Locale. But only you see fast that yours servlets works... Comments // ResourceBundle rb = ResourceBundle.get

Re: JSP working but Servlets not working

2002-09-22 Thread Manoj Kithany
Hi Mr Dave and Lindomar, THANKS for your reply. I tried to give actin as "/kithany/servlet/HelloWorldExample" but now it is giving me following error - wonder why: - Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error The server

Re: JSP working but Servlets not working

2002-09-22 Thread Lindomar
What Dave said is ok, but try: Because your context /HelloWorldExample was configurate in your web.xml. It was work too. - Original Message - From: "Dave Ford" <[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: JSP working but Servlets not working

2002-09-22 Thread Dave Ford
Your action should be: Dave Ford Smart Soft - The Developer Training Company http://www.smart-soft.com - Original Message - From: "Manoj Kithany" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, September 22, 2002 2:53 PM Subject: JSP working but Servlets not working > Hi

how to handle requests to www.domain.com (no context path) w/ISAPI redirector and IIS?

2002-09-22 Thread Jeff
I've gotten to the point where I can have requests sent to IIS at http://anysiteonwin2kmachine.mydomain.com/specific_context_path handled by the webapp whose context path is /specific_context_path , but I'm at a loss as to how requests to a site's default page (index.jsp) should be set up among mu

Re: JNDI Realm on Tomcat 4 does not work

2002-09-22 Thread John Holman
You need to use "curly brackets" {} for the substitions, not parentheses () e.g. userPattern="uid={0},ou=people,dc=yikester,dc=net" not userPattern="uid=(0),ou=people,dc=yikester,dc=net" John. Stephan Schwab wrote: > Hi, > > I want to secure a webapp with the

JSP working but Servlets not working

2002-09-22 Thread Manoj Kithany
Hi Experts, Greetings! I am using Apache 1.3.26 + (Jboss 3.0.3, Tomcat 4.0.4 bundle) I treid to creat a small Web Application. My JSP files are WORKING properly BUT when Servlet is called (from JSP Page), I get "No Context COnfigured Error" My Directory structure is as follows: /kithany (root)

JSP working but Servlets not working

2002-09-22 Thread Manoj Kithany
Hi Experts, Greetings! I am using Apache 1.3.26 + (Jboss 3.0.3, Tomcat 4.0.4 bundle) I treid to creat a small Web Application. My JSP files are WORKING properly BUT when Servlet is called (from JSP Page), I get "No Context COnfigured Error" My Directory structure is as follows: /kithany (root

JNDI Realm on Tomcat 4 does not work

2002-09-22 Thread Stephan Schwab
Hi, I want to secure a webapp with the JNDI realm. But the LDAP query is sent wrong to my OpenLDAP server. Here is a snippet from server.xml: ldap://localhost"; userPattern="uid=(0),ou=people,dc=yikester,dc=net" roleBase="ou=groups,dc=yikester,dc=net" roleNam

Loadbalancing : MS NLB vs mod_jk

2002-09-22 Thread achana
Hi All. Please forgive me for bringing up a topic like this. I believe I have Apache collaborating with Tomcat using mod_jk. Also I will be experimenting with "load-balancing" using both symmetric and assymetric (different CPU and configuration ) setups. Can this setup be compared with MS NLB ???

Re: loadbalancer in workers.properties

2002-09-22 Thread achana
David Cassidy wrote: > > it's part of mod_jk I am totally flabbergasted... Bounce the servers and it works again. I must have had some parameters not set correctly ??? -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: loadbalancer in workers.properties

2002-09-22 Thread achana
David Cassidy wrote: > > it's part of mod_jk Thanks I've an unusual problem : I got Apache collaborating with Tomcat on the same box. Then I seperated the two and it worked. I rebooted the machines, now Apache won't talk with Tomcat. I looked in log/error_log , it seems the Apache machine keeps t

RE: Tomcat4.0 with SSL on windows2000

2002-09-22 Thread John Hughes
The way we got client auth to work is to import the trusted root cert into the cacerts truststore contained in {JAVA_HOME}/jre/lib/security. Use keytool and a password of changeit. John > -Original Message- > From: Shubha Somayaji [mailto:[EMAIL PROTECTED]] > Sent: 21 September 2002 0

Application .xml context and multiple virtual hosts

2002-09-22 Thread Raj Saini
Hi, I am using Tomcat 4.1.10. I integrated with Apache 1.3.x. I have multiple virtual hosts configured on tomcat. Tomcat 4.1.10 have a feature where we can deploy an application by coping a .xml file in with webapps directory. There are examples of admin and maanger applications. I want to dep

Getting Login name and password

2002-09-22 Thread Andreas Probst
Hi all, I know there is a way to get the user name by calling HttpServletRequest.getUserPrincipal().getName(). I also need the password. How can this be achieved? Thanks in advance. Andreas -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: loadbalancer in workers.properties

2002-09-22 Thread David Cassidy
it's part of mod_jk as I can assume that you have got mod_jk loaded and installed, working correctly for one server I shall begin ... In your workers.properties you will find an entry titled worker.list this will probably look like worker.list=ajp13 You will then find the definition of ajp13

Re: TC 4.1.10 - Administration App

2002-09-22 Thread Randy Secrist
I am attempting to access the admin app from tomcat standalone - 8080. - Original Message - From: "Robert L Sowders" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, September 16, 2002 9:49 PM Subject: Re: TC 4.1.10 - Administration App > How are you access

Re: Filters in Tomcat

2002-09-22 Thread Tim Funk
Nope - but you can make your filter "smart enough" to know how to disable/enable itself. Samuel Cheung wrote: > Hi, > > Could someone please tell me if I can activate/deactivate filters in Tomcat > dynamically after the servlet is running? > > Thank you. > Sam -- To unsubscribe, e-mail:

Re: How to block listings on a SPECIFIC directory

2002-09-22 Thread Tim Funk
The filter will run as fast as the code you put in it. adi wrote: > Thanks for that one. > Just one more question: > I assume there is some kind of overhead doing this > all the requests will be streamed through the filter etc. > It a serious problem? > > Adi > > -Original Message- > Fr

which proxy (mod_jk,jk2,webapp etc. (was Re: How to use Port 80?)

2002-09-22 Thread Matthew Hannigan
You can also use Apache's standard mod_proxy, but this forward all traffic to tomcat. Does anyone have an overview of what the pros and cons of each of these possibilties? I'm looking for ease of setup, features, stability, is it currently being maintained, improved etc. Regards, Ben Waldin

Re: How to use Port 80?

2002-09-22 Thread Ben Walding
You can set up a port forward / filter such that traffic that comes in on port 80 gets filtered through to port 8080 The other options is to use Apache out the front on port 80 and then mod_jk / jk2 / mod_webapp to connect tomcat into apache. I can't recommend one or the other for these as I d

Re: How to use Port 80?

2002-09-22 Thread hal
thanks I looked back at the archieves and found out how to change the user to Root. I did that and it worked. I did find some other messages indicating what you said, which was running as ROOT might be bad idea from a system adminstration perspective. Unfortunately, I found no other way to run

Re: mod_jk2, virtual hosts, JkUriSet

2002-09-22 Thread Dom
You're right, it was a typo error as I had changed the real virtual hosts name ! Dom - Original Message - From: "Mladen Turk" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Cc: "Dom" <[EMAIL PROTECTED]>; "Dmitry Letin" <[EMAIL PROTECTED]> Sent: Sunday, September 22, 200

RE: mod_jk2, virtual hosts, JkUriSet

2002-09-22 Thread Mladen Turk
Could you guys thest against the current CVS. > -Original Message- > From: Dom [mailto:[EMAIL PROTECTED]] > > [uri:/host1.net/*.jsp] > info=host1.net default context. > group=lb > debug=0 > > [uri:/host2.net/*.jsp] > info=host2.net default context. > group=lb > debug=0 > This is wro

Question about connecting Apache (2.0.40), tomcat (4.1.10) on Windows2000

2002-09-22 Thread ric
I have installed and configured apache (2.0.40)(it's currently hosting two URLs) and tomcat 4.1.10 on a windows 2000 advance server machine. Each, by themselves, are up and running. I am trying to integrate tomcat into the apache server and have failed. Has anyone done this and could you shar

Re: How to use Port 80?

2002-09-22 Thread Ben Walding
You don't want to change /etc/services as it is simply a directory of mappings between well known service names and ports. Tomcat runs as the user tomcat4 on RedHat 7.x. This user is unable to bind to port 80. People have had success with changing the user to root, but this is generally cons

Re: Postgresql DataSource Tomcat 4.1 SQLException

2002-09-22 Thread Ben Walding
The JNDI namespace you want is java:comp/env and not java:/comp/env But I'm not sure if is the cause of the problem. Alfonso Martinez wrote: >Hi Paul, > >I am a newbie too, but trying to help. I had a problem like yours recently and found >an error in my server.xml. I know you checked that

RE: accessing ejbs deployed in jboss from tomcat/apache

2002-09-22 Thread Nani Jon
Ray: Thanks for the reply. I actually solved the problem. I needed to make an entry in tomcat4-services.xml located in jboss_tomcat/server/default/deploy directory: BTW: This is the same entry in the server.xml file which is used by embeded tomcat, located at jboss_tomcat/catalina level.