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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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]
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 ???
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;
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)
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)
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
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
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
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
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
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 =
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
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
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
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
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
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
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 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:
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:
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
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
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
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.
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'
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:
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
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
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
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
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
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
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
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.
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
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
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
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),
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.
55 matches
Mail list logo