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: !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector

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: 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

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

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 wrong!!! All

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, 2002 12:05 PM

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

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

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

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- From: Tim

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: 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 accessing the

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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

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

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

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

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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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 ???

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: Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://localhost;

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)

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 JNDI

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

Re: JSP working but Servlets not working

2002-09-22 Thread Lindomar
What Dave said is ok, but try: form action=/kithany/HelloWorldExample method=post Because your context /HelloWorldExample was configurate in your web.xml. It was work too. - Original Message - From: Dave Ford [EMAIL PROTECTED] form action=/kithany/servlet/HelloWorldExample

Re: JSP working but Servlets not working

2002-09-22 Thread Dave Ford
Your action should be: form action=/kithany/servlet/HelloWorldExample method=post 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

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
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 =

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

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

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

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: Simple Bean

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

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

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

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:

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:

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: Realm

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

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

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.

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'

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:

Re: JSP working but Servlets not working

2002-09-22 Thread Jacob Kjome
Notice your form action: form action=/HelloWorldExample method=post 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

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

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

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

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

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

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: !DOCTYPE maps SYSTEM file:///d:/Projects/portfolio/webapps/xml/metadata.xml And this worked. But isnt this defeating the multiplatform and distributability benefits of Java and webapps as you mentioned before? Is

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: 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 parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value

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 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=blahpassword=blah); -- And if I un-jar their

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),

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.