Re: Servlet file CAN'T BE COMPILE!!!

2002-07-26 Thread Gord Tomlin


 can't find package servlet.http*

Is that what your source file says?? Your import should look like this:

import javax.servlet.http.*;





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




RE: Site Security Issue

2002-07-26 Thread Sullivan, Mark E

Nothing out there is going to defeat a very skilled and determined hacker,
but SSL will defeat most of them. Of course that only protects your http
traffic. You should also use a firewall to block access to the rest of the
server ports. Your web site is only as secure as the server it's running on,
so make sure it isn't running any insecure services like telnet, ftp,
etc... 

-Original Message-
From: Chris Shen [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 1:20 PM
To: Tomcat Users List
Subject: Site Security Issue


dear fellow developers,

i've got a question for you guys...i've got a auth system that
distributes keys to users once they are authenticated. users can then use
that key as a ticket to get services. now, my question is what do most of
you guys do to make your site more secure? i.e. what would you do to keep
that cookie safe from hackers as it's being passed back and fourth through
the web? our main concerns are trojan horses and packet sniffing. we are
thinking about doing an IP check and perhaps setting up SSL? does anyone
have any ideas/opinions on this? thanks!

Chris

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




Internal Server Error with tomcat 4 - org.apache.catalina.connector

2002-07-26 Thread François Gauvin

I catch a lot of  “Internal Server Error” from the
org.apache.catalina.connector on our website.

Here’s an example of the lines I’ve got.:

org.apache.catalina.connector.HttpRequestBase.parseParameters(HttpRequestBas
e.java:658)
org.apache.catalina.connector.HttpRequestBase.getParameter(HttpRequestBase.j
ava:691)
org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:
160)
…

That error happen when the first method of a JSP page is invoke.

Can someone as any advise on this?


François Gauvin
Programmeur Web

Wanted Technologies Inc.
350, boul. Charest Est, 4ème Étage
Québec (Québec)
Canada G1K 3H5

Téléphone   : (418) 523-6663, #233




Automatically Redeploy WAR's

2002-07-26 Thread msebetich

Hello,

I've been experimenting with WAR's on my dev server and have found that after a WAR is 
deployed for the first time, it is not redeployed on subsequent server bounces.  I've 
looked through the functionality in /manager and can find nothing that allows you to 
have a web app redeploy the WAR on server startup.  Does anyone know how to do this?

Mike 

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




RE: Setting up a servlet

2002-07-26 Thread Andrew Conrad

With 4.x you can add a Loader checkInterval=15 / element nested
inside your Context.  The default checkInterval is 15

See docs for other Loader options.

- Andrew

 -Original Message-
 From: Diego, Emil [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, July 24, 2002 9:52 AM
 To: '[EMAIL PROTECTED]'
 Subject: Setting up a servlet
 
 
 I am running apache 1.23 with tomcat 3.2.3 on Redhat Linux 
 7.2.  My problem is that I am trying to setup a server for a 
 web app i am working on.  I have reated the servelt class and 
 have it on the server, the problem is that everythime I 
 submit the form that uses the servlet i get an error telling 
 me that the URL can not be found.
 
 I have tomcat and apache working together to serv pages.  I 
 setup a seperate context for this web application.  Here is 
 the entry from the server.xml
 file:
 
   Context path=/dev_new
  docBase=/var/www/html/dev_new
  crossContext=false
  debug=0
  reloadable=true 
 /Context
 
 
 What do i need to do now to get the server to recognize the servlet?
 
 
 
 Emil
 [EMAIL PROTECTED]
 
 --
 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: SUMMARY: /*.jsp only invoked when run from localhost

2002-07-26 Thread Chris Ruegger


Do you include the mod_jk.conf in your httpd.conf file? If so,
at what point in the file do u include it? I've tried taking the VirtualHost
tag off but then I get syntax errors when reading httpd.conf. It
doesnt like the JkMount directives.

-Chris

- Original Message -
From: Shannon Scott [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 26, 2002 12:27 PM
Subject: SUMMARY: /*.jsp only invoked when run from localhost


 Thank you for your help...

 I removed the VirtualHost tags from the mod_jk.conf, and everything is
 working the way I expected.

 Thank You EveryOne
 Shannon

 - Original Message -
 From: [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, July 26, 2002 12:13 PM
 Subject: Re: /*.jsp only invoked when run from localhost


 
  The virtual host entry in the mod_jk says ServerName localhost. You
  should change that to the domain-name (like www.shannonscott.com).
 
  RS
 
 
 
 
  Shannon Scott [EMAIL PROTECTED] on 07/26/2002 11:10:26 AM
 
  Please respond to Tomcat Users List [EMAIL PROTECTED]
 
  To:Tomcat Users List [EMAIL PROTECTED]
  cc:
 
  Subject:Re: /*.jsp only invoked when run from localhost
 
  John,
  I am not using any VirtualHost containers... although I noticed some
  removed
  comments in that part of httpd.conf that reference ssl.
 
  Actually these removed comments are below the /VirtualHost tag.
 
  Sorry about the confusion.
  Shannon
 
  - Original Message -
  From: Turner, John [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Friday, July 26, 2002 11:16 AM
  Subject: RE: /*.jsp only invoked when run from localhost
 
 
  
   Does machine_name match entries for that resource in httpd.conf?  If
  you
   have VirtualHost containers in httpd.conf, do those containers have
  JkMount
   directives?
  
   -Original Message-
   From: Shannon Scott [mailto:[EMAIL PROTECTED]]
   Sent: Friday, July 26, 2002 11:15 AM
   To: Tomcat Users List
   Subject: Re: /*.jsp only invoked when run from localhost
  
  
   John,
   Thank you for your help.
  
   I copied the contents between HOST and /HOST, then I changed all
   references to localhost within the newly copied text to
 machine_name.
   My issue still persists.
  
   Thanks Again.
   Shannon
  
  
   - Original Message -
   From: Turner, John [EMAIL PROTECTED]
   To: 'Tomcat Users List' [EMAIL PROTECTED]
   Sent: Friday, July 26, 2002 10:55 AM
   Subject: RE: /*.jsp only invoked when run from localhost
  
  
   
In server.xml, you should have a Host container with a name of
   localhost.
Do you have a Host container for the hostname you are using other
than
localhost?
   
John Turner
[EMAIL PROTECTED]
   
   
-Original Message-
From: Shannon Scott [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 10:54 AM
To: Tomcat Users List
Subject: /*.jsp only invoked when run from localhost
   
   
Hello,
We are building an application using Tomcat 4.0.2 and Apache 1.3.20
(
   mod_jk
APJ13 ) on RedHat Linux 7.2.
When the jsp pages are accessed from the localhost ( Webserver with
  apache
and Tomcat ) everything works fine, but when we try to use another
  machine
on the local network, it does not invoke Tomcat, and the jsp is
 printed
  to
the browser.
   
All html is served up well.
   
I have set the ServerName = local.IP.address
in the httpd.conf.
   
Any Help or Advice is Greatly Appreciated.
Thank You
Shannon
   
   
   
--
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]
 
 
 
 
 
 
 
 
 
 
  --
  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: Tomcat 4, mod_jk, Apache 1.3.20

2002-07-26 Thread Michele Neylon -Blacknight Solutions

At 10.47 26/07/2002 -0400, you wrote:
Where are you storing your test.jsp?

It's in /home/sites/www.blacknightsolutions.com/web/test.jsp

As defined in the current configuration of my server.xml :
Server port=8005 shutdown=SHUTDOWN debug=0
   Service name=Tomcat-Apache
 Connector  debug=0
 acceptCount=10
 minProcessors=5
 maxProcessors=75
 port=8009
 className=org.apache.ajp.tomcat4.Ajp13Connector/

 Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache
 defaultHost=ns.blacknightsolutions.com
 debug=0
 appBase=webapps

   !-- Global logger unless overridden at lower levels --
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=apache- suffix=.log
   timestamp=true/

 Host name=www.blacknightsolutions.com 
Context path=
  docBase=/home/sites/www.blacknightsolutions.com/web
  crossContext=true
  debug=0
  reloadable=false
  trusted=false 
/Context
 /Host
 Host name=www.david.blacknightsolutions.com 
Context path=
  docBase=/home/sites/www.david.blacknightsolutions.com/web
  crossContext=true
  debug=0
  reloadable=false
  trusted=false 
/Context
 /Host
 Host name=www.b2btechniques.net 
Context path=
  docBase=/home/sites/www.b2btechniques.net/web
  crossContext=true
  debug=0
  reloadable=false
  trusted=false 
/Context
 /Host

 /Engine
   /Service
/Server



Is it in your %CATALINA%/webapps/ROOT directory, or the directory
defined as your default context?

This is part of my problem! It's not in the ROOT directory, but in a 
virtual host.


Can you get to it by typing http://www.blacknightsolutions:8080/test.jsp
?

No. With a previous configuration I could get to the Tomcat welcome page at:
http://www.blacknightsolutions.com:8080
I have since tried a different configuration, but although a copy of the 
JSP examples (copied from the Tomcat/webapps/examples directory) is 
accessible at:
http://www.blacknightsolutions.com/examples/jsp/
nothing else involving Java is viewable and some of the examples aren't 
working either :-(

Tomcat seems to be intercepting requests for all .jsp pages, but doesn't 
seem to be mapping them correctly..



(I couldn't get to any blacknight site)

As to your question about a searchable archive,

There is:

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/

And

http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/

- Andrew

I'll try them - thanks!


  -Original Message-
  From: Michele Neylon -Blacknight Solutions
  [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, July 25, 2002 1:32 PM
  To: [EMAIL PROTECTED]
  Subject: Tomcat 4, mod_jk, Apache 1.3.20
 
 
  Hi all,
  I've been trying to configure Tomcat 4.0.4 with Apache 1.3.20
  using mod_jk on a Cobalt RAQ4. The problem seems to be in my
  virtual hosts declarations in server.xml Does anybody have an
  example of a server.xml configured for virtual hosts on
  Linux? At the moment: http://www.blacknightsolutions.com/test.jsp
  does not work, though http://www.blacknightsolutions.com/examples/jsp/
  does.
  Tomcat is running quite happily on port 8080 :
  http://www.blacknightsolutions.com:8080
  I've already looked
  at: http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml
  but am still having problems
 
  Thanks for your time!
 
  Mr. Michele Neylon
  Blacknight Solutions - affordable linux hosting
http://www.blacknightsolutions.com/


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


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


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Mr. Michele Neylon
Blacknight Solutions - affordable linux hosting
http://www.blacknightsolutions.com/


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


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




RE: Site Security Issue

2002-07-26 Thread Mike Jackson

And if you can afford it for your project get a good highend firewall
that inspects the requests prior to allowing them through.  And a good
IDS system of some sort, preferably one that'll work with your firewall
or that will at least send out alerts.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

-Original Message-
From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 12:07 PM
To: 'Tomcat Users List'
Subject: RE: Site Security Issue


Nothing out there is going to defeat a very skilled and determined hacker,
but SSL will defeat most of them. Of course that only protects your http
traffic. You should also use a firewall to block access to the rest of the
server ports. Your web site is only as secure as the server it's running on,
so make sure it isn't running any insecure services like telnet, ftp,
etc...

-Original Message-
From: Chris Shen [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 1:20 PM
To: Tomcat Users List
Subject: Site Security Issue


dear fellow developers,

i've got a question for you guys...i've got a auth system that
distributes keys to users once they are authenticated. users can then use
that key as a ticket to get services. now, my question is what do most of
you guys do to make your site more secure? i.e. what would you do to keep
that cookie safe from hackers as it's being passed back and fourth through
the web? our main concerns are trojan horses and packet sniffing. we are
thinking about doing an IP check and perhaps setting up SSL? does anyone
have any ideas/opinions on this? thanks!

Chris

--
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: Magic Number Problems

2002-07-26 Thread Angel, Ronald J


   Don't mean to start with a RTM reply, but,
   Check out the man pages on 'magic'
   The 'magic' file itself is usually /etc/magic.
   It usually contains offset  other interesting info.

   Also try, 

  file mod_jk.so

   This will use the local magic file to determine the file type is
possible.
   If the system recognizes it as a shared library, it will say so.

Ron


 -Original Message-
 From: Billingham, Walter  475 [SMTP:[EMAIL PROTECTED]]
 Sent: Friday, July 26, 2002 10:29 AM
 To:   '[EMAIL PROTECTED]'
 Subject:  Magic Number Problems
 
 When I try and use someone else's compiled mod_jk.so I get you have the
 wrong magic number error.  Does anyone know how to tell what this magic
 number is? Can I see it with something like Ultraedit in hex mode?  Isn't
 it
 the server architecture id or something?  Thanks.  Trask.
 
 
 
 --
 
 CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please
 immediately notify the sender by e-mail at the address shown.  This e-mail
 transmission may contain confidential information.  This information is
 intended only for the use of the individual(s) or entity to whom it is
 intended even if addressed incorrectly.  Please delete it from your files
 if you are not the intended recipient.  Thank you for your compliance.
 Copyright (c) 2002 CIGNA
 
 
 
 
 --
 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: Little trouble with IIS 5 and Tomacat 4.0.4

2002-07-26 Thread Ignacio J. Ortega

sop you  only needs to map jsp files? all other content goes to iis ?

try

/*.jsp=$(default.worker)

Saludos ,
Ignacio J. Ortega


 -Mensaje original-
 De: news [mailto:[EMAIL PROTECTED]]En nombre de George Hester
 Enviado el: 26 de julio de 2002 0:47
 Para: [EMAIL PROTECTED]
 Asunto: Re: Little trouble with IIS 5 and Tomacat 4.0.4
 
 
 Well gues what Ignacio?  You have shown me why I lost my ASP 
 sessions using JRun
 4.  When I did as you suggested I was able to do 
 http://localhost/mypage.jsp.
 Worked great.  Then in about 20 minutes I guess it was 
 Exchange Internet
 Messaging closed down.  I thought crap but OK.  Then I 
 noticed my ASP Web Site
 had no longer worked.  This http://localhost/default.asp is 
 giving a Tomcat
 Error.  So what is happening?  Well of course there is no 
 default.asp in
 C:\Program Files\Apache Tomcat 4.0\webapps\ROOT and I doubt I 
 could put one
 there.  If I can then it is going to take a major overhaul of 
 my Server.  If I
 can't then I am going to have to remove your suggestion.  
 Aren't puters
 wonderful?
 
 --
 George Hester
 _
 Ignacio J. Ortega [EMAIL PROTECTED] wrote in message
 80F5674514B4D311BAFC0040F6A45EEE2EB825@ntserver">news:80F5674514B4D311BAFC0040F6A45EEE2EB825@ntserver...
  ROOT is directory name where ROOT context resides ( the 
 one that get
  served by default when there is no context name in the URL), so when
  writing a uwp.p file to redirect / to IIS you need to do :
 
  /=$(default.worker)
  /*=$(default.worker)
 
  Saludos ,
  Ignacio J. Ortega
 
 
   -Mensaje original-
   De: news [mailto:[EMAIL PROTECTED]]En nombre de George Hester
   Enviado el: 25 de julio de 2002 22:24
   Para: [EMAIL PROTECTED]
   Asunto: Re: Little trouble with IIS 5 and Tomacat 4.0.4
  
  
   Here I was thinking a little more about what you said.  So I
   went to C:\Program
   Files\Apache Tomcat 4.0\conf\server.xml and opened it in
   Notepad.  I have this:
  
   Fo ROOT:
   ___
   !-- Tomcat Root Context --
  
   Context path= docBase=ROOT debug=0/
   ___
  
   For examples:
   
   !-- Tomcat Examples Context --
   Context path=/examples docBase=examples debug=0
reloadable=true crossContext=true
 Logger 
 className=org.apache.catalina.logger.FileLogger
prefix=localhost_examples_log. 
 suffix=.txt
  timestamp=true/
 Ejb   name=ejb/EmplRecord type=Entity
home=com.wombat.empl.EmployeeRecordHome
  remote=com.wombat.empl.EmployeeRecord/
   ___
  
   It seems that ROOT is very sparse.  examples has lots a stuff
   there.  examples
   works as in http://localhost/examples but ROOT does not as in
   http://localhost/ROOT.  But this does work showing index.html
   in C:\Program
   Files\Apache Tomcat 4.0\webapps\ROOT\index.html
   http://localhost:8080  This
   tells me ROOT is not being seen by IIS.
  
   --
   George Hester
   _
   George Hester [EMAIL PROTECTED] wrote in message
   ahpkto$o4d$[EMAIL PROTECTED]">news:ahpkto$o4d$[EMAIL PROTECTED]...
ROOT as in the ROOT folder that was put in C:\Program
   Files\Apache Tomcat
4.0\webapps\ROOT upon installing Tomcat.  I followed the
   directions on this
page:
   
http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/#2
   
and this folder:
   
C:\Program Files\Apache Tomcat 4.0\webapps\examples
   
works just has he says it should.  I do not recall I making
   any changes to
server.xml from what he said other then where he says:
_
Edit server.xml file
   
Open the %CATALINA_HOME%\conf\server.xml file for editing
   
The AJP connector is not enabled by default. To enable it,
   uncomment the
following section in $CATALINA_HOME/conf/server.xml:
(in original file, its line 74 ;)
   
!--
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0/
--
   
Also note that when placing new files (e.g. jars) into
   %CATALINA_HOME%\/lib
   edit
the wrapper.properties, and make sure to restart WWW
   Publishing Service (IIS)
rather than the Tomcat service in order to have the new
   libs used by Tomcat.
__
   
and as that is not specific to examples I figured that
   was not part of the
solution.
   
You say it is?  Can you be more descriptive?  Like what I
   need to do?  Thanks.
   
--
George Hester
_
Turner, John [EMAIL PROTECTED] wrote in message
   
   
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 Tomcat has to be configured in addition to
   uriworkermap.properties.  Do you
 have a Context in server.xml for that directory?  I'm
   

Servlet init() called twice - another cause

2002-07-26 Thread Gord Tomlin

Yesterday, the init() method of a servlet of mine started to be called
twice. The hash code of the servlet object proved that there were two
separate instances of the servlet. The archives mention some causes of this
situation, but mine was caused by another one. I'm posting this here in case
it's of help to anyone else.

From the archives:
From: Larry Isaacs
Subject:  RE: Servlet's init() method being called twice?
Date:  Fri, 9 Nov 2001 09:18:09 -0500

This can occur if you have a web application under the auto-served
webapps directory and also create a context for that same web
application but with a different path, i.e.

Context path=/otherpath docBase=webapps/mywebapp ...

You would get the same webapp served as /mywebapp and
/otherpath, hence two calls to your servlet's init(),
one for each context.

Larry

In my case, I first executed the servlet using the name contained in the
url-pattern of a servlet-mapping. in web.xml; the second time the
servlet was executed it was referenced by its full name relative to the
webapps directory. When I changed the second reference to also use the name
from the url-pattern the problem went away.

It appears that the lesson here is that a given servlet should always be
accessed using the same URL, or else Tomcat will treat each different URL as
a reference to a different servlet.

Regards, Gord Tomlin



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




RE: Tomcat 4, mod_jk, Apache 1.3.20

2002-07-26 Thread Andrew Conrad

Hmm, I see a few problems below

 -Original Message-
 From: Michele Neylon -Blacknight Solutions 
 [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, July 26, 2002 1:11 PM
 To: Tomcat Users List
 Subject: RE: Tomcat 4, mod_jk, Apache 1.3.20
 
 
 At 10.47 26/07/2002 -0400, you wrote:
 Where are you storing your test.jsp?
 
 It's in /home/sites/www.blacknightsolutions.com/web/test.jsp
 
 As defined in the current configuration of my server.xml : 
 Server port=8005 shutdown=SHUTDOWN debug=0
Service name=Tomcat-Apache
  Connector  debug=0
  acceptCount=10
  minProcessors=5
  maxProcessors=75
  port=8009
  className=org.apache.ajp.tomcat4.Ajp13Connector/
 
Did you delete your HTTP Connector on purpose ?  You should eventually
do that, but while your setting it up, I would keep it for testing
purposes.
Connector
className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=false redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=1
/

  Engine className=org.apache.catalina.connector.warp.WarpEngine
  name=Apache
  defaultHost=ns.blacknightsolutions.com
  debug=0
  appBase=webapps

Your Engine setup looks all wrong.  You probably shouldn't specify the
className, that way it will use the default className.  The WARPEngine
(bad name in my opinion) is a connector to Apache, not an Engine class.
If you were going to specify the className  it should be
org.apache.catalina.core.StandardEngine.  Your defaultHost MUST point
to an existing nested host element.  I don't see
ns.blacknightsolutions.com.

I got all the info here -
http://localhost:8080/tomcat-docs/config/engine.html

When configuring Tomcat, always make sure you can access your files on
the 8080 port

 
!-- Global logger unless overridden at lower levels --
Logger className=org.apache.catalina.logger.FileLogger
prefix=apache- suffix=.log
timestamp=true/
 
  Host name=www.blacknightsolutions.com 
 Context path=
   
 docBase=/home/sites/www.blacknightsolutions.com/web
   crossContext=true
   debug=0
   reloadable=false
   trusted=false 
 /Context
  /Host
  Host name=www.david.blacknightsolutions.com 
 Context path=
   
 docBase=/home/sites/www.david.blacknightsolutions.com/web
   crossContext=true
   debug=0
   reloadable=false
   trusted=false 
 /Context
  /Host
  Host name=www.b2btechniques.net 
 Context path=
   docBase=/home/sites/www.b2btechniques.net/web
   crossContext=true
   debug=0
   reloadable=false
   trusted=false 
 /Context
  /Host
 
  /Engine
/Service
 /Server
 
 
 
 Is it in your %CATALINA%/webapps/ROOT directory, or the directory 
 defined as your default context?
 
 This is part of my problem! It's not in the ROOT directory, 
 but in a virtual host.
 
 
 Can you get to it by typing 
 http://www.blacknightsolutions:8080/test.jsp
 ?
 
 No. With a previous configuration I could get to the Tomcat 
 welcome page at: http://www.blacknightsolutions.com:8080
 I have since tried a different configuration, but although a 
 copy of the JSP examples (copied from the 
 Tomcat/webapps/examples directory) is accessible at: 
 http://www.blacknightsolutions.com/examples/jsp/
 nothing else involving Java is viewable and some of the 
 examples aren't working either :-(
 
 Tomcat seems to be intercepting requests for all .jsp pages, 
 but doesn't seem to be mapping them correctly..
 
 
 
 (I couldn't get to any blacknight site)
 
 As to your question about a searchable archive,
 
 There is:
 
 http://www.mail-archive.com/tomcat-user@jakarta.apache.org/
 
 And
 
 http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/
 
 - Andrew
 
 I'll try them - thanks!
 


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




Tomcat4 feature set

2002-07-26 Thread Zhenxin Wang

Hi,
 
Besides the obvious .html, servlet, and JSP, what are the other features
supported by Tomcat4? Such as JNDI, JDBC etc.
Is there a document explains the supported feature set?
 
Thanks!
 
Zhenxin Wang
DoCoMo USA Labs
 



Changing servlet context path with mod_jk2 and Apache

2002-07-26 Thread Andris Spruds

Hi Tomcat folks,

I'm trying to put my servlet under http://www.myserver.com/myservlet
(instead
of whole www.myserv.com/myapp/servlet/myservlet line) by using Apache2 
mod_jk2. In general, I need a more simple URL, or noone will remember to
visit my site ;)

Everything went fine: I get rid of the /servlet/ part by using
servlet-mapping directive in Tomcat' web.xml and changed the context path
of the application to /. Next, Location /JkUriSet worker apj13Location
in Apache's httpd.conf and everything goes... With one exception: when I
access http://www.myserver.com/images then Tomcat complains about
context-path not defined. My intention, however, was to to leave static
data handling (images, css, etc) to Apache. The problem is that mod_jk2's
JkUriSet
takes all the directories bellow the Location directive and does not allow
to define exceptions (as
in the case I want some subdirectory content to be served by Apache, not
Tomcat).

Any advices will be warmly welcomed.
Thnx,
Andris Spruds













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




RE: Website does not appear on Macintosh/IE

2002-07-26 Thread Sexton, George

You might try cleaning up the HTML and re-testing it. I ran it through the
HTML validator at validator.w3.org and got this:

*  Line 23, column 64:

  TDInput Type=CheckBox Name=FACNO Value=/Input/TD
  ^

  Error: end tag for element INPUT which is not open; try removing the
end tag or check for improper nesting of elements
* Line 24, column 35:

  ... IRST Value=Detmar W./Input/TD
 ^

  Error: end tag for element INPUT which is not open; try removing the
end tag or check for improper nesting of elements
* Line 25, column 35:

  ... AST Value=Straub Jr./Input/TD
 ^

  Error: end tag for element INPUT which is not open; try removing the
end tag or check for improper nesting of elements
* Line 191, column 31:

  Option Value=49  Florida AM/Option
 ^

  Error: unknown entity M
* Line 2111, column 3:

  /P
 ^

  Error: end tag for element P which is not open; try removing the end
tag or check for improper nesting of elements


-Original Message-
From: Chua Eng Huang, Cecil [mailto:[EMAIL PROTECTED]]
Sent: 26 July, 2002 10:58 AM
To: Tomcat Users List
Subject: Website does not appear on Macintosh/IE


Hello,
I've got a bit of a problem with a website I maintain at
http://readable.eci.gsu.edu:8080/examples/servlet/isbib
The query options to pull up the bibliographies 
(accessible for example if you go to by author say First Name Detmar, Last
Name Straub, click on the one name that pops up and hit submit)
does NOT appear under the combination Macintosh OS/Internet Explorer.  It
appears under any other combination of OS/browser.
I'm stumped.
Any ideas?
I am using Tomcat 3.3.1
Cecil Chua

attachment: winmail.dat
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Re: /*.jsp only invoked when run from localhost

2002-07-26 Thread rsequeira


The virtual host entry in the mod_jk says ServerName localhost. You
should change that to the domain-name (like www.shannonscott.com).

RS




Shannon Scott [EMAIL PROTECTED] on 07/26/2002 11:10:26 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:Tomcat Users List [EMAIL PROTECTED]
cc:

Subject:Re: /*.jsp only invoked when run from localhost

John,
I am not using any VirtualHost containers... although I noticed some
removed
comments in that part of httpd.conf that reference ssl.

Actually these removed comments are below the /VirtualHost tag.

Sorry about the confusion.
Shannon

- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, July 26, 2002 11:16 AM
Subject: RE: /*.jsp only invoked when run from localhost



 Does machine_name match entries for that resource in httpd.conf?  If
you
 have VirtualHost containers in httpd.conf, do those containers have
JkMount
 directives?

 -Original Message-
 From: Shannon Scott [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 26, 2002 11:15 AM
 To: Tomcat Users List
 Subject: Re: /*.jsp only invoked when run from localhost


 John,
 Thank you for your help.

 I copied the contents between HOST and /HOST, then I changed all
 references to localhost within the newly copied text to machine_name.
 My issue still persists.

 Thanks Again.
 Shannon


 - Original Message -
 From: Turner, John [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Friday, July 26, 2002 10:55 AM
 Subject: RE: /*.jsp only invoked when run from localhost


 
  In server.xml, you should have a Host container with a name of
 localhost.
  Do you have a Host container for the hostname you are using other than
  localhost?
 
  John Turner
  [EMAIL PROTECTED]
 
 
  -Original Message-
  From: Shannon Scott [mailto:[EMAIL PROTECTED]]
  Sent: Friday, July 26, 2002 10:54 AM
  To: Tomcat Users List
  Subject: /*.jsp only invoked when run from localhost
 
 
  Hello,
  We are building an application using Tomcat 4.0.2 and Apache 1.3.20 (
 mod_jk
  APJ13 ) on RedHat Linux 7.2.
  When the jsp pages are accessed from the localhost ( Webserver with
apache
  and Tomcat ) everything works fine, but when we try to use another
machine
  on the local network, it does not invoke Tomcat, and the jsp is printed
to
  the browser.
 
  All html is served up well.
 
  I have set the ServerName = local.IP.address
  in the httpd.conf.
 
  Any Help or Advice is Greatly Appreciated.
  Thank You
  Shannon
 
 
 
  --
  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]










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




SUMMARY: /*.jsp only invoked when run from localhost

2002-07-26 Thread Shannon Scott

Thank you for your help...

I removed the VirtualHost tags from the mod_jk.conf, and everything is
working the way I expected.

Thank You EveryOne
Shannon

- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 26, 2002 12:13 PM
Subject: Re: /*.jsp only invoked when run from localhost



 The virtual host entry in the mod_jk says ServerName localhost. You
 should change that to the domain-name (like www.shannonscott.com).

 RS




 Shannon Scott [EMAIL PROTECTED] on 07/26/2002 11:10:26 AM

 Please respond to Tomcat Users List [EMAIL PROTECTED]

 To:Tomcat Users List [EMAIL PROTECTED]
 cc:

 Subject:Re: /*.jsp only invoked when run from localhost

 John,
 I am not using any VirtualHost containers... although I noticed some
 removed
 comments in that part of httpd.conf that reference ssl.

 Actually these removed comments are below the /VirtualHost tag.

 Sorry about the confusion.
 Shannon

 - Original Message -
 From: Turner, John [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Friday, July 26, 2002 11:16 AM
 Subject: RE: /*.jsp only invoked when run from localhost


 
  Does machine_name match entries for that resource in httpd.conf?  If
 you
  have VirtualHost containers in httpd.conf, do those containers have
 JkMount
  directives?
 
  -Original Message-
  From: Shannon Scott [mailto:[EMAIL PROTECTED]]
  Sent: Friday, July 26, 2002 11:15 AM
  To: Tomcat Users List
  Subject: Re: /*.jsp only invoked when run from localhost
 
 
  John,
  Thank you for your help.
 
  I copied the contents between HOST and /HOST, then I changed all
  references to localhost within the newly copied text to
machine_name.
  My issue still persists.
 
  Thanks Again.
  Shannon
 
 
  - Original Message -
  From: Turner, John [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Friday, July 26, 2002 10:55 AM
  Subject: RE: /*.jsp only invoked when run from localhost
 
 
  
   In server.xml, you should have a Host container with a name of
  localhost.
   Do you have a Host container for the hostname you are using other than
   localhost?
  
   John Turner
   [EMAIL PROTECTED]
  
  
   -Original Message-
   From: Shannon Scott [mailto:[EMAIL PROTECTED]]
   Sent: Friday, July 26, 2002 10:54 AM
   To: Tomcat Users List
   Subject: /*.jsp only invoked when run from localhost
  
  
   Hello,
   We are building an application using Tomcat 4.0.2 and Apache 1.3.20 (
  mod_jk
   APJ13 ) on RedHat Linux 7.2.
   When the jsp pages are accessed from the localhost ( Webserver with
 apache
   and Tomcat ) everything works fine, but when we try to use another
 machine
   on the local network, it does not invoke Tomcat, and the jsp is
printed
 to
   the browser.
  
   All html is served up well.
  
   I have set the ServerName = local.IP.address
   in the httpd.conf.
  
   Any Help or Advice is Greatly Appreciated.
   Thank You
   Shannon
  
  
  
   --
   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]










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




AW: confused - Installing tomcat4.0.4 on RaQ3 (Apache)

2002-07-26 Thread Ralph Einfeldt

For mod_jk you can try the binaries for tomcat 3.3:

http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.1/bin/linux
/i386/


From http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/
:

NOTE: AJP 1.3 native connectors binaries for Tomcat 3.2 and 3.3 are
fully 
compatible with Tomcat 4.0 AJP 1.3 connector. The AJP 1.3 connector also

supports load balancing and auto configuration.

 -Ursprüngliche Nachricht-
 Von: Albert Csaba [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 26. Juli 2002 14:35
 An: Tomcat Users List
 Betreff: Re: confused - Installing tomcat4.0.4 on RaQ3 (Apache)
 
 Thanks for your help. I'm not confused anymore. But still 
 cannot download the mod_jk from anywhere.

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




RE: Servlets using old classes

2002-07-26 Thread Charles N. Harvey III

To really make sure it gets deployed you have to delete the webapp from the
~/tomcat/work/servername directory.

So, if you want, add something to your startup.sh script (or startup.bat)
like
rm -rf /tomcathome/work/servername/webappname

That will clear it completely and force Tomcat to redeploy it.
I have Ant doing that job with something like this:

  target name=redeploy description=Removes the webapp from the
classloader
delete dir=/tomcathome/work/servername/webappname/
  /target

And I call that target from the target name=compile target to make sure
my App is cleared from Tomcat.  I think the new Tomcat 4.1 has an integrated
Ant
task to do this, and maybe a better way in the manager app.  But until then
I
think you have to use one of these two options.

Charlie


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 26, 2002 3:16 PM
 To: [EMAIL PROTECTED]
 Subject: Automatically Redeploy WAR's


 Hello,

 I've been experimenting with WAR's on my dev server and have
 found that after a WAR is deployed for the first time, it is not
 redeployed on subsequent server bounces.  I've looked through the
 functionality in /manager and can find nothing that allows you to
 have a web app redeploy the WAR on server startup.  Does anyone
 know how to do this?

 Mike

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

 -Original Message-
 From: Kevin Andryc [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 26, 2002 4:57 PM
 To: Tomcat Users List
 Subject: Servlets using old classes


 I updated a class file in my web application. The problem is that
 my servlet
 that uses that class file isn't picking up the changes. It seems
 to be still
 using the old class file. I restarted Tomcat, but when I access
 my servlet,
 it still has signs that it is using the old class file. How is this so?
 Anyone have any ideas?

 Thanks,
 Kevin


 Kevin Andryc
 Web Systems Engineer
 MISER
 http://www.umass.edu/miser/
 Phone: (413)-545-3460
 [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]




AW: architecting large sites

2002-07-26 Thread Ralph Einfeldt

The first step is to estimate following numbers 
- Number of new users per time unit
- Average session length 
- Number of requests per user and time unit
  Break the requests down to request for
  - static resources
  - simple dynamic pages
  - dynamic pages with database access
estimate the time for a database access
  - dynamic pages with access to other backend systems
estimate the time for an access to backend systems
- Average size of the requested data
- Average size of data stored in the session

With that data you can etstimate
- Needed Memory
- Number of concurrent database connections
- Number of concurrent to other backend systems
- Needed Line Speed
- Requests per time unit that must be served by tomcat

Some recommendations:

- If you have backendservices (like a database) put them on 
  a different machine or have a machine with two processors.
  In the later case it's better to have an operating system
  that allows you to stick processes to processors)

- If it's better to scale by additional maschines or by a 
  faster maschine depends on your requirements (How failsafe
  shall the system be, what performance is required if a part 
  of the system fails, what's the bottle neck in the 
  application (If it's disk IO you might want to use a 5 
  channel scsi raid controller, if it's the iternet line
  you have to change that), do you need sticky sessions)

- Multiple instances of tomcat don't make much sense, if their
  sole purpose is scalability. One tomcat scales better than
  two (on one machine). The only scenario where this could make
  sense, is an operation system that allows sticking of processes
  to processors as this way you reduce the context switches. But 
  I have doubts that you will win more than you loose.

 -Ursprüngliche Nachricht-
 Von: J Doe [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 26. Juli 2002 15:08
 An: [EMAIL PROTECTED]
 Betreff: architecting large sites
 
 I'm no expert in web-site architecture, but it strikes
 me that there are 2 or 3 possibilities to this
 problem: (a) multiple machines, using a load-balancer,
  (b) multiple instances of Apache/Tomcat on a given
 machine(s), and (c) beefing up each machine with max
 memory and possibly more CPUs.
 
 Is there a ballpark estimate for the max number of
 simultaneous users for a single machine with
 Apache/Tomcat?  I'm guessing this will be far less
 than 1500.  Given that, what's the next-best way to
 boost that number?   Would having multiple CPUs be
 effective?  Can there actually be multiple instances
 of Tomcat on a single machine?  If so, does that help
 address this issue?
 
 I realize these questions are vague and deal with a
 huge scope, but I'm looking for doc sources or best
 practices, rather than concrete answers.
 

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




RE: Automatically Redeploy WAR's

2002-07-26 Thread Charles N. Harvey III

To really make sure it gets deployed you have to delete the webapp from the
~/tomcat/work/servername directory.

So, if you want, add something to your startup.sh script (or startup.bat)
like
rm -rf /tomcathome/work/servername/webappname

That will clear it completely and force Tomcat to redeploy it.
I have Ant doing that job with something like this:

  target name=redeploy description=Removes the webapp from the
classloader
delete dir=/tomcathome/work/servername/webappname/
  /target

And I call that target from the target name=compile target to make sure
my App is cleared from Tomcat.  I think the new Tomcat 4.1 has an integrated
Ant
task to do this, and maybe a better way in the manager app.  But until then
I
think you have to use one of these two options.

Charlie


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 26, 2002 3:16 PM
 To: [EMAIL PROTECTED]
 Subject: Automatically Redeploy WAR's


 Hello,

 I've been experimenting with WAR's on my dev server and have
 found that after a WAR is deployed for the first time, it is not
 redeployed on subsequent server bounces.  I've looked through the
 functionality in /manager and can find nothing that allows you to
 have a web app redeploy the WAR on server startup.  Does anyone
 know how to do this?

 Mike

 --
 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: confused - Installing tomcat4.0.4 on RaQ3 (Apache)

2002-07-26 Thread Albert Csaba


Thanks for your help. I'm not confused anymore. But still cannot download
the mod_jk from anywhere.
Google indeed gives so many links. But I tried that before. This list was my
last resource... The google links are or broken or getting me to the
download page for tomcat 3.x.

I have CVS on my server (1.11), but never used it. I could connect with it,
it says updating and stuff, but what then? How do I compile it?
Or how do I download what shows to me on the site?

Thanks,
Csaba

- Original Message -
From: Simon Stewart [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 26, 2002 14:51
Subject: Re: confused - Installing tomcat4.0.4 on RaQ3 (Apache)


 On Fri, Jul 26, 2002 at 01:42:19PM +0200, Ralph Einfeldt wrote:
 
  Where you can download them I don't know, all links that I=20
  had are invalid by now.

 If you can use CVS, the best thing for jk2 (and possibly mod_webapp)
 is to grab the source that way. There are links to the CVS
 repositories on the jakarta tomcat homepage (
 http://jakarta.tomcat.org/ : take a look down the left hand side nav)
 including instructions on how to get the source.

 All of the apache/tomcat connectors are in the
 jakarta-tomcat-connectors module.

 Cheers,

 Simon

 --
 As the saying goes, if you give a man a fish, he eats for a day. If you
 teach him to grep for fish, he'll leave you alone all weekend. If you
 encourage him to beg for fish, pretty soon c.l.p.misc will smell like a
 three-week-dead trout. -- Tom Phoenix, c.l.p.misc.

 --
 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: SUMMARY: /*.jsp only invoked when run from localhost

2002-07-26 Thread Shannon Scott

 Do you include the mod_jk.conf in your httpd.conf file?
Yes.
Include /var/tomcat4/conf/mod_jk.conf

 If so,
 at what point in the file do u include it?
It is the last line in the httpd.conf file.

I've tried taking the VirtualHost
 tag off but then I get syntax errors when reading httpd.conf. It
 doesnt like the JkMount directives.
I have all my JkMount tags in my mod_jk.conf...

1)  mod_jk.conf is the file I removed the VirtualHost tags from...
2) I also set ServerName= machine_name in the mod_jk.conf.

Other than these two changes all the files are identical to the copies I
attached previously.

I hope this helps.
Shannon



 -Chris

 - Original Message -
 From: Shannon Scott [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, July 26, 2002 12:27 PM
 Subject: SUMMARY: /*.jsp only invoked when run from localhost


  Thank you for your help...
 
  I removed the VirtualHost tags from the mod_jk.conf, and everything is
  working the way I expected.
 
  Thank You EveryOne
  Shannon
 
  - Original Message -
  From: [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Friday, July 26, 2002 12:13 PM
  Subject: Re: /*.jsp only invoked when run from localhost
 
 
  
   The virtual host entry in the mod_jk says ServerName localhost. You
   should change that to the domain-name (like www.shannonscott.com).
  
   RS
  
  
  
  
   Shannon Scott [EMAIL PROTECTED] on 07/26/2002 11:10:26 AM
  
   Please respond to Tomcat Users List [EMAIL PROTECTED]
  
   To:Tomcat Users List [EMAIL PROTECTED]
   cc:
  
   Subject:Re: /*.jsp only invoked when run from localhost
  
   John,
   I am not using any VirtualHost containers... although I noticed some
   removed
   comments in that part of httpd.conf that reference ssl.
  
   Actually these removed comments are below the /VirtualHost tag.
  
   Sorry about the confusion.
   Shannon
  
   - Original Message -
   From: Turner, John [EMAIL PROTECTED]
   To: 'Tomcat Users List' [EMAIL PROTECTED]
   Sent: Friday, July 26, 2002 11:16 AM
   Subject: RE: /*.jsp only invoked when run from localhost
  
  
   
Does machine_name match entries for that resource in httpd.conf?
If
   you
have VirtualHost containers in httpd.conf, do those containers have
   JkMount
directives?
   
-Original Message-
From: Shannon Scott [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 11:15 AM
To: Tomcat Users List
Subject: Re: /*.jsp only invoked when run from localhost
   
   
John,
Thank you for your help.
   
I copied the contents between HOST and /HOST, then I changed all
references to localhost within the newly copied text to
  machine_name.
My issue still persists.
   
Thanks Again.
Shannon
   
   
- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, July 26, 2002 10:55 AM
Subject: RE: /*.jsp only invoked when run from localhost
   
   

 In server.xml, you should have a Host container with a name of
localhost.
 Do you have a Host container for the hostname you are using other
 than
 localhost?

 John Turner
 [EMAIL PROTECTED]


 -Original Message-
 From: Shannon Scott [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 26, 2002 10:54 AM
 To: Tomcat Users List
 Subject: /*.jsp only invoked when run from localhost


 Hello,
 We are building an application using Tomcat 4.0.2 and Apache
1.3.20
 (
mod_jk
 APJ13 ) on RedHat Linux 7.2.
 When the jsp pages are accessed from the localhost ( Webserver
with
   apache
 and Tomcat ) everything works fine, but when we try to use another
   machine
 on the local network, it does not invoke Tomcat, and the jsp is
  printed
   to
 the browser.

 All html is served up well.

 I have set the ServerName = local.IP.address
 in the httpd.conf.

 Any Help or Advice is Greatly Appreciated.
 Thank You
 Shannon



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

RE: Tomcat/jsp problem ::: Can any one help me !!!

2002-07-26 Thread Nishant_Awasthi


Hello Juha

Thanks for replying.
I tried to uninstal tomcat 4.0.3. Restart my computer. Installed Tomcat
4.0.3 again. Restart my computer
and when I run Tomcat again. It has this Internal Server Problem.
I don't know why?
tHEN i UNISTALL IT AGAIN AND IN DIFFERENT DIRECTORY INSTALLED TOMCAT 4.0.4
It again came up with same problem.

I tried to understand the root:cause
java.lang.NoSuchMethodError
at
org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.j

ava:202)
but caouldn't figure out much.
I also tried to fnd out online about the same problem but
couldn't find out much either.

I have many processes using localhost but port 8080 is only
being used by Tomcat.



Nishant Awasthi
Corporate Systems Development
Progressive Insurance





   

Juha Halmu   

juha.halmu@pTo: Tomcat Users List   

p.inet.fi   [EMAIL PROTECTED]  

 cc: (bcc: Nishant Awasthi)

07/26/2002   Subject: RE: Tomcat/jsp problem ::: Can 
any   
03:32 PM one help me !!!   

Please 

respond to 

Tomcat Users  

List; Please  

respond to 

juha.halmu 

   

   






Well, I had same problem. I just installed tomcat again.  Do u have another
programs w use localhost?



 Terveisin,

x--- Juha Halmu ---y
http://portal.halmu.net

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: 26. heinakuuta 2002 22:05
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Tomcat/jsp problem ::: Can any one help me !!!


I am using tomcat 4.0.3 version.
Everything was working fine until I restarted my computer and now I cannot
have my JSP examples
of tomcat running.

Before restarting my computer JSP, SOAP examples and my own examples were
running
great. Now when I
try to run JSP example at http://localhost:8080 it gives following error:

StandardContext[/manager]: Servlet /manager threw load()
exception
javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93

5)


at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:

3266)


at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.lang.NoSuchMethodError
at
org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.j

ava:202)


at
org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:1

39)


at
org.apache.jasper.EmbededServletOptions.init(EmbededServletOptions.java:34

5)


at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91

6)


at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:

3266)



Re: /*.jsp only invoked when run from localhost

2002-07-26 Thread Shannon Scott

John,
I am not using any VirtualHost containers... although I noticed some
removed
comments in that part of httpd.conf that reference ssl.

Actually these removed comments are below the /VirtualHost tag.

Sorry about the confusion.
Shannon

- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, July 26, 2002 11:16 AM
Subject: RE: /*.jsp only invoked when run from localhost



 Does machine_name match entries for that resource in httpd.conf?  If you
 have VirtualHost containers in httpd.conf, do those containers have
JkMount
 directives?

 -Original Message-
 From: Shannon Scott [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 26, 2002 11:15 AM
 To: Tomcat Users List
 Subject: Re: /*.jsp only invoked when run from localhost


 John,
 Thank you for your help.

 I copied the contents between HOST and /HOST, then I changed all
 references to localhost within the newly copied text to machine_name.
 My issue still persists.

 Thanks Again.
 Shannon


 - Original Message -
 From: Turner, John [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Friday, July 26, 2002 10:55 AM
 Subject: RE: /*.jsp only invoked when run from localhost


 
  In server.xml, you should have a Host container with a name of
 localhost.
  Do you have a Host container for the hostname you are using other than
  localhost?
 
  John Turner
  [EMAIL PROTECTED]
 
 
  -Original Message-
  From: Shannon Scott [mailto:[EMAIL PROTECTED]]
  Sent: Friday, July 26, 2002 10:54 AM
  To: Tomcat Users List
  Subject: /*.jsp only invoked when run from localhost
 
 
  Hello,
  We are building an application using Tomcat 4.0.2 and Apache 1.3.20 (
 mod_jk
  APJ13 ) on RedHat Linux 7.2.
  When the jsp pages are accessed from the localhost ( Webserver with
apache
  and Tomcat ) everything works fine, but when we try to use another
machine
  on the local network, it does not invoke Tomcat, and the jsp is printed
to
  the browser.
 
  All html is served up well.
 
  I have set the ServerName = local.IP.address
  in the httpd.conf.
 
  Any Help or Advice is Greatly Appreciated.
  Thank You
  Shannon
 
 
 
  --
  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: architecting large sites

2002-07-26 Thread @Basebeans.com

Subject: Re: architecting large sites
From: Vic C [EMAIL PROTECTED]
 ===
I have done stress testing to 1000 users with a 2 cpu box quite nicely.
So 2 boxes (each with 2 CPUs) and 1.5 gig ram at least would be a start.

Also... JRockit VM and Tower J VM and IBM VM (in that order) should be 
used instead of the SUN VM.
I assUme that you will stress test (I use MS stress test tool with 5 PCs 
w/ 512 meg each), so you can see which VM works for you and what tweaks 
to VM you need. GC could slow you down.

V.

J Doe wrote:
 Hello,
 
 I'm looking for pointers to docs/books on how to scale
 Tomcat.  For simplicity, let's assume that there is a
 single webapp that is basically on the order of a
 Cocoon/Jetspeed application, with no DB connections
 per se, but pulling information from some other web
 sources (e.g. syndication).
 
 Suppose that a site needs to support 1500+
 simultaneous users. (Quite large, yes).
 
 I'm no expert in web-site architecture, but it strikes
 me that there are 2 or 3 possibilities to this
 problem: (a) multiple machines, using a load-balancer,
  (b) multiple instances of Apache/Tomcat on a given
 machine(s), and (c) beefing up each machine with max
 memory and possibly more CPUs.
 
 Is there a ballpark estimate for the max number of
 simultaneous users for a single machine with
 Apache/Tomcat?  I'm guessing this will be far less
 than 1500.  Given that, what's the next-best way to
 boost that number?   Would having multiple CPUs be
 effective?  Can there actually be multiple instances
 of Tomcat on a single machine?  If so, does that help
 address this issue?
 
 I realize these questions are vague and deal with a
 huge scope, but I'm looking for doc sources or best
 practices, rather than concrete answers.
 
 thanks,
 Mike
 
 ps. Does anyone know of some large sites that use
 Apache/Tomcat?  I'm trying to get a sense if 1500+ is
 even possible, or if it has been attempted. 
 
 __
 Do You Yahoo!?
 Yahoo! Health - Feel better, live better
 http://health.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: Can Tomcat 4.03 expire web pages

2002-07-26 Thread peter lin


set your pages to no-cache, which forces the browser to always get it
from the server. Is that what you're looking for?

peter


Steve Russell wrote:
 
 Hi;
 
 My boss wants to expire our jsp pages.
 
 In other words, if a user hits backspace, instead of getting the jsp
 page s/he just left s/he would see a notice that the page expired.
 
 I've seen snippets of code to do this on google, but I haven't been able
 to get them to work.
 
 Can Tomcat 4.03 expire web pages or do I need a webserver with Tomcat
 to do this?
 
 Also if someone could show me an example of how do this, with the
 example of being a whole html/jsp page I would appreciate it.
 
 Thanks in advance
 
 Steve
 
 --
 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]




Can Tomcat 4.03 expire web pages

2002-07-26 Thread Steve Russell

Hi;

My boss wants to expire our jsp pages.

In other words, if a user hits backspace, instead of getting the jsp 
page s/he just left s/he would see a notice that the page expired.

I've seen snippets of code to do this on google, but I haven't been able 
to get them to work.

Can Tomcat 4.03 expire web pages or do I need a webserver with Tomcat 
to do this?

Also if someone could show me an example of how do this, with the 
example of being a whole html/jsp page I would appreciate it.

Thanks in advance

Steve


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




Java Profilers, OptimizeIt or JProbe

2002-07-26 Thread Zhenxin Wang

Has anybody compared these two products, esp. when they integrate with
Tomcat?
 
Thanks!
 
Zhenxin Wang
DoCoMo USA Labs



Apache-tomcat integration

2002-07-26 Thread Thomas Cherry

Where can I get documentation on how to integrate tomcat with apache?  I
looked on the site, but I can't find a definitive answer (at least in my
opinion).

Thanks.


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




RE: Weird errors in iis_redirect.log

2002-07-26 Thread Ignacio J. Ortega

This is a code red worm attack or something, when you map /* to tomcat (
as in my first response to your questions ), then all the requests
without context are redirected to tomcat, hence you see i_r.dll refusing
to map that bad request, and you see the result in logs..

if you use the second mapping proposed (/*.jsp) you'll not see any logs
about this, because tomcat will not see this requests.. and will not log
anything..

Saludos ,
Ignacio J. Ortega


 -Mensaje original-
 De: news [mailto:[EMAIL PROTECTED]]En nombre de George Hester
 Enviado el: 25 de julio de 2002 21:26
 Para: [EMAIL PROTECTED]
 Asunto: Weird errors in iis_redirect.log
 
 
 This is using Tomacat with IIS 5 Windows 2000 and the ISAPI 
 available here:
 
 http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/#2
 
 In my log I am getting very many errors all the same and they are:
 
 [Sat Jul 20 23:23:56 2002]  [jk_isapi_plugin.c (588)]: HttpFilterProc
 [/scripts/..À/../winnt/system32/cmd.exe] contains forbidden 
 escape sequences.
 
 Many of these; all the same; except the date changes.  They 
 seem to occur every
 hour.
 
 Can I stop this and if so can you suuggest how?  Thanks.
 
 --
 George Hester
 _
 
 
 
 
 
 --
 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: architecting large sites

2002-07-26 Thread @Basebeans.com

Subject: Re: architecting large sites
From: Vic C [EMAIL PROTECTED]
 ===
Oh and a ... sticky IP on CISCO

Vic C wrote:
 I have done stress testing to 1000 users with a 2 cpu box quite nicely.
 So 2 boxes (each with 2 CPUs) and 1.5 gig ram at least would be a start.
 
 Also... JRockit VM and Tower J VM and IBM VM (in that order) should be 
 used instead of the SUN VM.
 I assUme that you will stress test (I use MS stress test tool with 5 PCs 
 w/ 512 meg each), so you can see which VM works for you and what tweaks 
 to VM you need. GC could slow you down.
 
 V.
 
 J Doe wrote:
 
 Hello,

 I'm looking for pointers to docs/books on how to scale
 Tomcat.  For simplicity, let's assume that there is a
 single webapp that is basically on the order of a
 Cocoon/Jetspeed application, with no DB connections
 per se, but pulling information from some other web
 sources (e.g. syndication).

 Suppose that a site needs to support 1500+
 simultaneous users. (Quite large, yes).

 I'm no expert in web-site architecture, but it strikes
 me that there are 2 or 3 possibilities to this
 problem: (a) multiple machines, using a load-balancer,
  (b) multiple instances of Apache/Tomcat on a given
 machine(s), and (c) beefing up each machine with max
 memory and possibly more CPUs.

 Is there a ballpark estimate for the max number of
 simultaneous users for a single machine with
 Apache/Tomcat?  I'm guessing this will be far less
 than 1500.  Given that, what's the next-best way to
 boost that number?   Would having multiple CPUs be
 effective?  Can there actually be multiple instances
 of Tomcat on a single machine?  If so, does that help
 address this issue?

 I realize these questions are vague and deal with a
 huge scope, but I'm looking for doc sources or best
 practices, rather than concrete answers.

 thanks,
 Mike

 ps. Does anyone know of some large sites that use
 Apache/Tomcat?  I'm trying to get a sense if 1500+ is
 even possible, or if it has been attempted.
 __
 Do You Yahoo!?
 Yahoo! Health - Feel better, live better
 http://health.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]




/*.jsp only invoked when run from localhost

2002-07-26 Thread Shannon Scott

Hello,
We are building an application using Tomcat 4.0.2 and Apache 1.3.20 ( mod_jk APJ13 ) 
on RedHat Linux 7.2.
When the jsp pages are accessed from the localhost ( Webserver with apache and Tomcat 
) everything works fine, but when we try to use another machine on the local network, 
it does not invoke Tomcat, and the jsp is printed to the browser.

All html is served up well.

I have set the ServerName = local.IP.address 
in the httpd.conf.

Any Help or Advice is Greatly Appreciated.
Thank You
Shannon





Re: Servlet init() called twice - another cause

2002-07-26 Thread Craig R. McClanahan



On Fri, 26 Jul 2002, Gord Tomlin wrote:

 Date: Fri, 26 Jul 2002 13:03:53 -0400
 From: Gord Tomlin [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Servlet init() called twice - another cause

 Yesterday, the init() method of a servlet of mine started to be called
 twice. The hash code of the servlet object proved that there were two
 separate instances of the servlet. The archives mention some causes of this
 situation, but mine was caused by another one. I'm posting this here in case
 it's of help to anyone else.

 From the archives:
 From: Larry Isaacs
 Subject:  RE: Servlet's init() method being called twice?
 Date:  Fri, 9 Nov 2001 09:18:09 -0500

 This can occur if you have a web application under the auto-served
 webapps directory and also create a context for that same web
 application but with a different path, i.e.

 Context path=/otherpath docBase=webapps/mywebapp ...

 You would get the same webapp served as /mywebapp and
 /otherpath, hence two calls to your servlet's init(),
 one for each context.

 Larry

 In my case, I first executed the servlet using the name contained in the
 url-pattern of a servlet-mapping. in web.xml; the second time the
 servlet was executed it was referenced by its full name relative to the
 webapps directory. When I changed the second reference to also use the name
 from the url-pattern the problem went away.

 It appears that the lesson here is that a given servlet should always be
 accessed using the same URL, or else Tomcat will treat each different URL as
 a reference to a different servlet.


It's actually a little bit more subtle than that.

The servlet spec guarantees you a single instance (assuming you are not
using SingleThreadModel) per servlet *definition*.  So what's a
definition?

* In web.xml, each servlet element is a servlet definition.
  It is entirely legal to have multiple servlet-mapping patterns
  that point at the same servlet definition -- they will all
  share the same instance.  These definitions are set up when the
  web app is first deployed (typically at Tomcat startup).

* At run time, Tomcat can create new servlet definitions dynamically
  for you (this is not in the servlet spec, but is a very common
  feature) using the invoker servlet that is mapped to /servlet/*.
  Whenever it sees a URL like /servlet/{foo}, it assumes {foo} is
  the class name of a servlet class -- the first time in, it creates
  a new servlet definition and sets up a new servlet mapping with an
  exact match, so that future requests are mapped directly to this
  new definition.

As Gord noticed, a reference to a servlet definition through a particular
servlet mapping, and a reference to a servlet of the same class through
the invoker servlet, are considered to be two different definitions.
However, references to the same servlet definition through two different
servlet mappings would have referenced the same (single) servlet instance.

 Regards, Gord Tomlin

Craig


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




RE: Problems with forum

2002-07-26 Thread The Kelley's

Click on the link at the bottom of the email. Are you using the same address
that you subscribed with?
I'm just a temp user. It can be overwhelming.
Tim

-Original Message-
From: Martin [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 9:32 AM
To: Tomcat Users List
Subject: Problems with forum

I have sent 3 emails to
[EMAIL PROTECTED]

this list is overwhelming my inbox and I want the mails to stop.
Why put instructions to send mail to
[EMAIL PROTECTED]
when it does not work.  How do I  unsubscribe???


--
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: Apache-tomcat integration

2002-07-26 Thread Turner, John


It would help if you could give us more information, such as target
operating system, etc.

In general, there are all sorts of resources available, such as this one
from the tomcat site:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html

and this one, also from the tomcat site:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/index.html

Some people have found the resources here to be helpful:
http://www.galatea.com/flashguides/index

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Thomas Cherry [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 4:09 PM
To: [EMAIL PROTECTED]
Subject: Apache-tomcat integration


Where can I get documentation on how to integrate tomcat with apache?  I
looked on the site, but I can't find a definitive answer (at least in my
opinion).

Thanks.


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




AW: Switch from SUN jre to IBM jre

2002-07-26 Thread Ralph Einfeldt

You don't have to recompile tomcat.

The change of JAVA_HOME is enough.

I think your problem is caused by the fact that
with the new JDK a different xerces library is 
found than with the older version.

 -Ursprüngliche Nachricht-
 Von: Andrew Ferayorni [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 25. Juli 2002 18:16
 An: [EMAIL PROTECTED]
 Betreff: Switch from SUN jre to IBM jre
 
 
   Do I need to build Tomcat from the source to make it work with IBM's
 jre or am I just missing something. 

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




RE: Tomcat/jsp problem ::: Can any one help me !!!

2002-07-26 Thread Juha Halmu

Well, I had same problem. I just installed tomcat again.  Do u have another
programs w use localhost?



 Terveisin,

x--- Juha Halmu ---y
http://portal.halmu.net

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: 26. heinakuuta 2002 22:05
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Tomcat/jsp problem ::: Can any one help me !!!


I am using tomcat 4.0.3 version.
Everything was working fine until I restarted my computer and now I cannot
have my JSP examples
of tomcat running.

Before restarting my computer JSP, SOAP examples and my own examples were
running
great. Now when I
try to run JSP example at http://localhost:8080 it gives following error:

StandardContext[/manager]: Servlet /manager threw load()
exception
javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
5)


at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3266)


at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.lang.NoSuchMethodError
at
org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.j
ava:202)


at
org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:1
39)


at
org.apache.jasper.EmbededServletOptions.init(EmbededServletOptions.java:34
5)


at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
6)


at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3266)


at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

I tried to reinstall the tomcat but now this error is persistent
Can you tell me why this problem is occuring?




Nishant Awasthi






--
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: Internal Server Error with tomcat 4 - org.apache.catalina.connector

2002-07-26 Thread François Gauvin

For the Exception that caused the stacktrace I didn't know it because we
made an automatic that send us an email when an Exception of type
Exception is throw.
I will put the exception type in the automatic mail next time I'll put our
web site online.

Here's all the stack trace :
org.apache.catalina.connector.HttpRequestBase.parseParameters(HttpRequestBas
e.java:658)
org.apache.catalina.connector.HttpRequestBase.getParameter(HttpRequestBase.j
ava:691)

org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:
160)
 com.wanted.wjo.util.WJOUtilities.isLogged(WJOUtilities.java:28)  THE FIRST
METHOD INVOKE IN OUR JSP CONTROLLER
 org.apache.jsp.search$jsp._jspService(search$jsp.java:549) THE JSP
CONTROLLER PAGE
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)

org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
 java.lang.Thread.run(Thread.java:536)


François Gauvin
Programmeur Web

Wanted Technologies Inc.
350, boul. Charest Est, 4ème Étage
Québec (Québec)
Canada G1K 3H5

Téléphone   : (418) 523-6663, #233

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 10:33 AM
To: Tomcat Users List
Subject: AW: Internal Server Error with tomcat 4 -
org.apache.catalina.connector

Please provide the Exception that caused this stacktrace.

A bit more of the stacktrace would also be helpfull.

 -Ursprüngliche Nachricht-
 Von: François Gauvin [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 26. Juli 2002 16:31
 An: [EMAIL PROTECTED]
 Betreff: Internal Server Error with tomcat 4 -
 org.apache.catalina.connector

 Here's an example of the lines I've got.:

 org.apache.catalina.connector.HttpRequestBase.parseParameters(
 HttpRequestBas
 e.java:658)
 org.apache.catalina.connector.HttpRequestBase.getParameter(Htt
 pRequestBase.j
 ava:691)
 org.apache.catalina.connector.RequestFacade.getParameter(Reque
 stFacade.java:
 160)

--
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: Servlet file CAN'T BE COMPILE!!!

2002-07-26 Thread Shapira, Yoav

Howdy,
I hope this message isn't a joke? ;)

You need the servlet.jar in your classpath.  It can be found in the 
Tomcat common/lib directory.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Wiwi Wiwi [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 1:30 PM
To: [EMAIL PROTECTED]
Subject: Servlet file CAN'T BE COMPILE!!!

dear all, I have found that my j2sdk1.4 couldn't compile servlet, which
mean
it gave me back the error message as followed:

can't find package servlet.http*

Previously, everything run well even compiling servlet, now, I really
don't
know what is going on with j2sdk1.4, by the way, i've try to compile
using
jdk1.4

can somebody give me some solutions???
your help is highly appreciated...
thankzz in advance.

wiwi



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


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


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




RE: where do unpackedWARs get unpacked?

2002-07-26 Thread Shapira, Yoav

Howdy,
It's more likely to be the webapps directory itself.
So if you have webapps/MyApp.war when you run you will have
webapps/MyApp.war and webapps/MyApp/[expanded WAR].

That said: if you deploy in a WAR, you should not make assumptions about
how/where it will be unpacked.  I'm assuming you want to stay 
container-independent.  The servlet spec does not say anything about
how a server will unpack a WAR, if it all, nor what kind of permissions
you
are going to have the files inside the WAR.  Things like
ServletContext.getRealPath() returning null trip people up all the time
;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Chris Ruegger [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 9:08 AM
To: Tomcat Users List
Subject: where do unpackedWARs get unpacked?

If I use the unpackWARs tag in my server.xml file,
where (what directory) is my war file foo.war unpacked into?
Is it the work directory?



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




Re: Problems with forum

2002-07-26 Thread Milt Epstein

On Fri, 26 Jul 2002, Craig R. McClanahan wrote:

 On Fri, 26 Jul 2002, Martin wrote:

  Date: Fri, 26 Jul 2002 09:31:44 -0400
  From: Martin [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: Problems with forum
 
  I have sent 3 emails to
  [EMAIL PROTECTED]
 
  this list is overwhelming my inbox and I want the mails to stop.
  Why put instructions to send mail to
  [EMAIL PROTECTED]
  when it does not work.  How do I  unsubscribe???

 There is no subscription to TOMCAT-USER for the mail address
 [EMAIL PROTECTED].  It is likely that you subscribed under some
 other address -- set your mailer back to that address, or follow the
 instructions for unsubscribing from alternate email addresses that is
 included in the help info mailto:[EMAIL PROTECTED].

Also note that there should be a header in messages from the list that
shows the address the message was sent to (i.e. the subscribed
address).  With my mail setup (using Pine on a UNIX machine) I see it
in the Return-Path header.

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]



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




RE: Website does not appear on Macintosh/IE

2002-07-26 Thread Chua Eng Huang, Cecil

Hmm... for some reason I am getting a different set of output.  This is what I get:
 
TR
TDInput Type=CheckBox Name=FACNO Value=46464/TD
TDStraub Jr./TD
TDDetmar W./TD
TDA 
HRef=http://readable.eci.gsu.edu:8080/examples/servlet/isbib?Command=DisplayFromMenu=FacResMenuOption=1No=0Last=Straub
 Jr.First=Detmar W.Change data/A/TD
/TR

This part of the code is auto-generated.  What concerns me is that you are getting 
eight zeros after the FACNO variable rather than four.  Also note that the code is 
cleaner.  I haven't made any changed to the code for at least a week.
 
Cecil Chua

-Original Message- 
From: Sexton, George [mailto:[EMAIL PROTECTED]] 
Sent: Fri 7/26/2002 7:49 PM 
To: Tomcat Users List 
Cc: 
Subject: RE: Website does not appear on Macintosh/IE



You might try cleaning up the HTML and re-testing it. I ran it through the 
HTML validator at validator.w3.org and got this:

*  Line 23, column 64: 

  TDInput Type=CheckBox Name=FACNO Value=/Input/TD 
  ^ 

  Error: end tag for element INPUT which is not open; try removing the 
end tag or check for improper nesting of elements

* Line 24, column 35: 

  ... IRST Value=Detmar W./Input/TD 
 ^ 

  Error: end tag for element INPUT which is not open; try removing the 
end tag or check for improper nesting of elements

* Line 25, column 35: 

  ... AST Value=Straub Jr./Input/TD 
 ^ 

  Error: end tag for element INPUT which is not open; try removing the 
end tag or check for improper nesting of elements

* Line 191, column 31: 

  Option Value=49  Florida AM/Option 
 ^ 

  Error: unknown entity M 
* Line 2111, column 3: 

  /P 
 ^ 

  Error: end tag for element P which is not open; try removing the end 
tag or check for improper nesting of elements


-Original Message- 
From: Chua Eng Huang, Cecil [mailto:[EMAIL PROTECTED]] 
Sent: 26 July, 2002 10:58 AM 
To: Tomcat Users List 
Subject: Website does not appear on Macintosh/IE 


Hello, 
I've got a bit of a problem with a website I maintain at 
http://readable.eci.gsu.edu:8080/examples/servlet/isbib 
The query options to pull up the bibliographies 
(accessible for example if you go to by author say First Name Detmar, Last 
Name Straub, click on the one name that pops up and hit submit)

does NOT appear under the combination Macintosh OS/Internet Explorer.  It 
appears under any other combination of OS/browser.

I'm stumped. 
Any ideas? 
I am using Tomcat 3.3.1 
Cecil Chua 




RE: Servlet file CAN'T BE COMPILE!!!

2002-07-26 Thread Ron Day

you have not got the servlet package in your classpath.

-Original Message-
From: Wiwi Wiwi [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 12:30 PM
To: [EMAIL PROTECTED]
Subject: Servlet file CAN'T BE COMPILE!!!


dear all, I have found that my j2sdk1.4 couldn't compile servlet, which mean
it gave me back the error message as followed:

can't find package servlet.http*

Previously, everything run well even compiling servlet, now, I really don't
know what is going on with j2sdk1.4, by the way, i've try to compile using
jdk1.4

can somebody give me some solutions???
your help is highly appreciated...
thankzz in advance.

wiwi



_
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: Website does not appear on Macintosh/IE

2002-07-26 Thread Sexton, George

You might try looking at it in Mozilla. It looks totally wrong there. When you type in 
an author first name and lastname, and hit submit you get a TOTALLY blank page.

-Original Message-
From: Chua Eng Huang, Cecil [mailto:[EMAIL PROTECTED]]
Sent: 26 July, 2002 7:30 PM
To: Tomcat Users List
Subject: RE: Website does not appear on Macintosh/IE


Hmm... for some reason I am getting a different set of output.  This is what I get:
 
TR
TDInput Type=CheckBox Name=FACNO Value=46464/TD
TDStraub Jr./TD
TDDetmar W./TD
TDA 
HRef=http://readable.eci.gsu.edu:8080/examples/servlet/isbib?Command=DisplayFromMenu=FacResMenuOption=1No=0Last=Straub
 Jr.First=Detmar W.Change data/A/TD
/TR

This part of the code is auto-generated.  What concerns me is that you are getting 
eight zeros after the FACNO variable rather than four.  Also note that the code is 
cleaner.  I haven't made any changed to the code for at least a week.
 
Cecil Chua

-Original Message- 
From: Sexton, George [mailto:[EMAIL PROTECTED]] 
Sent: Fri 7/26/2002 7:49 PM 
To: Tomcat Users List 
Cc: 
Subject: RE: Website does not appear on Macintosh/IE



You might try cleaning up the HTML and re-testing it. I ran it through the 
HTML validator at validator.w3.org and got this:

*  Line 23, column 64: 

  TDInput Type=CheckBox Name=FACNO Value=/Input/TD 
  ^ 

  Error: end tag for element INPUT which is not open; try removing the 
end tag or check for improper nesting of elements

* Line 24, column 35: 

  ... IRST Value=Detmar W./Input/TD 
 ^ 

  Error: end tag for element INPUT which is not open; try removing the 
end tag or check for improper nesting of elements

* Line 25, column 35: 

  ... AST Value=Straub Jr./Input/TD 
 ^ 

  Error: end tag for element INPUT which is not open; try removing the 
end tag or check for improper nesting of elements

* Line 191, column 31: 

  Option Value=49  Florida AM/Option 
 ^ 

  Error: unknown entity M 
* Line 2111, column 3: 

  /P 
 ^ 

  Error: end tag for element P which is not open; try removing the end 
tag or check for improper nesting of elements


-Original Message- 
From: Chua Eng Huang, Cecil [mailto:[EMAIL PROTECTED]] 
Sent: 26 July, 2002 10:58 AM 
To: Tomcat Users List 
Subject: Website does not appear on Macintosh/IE 


Hello, 
I've got a bit of a problem with a website I maintain at 
http://readable.eci.gsu.edu:8080/examples/servlet/isbib 
The query options to pull up the bibliographies 
(accessible for example if you go to by author say First Name Detmar, Last 
Name Straub, click on the one name that pops up and hit submit)

does NOT appear under the combination Macintosh OS/Internet Explorer.  It 
appears under any other combination of OS/browser.

I'm stumped. 
Any ideas? 
I am using Tomcat 3.3.1 
Cecil Chua 


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




Re: ANT and Tomcat4

2002-07-26 Thread Erik Mattsson

 Tomcat 4.1 includes the file server/lib/catalina-ant.jar which contains
 the code for the documented Ant tasks.  Just put this in your
 $ANT_HOME/lib directory to enable them.

I fixed my own from the tomcat4.1 src file. Just jar'ed it and put into the
lib directory, and of course added these lines:
taskdef name=list classname=org.apache.catalina.ant.ListTask /
taskdef name=remove classname=org.apache.catalina.ant.RemoveTask /
taskdef name=install classname=org.apache.catalina.ant.InstallTask /

And now it works using the tasks through ant, GREAT !!! thanx


  BTW, I havent found any documentation about the ant tasks. How should I
  use them? Do I still have to upload .war file?
 It's on the manager how-to page, since the tasks use Manager behind the
 scenes.

It wont work at all, im using the 4.0.3 release should it be a problem 
installing/removing
war files on a remote site??


 One thing you will note is that there's no reason to copy the WAR (or
 directory) into webapps if you are using the install task -- if you
 are on the same machine Tomcat is running on, you just need to give it the
 pathname of your WAR file or directory.  If you're on a different machine,
 use the deploy task instead to upload the WAR to the remote server and
 dynamically deploy it.

Im not on the same machine, and it seems that the 4.0.3 release doesnt support
the deploy command. I cant install the newer version until it is released. How can
I solve this problem, can I still upload the file to the server and then let the 
manager
install the servlet?
(I never got this to work with 4.0.3 :P)

//erik



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




RE: Website does not appear on Macintosh/IE

2002-07-26 Thread Chua Eng Huang, Cecil

That is the error reported for the Macintosh/IE combination.  Does anyone know why?
 
(Even with faulty HTML, I'd think the browser would still get faulty HTML instead of 
nothing).
 
Cecil Chua

-Original Message- 
From: Sexton, George [mailto:[EMAIL PROTECTED]] 
Sent: Fri 7/26/2002 9:52 PM 
To: Tomcat Users List 
Cc: 
Subject: RE: Website does not appear on Macintosh/IE



You might try looking at it in Mozilla. It looks totally wrong there. When you 
type in an author first name and lastname, and hit submit you get a TOTALLY blank 
page.

-Original Message-
From: Chua Eng Huang, Cecil [mailto:[EMAIL PROTECTED]]
Sent: 26 July, 2002 7:30 PM
To: Tomcat Users List
Subject: RE: Website does not appear on Macintosh/IE


Hmm... for some reason I am getting a different set of output.  This is what I 
get:

TR
TDInput Type=CheckBox Name=FACNO Value=46464/TD
TDStraub Jr./TD
TDDetmar W./TD
TDA 
HRef=http://readable.eci.gsu.edu:8080/examples/servlet/isbib?Command=DisplayFromMenu=FacResMenuOption=1No=0Last=Straub
 Jr.First=Detmar W.Change data/A/TD
/TR

This part of the code is auto-generated.  What concerns me is that you are 
getting eight zeros after the FACNO variable rather than four.  Also note that the 
code is cleaner.  I haven't made any changed to the code for at least a week.

Cecil Chua

-Original Message-
From: Sexton, George [mailto:[EMAIL PROTECTED]]
Sent: Fri 7/26/2002 7:49 PM
To: Tomcat Users List
Cc:
Subject: RE: Website does not appear on Macintosh/IE
   
   

You might try cleaning up the HTML and re-testing it. I ran it through 
the HTML validator at validator.w3.org and got this:

*  Line 23, column 64:

  TDInput Type=CheckBox Name=FACNO 
Value=/Input/TD
  ^

  Error: end tag for element INPUT which is not open; try 
removing the end tag or check for improper nesting of elements

* Line 24, column 35:

  ... IRST Value=Detmar W./Input/TD
 ^

  Error: end tag for element INPUT which is not open; try 
removing the end tag or check for improper nesting of elements

* Line 25, column 35:

  ... AST Value=Straub Jr./Input/TD
 ^

  Error: end tag for element INPUT which is not open; try 
removing the end tag or check for improper nesting of elements

* Line 191, column 31:

  Option Value=49  Florida AM/Option
 ^

  Error: unknown entity M
* Line 2111, column 3:

  /P
 ^

  Error: end tag for element P which is not open; try removing 
the end tag or check for improper nesting of elements







Re: Java Profilers, OptimizeIt or JProbe

2002-07-26 Thread John Gentilin

I have used OptimizeIt to profile an XML Server that runs under Tomcast.
The results were very helpful, haven't used it in a while though. Actually
Borland
just proactively sent me the upgrade disk which really surprised me. A
year ago
when I first purchased it, it was the best product for the money after
looking at
the different trial versions. One thing I like is that both the Linux 
Windows
versions come on the same disk.


Regards
John G

Zhenxin Wang wrote:

 Has anybody compared these two products, esp. when they integrate with
 Tomcat?

 Thanks!

 Zhenxin Wang
 DoCoMo USA Labs






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




RE: Help, Can I Use JAAS in the Tomcat 3.3 /4.0 enviorment

2002-07-26 Thread Andrew Conrad

I'm not positive if you can make an NT Login, but TC 4.1.x has a
JAASRealm class which extends the Realm class.

I didn't see any docs except the source.  You probably want to get
familiar with Realms first, then tackle JAASRealm.  As a side not, if
you are using Active Directory, you could use JNDIRealm and connect to
through LDAP to AD.


If you get JAAS to work, post it so we all can learn.


- Andrew

 -Original Message-
 From: John Gentilin [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, July 26, 2002 5:15 PM
 To: Apache TomCat Project
 Subject: Help, Can I Use JAAS in the Tomcat 3.3 /4.0 enviorment
 
 
 In a Servlet design I am working on, I want to implement a 
 security policy where the Servlet mechanisms knows if the 
 user is allowed and what roles they are allowed to operate 
 in, but falls back to the native O/S to validate the users 
 password. The JAAS interface seems like the perfect mechanism 
 using the NT Login mechanism along with a Login manager that 
 I would implement.
 
 The question I have is, can JAAS be implemented in a Servlet 
 environment. It appears that the classes need to be present 
 at JVM boot time and not in the WEB-INF/lib directory (an 
 issue with 1.3 JVM's) and an apparent platform issue with 
 providing policy files. i.e. The need to load the 
 .java2.policy from the user home directory which has little 
 context in a servlet environment. It seems like I can get it 
 to work but it would require a lot of tweaking with the 
 System JVM and Tomcat installation and not something that is 
 generically available at an ISP.
 
 Any suggestions would be greatly appreciated.
 
 Thanks in advance
 John G
 
 
 
 
 
 --
 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: localhost vs IP address in the URL

2002-07-26 Thread Saravanan Bellan

Thanks to whoever has been following this.

dwh, your pet theory about maximum packet size is right.

This explains it.

http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q294769;



 -Original Message-
 From: Saravanan Bellan [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 25, 2002 2:46 PM
 To: 'Tomcat Users List'
 Subject: RE: localhost vs IP address in the URL
 
 
  
  
  I'm not a networking guru, (and this is sort of OT for 
  Tomcat) but I'm not
  convinced by M.Schwartz's response that this is due solely 
 to DNS name
  resolution.  I don't think that would account for such a big 
  difference in
  time--once the name was resolved to the IP address, behavior 
  should be the same,
  no?
  
  Saravanan, you say there's a 20x difference but what's the 
  magnitude?  Are we
  talking 10 ms vs. 200 ms. or 1 second vs 20 seconds?  By IP 
  address do you mean
  127.0.0.1 or the IP address of the computer?
 
 If it takes about 10 seconds when using the IP address/hostname,
 then it takes more than 5 minutes when using localhost/127.0.0.1
 
 By IP address I mean the Network IP address of the machine, 
 not 127.0.0.1
 
  
  My pet theory is that the TCP/IP stack is recognizing the IP 
  address as being of
  the local box and is shortcutting packets from transmit 
  queues to receive
  queues in memory, without actually getting the NIC involved 
  or anything.  Or
  maybe the NIC is doing this.
  
  Many years ago when I did hardware testing, we first ran into 
  TCP/IP stacks that
  had this optimization.
  
  The other thought is that for some reason different maximum 
  packet sizes are
  being used with these different connections?
  
  Of course, this is just a theory.  Someone with a little more 
  knowledge might be
  able to speak more authoritatively grin.
  
  dwh
  
  
  Saravanan Bellan wrote:
  
   Windows 2000
   Tomcat 3.2.3
  
   If I try to upload a file using the regular HTML/HTTP, 
  there is a 20x
   difference in performance
   between using localhost vs the IP address in the Web Server 
  URL. Ofcourse
   I'm running the browser
   on the same machine where tomcat is installed. Using 
  localhost is 20 times
   slower than using IP address.
  
   Doesnt make a difference if I use Apache/AJP/Tomcat or 
  Direct to Tomcat web
   server.
  
   Can somebody throw some light on this.
  
   Thanks,
  
   --
   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]




Mod_jk2 and j_security_check

2002-07-26 Thread Andrew Conrad

When configuring TC 4.1.8 to work with mod_jk2.dll (jul-19 nightly), I
ran into an odd configuration issue with j_security_check.

When using extension mapping, the only way to get j_security_check to be
sent to Tomcat was to make a directory redirect for it.

snip

[uri:/TimeOff/*.jsp]
alias=localhost
info=default context
context=/TimeOff/*.jsp
debug=10

[uri:/TimeOff/j_security_check/*]
alias=localhost
info=default context
context=/TimeOff/j_security_check
debug=10

/snip

Does anyone know if this is how it's supposed to work?  I tried a couple
different scenario's that didn't work. 

[uri:/TimeOff/j_security_check]  // This did nothing whatsoever from
what I can tell

[uri:/TimeOff/j_security_check.do] //with a servlet-mapping in my
web-app, but that didn't work because j_security_check isn't a servlet
in my web-app.  It must get peeled off before the request makes it into
the servlet container.  


If anyone know's a better way of handling this, please let me know.
This redirect actually works for servlets too, if you wanted to specify
each servlet individually.



- Andrew

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




Question on differences between spec and Tomcat class library

2002-07-26 Thread Ian McFarland

Hey, I was just noticing that the names of two of the interfaces 
defined in the Tomcat 2.3 spec (two of the Lifecycle listeners) don't 
match the classnames in the Tomcat library. Which one is right?

According to the spec (servlet-2_3-fcs-spec.pdf page 70, marked final, 
dated 8/13/01) the class names are

javax.servlet.ServletContextAttributesListener
javax.servlet.http.HttpSessionAttributesListener

In the servlet.jar that comes with Tomcat (4.1.7b, at least) they're 
called:

javax.servlet.ServletContextAttributeListener
javax.servlet.http.HttpSessionAttributeListener

Note the additional 's' at the end of attributes in both cases.

Which is right?

Just want to make sure my listeners are portable!

Thanks in advance.


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




Tomcat/jsp problem ::: Can any one help me !!!

2002-07-26 Thread Nishant_Awasthi

I am using tomcat 4.0.3 version.
Everything was working fine until I restarted my computer and now I cannot
have my JSP examples
of tomcat running.

Before restarting my computer JSP, SOAP examples and my own examples were
running
great. Now when I
try to run JSP example at http://localhost:8080 it gives following error:

StandardContext[/manager]: Servlet /manager threw load()
exception
javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)


at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)


at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.lang.NoSuchMethodError
at
org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.java:202)


at
org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:139)


at
org.apache.jasper.EmbededServletOptions.init(EmbededServletOptions.java:345)


at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)


at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)


at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

I tried to reinstall the tomcat but now this error is persistent
Can you tell me why this problem is occuring?



Nishant Awasthi






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