AW: HOW TO: How do I allocate memory in JVM for extra virtual hosts

2002-09-30 Thread Ralph Einfeldt

No, that won't help. 

To call gc() doesn't call the garbage collector, you 
just set a mark saying 'I would like to do a garbage 
collection as soon as you like to do it'. Wether and 
when the garbage collector follows your desire is up 
to the implementation.

 -Ursprüngliche Nachricht-
 Von: Brad Plies [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 27. September 2002 18:19
 An: Tomcat Users List
 Betreff: Re: HOW TO: How do I allocate memory in JVM for extra virtual
 hosts
 
 
 I am not aware of all the performance implications of
 this, but it should be possible to create a Thread to
 run on some interval you define which just infinitely
 loops a call for garbage collection (gc() right?) then
 goes back to sleep until next iteration.
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




org.apache.coyote.http11.Http11Processor.process takes too long

2002-09-30 Thread Steve Vanspall

Hi there,

here is the situation.

I have a special List that cretes Html code as a java-bean is added to it.

This eliminates the need for an extra iteration when the JSP loads, to prepare the 
HTML in teh page.

This List is kept in the Application scope, and is retrieved when needed by placing a 
%=form.getList().getHtml()% tag in my JSP.

The problem I am having is that if the String that getHtml return is particularly 
long, a line in 

org.apache.coyote.http11.Http11Processor.process(java.io.InputStream, 
java.io.OutputStream)

seems to take a reasonably long time to process. This has not happened with the 
previous versions of tomcat.

Basically it should only be doing an out.write on the String.

on the suggestion of someone in the Struts user mailing list, I changes to JSTL tags 
and replaced 
%=form.getList().getHtml()% with c:out value=${form.list.html} escapeXml=false/

this, I expected would do the same thing.

Hence the same holdup in the Method: apache.coyote.http11.Http11Processor.process

Can anyone help expalin what might be the problem here, and how to avoid tomcat using 
the method it is trying to invoke.

Unfortuantely I cannot find the source code for 
apache.coyote.http11.Http11Processor.process or the Sourcecode for Tomcat 4.1.12 so I 
don't know exactly where it si sticking.

Any help would be appreciated

Steve






AW: Best practices for Tomcat and server load

2002-09-30 Thread Ralph Einfeldt

Have a look at:
http://www.webdevelopersjournal.com/columns/connection_pool.html
http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBook/conpool.html

An overview over several pools:
http://www2.gvsu.edu/~millerjr/ResearchPaper.html

 -Ursprüngliche Nachricht-
 Von: Bill Blackmon [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 30. September 2002 02:21
 An: Tomcat Users List
 Betreff: Re: Best practices for Tomcat and server load
 
 Thanks - any idea where to get a quick code sample on how to 
 create my own connection pooling? I'm using MySQL as a database
 for the first time.
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Best Practices Question

2002-09-30 Thread Oskar Bartenstein

Sun, 29 Sep 2002 22:17:25 -0700 (PDT) Craig R. McClanahan [EMAIL PROTECTED] said:
 Regarding restarting a webapp without restarting Tomcat, you should read
 up on the Manager servlet that comes with Tomcat 4.0 and 4.1:
   http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html
If the manager servlet can remove a webapp with a servlet that
tries to use 100%CPU and never comes back, then that is it. Perfect.
I more than happily withdraw the idea of using Apache as server side
proxy to access several independent Tomcats via port 80 in order
to reduce downtime.
I am sorry I overlooked that until now. Thank you for the pointer.

On dealing with rogue (runaway, stuck, ..) servlets:

 what you mean by this) either way.  The only answer is to correct the bugs
 in your app that are causing the servlet not to complete its responses.
Almost agree. But this looks only at the servlet programmers side.
As server administrator I also want to minimize the damage
a single broken servlet can do. A local problem should stay local.
This not a problem in a perfect world. Reality is not always perfect.
Recently I had a servlet that worked fine for 9996 times out of 1.
In the other 4 cases it would use all CPU it could get until somebody killed
Tomcat.

That is why
  I searched quite a while but failed to find a way to
  monitor and catch individual runaway servlet threads.
Being lazy as I am, I would like to be able to set resource ceilings
on servlets, forcing servlets to behave and programmers to act, not
the server administrator.

Thank you again
Oskar
--
Dr. Oskar Bartenstein [EMAIL PROTECTED]
IF Computer Japan  http://www.ifcomputer.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: mod_jk error under load

2002-09-30 Thread Anthony Milbourne

Hi

146 is a socket connection error.
Try checking your workers.properties file (or the JBoss file that generates
it ?) and making sure that the only connectors mentioned in workers.list
also have connectors defined in server.xml.  Specifically - check there
isn't an ajp12 in workers.properties and not in server.xml.

Hope that helps.

Anthony.

 -Original Message-
 From: David Ward [SMTP:[EMAIL PROTECTED]]
 Sent: 27 September 2002 17:57
 To:   [EMAIL PROTECTED]
 Subject:  mod_jk error under load
 
 In running an automated load test against our app, we get the following 
 errors in or jk.log file:
 
 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
 
 Anyone know what these errors are? I can't find anything conclusive 
 about them searching various lists/forums.
 
 We are running Apache 1.3.12 on a Solaris 7 Ultra 10 using mod_jk/ajp12 
 to talk to JBoss-2.4.7_Tomcat-3.2.3 on a Solaris 7 E250, JDK 1.3.1_02.
 
 The symptoms we see are that the number of httpd processes maxes out on 
 the web server box, though the CPU is almost completely idle. The weird 
 thing is that the app server is mostly idle too, and doing a thread dump 
 on the java (jboss+tomcat in same vm) process shows that there are lots 
 of threads waiting for work to do. Once we stop the load test, things 
 are still messed up until I restart apache, then we can access the app 
 again. Note that I didn't have to touch the app server at all. Accessing 
 URLs that aren't configured to go through mod_jk have no problem, until 
 the max http children process gets reached, of course...
 
 I haven't gotten a response from the Tomcat forum at JGuru.
 
 Thanks all,
 David
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: 4th day offline, getting desperate, please help

2002-09-30 Thread David Wynter

Hi Raj,

I can get www.roamware.com:8080/index.jsp which is the standard Tomcat
installation. I had accidently removed the connector for port 8080. But I
cannot get my WAR file to deploy, I get a 404 error when I hit
www.roamware.com:8080/rwsite/servlet/rwsite/template/index.vm

So I add a context within the default virtual host (which is set to
unpackWARS=true and autoDeploy=true, but it does not do it!). The
Context looks like this and it is placed just below the Root Context

Context path= docBase=rwsite debug-0/

Just in case I need it i have a symbolic link from webapps/ROOT called
rwsite that points to webapps/rwsite directory (Yes, I tried
www.roamware.com:8080/servlet/rwsite/template/index.vm too, it doesn't work
either)

It is still the same server.xml I posted earlier, bu twith the 8080
connector added back in.

Next step?

David
  -Original Message-
  From: Raj Saini [mailto:[EMAIL PROTECTED]]
  Sent: 30 September 2002 09:22
  To: [EMAIL PROTECTED]
  Subject: Re: 4th day offline, getting desperate, please help


  Hi,

  OK, I will help you.

  Stop doing any thing with your server. Mail me [EMAIL PROTECTED]

  I will do my best to help you out.

  Raj



RE: binary mod_webapp.so for solaris7?

2002-09-30 Thread Anthony Milbourne

Sorry

We have one for Solaris 8 - but that probably won't help.

Anthony.

 -Original Message-
 From: David Bishop [SMTP:[EMAIL PROTECTED]]
 Sent: 27 September 2002 20:53
 To:   Tomcat Users List
 Subject:  binary mod_webapp.so for solaris7?
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 See subject :-)  Anyone have one of those?  I was never able to get the
 module 
 to load correctly with a self-compiled version, even with Solaris 8, but
 the 
 binary modules seem to work fine, when I can get them.  I am running
 Apache 
 1.3.26, Solaris 7 on an ultra 60, tomcat 4.0.4.
 
 Thanks *very* much.
 - -- 
 A mouse is a device used to point at the xterm you want to type in. 
   --Kim Alm, a.s.r 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.0 (GNU/Linux)
 
 iD8DBQE9lLcIEHLN/FXAbC0RAs5qAKDRS0k9JH1RYWVejGOZKZ5oJ6EngQCfXujH
 tesH8v2Al8zEGXEjzS/S08o=
 =AJT9
 -END PGP SIGNATURE-
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




[OT] Sevlet Filter + Deployment Descriptor

2002-09-30 Thread gautam

Hello,

I am trying to use the new javax.servlet.Filter interface and have a
question about the deployment descriptor for filters. How do I specify more
than one URL mapping ? Can I do it like in the example below ?

filter-mapping
filter-namesomeFilterService/filter-name
url-pattern*.do/url-pattern
url-pattern*.jsp/url-pattern
url-pattern*.html/url-pattern
...
/filter-mapping

Or should the individual patterns have their own filter-mapping...
/filter-mapping?

Regards,

Gautam S



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: binary mod_webapp.so for solaris7?

2002-09-30 Thread Raj Saini

I have the webapps and mod_jk connectors solaris 2.7. How can I put them 
on the server? I tried to send through mailing list but it is too big to 
put here.

Raj

David Bishop wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 See subject :-)  Anyone have one of those?  I was never able to get the module 
 to load correctly with a self-compiled version, even with Solaris 8, but the 
 binary modules seem to work fine, when I can get them.  I am running Apache 
 1.3.26, Solaris 7 on an ultra 60, tomcat 4.0.4.

 
 Thanks *very* much.
 - -- 
 A mouse is a device used to point at the xterm you want to type in. 
   --Kim Alm, a.s.r 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.0 (GNU/Linux)
 
 iD8DBQE9lLcIEHLN/FXAbC0RAs5qAKDRS0k9JH1RYWVejGOZKZ5oJ6EngQCfXujH
 tesH8v2Al8zEGXEjzS/S08o=
 =AJT9
 -END PGP SIGNATURE-
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: 4th day offline, getting desperate, please help

2002-09-30 Thread David Wynter

Hi,

With a standatrd install and the changes to setup my domain name plus an
extra context for my rwsite webapp I get the following in
roamware_log.2002-09-30.txt

2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploying class repositories to
work directory
/var/jakarta-tomcat-4.1.12-LE-jdk14/work/Standalone/www.roamware.com/rwsite
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy class files
/WEB-INF/classes to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/classes
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/FTPProtocol.jar to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/FTPProtocol.j
ar
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/activation-1.0.1.jar to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/activation-1.
0.1.jar
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/ant-optional.jar to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/ant-optional.
jar
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/caucho-jdbc-mysql-2.1.0.jar to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/caucho-jdbc-m
ysql-2.1.0.jar
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/ecs-1.4.1.jar to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/ecs-1.4.1.jar
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/extended-security.jar to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/extended-secu
rity.jar
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR /WEB-INF/lib/hsql.jar
to /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/hsql.jar
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/httpunit.jar to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/httpunit.jar
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR /WEB-INF/lib/idb.jar
to /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/idb.jar
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/j2eeunit-23-0.9.jar to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/j2eeunit-23-0
.9.jar
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/j2eeunit-ant-0.9.jar to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/j2eeunit-ant-
0.9.jar
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/jakarta-regexp-1.3-dev.jar to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/jakarta-regex
p-1.3-dev.jar
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/jdbc-se2.0.jar to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/jdbc-se2.0.ja
r
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/jdbc2_0-stdext.jar to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/jdbc2_0-stdex
t.jar
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/jndi-1.2.1.jar to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/jndi-1.2.1.ja
r
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/jta1.0.1.jar to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/jta1.0.1.jar
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR /WEB-INF/lib/junit.jar
to /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/junit.jar
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/log4j-1.1.jar to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/log4j-1.1.jar
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/mail-1.2.jar to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/mail-1.2.jar
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/mm.mysql-2.0.14-bin.jar to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/mm.mysql-2.0.
14-bin.jar
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR /WEB-INF/lib/oro.jar
to /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/oro.jar
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/postgresql.jar to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/postgresql.ja
r
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/turbine-2.1.jar to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/turbine-2.1.j
ar
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/velocity-1.2-dev.jar to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/velocity-1.2-
dev.jar
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/village-1.5.1.jar to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/village-1.5.1
.jar
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/xalan-1.2.1.jar to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/xalan-1.2.1.j
ar
2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/xerces-1.3.0.jar to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/xerces-1.3.0.
jar

(OT) Cannot see Localhost on Apache

2002-09-30 Thread Geoffrey Khan
Title: Message



Hello,

Sorry for the off topic manner 
of this email but I am having trouble with my Apache server and was wondering if 
anyone on this list can help me?

For about a year I had Apache 
1.3.20 set-up on my Windows 98SE machine running PHP 4.1.1 (and Coldfusion) on 
it with no problems. I would type http://localhost/ (or http://127.0.0.1/) in my browser and be able 
to see the directories with all my files in them and edit them 
accordingly.

However, last week I started up 
Apache and opened a browser and typed Localhost but nothing happened! All I 
would get would be a white blank screen and if I typed in the address of a 
specific file within the directory I would get a "Pager cannot be displayed" 
error.

I tested this in IE, Netscape 
and Mozilla (along with clearing the cache in each browser) and all of them were 
the same.

I decided to uninstall Apache 
1.3.20 and upgrade to 1.3.26 figuring that if I started with a newer version of 
Apache the problem would be eradicated and I would have a more up-to-date 
version of the server.

This I have done, but still I 
cannot gain access to any of my files and still it gives me a blank white screen 
if I type Localhost and a "Page cannot be displayed" error message if I try and 
navigate to a specific file within the directory.

I have scanned the Apache web 
site, trawled through the newsgroups, studied my config file indepth, but cannot 
see where the problem lies.


Could someone please take a 
look at my config file and try to see why this is happening because as far as I 
can tell everything is fine and I haven't changed anything since the last time 
it worked OK?

Please disregard the fact that 
I haven't loaded the PHP modules yet (and Coldfusion as well) as I will do this 
after I have managed to sort out the Localhost problem.

Your help would be very much 
appreciated.


Regards,



Geoff Khan B.Sc (Hons)www.shining-path.com



httpd.conf
Description: Binary data

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Alternative Apache/Tomcat combinations

2002-09-30 Thread Ross Nicoll

With all this mention of using mod_jk, I thought I'd mention a few other 
methods of combining Apache and Tomcat, that we've had quite a lot of 
success with.

We have two projects running on the same physical machine, INSIDE and MMS. 
INSIDE has static pages that describe the project, and uses JSP. MMS has a 
static front page, and all other pages are generated dynamically.

INSIDE uses mod_jk, that's simple enough. We've had two problems with 
INSIDE however, and different solutions:

First of all, we discovered that one of the people working on MMS was 
behind a firewall that blocked all outgoing packets to 8080. To solve 
this, we used the alternative method of proxying, so that all requests to 
a specific URL under port 80, were passed on to port 8080:

ProxyPass /tags/ http://localhost:8080/tags/
ProxyPassReverse /tags/ http://localhost:8080/tags/


Then it was pointed out that our URL for getting to MMS was slightly long 
(hostname.dept.domain.ac.uk:8180/mms ... you get the idea), so we 
assigned the hostname mms to the box, and had Apache redirect requests 
arriving at port 80, with URLs for hostname, to port 8101:

VirtualHost 138.251.206.181
ServerName mms.dcs.st-and.ac.uk
ServerAlias mms mms.dcs.st-andrews.ac.uk mms.dcs.st-and.ac.uk 
www.mms.dcs.st-and.ac.uk
Redirect /mms http://mms.dcs.st-and.ac.uk:8180/tags/
Redirect / http://mms.dcs.st-and.ac.uk:8180/tags/
/VirtualHost


I'm just wondering if anyone else uses these methods? Is proxying slower 
than using mod_jk, for example? Do people think its better to proxy (and 
therefore do things transparently) or redirect (should be faster)?

People have also mentioned that Apache is more stable and secure. Have 
their actually been any significant security issues with Tomcat (allowing 
JSP source to be seen I don't consider particularly significant, for 
example)?


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: 4th day offline, getting desperate, please help

2002-09-30 Thread Raj Saini

Remove the example context from you server.xml and delete the examples 
directory from you webapps. replace the index.html file with your own 
file in the ROOT context.

Raj
David Wynter wrote:
 Hi,
 
 With a standatrd install and the changes to setup my domain name plus an
 extra context for my rwsite webapp I get the following in
 roamware_log.2002-09-30.txt
 
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploying class repositories to
 work directory
 /var/jakarta-tomcat-4.1.12-LE-jdk14/work/Standalone/www.roamware.com/rwsite
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy class files
 /WEB-INF/classes to
 /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/classes
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/FTPProtocol.jar to
 /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/FTPProtocol.j
 ar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/activation-1.0.1.jar to
 /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/activation-1.
 0.1.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/ant-optional.jar to
 /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/ant-optional.
 jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/caucho-jdbc-mysql-2.1.0.jar to
 /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/caucho-jdbc-m
 ysql-2.1.0.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/ecs-1.4.1.jar to
 /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/ecs-1.4.1.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/extended-security.jar to
 /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/extended-secu
 rity.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR /WEB-INF/lib/hsql.jar
 to /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/hsql.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/httpunit.jar to
 /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/httpunit.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR /WEB-INF/lib/idb.jar
 to /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/idb.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/j2eeunit-23-0.9.jar to
 /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/j2eeunit-23-0
 .9.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/j2eeunit-ant-0.9.jar to
 /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/j2eeunit-ant-
 0.9.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/jakarta-regexp-1.3-dev.jar to
 /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/jakarta-regex
 p-1.3-dev.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/jdbc-se2.0.jar to
 /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/jdbc-se2.0.ja
 r
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/jdbc2_0-stdext.jar to
 /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/jdbc2_0-stdex
 t.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/jndi-1.2.1.jar to
 /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/jndi-1.2.1.ja
 r
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/jta1.0.1.jar to
 /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/jta1.0.1.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR /WEB-INF/lib/junit.jar
 to /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/junit.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/log4j-1.1.jar to
 /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/log4j-1.1.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/mail-1.2.jar to
 /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/mail-1.2.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/mm.mysql-2.0.14-bin.jar to
 /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/mm.mysql-2.0.
 14-bin.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR /WEB-INF/lib/oro.jar
 to /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/oro.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/postgresql.jar to
 /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/postgresql.ja
 r
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/turbine-2.1.jar to
 /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/turbine-2.1.j
 ar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/velocity-1.2-dev.jar to
 /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/velocity-1.2-
 dev.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/village-1.5.1.jar to
 /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/village-1.5.1
 .jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: 

RE: New Release JK 1.2.0 not installing

2002-09-30 Thread Turner, John


Sorry, I am out of ideas.  I don't see that behavior on my Redhat servers at
all.

John


 -Original Message-
 From: David Wynter [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 27, 2002 6:51 PM
 To: Tomcat Users List
 Subject: RE: New Release JK 1.2.0 not installing
 
 
 I tried adding a new Host section into the standard 
 server.xml file. It had
 name=www.roamware.com but was otherwise identical to the standard
 localhost Host entry. Within that Host section was one 
 Context section with
 the path=/rwsite. This follows instructions in the standard 
 install and
 yet I get connection refused when I hit the site and a 
 Connection refused
 exception when I shutdown Tomcat. It seems straightforward 
 according to the
 documents but does not work
 
 Ideas?
 
 David
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: How many people are using 4.1.12 successfully?

2002-09-30 Thread Turner, John


Thanks, but I have to be a little more cautious than that.  While I'm sure
lots of people don't read the release notes, the idea that so many people
would be surprised by behavior changes in the newest version makes me think
there are probably other issues yet to be uncovered.  It also makes me
wonder about the whole voting process when determining if something is a
release.  What was the time period between .10 and .12?  Three weeks?  Which
vote shouldn't have happened, then?  The .10 or the .12?  What are the
odds we'll see a .13 or .14 next week, also termed release?

I'm not arguing or debating, just trying to illustrate how the traffic on
the list in the last couple of weeks might make someone a little wary of
using anything beyond 4.0.5 in a critical situation.  I would say the
majority of those of us in production situations do not have 100% management
buy-in on open source...it takes a huge effort to overcome the momentum that
traditional commercial software has, and any glitch, no matter how small,
can set that effort back quite a ways.

Most administrators don't have the luxury of doing server component upgrades
more than once or twice a month, either.  I know I'd have some questions to
answer if I had used my maintenance window to go with .10 only to have my
boss find out 2 weeks later that I should be running .12 because its the
latest (especially in a security-fix scenario), and the next maintenance
window is weeks away.

John

 -Original Message-
 From: Glenn Nielsen [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 27, 2002 9:19 PM
 To: Tomcat Users List
 Subject: Re: How many people are using 4.1.12 successfully?
 
 
 The discussion regarding Tomcat 4.1.12 was not related to its 
 stability.
 I have been using Tomcat 4.1.x in production for over 6 months
 (but still with Jasper1), and recently upgraded to Jasper 2.
 
 IMHO, Tomcat 4.1.x is a much better container for production 
 than 4.0.x.
 
 All of the issues raised were about some minor differences in 
 behaviour.
 Not about stability. Tomcat 4.1.x has been rock solid for me 
 in production
 on a site that heavily uses JSP pages and has 500k page 
 views per month.
 
 Install and test your app in Tomcat 4.1.12. Your app and 
 config may not
 even notice the difference, or at most there may be a couple of issues
 to resolve.
 
 And if you use JSP with custom tags Jasper2 can really 
 improve performance.
 
 Regards,
 
 Glenn
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: How many people are using 4.1.12 successfully?

2002-09-30 Thread Turner, John


 -Original Message-
 From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, September 28, 2002 10:12 AM
  
  And if you use JSP with custom tags Jasper2 can really 
 improve performance.
 
 Hopefully you'll put 4.1.x on your higher volume sites and/or 
 use it in 
 standalone mode so that we see how it behaves.
 

Yikes, that comment does not instill confidence.  I'll have to read up more
on the Apache-style development process...it was my understanding that that
sort of testing was done by the developers prior to voting on a release.
I'm no developer, but I can't imagine getting something to work on my
desktop and then saying ok, it's ready for release. 

Is there a document somewhere that describes the criteria used to determine
if something is ready for release?  Or something that describes the criteria
used to determine if someone should vote yay or nay in a release vote?
Or is it all just personal preference?

 Remy
 

John


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Start Apache/Jakarta-Tomcat as Non-root user

2002-09-30 Thread Turner, John


Tomcat can run on ports  1024 as any user you like.  You just have to make
sure that user has permissions to read and write to Tomcat's work area and
logging area, and any place you put your web applications.

If you want to run on ports  1024, you have to run as root (at least on
*nix variants), or put another service in front of Tomcat, such as Apache
or another web server.

John


 -Original Message-
 From: Lars Nielsen Lind [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, September 28, 2002 10:12 AM
 To: [EMAIL PROTECTED]
 Subject: Start Apache/Jakarta-Tomcat as Non-root user
 
 
 Hi.
 
 Are the some easy ways to start Apache / Jakarta-Tomcat as 
 Non-root user 
 - for instance with a  user created for the purpose?
 
 Are the any security risks (for instance access to root) to 
 be aware of?
 
 Best regards,
 
 Lars Nielsen Lind
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Need Help ASAP w. Tomcat install!

2002-09-30 Thread Turner, John


Delete the ; from JAVA_HOME.  It should read C:\j2sdk1.4.0 minus the ;.
Many people have pointed this out previously over the last couple of months.

John


 -Original Message-
 From: Steven Burrus [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 12:50 AM
 To: Tomcat Users List
 Subject: RE: Need Help ASAP w. Tomcat install!
 
 
  I am STILL having or encountering no success whatsoever in 
 getting Tomcat 4.1 up
 and running!!! Here is the whole error msg., in its' 
 entirety, in DOS when I
 tried/attempted to activate it:
 
 C:\Apache Group\Tomcat 4.1\binstartup
 The JAVA_HOME environment variable is not defined correct
 This environment variable is needed to run this program
 Using CATALINA_BASE:   ..
 Using CATALINA_HOME:   ..
 Using CATALINA_TMPDIR: ..\temp
 Using JAVA_HOME:   C:\j2sdk1.4.0;
 The system cannot find the file -Djava.endorsed.dirs=. 
 
 Now, what specifically is wrong with the particular way in 
 which I have set the
 JAVA_HOME environment variable anyway?? Can someone help me out?!
 **
 **

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




REPOST: error pages

2002-09-30 Thread Felipe Schnack

  I added these lines to my web.xml

  error-page
exception-typejava.lang.Exception/exception-type
location/ponto/error.jsp/location
  /error-page
 
  With this, any thrown exception should be redirected to
/ponto/error.jsp, right?
  Well, it seems that when an Servlet generates an exception it
doesn't... This is by design?

  Tomcat 4.0.4 in RH Linux 7.3

-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: HOW TO: How do I allocate memory in JVM for extra virtual hosts

2002-09-30 Thread Shapira, Yoav

Hi,

 Check out perc 3.3 at http://www.newmonics.com/info/gc.shtml, it has a
pretty decent GC performing much better than Sun's. Also IBM's JVM is
pretty
good too.

Please define performing much better ?

For our app benchmarks, JDK 1.4 GC was substantially better than PERC
3.3.  

I love how the PERC page still says generational garbage collection
like it's a big new thing.  Have you experimented with the train and
concurrent parallel GCs in JDK 1.4 and compared them (seriously compared
them, with hprof / another profiler and/or a heap analyzer)?

I am not aware of all the performance implications of
this, but it should be possible to create a Thread to
run on some interval you define which just infinitely
loops a call for garbage collection (gc() right?) then
goes back to sleep until next iteration.

System.gc() is a suggestion.  It doesn't guarantee GC will run.  You
don't want to do it anyways.  The JDK internally is better at detecting
when to run GC and what type of GC to do, on what segment.

Spend your time tuning the parameters, e.g. Xmx, Xms, XX:NewSize,
XX:MaxNewSize, min and max free percentages, etc.  Analyze the results
seriously, don't go for seat of the pants, this seems better testing.

FYI, we have several large (1G heaps) JVMs.  We have run into long GCes
in the past, until we just set aside several weeks to researching and
tuning the GC.  The results were excellent.  As mentioned above, it was
then that we experimented with alternative JDKs, including IBM, PERK,
jRockit, and others.  

At least then you can control how often garbage
collection happens, and I suppose it is possible that

No you don't control it.  It's only a suggestion.  In fact, JDK 1.4
supports a switch that says to completely ignore System.gc() calls, so
if you server admin uses this switch System.gc() does nothing.

To get started, see:
http://java.sun.com/docs/hotspot/gc/index.html
http://java.sun.com/docs/hotspot/VMOptions.html
http://wireless.java.sun.com/midp/articles/garbage/

Good luck,

Yoav Shapira
Millennium ChemInformatics


This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Turner, John


Did you install a firewall?  Did you change your network settings in any
way, shape or form?  Add a cable modem, DSL router, or other network
hardware?  Do you have some sort of virus filter running on port 80?  Are
you sure Apache even starts?  Apache works out of the box in a default
install...there could be any number of other reasons why it doesn't serve
pages, none of them related to the Apache config file.

John

-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 7:05 AM
To: [EMAIL PROTECTED]
Subject: (OT) Cannot see Localhost on Apache


Hello,

Sorry for the off topic manner of this email but I am having trouble with my
Apache server and was wondering if anyone on this list can help me?

For about a year I had Apache 1.3.20 set-up on my Windows 98SE machine
running PHP 4.1.1 (and Coldfusion) on it with no problems. I would type
http://localhost/ (or http://127.0.0.1/)  in my browser and be able to see
the directories with all my files in them and edit them accordingly.

However, last week I started up Apache and opened a browser and typed
Localhost but nothing happened! All I would get would be a white blank
screen and if I typed in the address of a specific file within the directory
I would get a Pager cannot be displayed error.

I tested this in IE, Netscape and Mozilla (along with clearing the cache in
each browser) and all of them were the same.

I decided to uninstall Apache 1.3.20 and upgrade to 1.3.26 figuring that if
I started with a newer version of Apache the problem would be eradicated and
I  would have a more up-to-date version of the server.

This I have done, but still I cannot gain access to any of my files and
still it gives me a blank white screen if I type Localhost and a Page
cannot be displayed error message if I try and navigate to a specific file
within the directory.

I have scanned the Apache web site, trawled through the newsgroups, studied
my config file indepth, but cannot see where the problem lies.

Could someone please take a look at my config file and try to see why this
is happening because as far as I can tell everything is fine and I haven't
changed anything since the last time it worked OK?

Please disregard the fact that I haven't loaded the PHP modules yet (and
Coldfusion as well) as I will do this after I have managed to sort out the
Localhost problem.

Your help would be very much appreciated.


Regards,


Geoff Khan B.Sc (Hons)
www.shining-path.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Kajen, Michael

HI,
See if you can ping localhost. Maybe something happened to your dns
settings.
mk

-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 7:05 AM
To: [EMAIL PROTECTED]
Subject: (OT) Cannot see Localhost on Apache


Hello,
 
Sorry for the off topic manner of this email but I am having trouble with my
Apache server and was wondering if anyone on this list can help me?
 
For about a year I had Apache 1.3.20 set-up on my Windows 98SE machine
running PHP 4.1.1 (and Coldfusion) on it with no problems. I would type
http://localhost/ http://localhost/  (or http://127.0.0.1/
http://127.0.0.1/ )  in my browser and be able to see the directories with
all my files in them and edit them accordingly.
 
However, last week I started up Apache and opened a browser and typed
Localhost but nothing happened! All I would get would be a white blank
screen and if I typed in the address of a specific file within the directory
I would get a Pager cannot be displayed error.
 
I tested this in IE, Netscape and Mozilla (along with clearing the cache in
each browser) and all of them were the same.
 
I decided to uninstall Apache 1.3.20 and upgrade to 1.3.26 figuring that if
I started with a newer version of Apache the problem would be eradicated and
I  would have a more up-to-date version of the server.
 
This I have done, but still I cannot gain access to any of my files and
still it gives me a blank white screen if I type Localhost and a Page
cannot be displayed error message if I try and navigate to a specific file
within the directory.
 
I have scanned the Apache web site, trawled through the newsgroups, studied
my config file indepth, but cannot see where the problem lies.
 

Could someone please take a look at my config file and try to see why this
is happening because as far as I can tell everything is fine and I haven't
changed anything since the last time it worked OK?
 
Please disregard the fact that I haven't loaded the PHP modules yet (and
Coldfusion as well) as I will do this after I have managed to sort out the
Localhost problem.
 
Your help would be very much appreciated.
 
 
Regards,
 
 
Geoff Khan B.Sc (Hons)
 http://www.shining-path.com www.shining-path.com

 




RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Chris Thompson

Or, just a thought, have you checked whether it is listening on 8080 rather
than 80?

Chris

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 13:26
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache



Did you install a firewall?  Did you change your network settings in any
way, shape or form?  Add a cable modem, DSL router, or other network
hardware?  Do you have some sort of virus filter running on port 80?  Are
you sure Apache even starts?  Apache works out of the box in a default
install...there could be any number of other reasons why it doesn't serve
pages, none of them related to the Apache config file.

John

-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 7:05 AM
To: [EMAIL PROTECTED]
Subject: (OT) Cannot see Localhost on Apache


Hello,

Sorry for the off topic manner of this email but I am having trouble with my
Apache server and was wondering if anyone on this list can help me?

For about a year I had Apache 1.3.20 set-up on my Windows 98SE machine
running PHP 4.1.1 (and Coldfusion) on it with no problems. I would type
http://localhost/ (or http://127.0.0.1/)  in my browser and be able to see
the directories with all my files in them and edit them accordingly.

However, last week I started up Apache and opened a browser and typed
Localhost but nothing happened! All I would get would be a white blank
screen and if I typed in the address of a specific file within the directory
I would get a Pager cannot be displayed error.

I tested this in IE, Netscape and Mozilla (along with clearing the cache in
each browser) and all of them were the same.

I decided to uninstall Apache 1.3.20 and upgrade to 1.3.26 figuring that if
I started with a newer version of Apache the problem would be eradicated and
I  would have a more up-to-date version of the server.

This I have done, but still I cannot gain access to any of my files and
still it gives me a blank white screen if I type Localhost and a Page
cannot be displayed error message if I try and navigate to a specific file
within the directory.

I have scanned the Apache web site, trawled through the newsgroups, studied
my config file indepth, but cannot see where the problem lies.

Could someone please take a look at my config file and try to see why this
is happening because as far as I can tell everything is fine and I haven't
changed anything since the last time it worked OK?

Please disregard the fact that I haven't loaded the PHP modules yet (and
Coldfusion as well) as I will do this after I have managed to sort out the
Localhost problem.

Your help would be very much appreciated.


Regards,


Geoff Khan B.Sc (Hons)
www.shining-path.com

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Best Practices Question

2002-09-30 Thread Turner, John


This has been discussed quite a bit.  I can think of dozens of reasons to
use Apache, not one of them related to serving simple HTTP/1.1 static
content, which is pretty much all that the HTTP connector on Tomcat does.

Tomcat cannot do it all.

Think outside of the box.

John


 -Original Message-
 From: V. Cekvenich [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, September 29, 2002 8:32 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Best Practices Question
 
 
 I think there is no reason to use Apache.
 Tomcat can do it all and it is simpler this way.
 
 Plus Tomcat can do JSPs, etc.
 
 V.
 
 Barry Moore wrote:
  I have not used Tomacat in a couple years. The last
  time I used it, our companies policy was to integrate
  with Apache and get Apache to do the serving duties
  and just use Tomcat as the jsp processor.
  
  With Tomact 4 is this still considered a good practice
  for high traffic sites?
  
  Thanks,
  Barry
  
  __
  Do you Yahoo!?
  New DSL Internet Access from SBC  Yahoo!
  http://sbc.yahoo.com
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Best Practices Question

2002-09-30 Thread Turner, John



 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, September 29, 2002 9:40 PM


... snip...

 Valid reasons to need it include:
 
 * Tomcat standalone is not fast enough (note that this is different
   from a rule saying select the fastest possible solution -- that
   turns out not to be a requirement in every scenario).
 
 * You need the extra features that Apache provides (such as 
 integration
   with existing modules).
 
 * You need to run on port 80 in an environment that requires root
   for this.
 
 * You already know how to configure it, so there's no extra
   learning curve.
 

I would include load-balancing as well (multiple Tomcats, one or more
Apaches).

 Blindly installing Apache+Tomcat because that's the thing to do is a
 waste of effort in many scenarios.

Agreed.  

 
 Craig
 

John


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: How to deploy servlets in Tomcat?

2002-09-30 Thread Jacob Kjome

See comments inline...

At 05:35 PM 9/29/2002 -0700, you wrote:
Hi Jacob and thanks for your response.

I tried your suggestion regarding servlet mapping and it helped - I can 
now execute servlets in the default package but I get the same message 
when try to access a servlet that is not in the default packageoh
yes Tomcat is shutdown while I deploy my servlets..

for servlets in packages, access them with the fully qualified package name 
such as:

http://localhost:8080/mycontext/servlet/com.mycompany.myapp.MyServlet


As to a your point about buying some books etc.,...I will be the first to 
agree with you that I don't know everything about Tomcat, but I want to 
point out that I have spent a lot of time reading about servlets and 
Tomcat from a vareity of sources.  Some books I have read include Jason 
Hunter's Java Servlets (unfortunately, the first edition), James 
Goodwill's Apache Jakarta-Tomcat from Apress (very recent),  David Harms, 
JSP, Servlets, and MySQL, and Marty  Hall's Servlets and JavaServer 
Pages.  So please be assured this is not a case of just firing off a 
question to the list without doing some research first.

That's good.  Although, make sure you read the basics about deployment 
descriptors and you probably want to download the servlet spec pdf file 
from the java.sun.com site for reference.

I agree with you that this is pretty basic stuff - and the books I 
mentioned seem to outline it pretty well, but all the examples deploy
to webapps/ROOT which is not what I am trying to do.  Even so, this is 
pretty straight forward stuff  which is why it surprises and frustrates me 
when something so simple becomes a road block.  So I posted my question in 
hopes that someone would point out what I was doing wrong.

It is all the same anyway.  Whether you go from the root of the web or a 
named context on directory off the root, it is all the same.


Lastly, do you know the in which version the default invoker was changed, 
because I don't recall having to change conf/web.xml before.

Tomcat-4.0.5 and Tomcat-4.1.12 have the security fix applied.


Again, thanks for your help,
Mike



Jacob Kjome wrote:


The default servlet invoker was disabled by default for security reasons 
which is why you are getting a 404 error.  It can be re-enabled by 
uncommenting the mapping for the url pattern /servlet/* in 
$TOMCAT_HOME/conf/web.xml.  You will need to restart Tomcat after doing this.

!--
 servlet-mapping
 servlet-nameinvoker/servlet-name
 url-pattern/servlet/*/url-pattern
 /servlet-mapping
--

Also, when you talk about the steps you go through to deploy the servlet, 
Tomcat isn't currently running, is it?  The problem of Tomat running 
while you are doing these steps is that Tomcat auto-deploys webapps upon 
seeing a new directory or .war file in the webapps directory.  If you 
create a directory and then add all the other stuff underneath that, 
Tomcat will have attempted the deploy before everything is in place.  You 
should build the directory structure and then copy the whole finished 
thing to the webapps directory if you want to deploy stuff like that.

As far as needing a web.xml file, this is pretty basic stuff.  Yes, you 
do. You really should buy a servlet book like Jason Hunter's Java Servlet 
Programming, 2nd edition.  Also, you can read the servlet spec on Sun's 
site.  It is apparent that you are attempting to use Tomcat without 
knowing what it is all about in the first place.  Taking a day to read up 
on servlets and then moving forward with Tomcat will be of immense 
benefit to you and remove a lot of frustration from the whole process.

Jake

At 09:53 AM 9/29/2002 -0700, you wrote:

Hi All,

I would really appreciate some help this... I am on an NT box with 
Tomcat 4.1.12.  My problem is that I am having trouble deploying 
servlets in Tomcat. Worse, I seem to go through this each time I upgrade 
to a new version of Tomcat.  Friday night I upgraded to version 4.1.12. 
Each time I upgrade I have problems getting simple servlets to execute - 
after a couple of hours of monkeying around my servlets suddenly ststart 
working.  I think I'm repeating the same steps over and over so I don't 
understand what I'm doing wrong and what I did right to make things 
work.  Which is frustrating because it means I'm not learning from the 
process. Please note, I can get the Tomcat servlet examples to execute 
so I'm pretty confident I have a good installation.  If I copy one of 
the examples, say HelloWorldExample to one of my directories it no 
longer works.

Here are the steps I am following to deploy a simple Hello World servlet::

1)  In webapps I create a directory named hello.
2)  In hello  I create the WEB-INF directory.
3)  Inside the WEB-INF directory I place web.xml.   (I'm not sure I 
need to do this...)
4)  I also add classes and lib directories under WEB-INF.
5)  Under classes I create a directory name hello.
6)  In hello  I place the my servlet 

RE: Best Practices Question

2002-09-30 Thread Stephen . Thompson

What about SSL, is it better/more efficient to allow apache to handle the
SSL or to drop apache and allow tomcat to do it all?


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 13:39
To: 'Tomcat Users List'
Subject: RE: Best Practices Question




 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, September 29, 2002 9:40 PM


... snip...

 Valid reasons to need it include:
 
 * Tomcat standalone is not fast enough (note that this is different
   from a rule saying select the fastest possible solution -- that
   turns out not to be a requirement in every scenario).
 
 * You need the extra features that Apache provides (such as 
 integration
   with existing modules).
 
 * You need to run on port 80 in an environment that requires root
   for this.
 
 * You already know how to configure it, so there's no extra
   learning curve.
 

I would include load-balancing as well (multiple Tomcats, one or more
Apaches).

 Blindly installing Apache+Tomcat because that's the thing to do is a
 waste of effort in many scenarios.

Agreed.  

 
 Craig
 

John


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


---

Copyright material and/or confidential and/or privileged information may be contained 
in this e-mail and any attached documents.  The material and information is intended 
for the use of the intended addressee only.  If you are not the intended addressee, or 
the person responsible for delivering it to the intended addressee, you may not copy, 
disclose, distribute, disseminate or deliver it to anyone else or use it in any 
unauthorised manner or take or omit to take any action in reliance on it. To do so is 
prohibited and may be unlawful.   The views expressed in this e-mail may not be 
official policy but the personal views of the originator.  If you receive this e-mail 
in error, please advise the sender immediately by using the reply facility in your 
e-mail software, or contact [EMAIL PROTECTED]  Please also delete this e-mail and 
all documents attached immediately.  
Many thanks for your co-operation.

BMW Financial Services (GB) Limited is registered in England and Wales under company 
number 01288537.
Registered Offices : Europa House, Bartley Way, Hook, Hants, RG27 9UF
--

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: webapp.so building problem -- apxs unworkable

2002-09-30 Thread Thad Humphries

I found that I had to upgrade my automake (1.7) and autoconf (2.54) to
the latest versions in order to build the new connectors.  Check
http://www.gnu.org/ for the latest versions.

On Thu, 2002-09-26 at 18:40, haixi liu wrote:
 Hello,
 
 I am having this problem when trying to build webapp.so for my tomcat4.1.12 
 to work with apache 1.3.26.
 
 I downloaded connector package at
 
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/src/jakarta-tomcat-connectors-4.1.12-src.tar.gz
 
 After untar the file, I went into the webapp directory.
 
 ./support/buildconf.sh executed fine.
 
 When I tried: ./configure --with-apxs=/usr/local/apache/bin/apxs
 I got the following:
 
 ==
 Configuring WebApp Module
 + checking build system type... i686-pc-linux-gnu
 + checking host system type... i686-pc-linux-gnu
 + checking for sources directory path... /home/gims/files/webapp
 + checking for build directory path... /home/gims/files/webapp
 
 Checking Apache APXS
 + checking for apxs name... /usr/local/apache/bin/apxs
 + checking for apxs directory path... /usr/local/apache/bin
 + checking for apxs... /usr/local/apache/bin/apxs
 + checking for apxs availability... /usr/local/apache/bin/apxs
 + checking for apxs version... /usr/local/apache/bin/apxs (1.3)
 + checking for apxs sanity... error
 configure: error: apxs is unworkable
 
 
 I could not figure out what's going on. Could any of you help me on this? My 
 system is RH 7.3.
 
 Thanks a lot
 
 Haixi
 
 _
 MSN Photos is the easiest way to share and print your photos: 
 http://photos.msn.com/support/worldwide.aspx
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
-- 

Thad Humphries  ...no religious test shall ever be required
Web Development Manager  as a qualification to any office or public
Phone: 540/675-3015, x225trust under the United States. -Article VI


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Geoffrey Khan

John,

I have Zone Alarm installed on my PC and it worked fine with Apache for
a long time and I haven't changed any of the settings in this to prevent
Apache from working. I've tried shutting down Zone Alarm, starting
Apache and going to Localhost but still get a blank, white screen. 

I haven't changed any network settings in any shape or form or added any
kind of hardware.

I know Apache starts because I have a console window running saying
Apache 1.3.26 running whenever I start it up (and it shows up in the
Task Manager list when I do start it).

Geoff


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: 30 September 2002 13:26
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache



Did you install a firewall?  Did you change your network settings in any
way, shape or form?  Add a cable modem, DSL router, or other network
hardware?  Do you have some sort of virus filter running on port 80?
Are you sure Apache even starts?  Apache works out of the box in a
default install...there could be any number of other reasons why it
doesn't serve pages, none of them related to the Apache config file.

John

-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 7:05 AM
To: [EMAIL PROTECTED]
Subject: (OT) Cannot see Localhost on Apache


Hello,

Sorry for the off topic manner of this email but I am having trouble
with my Apache server and was wondering if anyone on this list can help
me?

For about a year I had Apache 1.3.20 set-up on my Windows 98SE machine
running PHP 4.1.1 (and Coldfusion) on it with no problems. I would type
http://localhost/ (or http://127.0.0.1/)  in my browser and be able to
see the directories with all my files in them and edit them accordingly.

However, last week I started up Apache and opened a browser and typed
Localhost but nothing happened! All I would get would be a white blank
screen and if I typed in the address of a specific file within the
directory I would get a Pager cannot be displayed error.

I tested this in IE, Netscape and Mozilla (along with clearing the cache
in each browser) and all of them were the same.

I decided to uninstall Apache 1.3.20 and upgrade to 1.3.26 figuring that
if I started with a newer version of Apache the problem would be
eradicated and I  would have a more up-to-date version of the server.

This I have done, but still I cannot gain access to any of my files and
still it gives me a blank white screen if I type Localhost and a Page
cannot be displayed error message if I try and navigate to a specific
file within the directory.

I have scanned the Apache web site, trawled through the newsgroups,
studied my config file indepth, but cannot see where the problem lies.

Could someone please take a look at my config file and try to see why
this is happening because as far as I can tell everything is fine and I
haven't changed anything since the last time it worked OK?

Please disregard the fact that I haven't loaded the PHP modules yet (and
Coldfusion as well) as I will do this after I have managed to sort out
the Localhost problem.

Your help would be very much appreciated.


Regards,


Geoff Khan B.Sc (Hons)
www.shining-path.com

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Geoffrey Khan

Michael,

I pinged Localhost and got the message:

Reply from 127.0.0.1: bytes=32 time10ms TTL64

I presume from this all is fine, as I have a reply?


Geoff

-Original Message-
From: Kajen, Michael [mailto:[EMAIL PROTECTED]] 
Sent: 30 September 2002 13:31
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache


HI,
See if you can ping localhost. Maybe something happened to your dns
settings. mk

-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 7:05 AM
To: [EMAIL PROTECTED]
Subject: (OT) Cannot see Localhost on Apache


Hello,
 
Sorry for the off topic manner of this email but I am having trouble
with my Apache server and was wondering if anyone on this list can help
me?
 
For about a year I had Apache 1.3.20 set-up on my Windows 98SE machine
running PHP 4.1.1 (and Coldfusion) on it with no problems. I would type
http://localhost/ http://localhost/  (or http://127.0.0.1/
http://127.0.0.1/ )  in my browser and be able to see the directories
with all my files in them and edit them accordingly.
 
However, last week I started up Apache and opened a browser and typed
Localhost but nothing happened! All I would get would be a white blank
screen and if I typed in the address of a specific file within the
directory I would get a Pager cannot be displayed error.
 
I tested this in IE, Netscape and Mozilla (along with clearing the cache
in each browser) and all of them were the same.
 
I decided to uninstall Apache 1.3.20 and upgrade to 1.3.26 figuring that
if I started with a newer version of Apache the problem would be
eradicated and I  would have a more up-to-date version of the server.
 
This I have done, but still I cannot gain access to any of my files and
still it gives me a blank white screen if I type Localhost and a Page
cannot be displayed error message if I try and navigate to a specific
file within the directory.
 
I have scanned the Apache web site, trawled through the newsgroups,
studied my config file indepth, but cannot see where the problem lies.
 

Could someone please take a look at my config file and try to see why
this is happening because as far as I can tell everything is fine and I
haven't changed anything since the last time it worked OK?
 
Please disregard the fact that I haven't loaded the PHP modules yet (and
Coldfusion as well) as I will do this after I have managed to sort out
the Localhost problem.
 
Your help would be very much appreciated.
 
 
Regards,
 
 
Geoff Khan B.Sc (Hons)
 http://www.shining-path.com www.shining-path.com

 


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Raj Saini

Try there two things on DOS prompt of your PC.

ping localhost

ping 127.0.0.1

If you receive the ping response, it means you have your network 
installed properly. If you can not see the ping respone there must be 
some thing wrong with your network settings.

You can also have a look on the apache error logs. See if you apache is 
accepting the browser request.

Raj

Geoffrey Khan wrote:
 John,
 
 I have Zone Alarm installed on my PC and it worked fine with Apache for
 a long time and I haven't changed any of the settings in this to prevent
 Apache from working. I've tried shutting down Zone Alarm, starting
 Apache and going to Localhost but still get a blank, white screen. 
 
 I haven't changed any network settings in any shape or form or added any
 kind of hardware.
 
 I know Apache starts because I have a console window running saying
 Apache 1.3.26 running whenever I start it up (and it shows up in the
 Task Manager list when I do start it).
 
 Geoff
 
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]] 
 Sent: 30 September 2002 13:26
 To: 'Tomcat Users List'
 Subject: RE: (OT) Cannot see Localhost on Apache
 
 
 
 Did you install a firewall?  Did you change your network settings in any
 way, shape or form?  Add a cable modem, DSL router, or other network
 hardware?  Do you have some sort of virus filter running on port 80?
 Are you sure Apache even starts?  Apache works out of the box in a
 default install...there could be any number of other reasons why it
 doesn't serve pages, none of them related to the Apache config file.
 
 John
 
 -Original Message-
 From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 7:05 AM
 To: [EMAIL PROTECTED]
 Subject: (OT) Cannot see Localhost on Apache
 
 
 Hello,
 
 Sorry for the off topic manner of this email but I am having trouble
 with my Apache server and was wondering if anyone on this list can help
 me?
 
 For about a year I had Apache 1.3.20 set-up on my Windows 98SE machine
 running PHP 4.1.1 (and Coldfusion) on it with no problems. I would type
 http://localhost/ (or http://127.0.0.1/)  in my browser and be able to
 see the directories with all my files in them and edit them accordingly.
 
 However, last week I started up Apache and opened a browser and typed
 Localhost but nothing happened! All I would get would be a white blank
 screen and if I typed in the address of a specific file within the
 directory I would get a Pager cannot be displayed error.
 
 I tested this in IE, Netscape and Mozilla (along with clearing the cache
 in each browser) and all of them were the same.
 
 I decided to uninstall Apache 1.3.20 and upgrade to 1.3.26 figuring that
 if I started with a newer version of Apache the problem would be
 eradicated and I  would have a more up-to-date version of the server.
 
 This I have done, but still I cannot gain access to any of my files and
 still it gives me a blank white screen if I type Localhost and a Page
 cannot be displayed error message if I try and navigate to a specific
 file within the directory.
 
 I have scanned the Apache web site, trawled through the newsgroups,
 studied my config file indepth, but cannot see where the problem lies.
 
 Could someone please take a look at my config file and try to see why
 this is happening because as far as I can tell everything is fine and I
 haven't changed anything since the last time it worked OK?
 
 Please disregard the fact that I haven't loaded the PHP modules yet (and
 Coldfusion as well) as I will do this after I have managed to sort out
 the Localhost problem.
 
 Your help would be very much appreciated.
 
 
 Regards,
 
 
 Geoff Khan B.Sc (Hons)
 www.shining-path.com
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Geoffrey Khan

How do I check this? 

In my config file Apache is set to listen on Port 80.

-Original Message-
From: Chris Thompson [mailto:[EMAIL PROTECTED]] 
Sent: 30 September 2002 13:32
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache


Or, just a thought, have you checked whether it is listening on 8080
rather than 80?

Chris

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 13:26
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache



Did you install a firewall?  Did you change your network settings in any
way, shape or form?  Add a cable modem, DSL router, or other network
hardware?  Do you have some sort of virus filter running on port 80?
Are you sure Apache even starts?  Apache works out of the box in a
default install...there could be any number of other reasons why it
doesn't serve pages, none of them related to the Apache config file.

John

-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 7:05 AM
To: [EMAIL PROTECTED]
Subject: (OT) Cannot see Localhost on Apache


Hello,

Sorry for the off topic manner of this email but I am having trouble
with my Apache server and was wondering if anyone on this list can help
me?

For about a year I had Apache 1.3.20 set-up on my Windows 98SE machine
running PHP 4.1.1 (and Coldfusion) on it with no problems. I would type
http://localhost/ (or http://127.0.0.1/)  in my browser and be able to
see the directories with all my files in them and edit them accordingly.

However, last week I started up Apache and opened a browser and typed
Localhost but nothing happened! All I would get would be a white blank
screen and if I typed in the address of a specific file within the
directory I would get a Pager cannot be displayed error.

I tested this in IE, Netscape and Mozilla (along with clearing the cache
in each browser) and all of them were the same.

I decided to uninstall Apache 1.3.20 and upgrade to 1.3.26 figuring that
if I started with a newer version of Apache the problem would be
eradicated and I  would have a more up-to-date version of the server.

This I have done, but still I cannot gain access to any of my files and
still it gives me a blank white screen if I type Localhost and a Page
cannot be displayed error message if I try and navigate to a specific
file within the directory.

I have scanned the Apache web site, trawled through the newsgroups,
studied my config file indepth, but cannot see where the problem lies.

Could someone please take a look at my config file and try to see why
this is happening because as far as I can tell everything is fine and I
haven't changed anything since the last time it worked OK?

Please disregard the fact that I haven't loaded the PHP modules yet (and
Coldfusion as well) as I will do this after I have managed to sort out
the Localhost problem.

Your help would be very much appreciated.


Regards,


Geoff Khan B.Sc (Hons)
www.shining-path.com

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Raj Saini

Try telnetting to your apache server and open the access log and error 
log and watch the message there.

telnet 127.0.0.1 80

If telnet connects to your server send a a get request

get index.html

you may not see the echo of your charachters on the console. But the 
apache should output some stuff.

If you see thsi working, there is problem with your browser. Check your 
browser proxy settings.


Raj

Geoffrey Khan wrote:
 Michael,
 
 I pinged Localhost and got the message:
 
 Reply from 127.0.0.1: bytes=32 time10ms TTL64
 
 I presume from this all is fine, as I have a reply?
 
 
 Geoff
 
 -Original Message-
 From: Kajen, Michael [mailto:[EMAIL PROTECTED]] 
 Sent: 30 September 2002 13:31
 To: 'Tomcat Users List'
 Subject: RE: (OT) Cannot see Localhost on Apache
 
 
 HI,
 See if you can ping localhost. Maybe something happened to your dns
 settings. mk
 
 -Original Message-
 From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 7:05 AM
 To: [EMAIL PROTECTED]
 Subject: (OT) Cannot see Localhost on Apache
 
 
 Hello,
  
 Sorry for the off topic manner of this email but I am having trouble
 with my Apache server and was wondering if anyone on this list can help
 me?
  
 For about a year I had Apache 1.3.20 set-up on my Windows 98SE machine
 running PHP 4.1.1 (and Coldfusion) on it with no problems. I would type
 http://localhost/ http://localhost/  (or http://127.0.0.1/
 http://127.0.0.1/ )  in my browser and be able to see the directories
 with all my files in them and edit them accordingly.
  
 However, last week I started up Apache and opened a browser and typed
 Localhost but nothing happened! All I would get would be a white blank
 screen and if I typed in the address of a specific file within the
 directory I would get a Pager cannot be displayed error.
  
 I tested this in IE, Netscape and Mozilla (along with clearing the cache
 in each browser) and all of them were the same.
  
 I decided to uninstall Apache 1.3.20 and upgrade to 1.3.26 figuring that
 if I started with a newer version of Apache the problem would be
 eradicated and I  would have a more up-to-date version of the server.
  
 This I have done, but still I cannot gain access to any of my files and
 still it gives me a blank white screen if I type Localhost and a Page
 cannot be displayed error message if I try and navigate to a specific
 file within the directory.
  
 I have scanned the Apache web site, trawled through the newsgroups,
 studied my config file indepth, but cannot see where the problem lies.
  
 
 Could someone please take a look at my config file and try to see why
 this is happening because as far as I can tell everything is fine and I
 haven't changed anything since the last time it worked OK?
  
 Please disregard the fact that I haven't loaded the PHP modules yet (and
 Coldfusion as well) as I will do this after I have managed to sort out
 the Localhost problem.
  
 Your help would be very much appreciated.
  
  
 Regards,
  
  
 Geoff Khan B.Sc (Hons)
  http://www.shining-path.com www.shining-path.com
 
  
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Turner, John


Yes, but ping uses ICMP, which is not an accurate indicator of the
availability of higher level traffic such as HTTP on port 80.

John


 -Original Message-
 From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 8:54 AM
 To: 'Tomcat Users List'
 Subject: RE: (OT) Cannot see Localhost on Apache
 
 
 Michael,
 
 I pinged Localhost and got the message:
 
 Reply from 127.0.0.1: bytes=32 time10ms TTL64
 
 I presume from this all is fine, as I have a reply?
 
 
 Geoff
 
 -Original Message-
 From: Kajen, Michael [mailto:[EMAIL PROTECTED]] 
 Sent: 30 September 2002 13:31
 To: 'Tomcat Users List'
 Subject: RE: (OT) Cannot see Localhost on Apache
 
 
 HI,
 See if you can ping localhost. Maybe something happened to your dns
 settings. mk
 
 -Original Message-
 From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 7:05 AM
 To: [EMAIL PROTECTED]
 Subject: (OT) Cannot see Localhost on Apache
 
 
 Hello,
  
 Sorry for the off topic manner of this email but I am having trouble
 with my Apache server and was wondering if anyone on this 
 list can help
 me?
  
 For about a year I had Apache 1.3.20 set-up on my Windows 98SE machine
 running PHP 4.1.1 (and Coldfusion) on it with no problems. I 
 would type
 http://localhost/ http://localhost/  (or http://127.0.0.1/
 http://127.0.0.1/ )  in my browser and be able to see the 
 directories
 with all my files in them and edit them accordingly.
  
 However, last week I started up Apache and opened a browser and typed
 Localhost but nothing happened! All I would get would be a white blank
 screen and if I typed in the address of a specific file within the
 directory I would get a Pager cannot be displayed error.
  
 I tested this in IE, Netscape and Mozilla (along with 
 clearing the cache
 in each browser) and all of them were the same.
  
 I decided to uninstall Apache 1.3.20 and upgrade to 1.3.26 
 figuring that
 if I started with a newer version of Apache the problem would be
 eradicated and I  would have a more up-to-date version of the server.
  
 This I have done, but still I cannot gain access to any of my 
 files and
 still it gives me a blank white screen if I type Localhost and a Page
 cannot be displayed error message if I try and navigate to a specific
 file within the directory.
  
 I have scanned the Apache web site, trawled through the newsgroups,
 studied my config file indepth, but cannot see where the problem lies.
  
 
 Could someone please take a look at my config file and try to see why
 this is happening because as far as I can tell everything is 
 fine and I
 haven't changed anything since the last time it worked OK?
  
 Please disregard the fact that I haven't loaded the PHP 
 modules yet (and
 Coldfusion as well) as I will do this after I have managed to sort out
 the Localhost problem.
  
 Your help would be very much appreciated.
  
  
 Regards,
  
  
 Geoff Khan B.Sc (Hons)
  http://www.shining-path.com www.shining-path.com
 
  
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Turner, John


Can you change your httpd.conf to port 81, then restart Apache, and then try
http://localhost:81?

John


 -Original Message-
 From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 8:45 AM
 To: 'Tomcat Users List'
 Subject: RE: (OT) Cannot see Localhost on Apache
 
 
 John,
 
 I have Zone Alarm installed on my PC and it worked fine with 
 Apache for
 a long time and I haven't changed any of the settings in this 
 to prevent
 Apache from working. I've tried shutting down Zone Alarm, starting
 Apache and going to Localhost but still get a blank, white screen. 
 
 I haven't changed any network settings in any shape or form 
 or added any
 kind of hardware.
 
 I know Apache starts because I have a console window running saying
 Apache 1.3.26 running whenever I start it up (and it shows up in the
 Task Manager list when I do start it).
 
 Geoff
 
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]] 
 Sent: 30 September 2002 13:26
 To: 'Tomcat Users List'
 Subject: RE: (OT) Cannot see Localhost on Apache
 
 
 
 Did you install a firewall?  Did you change your network 
 settings in any
 way, shape or form?  Add a cable modem, DSL router, or other network
 hardware?  Do you have some sort of virus filter running on port 80?
 Are you sure Apache even starts?  Apache works out of the box in a
 default install...there could be any number of other reasons why it
 doesn't serve pages, none of them related to the Apache config file.
 
 John
 
 -Original Message-
 From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 7:05 AM
 To: [EMAIL PROTECTED]
 Subject: (OT) Cannot see Localhost on Apache
 
 
 Hello,
 
 Sorry for the off topic manner of this email but I am having trouble
 with my Apache server and was wondering if anyone on this 
 list can help
 me?
 
 For about a year I had Apache 1.3.20 set-up on my Windows 98SE machine
 running PHP 4.1.1 (and Coldfusion) on it with no problems. I 
 would type
 http://localhost/ (or http://127.0.0.1/)  in my browser and be able to
 see the directories with all my files in them and edit them 
 accordingly.
 
 However, last week I started up Apache and opened a browser and typed
 Localhost but nothing happened! All I would get would be a white blank
 screen and if I typed in the address of a specific file within the
 directory I would get a Pager cannot be displayed error.
 
 I tested this in IE, Netscape and Mozilla (along with 
 clearing the cache
 in each browser) and all of them were the same.
 
 I decided to uninstall Apache 1.3.20 and upgrade to 1.3.26 
 figuring that
 if I started with a newer version of Apache the problem would be
 eradicated and I  would have a more up-to-date version of the server.
 
 This I have done, but still I cannot gain access to any of my 
 files and
 still it gives me a blank white screen if I type Localhost and a Page
 cannot be displayed error message if I try and navigate to a specific
 file within the directory.
 
 I have scanned the Apache web site, trawled through the newsgroups,
 studied my config file indepth, but cannot see where the problem lies.
 
 Could someone please take a look at my config file and try to see why
 this is happening because as far as I can tell everything is 
 fine and I
 haven't changed anything since the last time it worked OK?
 
 Please disregard the fact that I haven't loaded the PHP 
 modules yet (and
 Coldfusion as well) as I will do this after I have managed to sort out
 the Localhost problem.
 
 Your help would be very much appreciated.
 
 
 Regards,
 
 
 Geoff Khan B.Sc (Hons)
 www.shining-path.com
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Geoffrey Khan

Raj,

I have pinged Localhost and 127.0.0.1 and have got responses.

However, I did notice that when I started to ping Localhost it began
with the message:

Pinging jk.mshome.net [127.0.0.1] with 32 bytes of data:

jk.mshome.net is/was what I called my site when first installing Apache
1.3.26 - it asks you what you want to call the server, etc when you
first install it. I have since changed it to shining-path.com in the
Apache config file.

Maybe this is a problem??

I have checked the Apache error log and there are no errors reported.


Geoff

-Original Message-
From: Raj Saini [mailto:[EMAIL PROTECTED]] 
Sent: 30 September 2002 13:54
To: Tomcat Users List
Subject: Re: (OT) Cannot see Localhost on Apache


Try there two things on DOS prompt of your PC.

ping localhost

ping 127.0.0.1

If you receive the ping response, it means you have your network 
installed properly. If you can not see the ping respone there must be 
some thing wrong with your network settings.

You can also have a look on the apache error logs. See if you apache is 
accepting the browser request.

Raj

Geoffrey Khan wrote:
 John,
 
 I have Zone Alarm installed on my PC and it worked fine with Apache 
 for a long time and I haven't changed any of the settings in this to 
 prevent Apache from working. I've tried shutting down Zone Alarm, 
 starting Apache and going to Localhost but still get a blank, white 
 screen.
 
 I haven't changed any network settings in any shape or form or added 
 any kind of hardware.
 
 I know Apache starts because I have a console window running saying 
 Apache 1.3.26 running whenever I start it up (and it shows up in the 
 Task Manager list when I do start it).
 
 Geoff
 
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: 30 September 2002 13:26
 To: 'Tomcat Users List'
 Subject: RE: (OT) Cannot see Localhost on Apache
 
 
 
 Did you install a firewall?  Did you change your network settings in 
 any way, shape or form?  Add a cable modem, DSL router, or other 
 network hardware?  Do you have some sort of virus filter running on 
 port 80? Are you sure Apache even starts?  Apache works out of the box

 in a default install...there could be any number of other reasons why 
 it doesn't serve pages, none of them related to the Apache config 
 file.
 
 John
 
 -Original Message-
 From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 7:05 AM
 To: [EMAIL PROTECTED]
 Subject: (OT) Cannot see Localhost on Apache
 
 
 Hello,
 
 Sorry for the off topic manner of this email but I am having trouble 
 with my Apache server and was wondering if anyone on this list can 
 help me?
 
 For about a year I had Apache 1.3.20 set-up on my Windows 98SE machine

 running PHP 4.1.1 (and Coldfusion) on it with no problems. I would 
 type http://localhost/ (or http://127.0.0.1/)  in my browser and be 
 able to see the directories with all my files in them and edit them 
 accordingly.
 
 However, last week I started up Apache and opened a browser and typed 
 Localhost but nothing happened! All I would get would be a white blank

 screen and if I typed in the address of a specific file within the 
 directory I would get a Pager cannot be displayed error.
 
 I tested this in IE, Netscape and Mozilla (along with clearing the 
 cache in each browser) and all of them were the same.
 
 I decided to uninstall Apache 1.3.20 and upgrade to 1.3.26 figuring 
 that if I started with a newer version of Apache the problem would be 
 eradicated and I  would have a more up-to-date version of the server.
 
 This I have done, but still I cannot gain access to any of my files 
 and still it gives me a blank white screen if I type Localhost and a 
 Page cannot be displayed error message if I try and navigate to a 
 specific file within the directory.
 
 I have scanned the Apache web site, trawled through the newsgroups, 
 studied my config file indepth, but cannot see where the problem lies.
 
 Could someone please take a look at my config file and try to see why 
 this is happening because as far as I can tell everything is fine and 
 I haven't changed anything since the last time it worked OK?
 
 Please disregard the fact that I haven't loaded the PHP modules yet 
 (and Coldfusion as well) as I will do this after I have managed to 
 sort out the Localhost problem.
 
 Your help would be very much appreciated.
 
 
 Regards,
 
 
 Geoff Khan B.Sc (Hons)
 www.shining-path.com
 
 --
 To unsubscribe, e-mail: 
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: mod_jk error under load

2002-09-30 Thread Marc

Hi, where can I find a description for each 'errno'?
I receive errno = 110 when I try to access tomcat connecting to a *.jsp page
through apache.

Thank you!!!

Marc

Anthony Milbourne wrote:

 Hi

 146 is a socket connection error.
 Try checking your workers.properties file (or the JBoss file that generates
 it ?) and making sure that the only connectors mentioned in workers.list
 also have connectors defined in server.xml.  Specifically - check there
 isn't an ajp12 in workers.properties and not in server.xml.

 Hope that helps.

 Anthony.

  -Original Message-
  From: David Ward [SMTP:[EMAIL PROTECTED]]
  Sent: 27 September 2002 17:57
  To:   [EMAIL PROTECTED]
  Subject:  mod_jk error under load
 
  In running an automated load test against our app, we get the following
  errors in or jk.log file:
 
  [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
  [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
  [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
  [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
  [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
  [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
  [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
  [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
  [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
  [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
  [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
 
  Anyone know what these errors are? I can't find anything conclusive
  about them searching various lists/forums.
 
  We are running Apache 1.3.12 on a Solaris 7 Ultra 10 using mod_jk/ajp12
  to talk to JBoss-2.4.7_Tomcat-3.2.3 on a Solaris 7 E250, JDK 1.3.1_02.
 
  The symptoms we see are that the number of httpd processes maxes out on
  the web server box, though the CPU is almost completely idle. The weird
  thing is that the app server is mostly idle too, and doing a thread dump
  on the java (jboss+tomcat in same vm) process shows that there are lots
  of threads waiting for work to do. Once we stop the load test, things
  are still messed up until I restart apache, then we can access the app
  again. Note that I didn't have to touch the app server at all. Accessing
  URLs that aren't configured to go through mod_jk have no problem, until
  the max http children process gets reached, of course...
 
  I haven't gotten a response from the Tomcat forum at JGuru.
 
  Thanks all,
  David
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]

 **
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.
 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses.
 www.mimesweeper.com
 **

 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Turner, John


OK, that's a problem.  I don't have your httpd.conf any more, but there
shouldn't be any hostnames in there whatsoever if all you are doing is
accessing localhost.  Instead of hostnames, it should say localhost.

John


 -Original Message-
 From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 9:07 AM
 To: 'Tomcat Users List'; [EMAIL PROTECTED]
 Subject: RE: (OT) Cannot see Localhost on Apache
 
 
 Raj,
 
 I have pinged Localhost and 127.0.0.1 and have got responses.
 
 However, I did notice that when I started to ping Localhost it began
 with the message:
 
 Pinging jk.mshome.net [127.0.0.1] with 32 bytes of data:
 
 jk.mshome.net is/was what I called my site when first 
 installing Apache
 1.3.26 - it asks you what you want to call the server, etc when you
 first install it. I have since changed it to shining-path.com in the
 Apache config file.
 
 Maybe this is a problem??
 
 I have checked the Apache error log and there are no errors reported.
 
 
 Geoff
 
 -Original Message-
 From: Raj Saini [mailto:[EMAIL PROTECTED]] 
 Sent: 30 September 2002 13:54
 To: Tomcat Users List
 Subject: Re: (OT) Cannot see Localhost on Apache
 
 
 Try there two things on DOS prompt of your PC.
 
 ping localhost
 
 ping 127.0.0.1
 
 If you receive the ping response, it means you have your network 
 installed properly. If you can not see the ping respone there must be 
 some thing wrong with your network settings.
 
 You can also have a look on the apache error logs. See if you 
 apache is 
 accepting the browser request.
 
 Raj
 
 Geoffrey Khan wrote:
  John,
  
  I have Zone Alarm installed on my PC and it worked fine with Apache 
  for a long time and I haven't changed any of the settings 
 in this to 
  prevent Apache from working. I've tried shutting down Zone Alarm, 
  starting Apache and going to Localhost but still get a blank, white 
  screen.
  
  I haven't changed any network settings in any shape or form 
 or added 
  any kind of hardware.
  
  I know Apache starts because I have a console window running saying 
  Apache 1.3.26 running whenever I start it up (and it shows 
 up in the 
  Task Manager list when I do start it).
  
  Geoff
  
  
  -Original Message-
  From: Turner, John [mailto:[EMAIL PROTECTED]]
  Sent: 30 September 2002 13:26
  To: 'Tomcat Users List'
  Subject: RE: (OT) Cannot see Localhost on Apache
  
  
  
  Did you install a firewall?  Did you change your network 
 settings in 
  any way, shape or form?  Add a cable modem, DSL router, or other 
  network hardware?  Do you have some sort of virus filter running on 
  port 80? Are you sure Apache even starts?  Apache works out 
 of the box
 
  in a default install...there could be any number of other 
 reasons why 
  it doesn't serve pages, none of them related to the Apache config 
  file.
  
  John
  
  -Original Message-
  From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 30, 2002 7:05 AM
  To: [EMAIL PROTECTED]
  Subject: (OT) Cannot see Localhost on Apache
  
  
  Hello,
  
  Sorry for the off topic manner of this email but I am 
 having trouble 
  with my Apache server and was wondering if anyone on this list can 
  help me?
  
  For about a year I had Apache 1.3.20 set-up on my Windows 
 98SE machine
 
  running PHP 4.1.1 (and Coldfusion) on it with no problems. I would 
  type http://localhost/ (or http://127.0.0.1/)  in my browser and be 
  able to see the directories with all my files in them and edit them 
  accordingly.
  
  However, last week I started up Apache and opened a browser 
 and typed 
  Localhost but nothing happened! All I would get would be a 
 white blank
 
  screen and if I typed in the address of a specific file within the 
  directory I would get a Pager cannot be displayed error.
  
  I tested this in IE, Netscape and Mozilla (along with clearing the 
  cache in each browser) and all of them were the same.
  
  I decided to uninstall Apache 1.3.20 and upgrade to 1.3.26 figuring 
  that if I started with a newer version of Apache the 
 problem would be 
  eradicated and I  would have a more up-to-date version of 
 the server.
  
  This I have done, but still I cannot gain access to any of my files 
  and still it gives me a blank white screen if I type 
 Localhost and a 
  Page cannot be displayed error message if I try and navigate to a 
  specific file within the directory.
  
  I have scanned the Apache web site, trawled through the newsgroups, 
  studied my config file indepth, but cannot see where the 
 problem lies.
  
  Could someone please take a look at my config file and try 
 to see why 
  this is happening because as far as I can tell everything 
 is fine and 
  I haven't changed anything since the last time it worked OK?
  
  Please disregard the fact that I haven't loaded the PHP modules yet 
  (and Coldfusion as well) as I will do this after I have managed to 
  sort out the Localhost problem.
  
  Your help would be 

How to integrate Tomcat 4.0.4 with JBOSS 3.0.2

2002-09-30 Thread jdeveloper

  Jboss comes with Jetty. I would like to disable Jetty and integrate 
Jboss v3.0.2 with tomcat v4.0.4. (I did not download Jboss with an 
embedded tomcat version.)

Both Jboss and Tomcat work by themselves separately.

Do I need to remove the directory 
$JBOSS_HOME/server/default/deploy/jbossweb.sar to disable Jetty?

To integrate, do I need to add Jboss client libaries to tomcat ? i.e., 
copy jboss-j2ee.jar, jboss-client.jar, jbosssx-client.jar, 
jnp-client.jar, jboss-common-client.jar and log4j.jar files from 
$JBOSS_HOME/client/ directory to $TOMCAT_HOME/common/lib/ directory ?

Any help would be appreciated!



Re: binary mod_webapp.so for solaris7?

2002-09-30 Thread David Bishop

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


You can email them directly to me, at [EMAIL PROTECTED]  That would be 
*very* nice of you!

On Monday 30 September 2002 03:36 am, Raj Saini wrote:
 I have the webapps and mod_jk connectors solaris 2.7. How can I put them
 on the server? I tried to send through mailing list but it is too big to
 put here.

 Raj

 David Bishop wrote:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  See subject :-)  Anyone have one of those?  I was never able to get the
  module to load correctly with a self-compiled version, even with Solaris
  8, but the binary modules seem to work fine, when I can get them.  I am
  running Apache 1.3.26, Solaris 7 on an ultra 60, tomcat 4.0.4.
 
 
  Thanks *very* much.
  - --
  A mouse is a device used to point at the xterm you want to type in.
--Kim Alm, a.s.r
  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1.2.0 (GNU/Linux)
 
  iD8DBQE9lLcIEHLN/FXAbC0RAs5qAKDRS0k9JH1RYWVejGOZKZ5oJ6EngQCfXujH
  tesH8v2Al8zEGXEjzS/S08o=
  =AJT9
  -END PGP SIGNATURE-
 
 
  --
  To unsubscribe, e-mail:  
  mailto:[EMAIL PROTECTED] For additional
  commands, e-mail: mailto:[EMAIL PROTECTED]

- -- 
A mouse is a device used to point at the xterm you want to type in. 
  --Kim Alm, a.s.r 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE9mE9UEHLN/FXAbC0RAnjeAJ9OQlkNK9X6OuzFCsr2Zg1ekWQhHgCfeqtt
hznC2WUU1cFkMb8zUg8ARM4=
=QwB9
-END PGP SIGNATURE-


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Geoffrey Khan

I've checked the config file and the Server Name is 127.0.0.1, so I
don't know why it says jk.mshome.net when I try to ping Localhost.

I've attache my config file again.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: 30 September 2002 14:15
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache



OK, that's a problem.  I don't have your httpd.conf any more, but there
shouldn't be any hostnames in there whatsoever if all you are doing is
accessing localhost.  Instead of hostnames, it should say localhost.

John


 -Original Message-
 From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 9:07 AM
 To: 'Tomcat Users List'; [EMAIL PROTECTED]
 Subject: RE: (OT) Cannot see Localhost on Apache
 
 
 Raj,
 
 I have pinged Localhost and 127.0.0.1 and have got responses.
 
 However, I did notice that when I started to ping Localhost it began 
 with the message:
 
 Pinging jk.mshome.net [127.0.0.1] with 32 bytes of data:
 
 jk.mshome.net is/was what I called my site when first
 installing Apache
 1.3.26 - it asks you what you want to call the server, etc when you
 first install it. I have since changed it to shining-path.com in the
 Apache config file.
 
 Maybe this is a problem??
 
 I have checked the Apache error log and there are no errors reported.
 
 
 Geoff
 
 -Original Message-
 From: Raj Saini [mailto:[EMAIL PROTECTED]]
 Sent: 30 September 2002 13:54
 To: Tomcat Users List
 Subject: Re: (OT) Cannot see Localhost on Apache
 
 
 Try there two things on DOS prompt of your PC.
 
 ping localhost
 
 ping 127.0.0.1
 
 If you receive the ping response, it means you have your network
 installed properly. If you can not see the ping respone there must be 
 some thing wrong with your network settings.
 
 You can also have a look on the apache error logs. See if you
 apache is 
 accepting the browser request.
 
 Raj
 
 Geoffrey Khan wrote:
  John,
  
  I have Zone Alarm installed on my PC and it worked fine with Apache
  for a long time and I haven't changed any of the settings 
 in this to
  prevent Apache from working. I've tried shutting down Zone Alarm,
  starting Apache and going to Localhost but still get a blank, white 
  screen.
  
  I haven't changed any network settings in any shape or form
 or added
  any kind of hardware.
  
  I know Apache starts because I have a console window running saying
  Apache 1.3.26 running whenever I start it up (and it shows 
 up in the
  Task Manager list when I do start it).
  
  Geoff
  
  
  -Original Message-
  From: Turner, John [mailto:[EMAIL PROTECTED]]
  Sent: 30 September 2002 13:26
  To: 'Tomcat Users List'
  Subject: RE: (OT) Cannot see Localhost on Apache
  
  
  
  Did you install a firewall?  Did you change your network
 settings in
  any way, shape or form?  Add a cable modem, DSL router, or other
  network hardware?  Do you have some sort of virus filter running on 
  port 80? Are you sure Apache even starts?  Apache works out 
 of the box
 
  in a default install...there could be any number of other
 reasons why
  it doesn't serve pages, none of them related to the Apache config
  file.
  
  John
  
  -Original Message-
  From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 30, 2002 7:05 AM
  To: [EMAIL PROTECTED]
  Subject: (OT) Cannot see Localhost on Apache
  
  
  Hello,
  
  Sorry for the off topic manner of this email but I am
 having trouble
  with my Apache server and was wondering if anyone on this list can
  help me?
  
  For about a year I had Apache 1.3.20 set-up on my Windows
 98SE machine
 
  running PHP 4.1.1 (and Coldfusion) on it with no problems. I would
  type http://localhost/ (or http://127.0.0.1/)  in my browser and be 
  able to see the directories with all my files in them and edit them 
  accordingly.
  
  However, last week I started up Apache and opened a browser
 and typed
  Localhost but nothing happened! All I would get would be a
 white blank
 
  screen and if I typed in the address of a specific file within the
  directory I would get a Pager cannot be displayed error.
  
  I tested this in IE, Netscape and Mozilla (along with clearing the
  cache in each browser) and all of them were the same.
  
  I decided to uninstall Apache 1.3.20 and upgrade to 1.3.26 figuring
  that if I started with a newer version of Apache the 
 problem would be
  eradicated and I  would have a more up-to-date version of
 the server.
  
  This I have done, but still I cannot gain access to any of my files
  and still it gives me a blank white screen if I type 
 Localhost and a
  Page cannot be displayed error message if I try and navigate to a
  specific file within the directory.
  
  I have scanned the Apache web site, trawled through the newsgroups,
  studied my config file indepth, but cannot see where the 
 problem lies.
  
  Could someone please take a look at my config file and try
 to see why
  this is happening 

HELP! getRemoteUser()/getUserPrincipal() returns Null

2002-09-30 Thread Dinesh P

Hi All,

I am running Tomcat 4.1.12 and using Struts 1.0
framework.

I am doing form based authentication and unable to
get the logged in user name in my servlet code.

I have tried both request.getRemoteUser() and
request.getUserPrincipal() and they return 'null'.

Please help. Any suggestions or pointers are
greatly appreciated. I have searched the archives
and not found any solution so far.

Thanks,
DP

__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Geoffrey Khan

I tried telnetting to Localhost and the Apache access file outputs this:

127.0.0.1 - - [30/Sep/2002:14:09:11 +0100] GET / HTTP/1.1 200 1588
127.0.0.1 - - [30/Sep/2002:14:09:11 +0100] GET /icons/blank.gif
HTTP/1.1 200 148 127.0.0.1 - - [30/Sep/2002:14:09:12 +0100] GET
/icons/folder.gif HTTP/1.1 200 225 127.0.0.1 - - [30/Sep/2002:14:09:12
+0100] GET /icons/text.gif HTTP/1.1 200 229 127.0.0.1 - -
[30/Sep/2002:14:11:58 +0100] GET /shining%20path/ HTTP/1.1 200 965
127.0.0.1 - - [30/Sep/2002:14:12:00 +0100] GET
/shining%20path/shining%20path%20(second%20design)/ HTTP/1.1 200 6434
127.0.0.1 - - [30/Sep/2002:14:12:01 +0100] GET /icons/unknown.gif
HTTP/1.1 200 245 127.0.0.1 - - [30/Sep/2002:14:12:15 +0100] GET
/index.htm HTTP/1.1 200 141



-Original Message-
From: Raj Saini [mailto:[EMAIL PROTECTED]] 
Sent: 30 September 2002 13:59
To: Tomcat Users List
Subject: Re: (OT) Cannot see Localhost on Apache


Try telnetting to your apache server and open the access log and error 
log and watch the message there.

telnet 127.0.0.1 80

If telnet connects to your server send a a get request

get index.html

you may not see the echo of your charachters on the console. But the 
apache should output some stuff.

If you see thsi working, there is problem with your browser. Check your 
browser proxy settings.


Raj

Geoffrey Khan wrote:
 Michael,
 
 I pinged Localhost and got the message:
 
 Reply from 127.0.0.1: bytes=32 time10ms TTL64
 
 I presume from this all is fine, as I have a reply?
 
 
 Geoff
 
 -Original Message-
 From: Kajen, Michael [mailto:[EMAIL PROTECTED]]
 Sent: 30 September 2002 13:31
 To: 'Tomcat Users List'
 Subject: RE: (OT) Cannot see Localhost on Apache
 
 
 HI,
 See if you can ping localhost. Maybe something happened to your dns
 settings. mk
 
 -Original Message-
 From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 7:05 AM
 To: [EMAIL PROTECTED]
 Subject: (OT) Cannot see Localhost on Apache
 
 
 Hello,
  
 Sorry for the off topic manner of this email but I am having trouble
 with my Apache server and was wondering if anyone on this list can 
 help me?
  
 For about a year I had Apache 1.3.20 set-up on my Windows 98SE machine
 running PHP 4.1.1 (and Coldfusion) on it with no problems. I would 
 type http://localhost/ http://localhost/  (or http://127.0.0.1/ 
 http://127.0.0.1/ )  in my browser and be able to see the 
 directories with all my files in them and edit them accordingly.
  
 However, last week I started up Apache and opened a browser and typed
 Localhost but nothing happened! All I would get would be a white blank

 screen and if I typed in the address of a specific file within the 
 directory I would get a Pager cannot be displayed error.
  
 I tested this in IE, Netscape and Mozilla (along with clearing the
 cache in each browser) and all of them were the same.
  
 I decided to uninstall Apache 1.3.20 and upgrade to 1.3.26 figuring
 that if I started with a newer version of Apache the problem would be 
 eradicated and I  would have a more up-to-date version of the server.
  
 This I have done, but still I cannot gain access to any of my files
 and still it gives me a blank white screen if I type Localhost and a 
 Page cannot be displayed error message if I try and navigate to a 
 specific file within the directory.
  
 I have scanned the Apache web site, trawled through the newsgroups,
 studied my config file indepth, but cannot see where the problem lies.
  
 
 Could someone please take a look at my config file and try to see why
 this is happening because as far as I can tell everything is fine and 
 I haven't changed anything since the last time it worked OK?
  
 Please disregard the fact that I haven't loaded the PHP modules yet
 (and Coldfusion as well) as I will do this after I have managed to 
 sort out the Localhost problem.
  
 Your help would be very much appreciated.
  
  
 Regards,
  
  
 Geoff Khan B.Sc (Hons)
  http://www.shining-path.com www.shining-path.com
 
  
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Turner, John


OK, we're going around in circles.  There are a couple of issues here.

- if ServerName in httpd.conf is 127.0.0.1, then that is what you put in the
URL
- 127.0.0.1 = localhost, on every computer in the world, it's a standard
- do you have a hosts file or some other DNS setting that is resolving
jk.mshome.net to 127.0.0.1?

Basically, things have to match.  If jk.mshome.net = 127.0.0.1, then
jk.mshome.net should be your ServerName in httpd.conf.  My advice is to
reinstall Apache, and don't answer _anything_ when asked for hostname, IP
address, or anything else.  Let the installer figure that stuff out on its
own.  You can't just type hostnames willy-nilly, they have to resolve
correctly for services that are looking for them to work correctly.

Since jk.mshome.net does not resolve publicly, either set up DNS on your LAN
or a local hosts file on your PC to resolve the name.  Otherwise, don't use
it anywhere, in any configuration, because it won't work.

Typing ping localhost should return an IP address of 127.0.0.1.

Typing ping jk.mshome.net should return nothing.

Apache should be set to defaults, across the board (localhost).

John

 -Original Message-
 From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 9:23 AM
 To: 'Tomcat Users List'
 Subject: RE: (OT) Cannot see Localhost on Apache
 
 
 I've checked the config file and the Server Name is 127.0.0.1, so I
 don't know why it says jk.mshome.net when I try to ping Localhost.
 
 I've attache my config file again.
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]] 
 Sent: 30 September 2002 14:15
 To: 'Tomcat Users List'
 Subject: RE: (OT) Cannot see Localhost on Apache
 
 
 
 OK, that's a problem.  I don't have your httpd.conf any more, 
 but there
 shouldn't be any hostnames in there whatsoever if all you are doing is
 accessing localhost.  Instead of hostnames, it should say localhost.
 
 John
 
 
  -Original Message-
  From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 30, 2002 9:07 AM
  To: 'Tomcat Users List'; [EMAIL PROTECTED]
  Subject: RE: (OT) Cannot see Localhost on Apache
  
  
  Raj,
  
  I have pinged Localhost and 127.0.0.1 and have got responses.
  
  However, I did notice that when I started to ping Localhost 
 it began 
  with the message:
  
  Pinging jk.mshome.net [127.0.0.1] with 32 bytes of data:
  
  jk.mshome.net is/was what I called my site when first
  installing Apache
  1.3.26 - it asks you what you want to call the server, etc when you
  first install it. I have since changed it to shining-path.com in the
  Apache config file.
  
  Maybe this is a problem??
  
  I have checked the Apache error log and there are no errors 
 reported.
  
  
  Geoff
  
  -Original Message-
  From: Raj Saini [mailto:[EMAIL PROTECTED]]
  Sent: 30 September 2002 13:54
  To: Tomcat Users List
  Subject: Re: (OT) Cannot see Localhost on Apache
  
  
  Try there two things on DOS prompt of your PC.
  
  ping localhost
  
  ping 127.0.0.1
  
  If you receive the ping response, it means you have your network
  installed properly. If you can not see the ping respone 
 there must be 
  some thing wrong with your network settings.
  
  You can also have a look on the apache error logs. See if you
  apache is 
  accepting the browser request.
  
  Raj
  
  Geoffrey Khan wrote:
   John,
   
   I have Zone Alarm installed on my PC and it worked fine 
 with Apache
   for a long time and I haven't changed any of the settings 
  in this to
   prevent Apache from working. I've tried shutting down Zone Alarm,
   starting Apache and going to Localhost but still get a 
 blank, white 
   screen.
   
   I haven't changed any network settings in any shape or form
  or added
   any kind of hardware.
   
   I know Apache starts because I have a console window 
 running saying
   Apache 1.3.26 running whenever I start it up (and it shows 
  up in the
   Task Manager list when I do start it).
   
   Geoff
   
   
   -Original Message-
   From: Turner, John [mailto:[EMAIL PROTECTED]]
   Sent: 30 September 2002 13:26
   To: 'Tomcat Users List'
   Subject: RE: (OT) Cannot see Localhost on Apache
   
   
   
   Did you install a firewall?  Did you change your network
  settings in
   any way, shape or form?  Add a cable modem, DSL router, or other
   network hardware?  Do you have some sort of virus filter 
 running on 
   port 80? Are you sure Apache even starts?  Apache works out 
  of the box
  
   in a default install...there could be any number of other
  reasons why
   it doesn't serve pages, none of them related to the Apache config
   file.
   
   John
   
   -Original Message-
   From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
   Sent: Monday, September 30, 2002 7:05 AM
   To: [EMAIL PROTECTED]
   Subject: (OT) Cannot see Localhost on Apache
   
   
   Hello,
   
   Sorry for the off topic manner of this email but I am
  having trouble
   with my Apache 

RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Turner, John


That is Apache running.  The mixup between jk.mshome.net and localhost is
causing problems, and the space in your path name shining%20path probably
isn't helping, either.

John


 -Original Message-
 From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 9:33 AM
 To: 'Tomcat Users List'
 Subject: RE: (OT) Cannot see Localhost on Apache
 
 
 I tried telnetting to Localhost and the Apache access file 
 outputs this:
 
 127.0.0.1 - - [30/Sep/2002:14:09:11 +0100] GET / HTTP/1.1 200 1588
 127.0.0.1 - - [30/Sep/2002:14:09:11 +0100] GET /icons/blank.gif
 HTTP/1.1 200 148 127.0.0.1 - - [30/Sep/2002:14:09:12 +0100] GET
 /icons/folder.gif HTTP/1.1 200 225 127.0.0.1 - - 
 [30/Sep/2002:14:09:12
 +0100] GET /icons/text.gif HTTP/1.1 200 229 127.0.0.1 - -
 [30/Sep/2002:14:11:58 +0100] GET /shining%20path/ HTTP/1.1 200 965
 127.0.0.1 - - [30/Sep/2002:14:12:00 +0100] GET
 /shining%20path/shining%20path%20(second%20design)/ HTTP/1.1 200 6434
 127.0.0.1 - - [30/Sep/2002:14:12:01 +0100] GET /icons/unknown.gif
 HTTP/1.1 200 245 127.0.0.1 - - [30/Sep/2002:14:12:15 +0100] GET
 /index.htm HTTP/1.1 200 141
 
 
 
 -Original Message-
 From: Raj Saini [mailto:[EMAIL PROTECTED]] 
 Sent: 30 September 2002 13:59
 To: Tomcat Users List
 Subject: Re: (OT) Cannot see Localhost on Apache
 
 
 Try telnetting to your apache server and open the access log 
 and error 
 log and watch the message there.
 
 telnet 127.0.0.1 80
 
 If telnet connects to your server send a a get request
 
 get index.html
 
 you may not see the echo of your charachters on the console. But the 
 apache should output some stuff.
 
 If you see thsi working, there is problem with your browser. 
 Check your 
 browser proxy settings.
 
 
 Raj
 
 Geoffrey Khan wrote:
  Michael,
  
  I pinged Localhost and got the message:
  
  Reply from 127.0.0.1: bytes=32 time10ms TTL64
  
  I presume from this all is fine, as I have a reply?
  
  
  Geoff
  
  -Original Message-
  From: Kajen, Michael [mailto:[EMAIL PROTECTED]]
  Sent: 30 September 2002 13:31
  To: 'Tomcat Users List'
  Subject: RE: (OT) Cannot see Localhost on Apache
  
  
  HI,
  See if you can ping localhost. Maybe something happened to your dns
  settings. mk
  
  -Original Message-
  From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 30, 2002 7:05 AM
  To: [EMAIL PROTECTED]
  Subject: (OT) Cannot see Localhost on Apache
  
  
  Hello,
   
  Sorry for the off topic manner of this email but I am having trouble
  with my Apache server and was wondering if anyone on this list can 
  help me?
   
  For about a year I had Apache 1.3.20 set-up on my Windows 
 98SE machine
  running PHP 4.1.1 (and Coldfusion) on it with no problems. I would 
  type http://localhost/ http://localhost/  (or http://127.0.0.1/ 
  http://127.0.0.1/ )  in my browser and be able to see the 
  directories with all my files in them and edit them accordingly.
   
  However, last week I started up Apache and opened a browser 
 and typed
  Localhost but nothing happened! All I would get would be a 
 white blank
 
  screen and if I typed in the address of a specific file within the 
  directory I would get a Pager cannot be displayed error.
   
  I tested this in IE, Netscape and Mozilla (along with clearing the
  cache in each browser) and all of them were the same.
   
  I decided to uninstall Apache 1.3.20 and upgrade to 1.3.26 figuring
  that if I started with a newer version of Apache the 
 problem would be 
  eradicated and I  would have a more up-to-date version of 
 the server.
   
  This I have done, but still I cannot gain access to any of my files
  and still it gives me a blank white screen if I type 
 Localhost and a 
  Page cannot be displayed error message if I try and navigate to a 
  specific file within the directory.
   
  I have scanned the Apache web site, trawled through the newsgroups,
  studied my config file indepth, but cannot see where the 
 problem lies.
   
  
  Could someone please take a look at my config file and try 
 to see why
  this is happening because as far as I can tell everything 
 is fine and 
  I haven't changed anything since the last time it worked OK?
   
  Please disregard the fact that I haven't loaded the PHP modules yet
  (and Coldfusion as well) as I will do this after I have managed to 
  sort out the Localhost problem.
   
  Your help would be very much appreciated.
   
   
  Regards,
   
   
  Geoff Khan B.Sc (Hons)
   http://www.shining-path.com www.shining-path.com
  
   
  
  
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 

RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Turner, John


At this point, I would suggest moving this to an Apache list.

John


 -Original Message-
 From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 9:33 AM
 To: 'Tomcat Users List'
 Subject: RE: (OT) Cannot see Localhost on Apache
 
 
 I tried telnetting to Localhost and the Apache access file 
 outputs this:
 
 127.0.0.1 - - [30/Sep/2002:14:09:11 +0100] GET / HTTP/1.1 200 1588
 127.0.0.1 - - [30/Sep/2002:14:09:11 +0100] GET /icons/blank.gif
 HTTP/1.1 200 148 127.0.0.1 - - [30/Sep/2002:14:09:12 +0100] GET
 /icons/folder.gif HTTP/1.1 200 225 127.0.0.1 - - 
 [30/Sep/2002:14:09:12
 +0100] GET /icons/text.gif HTTP/1.1 200 229 127.0.0.1 - -
 [30/Sep/2002:14:11:58 +0100] GET /shining%20path/ HTTP/1.1 200 965
 127.0.0.1 - - [30/Sep/2002:14:12:00 +0100] GET
 /shining%20path/shining%20path%20(second%20design)/ HTTP/1.1 200 6434
 127.0.0.1 - - [30/Sep/2002:14:12:01 +0100] GET /icons/unknown.gif
 HTTP/1.1 200 245 127.0.0.1 - - [30/Sep/2002:14:12:15 +0100] GET
 /index.htm HTTP/1.1 200 141
 
 
 
 -Original Message-
 From: Raj Saini [mailto:[EMAIL PROTECTED]] 
 Sent: 30 September 2002 13:59
 To: Tomcat Users List
 Subject: Re: (OT) Cannot see Localhost on Apache
 
 
 Try telnetting to your apache server and open the access log 
 and error 
 log and watch the message there.
 
 telnet 127.0.0.1 80
 
 If telnet connects to your server send a a get request
 
 get index.html
 
 you may not see the echo of your charachters on the console. But the 
 apache should output some stuff.
 
 If you see thsi working, there is problem with your browser. 
 Check your 
 browser proxy settings.
 
 
 Raj
 
 Geoffrey Khan wrote:
  Michael,
  
  I pinged Localhost and got the message:
  
  Reply from 127.0.0.1: bytes=32 time10ms TTL64
  
  I presume from this all is fine, as I have a reply?
  
  
  Geoff
  
  -Original Message-
  From: Kajen, Michael [mailto:[EMAIL PROTECTED]]
  Sent: 30 September 2002 13:31
  To: 'Tomcat Users List'
  Subject: RE: (OT) Cannot see Localhost on Apache
  
  
  HI,
  See if you can ping localhost. Maybe something happened to your dns
  settings. mk
  
  -Original Message-
  From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 30, 2002 7:05 AM
  To: [EMAIL PROTECTED]
  Subject: (OT) Cannot see Localhost on Apache
  
  
  Hello,
   
  Sorry for the off topic manner of this email but I am having trouble
  with my Apache server and was wondering if anyone on this list can 
  help me?
   
  For about a year I had Apache 1.3.20 set-up on my Windows 
 98SE machine
  running PHP 4.1.1 (and Coldfusion) on it with no problems. I would 
  type http://localhost/ http://localhost/  (or http://127.0.0.1/ 
  http://127.0.0.1/ )  in my browser and be able to see the 
  directories with all my files in them and edit them accordingly.
   
  However, last week I started up Apache and opened a browser 
 and typed
  Localhost but nothing happened! All I would get would be a 
 white blank
 
  screen and if I typed in the address of a specific file within the 
  directory I would get a Pager cannot be displayed error.
   
  I tested this in IE, Netscape and Mozilla (along with clearing the
  cache in each browser) and all of them were the same.
   
  I decided to uninstall Apache 1.3.20 and upgrade to 1.3.26 figuring
  that if I started with a newer version of Apache the 
 problem would be 
  eradicated and I  would have a more up-to-date version of 
 the server.
   
  This I have done, but still I cannot gain access to any of my files
  and still it gives me a blank white screen if I type 
 Localhost and a 
  Page cannot be displayed error message if I try and navigate to a 
  specific file within the directory.
   
  I have scanned the Apache web site, trawled through the newsgroups,
  studied my config file indepth, but cannot see where the 
 problem lies.
   
  
  Could someone please take a look at my config file and try 
 to see why
  this is happening because as far as I can tell everything 
 is fine and 
  I haven't changed anything since the last time it worked OK?
   
  Please disregard the fact that I haven't loaded the PHP modules yet
  (and Coldfusion as well) as I will do this after I have managed to 
  sort out the Localhost problem.
   
  Your help would be very much appreciated.
   
   
  Regards,
   
   
  Geoff Khan B.Sc (Hons)
   http://www.shining-path.com www.shining-path.com
  
   
  
  
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Kajen, Michael

correct - that eliminates that.


-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 8:54 AM
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache


Michael,

I pinged Localhost and got the message:

Reply from 127.0.0.1: bytes=32 time10ms TTL64

I presume from this all is fine, as I have a reply?


Geoff

-Original Message-
From: Kajen, Michael [mailto:[EMAIL PROTECTED]] 
Sent: 30 September 2002 13:31
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache


HI,
See if you can ping localhost. Maybe something happened to your dns
settings. mk

-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 7:05 AM
To: [EMAIL PROTECTED]
Subject: (OT) Cannot see Localhost on Apache


Hello,
 
Sorry for the off topic manner of this email but I am having trouble
with my Apache server and was wondering if anyone on this list can help
me?
 
For about a year I had Apache 1.3.20 set-up on my Windows 98SE machine
running PHP 4.1.1 (and Coldfusion) on it with no problems. I would type
http://localhost/ http://localhost/  (or http://127.0.0.1/
http://127.0.0.1/ )  in my browser and be able to see the directories
with all my files in them and edit them accordingly.
 
However, last week I started up Apache and opened a browser and typed
Localhost but nothing happened! All I would get would be a white blank
screen and if I typed in the address of a specific file within the
directory I would get a Pager cannot be displayed error.
 
I tested this in IE, Netscape and Mozilla (along with clearing the cache
in each browser) and all of them were the same.
 
I decided to uninstall Apache 1.3.20 and upgrade to 1.3.26 figuring that
if I started with a newer version of Apache the problem would be
eradicated and I  would have a more up-to-date version of the server.
 
This I have done, but still I cannot gain access to any of my files and
still it gives me a blank white screen if I type Localhost and a Page
cannot be displayed error message if I try and navigate to a specific
file within the directory.
 
I have scanned the Apache web site, trawled through the newsgroups,
studied my config file indepth, but cannot see where the problem lies.
 

Could someone please take a look at my config file and try to see why
this is happening because as far as I can tell everything is fine and I
haven't changed anything since the last time it worked OK?
 
Please disregard the fact that I haven't loaded the PHP modules yet (and
Coldfusion as well) as I will do this after I have managed to sort out
the Localhost problem.
 
Your help would be very much appreciated.
 
 
Regards,
 
 
Geoff Khan B.Sc (Hons)
 http://www.shining-path.com www.shining-path.com

 


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Geoffrey Khan

Well, that is what I'll do - reinstall Apache.

However, as I said previously, this whole situation arose due to Apache
not showing the Localhost directory. It was working fine for over a year
on this PC and I didn't change ANY of the settings or add any hardware
prior to it's not working.


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: 30 September 2002 14:36
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache



OK, we're going around in circles.  There are a couple of issues here.

- if ServerName in httpd.conf is 127.0.0.1, then that is what you put in
the URL
- 127.0.0.1 = localhost, on every computer in the world, it's a standard
- do you have a hosts file or some other DNS setting that is resolving
jk.mshome.net to 127.0.0.1?

Basically, things have to match.  If jk.mshome.net = 127.0.0.1, then
jk.mshome.net should be your ServerName in httpd.conf.  My advice is to
reinstall Apache, and don't answer _anything_ when asked for hostname,
IP address, or anything else.  Let the installer figure that stuff out
on its own.  You can't just type hostnames willy-nilly, they have to
resolve correctly for services that are looking for them to work
correctly.

Since jk.mshome.net does not resolve publicly, either set up DNS on your
LAN or a local hosts file on your PC to resolve the name.  Otherwise,
don't use it anywhere, in any configuration, because it won't work.

Typing ping localhost should return an IP address of 127.0.0.1.

Typing ping jk.mshome.net should return nothing.

Apache should be set to defaults, across the board (localhost).

John

 -Original Message-
 From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 9:23 AM
 To: 'Tomcat Users List'
 Subject: RE: (OT) Cannot see Localhost on Apache
 
 
 I've checked the config file and the Server Name is 127.0.0.1, so I 
 don't know why it says jk.mshome.net when I try to ping Localhost.
 
 I've attache my config file again.
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: 30 September 2002 14:15
 To: 'Tomcat Users List'
 Subject: RE: (OT) Cannot see Localhost on Apache
 
 
 
 OK, that's a problem.  I don't have your httpd.conf any more,
 but there
 shouldn't be any hostnames in there whatsoever if all you are doing is
 accessing localhost.  Instead of hostnames, it should say localhost.
 
 John
 
 
  -Original Message-
  From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 30, 2002 9:07 AM
  To: 'Tomcat Users List'; [EMAIL PROTECTED]
  Subject: RE: (OT) Cannot see Localhost on Apache
  
  
  Raj,
  
  I have pinged Localhost and 127.0.0.1 and have got responses.
  
  However, I did notice that when I started to ping Localhost
 it began
  with the message:
  
  Pinging jk.mshome.net [127.0.0.1] with 32 bytes of data:
  
  jk.mshome.net is/was what I called my site when first installing 
  Apache 1.3.26 - it asks you what you want to call the server, etc 
  when you first install it. I have since changed it to 
  shining-path.com in the Apache config file.
  
  Maybe this is a problem??
  
  I have checked the Apache error log and there are no errors
 reported.
  
  
  Geoff
  
  -Original Message-
  From: Raj Saini [mailto:[EMAIL PROTECTED]]
  Sent: 30 September 2002 13:54
  To: Tomcat Users List
  Subject: Re: (OT) Cannot see Localhost on Apache
  
  
  Try there two things on DOS prompt of your PC.
  
  ping localhost
  
  ping 127.0.0.1
  
  If you receive the ping response, it means you have your network 
  installed properly. If you can not see the ping respone
 there must be
  some thing wrong with your network settings.
  
  You can also have a look on the apache error logs. See if you apache

  is accepting the browser request.
  
  Raj
  
  Geoffrey Khan wrote:
   John,
   
   I have Zone Alarm installed on my PC and it worked fine
 with Apache
   for a long time and I haven't changed any of the settings
  in this to
   prevent Apache from working. I've tried shutting down Zone Alarm, 
   starting Apache and going to Localhost but still get a
 blank, white
   screen.
   
   I haven't changed any network settings in any shape or form
  or added
   any kind of hardware.
   
   I know Apache starts because I have a console window
 running saying
   Apache 1.3.26 running whenever I start it up (and it shows
  up in the
   Task Manager list when I do start it).
   
   Geoff
   
   
   -Original Message-
   From: Turner, John [mailto:[EMAIL PROTECTED]]
   Sent: 30 September 2002 13:26
   To: 'Tomcat Users List'
   Subject: RE: (OT) Cannot see Localhost on Apache
   
   
   
   Did you install a firewall?  Did you change your network
  settings in
   any way, shape or form?  Add a cable modem, DSL router, or other 
   network hardware?  Do you have some sort of virus filter
 running on
   port 80? Are you sure Apache even starts?  Apache works out
  of the box
  
   in a default 

RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Turner, John


I won't debate you.  You mentioned that you entered jk.mshome.net when the
installer asked.  That's fine, but that means that jk.mshome.net has to
work.  By work I mean resolve correctly and Apache has to be expecting
requests for that hostname.  If Apache is set to look for localhost, and
instead sees a request for jk.mshome.net, it won't work.  Conversely, if
Apache is set to look for jk.mshome.net but instead receives requests for
localhost or 127.0.0.1, it won't work then, either.  As I said, things have
to match.  If a previous version handled things differently, that's
something that was probably resolved in later versions (which you are using
now), for better or worse.

John


 -Original Message-
 From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 9:44 AM
 To: 'Tomcat Users List'
 Subject: RE: (OT) Cannot see Localhost on Apache
 
 
 Well, that is what I'll do - reinstall Apache.
 
 However, as I said previously, this whole situation arose due 
 to Apache
 not showing the Localhost directory. It was working fine for 
 over a year
 on this PC and I didn't change ANY of the settings or add any hardware
 prior to it's not working.
 
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]] 
 Sent: 30 September 2002 14:36
 To: 'Tomcat Users List'
 Subject: RE: (OT) Cannot see Localhost on Apache
 
 
 
 OK, we're going around in circles.  There are a couple of issues here.
 
 - if ServerName in httpd.conf is 127.0.0.1, then that is what 
 you put in
 the URL
 - 127.0.0.1 = localhost, on every computer in the world, it's 
 a standard
 - do you have a hosts file or some other DNS setting that is resolving
 jk.mshome.net to 127.0.0.1?
 
 Basically, things have to match.  If jk.mshome.net = 127.0.0.1, then
 jk.mshome.net should be your ServerName in httpd.conf.  My 
 advice is to
 reinstall Apache, and don't answer _anything_ when asked for hostname,
 IP address, or anything else.  Let the installer figure that stuff out
 on its own.  You can't just type hostnames willy-nilly, they have to
 resolve correctly for services that are looking for them to work
 correctly.
 
 Since jk.mshome.net does not resolve publicly, either set up 
 DNS on your
 LAN or a local hosts file on your PC to resolve the name.  Otherwise,
 don't use it anywhere, in any configuration, because it won't work.
 
 Typing ping localhost should return an IP address of 127.0.0.1.
 
 Typing ping jk.mshome.net should return nothing.
 
 Apache should be set to defaults, across the board (localhost).
 
 John
 
  -Original Message-
  From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 30, 2002 9:23 AM
  To: 'Tomcat Users List'
  Subject: RE: (OT) Cannot see Localhost on Apache
  
  
  I've checked the config file and the Server Name is 127.0.0.1, so I 
  don't know why it says jk.mshome.net when I try to ping Localhost.
  
  I've attache my config file again.
  
  -Original Message-
  From: Turner, John [mailto:[EMAIL PROTECTED]]
  Sent: 30 September 2002 14:15
  To: 'Tomcat Users List'
  Subject: RE: (OT) Cannot see Localhost on Apache
  
  
  
  OK, that's a problem.  I don't have your httpd.conf any more,
  but there
  shouldn't be any hostnames in there whatsoever if all you 
 are doing is
  accessing localhost.  Instead of hostnames, it should say 
 localhost.
  
  John
  
  
   -Original Message-
   From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
   Sent: Monday, September 30, 2002 9:07 AM
   To: 'Tomcat Users List'; [EMAIL PROTECTED]
   Subject: RE: (OT) Cannot see Localhost on Apache
   
   
   Raj,
   
   I have pinged Localhost and 127.0.0.1 and have got responses.
   
   However, I did notice that when I started to ping Localhost
  it began
   with the message:
   
   Pinging jk.mshome.net [127.0.0.1] with 32 bytes of data:
   
   jk.mshome.net is/was what I called my site when first installing 
   Apache 1.3.26 - it asks you what you want to call the server, etc 
   when you first install it. I have since changed it to 
   shining-path.com in the Apache config file.
   
   Maybe this is a problem??
   
   I have checked the Apache error log and there are no errors
  reported.
   
   
   Geoff
   
   -Original Message-
   From: Raj Saini [mailto:[EMAIL PROTECTED]]
   Sent: 30 September 2002 13:54
   To: Tomcat Users List
   Subject: Re: (OT) Cannot see Localhost on Apache
   
   
   Try there two things on DOS prompt of your PC.
   
   ping localhost
   
   ping 127.0.0.1
   
   If you receive the ping response, it means you have your network 
   installed properly. If you can not see the ping respone
  there must be
   some thing wrong with your network settings.
   
   You can also have a look on the apache error logs. See if 
 you apache
 
   is accepting the browser request.
   
   Raj
   
   Geoffrey Khan wrote:
John,

I have Zone Alarm installed on my PC and it worked fine
  with Apache
for a long time 

RE: TC4 servlet filter behavior different from WLS7

2002-09-30 Thread Rob Worsnop

I have opened a bug report against WebLogic (case # 358813). 
It will be interesting to see what they do with it.

 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 27, 2002 1:41 PM
 To: Tomcat Users List
 Subject: Re: TC4 servlet filter behavior different from WLS7
 
 
 See section 6.1.1 of the Spec 2.3
 When the container receives the incoming request, it takes the first 
 filter instance in the list and calls its doFilter() method, 
 passing in 
 the ServletRequest and ServletResponse, and a reference to the 
 FilterChain object it will use.
 
 Therefore filters are only valid for the incoming request. The filter 
 chain should NOT be invoked for a RequestDispatcher.forward().
 
 Also see this email from Craig about this:
 http://archives2.real-time.com/pipermail/tomcat-users/2002-Sep
tember/078864.html
 
 
 Rob Worsnop wrote:
  Er.. thanks for the response, but I understand precisely 
 why Tomcat does not
  trigger the filter. I was looking for clarification on 
 whether it is Tomcat
  or WebLogic that  is not compliant with the spec (which I 
 *have* read, BTW).
  
  One of the reasons I want to know is that we are using 
 WAS4.x and WLS6.x,
  which do not include final spec filters. For this reason I 
 have written my
  own implementation of the spec. My implementation currently 
 behaves like
  WLS7, and I am wondering if I should change it.
  
  
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 27, 2002 12:49 PM
 To: Tomcat Users List
 Subject: RE: TC4 servlet filter behavior different from WLS7
 
 
 Hi,
 
 
 For example:
 I have a servlet /hello, which forwards to /hello.jsp.
 I have a filter that is mapped to /hello.jsp.
 Accessing /hello in WebLogic will trigger the filter. 
 That doesn't
 
 happen
 
 in Tomcat.
 
 It was my understanding that the tomcat behavior here is correct.
 
 This is because you have NOT defined a filter for the 
 /hello pattern.
 You HAVE defined a filter for the /hellp.jsp pattern.  Just 
 because the
 servlet at /hello happens to forward to hello.jsp, which matches a
 filter pattern, just mean requests to the servlet at /hello 
 should be
 filtered.  They don't match the filter pattern.
 
 I would refer to SRV.6.2.4, specifically:
 
 
 This requirement means that the container, when receiving 
 an incoming
 request:
 
 Identifies the target web resource according to the rules of 
 
 SRV.11.2.
 
 If there are filters matched by servlet name and the web 
 
 resource has a
 
 servlet-name, the container builds the chain of filters 
 
 matching in the
 
 order declared in the deployment descriptor. The last 
 filter in this
 
 chain corresponds to the last servlet-name matching filter 
 and is the
 filter that invokes the target web resource.
 
 I hope I'm not wrong on this one ;)  I'd be interested in the 
 resolution
 of this question.
 
 Yoav Shapira
 Millennium ChemInformatics
 
  
  
  --
  To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
  
  
  
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Questions about Servlets

2002-09-30 Thread Kenny G. Dubuisson, Jr.

Could anyone tell me where a good servlet coding / debugging list is?  I
tried the one on java.sun.com but had no luck.  I'm trying to get an example
servlet that came with a book to compile and not sure where to get help.  I
thought I'd ask here since this is related.

Thanks all,
Kenny


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Geoffrey Khan

I pinged jk.mshome.net and the IP address is one I recognise.

I'll just uninstall and reinstall Apache.

Thanks for your help anyway.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: 30 September 2002 14:51
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache



I won't debate you.  You mentioned that you entered jk.mshome.net when
the installer asked.  That's fine, but that means that jk.mshome.net has
to work.  By work I mean resolve correctly and Apache has to be
expecting requests for that hostname.  If Apache is set to look for
localhost, and instead sees a request for jk.mshome.net, it won't work.
Conversely, if Apache is set to look for jk.mshome.net but instead
receives requests for localhost or 127.0.0.1, it won't work then,
either.  As I said, things have to match.  If a previous version handled
things differently, that's something that was probably resolved in later
versions (which you are using now), for better or worse.

John


 -Original Message-
 From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 9:44 AM
 To: 'Tomcat Users List'
 Subject: RE: (OT) Cannot see Localhost on Apache
 
 
 Well, that is what I'll do - reinstall Apache.
 
 However, as I said previously, this whole situation arose due
 to Apache
 not showing the Localhost directory. It was working fine for 
 over a year
 on this PC and I didn't change ANY of the settings or add any hardware
 prior to it's not working.
 
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: 30 September 2002 14:36
 To: 'Tomcat Users List'
 Subject: RE: (OT) Cannot see Localhost on Apache
 
 
 
 OK, we're going around in circles.  There are a couple of issues here.
 
 - if ServerName in httpd.conf is 127.0.0.1, then that is what
 you put in
 the URL
 - 127.0.0.1 = localhost, on every computer in the world, it's 
 a standard
 - do you have a hosts file or some other DNS setting that is resolving
 jk.mshome.net to 127.0.0.1?
 
 Basically, things have to match.  If jk.mshome.net = 127.0.0.1, then 
 jk.mshome.net should be your ServerName in httpd.conf.  My advice is 
 to reinstall Apache, and don't answer _anything_ when asked for 
 hostname, IP address, or anything else.  Let the installer figure that

 stuff out on its own.  You can't just type hostnames willy-nilly, they

 have to resolve correctly for services that are looking for them to 
 work correctly.
 
 Since jk.mshome.net does not resolve publicly, either set up
 DNS on your
 LAN or a local hosts file on your PC to resolve the name.  Otherwise,
 don't use it anywhere, in any configuration, because it won't work.
 
 Typing ping localhost should return an IP address of 127.0.0.1.
 
 Typing ping jk.mshome.net should return nothing.
 
 Apache should be set to defaults, across the board (localhost).
 
 John
 
  -Original Message-
  From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 30, 2002 9:23 AM
  To: 'Tomcat Users List'
  Subject: RE: (OT) Cannot see Localhost on Apache
  
  
  I've checked the config file and the Server Name is 127.0.0.1, so I
  don't know why it says jk.mshome.net when I try to ping Localhost.
  
  I've attache my config file again.
  
  -Original Message-
  From: Turner, John [mailto:[EMAIL PROTECTED]]
  Sent: 30 September 2002 14:15
  To: 'Tomcat Users List'
  Subject: RE: (OT) Cannot see Localhost on Apache
  
  
  
  OK, that's a problem.  I don't have your httpd.conf any more, but 
  there shouldn't be any hostnames in there whatsoever if all you
 are doing is
  accessing localhost.  Instead of hostnames, it should say
 localhost.
  
  John
  
  
   -Original Message-
   From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
   Sent: Monday, September 30, 2002 9:07 AM
   To: 'Tomcat Users List'; [EMAIL PROTECTED]
   Subject: RE: (OT) Cannot see Localhost on Apache
   
   
   Raj,
   
   I have pinged Localhost and 127.0.0.1 and have got responses.
   
   However, I did notice that when I started to ping Localhost
  it began
   with the message:
   
   Pinging jk.mshome.net [127.0.0.1] with 32 bytes of data:
   
   jk.mshome.net is/was what I called my site when first installing
   Apache 1.3.26 - it asks you what you want to call the server, etc 
   when you first install it. I have since changed it to 
   shining-path.com in the Apache config file.
   
   Maybe this is a problem??
   
   I have checked the Apache error log and there are no errors
  reported.
   
   
   Geoff
   
   -Original Message-
   From: Raj Saini [mailto:[EMAIL PROTECTED]]
   Sent: 30 September 2002 13:54
   To: Tomcat Users List
   Subject: Re: (OT) Cannot see Localhost on Apache
   
   
   Try there two things on DOS prompt of your PC.
   
   ping localhost
   
   ping 127.0.0.1
   
   If you receive the ping response, it means you have your network
   installed properly. If you can not see the ping respone
  there must be
   some 

Re: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Raj Saini

There is nothing wrong with the the apache Installation. telnet to port 
80 shows that apache is configured properly and working. Few things to 
check are:-

Check the hosts file int he window directory. See if you have setup any 
hosts in the host files.

Check proxy setting of your browser.

Do you have a LAN card installed on your PC? If yest what is the host 
name you have set in your LAN settings?

There is a problem with network settings. Browser is not sending the 
correct hostname to the server and therefore you dont see any thing.

THe telnet shows that it got the index.html and other image files.

Raj



Your browser proxy setting.
Geoffrey Khan wrote:
 Well, that is what I'll do - reinstall Apache.
 
 However, as I said previously, this whole situation arose due to Apache
 not showing the Localhost directory. It was working fine for over a year
 on this PC and I didn't change ANY of the settings or add any hardware
 prior to it's not working.
 
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]] 
 Sent: 30 September 2002 14:36
 To: 'Tomcat Users List'
 Subject: RE: (OT) Cannot see Localhost on Apache
 
 
 
 OK, we're going around in circles.  There are a couple of issues here.
 
 - if ServerName in httpd.conf is 127.0.0.1, then that is what you put in
 the URL
 - 127.0.0.1 = localhost, on every computer in the world, it's a standard
 - do you have a hosts file or some other DNS setting that is resolving
 jk.mshome.net to 127.0.0.1?
 
 Basically, things have to match.  If jk.mshome.net = 127.0.0.1, then
 jk.mshome.net should be your ServerName in httpd.conf.  My advice is to
 reinstall Apache, and don't answer _anything_ when asked for hostname,
 IP address, or anything else.  Let the installer figure that stuff out
 on its own.  You can't just type hostnames willy-nilly, they have to
 resolve correctly for services that are looking for them to work
 correctly.
 
 Since jk.mshome.net does not resolve publicly, either set up DNS on your
 LAN or a local hosts file on your PC to resolve the name.  Otherwise,
 don't use it anywhere, in any configuration, because it won't work.
 
 Typing ping localhost should return an IP address of 127.0.0.1.
 
 Typing ping jk.mshome.net should return nothing.
 
 Apache should be set to defaults, across the board (localhost).
 
 John
 
 
-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 9:23 AM
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache


I've checked the config file and the Server Name is 127.0.0.1, so I 
don't know why it says jk.mshome.net when I try to ping Localhost.

I've attache my config file again.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 14:15
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache



OK, that's a problem.  I don't have your httpd.conf any more,
but there
shouldn't be any hostnames in there whatsoever if all you are doing is
accessing localhost.  Instead of hostnames, it should say localhost.

John



-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 9:07 AM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: (OT) Cannot see Localhost on Apache


Raj,

I have pinged Localhost and 127.0.0.1 and have got responses.

However, I did notice that when I started to ping Localhost

it began

with the message:

Pinging jk.mshome.net [127.0.0.1] with 32 bytes of data:

jk.mshome.net is/was what I called my site when first installing 
Apache 1.3.26 - it asks you what you want to call the server, etc 
when you first install it. I have since changed it to 
shining-path.com in the Apache config file.

Maybe this is a problem??

I have checked the Apache error log and there are no errors

reported.


Geoff

-Original Message-
From: Raj Saini [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 13:54
To: Tomcat Users List
Subject: Re: (OT) Cannot see Localhost on Apache


Try there two things on DOS prompt of your PC.

ping localhost

ping 127.0.0.1

If you receive the ping response, it means you have your network 
installed properly. If you can not see the ping respone

there must be

some thing wrong with your network settings.

You can also have a look on the apache error logs. See if you apache

 
is accepting the browser request.

Raj

Geoffrey Khan wrote:

John,

I have Zone Alarm installed on my PC and it worked fine

with Apache

for a long time and I haven't changed any of the settings

in this to

prevent Apache from working. I've tried shutting down Zone Alarm, 
starting Apache and going to Localhost but still get a

blank, white

screen.

I haven't changed any network settings in any shape or form

or added

any kind of hardware.

I know Apache starts because I have a console window

running saying

Apache 1.3.26 running whenever I start it up (and it shows

up in the

Task Manager list when I 

Re: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Raj Saini

it is better to re-install your networks (the TCP/IP stack) then 
re-installing the apache. Apache can not change the behaviour of the 
ping commonad. It should be some thing to do with your hostname in the 
network settings or in the hosts file in your windoes directory.

Raj
Geoffrey Khan wrote:
 I pinged jk.mshome.net and the IP address is one I recognise.
 
 I'll just uninstall and reinstall Apache.
 
 Thanks for your help anyway.
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]] 
 Sent: 30 September 2002 14:51
 To: 'Tomcat Users List'
 Subject: RE: (OT) Cannot see Localhost on Apache
 
 
 
 I won't debate you.  You mentioned that you entered jk.mshome.net when
 the installer asked.  That's fine, but that means that jk.mshome.net has
 to work.  By work I mean resolve correctly and Apache has to be
 expecting requests for that hostname.  If Apache is set to look for
 localhost, and instead sees a request for jk.mshome.net, it won't work.
 Conversely, if Apache is set to look for jk.mshome.net but instead
 receives requests for localhost or 127.0.0.1, it won't work then,
 either.  As I said, things have to match.  If a previous version handled
 things differently, that's something that was probably resolved in later
 versions (which you are using now), for better or worse.
 
 John
 
 
 
-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 9:44 AM
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache


Well, that is what I'll do - reinstall Apache.

However, as I said previously, this whole situation arose due
to Apache
not showing the Localhost directory. It was working fine for 
over a year
on this PC and I didn't change ANY of the settings or add any hardware
prior to it's not working.


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 14:36
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache



OK, we're going around in circles.  There are a couple of issues here.

- if ServerName in httpd.conf is 127.0.0.1, then that is what
you put in
the URL
- 127.0.0.1 = localhost, on every computer in the world, it's 
a standard
- do you have a hosts file or some other DNS setting that is resolving
jk.mshome.net to 127.0.0.1?

Basically, things have to match.  If jk.mshome.net = 127.0.0.1, then 
jk.mshome.net should be your ServerName in httpd.conf.  My advice is 
to reinstall Apache, and don't answer _anything_ when asked for 
hostname, IP address, or anything else.  Let the installer figure that
 
 
stuff out on its own.  You can't just type hostnames willy-nilly, they
 
 
have to resolve correctly for services that are looking for them to 
work correctly.

Since jk.mshome.net does not resolve publicly, either set up
DNS on your
LAN or a local hosts file on your PC to resolve the name.  Otherwise,
don't use it anywhere, in any configuration, because it won't work.

Typing ping localhost should return an IP address of 127.0.0.1.

Typing ping jk.mshome.net should return nothing.

Apache should be set to defaults, across the board (localhost).

John


-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 9:23 AM
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache


I've checked the config file and the Server Name is 127.0.0.1, so I
don't know why it says jk.mshome.net when I try to ping Localhost.

I've attache my config file again.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 14:15
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache



OK, that's a problem.  I don't have your httpd.conf any more, but 
there shouldn't be any hostnames in there whatsoever if all you

are doing is

accessing localhost.  Instead of hostnames, it should say

localhost.

John



-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 9:07 AM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: (OT) Cannot see Localhost on Apache


Raj,

I have pinged Localhost and 127.0.0.1 and have got responses.

However, I did notice that when I started to ping Localhost

it began

with the message:

Pinging jk.mshome.net [127.0.0.1] with 32 bytes of data:

jk.mshome.net is/was what I called my site when first installing
Apache 1.3.26 - it asks you what you want to call the server, etc 
when you first install it. I have since changed it to 
shining-path.com in the Apache config file.

Maybe this is a problem??

I have checked the Apache error log and there are no errors

reported.


Geoff

-Original Message-
From: Raj Saini [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 13:54
To: Tomcat Users List
Subject: Re: (OT) Cannot see Localhost on Apache


Try there two things on DOS prompt of your PC.

ping localhost

ping 127.0.0.1

If you receive the ping response, it means you 

Re: Questions about Servlets

2002-09-30 Thread Patricio Vera S.

The servlet's user list is [EMAIL PROTECTED]

Saludos,
Patricio Vera S.


- Original Message -
From: Kenny G. Dubuisson, Jr. [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 30, 2002 9:52 AM
Subject: Questions about Servlets


 Could anyone tell me where a good servlet coding / debugging list is?  I
 tried the one on java.sun.com but had no luck.  I'm trying to get an
example
 servlet that came with a book to compile and not sure where to get help.
I
 thought I'd ask here since this is related.

 Thanks all,
 Kenny


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Start Apache/Jakarta-Tomcat as Non-root user

2002-09-30 Thread Matt Raible

I've modified your script for RedHat Linux 7.3, but my tomcat instance
still won't start on bootup.  I can execute ./S40tomcat, enter the
tomcat user's password and everything works fine.  Any ideas or log
files I can check?

#!/bin/bash
#
# Matt Raible 29 Sep 2002
# For use on RedHat Linux - tested on v7.3

case $1 in
start)
su tomcat /usr/local/tomcat1/bin/startup.sh
sleep 5
;;
stop)
su tomcat /usr/local/tomcat1/bin/shutdown.sh
;;
*)
echo Usage: $0 {start|stop}
exit 1
;;
esac

exit 0


 -Original Message-
 From: Jim Coble [mailto:[EMAIL PROTECTED]] 
 Sent: Saturday, September 28, 2002 8:11 AM
 To: Tomcat Users List
 Subject: Re: Start Apache/Jakarta-Tomcat as Non-root user
 
 
 I accomplished this yesterday on Solaris 8 using the following script 
 called at system startup (linked to S40tomcat in rc3.d)  ... Replace 
 tomcat after the two su commands with the user you want 
 Tomcat to run as 
 and, of course, change the paths as appropriate for your 
 system.  You'll 
 also need to make sure your tomcat user has appropriate 
 permissions on 
 your tomcat directories.
 --Jim
 
 #!/sbin/sh
 #
 # Jim Coble 09 Jun 02
 # Modified 27 Sep 02 to try to get to run as user tomcat
  
 CATALINA_HOME=/usr/local/tomcat;export CATALINA_HOME 
 JAVA_HOME=/usr/java;export JAVA_HOME
  
 case $1 in
 start)
 su tomcat /usr/local/tomcat/bin/startup.sh
 sleep 5
 ;;
 stop)
 su tomcat /usr/local/tomcat/bin/shutdown.sh
 ;;
 *)
 echo Usage: $0 {start|stop}
 exit 1
 ;;
 esac
  
 exit 0
 
 ==
 Jim Coble
 Senior Technology Specialist
 Center for Instructional Technology
 Email: [EMAIL PROTECTED]
 Voice: 919-660-5974  Fax: 919-660-5923
 Box 90198, Duke University
 Durham, NC 27708-0198
 ==
 
 
 
 
 
 Lars Nielsen Lind [EMAIL PROTECTED]
 09/28/2002 10:12 AM
 Please respond to Tomcat Users List
 
  
 To: [EMAIL PROTECTED]
 cc: 
 Subject:Start Apache/Jakarta-Tomcat as Non-root user
 
 
 Hi.
 
 Are the some easy ways to start Apache / Jakarta-Tomcat as 
 Non-root user 
 - for instance with a  user created for the purpose?
 
 Are the any security risks (for instance access to root) to 
 be aware of?
 
 Best regards,
 
 Lars Nielsen Lind
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 
 
 



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Start Apache/Jakarta-Tomcat as Non-root user

2002-09-30 Thread Turner, John


My guess is your environment variables (JAVA_HOME, CATALINA_HOME) are not
available at startup, but they are when you run the script from a command
line after logging in.

John


 -Original Message-
 From: Matt Raible [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 10:12 AM
 To: 'Tomcat Users List'
 Subject: RE: Start Apache/Jakarta-Tomcat as Non-root user
 
 
 I've modified your script for RedHat Linux 7.3, but my tomcat instance
 still won't start on bootup.  I can execute ./S40tomcat, enter the
 tomcat user's password and everything works fine.  Any ideas or log
 files I can check?
 
 #!/bin/bash
 #
 # Matt Raible 29 Sep 2002
 # For use on RedHat Linux - tested on v7.3
 
 case $1 in
 start)
 su tomcat /usr/local/tomcat1/bin/startup.sh
 sleep 5
 ;;
 stop)
 su tomcat /usr/local/tomcat1/bin/shutdown.sh
 ;;
 *)
 echo Usage: $0 {start|stop}
 exit 1
 ;;
 esac
 
 exit 0
 
 
  -Original Message-
  From: Jim Coble [mailto:[EMAIL PROTECTED]] 
  Sent: Saturday, September 28, 2002 8:11 AM
  To: Tomcat Users List
  Subject: Re: Start Apache/Jakarta-Tomcat as Non-root user
  
  
  I accomplished this yesterday on Solaris 8 using the 
 following script 
  called at system startup (linked to S40tomcat in rc3.d)  
 ... Replace 
  tomcat after the two su commands with the user you want 
  Tomcat to run as 
  and, of course, change the paths as appropriate for your 
  system.  You'll 
  also need to make sure your tomcat user has appropriate 
  permissions on 
  your tomcat directories.
  --Jim
  
  #!/sbin/sh
  #
  # Jim Coble 09 Jun 02
  # Modified 27 Sep 02 to try to get to run as user tomcat
   
  CATALINA_HOME=/usr/local/tomcat;export CATALINA_HOME 
  JAVA_HOME=/usr/java;export JAVA_HOME
   
  case $1 in
  start)
  su tomcat /usr/local/tomcat/bin/startup.sh
  sleep 5
  ;;
  stop)
  su tomcat /usr/local/tomcat/bin/shutdown.sh
  ;;
  *)
  echo Usage: $0 {start|stop}
  exit 1
  ;;
  esac
   
  exit 0
  
  ==
  Jim Coble
  Senior Technology Specialist
  Center for Instructional Technology
  Email: [EMAIL PROTECTED]
  Voice: 919-660-5974  Fax: 919-660-5923
  Box 90198, Duke University
  Durham, NC 27708-0198
  ==
  
  
  
  
  
  Lars Nielsen Lind [EMAIL PROTECTED]
  09/28/2002 10:12 AM
  Please respond to Tomcat Users List
  
   
  To: [EMAIL PROTECTED]
  cc: 
  Subject:Start Apache/Jakarta-Tomcat as Non-root user
  
  
  Hi.
  
  Are the some easy ways to start Apache / Jakarta-Tomcat as 
  Non-root user 
  - for instance with a  user created for the purpose?
  
  Are the any security risks (for instance access to root) to 
  be aware of?
  
  Best regards,
  
  Lars Nielsen Lind
  
  
  --
  To unsubscribe, e-mail:   
  mailto:tomcat-user- [EMAIL PROTECTED]
  For 
  additional commands, 
  e-mail: mailto:[EMAIL PROTECTED]
  
  
  
  
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Datasource

2002-09-30 Thread Lindomar

Hi everybody!
I'm using this code for connect my app in tomcat 4.1:

...
Connection conn = null;
InitialContext ic = new InitialContext();
DataSource ds = (DataSource)ic.lookup(myjndi)
 conn = ds.getConnection();
...
$
I configurate my connection in Adminitration Tool of tomcat. 
For JNDI Name i set to myjndi

Until here ok, but when i start my app, appears exception: 
Name myjndi is not bound in this Context 

Any idea for this problem?

Thanks in advanced.





RE: iis-tomcat integration problem

2002-09-30 Thread Miguel Angel Mulero Martinez

In my workers.properties I define a worker:

# Workers list
worker.list=miajp

# Workers conf
worker.miajp.type=ajp13
worker.miajp.port=8009
worker.miajp.host=localhost

I don't see in your file something like this.

Regards.

-Mensaje original-
De: Gunes Agar [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 30 de septiembre de 2002 15:34
Para: '[EMAIL PROTECTED]'
Asunto: iis-tomcat integration problem

Hi,

I am trying to integrate iis with tomcat. I get the isapi filter's green
arrow. I see that jsps are working at 8080
but when i try to run jsps from 80 it gives error 404

I defined the registry settings

EXTENSION_URI:  \JAKARTA\ISAPI_REDIRECT.DLL
LOG_FILE : C:\TOMCAT\LOGS\ISAPI.LOG
LOG_LEVEL : DEBUG
WORKER_FILE : C:\TOMCAT\CONF\JK\WORKERS.PROPERTIES
WORKER_MOUNT_FILE  :C:\TOMCAT\CONF\JK\URIWORKERMAP.PROPERTIES

I am also using the appropriate version of isapi_redirect.dll  ( for tomcat
3.3)

isapi log file includes this:

[Mon Sep 30 14:53:51 2002]  [jk_isapi_plugin.c (555)]: HttpFilterProc
started
[Mon Sep 30 14:53:51 2002]  [jk_isapi_plugin.c (600)]: In HttpFilterProc
Virtual Host redirection of /localhost/examples/jsp/index.html
[Mon Sep 30 14:53:51 2002]  [jk_uri_worker_map.c (351)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Sep 30 14:53:51 2002]  [jk_uri_worker_map.c (368)]: Attempting to map
URI '/localhost/examples/jsp/index.html'
[Mon Sep 30 14:53:51 2002]  [jk_uri_worker_map.c (456)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Mon Sep 30 14:53:51 2002]  [jk_isapi_plugin.c (606)]: In HttpFilterProc
test Default redirection of /examples/jsp/index.html
[Mon Sep 30 14:53:51 2002]  [jk_uri_worker_map.c (351)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Sep 30 14:53:51 2002]  [jk_uri_worker_map.c (368)]: Attempting to map
URI '/examples/jsp/index.html'
[Mon Sep 30 14:53:51 2002]  [jk_uri_worker_map.c (391)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp12 -
/examples/
[Mon Sep 30 14:53:51 2002]  [jk_isapi_plugin.c (625)]: HttpFilterProc
[/examples/jsp/index.html] is a servlet url - should redirect to ajp12
[Mon Sep 30 14:53:51 2002]  [jk_isapi_plugin.c (647)]: HttpFilterProc check
if [/examples/jsp/index.html] is points to the web-inf directory

workers.properties file is like this:(I changed java home path)

workers.tomcat_home=c:\tomcat
# workers.tomcat_home=/usr/local/tomcat

#
# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
#workers.java_home=c:\jdk1.3
workers.java_home=c:\j2sdk1.4.0
# workers.java_home=/usr/java


Thanks in advance,

Gunes


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Tomcat/Jboss service.xml

2002-09-30 Thread Lea Allison

Hi

I am trying to configure the following in the tomcat/JBoss 3
tomcat4-service.xml file:

Context path=/themes docBase=/usr/local/XSL_Templates debug=0/

but it doesn't appear to work. Any help would be helpful!
Thanks
Lea

== 
This message contains confidential information and is intended solely for
the use of the individual or entity to whom it is addressed. If you are not
the named addressee you should not disseminate, distribute or copy this
email. Please inform the sender immediately if you have received this e-mail
by mistake and delete this email from your system. Email transmission cannot
be guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or be incomplete. The
sender therefore does not accept liability for any errors or omissions in
the contents of this message, which arise as a result of email transmission.
If verification is required please request a hard copy version. No contracts
may be concluded on behalf of Virgin Express SA/NV by means of email
communication. Finally, the recipient should check this e-mail and any
attachments for the presence of viruses. The company accepts no liability
for any damage caused by any virus transmitted by this email. 
==

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Geoffrey Khan

Raj,

I checked the HOSTS.sam file in the Windows directory and 127.0.0.1
Localhost is listed and nothing else.

I do not have any Proxy server settings set-up (and didn't previously
when Apache was working fine).

I have a LAN card installed on this PC - the computer name is JK and the
Workgroup is MSHOME. This is obviously where Apache got the
jk.mshome.net configuration from.


Geoff

-Original Message-
From: Raj Saini [mailto:[EMAIL PROTECTED]] 
Sent: 30 September 2002 14:59
To: Tomcat Users List
Subject: Re: (OT) Cannot see Localhost on Apache


There is nothing wrong with the the apache Installation. telnet to port 
80 shows that apache is configured properly and working. Few things to 
check are:-

Check the hosts file int he window directory. See if you have setup any 
hosts in the host files.

Check proxy setting of your browser.

Do you have a LAN card installed on your PC? If yest what is the host 
name you have set in your LAN settings?

There is a problem with network settings. Browser is not sending the 
correct hostname to the server and therefore you dont see any thing.

THe telnet shows that it got the index.html and other image files.

Raj



Your browser proxy setting.
Geoffrey Khan wrote:
 Well, that is what I'll do - reinstall Apache.
 
 However, as I said previously, this whole situation arose due to 
 Apache not showing the Localhost directory. It was working fine for 
 over a year on this PC and I didn't change ANY of the settings or add 
 any hardware prior to it's not working.
 
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: 30 September 2002 14:36
 To: 'Tomcat Users List'
 Subject: RE: (OT) Cannot see Localhost on Apache
 
 
 
 OK, we're going around in circles.  There are a couple of issues here.
 
 - if ServerName in httpd.conf is 127.0.0.1, then that is what you put 
 in the URL
 - 127.0.0.1 = localhost, on every computer in the world, it's a 
 standard
 - do you have a hosts file or some other DNS setting that is resolving
 jk.mshome.net to 127.0.0.1?
 
 Basically, things have to match.  If jk.mshome.net = 127.0.0.1, then 
 jk.mshome.net should be your ServerName in httpd.conf.  My advice is 
 to reinstall Apache, and don't answer _anything_ when asked for 
 hostname, IP address, or anything else.  Let the installer figure that

 stuff out on its own.  You can't just type hostnames willy-nilly, they

 have to resolve correctly for services that are looking for them to 
 work correctly.
 
 Since jk.mshome.net does not resolve publicly, either set up DNS on 
 your LAN or a local hosts file on your PC to resolve the name.  
 Otherwise, don't use it anywhere, in any configuration, because it 
 won't work.
 
 Typing ping localhost should return an IP address of 127.0.0.1.
 
 Typing ping jk.mshome.net should return nothing.
 
 Apache should be set to defaults, across the board (localhost).
 
 John
 
 
-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 9:23 AM
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache


I've checked the config file and the Server Name is 127.0.0.1, so I
don't know why it says jk.mshome.net when I try to ping Localhost.

I've attache my config file again.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 14:15
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache



OK, that's a problem.  I don't have your httpd.conf any more, but 
there shouldn't be any hostnames in there whatsoever if all you are 
doing is accessing localhost.  Instead of hostnames, it should say 
localhost.

John



-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 9:07 AM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: (OT) Cannot see Localhost on Apache


Raj,

I have pinged Localhost and 127.0.0.1 and have got responses.

However, I did notice that when I started to ping Localhost

it began

with the message:

Pinging jk.mshome.net [127.0.0.1] with 32 bytes of data:

jk.mshome.net is/was what I called my site when first installing
Apache 1.3.26 - it asks you what you want to call the server, etc 
when you first install it. I have since changed it to 
shining-path.com in the Apache config file.

Maybe this is a problem??

I have checked the Apache error log and there are no errors

reported.


Geoff

-Original Message-
From: Raj Saini [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 13:54
To: Tomcat Users List
Subject: Re: (OT) Cannot see Localhost on Apache


Try there two things on DOS prompt of your PC.

ping localhost

ping 127.0.0.1

If you receive the ping response, it means you have your network
installed properly. If you can not see the ping respone

there must be

some thing wrong with your network settings.

You can also have a look on the apache error logs. See if you apache

 
is accepting the browser request.


reloadable=true its OK

2002-09-30 Thread Lindomar

For somebody that was the same problem, i'll check the problem...
I placed my driver in /WEB-INF/lib and /shared/lib, then, when i changed some class, 
my application didn´t connect with my database again.
If you only place  in /shared/lib, works!

That´s all folks.



RE: Datasource

2002-09-30 Thread Miguel Angel Mulero Martinez

You must define the DataSource in your web.xml too. For example:

  resource-ref
descriptionMy datasource/description
res-ref-namemyjndi/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
  /resource-ref

Regards.

-Mensaje original-
De: Lindomar [mailto:[EMAIL PROTECTED]]
Enviado el: domingo, 29 de septiembre de 2002 20:41
Para: Tomcat Users List
Asunto: Datasource

Hi everybody!
I'm using this code for connect my app in tomcat 4.1:

...
Connection conn = null;
InitialContext ic = new InitialContext();
DataSource ds = (DataSource)ic.lookup(myjndi)
 conn = ds.getConnection();
...
$
I configurate my connection in Adminitration Tool of tomcat.
For JNDI Name i set to myjndi

Until here ok, but when i start my app, appears exception:
Name myjndi is not bound in this Context

Any idea for this problem?

Thanks in advanced.



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Raj Saini

yes, that is where the trouble start.

Are you using this card for Internet access? You can try re-installing 
the network. I can certainly tell you now that this is the problem of 
your network nothing else.

If you can remove your card and network setting, try installing only 
dialup adapter.

There is certainly some thing wrong with your network. Check for some 
virus attack. That may also be a possibitiy.

Raj
Geoffrey Khan wrote:
 Raj,
 
 I checked the HOSTS.sam file in the Windows directory and 127.0.0.1
 Localhost is listed and nothing else.
 
 I do not have any Proxy server settings set-up (and didn't previously
 when Apache was working fine).
 
 I have a LAN card installed on this PC - the computer name is JK and the
 Workgroup is MSHOME. This is obviously where Apache got the
 jk.mshome.net configuration from.
 
 
 Geoff
 
 -Original Message-
 From: Raj Saini [mailto:[EMAIL PROTECTED]] 
 Sent: 30 September 2002 14:59
 To: Tomcat Users List
 Subject: Re: (OT) Cannot see Localhost on Apache
 
 
 There is nothing wrong with the the apache Installation. telnet to port 
 80 shows that apache is configured properly and working. Few things to 
 check are:-
 
 Check the hosts file int he window directory. See if you have setup any 
 hosts in the host files.
 
 Check proxy setting of your browser.
 
 Do you have a LAN card installed on your PC? If yest what is the host 
 name you have set in your LAN settings?
 
 There is a problem with network settings. Browser is not sending the 
 correct hostname to the server and therefore you dont see any thing.
 
 THe telnet shows that it got the index.html and other image files.
 
 Raj
 
 
 
 Your browser proxy setting.
 Geoffrey Khan wrote:
 
Well, that is what I'll do - reinstall Apache.

However, as I said previously, this whole situation arose due to 
Apache not showing the Localhost directory. It was working fine for 
over a year on this PC and I didn't change ANY of the settings or add 
any hardware prior to it's not working.


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 14:36
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache



OK, we're going around in circles.  There are a couple of issues here.

- if ServerName in httpd.conf is 127.0.0.1, then that is what you put 
in the URL
- 127.0.0.1 = localhost, on every computer in the world, it's a 
standard
- do you have a hosts file or some other DNS setting that is resolving
jk.mshome.net to 127.0.0.1?

Basically, things have to match.  If jk.mshome.net = 127.0.0.1, then 
jk.mshome.net should be your ServerName in httpd.conf.  My advice is 
to reinstall Apache, and don't answer _anything_ when asked for 
hostname, IP address, or anything else.  Let the installer figure that
 
 
stuff out on its own.  You can't just type hostnames willy-nilly, they
 
 
have to resolve correctly for services that are looking for them to 
work correctly.

Since jk.mshome.net does not resolve publicly, either set up DNS on 
your LAN or a local hosts file on your PC to resolve the name.  
Otherwise, don't use it anywhere, in any configuration, because it 
won't work.

Typing ping localhost should return an IP address of 127.0.0.1.

Typing ping jk.mshome.net should return nothing.

Apache should be set to defaults, across the board (localhost).

John



-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 9:23 AM
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache


I've checked the config file and the Server Name is 127.0.0.1, so I
don't know why it says jk.mshome.net when I try to ping Localhost.

I've attache my config file again.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 14:15
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache



OK, that's a problem.  I don't have your httpd.conf any more, but 
there shouldn't be any hostnames in there whatsoever if all you are 
doing is accessing localhost.  Instead of hostnames, it should say 
localhost.

John




-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 9:07 AM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: (OT) Cannot see Localhost on Apache


Raj,

I have pinged Localhost and 127.0.0.1 and have got responses.

However, I did notice that when I started to ping Localhost

it began


with the message:

Pinging jk.mshome.net [127.0.0.1] with 32 bytes of data:

jk.mshome.net is/was what I called my site when first installing
Apache 1.3.26 - it asks you what you want to call the server, etc 
when you first install it. I have since changed it to 
shining-path.com in the Apache config file.

Maybe this is a problem??

I have checked the Apache error log and there are no errors

reported.


Geoff

-Original Message-
From: Raj Saini [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 

RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Miguel Angel Mulero Martinez

The file is only hosts without .sam


-Mensaje original-
De: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 30 de septiembre de 2002 16:25
Para: 'Tomcat Users List'
Asunto: RE: (OT) Cannot see Localhost on Apache

Raj,

I checked the HOSTS.sam file in the Windows directory and 127.0.0.1
Localhost is listed and nothing else.

I do not have any Proxy server settings set-up (and didn't previously
when Apache was working fine).

I have a LAN card installed on this PC - the computer name is JK and the
Workgroup is MSHOME. This is obviously where Apache got the
jk.mshome.net configuration from.


Geoff

-Original Message-
From: Raj Saini [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 14:59
To: Tomcat Users List
Subject: Re: (OT) Cannot see Localhost on Apache


There is nothing wrong with the the apache Installation. telnet to port
80 shows that apache is configured properly and working. Few things to
check are:-

Check the hosts file int he window directory. See if you have setup any
hosts in the host files.

Check proxy setting of your browser.

Do you have a LAN card installed on your PC? If yest what is the host
name you have set in your LAN settings?

There is a problem with network settings. Browser is not sending the
correct hostname to the server and therefore you dont see any thing.

THe telnet shows that it got the index.html and other image files.

Raj



Your browser proxy setting.
Geoffrey Khan wrote:
 Well, that is what I'll do - reinstall Apache.

 However, as I said previously, this whole situation arose due to
 Apache not showing the Localhost directory. It was working fine for
 over a year on this PC and I didn't change ANY of the settings or add
 any hardware prior to it's not working.


 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: 30 September 2002 14:36
 To: 'Tomcat Users List'
 Subject: RE: (OT) Cannot see Localhost on Apache



 OK, we're going around in circles.  There are a couple of issues here.

 - if ServerName in httpd.conf is 127.0.0.1, then that is what you put
 in the URL
 - 127.0.0.1 = localhost, on every computer in the world, it's a
 standard
 - do you have a hosts file or some other DNS setting that is resolving
 jk.mshome.net to 127.0.0.1?

 Basically, things have to match.  If jk.mshome.net = 127.0.0.1, then
 jk.mshome.net should be your ServerName in httpd.conf.  My advice is
 to reinstall Apache, and don't answer _anything_ when asked for
 hostname, IP address, or anything else.  Let the installer figure that

 stuff out on its own.  You can't just type hostnames willy-nilly, they

 have to resolve correctly for services that are looking for them to
 work correctly.

 Since jk.mshome.net does not resolve publicly, either set up DNS on
 your LAN or a local hosts file on your PC to resolve the name.
 Otherwise, don't use it anywhere, in any configuration, because it
 won't work.

 Typing ping localhost should return an IP address of 127.0.0.1.

 Typing ping jk.mshome.net should return nothing.

 Apache should be set to defaults, across the board (localhost).

 John


-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 9:23 AM
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache


I've checked the config file and the Server Name is 127.0.0.1, so I
don't know why it says jk.mshome.net when I try to ping Localhost.

I've attache my config file again.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 14:15
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache



OK, that's a problem.  I don't have your httpd.conf any more, but
there shouldn't be any hostnames in there whatsoever if all you are
doing is accessing localhost.  Instead of hostnames, it should say
localhost.

John



-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 9:07 AM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: (OT) Cannot see Localhost on Apache


Raj,

I have pinged Localhost and 127.0.0.1 and have got responses.

However, I did notice that when I started to ping Localhost

it began

with the message:

Pinging jk.mshome.net [127.0.0.1] with 32 bytes of data:

jk.mshome.net is/was what I called my site when first installing
Apache 1.3.26 - it asks you what you want to call the server, etc
when you first install it. I have since changed it to
shining-path.com in the Apache config file.

Maybe this is a problem??

I have checked the Apache error log and there are no errors

reported.


Geoff

-Original Message-
From: Raj Saini [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 13:54
To: Tomcat Users List
Subject: Re: (OT) Cannot see Localhost on Apache


Try there two things on DOS prompt of your PC.

ping localhost

ping 127.0.0.1

If you receive the ping response, it means you have your network
installed properly. If you can 

RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Chris Thompson

looks as though it is listening on port 81?

-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 14:23
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache


I've checked the config file and the Server Name is 127.0.0.1, so I
don't know why it says jk.mshome.net when I try to ping Localhost.

I've attache my config file again.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: 30 September 2002 14:15
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache



OK, that's a problem.  I don't have your httpd.conf any more, but there
shouldn't be any hostnames in there whatsoever if all you are doing is
accessing localhost.  Instead of hostnames, it should say localhost.

John


 -Original Message-
 From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 9:07 AM
 To: 'Tomcat Users List'; [EMAIL PROTECTED]
 Subject: RE: (OT) Cannot see Localhost on Apache
 
 
 Raj,
 
 I have pinged Localhost and 127.0.0.1 and have got responses.
 
 However, I did notice that when I started to ping Localhost it began 
 with the message:
 
 Pinging jk.mshome.net [127.0.0.1] with 32 bytes of data:
 
 jk.mshome.net is/was what I called my site when first
 installing Apache
 1.3.26 - it asks you what you want to call the server, etc when you
 first install it. I have since changed it to shining-path.com in the
 Apache config file.
 
 Maybe this is a problem??
 
 I have checked the Apache error log and there are no errors reported.
 
 
 Geoff
 
 -Original Message-
 From: Raj Saini [mailto:[EMAIL PROTECTED]]
 Sent: 30 September 2002 13:54
 To: Tomcat Users List
 Subject: Re: (OT) Cannot see Localhost on Apache
 
 
 Try there two things on DOS prompt of your PC.
 
 ping localhost
 
 ping 127.0.0.1
 
 If you receive the ping response, it means you have your network
 installed properly. If you can not see the ping respone there must be 
 some thing wrong with your network settings.
 
 You can also have a look on the apache error logs. See if you
 apache is 
 accepting the browser request.
 
 Raj
 
 Geoffrey Khan wrote:
  John,
  
  I have Zone Alarm installed on my PC and it worked fine with Apache
  for a long time and I haven't changed any of the settings 
 in this to
  prevent Apache from working. I've tried shutting down Zone Alarm,
  starting Apache and going to Localhost but still get a blank, white 
  screen.
  
  I haven't changed any network settings in any shape or form
 or added
  any kind of hardware.
  
  I know Apache starts because I have a console window running saying
  Apache 1.3.26 running whenever I start it up (and it shows 
 up in the
  Task Manager list when I do start it).
  
  Geoff
  
  
  -Original Message-
  From: Turner, John [mailto:[EMAIL PROTECTED]]
  Sent: 30 September 2002 13:26
  To: 'Tomcat Users List'
  Subject: RE: (OT) Cannot see Localhost on Apache
  
  
  
  Did you install a firewall?  Did you change your network
 settings in
  any way, shape or form?  Add a cable modem, DSL router, or other
  network hardware?  Do you have some sort of virus filter running on 
  port 80? Are you sure Apache even starts?  Apache works out 
 of the box
 
  in a default install...there could be any number of other
 reasons why
  it doesn't serve pages, none of them related to the Apache config
  file.
  
  John
  
  -Original Message-
  From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 30, 2002 7:05 AM
  To: [EMAIL PROTECTED]
  Subject: (OT) Cannot see Localhost on Apache
  
  
  Hello,
  
  Sorry for the off topic manner of this email but I am
 having trouble
  with my Apache server and was wondering if anyone on this list can
  help me?
  
  For about a year I had Apache 1.3.20 set-up on my Windows
 98SE machine
 
  running PHP 4.1.1 (and Coldfusion) on it with no problems. I would
  type http://localhost/ (or http://127.0.0.1/)  in my browser and be 
  able to see the directories with all my files in them and edit them 
  accordingly.
  
  However, last week I started up Apache and opened a browser
 and typed
  Localhost but nothing happened! All I would get would be a
 white blank
 
  screen and if I typed in the address of a specific file within the
  directory I would get a Pager cannot be displayed error.
  
  I tested this in IE, Netscape and Mozilla (along with clearing the
  cache in each browser) and all of them were the same.
  
  I decided to uninstall Apache 1.3.20 and upgrade to 1.3.26 figuring
  that if I started with a newer version of Apache the 
 problem would be
  eradicated and I  would have a more up-to-date version of
 the server.
  
  This I have done, but still I cannot gain access to any of my files
  and still it gives me a blank white screen if I type 
 Localhost and a
  Page cannot be displayed error message if I try and navigate to a
  specific file within the directory.
  
  I have scanned the 

RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Geoffrey Khan

Yes, I am using this PC for internet access. Basically, I have an XP PC
downstairs which connects directly to the net (and is the master PC in
the network) and this one with the Apache server on it is connected as
the slave.

I did think I may have a virus, but haven't run a check yet because it
takes so long - I mean REALLY long.




-Original Message-
From: Raj Saini [mailto:[EMAIL PROTECTED]] 
Sent: 30 September 2002 15:32
To: Tomcat Users List
Subject: Re: (OT) Cannot see Localhost on Apache


yes, that is where the trouble start.

Are you using this card for Internet access? You can try re-installing 
the network. I can certainly tell you now that this is the problem of 
your network nothing else.

If you can remove your card and network setting, try installing only 
dialup adapter.

There is certainly some thing wrong with your network. Check for some 
virus attack. That may also be a possibitiy.

Raj
Geoffrey Khan wrote:
 Raj,
 
 I checked the HOSTS.sam file in the Windows directory and 127.0.0.1 
 Localhost is listed and nothing else.
 
 I do not have any Proxy server settings set-up (and didn't previously 
 when Apache was working fine).
 
 I have a LAN card installed on this PC - the computer name is JK and 
 the Workgroup is MSHOME. This is obviously where Apache got the 
 jk.mshome.net configuration from.
 
 
 Geoff
 
 -Original Message-
 From: Raj Saini [mailto:[EMAIL PROTECTED]]
 Sent: 30 September 2002 14:59
 To: Tomcat Users List
 Subject: Re: (OT) Cannot see Localhost on Apache
 
 
 There is nothing wrong with the the apache Installation. telnet to 
 port
 80 shows that apache is configured properly and working. Few things to

 check are:-
 
 Check the hosts file int he window directory. See if you have setup 
 any
 hosts in the host files.
 
 Check proxy setting of your browser.
 
 Do you have a LAN card installed on your PC? If yest what is the host
 name you have set in your LAN settings?
 
 There is a problem with network settings. Browser is not sending the
 correct hostname to the server and therefore you dont see any thing.
 
 THe telnet shows that it got the index.html and other image files.
 
 Raj
 
 
 
 Your browser proxy setting.
 Geoffrey Khan wrote:
 
Well, that is what I'll do - reinstall Apache.

However, as I said previously, this whole situation arose due to
Apache not showing the Localhost directory. It was working fine for 
over a year on this PC and I didn't change ANY of the settings or add 
any hardware prior to it's not working.


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 14:36
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache



OK, we're going around in circles.  There are a couple of issues here.

- if ServerName in httpd.conf is 127.0.0.1, then that is what you put
in the URL
- 127.0.0.1 = localhost, on every computer in the world, it's a 
standard
- do you have a hosts file or some other DNS setting that is resolving
jk.mshome.net to 127.0.0.1?

Basically, things have to match.  If jk.mshome.net = 127.0.0.1, then
jk.mshome.net should be your ServerName in httpd.conf.  My advice is 
to reinstall Apache, and don't answer _anything_ when asked for 
hostname, IP address, or anything else.  Let the installer figure that
 
 
stuff out on its own.  You can't just type hostnames willy-nilly, they
 
 
have to resolve correctly for services that are looking for them to
work correctly.

Since jk.mshome.net does not resolve publicly, either set up DNS on
your LAN or a local hosts file on your PC to resolve the name.  
Otherwise, don't use it anywhere, in any configuration, because it 
won't work.

Typing ping localhost should return an IP address of 127.0.0.1.

Typing ping jk.mshome.net should return nothing.

Apache should be set to defaults, across the board (localhost).

John



-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 9:23 AM
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache


I've checked the config file and the Server Name is 127.0.0.1, so I 
don't know why it says jk.mshome.net when I try to ping Localhost.

I've attache my config file again.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 14:15
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache



OK, that's a problem.  I don't have your httpd.conf any more, but
there shouldn't be any hostnames in there whatsoever if all you are 
doing is accessing localhost.  Instead of hostnames, it should say 
localhost.

John




-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 9:07 AM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: (OT) Cannot see Localhost on Apache


Raj,

I have pinged Localhost and 127.0.0.1 and have got responses.

However, I did notice that when I started to ping Localhost

it began



RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Geoffrey Khan

The HOSTS file (without .sam) lists an IP address of:

142.179.202.248 www.paramagnus.com

I checked this URL out and it appears to be the URL of a software
manufacturer (who specifically make SpeedNet - which I had installed on
my PC some time ago).

Why that is there I have no idea? And that is the only IP address in
that file. The HOSTS.sam file has the 127.0.0.1 localhost listed and
nothing else.


-Original Message-
From: Miguel Angel Mulero Martinez
[mailto:[EMAIL PROTECTED]] 
Sent: 30 September 2002 15:44
To: Tomcat Users List
Subject: RE: (OT) Cannot see Localhost on Apache


The file is only hosts without .sam


-Mensaje original-
De: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 30 de septiembre de 2002 16:25
Para: 'Tomcat Users List'
Asunto: RE: (OT) Cannot see Localhost on Apache

Raj,

I checked the HOSTS.sam file in the Windows directory and 127.0.0.1
Localhost is listed and nothing else.

I do not have any Proxy server settings set-up (and didn't previously
when Apache was working fine).

I have a LAN card installed on this PC - the computer name is JK and the
Workgroup is MSHOME. This is obviously where Apache got the
jk.mshome.net configuration from.


Geoff

-Original Message-
From: Raj Saini [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 14:59
To: Tomcat Users List
Subject: Re: (OT) Cannot see Localhost on Apache


There is nothing wrong with the the apache Installation. telnet to port
80 shows that apache is configured properly and working. Few things to
check are:-

Check the hosts file int he window directory. See if you have setup any
hosts in the host files.

Check proxy setting of your browser.

Do you have a LAN card installed on your PC? If yest what is the host
name you have set in your LAN settings?

There is a problem with network settings. Browser is not sending the
correct hostname to the server and therefore you dont see any thing.

THe telnet shows that it got the index.html and other image files.

Raj



Your browser proxy setting.
Geoffrey Khan wrote:
 Well, that is what I'll do - reinstall Apache.

 However, as I said previously, this whole situation arose due to 
 Apache not showing the Localhost directory. It was working fine for 
 over a year on this PC and I didn't change ANY of the settings or add 
 any hardware prior to it's not working.


 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: 30 September 2002 14:36
 To: 'Tomcat Users List'
 Subject: RE: (OT) Cannot see Localhost on Apache



 OK, we're going around in circles.  There are a couple of issues here.

 - if ServerName in httpd.conf is 127.0.0.1, then that is what you put 
 in the URL
 - 127.0.0.1 = localhost, on every computer in the world, it's a 
 standard
 - do you have a hosts file or some other DNS setting that is resolving

 jk.mshome.net to 127.0.0.1?

 Basically, things have to match.  If jk.mshome.net = 127.0.0.1, then 
 jk.mshome.net should be your ServerName in httpd.conf.  My advice is 
 to reinstall Apache, and don't answer _anything_ when asked for 
 hostname, IP address, or anything else.  Let the installer figure that

 stuff out on its own.  You can't just type hostnames willy-nilly, they

 have to resolve correctly for services that are looking for them to 
 work correctly.

 Since jk.mshome.net does not resolve publicly, either set up DNS on 
 your LAN or a local hosts file on your PC to resolve the name. 
 Otherwise, don't use it anywhere, in any configuration, because it 
 won't work.

 Typing ping localhost should return an IP address of 127.0.0.1.

 Typing ping jk.mshome.net should return nothing.

 Apache should be set to defaults, across the board (localhost).

 John


-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 9:23 AM
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache


I've checked the config file and the Server Name is 127.0.0.1, so I 
don't know why it says jk.mshome.net when I try to ping Localhost.

I've attache my config file again.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 14:15
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache



OK, that's a problem.  I don't have your httpd.conf any more, but 
there shouldn't be any hostnames in there whatsoever if all you are 
doing is accessing localhost.  Instead of hostnames, it should say 
localhost.

John



-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 9:07 AM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: (OT) Cannot see Localhost on Apache


Raj,

I have pinged Localhost and 127.0.0.1 and have got responses.

However, I did notice that when I started to ping Localhost

it began

with the message:

Pinging jk.mshome.net [127.0.0.1] with 32 bytes of data:

jk.mshome.net is/was what I called my site when first 

Re: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Raj Saini

Run the following command on Dos prompt

ipconfig

Do you see an IP adress apart from 127.0.0.1? If you see some thing like 
192... or 10.. try accessing your application by enterging this addess 
in ur browser. However, your network setting shows that your network is 
missconfigured. Your jk.mshome.net should have returned a private IP and 
not the localhost.

I strongly recommed to run a virus scanner and re-install your network. 
This problem is related to network and not apache.

Raj

Geoffrey Khan wrote:
 Yes, I am using this PC for internet access. Basically, I have an XP PC
 downstairs which connects directly to the net (and is the master PC in
 the network) and this one with the Apache server on it is connected as
 the slave.
 
 I did think I may have a virus, but haven't run a check yet because it
 takes so long - I mean REALLY long.
 
 
 
 
 -Original Message-
 From: Raj Saini [mailto:[EMAIL PROTECTED]] 
 Sent: 30 September 2002 15:32
 To: Tomcat Users List
 Subject: Re: (OT) Cannot see Localhost on Apache
 
 
 yes, that is where the trouble start.
 
 Are you using this card for Internet access? You can try re-installing 
 the network. I can certainly tell you now that this is the problem of 
 your network nothing else.
 
 If you can remove your card and network setting, try installing only 
 dialup adapter.
 
 There is certainly some thing wrong with your network. Check for some 
 virus attack. That may also be a possibitiy.
 
 Raj
 Geoffrey Khan wrote:
 
Raj,

I checked the HOSTS.sam file in the Windows directory and 127.0.0.1 
Localhost is listed and nothing else.

I do not have any Proxy server settings set-up (and didn't previously 
when Apache was working fine).

I have a LAN card installed on this PC - the computer name is JK and 
the Workgroup is MSHOME. This is obviously where Apache got the 
jk.mshome.net configuration from.


Geoff

-Original Message-
From: Raj Saini [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 14:59
To: Tomcat Users List
Subject: Re: (OT) Cannot see Localhost on Apache


There is nothing wrong with the the apache Installation. telnet to 
port
80 shows that apache is configured properly and working. Few things to
 
 
check are:-

Check the hosts file int he window directory. See if you have setup 
any
hosts in the host files.

Check proxy setting of your browser.

Do you have a LAN card installed on your PC? If yest what is the host
name you have set in your LAN settings?

There is a problem with network settings. Browser is not sending the
correct hostname to the server and therefore you dont see any thing.

THe telnet shows that it got the index.html and other image files.

Raj



Your browser proxy setting.
Geoffrey Khan wrote:


Well, that is what I'll do - reinstall Apache.

However, as I said previously, this whole situation arose due to
Apache not showing the Localhost directory. It was working fine for 
over a year on this PC and I didn't change ANY of the settings or add 
any hardware prior to it's not working.


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 14:36
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache



OK, we're going around in circles.  There are a couple of issues here.

- if ServerName in httpd.conf is 127.0.0.1, then that is what you put
in the URL
- 127.0.0.1 = localhost, on every computer in the world, it's a 
standard
- do you have a hosts file or some other DNS setting that is resolving
jk.mshome.net to 127.0.0.1?

Basically, things have to match.  If jk.mshome.net = 127.0.0.1, then
jk.mshome.net should be your ServerName in httpd.conf.  My advice is 
to reinstall Apache, and don't answer _anything_ when asked for 
hostname, IP address, or anything else.  Let the installer figure that


stuff out on its own.  You can't just type hostnames willy-nilly, they


have to resolve correctly for services that are looking for them to
work correctly.

Since jk.mshome.net does not resolve publicly, either set up DNS on
your LAN or a local hosts file on your PC to resolve the name.  
Otherwise, don't use it anywhere, in any configuration, because it 
won't work.

Typing ping localhost should return an IP address of 127.0.0.1.

Typing ping jk.mshome.net should return nothing.

Apache should be set to defaults, across the board (localhost).

John




-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 9:23 AM
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache


I've checked the config file and the Server Name is 127.0.0.1, so I 
don't know why it says jk.mshome.net when I try to ping Localhost.

I've attache my config file again.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 14:15
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache



OK, that's a problem.  I don't have your httpd.conf any more, but
there 

Speed issues with tomcat 4.1.12

2002-09-30 Thread andrew mercer

Hi,

I have recently had to convert from Jetty to tomcat for one of our 
customers.

The application is run from a war file that has in it among other things 
java classes and webmacro templates.

The main browser views are currently created using frames.

When I run the war file using jetty everything runs perfectly and fast.

However when I run using tomcat the frames take about 40 - 50 seconds to 
load.

The first frame loads fast but then I am waiting for the rest.

Once open if I then click a link that loads one template (with no 
frames) via a servlet into one of the visible frames then this can also 
take between 30 - 45 seconds.

Is there a way round this?

Is it someting to do with the configuaration.?

I could not see anything obvoius in the xml files nor could I see a 
similar question in the old mailing lists.

Thnks for your help in advance

Andrew Mercer
Software Developer


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: 4th day offline, getting desperate, please help

2002-09-30 Thread David Wynter

Hi,

I think that Tomcat 4.1.12 has bug when used with Turbine applications. I
have a valid server.xml, the WAR unpacks correctly, but the application does
not run. Since this is outside my ability to fix I am abandoning Tomcat and
will try Jetty.

Thanks for those who helped.

David

-Original Message-
From: Raj Saini [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 12:23
To: Tomcat Users List
Subject: Re: 4th day offline, getting desperate, please help


Remove the example context from you server.xml and delete the examples
directory from you webapps. replace the index.html file with your own
file in the ROOT context.

Raj
David Wynter wrote:
 Hi,

 With a standatrd install and the changes to setup my domain name plus an
 extra context for my rwsite webapp I get the following in
 roamware_log.2002-09-30.txt

 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploying class repositories to
 work directory

/var/jakarta-tomcat-4.1.12-LE-jdk14/work/Standalone/www.roamware.com/rwsite
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy class files
 /WEB-INF/classes to
 /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/classes
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/FTPProtocol.jar to

/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/FTPProtocol.j
 ar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/activation-1.0.1.jar to

/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/activation-1.
 0.1.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/ant-optional.jar to

/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/ant-optional.
 jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/caucho-jdbc-mysql-2.1.0.jar to

/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/caucho-jdbc-m
 ysql-2.1.0.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/ecs-1.4.1.jar to

/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/ecs-1.4.1.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/extended-security.jar to

/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/extended-secu
 rity.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/hsql.jar
 to /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/hsql.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/httpunit.jar to

/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/httpunit.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR /WEB-INF/lib/idb.jar
 to /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/idb.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/j2eeunit-23-0.9.jar to

/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/j2eeunit-23-0
 .9.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/j2eeunit-ant-0.9.jar to

/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/j2eeunit-ant-
 0.9.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/jakarta-regexp-1.3-dev.jar to

/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/jakarta-regex
 p-1.3-dev.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/jdbc-se2.0.jar to

/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/jdbc-se2.0.ja
 r
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/jdbc2_0-stdext.jar to

/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/jdbc2_0-stdex
 t.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/jndi-1.2.1.jar to

/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/jndi-1.2.1.ja
 r
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/jta1.0.1.jar to

/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/jta1.0.1.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
/WEB-INF/lib/junit.jar
 to
/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/junit.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/log4j-1.1.jar to

/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/log4j-1.1.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/mail-1.2.jar to

/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/mail-1.2.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/mm.mysql-2.0.14-bin.jar to

/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/mm.mysql-2.0.
 14-bin.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR /WEB-INF/lib/oro.jar
 to /var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/oro.jar
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/postgresql.jar to

/var/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/WEB-INF/lib/postgresql.ja
 r
 2002-09-30 11:33:52 WebappLoader[/rwsite]: Deploy JAR
 /WEB-INF/lib/turbine-2.1.jar to


RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Sexton, George

Let me elaborate:

HOSTS.SAM==SAMPLE HOSTS FILE

HOSTS.SAM is not read by the operating system. It is a sample hosts file for
you to use as a basis for creating your own HOSTS file.

-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: 30 September, 2002 8:58 AM
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache


The HOSTS file (without .sam) lists an IP address of:

142.179.202.248 www.paramagnus.com

I checked this URL out and it appears to be the URL of a software
manufacturer (who specifically make SpeedNet - which I had installed on
my PC some time ago).

Why that is there I have no idea? And that is the only IP address in
that file. The HOSTS.sam file has the 127.0.0.1 localhost listed and
nothing else.


-Original Message-
From: Miguel Angel Mulero Martinez
[mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 15:44
To: Tomcat Users List
Subject: RE: (OT) Cannot see Localhost on Apache


The file is only hosts without .sam


-Mensaje original-
De: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 30 de septiembre de 2002 16:25
Para: 'Tomcat Users List'
Asunto: RE: (OT) Cannot see Localhost on Apache

Raj,

I checked the HOSTS.sam file in the Windows directory and 127.0.0.1
Localhost is listed and nothing else.

I do not have any Proxy server settings set-up (and didn't previously
when Apache was working fine).

I have a LAN card installed on this PC - the computer name is JK and the
Workgroup is MSHOME. This is obviously where Apache got the
jk.mshome.net configuration from.


Geoff

-Original Message-
From: Raj Saini [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 14:59
To: Tomcat Users List
Subject: Re: (OT) Cannot see Localhost on Apache


There is nothing wrong with the the apache Installation. telnet to port
80 shows that apache is configured properly and working. Few things to
check are:-

Check the hosts file int he window directory. See if you have setup any
hosts in the host files.

Check proxy setting of your browser.

Do you have a LAN card installed on your PC? If yest what is the host
name you have set in your LAN settings?

There is a problem with network settings. Browser is not sending the
correct hostname to the server and therefore you dont see any thing.

THe telnet shows that it got the index.html and other image files.

Raj



Your browser proxy setting.
Geoffrey Khan wrote:
 Well, that is what I'll do - reinstall Apache.

 However, as I said previously, this whole situation arose due to
 Apache not showing the Localhost directory. It was working fine for
 over a year on this PC and I didn't change ANY of the settings or add
 any hardware prior to it's not working.


 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: 30 September 2002 14:36
 To: 'Tomcat Users List'
 Subject: RE: (OT) Cannot see Localhost on Apache



 OK, we're going around in circles.  There are a couple of issues here.

 - if ServerName in httpd.conf is 127.0.0.1, then that is what you put
 in the URL
 - 127.0.0.1 = localhost, on every computer in the world, it's a
 standard
 - do you have a hosts file or some other DNS setting that is resolving

 jk.mshome.net to 127.0.0.1?

 Basically, things have to match.  If jk.mshome.net = 127.0.0.1, then
 jk.mshome.net should be your ServerName in httpd.conf.  My advice is
 to reinstall Apache, and don't answer _anything_ when asked for
 hostname, IP address, or anything else.  Let the installer figure that

 stuff out on its own.  You can't just type hostnames willy-nilly, they

 have to resolve correctly for services that are looking for them to
 work correctly.

 Since jk.mshome.net does not resolve publicly, either set up DNS on
 your LAN or a local hosts file on your PC to resolve the name.
 Otherwise, don't use it anywhere, in any configuration, because it
 won't work.

 Typing ping localhost should return an IP address of 127.0.0.1.

 Typing ping jk.mshome.net should return nothing.

 Apache should be set to defaults, across the board (localhost).

 John


-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 9:23 AM
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache


I've checked the config file and the Server Name is 127.0.0.1, so I
don't know why it says jk.mshome.net when I try to ping Localhost.

I've attache my config file again.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 14:15
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache



OK, that's a problem.  I don't have your httpd.conf any more, but
there shouldn't be any hostnames in there whatsoever if all you are
doing is accessing localhost.  Instead of hostnames, it should say
localhost.

John



-Original Message-
From: Geoffrey Khan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 9:07 AM
To: 'Tomcat Users 

An effective approach for deploying a servlet?

2002-09-30 Thread mike markovich

Hi All,

Yesterday I posted a question to this list under How to deploy servlets.  I have 
things working now and the steps I followed to get things working are outlined below. 
I would appreciate comments on my approach because I seem to revisit this issue over 
and over and I'm not confident that the approach I used contains all of the necessary 
steps.

Here are the steps I followed to deploy and execute a simple Hello servlet in Tomcat 
4.0.4:

1)  Created a servlet name HelloWorld in package hello.
2)  Created a jar containing hello.HelloWorld.class named test.jar.
3)  Created a directory in webapps named test.
4)  In test created the WEB-INF directory.
5)  Inside the WEB-INF directory created web.xml.   
6)  In web.xml added the following to define the servlet:

  servlet
servlet-namehello/servlet-name
servlet-classhello.HelloWorld/servlet-class
  /servlet

7)  Created the lib directory under WEB-INF.
6)  Moved test.jar to the lib directory under WEB-INF.
8)  Started Tomcat and browsed to the servlet using 
http://localhost:8080/test/servlet/hello;
9)  Incredibly, the browser displayed Hello World. 

I know there are other ways to accomplish the same thing, i.e., war files or placing 
my classes in the classes directory, but this approach works best for the types of 
projects I am working on.  Also, yesterday Jacob Kjome indicated that the 
the default servlet invoker is disabled by default in more recent versions of Tomcat.  
I would appreciate hearing any thoughts as whether or not this will have any impact on 
the approach outlined above.

Thanks to everyone in advance,
Mike





RE: (OT) Cannot see Localhost on Apache

2002-09-30 Thread Geoffrey Khan

I ran ipconfig and see two 192 numbers on 1 Ethernet Adapter which I
know are the XP PC and this PC.

The 0 Ethernet Adapter has no listing of IP Address, Subnet Mask and
Default Gateway, but I presume that is just the hub and the 1 Ethernet
Adapter is the card in this PC.

When I type this 192 IP address into a browser I see the same as if I
were to type localhost  ie. a blank, white screen.

I'm running a virus check now.

-Original Message-
From: Raj Saini [mailto:[EMAIL PROTECTED]] 
Sent: 30 September 2002 16:01
To: Tomcat Users List
Subject: Re: (OT) Cannot see Localhost on Apache


Run the following command on Dos prompt

ipconfig

Do you see an IP adress apart from 127.0.0.1? If you see some thing like

192... or 10.. try accessing your application by enterging this addess 
in ur browser. However, your network setting shows that your network is 
missconfigured. Your jk.mshome.net should have returned a private IP and

not the localhost.

I strongly recommed to run a virus scanner and re-install your network. 
This problem is related to network and not apache.

Raj

Geoffrey Khan wrote:
 Yes, I am using this PC for internet access. Basically, I have an XP 
 PC downstairs which connects directly to the net (and is the master 
 PC in the network) and this one with the Apache server on it is 
 connected as the slave.
 
 I did think I may have a virus, but haven't run a check yet because it

 takes so long - I mean REALLY long.
 
 
 
 
 -Original Message-
 From: Raj Saini [mailto:[EMAIL PROTECTED]]
 Sent: 30 September 2002 15:32
 To: Tomcat Users List
 Subject: Re: (OT) Cannot see Localhost on Apache
 
 
 yes, that is where the trouble start.
 
 Are you using this card for Internet access? You can try re-installing
 the network. I can certainly tell you now that this is the problem of 
 your network nothing else.
 
 If you can remove your card and network setting, try installing only
 dialup adapter.
 
 There is certainly some thing wrong with your network. Check for some
 virus attack. That may also be a possibitiy.
 
 Raj
 Geoffrey Khan wrote:
 
Raj,

I checked the HOSTS.sam file in the Windows directory and 127.0.0.1
Localhost is listed and nothing else.

I do not have any Proxy server settings set-up (and didn't previously
when Apache was working fine).

I have a LAN card installed on this PC - the computer name is JK and
the Workgroup is MSHOME. This is obviously where Apache got the 
jk.mshome.net configuration from.


Geoff

-Original Message-
From: Raj Saini [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 14:59
To: Tomcat Users List
Subject: Re: (OT) Cannot see Localhost on Apache


There is nothing wrong with the the apache Installation. telnet to
port
80 shows that apache is configured properly and working. Few things to
 
 
check are:-

Check the hosts file int he window directory. See if you have setup
any
hosts in the host files.

Check proxy setting of your browser.

Do you have a LAN card installed on your PC? If yest what is the host 
name you have set in your LAN settings?

There is a problem with network settings. Browser is not sending the 
correct hostname to the server and therefore you dont see any thing.

THe telnet shows that it got the index.html and other image files.

Raj



Your browser proxy setting.
Geoffrey Khan wrote:


Well, that is what I'll do - reinstall Apache.

However, as I said previously, this whole situation arose due to 
Apache not showing the Localhost directory. It was working fine for 
over a year on this PC and I didn't change ANY of the settings or add

any hardware prior to it's not working.


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 14:36
To: 'Tomcat Users List'
Subject: RE: (OT) Cannot see Localhost on Apache



OK, we're going around in circles.  There are a couple of issues 
here.

- if ServerName in httpd.conf is 127.0.0.1, then that is what you put

in the URL
- 127.0.0.1 = localhost, on every computer in the world, it's a
standard
- do you have a hosts file or some other DNS setting that is
resolving
jk.mshome.net to 127.0.0.1?

Basically, things have to match.  If jk.mshome.net = 127.0.0.1, then 
jk.mshome.net should be your ServerName in httpd.conf.  My advice is 
to reinstall Apache, and don't answer _anything_ when asked for 
hostname, IP address, or anything else.  Let the installer figure 
that


stuff out on its own.  You can't just type hostnames willy-nilly, 
they


have to resolve correctly for services that are looking for them to 
work correctly.

Since jk.mshome.net does not resolve publicly, either set up DNS on 
your LAN or a local hosts file on your PC to resolve the name.
Otherwise, don't use it anywhere, in any configuration, because it 
won't work.

Typing ping localhost should return an IP address of 127.0.0.1.

Typing ping jk.mshome.net should return nothing.

Apache should be set to defaults, across the board (localhost).

John





4.1.12 : Valve : MBean Exception Question

2002-09-30 Thread Gavin, Rick

Hi All,
  I was implementing a Valve that checks the current URL and sets a few
Request parameters accordingly.  In Tomcat 4.0.4 I didn't have any errors at
startup, but when I moved to Tomcat 4.1.12 I started receiving 

--- LOG  ---
ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with MyCustomValve
at
org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:783)
at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy
cleListener.java:438)
..
 SERVER.XML -

Context path=/mywebapp docBase=mywebapp debug=0 privileged=false
Valve className=mypackage.tomcat.MyCustomValve/
/Context

---

I have been looking for something on MBean but haven't seen much.

Rick Gavin
Senior System Analyst / Engineer
VIDYAH
   1100 Glendon Ave, 16th Floor 
   Los Angeles, CA 90024 
   tel : (310) 443-3095 
   [EMAIL PROTECTED] 


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Porting webapp from 3.1 to 4.1.12

2002-09-30 Thread Karl Hauth

Hello all!  Zoinks this list is busier than I expected!  Thank you for
making yourselves available to us!

I am porting an application from Tomcat 3.1 to 4.1.12.

I am able to see http://dew:8080/index.jsp and the JSP and servlet examples 
all work.  Browsing to http://dew:8080/examples shows me a directory listing 
from my $TOMCAT_HOME/webapps/examples directory.  Clicking links works as 
expected.

My application is housed in /home/webapps/ebonds and is made up of html  
class files.  No WAR file.  There is /home/webapps/ebonds/index.html file.  
I have recompiled my application with a new .jar file.  I have not 
changed any code.

When I browse http://dew:8080/ebonds I get:
HTTP Status 404 - /ebonds

type Status report
message /ebonds
description The requested resource (/ebonds) is not available.

Apache Tomcat/4.1.12
Browsing http://dew:8080/ebonds/index.html yields a similar response.

I thought perhaps something didn't like not being inside $TOMCAT_HOME, so I 
copied $TOMCAT_HOME/webapps/examples to /home/webapps/exs and added a 
Context to my server.xml file.  Browsing http://dew:8080/exs works just as 
I'd like.  But I can't find any significatn differences between 
/home/webapps/exs  /home/webapps/ebonds.

I hope I'm overlooking something obvious.
Thanks in advance!
Karl

Here's my server.xml file:
Server port=8005 shutdown=SHUTDOWN debug=0
  Service name=Tomcat-Standalone

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8080 minProcessors=1 maxProcessors=75
   enableLookups=false acceptCount=10 debug=0
   /

Engine name=StandaloneEngine defaultHost=dew debug=0
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=engine_log. suffix=.txt
  timestamp=true/

  Host name=dew debug=0 appBase=webapps unpackWARs=true
Valve className=org.apache.catalina.valves.AccessLogValve
   directory=logs  prefix=dew_access_log. suffix=.txt
   pattern=common/
Logger className=org.apache.catalina.logger.FileLogger
directory=logs  prefix=dew_log. suffix=.txt
timestamp=true verbosity=1 /

Context path= docBase=ROOT /
Context path=/examplesdocBase=examples /
Context path=/exs docBase=/home/webapps/exs/
Content path=/ebonds  docBase=/home/webapps/ebonds /

Realm className=org.apache.catalina.realm.MemoryRealm /

  /Host
/Engine
  /Service
/Server


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Porting webapp from 3.1 to 4.1.12

2002-09-30 Thread mike markovich

Hi Karl,

This was passed on to me yesterday and it may relate to your problem:

Jacob Kjome wrote:


 The default servlet invoker was disabled by default for security 
 reasons which is why you are getting a 404 error.  It can be 
 re-enabled by uncommenting the mapping for the url pattern /servlet/* 
 in $TOMCAT_HOME/conf/web.xml.  You will need to restart Tomcat after 
 doing this.

 !--
 servlet-mapping
 servlet-nameinvoker/servlet-name
 url-pattern/servlet/*/url-pattern
 /servlet-mapping
 --


Good Luck,
Mike

-Original Message-
From: Karl Hauth [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 8:32 AM
To: [EMAIL PROTECTED]
Subject: Porting webapp from 3.1 to 4.1.12


Hello all!  Zoinks this list is busier than I expected!  Thank you for
making yourselves available to us!

I am porting an application from Tomcat 3.1 to 4.1.12.

I am able to see http://dew:8080/index.jsp and the JSP and servlet examples 
all work.  Browsing to http://dew:8080/examples shows me a directory listing 
from my $TOMCAT_HOME/webapps/examples directory.  Clicking links works as 
expected.

My application is housed in /home/webapps/ebonds and is made up of html  
class files.  No WAR file.  There is /home/webapps/ebonds/index.html file.  
I have recompiled my application with a new .jar file.  I have not 
changed any code.

When I browse http://dew:8080/ebonds I get:
HTTP Status 404 - /ebonds

type Status report
message /ebonds
description The requested resource (/ebonds) is not available.

Apache Tomcat/4.1.12
Browsing http://dew:8080/ebonds/index.html yields a similar response.

I thought perhaps something didn't like not being inside $TOMCAT_HOME, so I 
copied $TOMCAT_HOME/webapps/examples to /home/webapps/exs and added a 
Context to my server.xml file.  Browsing http://dew:8080/exs works just as 
I'd like.  But I can't find any significatn differences between 
/home/webapps/exs  /home/webapps/ebonds.

I hope I'm overlooking something obvious.
Thanks in advance!
Karl

Here's my server.xml file:
Server port=8005 shutdown=SHUTDOWN debug=0
  Service name=Tomcat-Standalone

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8080 minProcessors=1 maxProcessors=75
   enableLookups=false acceptCount=10 debug=0
   /

Engine name=StandaloneEngine defaultHost=dew debug=0
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=engine_log. suffix=.txt
  timestamp=true/

  Host name=dew debug=0 appBase=webapps unpackWARs=true
Valve className=org.apache.catalina.valves.AccessLogValve
   directory=logs  prefix=dew_access_log. suffix=.txt
   pattern=common/
Logger className=org.apache.catalina.logger.FileLogger
directory=logs  prefix=dew_log. suffix=.txt
timestamp=true verbosity=1 /

Context path= docBase=ROOT /
Context path=/examplesdocBase=examples /
Context path=/exs docBase=/home/webapps/exs/
Content path=/ebonds  docBase=/home/webapps/ebonds /

Realm className=org.apache.catalina.realm.MemoryRealm /

  /Host
/Engine
  /Service
/Server


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: HOW TO: How do I allocate memory in JVM for extra virtual hosts

2002-09-30 Thread Donie Kelly

Thanks for that.

We are currently analysing the problem and we will look seriously at JDK 1.4
and probably IBM's JDK.

We obviously have some work to do but as our app depends on it we are happy
to look into these issues. 

Thanks for all the pointers
Donie

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 13:22
To: Tomcat Users List
Subject: RE: HOW TO: How do I allocate memory in JVM for extra virtual hosts

Hi,

 Check out perc 3.3 at http://www.newmonics.com/info/gc.shtml, it has a
pretty decent GC performing much better than Sun's. Also IBM's JVM is
pretty
good too.

Please define performing much better ?

For our app benchmarks, JDK 1.4 GC was substantially better than PERC
3.3. 

I love how the PERC page still says generational garbage collection
like it's a big new thing.  Have you experimented with the train and
concurrent parallel GCs in JDK 1.4 and compared them (seriously compared
them, with hprof / another profiler and/or a heap analyzer)?

I am not aware of all the performance implications of
this, but it should be possible to create a Thread to
run on some interval you define which just infinitely
loops a call for garbage collection (gc() right?) then
goes back to sleep until next iteration.

System.gc() is a suggestion.  It doesn't guarantee GC will run.  You
don't want to do it anyways.  The JDK internally is better at detecting
when to run GC and what type of GC to do, on what segment.

Spend your time tuning the parameters, e.g. Xmx, Xms, XX:NewSize,
XX:MaxNewSize, min and max free percentages, etc.  Analyze the results
seriously, don't go for seat of the pants, this seems better testing.

FYI, we have several large (1G heaps) JVMs.  We have run into long GCes
in the past, until we just set aside several weeks to researching and
tuning the GC.  The results were excellent.  As mentioned above, it was
then that we experimented with alternative JDKs, including IBM, PERK,
jRockit, and others. 

At least then you can control how often garbage
collection happens, and I suppose it is possible that

No you don't control it.  It's only a suggestion.  In fact, JDK 1.4
supports a switch that says to completely ignore System.gc() calls, so
if you server admin uses this switch System.gc() does nothing.

To get started, see:
http://java.sun.com/docs/hotspot/gc/index.html
http://java.sun.com/docs/hotspot/VMOptions.html
http://wireless.java.sun.com/midp/articles/garbage/

Good luck,

Yoav Shapira
Millennium ChemInformatics

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Tomcat vs. Internet Explorer

2002-09-30 Thread Sven Kuenzler

Hi,

I have Tomcat serving a regular M$ Word file (same goes for PDF files as 
well)

https://server/path/letter.doc

When accessing this URL I constantly get 200 messages in the server log. 
This is how it should be.

On the client side, behaviour differs between user agents.

Mozilla downloads the file and saves or opens it at my choice.

MSIE (5 and 6) asks what to do with the file and then complains about 
the file not being acccessible. This happens no matter whether I click a 
link, say save as... or enter the URL directly.

Has anybody made similar experience? What can I do about it?

Sven

P.S. And no, our client won't consider deploying a proper user agent :-(




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: 4th day offline, getting desperate, please help

2002-09-30 Thread Michael Schulz

David,

Have you posted any questions to the turbine users list?  Anyone else there
able to verify your assumption?

Why don't you try Tomcat 4.0.5?

Jetty is just going to be another set of unknown issues.

-Mike


-Original Message-
From: David Wynter [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 10:11 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: 4th day offline, getting desperate, please help


Hi,

I think that Tomcat 4.1.12 has bug when used with Turbine applications. I
have a valid server.xml, the WAR unpacks correctly, but the application does
not run. Since this is outside my ability to fix I am abandoning Tomcat and
will try Jetty.

Thanks for those who helped.

David


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: [OT] Sevlet Filter + Deployment Descriptor

2002-09-30 Thread Craig R. McClanahan



On Tue, 20 Aug 2002, gautam wrote:

 Date: Tue, 20 Aug 2002 14:59:48 +0530
 From: gautam [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: TomCat User [EMAIL PROTECTED]
 Subject: [OT] Sevlet Filter + Deployment Descriptor

 Hello,

 I am trying to use the new javax.servlet.Filter interface and have a
 question about the deployment descriptor for filters. How do I specify more
 than one URL mapping ? Can I do it like in the example below ?

 filter-mapping
   filter-namesomeFilterService/filter-name
   url-pattern*.do/url-pattern
   url-pattern*.jsp/url-pattern
   url-pattern*.html/url-pattern
   ...
 /filter-mapping

 Or should the individual patterns have their own filter-mapping...
 /filter-mapping?


Just as with servlet mappings, you must use more than one filter-mapping
for the same filter-name, with different URL patterns for each.

 Regards,

 Gautam S


Craig


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Best Practices Question

2002-09-30 Thread Craig R. McClanahan



On Mon, 30 Sep 2002 [EMAIL PROTECTED] wrote:

 Date: Mon, 30 Sep 2002 13:39:07 +0100
 From: [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: Best Practices Question

 What about SSL, is it better/more efficient to allow apache to handle the
 SSL or to drop apache and allow tomcat to do it all?


Tomcat standalone can do SSL, so you've still got a choice -- the
difference being that the SSL performance of Apache is likely to be
faster.  Does that matter?  *ONLY* if Tomcat standalone is not fast enough
to meet your performance requirements by itself.

You don't always need fastest possible -- sometimes quickest to set up
is the better top priority.

Craig


 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: 30 September 2002 13:39
 To: 'Tomcat Users List'
 Subject: RE: Best Practices Question




  -Original Message-
  From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
  Sent: Sunday, September 29, 2002 9:40 PM
 

 ... snip...

  Valid reasons to need it include:
 
  * Tomcat standalone is not fast enough (note that this is different
from a rule saying select the fastest possible solution -- that
turns out not to be a requirement in every scenario).
 
  * You need the extra features that Apache provides (such as
  integration
with existing modules).
 
  * You need to run on port 80 in an environment that requires root
for this.
 
  * You already know how to configure it, so there's no extra
learning curve.
 

 I would include load-balancing as well (multiple Tomcats, one or more
 Apaches).

  Blindly installing Apache+Tomcat because that's the thing to do is a
  waste of effort in many scenarios.

 Agreed.

 
  Craig
 

 John


 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


 
---

 Copyright material and/or confidential and/or privileged information may be 
contained in this e-mail and any attached documents.  The material and information is 
intended for the use of the intended addressee only.  If you are not the intended 
addressee, or the person responsible for delivering it to the intended addressee, you 
may not copy, disclose, distribute, disseminate or deliver it to anyone else or use 
it in any unauthorised manner or take or omit to take any action in reliance on it. 
To do so is prohibited and may be unlawful.   The views expressed in this e-mail may 
not be official policy but the personal views of the originator.  If you receive this 
e-mail in error, please advise the sender immediately by using the reply facility in 
your e-mail software, or contact [EMAIL PROTECTED]  Please also delete this 
e-mail and all documents attached immediately.
 Many thanks for your co-operation.

 BMW Financial Services (GB) Limited is registered in England and Wales under company 
number 01288537.
 Registered Offices : Europa House, Bartley Way, Hook, Hants, RG27 9UF
 
--

 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Problem with mod_jk.so

2002-09-30 Thread Ben Ricker

I downloaded the binary of mod_jk.so from Jakarta's downloads in
/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/linux/i386. I am
running Apache 1.3.26 with Tomcat 4.05 on Red Hat Linux release 7.1
(Seawolf). The binary is compiled for 7.2, however. That may explain the
following error when trying to start Apache:


[root@dev bin]# ./apachectl configtest
Syntax error on line 208 of /usr/local/apache-new/conf/httpd.conf:
Cannot load /usr/local/apache-new/libexec/mod_jk.so into server: 
/usr/local/apache-new/libexec/mod_jk.so: undefined symbol: ap_ctx_get

Any ideas? Do I need to upgrade gcc, possibly? What do the binaries rely upon?

Thanks in advance,

Ben Ricker

-- 
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Start Apache/Jakarta-Tomcat as Non-root user

2002-09-30 Thread Matt Raible

I've noticed that if I run ./S40tomcat, I have to add start after it
in order to get it to start from the command line.  Does the startup
script add this automatically?

 -Original Message-
 From: Matt Raible [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, September 30, 2002 8:12 AM
 To: 'Tomcat Users List'
 Subject: RE: Start Apache/Jakarta-Tomcat as Non-root user
 
 
 I've modified your script for RedHat Linux 7.3, but my tomcat 
 instance still won't start on bootup.  I can execute 
 ./S40tomcat, enter the tomcat user's password and everything 
 works fine.  Any ideas or log files I can check?
 
 #!/bin/bash
 #
 # Matt Raible 29 Sep 2002
 # For use on RedHat Linux - tested on v7.3
 
 case $1 in
 start)
 su tomcat /usr/local/tomcat1/bin/startup.sh
 sleep 5
 ;;
 stop)
 su tomcat /usr/local/tomcat1/bin/shutdown.sh
 ;;
 *)
 echo Usage: $0 {start|stop}
 exit 1
 ;;
 esac
 
 exit 0
 
 
  -Original Message-
  From: Jim Coble [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, September 28, 2002 8:11 AM
  To: Tomcat Users List
  Subject: Re: Start Apache/Jakarta-Tomcat as Non-root user
  
  
  I accomplished this yesterday on Solaris 8 using the 
 following script
  called at system startup (linked to S40tomcat in rc3.d)  
 ... Replace 
  tomcat after the two su commands with the user you want 
  Tomcat to run as 
  and, of course, change the paths as appropriate for your 
  system.  You'll 
  also need to make sure your tomcat user has appropriate 
  permissions on 
  your tomcat directories.
  --Jim
  
  #!/sbin/sh
  #
  # Jim Coble 09 Jun 02
  # Modified 27 Sep 02 to try to get to run as user tomcat
   
  CATALINA_HOME=/usr/local/tomcat;export CATALINA_HOME
  JAVA_HOME=/usr/java;export JAVA_HOME
   
  case $1 in
  start)
  su tomcat /usr/local/tomcat/bin/startup.sh
  sleep 5
  ;;
  stop)
  su tomcat /usr/local/tomcat/bin/shutdown.sh
  ;;
  *)
  echo Usage: $0 {start|stop}
  exit 1
  ;;
  esac
   
  exit 0
  
  ==
  Jim Coble
  Senior Technology Specialist
  Center for Instructional Technology
  Email: [EMAIL PROTECTED]
  Voice: 919-660-5974  Fax: 919-660-5923
  Box 90198, Duke University
  Durham, NC 27708-0198
  ==
  
  
  
  
  
  Lars Nielsen Lind [EMAIL PROTECTED]
  09/28/2002 10:12 AM
  Please respond to Tomcat Users List
  
   
  To: [EMAIL PROTECTED]
  cc: 
  Subject:Start Apache/Jakarta-Tomcat as Non-root user
  
  
  Hi.
  
  Are the some easy ways to start Apache / Jakarta-Tomcat as
  Non-root user 
  - for instance with a  user created for the purpose?
  
  Are the any security risks (for instance access to root) to
  be aware of?
  
  Best regards,
  
  Lars Nielsen Lind
  
  
  --
  To unsubscribe, e-mail:   
  mailto:tomcat-user- [EMAIL PROTECTED]
  For
  additional commands, 
  e-mail: mailto:[EMAIL PROTECTED]
  
  
  
  
 



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Start Apache/Jakarta-Tomcat as Non-root user

2002-09-30 Thread Turner, John


I'm not sure what you mean...you have to give it an argument, that's how the
script is written.  Either start or stop.

Actually, now that I look at the script, there's a some stuff missing if you
want to use it as a startup script in one of the rc.d directories.
Something like:

# source function library
. /etc/rc.d/init.d/functions

RETVAL=0
prog=tomcat

JAVA_HOME=/some/path/to/jdk
CATALINA_HOME=/some/path/to/tomcat

You'd probably be better off just putting a couple lines into rc.local,
like:

/some/path/to/tomcat/script start

John


 -Original Message-
 From: Matt Raible [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 12:29 PM
 To: 'Tomcat Users List'
 Subject: RE: Start Apache/Jakarta-Tomcat as Non-root user
 
 
 I've noticed that if I run ./S40tomcat, I have to add start after it
 in order to get it to start from the command line.  Does the startup
 script add this automatically?
 
  -Original Message-
  From: Matt Raible [mailto:[EMAIL PROTECTED]] 
  Sent: Monday, September 30, 2002 8:12 AM
  To: 'Tomcat Users List'
  Subject: RE: Start Apache/Jakarta-Tomcat as Non-root user
  
  
  I've modified your script for RedHat Linux 7.3, but my tomcat 
  instance still won't start on bootup.  I can execute 
  ./S40tomcat, enter the tomcat user's password and everything 
  works fine.  Any ideas or log files I can check?
  
  #!/bin/bash
  #
  # Matt Raible 29 Sep 2002
  # For use on RedHat Linux - tested on v7.3
  
  case $1 in
  start)
  su tomcat /usr/local/tomcat1/bin/startup.sh
  sleep 5
  ;;
  stop)
  su tomcat /usr/local/tomcat1/bin/shutdown.sh
  ;;
  *)
  echo Usage: $0 {start|stop}
  exit 1
  ;;
  esac
  
  exit 0
  
  
   -Original Message-
   From: Jim Coble [mailto:[EMAIL PROTECTED]]
   Sent: Saturday, September 28, 2002 8:11 AM
   To: Tomcat Users List
   Subject: Re: Start Apache/Jakarta-Tomcat as Non-root user
   
   
   I accomplished this yesterday on Solaris 8 using the 
  following script
   called at system startup (linked to S40tomcat in rc3.d)  
  ... Replace 
   tomcat after the two su commands with the user you want 
   Tomcat to run as 
   and, of course, change the paths as appropriate for your 
   system.  You'll 
   also need to make sure your tomcat user has appropriate 
   permissions on 
   your tomcat directories.
   --Jim
   
   #!/sbin/sh
   #
   # Jim Coble 09 Jun 02
   # Modified 27 Sep 02 to try to get to run as user tomcat

   CATALINA_HOME=/usr/local/tomcat;export CATALINA_HOME
   JAVA_HOME=/usr/java;export JAVA_HOME

   case $1 in
   start)
   su tomcat /usr/local/tomcat/bin/startup.sh
   sleep 5
   ;;
   stop)
   su tomcat /usr/local/tomcat/bin/shutdown.sh
   ;;
   *)
   echo Usage: $0 {start|stop}
   exit 1
   ;;
   esac

   exit 0
   
   ==
   Jim Coble
   Senior Technology Specialist
   Center for Instructional Technology
   Email: [EMAIL PROTECTED]
   Voice: 919-660-5974  Fax: 919-660-5923
   Box 90198, Duke University
   Durham, NC 27708-0198
   ==
   
   
   
   
   
   Lars Nielsen Lind [EMAIL PROTECTED]
   09/28/2002 10:12 AM
   Please respond to Tomcat Users List
   

   To: [EMAIL PROTECTED]
   cc: 
   Subject:Start Apache/Jakarta-Tomcat as 
 Non-root user
   
   
   Hi.
   
   Are the some easy ways to start Apache / Jakarta-Tomcat as
   Non-root user 
   - for instance with a  user created for the purpose?
   
   Are the any security risks (for instance access to root) to
   be aware of?
   
   Best regards,
   
   Lars Nielsen Lind
   
   
   --
   To unsubscribe, e-mail:   
   mailto:tomcat-user- [EMAIL PROTECTED]
   For
   additional commands, 
   e-mail: mailto:[EMAIL PROTECTED]
   
   
   
   
  
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




mod_jk2 log

2002-09-30 Thread Maxime Colas des Francs

Hello 

I use Tomcat 4.1.10 and mod_jk2

Can we change log level in jk2.properties ?

I have too much ( info ) [jk_jni_aprImpl.c (470)]  jkInvoke() invoke  in my 
catalina.out

tks




RE: Start Apache/Jakarta-Tomcat as Non-root user

2002-09-30 Thread Matt Raible

I changed my script to add these two variables and still no luck.  I
also have them defined in catalina.sh (since I have many instances of
tomcat running) - could that cause the problem?

#!/bin/bash
#
# Matt Raible 29 Sep 2002
# For use on RedHat Linux - tested on v7.3

CATALINA_HOME=/usr/local/tomcat1; export CATALINA_HOME
JAVA_HOME=/usr/java/j2sdk1.4.1; export JAVA_HOME

case $1 in
start)
su tomcat /usr/local/tomcat1/bin/startup.sh
sleep 5
;;
stop)
su tomcat /usr/local/tomcat1/bin/shutdown.sh
;;
*)
echo Usage: $0 {start|stop}
exit 1
;;
esac

exit 0


 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, September 30, 2002 8:15 AM
 To: 'Tomcat Users List'
 Subject: RE: Start Apache/Jakarta-Tomcat as Non-root user
 
 
 
 My guess is your environment variables (JAVA_HOME, 
 CATALINA_HOME) are not available at startup, but they are 
 when you run the script from a command line after logging in.
 
 John
 
 
  -Original Message-
  From: Matt Raible [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 30, 2002 10:12 AM
  To: 'Tomcat Users List'
  Subject: RE: Start Apache/Jakarta-Tomcat as Non-root user
  
  
  I've modified your script for RedHat Linux 7.3, but my 
 tomcat instance 
  still won't start on bootup.  I can execute ./S40tomcat, enter the 
  tomcat user's password and everything works fine.  Any ideas or log 
  files I can check?
  
  #!/bin/bash
  #
  # Matt Raible 29 Sep 2002
  # For use on RedHat Linux - tested on v7.3
  
  case $1 in
  start)
  su tomcat /usr/local/tomcat1/bin/startup.sh
  sleep 5
  ;;
  stop)
  su tomcat /usr/local/tomcat1/bin/shutdown.sh
  ;;
  *)
  echo Usage: $0 {start|stop}
  exit 1
  ;;
  esac
  
  exit 0
  
  
   -Original Message-
   From: Jim Coble [mailto:[EMAIL PROTECTED]]
   Sent: Saturday, September 28, 2002 8:11 AM
   To: Tomcat Users List
   Subject: Re: Start Apache/Jakarta-Tomcat as Non-root user
   
   
   I accomplished this yesterday on Solaris 8 using the
  following script
   called at system startup (linked to S40tomcat in rc3.d)
  ... Replace
   tomcat after the two su commands with the user you want
   Tomcat to run as 
   and, of course, change the paths as appropriate for your 
   system.  You'll 
   also need to make sure your tomcat user has appropriate 
   permissions on 
   your tomcat directories.
   --Jim
   
   #!/sbin/sh
   #
   # Jim Coble 09 Jun 02
   # Modified 27 Sep 02 to try to get to run as user tomcat

   CATALINA_HOME=/usr/local/tomcat;export CATALINA_HOME
   JAVA_HOME=/usr/java;export JAVA_HOME

   case $1 in
   start)
   su tomcat /usr/local/tomcat/bin/startup.sh
   sleep 5
   ;;
   stop)
   su tomcat /usr/local/tomcat/bin/shutdown.sh
   ;;
   *)
   echo Usage: $0 {start|stop}
   exit 1
   ;;
   esac

   exit 0
   
   ==
   Jim Coble
   Senior Technology Specialist
   Center for Instructional Technology
   Email: [EMAIL PROTECTED]
   Voice: 919-660-5974  Fax: 919-660-5923
   Box 90198, Duke University
   Durham, NC 27708-0198
   ==
   
   
   
   
   
   Lars Nielsen Lind [EMAIL PROTECTED]
   09/28/2002 10:12 AM
   Please respond to Tomcat Users List
   

   To: [EMAIL PROTECTED]
   cc: 
   Subject:Start Apache/Jakarta-Tomcat as 
 Non-root user
   
   
   Hi.
   
   Are the some easy ways to start Apache / Jakarta-Tomcat as
   Non-root user 
   - for instance with a  user created for the purpose?
   
   Are the any security risks (for instance access to root) to
   be aware of?
   
   Best regards,
   
   Lars Nielsen Lind
   
   
   --
   To unsubscribe, e-mail:   
   mailto:tomcat-user- [EMAIL PROTECTED]
   For
   additional commands, 
   e-mail: mailto:[EMAIL PROTECTED]
   
   
   
   
  
  
  
  --
  To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




tomcat stopped serving out pictures

2002-09-30 Thread Jason Johnston

Ok, this is a very strange problem.  My tomcat engine appears to be running fine and 
the problem seems to be isolated to IE.  If you use the address of the picture itself 
like http://localhost:8080/jakarta-banner.gif 

The picture comes out fine.  However, http://localhost:8080/index.html  results in 
none of the pictures in the page being found.  This is most likely an IE problem but 
I've never encountered it before and now it seems to be persistent.  I've cleared my 
cache and deleted all offline content but I'm still running into the problem.

Has anyone else ever witnessed this behavior.



Re: filter to change jsessionid cookie almost done, but need little help

2002-09-30 Thread rhodespc


The Tomcat sso solution only allows sso between applications in a single
container.  My sso solution allows sso across multiple jvm's in
different hosts in the same domain, as well as the SSO for the single JVM.

The SSO for tomcat is quite limited.

I agree that the jsessionid is part of the spec, we agree with all specs,
right?  But we can have cookie name collisions if you try to raise the
scope/domain of the jsessionid cookie.  

My original problem is that I am not able to intercept the setting of the
jsessionid cookie in my filter.  Can you provide any guidance on how I may
intercept this event?

Thanks!
Phillip

On Sun, 29 Sep 2002, Craig R. McClanahan wrote:

 
 
 On Sat, 28 Sep 2002, Phillip Rhodes wrote:
 
  Date: Sat, 28 Sep 2002 13:51:18 -0400
  From: Phillip Rhodes [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: filter to change jsessionid cookie almost done,
   but need  little help
 
  I am writing a package that will facilitate sso between java based
  applications that will be released open source and free.
 
 
 You might also consider just using the single sign on support provided by
 your container.  For Tomcat 4, see the documentation at:
 
   http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html
 
 and scroll down to the section entitled Single Sign On.
 
  Part of the problem is that the tomcat cookie name is NOT at all
  configurable.
  When jsessionid is set, the host of the domain is present, the scope is set
  to the webapp, etc...
 
 
 The cookie name is standardized by the servlet spec -- there is no reason
 to make it configurable.
 
  I wrote a filter that reads the jsessionid and change the scope and domain
  that it can be read by any application in that domain.
  My problem is that in the first request in my filter (and to the app), the
  cookie may not be set.
  No problem (or so i thought!) .  I created a HttpResponseWrapper and
  HttpRequestWrapper and pass that onto the filter chain.
  When someone calls addCookie on the response (my wrapper) , I put in in my
  requestwrapper, so I can read cookies that are set in the present
  request/response.
  After I do the filter.doChain method, I again check for the jsessionid
  cookie.  It's not set in the HttpRequestWrapper that I passed onto the
  chain, but I DO know it's being set by the time my browser gets it.
 
 
 IMHO, you are following the wrong strategy.  It's perfectly reasonable to
 support single sign on across apps that have independent sessions (and
 even apps that don't involve sessions at all).  The Tomcat implementation
 accomplishes SSO with a separate cookie.
 
 Craig
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Problem with mod_jk.so

2002-09-30 Thread Turner, John


Which one did you download?  EAPI or no EAPI?

John


 -Original Message-
 From: Ben Ricker [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 12:27 PM
 To: Tomcat Users List
 Subject: Problem with mod_jk.so
 
 
 I downloaded the binary of mod_jk.so from Jakarta's downloads in
 /builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/linux/
 i386. I am
 running Apache 1.3.26 with Tomcat 4.05 on Red Hat Linux release 7.1
 (Seawolf). The binary is compiled for 7.2, however. That may 
 explain the
 following error when trying to start Apache:
 
 
 [root@dev bin]# ./apachectl configtest
 Syntax error on line 208 of /usr/local/apache-new/conf/httpd.conf:
 Cannot load /usr/local/apache-new/libexec/mod_jk.so into 
 server: /usr/local/apache-new/libexec/mod_jk.so: undefined 
 symbol: ap_ctx_get
 
 Any ideas? Do I need to upgrade gcc, possibly? What do the 
 binaries rely upon?
 
 Thanks in advance,
 
 Ben Ricker
 
 -- 
 Ben Ricker [EMAIL PROTECTED]
 Wellinx.com
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Start Apache/Jakarta-Tomcat as Non-root user

2002-09-30 Thread Turner, John


I'm not sure.  Sounds like you would have to write some sort of loop...just
starting one Tomcat instance isn't going to start all of them.

What is the error message you get?  Does Tomcat just not start?  

John


 -Original Message-
 From: Matt Raible [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 12:45 PM
 To: 'Tomcat Users List'
 Subject: RE: Start Apache/Jakarta-Tomcat as Non-root user
 
 
 I changed my script to add these two variables and still no luck.  I
 also have them defined in catalina.sh (since I have many instances of
 tomcat running) - could that cause the problem?
 
 #!/bin/bash
 #
 # Matt Raible 29 Sep 2002
 # For use on RedHat Linux - tested on v7.3
 
 CATALINA_HOME=/usr/local/tomcat1; export CATALINA_HOME
 JAVA_HOME=/usr/java/j2sdk1.4.1; export JAVA_HOME
 
 case $1 in
 start)
 su tomcat /usr/local/tomcat1/bin/startup.sh
 sleep 5
 ;;
 stop)
 su tomcat /usr/local/tomcat1/bin/shutdown.sh
 ;;
 *)
 echo Usage: $0 {start|stop}
 exit 1
 ;;
 esac
 
 exit 0
 
 
  -Original Message-
  From: Turner, John [mailto:[EMAIL PROTECTED]] 
  Sent: Monday, September 30, 2002 8:15 AM
  To: 'Tomcat Users List'
  Subject: RE: Start Apache/Jakarta-Tomcat as Non-root user
  
  
  
  My guess is your environment variables (JAVA_HOME, 
  CATALINA_HOME) are not available at startup, but they are 
  when you run the script from a command line after logging in.
  
  John
  
  
   -Original Message-
   From: Matt Raible [mailto:[EMAIL PROTECTED]]
   Sent: Monday, September 30, 2002 10:12 AM
   To: 'Tomcat Users List'
   Subject: RE: Start Apache/Jakarta-Tomcat as Non-root user
   
   
   I've modified your script for RedHat Linux 7.3, but my 
  tomcat instance 
   still won't start on bootup.  I can execute ./S40tomcat, 
 enter the 
   tomcat user's password and everything works fine.  Any 
 ideas or log 
   files I can check?
   
   #!/bin/bash
   #
   # Matt Raible 29 Sep 2002
   # For use on RedHat Linux - tested on v7.3
   
   case $1 in
   start)
   su tomcat /usr/local/tomcat1/bin/startup.sh
   sleep 5
   ;;
   stop)
   su tomcat /usr/local/tomcat1/bin/shutdown.sh
   ;;
   *)
   echo Usage: $0 {start|stop}
   exit 1
   ;;
   esac
   
   exit 0
   
   
-Original Message-
From: Jim Coble [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 28, 2002 8:11 AM
To: Tomcat Users List
Subject: Re: Start Apache/Jakarta-Tomcat as Non-root user


I accomplished this yesterday on Solaris 8 using the
   following script
called at system startup (linked to S40tomcat in rc3.d)
   ... Replace
tomcat after the two su commands with the user you want
Tomcat to run as 
and, of course, change the paths as appropriate for your 
system.  You'll 
also need to make sure your tomcat user has appropriate 
permissions on 
your tomcat directories.
--Jim

#!/sbin/sh
#
# Jim Coble 09 Jun 02
# Modified 27 Sep 02 to try to get to run as user tomcat
 
CATALINA_HOME=/usr/local/tomcat;export CATALINA_HOME
JAVA_HOME=/usr/java;export JAVA_HOME
 
case $1 in
start)
su tomcat /usr/local/tomcat/bin/startup.sh
sleep 5
;;
stop)
su tomcat /usr/local/tomcat/bin/shutdown.sh
;;
*)
echo Usage: $0 {start|stop}
exit 1
;;
esac
 
exit 0

==
Jim Coble
Senior Technology Specialist
Center for Instructional Technology
Email: [EMAIL PROTECTED]
Voice: 919-660-5974  Fax: 919-660-5923
Box 90198, Duke University
Durham, NC 27708-0198
==





Lars Nielsen Lind [EMAIL PROTECTED]
09/28/2002 10:12 AM
Please respond to Tomcat Users List

 
To: [EMAIL PROTECTED]
cc: 
Subject:Start Apache/Jakarta-Tomcat as 
  Non-root user


Hi.

Are the some easy ways to start Apache / Jakarta-Tomcat as
Non-root user 
- for instance with a  user created for the purpose?

Are the any security risks (for instance access to root) to
be aware of?

Best regards,

Lars Nielsen Lind


--
To unsubscribe, e-mail:   
mailto:tomcat-user- [EMAIL PROTECTED]
For
additional commands, 
e-mail: mailto:[EMAIL PROTECTED]




   
   
   
   --
   To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Problem with mod_jk.so

2002-09-30 Thread Ben Ricker

On Mon, 2002-09-30 at 11:53, Turner, John wrote:
 Which one did you download?  EAPI or no EAPI?

No EAPI...As the download site says:

  * mod_jk-1.3-noeapi.so is for Apache 1.3.x without mod_ssl

I do not have mod_ssl installed. Verified that through httpd-l.

Ben

 John
 
 
  -Original Message-
  From: Ben Ricker [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 30, 2002 12:27 PM
  To: Tomcat Users List
  Subject: Problem with mod_jk.so
  
  
  I downloaded the binary of mod_jk.so from Jakarta's downloads in
  /builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/linux/
  i386. I am
  running Apache 1.3.26 with Tomcat 4.05 on Red Hat Linux release 7.1
  (Seawolf). The binary is compiled for 7.2, however. That may 
  explain the
  following error when trying to start Apache:
  
  
  [root@dev bin]# ./apachectl configtest
  Syntax error on line 208 of /usr/local/apache-new/conf/httpd.conf:
  Cannot load /usr/local/apache-new/libexec/mod_jk.so into 
  server: /usr/local/apache-new/libexec/mod_jk.so: undefined 
  symbol: ap_ctx_get
  
  Any ideas? Do I need to upgrade gcc, possibly? What do the 
  binaries rely upon?
  
  Thanks in advance,
  
  Ben Ricker
  
  -- 
  Ben Ricker [EMAIL PROTECTED]
  Wellinx.com
  
  
  --
  To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
-- 
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: filter to change jsessionid cookie almost done, but need littlehelp

2002-09-30 Thread Craig R. McClanahan



On Mon, 30 Sep 2002 [EMAIL PROTECTED] wrote:

 Date: Mon, 30 Sep 2002 12:53:54 -0400 (EDT)
 From: [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: filter to change jsessionid cookie almost done,
  but need  little help


 The Tomcat sso solution only allows sso between applications in a single
 container.  My sso solution allows sso across multiple jvm's in
 different hosts in the same domain, as well as the SSO for the single JVM.

 The SSO for tomcat is quite limited.

 I agree that the jsessionid is part of the spec, we agree with all specs,
 right?  But we can have cookie name collisions if you try to raise the
 scope/domain of the jsessionid cookie.


That's why the container deliberately sets the jsessionid properties the
way that it does.

 My original problem is that I am not able to intercept the setting of the
 jsessionid cookie in my filter.  Can you provide any guidance on how I may
 intercept this event?


You cannot intercept this in a filter, because it is being done by the
container.  At best, you'd have to write a Valve to do it inside Tomcat,
or otherwise modify the Tomcat source code.  Obviously, you become
container dependent at this point, but that's going to be true of any
solution that actually modifies how container managed security works.

My primary advice still stands -- do NOT try to mess with the jsesssionid
cookie at all when implementing SSO type solutions.  Use a separate cookie
instead.

 Thanks!
 Phillip


Craig


 On Sun, 29 Sep 2002, Craig R. McClanahan wrote:

 
 
  On Sat, 28 Sep 2002, Phillip Rhodes wrote:
 
   Date: Sat, 28 Sep 2002 13:51:18 -0400
   From: Phillip Rhodes [EMAIL PROTECTED]
   Reply-To: Tomcat Users List [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: filter to change jsessionid cookie almost done,
but need  little help
  
   I am writing a package that will facilitate sso between java based
   applications that will be released open source and free.
  
 
  You might also consider just using the single sign on support provided by
  your container.  For Tomcat 4, see the documentation at:
 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html
 
  and scroll down to the section entitled Single Sign On.
 
   Part of the problem is that the tomcat cookie name is NOT at all
   configurable.
   When jsessionid is set, the host of the domain is present, the scope is set
   to the webapp, etc...
  
 
  The cookie name is standardized by the servlet spec -- there is no reason
  to make it configurable.
 
   I wrote a filter that reads the jsessionid and change the scope and domain
   that it can be read by any application in that domain.
   My problem is that in the first request in my filter (and to the app), the
   cookie may not be set.
   No problem (or so i thought!) .  I created a HttpResponseWrapper and
   HttpRequestWrapper and pass that onto the filter chain.
   When someone calls addCookie on the response (my wrapper) , I put in in my
   requestwrapper, so I can read cookies that are set in the present
   request/response.
   After I do the filter.doChain method, I again check for the jsessionid
   cookie.  It's not set in the HttpRequestWrapper that I passed onto the
   chain, but I DO know it's being set by the time my browser gets it.
  
 
  IMHO, you are following the wrong strategy.  It's perfectly reasonable to
  support single sign on across apps that have independent sessions (and
  even apps that don't involve sessions at all).  The Tomcat implementation
  accomplishes SSO with a separate cookie.
 
  Craig
 
 
  --
  To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Problem with mod_jk.so

2002-09-30 Thread Turner, John


The reason I ask is that the ap* functions are 1.3, and I usually see error
messages about ap_table_get and similar when either an Apache 2.0 module is
being used with Apache 1.3, or vice versa.

John


 -Original Message-
 From: Ben Ricker [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 1:01 PM
 To: Tomcat Users List
 Subject: RE: Problem with mod_jk.so
 
 
 On Mon, 2002-09-30 at 11:53, Turner, John wrote:
  Which one did you download?  EAPI or no EAPI?
 
 No EAPI...As the download site says:
 
   * mod_jk-1.3-noeapi.so is for Apache 1.3.x without mod_ssl
 
 I do not have mod_ssl installed. Verified that through httpd-l.
 
 Ben
 
  John
  
  
   -Original Message-
   From: Ben Ricker [mailto:[EMAIL PROTECTED]]
   Sent: Monday, September 30, 2002 12:27 PM
   To: Tomcat Users List
   Subject: Problem with mod_jk.so
   
   
   I downloaded the binary of mod_jk.so from Jakarta's downloads in
   /builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/linux/
   i386. I am
   running Apache 1.3.26 with Tomcat 4.05 on Red Hat Linux 
 release 7.1
   (Seawolf). The binary is compiled for 7.2, however. That may 
   explain the
   following error when trying to start Apache:
   
   
   [root@dev bin]# ./apachectl configtest
   Syntax error on line 208 of /usr/local/apache-new/conf/httpd.conf:
   Cannot load /usr/local/apache-new/libexec/mod_jk.so into 
   server: /usr/local/apache-new/libexec/mod_jk.so: undefined 
   symbol: ap_ctx_get
   
   Any ideas? Do I need to upgrade gcc, possibly? What do the 
   binaries rely upon?
   
   Thanks in advance,
   
   Ben Ricker
   
   -- 
   Ben Ricker [EMAIL PROTECTED]
   Wellinx.com
   
   
   --
   To unsubscribe, e-mail:   
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail: 
   mailto:[EMAIL PROTECTED]
   
  
  --
  To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
-- 
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Servlets not found after upgrade to Tomcat 4.1.12

2002-09-30 Thread Hanasaki JiJi

I have just autodeployed a WAR file that worked fine in Tomcat 4.0.5. 
Undeer 4.1.12 none of the servlets are being found.  Tomcat reports 
requested resource not available

Also, under 4.1.12 there is no logs/**access log


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Tomcat 4.1.12 Servlets stored in JAR files not found????

2002-09-30 Thread Hanasaki JiJi

This is a followup to the servlet not found posting... Does it matter 
that the servlets are stored in JAR files that are being autodeployed 
under . lib?

The servlets are not in the classes directory.  This setup worked fine 
in the previous tomcat version.

Thank you


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE:[OT] tomcat stopped serving out pictures

2002-09-30 Thread Dan Payne

Yep.  I've run into the same problem and it's been frustrating as hell.  The
problem seems to be specific to IE (I'm using 6.0.2800.1106, SP1). I've
tested with Opera and Netscape and they get the images just fine.  IE has
also been unable to parse some of the--apparently--footer information
appended to javascript include files, causing nasty javascript errors.
Hopefully this will be resolved in a Micro$oft update, but who knows?  Did
you discover anything new about this?

-Dan

-Original Message-
From: Jason Johnston [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 11:50 AM
To: [EMAIL PROTECTED]
Subject: tomcat stopped serving out pictures


Ok, this is a very strange problem.  My tomcat engine appears to be running
fine and the problem seems to be isolated to IE.  If you use the address of
the picture itself like http://localhost:8080/jakarta-banner.gif

The picture comes out fine.  However, http://localhost:8080/index.html
results in none of the pictures in the page being found.  This is most
likely an IE problem but I've never encountered it before and now it seems
to be persistent.  I've cleared my cache and deleted all offline content but
I'm still running into the problem.

Has anyone else ever witnessed this behavior.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




How do Datasources handle dis- and re-connects from a DB?

2002-09-30 Thread Boris Schroder

Does anyone know how a connection pooled datasource
is handling the situation where the database becomes temporarily
unavailable?
I would like the datasource to automatically re-establish the connection
pool
once the DB is available again.
Is that somehow possible?

The system I am using is:
tomcat 4.0.4 with updated commons-xxx jars (collections,dbcp,pool) and
removed tyrex0.9.7
My server.xml is identical to the one recommended in the docs for tomcat.4.1

Boris
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Change JDK after Tomcat install

2002-09-30 Thread Kenny G. Dubuisson, Jr.

Can you easily change the version of your JDK after Tomcat is installed?  I
need to have a virtual frame buffer, which JDK 1.4 supplies but I have JDK
1.3.1 installed.  Thanks,
Kenny


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Problem with mod_jk.so

2002-09-30 Thread Ben Ricker

On Mon, 2002-09-30 at 12:08, Turner, John wrote:
 The reason I ask is that the ap* functions are 1.3, and I usually see error
 messages about ap_table_get and similar when either an Apache 2.0 module is
 being used with Apache 1.3, or vice versa.
 
 John

This may add some info: I compiled Apache with ApacheToolbox. The
modules are static but it has DSO support in it. Then again, I would
expect an error much earlier in the load process then an undefined
symbol.

I cannot guarantee that it IS the 1.3 connectorthe filename suggests
it is.

Ben Ricker

 
  -Original Message-
  From: Ben Ricker [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 30, 2002 1:01 PM
  To: Tomcat Users List
  Subject: RE: Problem with mod_jk.so
  
  
  On Mon, 2002-09-30 at 11:53, Turner, John wrote:
   Which one did you download?  EAPI or no EAPI?
  
  No EAPI...As the download site says:
  
* mod_jk-1.3-noeapi.so is for Apache 1.3.x without mod_ssl
  
  I do not have mod_ssl installed. Verified that through httpd-l.
  
  Ben
  
   John
   
   
-Original Message-
From: Ben Ricker [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 12:27 PM
To: Tomcat Users List
Subject: Problem with mod_jk.so


I downloaded the binary of mod_jk.so from Jakarta's downloads in
/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/linux/
i386. I am
running Apache 1.3.26 with Tomcat 4.05 on Red Hat Linux 
  release 7.1
(Seawolf). The binary is compiled for 7.2, however. That may 
explain the
following error when trying to start Apache:


[root@dev bin]# ./apachectl configtest
Syntax error on line 208 of /usr/local/apache-new/conf/httpd.conf:
Cannot load /usr/local/apache-new/libexec/mod_jk.so into 
server: /usr/local/apache-new/libexec/mod_jk.so: undefined 
symbol: ap_ctx_get

Any ideas? Do I need to upgrade gcc, possibly? What do the 
binaries rely upon?

Thanks in advance,

Ben Ricker

-- 
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]

   
   --
   To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 -- 
 Ben Ricker [EMAIL PROTECTED]
 Wellinx.com
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
-- 
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




  1   2   >