RE: Tomcat and CLASSPATH

2002-11-05 Thread Ralph Einfeldt

We have following reqirements:
- each site can have a different version of a tool
- many sites share the same vesion of the tool
- a site may change the needed version of a tool
- a site may replace a tool by a different one
  (switch from postgres to firebird)

We have a setup like this:

/usr/local/tool-a-v1/lib/toola.jar
/usr/local/tool-a-v2/lib/toola.jar
/usr/local/tool-a-v3/lib/toola.jar

/usr/local/tool-b-v1/lib/toolb.jar
/usr/local/tool-b-v2/lib/toolb.jar


/www/online/www.site-a
/www/online/www.site-b
...
/www/online/www.site-z


Currently we use jserv and gnujsp.

jserv has the concept of repositories. The repositories are 
added by jserv to the internal classpath. We use the repositories 
to connect a site with the tools it needs. So it's very easy
to change the versions of the tool or to replace the tool.

Now to tomcat:

Without linking we would have to copy the libraries into 
the tomcat directory structure for each site.

With copying I see two disadvantages for us:
- We would have several copies of the same libraries.
  Although disk space get cheaper, this is something
  that disturbs me (May be caused by the fact that 
  my first hard disk had less space than a modern 
  grafic card or handheld has memory: 40MB)
- We loose the 'natural' information which
  version of the library we use in specific site.
- If we would have to replace a version of a tool
  by a patched version, we could just replace the
  central file, now we have to copy this file to
  all instances that use this version.

With linking the libraries we could solve both 
disadvantages for us.

 -Original Message-
 From: Turner, John [mailto:JTurner;AAS.com]
 Sent: Monday, November 04, 2002 5:39 PM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat and CLASSPATH
  
 
 We don't use symbolic links.  Everything is under Tomcat's 
 directory tree.
 
 What is the advantage to using symbolic links or an external 
 classpath?  I'm not seeing what advantage you would get.
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Standalone Tomcat : suppress directory listing in web.xml

2002-11-05 Thread Marc Mendez
Hi,

I browse the archive, but I found just a part of the answer.

I use Tomcat standalone (the app will run under tomcat 3.x and 4.x). I want
to prevent access to directories, but I just want to configure this in the
web.xml file of my app, nowhere else !
As u see below, the web.xml is quite simple !

web-app

servlet
 servlet-nameWindexServer/servlet-name
 servlet-classwindexserver.servlet.WindexServlet/servlet-class
 init-param
  param-namePropertiesFileName/param-name

param-valueD:/Appli/tomcat/webapps/WindexServer/WS_Manager/internal/config
.ini/param-value
 /init-param
/servlet

servlet-mapping
 servlet-nameWindexServer/servlet-name
 url-pattern/WindexServer/url-pattern
/servlet-mapping

/web-app

If u have any idea :-))


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Sending GIF image from tomat web application to browser

2002-11-05 Thread Peter Lee

I am trying to send GIF or JPEG images from a Tomcat web 
application servlet to a browser when the user clicks on a web 
link. Is there any correct way of doing this?

Thanks


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Multiple instances of Tomcat

2002-11-05 Thread Pedro Igor Craveiro e Silva
Greetings 

A long, long time i´m trying to configure tomcat to run with multiple instances 
(tomcat+apache).
Has some one in this list that can help me to do this ? Or just give me the firt step 


Thanks a lot ...

Pedro Igor



RE: Sending GIF image from tomat web application to browser

2002-11-05 Thread Reynir Hübner

Well, if someone clicks a link to a image the response would be the image, according 
to HTTP comunication standard.

Try putting  a href=http://somehost.someserver.com/somepath/image.gif; click here 
for image /a in to your HTML. It should work.

Hope it helps

-reynir






 -Original Message-
 From: Peter Lee [mailto:tomcatuser;shaw.ca] 
 Sent: 5. nóvember 2002 10:52
 To: [EMAIL PROTECTED]
 Subject: Sending GIF image from tomat web application to browser
 
 
 
 I am trying to send GIF or JPEG images from a Tomcat web 
 application servlet to a browser when the user clicks on a web 
 link. Is there any correct way of doing this?
 
 Thanks
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:tomcat-user-help;jakarta.apache.org
 
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




JK2 Errors when communicating with IIS 5.0

2002-11-05 Thread Robert Biernat
Hi,
 
I've been using Tomcat for quite a while now with IIS and am experiencing
some stability issues when using the two. Basically after about a 1 - 2
days, I can no longer connect into Tomcat through the isapi redirector and
the AJP13 connector. (The http connector on port 8080 works alright though).
 
When I restart Tomcat (not IIS) everything works fine again.
 
Going through some logs I've seen this strange error a few times and thought
maybe it had something todo with the stability of the two seperate
processes.
 
Nov 5, 2002 10:40:23 AM org.apache.jk.common.ChannelSocket processConnection
SEVERE: Error, closing connection
java.net.SocketException: Software caused connection abort: JVM_recv in
socket input stream rea
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:116)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:471)
at
org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:409)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:524)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:638)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:536)
Nov 5, 2002 10:41:41 AM org.apache.jk.common.ChannelSocket processConnection
WARNING: server has closed the current connection (-1)
Nov 5, 2002 10:41:41 AM org.apache.jk.common.ChannelSocket processConnection
WARNING: server has closed the current connection (-1)
 
One thing that should be noted is that in the worker.properties file I have
set the AJP13 worker cache size to 50, and in the server xml i have set the
processing threads to over 100. The worker FAQ recommends i set this to a
high value especially if when using multi threaded web servers.
 
If anyone has some IDEAs that would be good please let me know.
 
Current config - Win2K, Tomcat 4.1.12  IIS 5.0 with latest jakarta
isapi_redirector.dll
 
 
Thanks
 
Rob
 
 
 
 
 
 



Re: Sending GIF image from tomat web application to browser

2002-11-05 Thread Raj Saini
In your servlet set the content type of http header to image/jpeg or 
image/gif depending upon the type of the image. If you have already 
written a servlet, you can figure out how to do this.

Raj


Peter Lee wrote:
I am trying to send GIF or JPEG images from a Tomcat web 
application servlet to a browser when the user clicks on a web 
link. Is there any correct way of doing this?

Thanks


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Tomcat 4.1 and apache 1.3 how-to

2002-11-05 Thread Andy Eastham
Sorry,

I meant to send this directly to Zack rather than back to the list,

Andy
 -Original Message-
 From: Andy Eastham [mailto:andy.eastham;gliant.com]
 Sent: 05 November 2002 10:32
 To: Tomcat Users List
 Subject: RE: Tomcat 4.1 and apache 1.3 how-to


 Zack,

 Here's the mod_webapp.so binary that comes with Solaris 9, which I know is
 binary compatible with 8, therefore maybe 7 too?

 Give it a try anyway.

 Good luck,

 Andy

  -Original Message-
  From: Beatty, Z [mailto:zackbeatty;yahoo.com]
  Sent: 05 November 2002 04:20
  To: Tomcat Users List
  Subject: Tomcat 4.1 and apache 1.3 how-to
 
 
  Can anyone point me in the right direction, for
  connecting Apache 1.3 and Tomcat 4.12, on Solaris 7?
  Should I try mod_webapp, mod_jk, or mod_jk2?   I need
  a binary file, for whatever connector I choose.
  Please don't respond with RTFM.  There are no binaries
  avaiable in:
  http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/rele
 ase/v1.2.0/bin/

 Also, there isn't even a Solaris 7 directory (only 6
 and 8).   Does that matter?

 I would prefer to use mod_webapp, due to the
 simplicity of the installation process.   I installed
 that on Win2000 a while ago, but there are no Solaris
 binaries available anywhere.

 Thanks.

 __
 Do you Yahoo!?
 HotJobs - Search new jobs daily now
 http://hotjobs.yahoo.com/

 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Can't solve SAXParseException: The string -- is not permitted within comments

2002-11-05 Thread Jacob Kjome

Hi Nix,

The best I can do is point you to the following:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13241
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13282

Jake

At 07:06 AM 11/5/2002 +0100, you wrote:

Jacob Kjome wrote:

Yep, known issue.  Try using the previous version of Xerces-2.x.x.  The 
newest one doesn't seem to play well with Digester.


I've read in the mail archives that this bug can be solved using a different
version of Xerces. I've replaced
jakarta-tomcat-4.1.12/common/endorsed/xercesImpl.jar with:

xercesImpl.jar (included with Tomcat 4.1.14)
xercesImpl.jar (Xerces 2.0.0)
xercesImpl.jar (Xerces 2.2.0)
xerces.jar (included with Tomcat 4.0.6 = Xerces 1.4.4)

but I always get the same error. I'm sure this is the only xerces library
installed in my system (it's not included in JDK1.3.1).


So, which one to use? 2.1.x? And is that a Xerces issue or Tomcat issue? 
Which one should be upgraded?

Nix.


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


URGENT= Problem with Session Cookie

2002-11-05 Thread afreire
I'm using Apache with Tomcat 3.3.1.
I have a servlet with multiples instances. When I call it in first time a
create the sesssion (session = req.getSession(true)) and set several info
in the session, after that I call another instance of this servlet that use
the data saved in the firts time. My probles is that when I call the second
instance Tomcat create again the session and I lost all previous data.

For read the session I use: session = req.getSession(). I use that in the
top of the servlet and for every instance. Then to create the session in a
espefic instance I use: session = req.getParameter(true).

That's works fine under Tomcat 3.2.3, but I need to upgrade it.

Anybody could help me?

Regards
Alejandro





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Auth problem

2002-11-05 Thread Jose Andrés Pérez
Hi all,

I have defined several security constraints on my servlet context and I
would like to maintain the jsessionid that the login page receives on the
login error page in case of authentification fail. Is this possible on
Tomcat 3.3.1? If so, do you know if it is also possible in any JBoss
version?


Thanks in advance,
Jose Andres


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Application Server Setup plus Apache

2002-11-05 Thread Turner, John

Thanks!

John


 -Original Message-
 From: Robert L Sowders [mailto:rsowders;usgs.gov]
 Sent: Monday, November 04, 2002 4:50 PM
 To: Tomcat Users List
 Subject: RE: Application Server Setup plus Apache
 
 
 
 Here you go John,
 
 Here is one Glenn N.  wrote last August.
 
 Someone is already xmlifiying it for a how to.  At least that 
 is what they
 said they were doing.
 
 It is attached.
 
 (See attached file: Tomcat Virtaul.txt)
 
 
   
   
  
   Turner, John  
   
  
   [EMAIL PROTECTED]To:   
 'Tomcat Users List' [EMAIL PROTECTED]  
   
cc:
   
  
   11/04/2002 12:54 Subject:  RE: 
 Application Server Setup plus Apache  
   
   PM  
   
  
   Please respond to   
   
  
   Tomcat Users   
   
  
   List   
   
  
   
   
  
   
   
  
 
 
 
 
 
 I can only speak for JK (mod_jk), not mod_jk2.  Mod_jk directives are
 contained in Apache VirtualHost directives, they are unique 
 per virtual
 host.  That is, the JkMount commands /*.jsp and 
 /servlet/* are specific
 to virtual host.
 
 You'll need an automated way to manage workers.properties, as 
 4 lines are
 needed for each virtual host, and you can probably use the auto-deploy
 function of Tomcat to take care of that end, not to mention the Tomcat
 Manager app, which I believe you can give limited control panel-type
 access to specific users.  If that's the case, you'll need an 
 automated way
 to handle the tomcat-users.xml file.
 
 I'm not sure how much detail you're looking for...the Apache 
 side is adding
 2 lines to the VirtualHost containers that should already be there:
 
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 
 Perhaps someone on the list who is working for an ISP or has 
 set this up
 before has more to add.  I'd be interested in seeing a HOWTO 
 or some other
 description of the process as well.
 
 Actually, now that I think about it, you'll probably want to give each
 hosting account their own instance of Tomcat and their own 
 instance of the
 JVM.  This can be done pretty easily, and in fact the setup 
 is even easier
 than trying to do it with one Tomcat.  I have 14 instances of Tomcat 3
 running right now in this configuration...one host per 
 client.  All you
 need
 is a separate server.xml file (like server-client_name.xml or
 server-virtual_host.xml) with appropriate changes to the 
 connector port,
 and
 a tweak to CATALINA_BASE and you should be good to go.
 
 John
 
 
  -Original Message-
  From: Russell Elik Rademacher [mailto:elikster;subdimension.com]
  Sent: Monday, November 04, 2002 3:33 PM
  To: Tomcat Users List
  Subject: Application Server Setup plus Apache
 
 
  Hello guys.
 
  Bear with me on this.  Lot of you probably will say RTFM
  and such, but
  this is sort of something that need to be fully documented so
  that it can be
  fully understood by someone who is sort of new to Tomcat and
  been dabbling
  with it for a while.
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 
 
 
 
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Application Server Setup plus Apache

2002-11-05 Thread Turner, John

The minimum requirements for workers.properties are:

worker.list=worker-name
worker.worker-name.port=some-port
worker.worker-name.host=some-virtual-host
worker.worker-name.type=some-worker-type

Don't use mod_webapp, it is no longer actively developed and wasn't that
great to begin with.  JK2 is considered stable on the Tomcat side, and
less-than-production-ready-but-probably-OK on the Apache side.  My personal
preference is to stick with tried-and-true code, so for me it's JK.  You're
welcome to use whichever you like.

I don't think anyone is just going to dump out a huge reply to you
describing every last thing you should do for virtual hosting.  Virtual
hosting can be different just about anywhere you go, thanks to differing
requirements (is it JSP virtual hosting only, is it JSP+PHP, is it
JSP+PHP+CGI+SSI+a-bunch-of-other-stuff, etc) and differing environments.

My point is that on the Apache side, you can be fine with JkMounts in
Virtual Host containers, on the JK2 side you would have to modify the
.properties file as it doesn't use JkMount.  On the Tomcat side, you would
be better off with multiple Tomcats over a single monolithic Tomcat serving
all virtual hosts, in my opinion.

John

 -Original Message-
 From: Russell Elik Rademacher [mailto:elikster;subdimension.com]
 Sent: Monday, November 04, 2002 4:31 PM
 To: Tomcat Users List
 Subject: Re: Application Server Setup plus Apache
 
 
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Which four lines are required for the workers.properties? 
  That is what
 I am curious about along with Tomcat-users.xml file.
 
 But it seems they are in favor of the mod_jk2 instead of 
 the old mod_jk,
 plus they have also have warp connector as well.  So...wasn't 
 sure which is
 the popular one to use.
 
 - - Original Message -
 From: Turner, John [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Monday, November 04, 2002 3:54 PM
 Subject: RE: Application Server Setup plus Apache
 
 
 
  I can only speak for JK (mod_jk), not mod_jk2.  Mod_jk 
 directives are
  contained in Apache VirtualHost directives, they are unique 
 per virtual
  host.  That is, the JkMount commands /*.jsp and /servlet/* are
 specific
  to virtual host.
 
  You'll need an automated way to manage workers.properties, 
 as 4 lines are
  needed for each virtual host, and you can probably use the 
 auto-deploy
  function of Tomcat to take care of that end, not to mention 
 the Tomcat
  Manager app, which I believe you can give limited control 
 panel-type
  access to specific users.  If that's the case, you'll need 
 an automated
 way
  to handle the tomcat-users.xml file.
 
  I'm not sure how much detail you're looking for...the Apache side is
 adding
  2 lines to the VirtualHost containers that should already be there:
 
  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13
 
  Perhaps someone on the list who is working for an ISP or 
 has set this up
  before has more to add.  I'd be interested in seeing a 
 HOWTO or some other
  description of the process as well.
 
  Actually, now that I think about it, you'll probably want 
 to give each
  hosting account their own instance of Tomcat and their own 
 instance of the
  JVM.  This can be done pretty easily, and in fact the setup 
 is even easier
  than trying to do it with one Tomcat.  I have 14 instances 
 of Tomcat 3
  running right now in this configuration...one host per 
 client.  All you
 need
  is a separate server.xml file (like server-client_name.xml or
  server-virtual_host.xml) with appropriate changes to the 
 connector port,
 and
  a tweak to CATALINA_BASE and you should be good to go.
 
  John
 
 
   -Original Message-
   From: Russell Elik Rademacher [mailto:elikster;subdimension.com]
   Sent: Monday, November 04, 2002 3:33 PM
   To: Tomcat Users List
   Subject: Application Server Setup plus Apache
  
  
   Hello guys.
  
   Bear with me on this.  Lot of you probably will say RTFM
   and such, but
   this is sort of something that need to be fully documented so
   that it can be
   fully understood by someone who is sort of new to Tomcat and
   been dabbling
   with it for a while.
  
 
  --
  To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 -BEGIN PGP SIGNATURE-
 Version: PGP 8.0 (Build 294) Beta
 
 iQA/AwUBPcbnExS/yQEtwOFGEQIp6gCfRVdnT2vpcMCMSZJL7gkqDYlJT70AoJX+
 U4bcb3GH4Qhw+xMZ6+WWVWqX
 =Y2bg
 -END PGP SIGNATURE-
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Multiple instances of Tomcat

2002-11-05 Thread Turner, John

One Apache.

Many Tomcats.

For many Tomcats, if you intend to delegate each Tomcat to a specific web
app, virtual host, or business client, you need a server.xml for each, and
you need to set CATALINA_BASE and things like appBase and docBase in each
server.xml accordingly. You will need to change the connector port as well.

If by multiple instances you mean that you want to load-balance Tomcat
requests, you need to set up a worker in workers.properties (assuming that
you are using JK) for each Tomcat.  Good load-balancing HOWTO:
http://www.ubeans.com/tomcat

John

 -Original Message-
 From: Pedro Igor Craveiro e Silva [mailto:pedroigor;aip.com.br]
 Sent: Tuesday, November 05, 2002 6:43 AM
 To: [EMAIL PROTECTED]
 Subject: Multiple instances of Tomcat
 
 
 Greetings 
 
 A long, long time i´m trying to configure tomcat to run with 
 multiple instances (tomcat+apache).
 Has some one in this list that can help me to do this ? Or 
 just give me the firt step 
 
 Thanks a lot ...
 
 Pedro Igor
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Tomcat 4.1 and apache 1.3 how-to

2002-11-05 Thread Turner, John

Red Hat 7.2 HOWTO using JK:
http://www.johnturner.com/howto/apache1-tomcat404-howto.html

Aside from Tomcat version, and different binary files for Solaris instead of
RH, there is no difference.  The setup is exactly the same, I know this
because I just did it yesterday morning on a brand-new install of Solaris 8
on a 420R.  By setup I mean configuration, not compilation.  The
compilation was actually quite a bit of hassle, so if you can get binaries
of JK you should be good to go.

I have some Solaris 8 JK binaries archived at
http://www.johnturner.com/howto, they were compiled against 4.0.4 source,
but I doubt it would make much difference.  Might be worth a shot.

John

 -Original Message-
 From: Beatty, Z [mailto:zackbeatty;yahoo.com]
 Sent: Monday, November 04, 2002 11:20 PM
 To: Tomcat Users List
 Subject: Tomcat 4.1 and apache 1.3 how-to
 
 
 Can anyone point me in the right direction, for
 connecting Apache 1.3 and Tomcat 4.12, on Solaris 7?  
 Should I try mod_webapp, mod_jk, or mod_jk2?   I need
 a binary file, for whatever connector I choose.  
 Please don't respond with RTFM.  There are no binaries
 avaiable in:
 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/
 release/v1.2.0/bin/
 
 Also, there isn't even a Solaris 7 directory (only 6
 and 8).   Does that matter?
 
 I would prefer to use mod_webapp, due to the
 simplicity of the installation process.   I installed
 that on Win2000 a while ago, but there are no Solaris
 binaries available anywhere.
 
 Thanks.
 
 __
 Do you Yahoo!?
 HotJobs - Search new jobs daily now
 http://hotjobs.yahoo.com/
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Tomcat and CLASSPATH

2002-11-05 Thread Turner, John

Thanks for the response.

My point is simply that the files have to reside _somewhere_, correct?  So
if they have to reside _somewhere_, they might as well reside in the
structure intended for them.  The act of putting them in location A vs.
location B is exactly the same, only the destination is different.

The rest is housekeeping, and in my mind, it makes more sense to write a
housekeeping tool (or use a build/deploy tool) than it does to circumvent an
intentional design.  The only other problem is duplicates, as you pointed
out, but again, that's housekeeping.  As long as you know who/what has which
file, the fact that there are two copies of the file is pretty irrelevant
from a practical viewpoint.

John


 -Original Message-
 From: Ralph Einfeldt [mailto:ralph.einfeldt;uptime-isc.de]
 Sent: Tuesday, November 05, 2002 4:29 AM
 To: Tomcat Users List
 Subject: RE: Tomcat and CLASSPATH
 
 
 
 We have following reqirements:
 - each site can have a different version of a tool
 - many sites share the same vesion of the tool
 - a site may change the needed version of a tool
 - a site may replace a tool by a different one
   (switch from postgres to firebird)
 
 We have a setup like this:
 
 /usr/local/tool-a-v1/lib/toola.jar
 /usr/local/tool-a-v2/lib/toola.jar
 /usr/local/tool-a-v3/lib/toola.jar
 
 /usr/local/tool-b-v1/lib/toolb.jar
 /usr/local/tool-b-v2/lib/toolb.jar
 
 
 /www/online/www.site-a
 /www/online/www.site-b
 ...
 /www/online/www.site-z
 
 
 Currently we use jserv and gnujsp.
 
 jserv has the concept of repositories. The repositories are 
 added by jserv to the internal classpath. We use the repositories 
 to connect a site with the tools it needs. So it's very easy
 to change the versions of the tool or to replace the tool.
 
 Now to tomcat:
 
 Without linking we would have to copy the libraries into 
 the tomcat directory structure for each site.
 
 With copying I see two disadvantages for us:
 - We would have several copies of the same libraries.
   Although disk space get cheaper, this is something
   that disturbs me (May be caused by the fact that 
   my first hard disk had less space than a modern 
   grafic card or handheld has memory: 40MB)
 - We loose the 'natural' information which
   version of the library we use in specific site.
 - If we would have to replace a version of a tool
   by a patched version, we could just replace the
   central file, now we have to copy this file to
   all instances that use this version.
 
 With linking the libraries we could solve both 
 disadvantages for us.
 
  -Original Message-
  From: Turner, John [mailto:JTurner;AAS.com]
  Sent: Monday, November 04, 2002 5:39 PM
  To: 'Tomcat Users List'
  Subject: RE: Tomcat and CLASSPATH
   
  
  We don't use symbolic links.  Everything is under Tomcat's 
  directory tree.
  
  What is the advantage to using symbolic links or an external 
  classpath?  I'm not seeing what advantage you would get.
  
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: A Question on Tomcat 4.1

2002-11-05 Thread Turner, John

Just creating a directory an putting your classes there will do nothing.
There is additional configuration in both server.xml and web.xml that needs
to occur.

Please read the documentation, especially the Application Developer's Guide:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html

John


 -Original Message-
 From: Minghua Yao [mailto:myao;ou.edu]
 Sent: Monday, November 04, 2002 6:56 PM
 To: [EMAIL PROTECTED]
 Subject: A Question on Tomcat 4.1
 
 
 Hi, 
 
 I am new in using tomcat.
 
 My question is:
 
 $CATALINA_HOME/webapps/examples/WEB-INF/classes/HelloWorldServ
 let.class
 
 can be executed by typing in the IE browser
 
 http://:8080/examples/servlet/HelloWorldServlet
 
 But 
 
 $CATALINA_HOME/webapps/my/WEB-INF/classes/HelloWorldServlet.class
 
 can NOT be executed by typing in the IE browser
 
 http://:8080/my/servlet/HelloWorldServlet
 
 WHY???
 
 The directories and HelloWorldServlet.class in both 
 exapmples and my have the same read, write, execution attributes.
 
 Help will be appreciated.
 
 myao
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




JDBC Error with Tomcat 4.0.6

2002-11-05 Thread John Mattos

All,

I need a little help with this one. I'm porting an app to Tomcat 4.0.6 from WebSphere 
4.03 and I'm getting a JDBC Error, 

java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Error establishing socket.

I've included a bit about my app to see if anyone can help me figure out where my 
misconfiguration is.

Am I using the right driver for SQL Server 2000? (I'm using msutil.jar, 
mssqlserver.jar and msbase.jsr, the native drivers) Should I be using a different 
class? Is my JDBC URL not formed properly? 

I guess I need help from a SQL Server/Tomcat guru...

Thanks!

John 

Server.xml file snippet : 
ResourceParams name=jdbc/indemand
 parameter
   namevalidationQuery/name
   valueselect top 100 * from Subscriber/value
 /parameter
 parameter
   nameurl/name
  
valuejdbc:microsoft:sqlserver://vc34:1433;databaseName=TibcoClearHouse/value
 /parameter
 parameter
   namepassword/name
   valuetibco_pass/value
 /parameter
 parameter
   namemaxActive/name
   value12/value
 /parameter
 parameter
   namemaxWait/name
   value5000/value
 /parameter
parameter
namedriverClassName/name
valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value
/parameter
 parameter
   nameusername/name
   valuetibco_user/value
  /parameter
/ResourceParams

Web.xml file snippet:
  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/indemand/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref

Partial Stack trace:
java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Error establishing socket.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSConnection.init(Unknown Source)
at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at 
com.thoughtworks.util.pool.JDCConnectionPool.getConnection(JDCConnectionPool.java:174)
at 
com.thoughtworks.clearinghouse.util.ConnectionFactory.createConnectionForTibco(ConnectionFactory.java:59)
at 
com.thoughtworks.clearinghouse.util.ConnectionFactory.createConnection(ConnectionFactory.java:40)
at 
com.thoughtworks.clearinghouse.util.DatabaseUtility.getUserByName(DatabaseUtility.java:123)



-
Do you Yahoo!?
HotJobs - Search new jobs daily now


RE: JNDI results in Cannot Load JDBC Driver Class

2002-11-05 Thread Brian Kautz

This is rather frustrating, since your example is EXACTLY what I have in
place.  It just refuses to work.

I have data pools working to mySQL, I just can't get this as400 connection
to pool.

May I ask one more question?  Are you running your 4.1.12 off of an AS400
or some other server?  My 4.1.12 is running off of an AS400.

Thanks for the advice,

Brian



|-+---
| |   Hari   |
| |   Venkatesan |
| |   hvenkatesan@pfg|
| |   c.com  |
| |   |
| |   11/04/2002 06:53|
| |   PM  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
---|
  |
   |
  |To:  Tomcat Users List [EMAIL PROTECTED]   
   |
  |cc:  [EMAIL PROTECTED]   
   |
  |Subject: RE: JNDI results in Cannot Load JDBC Driver Class  
   |
  
---|




Sorry for the late reply

Firstly you have define your datasource for the application in the
context path. I believe this has to be defined for each and every
application. The following is one sample













--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Tomcat and CLASSPATH

2002-11-05 Thread Ralph Einfeldt
Yes it is housekeeping, and we already have scripts that can 
do the housekeeping. As we have in the past moved from linking
to the repositories, we have already a list of jar files
that are needed outside of the container, and a script that
creates the repository entries.

Still I see some disadvantages.

- I feel more comfortable if I can see directly
  which version of a library is used instead
  on relying on external reference. (I have seen 
  to many people ignoring the rules and copying
  something manually without updating the reference.)

- Although disk space is cheap, it's not for free.
  And there are other space requirements that aren't 
  cheap at all (backup drive + tapes)
  Currently the libraries that are used for our 
  sites have a size of roughly 4-5MB. If you have to
  copy this for each site it can get a quite big 
  number.
  Depending on your business model, that can be
  a deciding difference. (The smaller the volume
  of the content and the more sites you have, the 
  more painfull this number gets)

 -Original Message-
 From: Turner, John [mailto:JTurner;AAS.com]
 Sent: Tuesday, November 05, 2002 2:06 PM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat and CLASSPATH
 
 
 
 Thanks for the response.
 
 My point is simply that the files have to reside _somewhere_, 
 correct?  So
 if they have to reside _somewhere_, they might as well reside in the
 structure intended for them.  The act of putting them in 
 location A vs.
 location B is exactly the same, only the destination is different.
 
 The rest is housekeeping, and in my mind, it makes more sense 
 to write a
 housekeeping tool (or use a build/deploy tool) than it does 
 to circumvent an
 intentional design.  The only other problem is duplicates, as 
 you pointed
 out, but again, that's housekeeping.  As long as you know 
 who/what has which
 file, the fact that there are two copies of the file is 
 pretty irrelevant
 from a practical viewpoint.
 
 John
 
 
  -Original Message-
  From: Ralph Einfeldt [mailto:ralph.einfeldt;uptime-isc.de]
  Sent: Tuesday, November 05, 2002 4:29 AM
  To: Tomcat Users List
  Subject: RE: Tomcat and CLASSPATH
  
  
  
  We have following reqirements:
  - each site can have a different version of a tool
  - many sites share the same vesion of the tool
  - a site may change the needed version of a tool
  - a site may replace a tool by a different one
(switch from postgres to firebird)
  
  We have a setup like this:
  
  /usr/local/tool-a-v1/lib/toola.jar
  /usr/local/tool-a-v2/lib/toola.jar
  /usr/local/tool-a-v3/lib/toola.jar
  
  /usr/local/tool-b-v1/lib/toolb.jar
  /usr/local/tool-b-v2/lib/toolb.jar
  
  
  /www/online/www.site-a
  /www/online/www.site-b
  ...
  /www/online/www.site-z
  
  
  Currently we use jserv and gnujsp.
  
  jserv has the concept of repositories. The repositories are 
  added by jserv to the internal classpath. We use the repositories 
  to connect a site with the tools it needs. So it's very easy
  to change the versions of the tool or to replace the tool.
  
  Now to tomcat:
  
  Without linking we would have to copy the libraries into 
  the tomcat directory structure for each site.
  
  With copying I see two disadvantages for us:
  - We would have several copies of the same libraries.
Although disk space get cheaper, this is something
that disturbs me (May be caused by the fact that 
my first hard disk had less space than a modern 
grafic card or handheld has memory: 40MB)
  - We loose the 'natural' information which
version of the library we use in specific site.
  - If we would have to replace a version of a tool
by a patched version, we could just replace the
central file, now we have to copy this file to
all instances that use this version.
  
  With linking the libraries we could solve both 
  disadvantages for us.
  
   -Original Message-
   From: Turner, John [mailto:JTurner;AAS.com]
   Sent: Monday, November 04, 2002 5:39 PM
   To: 'Tomcat Users List'
   Subject: RE: Tomcat and CLASSPATH

   
   We don't use symbolic links.  Everything is under Tomcat's 
   directory tree.
   
   What is the advantage to using symbolic links or an external 
   classpath?  I'm not seeing what advantage you would get.
   
  
  --
  To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




OFF-TOPIC: cvs

2002-11-05 Thread Felipe Schnack
  Hey, I tried to donwload the latest version from the CVS repository
with no luck.
  I'm using CVS in my production environment, and now that I updated my
server for RedHat 8.0 when I try to issue a watch on command I get the
message unknown command: watch_on. I searched for help, someone told
me I should get the latest version, but it doesn't work. What can I do?
I really use this command.

-- 

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

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


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Tomcat bug - chokes on # when redirecting

2002-11-05 Thread Shapira, Yoav
Hi,

This is the most obscure bug I have ever seen:

OK ;)  Wait a while ;)

If you use the redirect from IE6, Tomcat displays foo bar#123 rather
than the expected foo bar.  If you hit refresh at the new URL, Tomcat
gets foo bar right.

When this experiment is tried from Mozilla, Tomcat works properly.

What is special about a redirect from IE6?!?

I reproduced your results on my machine.  I don't think it's a tomcat
bug, because its works well in Mozilla.  I also tried Opera (6.05) and
it worked perfectly.

I think IE ignores the anchor in the URL because the page comes from the
cache.  Try including no-cache headers in the JSP and see what happens.

Regardless, I don't think it's a tomcat bug.  If you check the
RequestDumperValve output and the access log, you'll see tomcat responds
according to spec.

Yoav Shapira
Millennium ChemInformatics

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


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


RE: URGENT= Problem with Session Cookie

2002-11-05 Thread Larry Isaacs


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:afreire;banelco.com.ar] 
 Sent: Tuesday, November 05, 2002 7:19 AM
 To: [EMAIL PROTECTED]
 Subject: URGENT= Problem with Session Cookie
 
 
 I'm using Apache with Tomcat 3.3.1.
 I have a servlet with multiples instances. When I call it in 
 first time a
 create the sesssion (session = req.getSession(true)) and set 
 several info
 in the session, after that I call another instance of this 
 servlet that use
 the data saved in the firts time. My probles is that when I 
 call the second
 instance Tomcat create again the session and I lost all previous data.

It isn't clear to me what you mean by servlet with multiples
instances.  For typical use, Tomcat creates one instance of a
servlet, where servlet corresponds to a servlet-mapping
in the web.xml or what gets executed by .../servlet/classname
for a request.  Please explain.

Also, what does I call the second instance mean.  Is
this a forward, an include, a redirect, what?

 
 For read the session I use: session = req.getSession(). I use 
 that in the
 top of the servlet and for every instance. Then to create the 
 session in a
 espefic instance I use: session = req.getParameter(true).

Note that req.getSession() does the same thing as
req.getSession(true) (I'm assuming getParameter(true) above
is a typo).  Both will create a session, where
req.getSession(false) won't.

Larry

 
 That's works fine under Tomcat 3.2.3, but I need to upgrade it.
 
 Anybody could help me?
 
 Regards
 Alejandro
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:tomcat-user-help;jakarta.apache.org
 
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Tomcat bug - chokes on # when redirecting

2002-11-05 Thread Ralph Einfeldt
Have a look at the access log.

I guess IE 6.0 passes the anchor tag to the request,
the other browsers don't.

Tomcat doesn't know about the special meaning of 
the anchor (#123) as it as client side thing.

 -Original Message-
 From: Schnitzer, Jeff [mailto:JSchnitzer;maxis.com]
 Sent: Tuesday, November 05, 2002 7:37 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat bug - chokes on # when redirecting
 
 
 What is special about a redirect from IE6?!?
 
   String go = request.getParameter(go);
   if (true.equals(go)) {
   response.sendRedirect(redir.jsp?foo=bar#123);
   return;
   }


   foo %= request.getParameter(foo) %
   a href=redir.jsp?go=trueredir.jsp?go=true/a

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: URGENT= Problem with Session Cookie

2002-11-05 Thread afreire
Sorry I said that the servlet have multiples instances because I have
differents actions in it depend on the http parameter that it receive.  For
me ay instance in a servlet is different actions. That is clear?

If you see the javadoc about req.getSession(), you that this method only
create the session if that not exists.
But I don't know  why I tomcat 3.2.3 that it works and in tomcat 3.3.1
don't.

Any idea.
Regards
Alejandro




Larry Isaacs [EMAIL PROTECTED] con fecha 05/11/2002 11:05:15

Por favor, responda a Tomcat Users List [EMAIL PROTECTED]

Destinatarios: Tomcat Users List [EMAIL PROTECTED]
CC:(cci: ALEJANDRO FREIRE/BANELCO/AR)
Asunto:   RE: URGENT= Problem with Session Cookie






 -Original Message-
 From: [EMAIL PROTECTED] [mailto:afreire;banelco.com.ar]
 Sent: Tuesday, November 05, 2002 7:19 AM
 To: [EMAIL PROTECTED]
 Subject: URGENT= Problem with Session Cookie


 I'm using Apache with Tomcat 3.3.1.
 I have a servlet with multiples instances. When I call it in
 first time a
 create the sesssion (session = req.getSession(true)) and set
 several info
 in the session, after that I call another instance of this
 servlet that use
 the data saved in the firts time. My probles is that when I
 call the second
 instance Tomcat create again the session and I lost all previous data.
It isn't clear to me what you mean by servlet with multiples
instances.  For typical use, Tomcat creates one instance of a
servlet, where servlet corresponds to a servlet-mapping
in the web.xml or what gets executed by .../servlet/classname
for a request.  Please explain.
Also, what does I call the second instance mean.  Is
this a forward, an include, a redirect, what?

 For read the session I use: session = req.getSession(). I use
 that in the
 top of the servlet and for every instance. Then to create the
 session in a
 espefic instance I use: session = req.getParameter(true).
Note that req.getSession() does the same thing as
req.getSession(true) (I'm assuming getParameter(true) above
is a typo).  Both will create a session, where
req.getSession(false) won't.
Larry

 That's works fine under Tomcat 3.2.3, but I need to upgrade it.

 Anybody could help me?

 Regards
 Alejandro





 --
 To unsubscribe, e-mail:
 mailto:tomcat-user- [EMAIL PROTECTED]
 For
 additional commands,
 e-mail: mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:tomcat-user-help;jakarta.apache.org








--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Tomcat and CLASSPATH

2002-11-05 Thread Chris gokey
Thanks Justin.   Yes, I think you understand me correctly.  I think the
easiest way to handle a problem like this is for Tomcat to provide
something
in WEB-INF/web.xml that would let me specify a external classpath
outside of the WEB-INF directory.  These classes would only be loaded
ONLY for this webapp :)  Until then, I think, maybe I'll figure out Ant
and see if it can
help with some of the housekeeping regarding keeping Tomcat's codebase
up to date whenever things change in the main codebase.  But, there is
something about the idea of redundant files exiting on the same machine
in two difference places that I don't like...

Thanks,
Chris

 -Original Message-
 From: tomcat-user-return-40065-
 [EMAIL PROTECTED]
[mailto:tomcat-user-return-
 [EMAIL PROTECTED]] On Behalf Of
Justin
 Ruthenbeck
 Sent: Monday, November 04, 2002 7:21 PM
 To: Tomcat Users List
 Subject: RE: Tomcat and CLASSPATH
 
 
 Ahh... so (if I read this correctly), you've got your application
always
 installed on a system in a certain directory structure that is
independent
 of Tomcat.  Then there's some element that is a web application that
some
 clients get/activate.  You want to keep all your stuff together and
 optionally install Tomcat and run the webapp from the location you
 installed to.  At least in essence, is this close?
 
 If so, then I see the advantage during deployment of modifying Tomcat
to
 point to some external directory for resources.  Depending on the way
your
 app is organized (and how much you may be able to change that), your
other
 option is to define the docbase of your context (and the root context)
to
 point somewhere other than the webapps directory it points at by
default -
 -
 there are caveats to that depending on the version you're using.
You'll
 still have problems in that J2EE mandates the whole WEB-INF/*
directory
 structure, but you can probably massage things into place without too
much
 cross-pollination.  I think this addresses what was, once upon a time,
 your
 original question.  :)
 
 justin
 
 
 At 03:28 PM 11/4/2002, you wrote:
 
 Hi Justin.
 
 Thanks for your response.
 
 I'm not suggesting that Tomcat should be started up with some type of
 global classpath, rather I'm suggesting that the applications context
 for retrieving it classes does not necessarily need to be in
 WEB-INF/classes and WEB-INF/lib.  Instead, why not specify the
location
 for where it gathers its classes from WEB-INF/web.xml (atleast as a
 third option.) [and only for that context, it isn't a global web.xml]
 
 We package multiple versions of our software, some which is shipped
with
 Tomcat and some not..  So for those applications, it would be nice to
 have one place where classes reside and if we package it with Tomcat,
 then that web.xml just points to where our classes reside.  By having
 our java sources compiled directly to Jakarta-tomcat sort of couples
the
 two a little more closely than we'd like.  That is the reason why we
are
 forced to copy files now.
 
 Chris
 
   For simple applications in development, you're right -- there is
no
   technical roadblack that prevents you from comingling your source
and
   compiled classes, modifying Tomcat's classpath so that the default
   classloader finds them, and running your app.  However, no one (or
 very
   few) do this because
  
   (1) it's more complicated than compiling your classes directly to
   WEB-INF/classes,
   (2) deploying, versioning, and managing such a setup, especially
once
 you
   inevitably introduce multiple webapps, would be a collossal
nightmare,
 and
   perhaps most importantly
   (3) running each webapp in its own classloader (it classes loaded
from
   WEB-INF/classes) allows Tomcat to manage that application
 independently --
   for developers that means redeploying the application without
 restarting
   the server to catch changes that are made.
  
   Unless you have some overwhelming reason to sidestep this, I'd
suggest
   separating your source and compiled classes, using the directories
as
   intended, and -- especially if this is a commercial project --
using
 Ant
   to
   do all of the above.
  
   (And if you do see a reason otherwise, I'd love to hear it!)  :)
  
   justin
  
  
   At 02:21 PM 11/4/2002, you wrote:
   Consider you have a package structure:
   
   com.xyz.clients (/home/jdoe/java/src/com/xyz/client)
   com.xyz.server (/home/jdoe/java/src/com/xyz/server)
   com.xyz.util (/home/jdoe/java/src/com/xyz/util)
   
   Suppose you wanted to compile all these packages. Where would you
 direct
   the output of the generated classes after compiliation?  In order
for
   your Tomcat web application to be able to use the com.xyz.util
 classes
   they need to be either copied to WEB-INF/classes or your compiler
 needs
   to generate them and put them their right?
   
   Currently, we have the complier place the .class files with the
   packages.  So, if we want to make them available to Tomcat, we
would
   have to copy them to 

JNDI JDBC Question

2002-11-05 Thread Brian Kautz
I have a Class Not Found Exception error I am not certain how to fix.

I have a file called jt400.jar in my CATALINA_HOME/common/lib .  My
servlets access the classes in this jar with no problem.

One of the classes in this jar is my JDBC Driver class.  Again it works
fine from a servlet making direct connections using this driver.  However
when trying to use the connect pooling, this same driver can not be
accessed by the JNDI services.  My servlet gets the error Cannot load JDBC
driver class 'com.ibm.as400.access.AS400JDBCDriver()' , but tomcat's stdout
records that the real problem is:

Cannot load JDBC driver class 'com.ibm.as400.access.AS400JDBCDriver()'
java.lang.ClassNotFoundException: com/ibm/as400/access/AS400JDBCDriver()
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:523)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource
.java:312)
at org.apache.jsp.jsp.JDBCTest2_jsp.
_jspService(JDBCTest2_jsp.java:56)

Why can my servlets find the driver, but the connection pool cannot?





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: JNDI JDBC Question

2002-11-05 Thread Ricardo Moral
Are you writing the driver class name this way:
'com.ibm.as400.access.AS400JDBCDriver()'? when you
configure the BasicDataSource...? I think the problem
may be that you must not use the '()' at the end of
the class name.


--- Brian Kautz [EMAIL PROTECTED] wrote:
 I have a Class Not Found Exception error I am not
 certain how to fix.
 
 I have a file called jt400.jar in my
 CATALINA_HOME/common/lib .  My
 servlets access the classes in this jar with no
 problem.
 
 One of the classes in this jar is my JDBC Driver
 class.  Again it works
 fine from a servlet making direct connections using
 this driver.  However
 when trying to use the connect pooling, this same
 driver can not be
 accessed by the JNDI services.  My servlet gets the
 error Cannot load JDBC
 driver class
 'com.ibm.as400.access.AS400JDBCDriver()' , but
 tomcat's stdout
 records that the real problem is:
 
 Cannot load JDBC driver class
 'com.ibm.as400.access.AS400JDBCDriver()'
 java.lang.ClassNotFoundException:
 com/ibm/as400/access/AS400JDBCDriver()
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:140)
 at

org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
 rce.java:523)
 at

org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource
 .java:312)
 at org.apache.jsp.jsp.JDBCTest2_jsp.
 _jspService(JDBCTest2_jsp.java:56)
 
 Why can my servlets find the driver, but the
 connection pool cannot?
 
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: JNDI JDBC Question

2002-11-05 Thread Brian Kautz

I've been staring at this for two weeks and didn't see that.

Thanks for the spare set of eyes.  That's it.




|-+---
| |   Ricardo Moral   |
| |   ricardo_moral@y|
| |   ahoo.com   |
| |   |
| |   11/05/2002 09:41|
| |   AM  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
---|
  |
   |
  |To:  Tomcat Users List [EMAIL PROTECTED] 
   |
  |cc: 
   |
  |Subject: Re: JNDI JDBC Question 
   |
  
---|




Are you writing the driver class name this way:
'com.ibm.as400.access.AS400JDBCDriver()'? when you
configure the BasicDataSource...? I think the problem
may be that you must not use the '()' at the end of
the class name.


--- Brian Kautz [EMAIL PROTECTED] wrote:
 I have a Class Not Found Exception error I am not
 certain how to fix.

 I have a file called jt400.jar in my
 CATALINA_HOME/common/lib .  My
 servlets access the classes in this jar with no
 problem.

 One of the classes in this jar is my JDBC Driver
 class.  Again it works
 fine from a servlet making direct connections using
 this driver.  However
 when trying to use the connect pooling, this same
 driver can not be
 accessed by the JNDI services.  My servlet gets the
 error Cannot load JDBC
 driver class
 'com.ibm.as400.access.AS400JDBCDriver()' , but
 tomcat's stdout
 records that the real problem is:

 Cannot load JDBC driver class
 'com.ibm.as400.access.AS400JDBCDriver()'
 java.lang.ClassNotFoundException:
 com/ibm/as400/access/AS400JDBCDriver()
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:140)
 at

org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
 rce.java:523)
 at

org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource
 .java:312)
 at org.apache.jsp.jsp.JDBCTest2_jsp.
 _jspService(JDBCTest2_jsp.java:56)

 Why can my servlets find the driver, but the
 connection pool cannot?





 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org



__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:tomcat-user-help;jakarta.apache.org







--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Can't solve SAXParseException: The string -- is not permitted withincomments

2002-11-05 Thread Mark Walker
I'm new to Tomcat (v 4.1.12), so consider the source. I got this same error 
last week, though I don't remember any reference to Digester. I caused the 
error by commenting out a section that contained another comment. I simply 
un-nested the comment and all was well.


Hope this helps!


Mark Walker





From: Jeanfrancois Arcand [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Can't solve SAXParseException: The string -- is not  
permitted within comments
Date: Mon, 04 Nov 2002 11:31:43 -0500

Double check that xercesImpl.jar is deleted. For an obscur reason, Xerces 
2.1.0 has been renamed xerces.jar. If you don't delete xercesImpl.jar in 
common/endorsed, then Xerces 2.2 is still in use.

I'm working with the Xerces guys to fix that problem and YES, I'm going to 
get crazy :-)

-- Jeanfrancois


Manuel González Castro wrote:

Try 2.1.0This is the only version that works properly.

-- Jeanfrancois




I've just tried Xerces 2.1.0 and I get the same error :(
I'm going crazy with this...

Manuel


--
To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:tomcat-user-help;jakarta.apache.org







--
To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:tomcat-user-help;jakarta.apache.org


_
Unlimited Internet access for only $21.95/month.  Try MSN! 
http://resourcecenter.msn.com/access/plans/2monthsfree.asp


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



RES: MIDP and USSD ?

2002-11-05 Thread Jose Euclides da Silva Junior - DATAPREVRJ
What is a uusd?

-Mensagem original-
De: [EMAIL PROTECTED] [mailto:Daniel.T.Hellstrand;telia.se]
Enviada em: quinta-feira, 31 de outubro de 2002 04:56
Para: [EMAIL PROTECTED]
Assunto: MIDP and USSD ?


Is it possible to send a USSD through MIDP ?

/Dan

--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: URGENT= Problem with Session Cookie

2002-11-05 Thread Larry Isaacs


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:afreire;banelco.com.ar] 
 Sent: Tuesday, November 05, 2002 9:19 AM
 To: Tomcat Users List
 Subject: RE: URGENT= Problem with Session Cookie
 
 
 Sorry I said that the servlet have multiples instances because I have
 differents actions in it depend on the http parameter that it 
 receive.  For
 me ay instance in a servlet is different actions. That is clear?
 
 If you see the javadoc about req.getSession(), you that this 
 method only
 create the session if that not exists.

Yes, the same behavior as req.getSession(true).

How is the second action request invoked?  Are frames involved?
Frames are often the cause of Why do I get a new session? questions.

 But I don't know  why I tomcat 3.2.3 that it works and in tomcat 3.3.1
 don't.

Tomcat 3.3.1 fixed many bugs.  It is possible that your webapp's
behavior is dependent on one of them or on a performance difference.
Tomcat 3.3.x is much faster than Tomcat 3.2.x.

Cheers,
Larry

 
 Any idea.
 Regards
 Alejandro
 
 
 
 
 Larry Isaacs [EMAIL PROTECTED] con fecha 05/11/2002 11:05:15
 
 Por favor, responda a Tomcat Users List 
 [EMAIL PROTECTED]
 
 Destinatarios: Tomcat Users List [EMAIL PROTECTED]
 CC:(cci: ALEJANDRO FREIRE/BANELCO/AR)
 Asunto:   RE: URGENT= Problem with Session Cookie
 
 
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:afreire;banelco.com.ar]
  Sent: Tuesday, November 05, 2002 7:19 AM
  To: [EMAIL PROTECTED]
  Subject: URGENT= Problem with Session Cookie
 
 
  I'm using Apache with Tomcat 3.3.1.
  I have a servlet with multiples instances. When I call it in
  first time a
  create the sesssion (session = req.getSession(true)) and set
  several info
  in the session, after that I call another instance of this
  servlet that use
  the data saved in the firts time. My probles is that when I
  call the second
  instance Tomcat create again the session and I lost all 
 previous data.
 It isn't clear to me what you mean by servlet with multiples
 instances.  For typical use, Tomcat creates one instance of a
 servlet, where servlet corresponds to a servlet-mapping
 in the web.xml or what gets executed by .../servlet/classname
 for a request.  Please explain.
 Also, what does I call the second instance mean.  Is
 this a forward, an include, a redirect, what?
 
  For read the session I use: session = req.getSession(). I use
  that in the
  top of the servlet and for every instance. Then to create the
  session in a
  espefic instance I use: session = req.getParameter(true).
 Note that req.getSession() does the same thing as
 req.getSession(true) (I'm assuming getParameter(true) above
 is a typo).  Both will create a session, where
 req.getSession(false) won't.
 Larry
 
  That's works fine under Tomcat 3.2.3, but I need to upgrade it.
 
  Anybody could help me?
 
  Regards
  Alejandro
 
 
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user- [EMAIL PROTECTED]
  For
  additional commands,
  e-mail: mailto:tomcat-user-help;jakarta.apache.org
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:tomcat-user-help;jakarta.apache.org
 
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: How to Capture Error Msgs/Exceptions when Tomcat Die.

2002-11-05 Thread CHAO,KENT (HP-Boise,ex1)
I checked with a senior engineer on this service.  He said we didn't use
jk_nt_service, even though we did run Apache and Tomcat as services in W2k.

Tomcat crashing did happen once when running as non-service.

Anyway, I will manually configure that file to see if we will be able to get
extra information on why it died.

Kent

-Original Message-
From: Bill Barker [mailto:wbarker;wilshire.com]
Sent: Tuesday, November 05, 2002 12:31 AM
To: [EMAIL PROTECTED]
Subject: Re: How to Capture Error Msgs/Exceptions when Tomcat Die.


A1:  Probably this is why.  The minimal amount of configuration is usually
to set wrapper.tomcat_home and wrapper.java_home.  After changing the file,
you simply need to stop and re-start the service for the changes to take
effect.

A2: jk_nt_service is a wrapper program that can run as a NT/W2K/XP service.
It invokes a java process running Tomcat as a sub-process with a command
line that it creates from the wrapper.properties file.  Because of the way
that Windows works, this is the only way to allow Tomcat to continue running
without having anyone logged into the machine (and many people are
understandably uncomfortable with leaving their server logged in).  Other
than knowing how to respond to the Service Manager events (stop/start), it
isn't all that much different than tomcat.bat.

CHAO,KENT (HP-Boise,ex1) [EMAIL PROTECTED] wrote in message
news:14562BDD08E0FC4C93D7C92B249AC94D02954B53;xboi21.boise.itc.hp.com...
 Bill:

 I have found the file for configuring jk_nt_service - wrapper.properties.
 We didn't set wrapper.tomcat_home in this file.

 Q1: is this why I didn't get jvm_stderr?
 Q2: Could you elaborate what jk_nt_service for?

 (I guess I have to admit that all my Tomcat knowledge came from my working
 knowlege.  I have little exposure in jk stuff.)

 thx

 Kent

 -Original Message-
 From: Bill Barker [mailto:wbarker;wilshire.com]
 Sent: Saturday, November 02, 2002 12:19 AM
 To: [EMAIL PROTECTED]
 Subject: Re: How to Capture Error Msgs/Exceptions when Tomcat Die.


 By default, jk_nt_service sends errors to $TOMCAT_HOME/logs/jvm.stderr.
You
 could try looking there first.

 CHAO,KENT (HP-Boise,ex1) [EMAIL PROTECTED] wrote in message
 news:14562BDD08E0FC4C93D7C92B249AC94D02954B4E;xboi21.boise.itc.hp.com...
  I am new to this group.  I posted this question a few days ago, but
didn't
  get any responses. Maybe I did something wrong.  So I re-posted this
  question.
 
  Symptom:
 
  I have a Tomcat application, running with Apache (1.3.26) and Tomcat
(3.3)
  in W2k with sp3.  I experienced Tomcat died several times (freq: once a
  week), while Apache remained running.
 
  Question 1: Where I can capture the last exception or other error
messages
  before Tomcat died? I need to find out what caused Tomcat to die first,
  before I can take steps to fix the problem.
 
  Does any one experience similar situation?
 
 
  When I said Tomcat died, I mean:
In W2k service mode, it simply stopped.
In non-service mode and in the same command window, a prompt was
 displayed
  and no more log4j messages on display.
 
  The application did generate Log4j messages in log files at
~\tomcat\logs.
  I cannot find any Exceptions at end of file.
 
  Any suggestions are welcome.
 
  thx in advance.
 
  Kent





 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org





--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Standalone Tomcat : suppress directory listing in web.xml

2002-11-05 Thread Marc Mendez
Hi,

Yes, but it means that I change the behaviour of the others app ! 

- Original Message - 
From: Kiev [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, November 05, 2002 3:55 PM
Subject: Re: Standalone Tomcat : suppress directory listing in web.xml


 
 If you set the following param for the default servlet to false, in the
 CATALINA_HOME/conf/web.xml  it will forbid directory listing for all
 web-apps.
 lthoug I haven't checked how to do it for the webapp web.xml file.
 
 init-param
   param-namelistings/param-name
   param-valuefalse/param-value
 /init-param
 
 Kiev
 


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Standalone Tomcat : suppress directory listing in web.xml

2002-11-05 Thread Marc Mendez
Opps, I have tested this in the conf/web.xml file : no effect !


 
 init-param
   param-namelistings/param-name
   param-valuefalse/param-value
 /init-param
 
 Kiev


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




javax.servlet does not exist

2002-11-05 Thread Ben Austin
I am trying to compile servlets using JCreator, but it isn't working. I keep 
getting told that javax.servlet does not exist. I've added servlet.jar to 
the classpath, but nothing has changed. What else should I do?





_
Internet access plans that fit your lifestyle -- join MSN. 
http://resourcecenter.msn.com/access/plans/default.asp


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



RE: Standalone Tomcat : suppress directory listing in web.xml

2002-11-05 Thread Turner, John

Did you search the archives?  This topic has come up several times before.
Do some research!

http://marc.theaimsgroup.com/?l=tomcat-userm=103243972028586w=2

Option 1: stick a file called index.html into those directories
Option 2: write a filter to intercept request
Option 3: there are probably other ways

John


 -Original Message-
 From: Marc Mendez [mailto:mendez;lug.com]
 Sent: Tuesday, November 05, 2002 11:16 AM
 To: Tomcat Users List
 Subject: Re: Standalone Tomcat : suppress directory listing in web.xml
 
 
 Opps, I have tested this in the conf/web.xml file : no effect !
 
 
  
  init-param
param-namelistings/param-name
param-valuefalse/param-value
  /init-param
  
  Kiev
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




compiling mod_jk under AIX

2002-11-05 Thread Maureen Barger
Has anyone done this successfully? I have tried with IBM's compiler as well 
as gcc and both result in same error:

ld: 0711-244 ERROR: No csects or exported symbols have been saved.
apxs:Break: Command failed with rc=8

I am running aix 4.3.3

Maureen Barger, CIT/ID, Cornell University
Ithaca, NY 14850
[EMAIL PROTECTED]
http://mo.cit.cornell.edu/

Experience is something you don't get until just after you need it.


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



RE: URGENT= Problem with Session Cookie

2002-11-05 Thread afreire
I call again the servlet because it do different actions.
For examples:
 First call it set some enviroment variables
 Second call it make a user login.

I use getSession() to get the current session. It's work fine in Apache
Tomcat without ssl but in ssl I have the problem.

Any idea.
Regards
Alejandro




Larry Isaacs [EMAIL PROTECTED] con fecha 05/11/2002 12:58:32

Por favor, responda a Tomcat Users List [EMAIL PROTECTED]

Destinatarios: Tomcat Users List [EMAIL PROTECTED]
CC:(cci: ALEJANDRO FREIRE/BANELCO/AR)
Asunto:   RE: URGENT= Problem with Session Cookie






 -Original Message-
 From: [EMAIL PROTECTED] [mailto:afreire;banelco.com.ar]
 Sent: Tuesday, November 05, 2002 9:19 AM
 To: Tomcat Users List
 Subject: RE: URGENT= Problem with Session Cookie


 Sorry I said that the servlet have multiples instances because I have
 differents actions in it depend on the http parameter that it
 receive.  For
 me ay instance in a servlet is different actions. That is clear?

 If you see the javadoc about req.getSession(), you that this
 method only
 create the session if that not exists.
Yes, the same behavior as req.getSession(true).
How is the second action request invoked?  Are frames involved?
Frames are often the cause of Why do I get a new session? questions.
 But I don't know  why I tomcat 3.2.3 that it works and in tomcat 3.3.1
 don't.
Tomcat 3.3.1 fixed many bugs.  It is possible that your webapp's
behavior is dependent on one of them or on a performance difference.
Tomcat 3.3.x is much faster than Tomcat 3.2.x.
Cheers,
Larry

 Any idea.
 Regards
 Alejandro




 Larry Isaacs [EMAIL PROTECTED] con fecha 05/11/2002 11:05:15

 Por favor, responda a Tomcat Users List
 [EMAIL PROTECTED]

 Destinatarios: Tomcat Users List [EMAIL PROTECTED]
 CC:(cci: ALEJANDRO FREIRE/BANELCO/AR)
 Asunto:   RE: URGENT= Problem with Session Cookie






  -Original Message-
  From: [EMAIL PROTECTED] [mailto:afreire;banelco.com.ar]
  Sent: Tuesday, November 05, 2002 7:19 AM
  To: [EMAIL PROTECTED]
  Subject: URGENT= Problem with Session Cookie
 
 
  I'm using Apache with Tomcat 3.3.1.
  I have a servlet with multiples instances. When I call it in
  first time a
  create the sesssion (session = req.getSession(true)) and set
  several info
  in the session, after that I call another instance of this
  servlet that use
  the data saved in the firts time. My probles is that when I
  call the second
  instance Tomcat create again the session and I lost all
 previous data.
 It isn't clear to me what you mean by servlet with multiples
 instances.  For typical use, Tomcat creates one instance of a
 servlet, where servlet corresponds to a servlet-mapping
 in the web.xml or what gets executed by .../servlet/classname
 for a request.  Please explain.
 Also, what does I call the second instance mean.  Is
 this a forward, an include, a redirect, what?
 
  For read the session I use: session = req.getSession(). I use
  that in the
  top of the servlet and for every instance. Then to create the
  session in a
  espefic instance I use: session = req.getParameter(true).
 Note that req.getSession() does the same thing as
 req.getSession(true) (I'm assuming getParameter(true) above
 is a typo).  Both will create a session, where
 req.getSession(false) won't.
 Larry
 
  That's works fine under Tomcat 3.2.3, but I need to upgrade it.
 
  Anybody could help me?
 
  Regards
  Alejandro
 
 
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user- [EMAIL PROTECTED]
  For
  additional commands,
  e-mail: mailto:tomcat-user-help;jakarta.apache.org
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org








 --
 To unsubscribe, e-mail:
 mailto:tomcat-user- [EMAIL PROTECTED]
 For
 additional commands,
 e-mail: mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:tomcat-user-help;jakarta.apache.org








--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: compiling mod_jk under AIX

2002-11-05 Thread Turner, John

Which Apache?  There are mod_jk.so binaries for AIX on my site:

http://www.johnturner.com/howto

Might be worth a try.

That said, what configure options did you use when trying the build?  

John


 -Original Message-
 From: Maureen Barger [mailto:mf12;cornell.edu]
 Sent: Tuesday, November 05, 2002 11:25 AM
 To: [EMAIL PROTECTED]
 Subject: compiling mod_jk under AIX
 
 
 Has anyone done this successfully? I have tried with IBM's 
 compiler as well 
 as gcc and both result in same error:
 
 ld: 0711-244 ERROR: No csects or exported symbols have been saved.
 apxs:Break: Command failed with rc=8
 
 I am running aix 4.3.3
 
 Maureen Barger, CIT/ID, Cornell University
 Ithaca, NY 14850
 [EMAIL PROTECTED]
 http://mo.cit.cornell.edu/
 
 Experience is something you don't get until just after you need it.
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Authentication per-container level

2002-11-05 Thread Rodrigo Ruiz
 Hello,

 Is it possible to configure Tomcat, that it must check an authentication
 for all the webapps hosted
 within the container ?
 I mean tell Tomcat to send an authentication popup when someone goes to
 the http://localhost:8080/.
 whithout configure each webapp hosted in.

You can modify the conf/web.xml file, and add security constraints. This
will cause all web-apps to follow these restrictions.
This file is used by Tomcat as a template for all web.xml files, so any
modification there will be equivalent to a
modification in all deployed webapps.

Also, you may want to activate the once-login support (I'm not sure about
how to do this right now).


 Iris

Hope it helps,
Rodrigo


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




[ANNOUNCE] Solaris 8 JK Binary available

2002-11-05 Thread Turner, John

I finally got access to a Solaris 8 server.

I've posted a mod_jk binary (mod_jk.so) for Solaris 8 at:

http://www.johnturner.com/howto

This is mod_jk compiled against Apache 2.0.43 and using the JK Connector
source v1.2.0.  Tested against Tomcat 4.1.12.

I'm having problems building mod_jk2.so, if anyone has done this or is
trying to do it now, I'd like to hear about it. 

- John


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Standalone Tomcat : suppress directory listing in web.xml

2002-11-05 Thread Marc Mendez

- Original Message -
From: Turner, John [EMAIL PROTECTED]

 Did you search the archives?  This topic has come up several times before.
 Do some research!

And... do read my posts !

1. I browsed the archive
2. The solutions does not work.

I want to change the web.xml of the app.

I usually use mailing list, so I know there is archive (I spend 1 hour this
morning to get solutions). Most of the time, people can change conf/web.xml
or server.xml. I can't.

But thanks to remind me of  how to use ML :-)



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [ANNOUNCE] Solaris 8 JK Binary available

2002-11-05 Thread Henri Gomez
There was allready available on normal distro ...

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/solaris8/

But we still need solaris 6 binaries


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Standalone Tomcat : suppress directory listing in web.xml

2002-11-05 Thread Turner, John

Stick a file called index.html in the directory where you want listings
suppressed.

Write a Filter to intercept all requests and look for a filename in the
request...open-ended requests like / or /myapp/ would be intercepted and
redirected.

Make sure you have a welcome file list setup in your web.xml.

John


 -Original Message-
 From: Marc Mendez [mailto:mendez;lug.com]
 Sent: Tuesday, November 05, 2002 11:38 AM
 To: Tomcat Users List
 Subject: Re: Standalone Tomcat : suppress directory listing in web.xml
 
 
 
 - Original Message -
 From: Turner, John [EMAIL PROTECTED]
 
  Did you search the archives?  This topic has come up 
 several times before.
  Do some research!
 
 And... do read my posts !
 
 1. I browsed the archive
 2. The solutions does not work.
 
 I want to change the web.xml of the app.
 
 I usually use mailing list, so I know there is archive (I 
 spend 1 hour this
 morning to get solutions). Most of the time, people can 
 change conf/web.xml
 or server.xml. I can't.
 
 But thanks to remind me of  how to use ML :-)
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Multiple instances of Tomcat

2002-11-05 Thread Pedro Igor Craveiro e Silva
Thanks ...

The page that you have send me is what i was looking for ... Thanks a lot
 I 'll try it ...

Pedro Igor

- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, November 05, 2002 9:50 AM
Subject: RE: Multiple instances of Tomcat



One Apache.

Many Tomcats.

For many Tomcats, if you intend to delegate each Tomcat to a specific web
app, virtual host, or business client, you need a server.xml for each, and
you need to set CATALINA_BASE and things like appBase and docBase in each
server.xml accordingly. You will need to change the connector port as well.

If by multiple instances you mean that you want to load-balance Tomcat
requests, you need to set up a worker in workers.properties (assuming that
you are using JK) for each Tomcat.  Good load-balancing HOWTO:
http://www.ubeans.com/tomcat

John

 -Original Message-
 From: Pedro Igor Craveiro e Silva [mailto:pedroigor;aip.com.br]
 Sent: Tuesday, November 05, 2002 6:43 AM
 To: [EMAIL PROTECTED]
 Subject: Multiple instances of Tomcat


 Greetings 

 A long, long time i´m trying to configure tomcat to run with
 multiple instances (tomcat+apache).
 Has some one in this list that can help me to do this ? Or
 just give me the firt step 

 Thanks a lot ...

 Pedro Igor


--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [ANNOUNCE] Solaris 8 JK Binary available

2002-11-05 Thread Turner, John

Strange...I looked this morning in that exact location and didn't see it.
Sorry.

Are there any updates on JK2 for Solaris?  Has anyone successfully built it?
I've been trying all morning without any luck, even had to change some of
the source.

John

 -Original Message-
 From: Henri Gomez [mailto:hgomez;apache.org]
 Sent: Tuesday, November 05, 2002 11:36 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [ANNOUNCE] Solaris 8 JK Binary available
 
 
 There was allready available on normal distro ...
 
 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/
 release/v1.2.0/bin/solaris8/
 
 But we still need solaris 6 binaries
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




IRIX 6.5 JK Binary Available

2002-11-05 Thread Turner, John

Thanks to Manuel González Castro, a JK (mod_jk) binary for IRIX 6.5 has been
posted.  It's for Apache 2.0.43.

http://www.johnturner.com/howto

- John


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [ANNOUNCE] Solaris 8 JK Binary available

2002-11-05 Thread Henri Gomez
You should address problem about jk2 built under Solaris 8
in tomcat-dev, I'm not sure Mladen track also tomcat-user.


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Connection pool question:

2002-11-05 Thread Michael Nicholson
I'm building a webapp, and I want to use connection pooling with it.  In order to play 
around some, I made a dummy webapp that does virtually nothing, but uses the 
connection pool.  So then I cut and pasted some code out into the bigger webapp, but 
now I get this error:

MonitorFilter::java.lang.ClassCastException: org.apache.commons.dbcp.BasicDataSource
at CPPSDB.DBQuery.init(DBQuery.java:34)
at org.apache.jsp.Login$jsp._jspService(Login$jsp.java:127)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWrapper.service(IDEJspServlet.java:174)
at 
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFile(IDEJspServlet.java:247)
at 
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJspServlet.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:223)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:528)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.netbeans.modules.web.monitor.catalina.MonitorValve.invoke(MonitorValve.java:142)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:536)

My server.xml has the same resource and resource params for both contexts, and my 
web.xml has the same resource-ref as the dummy app, but I still get the same error.  
Any ideas?

Michael Nicholsn


RE: [ANNOUNCE] Solaris 8 JK Binary available

2002-11-05 Thread Turner, John

OK, thanks.

John


 -Original Message-
 From: Henri Gomez [mailto:hgomez;apache.org]
 Sent: Tuesday, November 05, 2002 11:55 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [ANNOUNCE] Solaris 8 JK Binary available
 
 
 You should address problem about jk2 built under Solaris 8
 in tomcat-dev, I'm not sure Mladen track also tomcat-user.
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Standalone Tomcat : suppress directory listing in web.xml

2002-11-05 Thread Craig R. McClanahan


On Tue, 5 Nov 2002, Marc Mendez wrote:

 Date: Tue, 5 Nov 2002 18:13:08 +0100
 From: Marc Mendez [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Standalone Tomcat : suppress directory listing in web.xml

  Stick a file called index.html in the directory where you want listings
  suppressed.

 It may work. But imagine the following directory structure

 Dir A contains Dir B, which contains Dir C
 put a file index.htm in Dir A
 Ok, but, if a malicious user knows the structure, he can easily access to
 Dir B, by giving the full path ! Even more, if he knows the name of a file,
 he can download it !


You can suppress directory indexes in the $CATALINA_HOME/conf/web.xml
file.  See the listings init parameter for the default servlet.

 
  Write a Filter to intercept all requests and look for a filename in the
  request...open-ended requests like / or /myapp/ would be intercepted
 and
  redirected.

 Just a question about filter. They are preprocessors of the request before
 it reaches a servlet
 So, if I write

 http://localhost:8080/myapp/servlet/myapp?Agent=myagent

 which is a request, the filter should run.

 but if I write

 http://localhost:8080/myapp

 or anything without servlet/myapp ... it's not a request to my servlet,
 but just to Tomcat. I suppose it does not run ? Right ou false ?

You have complete control over which requests your filter applies to,
because you are defining a filter-mapping for it.  In particular, if you
use a URL pattern of /* in your filter mapping, then *all* requests for
your webapp will go through the filter.

Of course, you have the same degree of control over the URLs that select
your servlet, by using servlet-mapping elements -- there's no
requirement that /servlet/* be used.


 
  Make sure you have a welcome file list setup in your web.xml.
 

 Yes, it set

 Thanks

Craig


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Standalone Tomcat : suppress directory listing in web.xml

2002-11-05 Thread Turner, John

 -Original Message-
 From: Marc Mendez [mailto:mendez;lug.com]
 Sent: Tuesday, November 05, 2002 12:13 PM
 To: Tomcat Users List
 Subject: Re: Standalone Tomcat : suppress directory listing in web.xml
 
 
  Stick a file called index.html in the directory where you 
 want listings
  suppressed.
 
 It may work. But imagine the following directory structure
 
 Dir A contains Dir B, which contains Dir C
 put a file index.htm in Dir A
 Ok, but, if a malicious user knows the structure, he can 
 easily access to
 Dir B, by giving the full path ! Even more, if he knows the 
 name of a file,
 he can download it !

I think you are fixating on this issue a little too much.  If someone knows
the directory structure, and the name of the file, they can download it
regardless of whether a directory is listed or not.  I don't see how
preventing a directory listing from showing up will get around this.  

If the user is malicious, what does downloading a file get them?  The only
thing they can do is potentially a DoS attack by requesting the file over
and over.  My point is that you should be handling this scenario in other
ways, not by worrying about a directory listing.  If the content is
protected content, then use the security features and functions already
built-in to Java and Tomcat (and Apache if necessary) to protect the
content.

If the content is unprotected, then what's the point?  They can get to it
eventually, so what difference does it make?  

Think about it.

John


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [Installation] silent install

2002-11-05 Thread Turner, John

What do you mean by silent?

John


 -Original Message-
 From: François Vallet [mailto:fvallet;infovista.com]
 Sent: Tuesday, November 05, 2002 12:05 PM
 To: 'Tomcat Users List'
 Subject: [Installation] silent install
 
 
 Who have been succeed to create a silent install of tomcat on 
 both windows
 and Unix !
 
 Thanks in advance
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: [ANNOUNCE] Solaris 8 JK Binary available

2002-11-05 Thread Brzezinski, Paul J
Turner, John wrote:


I finally got access to a Solaris 8 server.

I've posted a mod_jk binary (mod_jk.so) for Solaris 8 at:

http://www.johnturner.com/howto

This is mod_jk compiled against Apache 2.0.43 and using the JK Connector
source v1.2.0.  Tested against Tomcat 4.1.12.

I'm having problems building mod_jk2.so, if anyone has done this or is
trying to do it now, I'd like to hear about it. 

- John


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
 

I have built it successfully using the APR included in Apache 2.0.40 on 
Solaris 8 SPARC, but I *COULD NOT* use the ChannelUnix (AF_UNIX) sockets.

I had to download newer versions of libtool, autoconf, automake.  The 
makefiles also seem to contain GNU make semantics that don't work with 
the vendor-supplied version of make.

I also had to add a switch to one of the lines in the makefiles in order 
to compiler some of the native code:

-DBSD_COMP

I believe I opened a bug about this...

How does this compare with what you've run into so far?

Paul




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



mod_jk

2002-11-05 Thread Pedro Igor Craveiro e Silva
Some body have this mod_jk ???
Or any place where i can find it ...
Pedro Igor



RE: [ANNOUNCE] Solaris 8 JK Binary available

2002-11-05 Thread Turner, John

So far I have run into a problem in jk_channel_socket.c where FIONBIO isn't
defined, but it's used in jk2_channel_socket_open().  I fixed this by adding
a couple of #include lines to jk_channel_socket.c.

Then I ran into a problem with make, where it ran for quite awhile and
seemed to be moving right along before suddenly failing with a ld: cannot
find -lapr message. This seems odd, as APR is definitely around since I
built Apache from source. I couldn't resolve that one, so for now I have
tabled it until I can get subscribed to tomcat-dev and get caught up.  

John


 -Original Message-
 From: Brzezinski, Paul J [mailto:Paul.Brzezinski;EDS.COM]
 Sent: Tuesday, November 05, 2002 12:32 PM
 To: Tomcat Users List
 Subject: Re: [ANNOUNCE] Solaris 8 JK Binary available
 
 
 Turner, John wrote:
 
 I finally got access to a Solaris 8 server.
 
 I've posted a mod_jk binary (mod_jk.so) for Solaris 8 at:
 
 http://www.johnturner.com/howto
 
 This is mod_jk compiled against Apache 2.0.43 and using the 
 JK Connector
 source v1.2.0.  Tested against Tomcat 4.1.12.
 
 I'm having problems building mod_jk2.so, if anyone has done 
 this or is
 trying to do it now, I'd like to hear about it. 
 
 - John
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
   
 
 I have built it successfully using the APR included in Apache 
 2.0.40 on 
 Solaris 8 SPARC, but I *COULD NOT* use the ChannelUnix 
 (AF_UNIX) sockets.
 
 I had to download newer versions of libtool, autoconf, automake.  The 
 makefiles also seem to contain GNU make semantics that don't 
 work with 
 the vendor-supplied version of make.
 
 I also had to add a switch to one of the lines in the 
 makefiles in order 
 to compiler some of the native code:
 
  -DBSD_COMP
 
 I believe I opened a bug about this...
 
 How does this compare with what you've run into so far?
 
 Paul
 
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: mod_jk

2002-11-05 Thread Turner, John

Current:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0
/

Archived (various OS, version of Apache and Tomcat, use the Current link
first):
http://www.johnturner.com/howto

John


 -Original Message-
 From: Pedro Igor Craveiro e Silva [mailto:pedroigor;aip.com.br]
 Sent: Tuesday, November 05, 2002 1:27 PM
 To: Tomcat Users List
 Subject: mod_jk
 
 
 Some body have this mod_jk ???
 Or any place where i can find it ...
 Pedro Igor
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [Installation] silent install

2002-11-05 Thread Anthony Shawver
I didn't author this original email, but I asked an earlier question
regarding silent installs.  I am looking for functionality similar to the
Java silent install listed here:
http://java.sun.com/j2se/1.4/docs/guide/plugin/developer_guide/silent.html

Tony

-Original Message-
From: Turner, John [mailto:JTurner;AAS.com]
Sent: Tuesday, November 05, 2002 12:23 PM
To: 'Tomcat Users List'
Subject: RE: [Installation] silent install



What do you mean by silent?

John


 -Original Message-
 From: François Vallet [mailto:fvallet;infovista.com]
 Sent: Tuesday, November 05, 2002 12:05 PM
 To: 'Tomcat Users List'
 Subject: [Installation] silent install


 Who have been succeed to create a silent install of tomcat on
 both windows
 and Unix !

 Thanks in advance

 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [ANNOUNCE] Solaris 8 JK Binary available

2002-11-05 Thread Brzezinski, Paul J

I'm going to step out on a limb and say that libapr.so doesn't exist -- if
you built everything from source, look for libapr-*.so* in the apache
lib-dir and either do a symbolic link from libapr-*.so to libapr.so in
apache/lib, then do your make again.

Paul

--
mailto:Paul.Brzezinski;EDS.com
Enterprise Distributed Capabilities
EDS Corporation
248-265-8283


: -Original Message-
: From: Turner, John [mailto:JTurner;AAS.com] 
: Sent: Tuesday, November 05, 2002 12:38 PM
: To: 'Tomcat Users List'
: Subject: RE: [ANNOUNCE] Solaris 8 JK Binary available
: 
: 
: 
: So far I have run into a problem in jk_channel_socket.c where 
: FIONBIO isn't defined, but it's used in 
: jk2_channel_socket_open().  I fixed this by adding a couple 
: of #include lines to jk_channel_socket.c.
: 
: Then I ran into a problem with make, where it ran for quite 
: awhile and seemed to be moving right along before suddenly 
: failing with a ld: cannot find -lapr message. This seems 
: odd, as APR is definitely around since I built Apache from 
: source. I couldn't resolve that one, so for now I have tabled 
: it until I can get subscribed to tomcat-dev and get caught up.  
: 
: John
: 
: 
:  -Original Message-
:  From: Brzezinski, Paul J [mailto:Paul.Brzezinski;EDS.COM]
:  Sent: Tuesday, November 05, 2002 12:32 PM
:  To: Tomcat Users List
:  Subject: Re: [ANNOUNCE] Solaris 8 JK Binary available
:  
:  
:  Turner, John wrote:
:  
:  I finally got access to a Solaris 8 server.
:  
:  I've posted a mod_jk binary (mod_jk.so) for Solaris 8 at:
:  
:  http://www.johnturner.com/howto
:  
:  This is mod_jk compiled against Apache 2.0.43 and using the
:  JK Connector
:  source v1.2.0.  Tested against Tomcat 4.1.12.
:  
:  I'm having problems building mod_jk2.so, if anyone has done
:  this or is
:  trying to do it now, I'd like to hear about it.
:  
:  - John
:  
:  
:  --
:  To unsubscribe, e-mail:   
:  mailto:tomcat-user-unsubscribe;jakarta.apache.org
:  For additional commands, e-mail:
:  mailto:tomcat-user-help;jakarta.apache.org
:
:  
:  I have built it successfully using the APR included in Apache
:  2.0.40 on 
:  Solaris 8 SPARC, but I *COULD NOT* use the ChannelUnix 
:  (AF_UNIX) sockets.
:  
:  I had to download newer versions of libtool, autoconf, 
: automake.  The
:  makefiles also seem to contain GNU make semantics that don't 
:  work with 
:  the vendor-supplied version of make.
:  
:  I also had to add a switch to one of the lines in the
:  makefiles in order 
:  to compiler some of the native code:
:  
:   -DBSD_COMP
:  
:  I believe I opened a bug about this...
:  
:  How does this compare with what you've run into so far?
:  
:  Paul
:  
:  
:  
:  
:  --
:  To unsubscribe, e-mail:   
: mailto:tomcat-user-unsubscribe;jakarta.apache.org
: For additional commands, e-mail: 
: mailto:tomcat-user-help;jakarta.apache.org
: 
: --
: To 
: unsubscribe, e-mail:   
: mailto:tomcat-user-: [EMAIL PROTECTED]
: For 
: additional commands, 
: e-mail: mailto:tomcat-user-help;jakarta.apache.org
: 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [Installation] silent install

2002-11-05 Thread Turner, John

A binary install of Tomcat is self-contained.  The only intervention needed,
assuming there is a working J2SE present, is to set CATALINA_HOME to the
install location.  That's the only thing required to get Tomcat to startup.

I'm not sure how it could be more silent than that.  A shell script for
UNIX/Linux would be 3 or 4 lines.

John


 -Original Message-
 From: Anthony Shawver [mailto:ashawver;actaview.com]
 Sent: Tuesday, November 05, 2002 12:49 PM
 To: Tomcat Users List
 Subject: RE: [Installation] silent install
 
 
 I didn't author this original email, but I asked an earlier question
 regarding silent installs.  I am looking for functionality 
 similar to the
 Java silent install listed here:
 http://java.sun.com/j2se/1.4/docs/guide/plugin/developer_guide
 /silent.html
 
 Tony
 
 -Original Message-
 From: Turner, John [mailto:JTurner;AAS.com]
 Sent: Tuesday, November 05, 2002 12:23 PM
 To: 'Tomcat Users List'
 Subject: RE: [Installation] silent install
 
 
 
 What do you mean by silent?
 
 John
 
 
  -Original Message-
  From: François Vallet [mailto:fvallet;infovista.com]
  Sent: Tuesday, November 05, 2002 12:05 PM
  To: 'Tomcat Users List'
  Subject: [Installation] silent install
 
 
  Who have been succeed to create a silent install of tomcat on
  both windows
  and Unix !
 
  Thanks in advance
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
 
 
 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: URGENT= Problem with Session Cookie

2002-11-05 Thread Larry Isaacs
Does I call mean the user clicks something in the browser?
I would assume not, but beyond that I can only guess.  What
exactly does I call mean you are doing?

Cheers,
Larry

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:afreire;banelco.com.ar] 
 Sent: Tuesday, November 05, 2002 11:24 AM
 To: Tomcat Users List
 Subject: RE: URGENT= Problem with Session Cookie
 
 
 I call again the servlet because it do different actions.
 For examples:
  First call it set some enviroment variables
  Second call it make a user login.
 
 I use getSession() to get the current session. It's work fine 
 in Apache
 Tomcat without ssl but in ssl I have the problem.
 
 Any idea.
 Regards
 Alejandro
 
 
 
 
 Larry Isaacs [EMAIL PROTECTED] con fecha 05/11/2002 12:58:32
 
 Por favor, responda a Tomcat Users List 
 [EMAIL PROTECTED]
 
 Destinatarios: Tomcat Users List [EMAIL PROTECTED]
 CC:(cci: ALEJANDRO FREIRE/BANELCO/AR)
 Asunto:   RE: URGENT= Problem with Session Cookie
 
 
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:afreire;banelco.com.ar]
  Sent: Tuesday, November 05, 2002 9:19 AM
  To: Tomcat Users List
  Subject: RE: URGENT= Problem with Session Cookie
 
 
  Sorry I said that the servlet have multiples instances 
 because I have
  differents actions in it depend on the http parameter that it
  receive.  For
  me ay instance in a servlet is different actions. That is clear?
 
  If you see the javadoc about req.getSession(), you that this
  method only
  create the session if that not exists.
 Yes, the same behavior as req.getSession(true).
 How is the second action request invoked?  Are frames involved?
 Frames are often the cause of Why do I get a new session? questions.
  But I don't know  why I tomcat 3.2.3 that it works and in 
 tomcat 3.3.1
  don't.
 Tomcat 3.3.1 fixed many bugs.  It is possible that your webapp's
 behavior is dependent on one of them or on a performance difference.
 Tomcat 3.3.x is much faster than Tomcat 3.2.x.
 Cheers,
 Larry
 
  Any idea.
  Regards
  Alejandro
 
 
 
 
  Larry Isaacs [EMAIL PROTECTED] con fecha 05/11/2002 11:05:15
 
  Por favor, responda a Tomcat Users List
  [EMAIL PROTECTED]
 
  Destinatarios: Tomcat Users List [EMAIL PROTECTED]
  CC:(cci: ALEJANDRO FREIRE/BANELCO/AR)
  Asunto:   RE: URGENT= Problem with Session Cookie
 
 
 
 
 
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:afreire;banelco.com.ar]
   Sent: Tuesday, November 05, 2002 7:19 AM
   To: [EMAIL PROTECTED]
   Subject: URGENT= Problem with Session Cookie
  
  
   I'm using Apache with Tomcat 3.3.1.
   I have a servlet with multiples instances. When I call it in
   first time a
   create the sesssion (session = req.getSession(true)) and set
   several info
   in the session, after that I call another instance of this
   servlet that use
   the data saved in the firts time. My probles is that when I
   call the second
   instance Tomcat create again the session and I lost all
  previous data.
  It isn't clear to me what you mean by servlet with multiples
  instances.  For typical use, Tomcat creates one instance of a
  servlet, where servlet corresponds to a servlet-mapping
  in the web.xml or what gets executed by .../servlet/classname
  for a request.  Please explain.
  Also, what does I call the second instance mean.  Is
  this a forward, an include, a redirect, what?
  
   For read the session I use: session = req.getSession(). I use
   that in the
   top of the servlet and for every instance. Then to create the
   session in a
   espefic instance I use: session = req.getParameter(true).
  Note that req.getSession() does the same thing as
  req.getSession(true) (I'm assuming getParameter(true) above
  is a typo).  Both will create a session, where
  req.getSession(false) won't.
  Larry
  
   That's works fine under Tomcat 3.2.3, but I need to upgrade it.
  
   Anybody could help me?
  
   Regards
   Alejandro
  
  
  
  
  
   --
   To unsubscribe, e-mail:
   mailto:tomcat-user- [EMAIL PROTECTED]
   For
   additional commands,
   e-mail: mailto:tomcat-user-help;jakarta.apache.org
  
  
  --
  To unsubscribe, e-mail:   
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail: 
  mailto:tomcat-user-help;jakarta.apache.org
 
 
 
 
 
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user- [EMAIL PROTECTED]
  For
  additional commands,
  e-mail: mailto:tomcat-user-help;jakarta.apache.org
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:tomcat-user-help;jakarta.apache.org
 
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [Installation] silent install

2002-11-05 Thread François Vallet
Thanks a lot tony !


 -Original Message-
 From: Anthony Shawver [mailto:ashawver;actaview.com]
 Sent: mardi 5 novembre 2002 18:49
 To: Tomcat Users List
 Subject: RE: [Installation] silent install
 
 I didn't author this original email, but I asked an earlier question
 regarding silent installs.  I am looking for functionality similar to the
 Java silent install listed here:
 http://java.sun.com/j2se/1.4/docs/guide/plugin/developer_guide/silent.html
 
 Tony
 
 -Original Message-
 From: Turner, John [mailto:JTurner;AAS.com]
 Sent: Tuesday, November 05, 2002 12:23 PM
 To: 'Tomcat Users List'
 Subject: RE: [Installation] silent install
 
 
 
 What do you mean by silent?
 
 John
 
 
  -Original Message-
  From: François Vallet [mailto:fvallet;infovista.com]
  Sent: Tuesday, November 05, 2002 12:05 PM
  To: 'Tomcat Users List'
  Subject: [Installation] silent install
 
 
  Who have been succeed to create a silent install of tomcat on
  both windows
  and Unix !
 
  Thanks in advance
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
 
 
 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 
 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [Installation] silent install

2002-11-05 Thread Aryeh Katz
 I didn't author this original email, but I asked an earlier question
 regarding silent installs.  I am looking for functionality similar to
 the Java silent install listed here:
I assumed that's what the OP meant, until they added that they wanted
this for UNIX. Last I checked, install shield was a windows product. In which
case, the OP is going to have to be more specific (or follow John's advice re
shell scripts).
 http://java.sun.com/j2se/1.4/docs/guide/plugin/developer_guide/silent.
 html

 Tony

 -Original Message-
 From: Turner, John [mailto:JTurner;AAS.com]
 Sent: Tuesday, November 05, 2002 12:23 PM
 To: 'Tomcat Users List'
 Subject: RE: [Installation] silent install



 What do you mean by silent?

 John


  -Original Message-
  From: François Vallet [mailto:fvallet;infovista.com]
  Sent: Tuesday, November 05, 2002 12:05 PM
  To: 'Tomcat Users List'
  Subject: [Installation] silent install
 
 
  Who have been succeed to create a silent install of tomcat on
  both windows
  and Unix !
 
  Thanks in advance
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
 

 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org


 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional
 commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



---
Aryeh Katz
VASCO
www.vasco.com


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [Installation] silent install

2002-11-05 Thread Anthony Shawver
I am looking to pass all the necessary parameters to the Windows install so
that no UI's pop up to the user.  For the Tomcat install, here are the
things that I need to pass:
1) Install directory
2) Which options (i.e. NT service or not) to check
3) The params for the http port (not necessary for me, I can skip this step)
on the last UI screen.

So yes, there are very few things to set, but I would like to set those and
hide from the user rather than have the user enter anything through a UI.

Tony

-Original Message-
From: Turner, John [mailto:JTurner;AAS.com]
Sent: Tuesday, November 05, 2002 12:59 PM
To: 'Tomcat Users List'
Subject: RE: [Installation] silent install



A binary install of Tomcat is self-contained.  The only intervention needed,
assuming there is a working J2SE present, is to set CATALINA_HOME to the
install location.  That's the only thing required to get Tomcat to startup.

I'm not sure how it could be more silent than that.  A shell script for
UNIX/Linux would be 3 or 4 lines.

John


 -Original Message-
 From: Anthony Shawver [mailto:ashawver;actaview.com]
 Sent: Tuesday, November 05, 2002 12:49 PM
 To: Tomcat Users List
 Subject: RE: [Installation] silent install


 I didn't author this original email, but I asked an earlier question
 regarding silent installs.  I am looking for functionality
 similar to the
 Java silent install listed here:
 http://java.sun.com/j2se/1.4/docs/guide/plugin/developer_guide
 /silent.html

 Tony

 -Original Message-
 From: Turner, John [mailto:JTurner;AAS.com]
 Sent: Tuesday, November 05, 2002 12:23 PM
 To: 'Tomcat Users List'
 Subject: RE: [Installation] silent install



 What do you mean by silent?

 John


  -Original Message-
  From: François Vallet [mailto:fvallet;infovista.com]
  Sent: Tuesday, November 05, 2002 12:05 PM
  To: 'Tomcat Users List'
  Subject: [Installation] silent install
 
 
  Who have been succeed to create a silent install of tomcat on
  both windows
  and Unix !
 
  Thanks in advance
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
 

 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org


 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [Installation] silent install

2002-11-05 Thread Turner, John

You'll also need checks to verify a working and properly configured J2SE
(with JAVA_HOME set).

John


 -Original Message-
 From: Anthony Shawver [mailto:ashawver;actaview.com]
 Sent: Tuesday, November 05, 2002 1:16 PM
 To: Tomcat Users List
 Subject: RE: [Installation] silent install
 
 
 I am looking to pass all the necessary parameters to the 
 Windows install so
 that no UI's pop up to the user.  For the Tomcat install, here are the
 things that I need to pass:
 1) Install directory
 2) Which options (i.e. NT service or not) to check
 3) The params for the http port (not necessary for me, I can 
 skip this step)
 on the last UI screen.
 
 So yes, there are very few things to set, but I would like to 
 set those and
 hide from the user rather than have the user enter anything 
 through a UI.
 
 Tony
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




[HOWTO] Apache 2.0.43 + Tomcat 4.1.12 on Solaris 8

2002-11-05 Thread Turner, John

I've posted a HOWTO for Solaris 8.

http://www.johnturner.com/howto

It covers using JK with Apache 2.0.43 and Tomcat 4.1.12, with Apache and
mod_jk being built from source.

Comments and suggestions welcome.

- John


John Turner
[EMAIL PROTECTED] | 248-488-3466
Advertising Audit Service
http://www.aas.com


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: digest authentication or auth-methodDIGEST/auth-method

2002-11-05 Thread Koes, Derrick


Leave the auth-method in the web.xml as BASIC.


-Original Message-
From: Frank Balluffi [mailto:frank.balluffi;db.com] 
Sent: Monday, November 04, 2002 6:01 PM
To: [EMAIL PROTECTED]
Subject: digest authentication or auth-methodDIGEST/auth-method

I am able to successfully configure Tomcat 4.1.12 to use basic
authentication and access a servlet from IE 5.5. conf/server.xml contains:

  Realm className = org.apache.catalina.realm.MemoryRealm
 pathname  = conf/tomcat-users.xml /

conf/tomcat-users.xml contains:

  role rolename=myapp/
  user username=frank password=password roles=myapp/

myapp/WEB-INF/web.xml contains:

web-app
display-nameMy Application/display-name
descriptionMy Application/description
servlet-mapping
servlet-nameinvoker/servlet-name
url-pattern/servlet/*/url-pattern
/servlet-mapping
security-constraint
web-resource-collection
web-resource-nameMy Application/web-resource-name
url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
role-namemyapp/role-name
/auth-constraint
/security-constraint
login-config
auth-methodBASIC/auth-method
realm-nameMy Application/realm-name
/login-config
security-role
role-namemyapp/role-name
/security-role
/web-app

When IE prompts me for the user name and password, I enter frank and
password and the servlet successfully runs.

When I attempt to configure Tomcat to use digest authentication (and restart
Tomcat), weird things happen. conf/server.xml contains:

  Realm className = org.apache.catalina.realm.MemoryRealm
 digest= MD5
 pathname  = conf/tomcat-users.xml /

conf/tomcat-users.xml contains:

  role rolename=myapp/
  user username=frank password=5f4dcc3b5aa765d61d8327deb882cf99
roles=myapp/

I used the following command to MD5 digest the password password [without
the double quotes]:

C:\jakarta-tomcat-4.1.12\server\libjava org.apache.catalina.realm.RealmBase
-a MD5 password
password:5f4dcc3b5aa765d61d8327deb882cf99

myapp/WEB-INF/web.xml contains:

web-app
display-nameMy Application/display-name
descriptionMy Application/description
servlet-mapping
servlet-nameinvoker/servlet-name
url-pattern/servlet/*/url-pattern
/servlet-mapping
security-constraint
web-resource-collection
web-resource-nameMy Application/web-resource-name
url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
role-namemyapp/role-name
/auth-constraint
/security-constraint
login-config
auth-methodDIGEST/auth-method

!--
The memory realm defined in /conf/server.xml contains no name. Does
the
realm-name value refer to some other configuration value.
--

realm-nameMy Application/realm-name
/login-config
security-role
role-namemyapp/role-name
/security-role
/web-app

If I enter the user name and password frank and password into IE,
authentication fails. But if I enter frank and
5f4dcc3b5aa765d61d8327deb882cf99, authentication succeeds. I expected
frank and password to work.

The log file for myapp shows the following:

2002-11-04 17:51:40 WebappLoader[/myapp]: Deploying class repositories to
work directory C:\jakarta-tomcat-4.1.12\work\Standalone\localhost\myapp
2002-11-04 17:51:40 WebappLoader[/myapp]: Deploy class files
/WEB-INF/classes to
C:\jakarta-tomcat-4.1.12\bin\..\webapps\myapp\WEB-INF\classes
2002-11-04 17:51:40 WebappLoader[/myapp]: Reloading checks are enabled for
this Context
2002-11-04 17:51:41 ContextConfig[/myapp]: Configured an authenticator for
method DIGEST
2002-11-04 17:51:41 StandardManager[/myapp]: Seeding random number generator
class java.security.SecureRandom
2002-11-04 17:51:41 StandardManager[/myapp]: Seeding of random number
generator has been completed
2002-11-04 17:51:41 StandardWrapper[/myapp:default]: Loading container
servlet default
2002-11-04 17:51:41 StandardWrapper[/myapp:invoker]: Loading container
servlet invoker

Am I doing something wrong? Do I not understand digest authentication? Any
ideas? Thanks.

Frank


--

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.



--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org
This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended 

Building mod_jk

2002-11-05 Thread developer
I want to build mod_jk on my linux box.  I downloaded and untarred the
src.  Where are the build instructions and docs  On jakarata the only
docs just say download and look for instructions.  

thanks



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Building mod_jk

2002-11-05 Thread Turner, John

/wherever/you/unpacked/the/source/jk/native/BUILDING

In short:

./configure --with-apxs=/some/path/to/apache/bin/apxs
make

John


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:developer;wexwarez.com]
 Sent: Tuesday, November 05, 2002 1:46 PM
 To: Tomcat Users List
 Subject: Building mod_jk
 
 
 I want to build mod_jk on my linux box.  I downloaded and untarred the
 src.  Where are the build instructions and docs  On 
 jakarata the only
 docs just say download and look for instructions.  
 
 thanks
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Performance Test

2002-11-05 Thread Ganesh
Hi All,
 

We are testing our software on jakarta-tomcat-4.1.10 under different environment 
(Windows, Linux, Solaris). When we run the performance test (50 user login and do some 
operation like send mail, read mail etc. and logoff), the JVM size is keep on 
increasing and the response time is also very slow. Basically this problem will happen 
in all platforms, but comparatively less in Linux. We have increased the JVM size, but 
still the result is same. The same test is looking good in iPlanet Webserver. Please 
let us know any parameter do we need to configure in Tomcat or if anyone has some 
suggestion/comments etc will be really helpful.

 

Thanks

Nagaraja





MBeans exception and mod_jk

2002-11-05 Thread Mark Diana
Folks,

OK, I hate to do this, but I've searched the archives and monitored  
this list for a few weeks now, and I still can't get this to work. I  
want to set up Apache and Tomcat on my G4 Mac with OSX 10.2.1 for  
development (I want to eventually have the same set up on my production  
RedHat machine, which is currently running Apache1.3.12/Tomcat3.3.1  
with mod_jk). Anyway, I've followed John Turner's Howto for the most  
part. I have installed Apache 2.0.43, Tomcat 4.1.12, and mod_jk. I have  
modified server.xml, workers.properties, and httpd.conf per John  
Turner's Howto and the docs, and they just won't talk to each other.  
And, when I start Tomcat, I get this in catalina.out:

[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with Ajp13Connector
	at  
org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:225)
	at  
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLi 
fecycleListener.java:369)
	at  
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLi 
fecycleListener.java:777)
	at  
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLi 
fecycleListener.java:751)
	at  
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLi 
fecycleListener.java:339)
	at  
org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Server 
LifecycleListener.java:206)
	at  
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu 
pport.java:166)
	at  
org.apache.catalina.core.StandardServer.start(StandardServer.java:2182)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
	at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
	at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Starting service Tomcat-Standalone
Apache Tomcat/4.1.12
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080

I don't know if that's a related problem or not, but I also searched  
the archives on this and couldn't find the problem. I even tried  
commenting out the JMX MBeans portion of server.xml, thinking maybe it  
wasn't compatible with ajp13, but that didn't help (it did get rid of  
the excepyion).

Apache works fine on port 80 and Tomact works fine on port 8080. Let me  
know if you want me to post more of the config files, and feel free to  
respond privately or to the list.

Thanks!

Mark

--
Mark L. Diana, MBA
Instructor
LAN Manager  Webmaster
Virginia Commonwealth University
Department of Health Administration


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



RE: [Installation] silent install

2002-11-05 Thread Anthony Shawver
Right.  So the question is how do I do this silently?  How do I install
Tomcat 4.1.12 on Windows, select the proper configuration below, all without
any user interaction through a UI?

Tony

-Original Message-
From: Turner, John [mailto:JTurner;AAS.com]
Sent: Tuesday, November 05, 2002 1:16 PM
To: 'Tomcat Users List'
Subject: RE: [Installation] silent install



You'll also need checks to verify a working and properly configured J2SE
(with JAVA_HOME set).

John


 -Original Message-
 From: Anthony Shawver [mailto:ashawver;actaview.com]
 Sent: Tuesday, November 05, 2002 1:16 PM
 To: Tomcat Users List
 Subject: RE: [Installation] silent install


 I am looking to pass all the necessary parameters to the
 Windows install so
 that no UI's pop up to the user.  For the Tomcat install, here are the
 things that I need to pass:
 1) Install directory
 2) Which options (i.e. NT service or not) to check
 3) The params for the http port (not necessary for me, I can
 skip this step)
 on the last UI screen.

 So yes, there are very few things to set, but I would like to
 set those and
 hide from the user rather than have the user enter anything
 through a UI.

 Tony


--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Tomcat and CLASSPATH

2002-11-05 Thread Cox, Charlie


 -Original Message-
 From: Chris gokey [mailto:cgokey;gcmd.nasa.gov]
 Sent: Tuesday, November 05, 2002 9:25 AM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat and CLASSPATH
 
 
 Thanks Justin.   Yes, I think you understand me correctly.  I 
 think the
 easiest way to handle a problem like this is for Tomcat to provide
 something
 in WEB-INF/web.xml that would let me specify a external classpath
 outside of the WEB-INF directory.  These classes would only be loaded
 ONLY for this webapp :)  

Since the servlet spec defines the web.xml, this would violate the spec, so
don't expect it soon. You could send your comments to the servlet spec team
for the 2.4 spec that is now being discussed(reviewed?). 

also note that you wouldn't be able to build a war if jars are located in
other places.

 Until then, I think, maybe I'll 
 figure out Ant
 and see if it can
 help with some of the housekeeping regarding keeping Tomcat's codebase
 up to date whenever things change in the main codebase.  But, there is
 something about the idea of redundant files exiting on the 
 same machine
 in two difference places that I don't like...
 

though not ideal, this is your best option. 

Also remember that you have the source, so you can extend
WebAppClassLoader.java if you wish. 

Charlie

 Thanks,
 Chris
 
  -Original Message-
  From: tomcat-user-return-40065-
  [EMAIL PROTECTED]
 [mailto:tomcat-user-return-
  [EMAIL PROTECTED]] On Behalf Of
 Justin
  Ruthenbeck
  Sent: Monday, November 04, 2002 7:21 PM
  To: Tomcat Users List
  Subject: RE: Tomcat and CLASSPATH
  
  
  Ahh... so (if I read this correctly), you've got your application
 always
  installed on a system in a certain directory structure that is
 independent
  of Tomcat.  Then there's some element that is a web application that
 some
  clients get/activate.  You want to keep all your stuff together and
  optionally install Tomcat and run the webapp from the location you
  installed to.  At least in essence, is this close?
  
  If so, then I see the advantage during deployment of 
 modifying Tomcat
 to
  point to some external directory for resources.  Depending 
 on the way
 your
  app is organized (and how much you may be able to change that), your
 other
  option is to define the docbase of your context (and the 
 root context)
 to
  point somewhere other than the webapps directory it points at by
 default -
  -
  there are caveats to that depending on the version you're using.
 You'll
  still have problems in that J2EE mandates the whole WEB-INF/*
 directory
  structure, but you can probably massage things into place 
 without too
 much
  cross-pollination.  I think this addresses what was, once 
 upon a time,
  your
  original question.  :)
  
  justin
  
  
  At 03:28 PM 11/4/2002, you wrote:
  
  Hi Justin.
  
  Thanks for your response.
  
  I'm not suggesting that Tomcat should be started up with 
 some type of
  global classpath, rather I'm suggesting that the 
 applications context
  for retrieving it classes does not necessarily need to be in
  WEB-INF/classes and WEB-INF/lib.  Instead, why not specify the
 location
  for where it gathers its classes from WEB-INF/web.xml (atleast as a
  third option.) [and only for that context, it isn't a 
 global web.xml]
  
  We package multiple versions of our software, some which is shipped
 with
  Tomcat and some not..  So for those applications, it would 
 be nice to
  have one place where classes reside and if we package it 
 with Tomcat,
  then that web.xml just points to where our classes reside. 
  By having
  our java sources compiled directly to Jakarta-tomcat sort 
 of couples
 the
  two a little more closely than we'd like.  That is the 
 reason why we
 are
  forced to copy files now.
  
  Chris
  
For simple applications in development, you're right -- there is
 no
technical roadblack that prevents you from comingling 
 your source
 and
compiled classes, modifying Tomcat's classpath so that 
 the default
classloader finds them, and running your app.  However, 
 no one (or
  very
few) do this because
   
(1) it's more complicated than compiling your classes 
 directly to
WEB-INF/classes,
(2) deploying, versioning, and managing such a setup, especially
 once
  you
inevitably introduce multiple webapps, would be a collossal
 nightmare,
  and
perhaps most importantly
(3) running each webapp in its own classloader (it 
 classes loaded
 from
WEB-INF/classes) allows Tomcat to manage that application
  independently --
for developers that means redeploying the application without
  restarting
the server to catch changes that are made.
   
Unless you have some overwhelming reason to sidestep this, I'd
 suggest
separating your source and compiled classes, using the 
 directories
 as
intended, and -- especially if this is a commercial project --
 using
  Ant
to
do all of the above.
   
(And if you do see a reason otherwise, 

RE: Tomcat and CLASSPATH

2002-11-05 Thread Cox, Charlie
I wouldn't mind a 'common-file-separate-instance' directory where each
application (as allowed in some manner(web.xml?)) could load *separate
instances* of a jar/class file that resides in the same loaction. This would
avoid the duplication of such libraries that should not share instances.

I have not yet looked at servlet spec 2.4, so it may already be there.

Charlie

 -Original Message-
 From: Ralph Einfeldt [mailto:ralph.einfeldt;uptime-isc.de]
 Sent: Tuesday, November 05, 2002 8:51 AM
 To: Tomcat Users List
 Subject: RE: Tomcat and CLASSPATH
 
 
 Yes it is housekeeping, and we already have scripts that can 
 do the housekeeping. As we have in the past moved from linking
 to the repositories, we have already a list of jar files
 that are needed outside of the container, and a script that
 creates the repository entries.
 
 Still I see some disadvantages.
 
 - I feel more comfortable if I can see directly
   which version of a library is used instead
   on relying on external reference. (I have seen 
   to many people ignoring the rules and copying
   something manually without updating the reference.)
 
 - Although disk space is cheap, it's not for free.
   And there are other space requirements that aren't 
   cheap at all (backup drive + tapes)
   Currently the libraries that are used for our 
   sites have a size of roughly 4-5MB. If you have to
   copy this for each site it can get a quite big 
   number.
   Depending on your business model, that can be
   a deciding difference. (The smaller the volume
   of the content and the more sites you have, the 
   more painfull this number gets)
 
  -Original Message-
  From: Turner, John [mailto:JTurner;AAS.com]
  Sent: Tuesday, November 05, 2002 2:06 PM
  To: 'Tomcat Users List'
  Subject: RE: Tomcat and CLASSPATH
  
  
  
  Thanks for the response.
  
  My point is simply that the files have to reside _somewhere_, 
  correct?  So
  if they have to reside _somewhere_, they might as well reside in the
  structure intended for them.  The act of putting them in 
  location A vs.
  location B is exactly the same, only the destination is different.
  
  The rest is housekeeping, and in my mind, it makes more sense 
  to write a
  housekeeping tool (or use a build/deploy tool) than it does 
  to circumvent an
  intentional design.  The only other problem is duplicates, as 
  you pointed
  out, but again, that's housekeeping.  As long as you know 
  who/what has which
  file, the fact that there are two copies of the file is 
  pretty irrelevant
  from a practical viewpoint.
  
  John
  
  
   -Original Message-
   From: Ralph Einfeldt [mailto:ralph.einfeldt;uptime-isc.de]
   Sent: Tuesday, November 05, 2002 4:29 AM
   To: Tomcat Users List
   Subject: RE: Tomcat and CLASSPATH
   
   
   
   We have following reqirements:
   - each site can have a different version of a tool
   - many sites share the same vesion of the tool
   - a site may change the needed version of a tool
   - a site may replace a tool by a different one
 (switch from postgres to firebird)
   
   We have a setup like this:
   
   /usr/local/tool-a-v1/lib/toola.jar
   /usr/local/tool-a-v2/lib/toola.jar
   /usr/local/tool-a-v3/lib/toola.jar
   
   /usr/local/tool-b-v1/lib/toolb.jar
   /usr/local/tool-b-v2/lib/toolb.jar
   
   
   /www/online/www.site-a
   /www/online/www.site-b
   ...
   /www/online/www.site-z
   
   
   Currently we use jserv and gnujsp.
   
   jserv has the concept of repositories. The repositories are 
   added by jserv to the internal classpath. We use the repositories 
   to connect a site with the tools it needs. So it's very easy
   to change the versions of the tool or to replace the tool.
   
   Now to tomcat:
   
   Without linking we would have to copy the libraries into 
   the tomcat directory structure for each site.
   
   With copying I see two disadvantages for us:
   - We would have several copies of the same libraries.
 Although disk space get cheaper, this is something
 that disturbs me (May be caused by the fact that 
 my first hard disk had less space than a modern 
 grafic card or handheld has memory: 40MB)
   - We loose the 'natural' information which
 version of the library we use in specific site.
   - If we would have to replace a version of a tool
 by a patched version, we could just replace the
 central file, now we have to copy this file to
 all instances that use this version.
   
   With linking the libraries we could solve both 
   disadvantages for us.
   
-Original Message-
From: Turner, John [mailto:JTurner;AAS.com]
Sent: Monday, November 04, 2002 5:39 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat and CLASSPATH
 

We don't use symbolic links.  Everything is under Tomcat's 
directory tree.

What is the advantage to using symbolic links or an external 
classpath?  I'm not seeing what advantage you would get.

   
   --
   

RE: MBeans exception and mod_jk

2002-11-05 Thread Turner, John

Aside from the MBean stuff, please post relevant portion of httpd.conf (or
mod_jk.conf), workers.properties, and relevant portions of server.xml, such
as your Host container and your Connector containers.  Also post the URL you
are trying to access if it is something different than
http://localhost/examples.

John


 -Original Message-
 From: Mark Diana [mailto:mldiana;vcu.edu]
 Sent: Tuesday, November 05, 2002 2:00 PM
 To: [EMAIL PROTECTED]
 Subject: MBeans exception and mod_jk
 
 
 Folks,
 
 OK, I hate to do this, but I've searched the archives and monitored  
 this list for a few weeks now, and I still can't get this to work. I  
 want to set up Apache and Tomcat on my G4 Mac with OSX 10.2.1 for  
 development (I want to eventually have the same set up on my 
 production  
 RedHat machine, which is currently running Apache1.3.12/Tomcat3.3.1  
 with mod_jk). Anyway, I've followed John Turner's Howto for the most  
 part. I have installed Apache 2.0.43, Tomcat 4.1.12, and 
 mod_jk. I have  
 modified server.xml, workers.properties, and httpd.conf per John  
 Turner's Howto and the docs, and they just won't talk to each other.  
 And, when I start Tomcat, I get this in catalina.out:
 
 [INFO] Registry - -Loading registry information
 [INFO] Registry - -Creating new Registry instance
 [INFO] Registry - -Creating MBeanServer
 [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
 ServerLifecycleListener: createMBeans: MBeanException
 java.lang.Exception: ManagedBean is not found with Ajp13Connector
   at  
 org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:225)
   at  
 org.apache.catalina.mbeans.ServerLifecycleListener.createMBean
 s(ServerLi 
 fecycleListener.java:369)
   at  
 org.apache.catalina.mbeans.ServerLifecycleListener.createMBean
 s(ServerLi 
 fecycleListener.java:777)
   at  
 org.apache.catalina.mbeans.ServerLifecycleListener.createMBean
 s(ServerLi 
 fecycleListener.java:751)
   at  
 org.apache.catalina.mbeans.ServerLifecycleListener.createMBean
 s(ServerLi 
 fecycleListener.java:339)
   at  
 org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEv
 ent(Server 
 LifecycleListener.java:206)
   at  
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
 ifecycleSu 
 pport.java:166)
   at  
 org.apache.catalina.core.StandardServer.start(StandardServer.j
 ava:2182)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
   at 
 org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
   at 
 org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   at java.lang.reflect.Method.invoke(Native Method)
   at 
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.12
 [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080
 
 I don't know if that's a related problem or not, but I also searched  
 the archives on this and couldn't find the problem. I even tried  
 commenting out the JMX MBeans portion of server.xml, thinking 
 maybe it  
 wasn't compatible with ajp13, but that didn't help (it did 
 get rid of  
 the excepyion).
 
 Apache works fine on port 80 and Tomact works fine on port 
 8080. Let me  
 know if you want me to post more of the config files, and 
 feel free to  
 respond privately or to the list.
 
 Thanks!
 
 Mark
 
 --
 Mark L. Diana, MBA
 Instructor
 LAN Manager  Webmaster
 Virginia Commonwealth University
 Department of Health Administration
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [ANNOUNCE] Solaris 8 JK Binary available

2002-11-05 Thread Turner, John

Thanks! That was the ticket..I had libapr-0.so, so a symlink from that to
libapr.so was the solution.

John


 -Original Message-
 From: Brzezinski, Paul J [mailto:paul.brzezinski;eds.com]
 Sent: Tuesday, November 05, 2002 12:52 PM
 To: Tomcat Users List
 Subject: RE: [ANNOUNCE] Solaris 8 JK Binary available
 
 
 
 I'm going to step out on a limb and say that libapr.so 
 doesn't exist -- if
 you built everything from source, look for libapr-*.so* in the apache
 lib-dir and either do a symbolic link from libapr-*.so to libapr.so in
 apache/lib, then do your make again.
 
 Paul
 
 --
 mailto:Paul.Brzezinski;EDS.com
 Enterprise Distributed Capabilities
 EDS Corporation
 248-265-8283
 
 
 : -Original Message-
 : From: Turner, John [mailto:JTurner;AAS.com] 
 : Sent: Tuesday, November 05, 2002 12:38 PM
 : To: 'Tomcat Users List'
 : Subject: RE: [ANNOUNCE] Solaris 8 JK Binary available
 : 
 : 
 : 
 : So far I have run into a problem in jk_channel_socket.c where 
 : FIONBIO isn't defined, but it's used in 
 : jk2_channel_socket_open().  I fixed this by adding a couple 
 : of #include lines to jk_channel_socket.c.
 : 
 : Then I ran into a problem with make, where it ran for quite 
 : awhile and seemed to be moving right along before suddenly 
 : failing with a ld: cannot find -lapr message. This seems 
 : odd, as APR is definitely around since I built Apache from 
 : source. I couldn't resolve that one, so for now I have tabled 
 : it until I can get subscribed to tomcat-dev and get caught up.  
 : 
 : John
 : 
 : 
 :  -Original Message-
 :  From: Brzezinski, Paul J [mailto:Paul.Brzezinski;EDS.COM]
 :  Sent: Tuesday, November 05, 2002 12:32 PM
 :  To: Tomcat Users List
 :  Subject: Re: [ANNOUNCE] Solaris 8 JK Binary available
 :  
 :  
 :  Turner, John wrote:
 :  
 :  I finally got access to a Solaris 8 server.
 :  
 :  I've posted a mod_jk binary (mod_jk.so) for Solaris 8 at:
 :  
 :  http://www.johnturner.com/howto
 :  
 :  This is mod_jk compiled against Apache 2.0.43 and using the
 :  JK Connector
 :  source v1.2.0.  Tested against Tomcat 4.1.12.
 :  
 :  I'm having problems building mod_jk2.so, if anyone has done
 :  this or is
 :  trying to do it now, I'd like to hear about it.
 :  
 :  - John
 :  
 :  
 :  --
 :  To unsubscribe, e-mail:   
 :  mailto:tomcat-user-unsubscribe;jakarta.apache.org
 :  For additional commands, e-mail:
 :  mailto:tomcat-user-help;jakarta.apache.org
 :
 :  
 :  I have built it successfully using the APR included in Apache
 :  2.0.40 on 
 :  Solaris 8 SPARC, but I *COULD NOT* use the ChannelUnix 
 :  (AF_UNIX) sockets.
 :  
 :  I had to download newer versions of libtool, autoconf, 
 : automake.  The
 :  makefiles also seem to contain GNU make semantics that don't 
 :  work with 
 :  the vendor-supplied version of make.
 :  
 :  I also had to add a switch to one of the lines in the
 :  makefiles in order 
 :  to compiler some of the native code:
 :  
 :   -DBSD_COMP
 :  
 :  I believe I opened a bug about this...
 :  
 :  How does this compare with what you've run into so far?
 :  
 :  Paul
 :  
 :  
 :  
 :  
 :  --
 :  To unsubscribe, e-mail:   
 : mailto:tomcat-user-unsubscribe;jakarta.apache.org
 : For additional commands, e-mail: 
 : mailto:tomcat-user-help;jakarta.apache.org
 : 
 : --
 : To 
 : unsubscribe, e-mail:   
 : mailto:tomcat-user-: [EMAIL PROTECTED]
 : For 
 : additional commands, 
 : e-mail: mailto:tomcat-user-help;jakarta.apache.org
 : 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Can't use alternate root context with Tomcat 4.1.12

2002-11-05 Thread Ian Hunter
Martin solved my weird index.jsp problem -- I had to shut tomcat down and
manually clear out the $CATALINA_HOME\work directory, and start tomcat back
up.


--

From: Martin Algesten [EMAIL PROTECTED]
To: Tomcat Developers List [EMAIL PROTECTED]
Sent: Tuesday, November 05, 2002 10:37 AM
Subject: RE: Tomcat 4.1.12 root context index.jsp bug


Did you make sure that the work director has been cleaned out? The
compiled JSP will otherwise still sit around in there. Delete everything
you find under CATALINA_BASE/work (or CATALINA_HOME/work).

Martin

- Original Message -
From: Ian Hunter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 04, 2002 12:03 PM
Subject: Can't use alternate root context with Tomcat 4.1.12


 It seems like either I'm missing something drastic or that me and at least
 one other person on the list have found a bug wherein the ROOT context of
 Tomcat 4.1.12 cannot be reliably changed.

 Has anyone successfully done this?


 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




JK2 Solaris 8 binary available

2002-11-05 Thread Turner, John

I've posted a JK2 binary for Solaris 8 (SPARC).

http://www.johnturner.com/howto

Built against Apache 2.0.43 using latest 2.0.1 source.

NOTE: I had to modify jk_channel_socket.c to get mod_jk2.so to build and
have not been able to test it yet, so please understand that you are
responsible for testing, etc. This connector file may or may not be suitable
for your purposes. Use at your own risk!

Thanks to Paul Brzezinski for the tip on fixing a problem with libapr.so.

- John


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: MBeans exception and mod_jk

2002-11-05 Thread Mark Diana
OK.

httpd.conf:

Include /Library/Tomcat/Home/conf/auto/mod_jk.conf

where /Home is a symbolic link to 
/Library/Tomcat/jakarta-tomcat-4.1.12. The only other thing I changed 
in httpd.conf was the Server Name, which I set as localhost.

Sample from auto-generated mod_jk.conf:

## Auto generated on Tue Nov 05 13:57:53 EST 2002##

IfModule !mod_jk.c
  LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
/IfModule

JkWorkersFile /Library/Tomcat/Home/conf/jk/workers.properties
JkLogFile /Library/Tomcat/Home/logs/mod_jk.log

JkLogLevel emerg

VirtualHost localhost
ServerName localhost

 localhost:/examples 

# Static files
Alias /examples /Library/Tomcat/Home/webapps/examples

Directory /Library/Tomcat/Home/webapps/examples
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory


# Deny direct access to WEB-INF and META-INF
#
Location /examples/WEB-INF/*
AllowOverride None
deny from all
/Location

Location /examples/META-INF/*
AllowOverride None
deny from all
/Location

JkMount /examples/jsp/security/protected/j_security_check  ajp13
JkMount /examples/snoop  ajp13
JkMount /examples/CompressionTest  ajp13
JkMount /examples/servlet/*  ajp13
JkMount /examples/*.jsp  ajp13
JkMount /examples/servletToJsp  ajp13
JkMount /examples/SendMailServlet  ajp13

server.xml:

Server port=8005 shutdown=SHUTDOWN debug=0

	!-- Use this to automatically generate mod_jk config --
	Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
		modJk=/usr/local/apache2/modules/mod_jk.so /

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=1/

  Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true

!-- This is also for auto-generated mod_jk config --
   	Listener 
className=org.apache.ajp.tomcat4.config.ApacheConfig append=true
		forwardAll=false modJk=/usr/local/apache2/modules/mod_jk.so
		workersConfig=/Library/Tomcat/Home/conf/jk/workers.properties /

Everything else in server.xml is unaltered from the default.

I'm trying to access http://localhost/examples and getting a 404 error. 
http://localhost:8080/examples works great.

Thanks and take care,

Mark


On Tuesday, November 5, 2002, at 02:01 PM, Turner, John wrote:


Aside from the MBean stuff, please post relevant portion of httpd.conf 
(or
mod_jk.conf), workers.properties, and relevant portions of server.xml, 
such
as your Host container and your Connector containers.  Also post the 
URL you
are trying to access if it is something different than
http://localhost/examples.

John


-Original Message-
From: Mark Diana [mailto:mldiana;vcu.edu]
Sent: Tuesday, November 05, 2002 2:00 PM
To: [EMAIL PROTECTED]
Subject: MBeans exception and mod_jk


Folks,

OK, I hate to do this, but I've searched the archives and monitored
this list for a few weeks now, and I still can't get this to work. I
want to set up Apache and Tomcat on my G4 Mac with OSX 10.2.1 for
development (I want to eventually have the same set up on my
production
RedHat machine, which is currently running Apache1.3.12/Tomcat3.3.1
with mod_jk). Anyway, I've followed John Turner's Howto for the most
part. I have installed Apache 2.0.43, Tomcat 4.1.12, and
mod_jk. I have
modified server.xml, workers.properties, and httpd.conf per John
Turner's Howto and the docs, and they just won't talk to each other.
And, when I start Tomcat, I get this in catalina.out:

[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with Ajp13Connector
	at
org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:225)
	at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBean
s(ServerLi
fecycleListener.java:369)
	at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBean
s(ServerLi
fecycleListener.java:777)
	at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBean
s(ServerLi
fecycleListener.java:751)
	at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBean
s(ServerLi
fecycleListener.java:339)
	at
org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEv
ent(Server
LifecycleListener.java:206)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
ifecycleSu
pport.java:166)
	at
org.apache.catalina.core.StandardServer.start(StandardServer.j
ava:2182)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
	at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
	at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
	at 

RE: MBeans exception and mod_jk

2002-11-05 Thread Turner, John

What're the contents of workers.properties?

Also, did you disble the CoyoteConnector on 8009 since you have AjpConnector
enabled?

John


 -Original Message-
 From: Mark Diana [mailto:mldiana;vcu.edu]
 Sent: Tuesday, November 05, 2002 2:23 PM
 To: Tomcat Users List
 Subject: Re: MBeans exception and mod_jk
 
 
 OK.
 
 httpd.conf:
 
 Include /Library/Tomcat/Home/conf/auto/mod_jk.conf
 
 where /Home is a symbolic link to 
 /Library/Tomcat/jakarta-tomcat-4.1.12. The only other thing I changed 
 in httpd.conf was the Server Name, which I set as localhost.
 
 Sample from auto-generated mod_jk.conf:
 
 ## Auto generated on Tue Nov 05 13:57:53 EST 2002##
 
 IfModule !mod_jk.c
LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
 /IfModule
 
 JkWorkersFile /Library/Tomcat/Home/conf/jk/workers.properties
 JkLogFile /Library/Tomcat/Home/logs/mod_jk.log
 
 JkLogLevel emerg
 
 VirtualHost localhost
  ServerName localhost
 
   localhost:/examples 
 
  # Static files
  Alias /examples /Library/Tomcat/Home/webapps/examples
 
  Directory /Library/Tomcat/Home/webapps/examples
  Options Indexes FollowSymLinks
  DirectoryIndex index.html index.htm index.jsp
  /Directory
 
 
  # Deny direct access to WEB-INF and META-INF
  #
  Location /examples/WEB-INF/*
  AllowOverride None
  deny from all
  /Location
 
  Location /examples/META-INF/*
  AllowOverride None
  deny from all
  /Location
 
  JkMount /examples/jsp/security/protected/j_security_check  ajp13
  JkMount /examples/snoop  ajp13
  JkMount /examples/CompressionTest  ajp13
  JkMount /examples/servlet/*  ajp13
  JkMount /examples/*.jsp  ajp13
  JkMount /examples/servletToJsp  ajp13
  JkMount /examples/SendMailServlet  ajp13
 
 server.xml:
 
 Server port=8005 shutdown=SHUTDOWN debug=0
 
   !-- Use this to automatically generate mod_jk config --
   Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
   modJk=/usr/local/apache2/modules/mod_jk.so /
 
  Connector className=org.apache.ajp.tomcat4.Ajp13Connector
 port=8009 minProcessors=5 maxProcessors=75
 acceptCount=10 debug=1/
 
Host name=localhost debug=0 appBase=webapps
 unpackWARs=true autoDeploy=true
 
  !-- This is also for auto-generated mod_jk config --
   Listener 
 className=org.apache.ajp.tomcat4.config.ApacheConfig append=true
   forwardAll=false 
 modJk=/usr/local/apache2/modules/mod_jk.so
   
 workersConfig=/Library/Tomcat/Home/conf/jk/workers.properties /
 
 Everything else in server.xml is unaltered from the default.
 
 I'm trying to access http://localhost/examples and getting a 
 404 error. 
 http://localhost:8080/examples works great.
 
 Thanks and take care,
 
 Mark
 
 
 On Tuesday, November 5, 2002, at 02:01 PM, Turner, John wrote:
 
 
  Aside from the MBean stuff, please post relevant portion of 
 httpd.conf 
  (or
  mod_jk.conf), workers.properties, and relevant portions of 
 server.xml, 
  such
  as your Host container and your Connector containers.  Also 
 post the 
  URL you
  are trying to access if it is something different than
  http://localhost/examples.
 
  John
 
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: compiling mod_jk under AIX

2002-11-05 Thread Milt Epstein
On Tue, 5 Nov 2002, Maureen Barger wrote:

 Has anyone done this successfully? I have tried with IBM's compiler
 as well as gcc and both result in same error:

 ld: 0711-244 ERROR: No csects or exported symbols have been saved.
 apxs:Break: Command failed with rc=8

 I am running aix 4.3.3

If you really want to build it yourself, I'd take the above error
message and go search comp.unix.aix at groups.google.com.  This is
really an AIX shared library question, not an Apache module question.
I've seen this error before, and the solution is to use certain
linker/loader options (I don't remember exactly which ones, but you
can find them in comp.unix.aix), and/or perhaps find an apxs that
works with AIX.  (If you're using an old Apache, upgrading might help,
because I'd think newer versions would have an apxs that has been
fixed for AIX.)

The other alternative is to find an already built mod_jk, matched
to your version of AIX and Apache.  John Turner has collected a bunch
of built mod_jk's (and corresponding howto's) at his web site,
including some for AIX (I know, because I contributed one :-).  The
web site is something like:

http://www.johnturner.com/

Or search the list archives.

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [ANNOUNCE] Solaris 8 JK Binary available

2002-11-05 Thread Brzezinski, Paul J
OK, have you tested this yet on Solaris 8?  

Can you get the ChannelUnix (AF_UNIX) socket stuff to work

I haven't been able to get this to work and was hoping you'd give it a try
and report results.

Paul


--
mailto:Paul.Brzezinski;EDS.com
Enterprise Distributed Capabilities
EDS Corporation
248-265-8283


: -Original Message-
: From: Turner, John [mailto:JTurner;AAS.com] 
: Sent: Tuesday, November 05, 2002 2:09 PM
: To: 'Tomcat Users List'
: Subject: RE: [ANNOUNCE] Solaris 8 JK Binary available
: 
: 
: 
: Thanks! That was the ticket..I had libapr-0.so, so a symlink 
: from that to libapr.so was the solution.
: 
: John
: 
: 
:  -Original Message-
:  From: Brzezinski, Paul J [mailto:paul.brzezinski;eds.com]
:  Sent: Tuesday, November 05, 2002 12:52 PM
:  To: Tomcat Users List
:  Subject: RE: [ANNOUNCE] Solaris 8 JK Binary available
:  
:  
:  
:  I'm going to step out on a limb and say that libapr.so
:  doesn't exist -- if
:  you built everything from source, look for libapr-*.so* in 
: the apache
:  lib-dir and either do a symbolic link from libapr-*.so to 
: libapr.so in
:  apache/lib, then do your make again.
:  
:  Paul
:  
:  --
:  mailto:Paul.Brzezinski;EDS.com
:  Enterprise Distributed Capabilities
:  EDS Corporation
:  248-265-8283
:  
:  
:  : -Original Message-
:  : From: Turner, John [mailto:JTurner;AAS.com]
:  : Sent: Tuesday, November 05, 2002 12:38 PM
:  : To: 'Tomcat Users List'
:  : Subject: RE: [ANNOUNCE] Solaris 8 JK Binary available
:  : 
:  : 
:  : 
:  : So far I have run into a problem in jk_channel_socket.c where 
:  : FIONBIO isn't defined, but it's used in 
:  : jk2_channel_socket_open().  I fixed this by adding a couple 
:  : of #include lines to jk_channel_socket.c.
:  : 
:  : Then I ran into a problem with make, where it ran for quite 
:  : awhile and seemed to be moving right along before suddenly 
:  : failing with a ld: cannot find -lapr message. This seems 
:  : odd, as APR is definitely around since I built Apache from 
:  : source. I couldn't resolve that one, so for now I have tabled 
:  : it until I can get subscribed to tomcat-dev and get caught up.  
:  : 
:  : John
:  : 
:  : 
:  :  -Original Message-
:  :  From: Brzezinski, Paul J [mailto:Paul.Brzezinski;EDS.COM]
:  :  Sent: Tuesday, November 05, 2002 12:32 PM
:  :  To: Tomcat Users List
:  :  Subject: Re: [ANNOUNCE] Solaris 8 JK Binary available
:  :  
:  :  
:  :  Turner, John wrote:
:  :  
:  :  I finally got access to a Solaris 8 server.
:  :  
:  :  I've posted a mod_jk binary (mod_jk.so) for Solaris 8 at:
:  :  
:  :  http://www.johnturner.com/howto
:  :  
:  :  This is mod_jk compiled against Apache 2.0.43 and using the
:  :  JK Connector
:  :  source v1.2.0.  Tested against Tomcat 4.1.12.
:  :  
:  :  I'm having problems building mod_jk2.so, if anyone has done
:  :  this or is
:  :  trying to do it now, I'd like to hear about it.
:  :  
:  :  - John
:  :  
:  :  
:  :  --
:  :  To unsubscribe, e-mail:   
:  :  mailto:tomcat-user-unsubscribe;jakarta.apache.org
:  :  For additional commands, e-mail:
:  :  mailto:tomcat-user-help;jakarta.apache.org
:  :
:  :  
:  :  I have built it successfully using the APR included in Apache
:  :  2.0.40 on 
:  :  Solaris 8 SPARC, but I *COULD NOT* use the ChannelUnix 
:  :  (AF_UNIX) sockets.
:  :  
:  :  I had to download newer versions of libtool, autoconf, 
:  : automake.  The
:  :  makefiles also seem to contain GNU make semantics that don't 
:  :  work with 
:  :  the vendor-supplied version of make.
:  :  
:  :  I also had to add a switch to one of the lines in the
:  :  makefiles in order 
:  :  to compiler some of the native code:
:  :  
:  :   -DBSD_COMP
:  :  
:  :  I believe I opened a bug about this...
:  :  
:  :  How does this compare with what you've run into so far?
:  :  
:  :  Paul
:  :  
:  :  
:  :  
:  :  
:  :  --
:  :  To unsubscribe, e-mail:   
:  : mailto:tomcat-user-unsubscribe;jakarta.apache.org
:  : For additional commands, e-mail: 
:  : mailto:tomcat-user-help;jakarta.apache.org
:  : 
:  : --
:  : To 
:  : unsubscribe, e-mail:   
:  : mailto:tomcat-user-: [EMAIL PROTECTED]
:  : For 
:  : additional commands, 
:  : e-mail: mailto:tomcat-user-help;jakarta.apache.org
:  : 
:  
:  --
:  To unsubscribe, e-mail:   
: mailto:tomcat-user-unsubscribe;jakarta.apache.org
: For additional commands, e-mail: 
: mailto:tomcat-user-help;jakarta.apache.org
: 
: --
: To 
: unsubscribe, e-mail:   
: mailto:tomcat-user-: [EMAIL PROTECTED]
: For 
: additional commands, 
: e-mail: mailto:tomcat-user-help;jakarta.apache.org
: 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: MBeans exception and mod_jk

2002-11-05 Thread Mark Diana
Sorry, workers.properties:

# Setup for Mac OS X
workers.tomcat_home=/Library/Tomcat/Home
workers.java_home=/System/Library/Frameworks/JavaVM.framework/Versions/ 
1.3.1/Home

ps=/
worker.list=ajp13


# Definition for Ajp13 worker
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

Yes, the Coyote/JK2 Connector is commented out, but the Coyote HTTP/1.1  
is not (I guess that's obvious...).

Mark

On Tuesday, November 5, 2002, at 02:25 PM, Turner, John wrote:


What're the contents of workers.properties?

Also, did you disble the CoyoteConnector on 8009 since you have  
AjpConnector
enabled?

John


-Original Message-
From: Mark Diana [mailto:mldiana;vcu.edu]
Sent: Tuesday, November 05, 2002 2:23 PM
To: Tomcat Users List
Subject: Re: MBeans exception and mod_jk


OK.

httpd.conf:

Include /Library/Tomcat/Home/conf/auto/mod_jk.conf

where /Home is a symbolic link to
/Library/Tomcat/jakarta-tomcat-4.1.12. The only other thing I changed
in httpd.conf was the Server Name, which I set as localhost.

Sample from auto-generated mod_jk.conf:

## Auto generated on Tue Nov 05 13:57:53 EST 2002##

IfModule !mod_jk.c
   LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
/IfModule

JkWorkersFile /Library/Tomcat/Home/conf/jk/workers.properties
JkLogFile /Library/Tomcat/Home/logs/mod_jk.log

JkLogLevel emerg

VirtualHost localhost
 ServerName localhost

  localhost:/examples 

 # Static files
 Alias /examples /Library/Tomcat/Home/webapps/examples

 Directory /Library/Tomcat/Home/webapps/examples
 Options Indexes FollowSymLinks
 DirectoryIndex index.html index.htm index.jsp
 /Directory


 # Deny direct access to WEB-INF and META-INF
 #
 Location /examples/WEB-INF/*
 AllowOverride None
 deny from all
 /Location

 Location /examples/META-INF/*
 AllowOverride None
 deny from all
 /Location

 JkMount /examples/jsp/security/protected/j_security_check  ajp13
 JkMount /examples/snoop  ajp13
 JkMount /examples/CompressionTest  ajp13
 JkMount /examples/servlet/*  ajp13
 JkMount /examples/*.jsp  ajp13
 JkMount /examples/servletToJsp  ajp13
 JkMount /examples/SendMailServlet  ajp13

server.xml:

Server port=8005 shutdown=SHUTDOWN debug=0

	!-- Use this to automatically generate mod_jk config --
	Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
		modJk=/usr/local/apache2/modules/mod_jk.so /

 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=1/

   Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true

 !-- This is also for auto-generated mod_jk config --
	Listener
className=org.apache.ajp.tomcat4.config.ApacheConfig append=true
		forwardAll=false
modJk=/usr/local/apache2/modules/mod_jk.so
		
workersConfig=/Library/Tomcat/Home/conf/jk/workers.properties /

Everything else in server.xml is unaltered from the default.

I'm trying to access http://localhost/examples and getting a
404 error.
http://localhost:8080/examples works great.

Thanks and take care,

Mark


On Tuesday, November 5, 2002, at 02:01 PM, Turner, John wrote:



Aside from the MBean stuff, please post relevant portion of

httpd.conf

(or
mod_jk.conf), workers.properties, and relevant portions of

server.xml,

such
as your Host container and your Connector containers.  Also

post the

URL you
are trying to access if it is something different than
http://localhost/examples.

John




--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:  
mailto:tomcat-user-help;jakarta.apache.org



--
Mark L. Diana, MBA
Instructor
LAN Manager  Webmaster
Virginia Commonwealth University
Department of Health Administration


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Standalone Tomcat : suppress directory listing in web.xml

2002-11-05 Thread Milt Epstein
On Tue, 5 Nov 2002, Marc Mendez wrote:

 - Original Message -
 From: Turner, John [EMAIL PROTECTED]
 
  Did you search the archives?  This topic has come up several times
  before.  Do some research!

 And... do read my posts !

 1. I browsed the archive
 2. The solutions does not work.

Well, post details of what you tried, and why they didn't work
(i.e. what happened/didn't happen).

Frankly, I see no reason that any of the previously discussed
solutions wouldn't work (assuming they're for the right version of
Tomcat, different versions have different ways of doing this).
Perhaps you are not applying them correctly.


 I want to change the web.xml of the app.

One of the previously discussed solutions does involve modifying the
webapp-/context-specific web.xml file.

If you're using different versions of Tomcat (e.g. 3.* and 4.*), there
may be no one general solution that works, because their mechanisms
for doing this differ.  Although putting some welcome-file, like
index.html, in there, should work for all the different versions.


 I usually use mailing list, so I know there is archive (I spend 1
 hour this morning to get solutions). Most of the time, people can
 change conf/web.xml or server.xml. I can't.

Why not?

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Help: compile error: javax.servlet does not exist

2002-11-05 Thread Ben Austin
I am trying to compile servlets using JCreator, but it isn't working. I keep 
getting told that javax.servlet does not exist. I've added servlet.jar to 
the classpath, but nothing has changed. What else should I do?

_
Unlimited Internet access -- and 2 months free!  Try MSN. 
http://resourcecenter.msn.com/access/plans/2monthsfree.asp


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



RE: MBeans exception and mod_jk

2002-11-05 Thread Turner, John

Hmm...this is a stumper.

The 404 you get...it's an Apache 404?  Not a Tomcat 404?  The Tomcat errors
have blue backgrounds on the pages.

Can you access any content at all at http://localhost, besides /examples?

John


 -Original Message-
 From: Mark Diana [mailto:mldiana;vcu.edu]
 Sent: Tuesday, November 05, 2002 2:34 PM
 To: Tomcat Users List
 Subject: Re: MBeans exception and mod_jk
 
 
 Sorry, workers.properties:
 
 # Setup for Mac OS X
 workers.tomcat_home=/Library/Tomcat/Home
 workers.java_home=/System/Library/Frameworks/JavaVM.framework/
 Versions/ 
 1.3.1/Home
 
 ps=/
 worker.list=ajp13
 
 
 # Definition for Ajp13 worker
 #
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 
 Yes, the Coyote/JK2 Connector is commented out, but the 
 Coyote HTTP/1.1  
 is not (I guess that's obvious...).
 
 Mark
 
 On Tuesday, November 5, 2002, at 02:25 PM, Turner, John wrote:
 
 
  What're the contents of workers.properties?
 
  Also, did you disble the CoyoteConnector on 8009 since you have  
  AjpConnector
  enabled?
 
  John
 
 
  -Original Message-
  From: Mark Diana [mailto:mldiana;vcu.edu]
  Sent: Tuesday, November 05, 2002 2:23 PM
  To: Tomcat Users List
  Subject: Re: MBeans exception and mod_jk
 
 
  OK.
 
  httpd.conf:
 
  Include /Library/Tomcat/Home/conf/auto/mod_jk.conf
 
  where /Home is a symbolic link to
  /Library/Tomcat/jakarta-tomcat-4.1.12. The only other 
 thing I changed
  in httpd.conf was the Server Name, which I set as localhost.
 
  Sample from auto-generated mod_jk.conf:
 
  ## Auto generated on Tue Nov 05 13:57:53 EST 2002##
 
  IfModule !mod_jk.c
 LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
  /IfModule
 
  JkWorkersFile /Library/Tomcat/Home/conf/jk/workers.properties
  JkLogFile /Library/Tomcat/Home/logs/mod_jk.log
 
  JkLogLevel emerg
 
  VirtualHost localhost
   ServerName localhost
 
    localhost:/examples 
 
   # Static files
   Alias /examples /Library/Tomcat/Home/webapps/examples
 
   Directory /Library/Tomcat/Home/webapps/examples
   Options Indexes FollowSymLinks
   DirectoryIndex index.html index.htm index.jsp
   /Directory
 
 
   # Deny direct access to WEB-INF and META-INF
   #
   Location /examples/WEB-INF/*
   AllowOverride None
   deny from all
   /Location
 
   Location /examples/META-INF/*
   AllowOverride None
   deny from all
   /Location
 
   JkMount 
 /examples/jsp/security/protected/j_security_check  ajp13
   JkMount /examples/snoop  ajp13
   JkMount /examples/CompressionTest  ajp13
   JkMount /examples/servlet/*  ajp13
   JkMount /examples/*.jsp  ajp13
   JkMount /examples/servletToJsp  ajp13
   JkMount /examples/SendMailServlet  ajp13
 
  server.xml:
 
  Server port=8005 shutdown=SHUTDOWN debug=0
 
 !-- Use this to automatically generate mod_jk config --
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=/usr/local/apache2/modules/mod_jk.so /
 
   Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  port=8009 minProcessors=5 maxProcessors=75
  acceptCount=10 debug=1/
 
 Host name=localhost debug=0 appBase=webapps
  unpackWARs=true autoDeploy=true
 
   !-- This is also for auto-generated mod_jk config --
 Listener
  className=org.apache.ajp.tomcat4.config.ApacheConfig 
 append=true
 forwardAll=false
  modJk=/usr/local/apache2/modules/mod_jk.so
 
  workersConfig=/Library/Tomcat/Home/conf/jk/workers.properties /
 
  Everything else in server.xml is unaltered from the default.
 
  I'm trying to access http://localhost/examples and getting a
  404 error.
  http://localhost:8080/examples works great.
 
  Thanks and take care,
 
  Mark
 
 
  On Tuesday, November 5, 2002, at 02:01 PM, Turner, John wrote:
 
 
  Aside from the MBean stuff, please post relevant portion of
  httpd.conf
  (or
  mod_jk.conf), workers.properties, and relevant portions of
  server.xml,
  such
  as your Host container and your Connector containers.  Also
  post the
  URL you
  are trying to access if it is something different than
  http://localhost/examples.
 
  John
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:  
  mailto:tomcat-user-help;jakarta.apache.org
 
 
 
 --
 Mark L. Diana, MBA
 Instructor
 LAN Manager  Webmaster
 Virginia Commonwealth University
 Department of Health Administration
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Standalone Tomcat : suppress directory listing in web.xml

2002-11-05 Thread Milt Epstein
On Tue, 5 Nov 2002, Turner, John wrote:

 Stick a file called index.html in the directory where you want
 listings suppressed.

 Write a Filter to intercept all requests and look for a filename in
 the request...open-ended requests like / or /myapp/ would be
 intercepted and redirected.

 Make sure you have a welcome file list setup in your web.xml.

Also, the same change that was previously suggested for the
conf/web.xml file can be used in individual webapp/context web.xml
files.  (You may need to copy all of the stuff for the default
servlet.)


  -Original Message-
  From: Marc Mendez [mailto:mendez;lug.com]
  Sent: Tuesday, November 05, 2002 11:38 AM
  To: Tomcat Users List
  Subject: Re: Standalone Tomcat : suppress directory listing in web.xml
 
 
 
  - Original Message -
  From: Turner, John [EMAIL PROTECTED]
  
   Did you search the archives?  This topic has come up
  several times before.
   Do some research!
 
  And... do read my posts !
 
  1. I browsed the archive
  2. The solutions does not work.
 
  I want to change the web.xml of the app.
 
  I usually use mailing list, so I know there is archive (I
  spend 1 hour this
  morning to get solutions). Most of the time, people can
  change conf/web.xml
  or server.xml. I can't.
 
  But thanks to remind me of  how to use ML :-)
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
 

 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: compiling mod_jk under AIX

2002-11-05 Thread Maureen Barger
Thanks. I have googled and see lots of folks with the error but none with 
the solution. Same with the archives.

I am using apache 1.3.14 but my systems group should be pushing 1.3.26 out 
later today or tomorrow. So John Turner's links don't help -- I tried that 
too ;-)


Now I have discovered that there are a bunch of configure scripts available 
at 
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/src/ 
and am trying to work with those .. but of course I am still running into 
some problems (some of which are probably my own doing as I am new to this 
I am afraid).

I am running
./configure --with-apxs=/path-to/apache_1.3.14/bin/apxs 
--with-java-home=path-to/jdk_130

which goes ok.

Then when I issue make, I receive
Making all in common
/bin:/usr/common/bin:/usr/common/etc:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/var/ifor 
--mode=compile gcc -I/web2_sys/apache_1.3.14/include -g -O2 -DAIX=43 
-DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qnogenpcomp 
-qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_HSREGEX -DEAPI -D_ALL_SOURCE 
-D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -q32 -D_LARGE_FILES 
-qlonglong -g -O2  -I /include -I /include/ -c ./jk_ajp12_worker.c
/usr/bin/sh: 
/bin:/usr/common/bin:/usr/common/etc:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/var/ifor: 
not found.
make: 1254-004 The error code from the last command is 127.


Stop.
make: 1254-004 The error code from the last command is 1.


Stop.


Near as I can figure, my /sbin directory does not contain what the script 
is looking for (in this case, /sbin/var/ifor). In fact the sbin directory 
contains only 3 files and one other dir named helpers. So I am not sure if 
I can comment that out or go back to the systems group and ask them or what.


At 01:26 PM 11/5/2002 -0600, Milt Epstein wrote:
If you really want to build it yourself, I'd take the above error
message and go search comp.unix.aix at groups.google.com.  This is
really an AIX shared library question, not an Apache module question.
I've seen this error before, and the solution is to use certain
linker/loader options (I don't remember exactly which ones, but you
can find them in comp.unix.aix), and/or perhaps find an apxs that
works with AIX.  (If you're using an old Apache, upgrading might help,
because I'd think newer versions would have an apxs that has been
fixed for AIX.)

The other alternative is to find an already built mod_jk, matched
to your version of AIX and Apache.  John Turner has collected a bunch
of built mod_jk's (and corresponding howto's) at his web site,
including some for AIX (I know, because I contributed one :-).  The
web site is something like:

http://www.johnturner.com/

Or search the list archives.



Maureen Barger, CIT/ID, Cornell University
Ithaca, NY 14850
[EMAIL PROTECTED]
http://mo.cit.cornell.edu/

Experience is something you don't get until just after you need it.


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: JK2 Solaris 8 binary available

2002-11-05 Thread Brzezinski, Paul J





: -Original Message-
: From: Turner, John [mailto:JTurner;AAS.com] 
: Sent: Tuesday, November 05, 2002 2:20 PM
: To: '[EMAIL PROTECTED]'
: Subject: JK2 Solaris 8 binary available
: 
: 
: 
: I've posted a JK2 binary for Solaris 8 (SPARC).
: 
: http://www.johnturner.com/howto
: 
: Built against Apache 2.0.43 using latest 2.0.1 source.
: 
: NOTE: I had to modify jk_channel_socket.c to get mod_jk2.so 
: to build and have not been able to test it yet, so please 
: understand that you are responsible for testing, etc. This 
: connector file may or may not be suitable for your purposes. 
: Use at your own risk!
: 
: Thanks to Paul Brzezinski for the tip on fixing a problem 
: with libapr.so.

I cannot take credit for this -- there were some previous posts to either
TOMCAT users or TOMCAT dev list about the apr shared library have a
new/different name since Apache 2.0.41+ was released...

: - John
: 
: 
: --
: To unsubscribe, e-mail:   
: mailto:tomcat-user-: [EMAIL PROTECTED]
: For 
: additional commands, 
: e-mail: mailto:tomcat-user-help;jakarta.apache.org
: 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: MBeans exception and mod_jk

2002-11-05 Thread Jeff Tulley
I get the MBean exception but still have Apache / Tomcat connectivity via the 
AJP13Connector.

It is probably not related.  You might try using the Coyote Jk Handler, since it is 
compatible with mod_jk (we had not realized that the two would work together, and that 
was the only reason to move on).  I mention this option because maybe you'd have more 
luck with the other connector talking ot mod_jk, or just a different set of problems.  
:)

Oh, if you do go this route, get the absolute latest CVS code, since Costin recently 
made some crucial changes that make the Coyote JK Handler use the port values set in 
server.xml.

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., the leading provider of Net business solutions
http://www.novell.com

 [EMAIL PROTECTED] 11/5/02 12:00:13 PM 
Folks,

OK, I hate to do this, but I've searched the archives and monitored  
this list for a few weeks now, and I still can't get this to work. I  
want to set up Apache and Tomcat on my G4 Mac with OSX 10.2.1 for  
development (I want to eventually have the same set up on my production  
RedHat machine, which is currently running Apache1.3.12/Tomcat3.3.1  
with mod_jk). Anyway, I've followed John Turner's Howto for the most  
part. I have installed Apache 2.0.43, Tomcat 4.1.12, and mod_jk. I have  
modified server.xml, workers.properties, and httpd.conf per John  
Turner's Howto and the docs, and they just won't talk to each other.  
And, when I start Tomcat, I get this in catalina.out:

[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with Ajp13Connector
at  
org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:225)
at  
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLi 
fecycleListener.java:369)
at  
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLi 
fecycleListener.java:777)
at  
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLi 
fecycleListener.java:751)
at  
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLi 
fecycleListener.java:339)
at  
org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Server 
LifecycleListener.java:206)
at  
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu 
pport.java:166)
at  
org.apache.catalina.core.StandardServer.start(StandardServer.java:2182)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Starting service Tomcat-Standalone
Apache Tomcat/4.1.12
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080

I don't know if that's a related problem or not, but I also searched  
the archives on this and couldn't find the problem. I even tried  
commenting out the JMX MBeans portion of server.xml, thinking maybe it  
wasn't compatible with ajp13, but that didn't help (it did get rid of  
the excepyion).

Apache works fine on port 80 and Tomact works fine on port 8080. Let me  
know if you want me to post more of the config files, and feel free to  
respond privately or to the list.

Thanks!

Mark

--
Mark L. Diana, MBA
Instructor
LAN Manager  Webmaster
Virginia Commonwealth University
Department of Health Administration


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Running Tomcat via JRockit as a service

2002-11-05 Thread Scott Moore
I'm running Tomcat 3.3.1 as a service using jk_nt_service.exe.

The problem I've had in the past has been when you log out of the computer,
the JVM gets killed.  Starting with Sun's JVM 1.3.1_02, if I use the
parameter -Xrs on the command line for JVM startup in wrapper.properties,
this issue is fixed.

Now, I want to switch to JRockit 7.0 (1.3.1) for performance reasons.
Unfortunately, when running as a service, it also dies when I log out.  It
does start up as a service when the computer boots.  When I log in, it stays
running.  But when I log out, it dies.  Does anyone know how to fix this?

Thanks,
Scott

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Installing and using manager app in 4.1.12

2002-11-05 Thread Turner, John

This is my first foray into the world of the Tomcat manager app.  Any help
is appreciated.

I've been using this guide:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html

I've modified conf/tomcat-users.xml: I added a new role named manager, as
I wasn't clear on whether the existing role of tomcat was equal to
manager or not.  I also added a new user named admin like so:

?xml version='1.0' encoding='utf-8'?
tomcat-users
  role rolename=tomcat/
  role rolename=role1/
  role rolename=manager/
  user username=tomcat password=tomcat roles=tomcat/
  user username=role1 password=tomcat roles=role1/
  user username=both password=tomcat roles=tomcat,role1/
  user username=admin password=myPassWord roles=manager/
/tomcat-users

When I access http://some.host.name:8080/manager, I get prompted with a
standard auth request pop-up.  I type in the username and password of the
admin user.

The result is a blank white page and an error message that says FAIL -
Unknown command /.

According to the guide, I can deploy the manager app simply by having
manager.xml in the appBase for my Host.

The Host appBase is webapps which is the default.  There is a manager.xml
file in CATALINA_HOME/webapps, it's the one that came with the install
package.

Can anyone tell me what I am missing?  Do I have tomcat-users.xml screwed
up?  In the default tomcat-users.xml, is the tomcat role = manager role
as mentioned in the docs?

Thanks in advance.

- John

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Packages at Tomcat 4.0.6 vs 5.0

2002-11-05 Thread Ronaldo Juliatto
Fellows
 
Recently I installed Tomcat 5.0, and noticed that I could not run anymore
JSP whose classes did not use packages. A simple Hello, world program
needed to be implemented in a package to be understood by the Java compiler.
What could be wrong?
 
Thanks in advance
 
Ronaldo Juliatto



Re: MBeans exception and mod_jk

2002-11-05 Thread Mark Diana
Yes, it's an Apache 404, and I can access all the local documentation 
for Apache at http://localhost (I haven't put anything else in there 
yet).

Would it possibly have anything to do with the location of Tomcat? I 
did make myself the owner of all of Tomcat's files, but I installed 
them in /Library/Tomcat following a Howto from either the O-Reilly or 
Apple Developer site (I can't remember which). Maybe I should install 
it my home or /usr/local?

Take care,

Mark


On Tuesday, November 5, 2002, at 02:33 PM, Turner, John wrote:


Hmm...this is a stumper.

The 404 you get...it's an Apache 404?  Not a Tomcat 404?  The Tomcat 
errors
have blue backgrounds on the pages.

Can you access any content at all at http://localhost, besides 
/examples?

John


-Original Message-
From: Mark Diana [mailto:mldiana;vcu.edu]
Sent: Tuesday, November 05, 2002 2:34 PM
To: Tomcat Users List
Subject: Re: MBeans exception and mod_jk


Sorry, workers.properties:

# Setup for Mac OS X
workers.tomcat_home=/Library/Tomcat/Home
workers.java_home=/System/Library/Frameworks/JavaVM.framework/
Versions/
1.3.1/Home

ps=/
worker.list=ajp13


# Definition for Ajp13 worker
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

Yes, the Coyote/JK2 Connector is commented out, but the
Coyote HTTP/1.1
is not (I guess that's obvious...).

Mark

On Tuesday, November 5, 2002, at 02:25 PM, Turner, John wrote:



What're the contents of workers.properties?

Also, did you disble the CoyoteConnector on 8009 since you have
AjpConnector
enabled?

John



-Original Message-
From: Mark Diana [mailto:mldiana;vcu.edu]
Sent: Tuesday, November 05, 2002 2:23 PM
To: Tomcat Users List
Subject: Re: MBeans exception and mod_jk


OK.

httpd.conf:

Include /Library/Tomcat/Home/conf/auto/mod_jk.conf

where /Home is a symbolic link to
/Library/Tomcat/jakarta-tomcat-4.1.12. The only other

thing I changed

in httpd.conf was the Server Name, which I set as localhost.

Sample from auto-generated mod_jk.conf:

## Auto generated on Tue Nov 05 13:57:53 EST 2002##

IfModule !mod_jk.c
   LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
/IfModule

JkWorkersFile /Library/Tomcat/Home/conf/jk/workers.properties
JkLogFile /Library/Tomcat/Home/logs/mod_jk.log

JkLogLevel emerg

VirtualHost localhost
 ServerName localhost

  localhost:/examples 

 # Static files
 Alias /examples /Library/Tomcat/Home/webapps/examples

 Directory /Library/Tomcat/Home/webapps/examples
 Options Indexes FollowSymLinks
 DirectoryIndex index.html index.htm index.jsp
 /Directory


 # Deny direct access to WEB-INF and META-INF
 #
 Location /examples/WEB-INF/*
 AllowOverride None
 deny from all
 /Location

 Location /examples/META-INF/*
 AllowOverride None
 deny from all
 /Location

 JkMount

/examples/jsp/security/protected/j_security_check  ajp13

 JkMount /examples/snoop  ajp13
 JkMount /examples/CompressionTest  ajp13
 JkMount /examples/servlet/*  ajp13
 JkMount /examples/*.jsp  ajp13
 JkMount /examples/servletToJsp  ajp13
 JkMount /examples/SendMailServlet  ajp13

server.xml:

Server port=8005 shutdown=SHUTDOWN debug=0

	!-- Use this to automatically generate mod_jk config --
	Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
		modJk=/usr/local/apache2/modules/mod_jk.so /

 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=1/

   Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true

 !-- This is also for auto-generated mod_jk config --
	Listener
className=org.apache.ajp.tomcat4.config.ApacheConfig

append=true

		forwardAll=false
modJk=/usr/local/apache2/modules/mod_jk.so
		
workersConfig=/Library/Tomcat/Home/conf/jk/workers.properties /

Everything else in server.xml is unaltered from the default.

I'm trying to access http://localhost/examples and getting a
404 error.
http://localhost:8080/examples works great.

Thanks and take care,

Mark


On Tuesday, November 5, 2002, at 02:01 PM, Turner, John wrote:



Aside from the MBean stuff, please post relevant portion of

httpd.conf

(or
mod_jk.conf), workers.properties, and relevant portions of

server.xml,

such
as your Host container and your Connector containers.  Also

post the

URL you
are trying to access if it is something different than
http://localhost/examples.

John




--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org




--
Mark L. Diana, MBA
Instructor
LAN Manager  Webmaster
Virginia Commonwealth University
Department of Health Administration


--
To unsubscribe, e-mail:

mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, 

RE: MBeans exception and mod_jk

2002-11-05 Thread Turner, John

Moving Tomcat might help, but if you are getting an apache 404, that means
that Apache doesn't know what to do with http://localhost/examples, even
though your httpd.conf clearly has a virtual host for localhost and the
requisite JkMount statements.

The next thing I would try is just taking mod_jk.conf and including it into
httpd.conf globally, without using the Include directive.  For some reason,
its possible Apache is choking on a VirtualHost named localhost but I
don't see why that would be the case.

What do the Apache error or access logs say when you make a request to
/examples?

John


 -Original Message-
 From: Mark Diana [mailto:mldiana;vcu.edu]
 Sent: Tuesday, November 05, 2002 3:06 PM
 To: Tomcat Users List
 Subject: Re: MBeans exception and mod_jk
 
 
 Yes, it's an Apache 404, and I can access all the local documentation 
 for Apache at http://localhost (I haven't put anything else in there 
 yet).
 
 Would it possibly have anything to do with the location of Tomcat? I 
 did make myself the owner of all of Tomcat's files, but I installed 
 them in /Library/Tomcat following a Howto from either the 
 O-Reilly or 
 Apple Developer site (I can't remember which). Maybe I should install 
 it my home or /usr/local?
 
 Take care,
 
 Mark
 
 
 On Tuesday, November 5, 2002, at 02:33 PM, Turner, John wrote:
 
 
  Hmm...this is a stumper.
 
  The 404 you get...it's an Apache 404?  Not a Tomcat 404?  
 The Tomcat 
  errors
  have blue backgrounds on the pages.
 
  Can you access any content at all at http://localhost, besides 
  /examples?
 
  John
 
 
  -Original Message-
  From: Mark Diana [mailto:mldiana;vcu.edu]
  Sent: Tuesday, November 05, 2002 2:34 PM
  To: Tomcat Users List
  Subject: Re: MBeans exception and mod_jk
 
 
  Sorry, workers.properties:
 
  # Setup for Mac OS X
  workers.tomcat_home=/Library/Tomcat/Home
  workers.java_home=/System/Library/Frameworks/JavaVM.framework/
  Versions/
  1.3.1/Home
 
  ps=/
  worker.list=ajp13
 
 
  # Definition for Ajp13 worker
  #
  worker.ajp13.port=8009
  worker.ajp13.host=localhost
  worker.ajp13.type=ajp13
 
  Yes, the Coyote/JK2 Connector is commented out, but the
  Coyote HTTP/1.1
  is not (I guess that's obvious...).
 
  Mark
 
  On Tuesday, November 5, 2002, at 02:25 PM, Turner, John wrote:
 
 
  What're the contents of workers.properties?
 
  Also, did you disble the CoyoteConnector on 8009 since you have
  AjpConnector
  enabled?
 
  John
 
 
  -Original Message-
  From: Mark Diana [mailto:mldiana;vcu.edu]
  Sent: Tuesday, November 05, 2002 2:23 PM
  To: Tomcat Users List
  Subject: Re: MBeans exception and mod_jk
 
 
  OK.
 
  httpd.conf:
 
  Include /Library/Tomcat/Home/conf/auto/mod_jk.conf
 
  where /Home is a symbolic link to
  /Library/Tomcat/jakarta-tomcat-4.1.12. The only other
  thing I changed
  in httpd.conf was the Server Name, which I set as localhost.
 
  Sample from auto-generated mod_jk.conf:
 
  ## Auto generated on Tue Nov 05 13:57:53 EST 
 2002##
 
  IfModule !mod_jk.c
 LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
  /IfModule
 
  JkWorkersFile /Library/Tomcat/Home/conf/jk/workers.properties
  JkLogFile /Library/Tomcat/Home/logs/mod_jk.log
 
  JkLogLevel emerg
 
  VirtualHost localhost
   ServerName localhost
 
    localhost:/examples 
 
 
   # Static files
   Alias /examples /Library/Tomcat/Home/webapps/examples
 
   Directory /Library/Tomcat/Home/webapps/examples
   Options Indexes FollowSymLinks
   DirectoryIndex index.html index.htm index.jsp
   /Directory
 
 
   # Deny direct access to WEB-INF and META-INF
   #
   Location /examples/WEB-INF/*
   AllowOverride None
   deny from all
   /Location
 
   Location /examples/META-INF/*
   AllowOverride None
   deny from all
   /Location
 
   JkMount
  /examples/jsp/security/protected/j_security_check  ajp13
   JkMount /examples/snoop  ajp13
   JkMount /examples/CompressionTest  ajp13
   JkMount /examples/servlet/*  ajp13
   JkMount /examples/*.jsp  ajp13
   JkMount /examples/servletToJsp  ajp13
   JkMount /examples/SendMailServlet  ajp13
 
  server.xml:
 
  Server port=8005 shutdown=SHUTDOWN debug=0
 
   !-- Use this to automatically generate mod_jk config --
   Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
   modJk=/usr/local/apache2/modules/mod_jk.so /
 
   Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  port=8009 minProcessors=5 maxProcessors=75
  acceptCount=10 debug=1/
 
 Host name=localhost debug=0 appBase=webapps
  unpackWARs=true autoDeploy=true
 
   !-- This is also for auto-generated mod_jk config --
   Listener
  className=org.apache.ajp.tomcat4.config.ApacheConfig
  append=true
   forwardAll=false
  modJk=/usr/local/apache2/modules/mod_jk.so
 

Re: MBeans exception and mod_jk

2002-11-05 Thread Mark Diana
Another thought:

Could it be mod_jk.so itself? I built it on my machine using a script I  
got for building it for Apache 1.3 which I modified to use APXS from  
Apache 2.0.43. I did that because it appears that the binary from the  
jakarta web site is for Apache2.0.42 only (but that is not at all  
clear--it is named mod_jk-2.0.42, but the notes are conflicting about  
whether it's for 2.0.42 or 2.0.43 or both--see:  
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/ 
v1.2.0/bin/macosx/).

I didn't get any errors when building it, so I assumed it was OK.

Take care,

Mark

On Tuesday, November 5, 2002, at 02:33 PM, Turner, John wrote:


Hmm...this is a stumper.

The 404 you get...it's an Apache 404?  Not a Tomcat 404?  The Tomcat  
errors
have blue backgrounds on the pages.

Can you access any content at all at http://localhost, besides  
/examples?

John


-Original Message-
From: Mark Diana [mailto:mldiana;vcu.edu]
Sent: Tuesday, November 05, 2002 2:34 PM
To: Tomcat Users List
Subject: Re: MBeans exception and mod_jk


Sorry, workers.properties:

# Setup for Mac OS X
workers.tomcat_home=/Library/Tomcat/Home
workers.java_home=/System/Library/Frameworks/JavaVM.framework/
Versions/
1.3.1/Home

ps=/
worker.list=ajp13


# Definition for Ajp13 worker
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

Yes, the Coyote/JK2 Connector is commented out, but the
Coyote HTTP/1.1
is not (I guess that's obvious...).

Mark

On Tuesday, November 5, 2002, at 02:25 PM, Turner, John wrote:



What're the contents of workers.properties?

Also, did you disble the CoyoteConnector on 8009 since you have
AjpConnector
enabled?

John



-Original Message-
From: Mark Diana [mailto:mldiana;vcu.edu]
Sent: Tuesday, November 05, 2002 2:23 PM
To: Tomcat Users List
Subject: Re: MBeans exception and mod_jk


OK.

httpd.conf:

Include /Library/Tomcat/Home/conf/auto/mod_jk.conf

where /Home is a symbolic link to
/Library/Tomcat/jakarta-tomcat-4.1.12. The only other

thing I changed

in httpd.conf was the Server Name, which I set as localhost.

Sample from auto-generated mod_jk.conf:

## Auto generated on Tue Nov 05 13:57:53 EST 2002##

IfModule !mod_jk.c
   LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
/IfModule

JkWorkersFile /Library/Tomcat/Home/conf/jk/workers.properties
JkLogFile /Library/Tomcat/Home/logs/mod_jk.log

JkLogLevel emerg

VirtualHost localhost
 ServerName localhost

  localhost:/examples 

 # Static files
 Alias /examples /Library/Tomcat/Home/webapps/examples

 Directory /Library/Tomcat/Home/webapps/examples
 Options Indexes FollowSymLinks
 DirectoryIndex index.html index.htm index.jsp
 /Directory


 # Deny direct access to WEB-INF and META-INF
 #
 Location /examples/WEB-INF/*
 AllowOverride None
 deny from all
 /Location

 Location /examples/META-INF/*
 AllowOverride None
 deny from all
 /Location

 JkMount

/examples/jsp/security/protected/j_security_check  ajp13

 JkMount /examples/snoop  ajp13
 JkMount /examples/CompressionTest  ajp13
 JkMount /examples/servlet/*  ajp13
 JkMount /examples/*.jsp  ajp13
 JkMount /examples/servletToJsp  ajp13
 JkMount /examples/SendMailServlet  ajp13

server.xml:

Server port=8005 shutdown=SHUTDOWN debug=0

	!-- Use this to automatically generate mod_jk config --
	Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
		modJk=/usr/local/apache2/modules/mod_jk.so /

 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=1/

   Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true

 !-- This is also for auto-generated mod_jk config --
	Listener
className=org.apache.ajp.tomcat4.config.ApacheConfig

append=true

		forwardAll=false
modJk=/usr/local/apache2/modules/mod_jk.so
		
workersConfig=/Library/Tomcat/Home/conf/jk/workers.properties /

Everything else in server.xml is unaltered from the default.

I'm trying to access http://localhost/examples and getting a
404 error.
http://localhost:8080/examples works great.

Thanks and take care,

Mark


On Tuesday, November 5, 2002, at 02:01 PM, Turner, John wrote:



Aside from the MBean stuff, please post relevant portion of

httpd.conf

(or
mod_jk.conf), workers.properties, and relevant portions of

server.xml,

such
as your Host container and your Connector containers.  Also

post the

URL you
are trying to access if it is something different than
http://localhost/examples.

John




--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org




--
Mark L. Diana, MBA
Instructor
LAN Manager  Webmaster
Virginia Commonwealth University
Department 

Error with new install

2002-11-05 Thread Ronald Aronica
I just installed Tomcat 4.1.12 with JDK 1.4.1 and am running into a 
problem when trying to use the manager. I receive a server error 500 
with the following:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120)
at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:324)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
   etc.
Any ideas as to the problem, and its solution?



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



Problem running the examples..

2002-11-05 Thread Pavan Kumar Anumula
hi,

 I have successfully installed the jakarta-tomcat-4.1.12 on Unix.

 I am able to see the index.jsp (welcome page of tomcat 4.1.12).
 
 when i try to run the example servlets i get HTTP 404 exception.
 when i try to run the jsp's i get 500 exception status..something not
found.

 i would appreciate if anyone can tell me whats the problem?

 i am using j2se ... this might be the problem or what? 
  
thank you.

Pavan Kumar Anumula
Teched Teaching Assistant,
Department of Computer Science,
Old Dominion University.

Student Intern, 
Jefferson Lab, Newport News.

home: (757) 4400256
off : (757) 6835064



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Installing and using manager app in 4.1.12

2002-11-05 Thread Aryeh Katz
snip
 
 The result is a blank white page and an error message that says FAIL
 - Unknown command /.
 
You're not missing anything, you just didn't issue a command. try doing a 
/list and see what happens :-).
Aryeh

---
Aryeh Katz
VASCO   
www.vasco.com   


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




  1   2   >