Re: Best practices question

2002-10-18 Thread Nikola Milutinovic
Qmail List wrote:

I have been wondering about this as well. Apache screams and hollers
BIG_SECURITY_HOLE if you compile it with the flags allowing it to run as
root.

That said, I love the fact that Tomcat runs as root. It makes it easy for
your webapp to do things admin applications, servers, and networks from a
web interface.


Would you really want to do this? Then any webapp developer could do the same. 
Not to mention that should some bug in Tomcat/Java with buffer overflow appear, 
you're looking at a hostile takeover situation. Not as likely as other 
servers, but generally speaking, it's there.

But at what cost? Of course it would be best to run Tomcat as nobody or
tomcat user or whoever, but if your app needs some root permission at the OS
level, is it OK to run as root?


There is SUDO...


I'd imagine the root OK concept must be due to the underlying Java, but
can't really see why or how. Anyone know?


If Apache doesn't need (and doesn't like) being run as root, neither should 
Tomcat. If there are privileged operations, then access to them must be 
authenticated. And if some specific user, with a user/pass, can access a 
privileged operation, so can Tomcat.

You should think not in terms of how to hack this in, but in terms of 
security/service framework. There are some services that are privileged and 
access to them has certain rules which have to be implemented, not circumvented.

Nix.


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



Re: 4.1.12 won't stop

2002-10-18 Thread Jacob Kjome
Hello ex2),

Ahhh if you are running the NT service, you need to use the
services applet to start/stop Tomcat or you need to use the command
line net start [servicename] or net stop [servicename].  Using the
batch files will not shut down Tomcat unless you started tomcat via a
batch file.

Jake

Thursday, October 17, 2002, 12:46:46 PM, you wrote:

KJHNe hi all,

KJHNe i'm running 4.1.12 on win2k with jdk1.3.1_05.  i also opted to include the
KJHNe NT service during  installation.  

KJHNe i can't get tomcat to stop running using either the shutdown.bat or the
KJHNe start menu icon.  has anyone experienced this?  

KJHNe i'll run the shutdown.bat, but tomcat.exe will still be running in my
KJHNe processes.  trying to end the process in the task manager results in an
KJHNe access denied message.  

KJHNe to verify that it is still running, i opened a new browser and tried a the
KJHNe default webapp address, which worked.

KJHNe anyone know what the problem is here?

KJHNe ~jeff

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



-- 
Best regards,
 Jacobmailto:hoju;visi.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: CLASSPATH problems on 3.3.1

2002-10-18 Thread Michael Finney
Hey, that is good information!   Thank you.

I ran them along without quotes for now and all seems
to be working.  However, I like the other option as
well.

Michael


--- Bill Barker [EMAIL PROTECTED] wrote:
 Actually, I'm mostly a *nix person.  I learned about
 wrapper.jvm.options
 from reading the comments in the default
 wrappers.properties file.
 
 To save yourself headaches with quotes,
 wrapper.jvm.options can be
 repeated (and jk_nt_service will concatenate them). 
 So for your example:

wrapper.jvm.options=-Dorg.apache.tomcat.apps.classpath=C:\SourceW\VSS\src;C:

\SourceW\ja\src;C:\SourceW\VSS\lib\xerces.jar;C:\SourceW\lib\xml4j.jar
 wrapper.jvm.options=-Xrs
 
 Otherwise, everything that Larry said is correct.
 
 Michael Finney [EMAIL PROTECTED] wrote in
 message

news:20021015152430.44653.qmail;web40412.mail.yahoo.com...
  So something like this for the
 wrapper.jvm.options:
 
 

wrapper.jvm.options=-Dorg.apache.tomcat.apps.classpath=C:\SourceW\VSS\src;C:

\SourceW\ja\src;C:\SourceW\VSS\lib\xerces.jar;C:\SourceW\lib\xml4j.jar
  -Xrs
 
  right?   Can a person use quotes?
 
  Did you learn about wrapper.jvm.options from the
  RELEASE-NOTES-3.3.1.txt and what you could pass in
  from the source code or is wrapper.jvm.options
  documented in detail somewhere?  google did not
 reveal
  anything more.  (As they say, I appreciate the
 fish.
  However, I want to learn how to fish too.)
 
  Thanks,
  Michael
 
  --- Bill Barker [EMAIL PROTECTED] wrote:
   Out of the box, the NT service also ignores your
   CLASSPATH.  You are always
   free to add wrapper.classpath properties to
 your
   wrapper.properties file
   to include additional locations in your
 classpath.
   Depending on your
   application, this may or may not result in
   ClassLoader problems.
  
   The other method (the one I prefer) is to set:
  
 

wrapper.jvm.options=-Dorg.apache.tomcat.apps.classpath=your
   classpath
  
   This has the same effect as dumping them in
   $TOMCAT_HOME\lib\apps.
  
   Michael Finney [EMAIL PROTECTED] wrote in
   message
  
 

news:20021014231643.27508.qmail;web40409.mail.yahoo.com...
I will look.
   
The NT service form of starting Tomcat does
 not
   use
start up scripts.  Right?  I want to make sure
 I
understand what we are saying here about the
   scripts.
   
--- Larry Isaacs [EMAIL PROTECTED] wrote:
 Like Tomcat4, Tomcat 3.3's startup scripts
   ignore
 your CLASSPATH.  Tomcat 3.2.x's use of the
   CLASSPATH
 was one of the top sources of problems.

 For important differences upgrading from
 Tomcat
 3.2.x
 to Tomcat 3.3.x, see:


   
  
 

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/readme

 For how to configure classes in Tomcat
 3.3.x,
   see:


   
  
 

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#configuring_
   classes

 HTH,
 Larry

  -Original Message-
  From: Michael Finney
   [mailto:lovefinney;yahoo.com]

  Sent: Monday, October 14, 2002 5:19 PM
  To: Tomcat Users List
  Subject: CLASSPATH problems on 3.3.1
 
 
  3.3.1
  IIS 5.0 and Tomcat 3.3.1 redirections
  Running Jakarta as a Service on Windows
 2000.
 
  Has anyone else had problems with
 CLASSPATH
 getting
  picked up in 3.3.1?
 
  In a previous deployment, a CLASSPATH was
 set
   to
  d:\whatever\classes (ok actually it was
 not
 classes it
  was src, but the .class files are in src)
 
  CLASSPATH was also set to specific jars.
 
  It seems like in order to get classes and
 jars
 picked
  up, I have had to dump the classes into
   tomcat
  home\lib\apps   That seems so wrong.   ;)
 
  I am trying to upgrade from 3.2.x to 3.3.1
 and
   I
 would
  not have expected such a rough CLASSPATH
 ride.
 
  (Yes, I know about tomcat
   home\webapps\theweb
  app\WEB-INF\*stuff  I am trying to keep
 the
 changes
  to a minimum for this release.)
 
  Thanks.
  Michael
 
 
  =
  Michael Finney
  Sun Certified Programmer for the Java 2
   Platform
  Sun Certified Developer for the Java 2
   Platform
  Sun Certified Web Component Developer for
 J2EE
 Platform
  Cofounder of PPJDG
  Cofounder of cosAgile - Colorado Springs
 XP
   Users
 Group
  If replying to this email address fails,
 try
 [EMAIL PROTECTED]
 
 
  
 __
  Do you Yahoo!?
  Faith Hill - Exclusive Performances,
 Videos 
   More
  http://faith.yahoo.com
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user-
 [EMAIL PROTECTED]
  For
  additional commands,
  e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 

 --
 
=== message truncated ===


=
Michael Finney
Sun Certified Programmer for the Java 2 Platform
Sun Certified Developer for the 

AW: Wich version of Apache works with Tomcat 4.0.5, 4.06, and 4.1.2

2002-10-18 Thread Ralph Einfeldt
From security points you should at least upgrade to 
the latest 1.3 release of apache. (But that has nothing
to do with tomcat, there have been several security
fixes between 1.3.20 and the current version.

I wouldn't change from 1.3 to 2.0 if you feel ok with 
the 1.3 family. (I'm quite conservative at this point,
other people may have an other opinion.)

 -Ursprüngliche Nachricht-
 Von: Carlos [mailto:Carlos;pbsinet.com]
 Gesendet: Donnerstag, 17. Oktober 2002 17:05
 An: Tomcat-User (E-mail)
 Betreff: Wich version of Apache works with Tomcat 4.0.5, 
 4.06, and 4.1.2
 
 We are using IBM jdk1.3 in a Linux RedHat server, Apache 
 1.3.20-16, and Tomcat 4.0.4 and 4.0.4.  
 Everything works fine. Since we are planning on upgrading 
 the version of Tomcat, should we also upgrade the version of
 Apache?
 

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




[Configuring] Tomcat 4.1.12 apache 1.3.26 jk2

2002-10-18 Thread François Vallet
Hello Guys

Do you know if it we can associate apache 1.3.26 -JK2- Tomcat 4.1.12

If YES
Do you have a good url where there is a pretty good documentation to
install them ?

Else
What is wrong ! 

Thanks in advance
François


 -Original Message-
 From: David Scott [mailto:dascott;mindspring.com]
 Sent: vendredi 18 octobre 2002 05:00
 To: Tomcat Users List
 Subject: Configuring log files in Tomcat 4.1
 
 I get an annoying SSL warning in catalina.out on every request if the
 client is not authenticated by certificate, which in our application
 means every request.  I would love to configure logging to (a) not log
 this warning message and (b) call catalina.out something else.  The docs
 aren't much help in this.  Does anyone have any specifics on how I can
 configure log files and redirect System.out and System.err messages?
 
 I'm using Tomcat 4.1.12.
 
 Thanks.
 
 David
 
 
 --
 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: Window doesnt close on shutdown

2002-10-18 Thread RXZ JLo
No. Should it?


--- Adam Greene [EMAIL PROTECTED] wrote:
 Does the title bar say Finished??
 
 -Original Message-
 From: RXZ JLo [mailto:rufoo2001;yahoo.com]
 Sent: Wednesday, October 16, 2002 9:33 AM
 To: [EMAIL PROTECTED]
 Subject: Window doesnt close on shutdown
 
 
 I use tomcat4.0.4 on windows 2000.
 When I shutdown tomcat, the window
 just shows
 Stopping Tomcat-Apache and standalone
 and doesnt close on itself.
 
 Does this mean my application hasnt
 closed properly?
 
 Thanks,
 rf
 
 
 
 __
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos  More
 http://faith.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
 


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.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: How to get archived messages

2002-10-18 Thread Robert L Sowders
last one

http://marc.theaimsgroup.com/?l=tomcat-user

rls





tk g [EMAIL PROTECTED]
10/17/2002 09:45 PM
Please respond to Tomcat Users List

 
To: [EMAIL PROTECTED]
cc: 
Subject:How to get archived messages


hi all,

i'm trying to configure tomcat4.1.1.2 with my IIS5.0 (w2k server)  found 
the list in

http://mikal.org/interests/java/tomcat/archive/view?mesg=55168 

there are attachements to this msg but i can't view them.  when i tried to 
get the msg  by emailing to get the thread  tomcat-user Digest of: 
thread.55168 

replied with 'msg not found'.

pls let me know how i can access to the msg  _attachments_ .. i don't 
want to send out ques if they'r already answered - i think the 
attachements in those msgs will help me.

thanks for your help.

tk



-
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos,  more
faith.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




JK2 and Apache1.3 win

2002-10-18 Thread Vjeran Marcinko
Hi.
I'm having problem instaling jk2 connector on my Apache 1.3 win...
I downloaded 'mod_jk2-1.3.27.dll' and used basic configuration, that meaning 
'workers2.properties' as follows :

[shm]
file=${serverRoot}/logs/shm.file
size=1048576
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
# Uri mapping
[uri:/examples/*]
worker=ajp13:localhost:8009

I didn't chage anything in jk2.properties file on Tomcat since it starts default 
channelSocket on port 8009.
And now I get following errors in jk2.log during initialization : 

[Wed Oct 16 13:24:02 2002]  (error) [jk_shm.c (358)]: shm.create(): error mmapping 
c:/program files/apache group/apache/logs/shm.file
[Wed Oct 16 13:24:02 2002]  (error) [jk_shm.c (358)]: shm.create(): error mmapping 
c:/program files/apache group/apache/logs/shm.file
[Wed Oct 16 13:24:02 2002]  (error) [jk_shm.c (358)]: shm.create(): error mmapping 
c:/program files/apache group/apache/logs/shm.file
[Wed Oct 16 13:24:02 2002]  (error) [jk_shm.c (358)]: shm.create(): error mmapping 
c:/program files/apache group/apache/logs/shm.file
[Wed Oct 16 13:24:02 2002]  (error) [jk_shm.c (358)]: shm.create(): error mmapping 
c:/program files/apache group/apache/logs/shm.file

And following during some request on /examples web app:
[Wed Oct 16 13:25:03 2002]  (error) [jk_endpoint.c (90)]: workerEnv.init() create slot 
epStat.0 failed
[Wed Oct 16 13:25:03 2002]  (error) [mod_jk2.c (427)]: mod_jk.handler() Error 
connecting to tomcat 21000

Can you tell me something more, because this verbosity above doesn't help me much...

regards,
Vjeran





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




mod_webapp or mod:jk

2002-10-18 Thread Dionisio Ruiz de Zarate
Hello, can anybody says me , in the future, in the tomcat new versions, 
which will be the connector for apache and tomcat? the mod_webapp or
mod_jk?



--
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 someone help with this ?

2002-10-18 Thread achana
Adam Sherman wrote:
 
 [EMAIL PROTECTED] wrote:
  Hi. Over the last 2 weeks, I have asked two forums for help.
  Unfortunately, I haven't got a response.
  I have Apache talking with Tomcat, that's okay.
  However when I try to tunnel from the applet to Tomcat servlet, I have
  erros like FileNotFound or Error 500.
  Anyone willing to take on this challenge ?
 
 Can you give a little more detail as to what you mean by tunnel?
 
 Are you trying to load a resource over http from the server your applet
 was loaded from? (Sorry about the grammar.)
YES !
Using the following : http://ApacheServerName/com/ThisServlet , from my
I.E. browser via the Apache web-server, I can get thru to the Tomcat
servlet to query the database. The data is then displayed on the
browser. 
ThisServlet is in web.xml
Any changes the database on the db-server can be viewed on the browser
with a slight delay.
However, I must now use HTML from a web page to get an HTTP
URLconnection to the Applet (using the HTML APPLET... CODE=... NAME=...
-tag. The applet will then establish a tunnel to the Tomcat servlet, using 
following :
On the client-end I have a BaseTunnel and a TunnelClient
On the server-end I have a BaseTunnelServlet and a TunnelServer.


I am getting consistently these errors:
java.io.IOException: Server returned HTTP response code : 500 for URL:
http://ApacheServerName/com/ReomoteMathLiteServer
etc

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




old tomcat behavior?

2002-10-18 Thread Mark Goking


is this an old tomcat behavior?

if im logged in and my last page is page1.jsp and my session times out so im 
redirected to /login.jsp.

problem is after logging in, it redirects me back to page1.jsp. i dont want it to be 
this way. is there a way to manually set the page to go to should be index.jsp?

this sucks up when you have frames and u timed out. when u login instead of being 
showin with frames it will only show the page of the frame where u last did some 
events on it (clicking, etc)

mark

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.401 / Virus Database: 226 - Release Date: 10/9/2002
 

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




Re: Apache 1.3.27, Tomcat 4.0.6, mod_JK, and Virtual Hosts

2002-10-18 Thread Robert L Sowders
uh, sort of I guess,

An easier to understand model would be;

Apache receives a request on port 80 for virtual server 
foo.com/cool/index.jsp
Apache reads it's configuration for virtual host foo.com, finds a jkmount 
for /cool/*.jsp ajp13
Apache hands all further processing over to mod_jk.so, which was loaded on 
Apache start
Mod_jk hands the request over to Tomcat for processing via a worker ajp13
Ajp13 communication port and lb factor are determined in the 
workers.properties file (8009)
The worker processes the request then hands it back to mod_jk
Mod_jk hands it back to Apache and Apache sends it on it's way.

This is an over simplified top down view but you get the idea.
Kind of like a bucket brigade to put out fires.

To answer your other question:

Apache determines what virtual host gets what.
Server.xml, among other things, determines what directory structure to 
follow to process a webapp, say examples2, where to log it, etc, etc. (See 
the examples context in TOMCAT_HOME\conf\server.xml.
 
If you recreate the examples directory exactly and rename it to something 
like examples2 and place it in the TOMCAT_HOME/webapps directory, then 
Tomcat should autodeploy it for you (create the server.xml context). 
Then all you'll need is  jkmount /examples2/*.jsp ajp13 and possibly the 
one for servlets too.  I can't remember. 

 If you want to do it outside of the webapps directory you'll have to 
create the correct directory structure (specifically the 
/mycoolstuff/WEB-INF/web.xml) put your jsp's in it, then you'll need to 
make the context for it in server.xml or deploy it with the manager app, 
which does it for you.  You'll still have to create the correct jkmount 
statement for examples2 for it in httpd.conf.

At least that's how I understand it in TC4.1.x.  You can auto deploy to 
the webapps directory via a war file, an expanded directory, or a jar 
file.  You can use the manager app to deploy outside of webapps with a 
directory, a .war, or a jar and in each case the context is done for you. 
If you want to do it anyplace other than TOMCAT_HOME/webapps without the 
manager app, then you'll have to do the context yourself.

Hope this helps,

rls



snip
 I'm clear as to how to set up Apache, but not clear as to how to set
 up Tomcat's server.xml file to read those directories as separate
 sites.  Also, I'm not clear what files need to be put where to get
 JSP's to work (having attempted to move the examples into a virtual
 host's examples directory). Any help on this would be a huge help.
I'm new at this myself, so someone out there might correct me, but this is 
what I 
understand from the docs.
Each JkMount specifies a worker to handle that request. Apache then 
forwards requests 
based on URI to the correct worker.
If your virtual hosts use different workers, apache forwards the request 
to the 
correct worker. Thus, tomcat doesn't have to determine the virtual host, 
apache does 
that for you.
---
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



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




RE: Wich version of Apache works with Tomcat 4.0.5, 4.06, and 4.1.2

2002-10-18 Thread Carlos
Thank you Ralph for your feedback.  We will stay with the 1.3 version for
the time being and test the diferent version of Tomcat with it.

Carlos


-Original Message-
From: Ralph Einfeldt [mailto:ralph.einfeldt;uptime-isc.de]
Sent: Thursday, October 17, 2002 11:12 AM
To: Tomcat Users List
Subject: AW: Wich version of Apache works with Tomcat 4.0.5, 4.06, and
4.1.2


From security points you should at least upgrade to 
the latest 1.3 release of apache. (But that has nothing
to do with tomcat, there have been several security
fixes between 1.3.20 and the current version.

I wouldn't change from 1.3 to 2.0 if you feel ok with 
the 1.3 family. (I'm quite conservative at this point,
other people may have an other opinion.)

 -Ursprüngliche Nachricht-
 Von: Carlos [mailto:Carlos;pbsinet.com]
 Gesendet: Donnerstag, 17. Oktober 2002 17:05
 An: Tomcat-User (E-mail)
 Betreff: Wich version of Apache works with Tomcat 4.0.5, 
 4.06, and 4.1.2
 
 We are using IBM jdk1.3 in a Linux RedHat server, Apache 
 1.3.20-16, and Tomcat 4.0.4 and 4.0.4.  
 Everything works fine. Since we are planning on upgrading 
 the version of Tomcat, should we also upgrade the version of
 Apache?
 

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



Re: Ok people

2002-10-18 Thread yoom nguyen
Bravo guys,  my proposal with some organization could be a 
solution to our problems here.

Yoom

- Original Message -
From: Lior Shliechkorn [EMAIL PROTECTED]
Date: Thursday, October 17, 2002 4:48 pm
Subject: Re: Ok people

 
 Thanks Greg. You're right, much of the organization of the 
 documentation leaves my head spinning. And it's not exactly in 
 terms where one who first approaches the software can just sit and 
 configure and run wild with it. I never came to waste people's 
 time, but I don't know where to look a lot of the time. And sites 
 off of search engines are usually a maze themselves.
 Many people have been a great and tremendous source of help that 
 allowed me to leave the office and go home before the witching 
 hour on this user list. As well as making the severe headaches 
 this software can provide subside.
 It's good to know that I have the support of people such as 
 youself. It definitely helps get a good start on learning what I 
 need to move ahead.
 Thanks. 
 Greg Bullough [EMAIL PROTECTED] wrote:At 12:22 PM 10/17/02 -
 0700, Lior Shliechkorn wrote:
 Limited knowledge, and often confusion, doesn't attribute to 
 questions 
 being asked in the same way that you, who have that knowledge, 
 would like 
 things phrased. I don't need people to gang up on me and tell me 
 that I'm 
 being rude and arrogant in the way I ask things
 
 What Lior has underlined, and what we really should take to heart, 
 is the 
 manner
 in which the Open Source movement is occasionally its own worst enemy.
 
 Let's face it...the documentation is often nonexistent, out of 
 date, or 
 generally awful.
 Tomcat is a beautiful thing...with ugly docs that merit the 
 forgoing 
 criticisms.
 
 Now to be fair, I can't blame anyone for not writing docs for 
 free. After 
 all, one of the FEW
 ways to make money in Open Source is to write for O'Reilly or Que 
 or 
 whomever. But
 of course you can't do that when the target is moving really 
 really fast. 
 Or not effectively
 anyway. I also can't blame them because *I* haven't done it, and 
 so I don't 
 get to
 bitch too loud :-) And some fine folks already have exceeded the 
 call of 
 duty by
 giving us, I say GIVING us Tomcat!
 
 But look at where the jakarta.apache.com points us to for 
 FAQs...jguru.com, 
 which is a
 for-pay site! That's just a bad strategy, when there are so many 
 nice FAQ 
 hosting
 packages available under the CopyLeft.
 
 Dumb little things, like 'don't use the RPMs,' the explanation 
 which a 
 couple of guys
 here gave me for my teething troubles, can consume a lot of time. 
 They ate 
 a day of
 mine. I admit, I hesitated about posting what seemed to me to be a 
 dumb 
 question
 here, for fear of getting into a flame-war when someone might say 
 'RTFM.'
 The alternatives, like Cold Fusion, have kick-ass documentation, 
 both with the
 server and written by a few supporters of the platform. The reason 
 that CF
 has been so successful...and is apt to fail now...is because it 
 early on gave
 software developers what they wanted to build things quickly, 
 easily, and in
 a way they could make a good living. Since Macromedia is falling 
 down on
 that 'give the developers what they want' measure, there's an 
 opportunity for
 the combination of Tomcat and the Jakarta classes/tags to sieze a 
 big chunk
 of that following.
 
 This stuff *is* kind of hard to get going on. Without well-
 organize docs, 
 it's REALLY
 hard. When the next thing is that someone slaps you around for 
 asking what they
 regard as a 'dumb' question, well it doesn't do much for the 
 proliferation 
 of the
 platform.
 
 Greg
 
 
 --
 To unsubscribe, e-mail: 
 For additional commands, e-mail: 
 
 
 
 -
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos,  more
 faith.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: Ok people

2002-10-18 Thread Greg Bullough
At 03:57 PM 10/17/02 -0400, Aryeh Katz wrote:

I just looked at one of  your unanswered posts. Even though I'm not 
expert, I can tell you why it wasn't answered.
You mentioned that you couldn't get iis 4 to speak to tomcat, and asked to 
help figure out why.
There was no information in that post as to why it fails.
...snip
So what do you expect people to do?

Give him a hint as to what information to bring to a follow-up and where to
look?

Greg


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




RE: Window doesnt close on shutdown

2002-10-18 Thread Robert L Sowders
Then your problem is not with the shortcut but with tomcat.  What do the 
logs say.  Have you turned up the levels to debug yet.  Check all the 
logs, stdout, sterr, the apache access.log and error.log and all the logs 
in tomcat_home/logs too.  It should tell you something. 

If you can kill it via the task manager, then go back and reread the logs 
again, more clues might turn up.

rls






RXZ JLo [EMAIL PROTECTED]
10/17/2002 10:32 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: [EMAIL PROTECTED]
Subject:RE: Window doesnt close on shutdown

Yes the tomcat process (java.exe) is still in the task
manager. Also on shutdown the process is taking in
additional memory, I am not sure if it is my app or
tomcat that is taking the additional memory of around
20mb.



--- Robert L Sowders [EMAIL PROTECTED] wrote:
 Do you still see the tomcat process in the task
 manager?  If not is there 
 a -w in the target field of the properties for the
 shortcut for Tomcat 
 stop?
 
 rls
 
 
 
 
 RXZ JLo [EMAIL PROTECTED]
 10/17/2002 09:12 PM
 Please respond to Tomcat Users List
 
 
 To: Tomcat Users List
 [EMAIL PROTECTED]
 cc: 
 Subject:RE: Window doesnt close on
 shutdown
 
 I am creating two socket listeners in my webapp, am
 I
 supposed to close them explicitly for the shutdown
 to
 finish gracefully?
 
 thanks,
 rf
 
 --- RXZ JLo [EMAIL PROTECTED] wrote:
  No. Should it?
  
  
  --- Adam Greene [EMAIL PROTECTED] wrote:
   Does the title bar say Finished??
   
   -Original Message-
   From: RXZ JLo [mailto:rufoo2001;yahoo.com]
   Sent: Wednesday, October 16, 2002 9:33 AM
   To: [EMAIL PROTECTED]
   Subject: Window doesnt close on shutdown
   
   
   I use tomcat4.0.4 on windows 2000.
   When I shutdown tomcat, the window
   just shows
   Stopping Tomcat-Apache and standalone
   and doesnt close on itself.
   
   Does this mean my application hasnt
   closed properly?
   
   Thanks,
   rf
   
   
   
  
 __
   Do you Yahoo!?
   Faith Hill - Exclusive Performances, Videos 
 More
   http://faith.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
   
  
  
  __
  Do you Yahoo!?
  Faith Hill - Exclusive Performances, Videos  More
  http://faith.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
  
 
 
 __
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos  More
 http://faith.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
 


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.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: Where do I get mod_jk?

2002-10-18 Thread Mark Eggers
Michael,

If you want binary builds, you'll have to upgrade to
apache 2.0.42.  They can be found at:

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

The rpms can be found at:

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

You'll need the apache rpm installed to use the binary
connector rpm.

If you feel comfortable building from source, you can
get the source from:

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

/mde/

just my two cents . . . .

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.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




Wich version of Apache works with Tomcat 4.0.5, 4.06, and 4.1.2

2002-10-18 Thread Carlos
Hello Forum,
We are using IBM jdk1.3 in a Linux RedHat server, Apache 1.3.20-16, and
Tomcat 4.0.4 and 4.0.4.  Everything works fine.  Since we are planning on
upgrading the version of Tomcat, should we also upgrade the version of
Apache?

Thanks in advance for your response.

Carlos Oliva




RE: [Configuring] Tomcat 4.1.12 apache 1.3.26 jk2

2002-10-18 Thread Hendrik Coetzee
Hi François

Found this site - has a couple of very good how-to's.  Check it out,
maybe it will help...

http://www.galatea.com/flashguides/index

 
 
Hendrik Coetzee


-Original Message-
From: François Vallet [mailto:fvallet;infovista.com] 
Sent: 18 October 2002 09:36 AM
To: 'Tomcat Users List'
Subject: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2


Hello Guys

Do you know if it we can associate apache 1.3.26 -JK2- Tomcat 4.1.12

If YES
Do you have a good url where there is a pretty good
documentation to
install them ?

Else
What is wrong ! 

Thanks in advance
François


 -Original Message-
 From: David Scott [mailto:dascott;mindspring.com]
 Sent: vendredi 18 octobre 2002 05:00
 To: Tomcat Users List
 Subject: Configuring log files in Tomcat 4.1
 
 I get an annoying SSL warning in catalina.out on every request if the
 client is not authenticated by certificate, which in our application
 means every request.  I would love to configure logging to (a) not log
 this warning message and (b) call catalina.out something else.  The
docs
 aren't much help in this.  Does anyone have any specifics on how I can
 configure log files and redirect System.out and System.err messages?
 
 I'm using Tomcat 4.1.12.
 
 Thanks.
 
 David
 
 
 --
 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: How to get archived messages

2002-10-18 Thread Robert L Sowders
Go to the source luke,

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

rls






tk g [EMAIL PROTECTED]
10/17/2002 09:45 PM
Please respond to Tomcat Users List

 
To: [EMAIL PROTECTED]
cc: 
Subject:How to get archived messages


hi all,

i'm trying to configure tomcat4.1.1.2 with my IIS5.0 (w2k server)  found 
the list in

http://mikal.org/interests/java/tomcat/archive/view?mesg=55168 

there are attachements to this msg but i can't view them.  when i tried to 
get the msg  by emailing to get the thread  tomcat-user Digest of: 
thread.55168 

replied with 'msg not found'.

pls let me know how i can access to the msg  _attachments_ .. i don't 
want to send out ques if they'r already answered - i think the 
attachements in those msgs will help me.

thanks for your help.

tk



-
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos,  more
faith.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: DBCP borrowObject failed: null

2002-10-18 Thread Leo Przybylski
Yes, it returns the exceptionally immediately ignoring the maxWait
parameter.

-Leo
http://www.foopan.ath.cx

On Thu, 2002-10-17 at 03:40, Felipe Schnack wrote:
   Hey, when you got all the connection from the pool and want to get
 more the datasource throws an exception??? I thougth it would lock the
 request thread...
 
 On Thu, 2002-10-17 at 00:56, Craig R. McClanahan wrote:
  
  
  On 16 Oct 2002, Leo Przybylski wrote:
  
   Date: 16 Oct 2002 17:06:22 -0700
   From: Leo Przybylski [EMAIL PROTECTED]
   Reply-To: Tomcat Users List [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: DBCP borrowObject failed: null
  
   Hello,
  
   I am getting the above error after several requests for database
   connections to DBCP. I am using Tomcat 4.1.10 and mysql database. All
   goes well and then I suddenly start seeing DBCP borrowObject failed:
   null
  
  
  That is exactly what should happen if you've set a maxActive limit on your
  pool, and you try to check out more connections than that (either because
  of a high simultaneous request count, and/or because you've failed to
  return one or more previously allocated connections to the pool).
  
   Does anyone know what might be wrong?
  
   -Leo
   http://www.foopan.ath.cx
  
  Craig
  
  
  --
  To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
  
 -- 
 
 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
 


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




RE: DBCP borrowObject failed: null

2002-10-18 Thread Leo Przybylski
Matt,

Just curious, but what happens when you increase MaxIdle to 60. I mean,
how many logins does it take to blow up then? 

-Leo

On Wed, 2002-10-16 at 22:57, Matt Raible wrote:
 I'm struggling to believe that this is the problem.  I am experiencing
 the same error after logging in and clicking through about 3 pages in my
 app.  If I didn't close ANY connections, I'd only have  10 open.  And
 my configuration calls for 100 (see below):
 
 !-- Maximum number of dB connections in pool. Make sure you
  configure your mysqld max_connections large enough to
 handle
  all of your db connections. Set to 0 for no limit.
  --
 parameter
 namemaxActive/name
 value100/value
 /parameter
 !-- Maximum number of idle dB connections to retain in pool.
  Set to 0 for no limit.
  --
 parameter
 namemaxIdle/name
 value30/value
 /parameter
 !-- Maximum time to wait for a dB connection to become
 available
  in ms, in this example 10 seconds. An Exception is thrown
 if
  this timeout is exceeded.  Set to -1 to wait indefinitely.
  --
 parameter
 namemaxWait/name
 value1/value
 /parameter
 
 I'm using Tomcat 4.1.12 on Windows XP with JDK 1.4.1.
 
 Thanks,
 
 Matt
 
  -Original Message-
  From: Craig R. McClanahan [mailto:craigmcc;apache.org] 
  Sent: Wednesday, October 16, 2002 8:56 PM
  To: Tomcat Users List
  Subject: Re: DBCP borrowObject failed: null
  
  
  
  
  On 16 Oct 2002, Leo Przybylski wrote:
  
   Date: 16 Oct 2002 17:06:22 -0700
   From: Leo Przybylski [EMAIL PROTECTED]
   Reply-To: Tomcat Users List [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: DBCP borrowObject failed: null
  
   Hello,
  
   I am getting the above error after several requests for database 
   connections to DBCP. I am using Tomcat 4.1.10 and mysql 
  database. All 
   goes well and then I suddenly start seeing DBCP 
  borrowObject failed: 
   null
  
  
  That is exactly what should happen if you've set a maxActive 
  limit on your pool, and you try to check out more connections 
  than that (either because of a high simultaneous request 
  count, and/or because you've failed to return one or more 
  previously allocated connections to the pool).
  
   Does anyone know what might be wrong?
  
   -Leo
   http://www.foopan.ath.cx
  
  Craig
  
  
 
 
 
 --
 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: expression ALWAYS evaluates to if... NEVER to else

2002-10-18 Thread SMcGarrity
You'll want to do if( !(paramPassword.equalsIgnoreCase(secretCode))) { }
else { }

You cant use logical operators on Strings for what you're trying to do!

Look up the java.lang.String javadocs for more information on the equals and
equalsIgnoreCase methods.

Steve


-Original Message-
From: Z.BEAT [mailto:zackbeatty;yahoo.com]
Sent: Thursday, October 17, 2002 1:58 PM
To: Tomcat Users List
Subject: expression ALWAYS evaluates to if... NEVER to else


In the following code snippet, the expression ALWAYS
evaluates to the if statement block:

String paramPassword =
request.getParameter(paramPassword);
String secretCode = secret;

if(paramPassword != secretCode)
{

}
else
{

}

However, my debugging flags that I send in an HTML
comment CLEARLY show that the two variables have the
same value:

!-- DEBUG FLAGS
paramPassword: secret
   secretCode: secret
--

What is going on?   Am I missing something obvious?

Thanks!

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.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



JDNI DataSource error

2002-10-18 Thread Zhang, Yufei (Factiva)
Hi,

Here is part of my serer.xml:

Context ...
  Resource name=jdbc/MyDB auth=Container
type=javax.sql.DataSource/
  ResourcesParams name=jdbc/MyDB
parameter
  namedriverClassName/name
  valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value
/parameter
   ...

 /ResourcesParams
/Context

when I try to use the datasource in my servlet, I got:
java.sql.SQLException: Cannot load JDBC driver class 'null' at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:529) at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3
12) at com.yufei.servlet.JNDITest.doGet(JNDITest.java:59) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260) at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191) at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
) at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643) at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170) at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641) at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
) at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174) at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:380) at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533) at java.lang.Thread.run(Thread.java:536) 

Can anybody help me?

Thanks
Yufei

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




Re: John Turner or someone who responsible for Posting -- Re: How toApache2, Tomcat4.1.2, JK2 ?

2002-10-18 Thread Robert L Sowders
Hi Again,

I had this discussion a couple of weeks ago and there was allot of 
interest in helping with the docs.  The stumbling point as I see it is 
people just don't know how to submit changes to existing material or for 
that matter new material.

If you want to write whole chapters then;
Basically, very basically, what you do is get the tools necessary to 
participate in a xml documentation project.  Then you'll need the DTDs and 
style templates that are already being used for the current documentation. 
 These are available via anonymous cvs.  If you are making new pages or 
chapters then you'll need the above stuff to view it locally and see if 
it's correct.  Then you'll have to post it to the Tomcat-dev list and 
someone there will review it and commit it, if it applies. 

If your just correcting or extending an existing page;
All you need to do is download your target via cvs, do your corrections 
with any text editor and then diff it using cvs and post it to the 
Tomcat-dev mailing list.  Someone there with commit privs will look at it 
and commit it, if it's deemed ok.

Actually the dev list people are pretty good about accepting the changes 
when they get them, but there is a gap in showing everyone how to 
contribute, so they just don't get much to work with.

So if you want to start your OWN documentation effort then the first thing 
you need to do is set up a cvs server.  You will need to decide on what 
style your book should take, there are lots of examples out there.  Then 
you set up a cvs root and start loading your docs.  That way people who 
want to participate can download your xml style sheet, DTD's, xsl stuff 
and everyone would be on the same sheet of music.   I would also recommend 
using cvsview so people could download stuff via http.

You will also need some kind of mailing list so people who want to send in 
patches will have a place to send them, and committers will have a place 
to discuss things.

Here's a pretty good description of what I'm trying to say, about xml. 
http://httpd.apache.org/docs-project/docsformat.html
Here's a pretty good description of how the whole thing works. 
http://apache-server.com/tutorials/ATdocs-project.html

Hope this helps,

rls





yoom nguyen [EMAIL PROTECTED]
10/17/2002 02:26 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:John Turner or someone who resposible for Posting -- Re: How 
to Apache2, 
Tomcat4.1.2, JK2 ?

Hi John
You seems to be the one who would know where this question should go.
Is there a link on apache's web site for people to share their detail
(doc)work?  People like Robert Sowders, and other?

For the last two weeks I have seen many similar questions being asked 
over and over again by different people. If we can have a site that 
collecting this similar examples of different type of deployment.  Then 
we are as a community of open sources be better off.  You and everyone 
else will have more time to focus on the development instead of support 
it.

A place to allow others to share their implementation experiences. 
There are too many combination of implementation from OS (Solaris, 
Windows, Linux..) to the application version (apache, tomcat, jboss, 
jk, ant, .). 

I am volunter to host the site and have it link to apache/tomcat...site
However, I will need some help to get it up and running properly for
people to post their documentation and examples.  I will need some help 
on coding the upload documentation module for different type of format 
(such as text, doc, html..).  I will do the rest.  I am not a coder. 
What would you guys say 


Thanks, Yoom



--- Original Message -
From: Robert L Sowders [EMAIL PROTECTED]
Date: Thursday, October 17, 2002 4:03 pm
Subject: Re: How to Apache2, Tomcat4.1.2, JK2 ?

 Haven't tested with the latest, (I will later today), but this 
 should get 
 you going in the right direction.
 
 ftp://pokey.wr.usgs.gov/pub/rsowder
 
 Let me know.
 
 rls
 
 
 
 
 
 
 yoom nguyen [EMAIL PROTECTED]
 10/17/2002 11:13 AM
 Please respond to Tomcat Users List
 
 
To: [EMAIL PROTECTED]
cc: 
Subject:How to Apache2, Tomcat4.1.2, JK2 ?
 
 Does any one get this combination of Apache2.0.43, Tomcat4.1.2 and 
 JK2.2.0.2 to work and documented?  Would you share.
 
 
 
 My apaches 2.0.43 doesn't seems to communicate with tomcat 4.1.2. 
 I am
 using jk2 (2.2.0.1)as the web connector. Apache2 in run on server 
 #1 
 and Tomcat4.1.2 run on server #2.
 
 I am wondering if my setting are correct? Please let me 
 know if I miss something here.
 
 
 Are these setting correct??
 
 *** on server #1, start of workers2.properties file ***
 # Shared memory handling. Needs to be set.
 [shm]
 file=/etc/httpd/logs/shm.file
 size=1048576
 
 # A List of tomcat workers
 #worker.list=tomcat1
 
 # Example socket channel, explicitly set port and host.
 [channel.socket:209.104.159.91:8009]
 port=8009

RE: classpaths again

2002-10-18 Thread Cox, Charlie
what error are your getting?

 -Original Message-
 From: Sam Seaver [mailto:samseaver;hotmail.com]
 Sent: Wednesday, October 16, 2002 8:12 PM
 To: [EMAIL PROTECTED]
 Subject: Re: classpaths again
 
 
 No I'm importing it in the JSP tag %@page import sam.xml.* %
 
 S
 
 JC Rules
 
 
 
 
 From: Jean-Francois Arcand [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: classpaths again
 Date: Wed, 16 Oct 2002 20:02:00 -0400
 
 Can you give more information about how you try to get sam.xml file?
 
 Are you using something like:
 
 yourClass.class.getResource(sam.xml)
 
 or getResourceAsStream ?
 
 -- Jeanfrancois
 
 
 
 Sam Seaver wrote:
 
 OK I have a package created by JAXB called sam.xml within my 
 WEB-INF/classes folder, this is an uncompressed package, 
 thus it's the 
 directories 'sam/xml/*.class'
 
 in my jsp page within the same web application, I call:
 
 %@page import javax.xml.bind.*,sam.xml.* %
 
 it finds the javax stuff because i copied the jar files into the 
 WEB-INF/lib folder, but it won't find the sam.xml stuff??
 
 S
 
 JC Rules
 
 
 
 _
 Get a speedy connection with MSN Broadband.  Join now! 
 http://resourcecenter.msn.com/access/plans/freeactivation.asp
 
 
 --
 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
 
 
 _
 Surf the Web without missing calls! Get MSN Broadband.  
 http://resourcecenter.msn.com/access/plans/freeactivation.asp
 
 
 --
 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: JNDI Data Source

2002-10-18 Thread Jacob Kjome
Hello Jens,

There are two problems that are immediately apparent:

1.  user should be username

2.  you should append ?autoReconnect=true to your url value when
using MySQL which sweeps stale connections.


Jake

Thursday, October 17, 2002, 3:27:42 AM, you wrote:

JK Hi,

JK I got a problem setting up my jdbc connection pool as described in 
JK http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html.

JK I'm using the mySQL database and tomcat 4.1.

JK Following the jndi-resources-howto.html file I added to my server.xml:

JKContext path=axis docBase=/axis debug=0
JK  Resource name=jdbc/auctionDB auth=Container
JK  type=javax.sql.DataSource/

JK  ResourceParams name=jdbc/auctionDB
JKparameter
JK  nameusername/name
JK  valueuser/value
JK/parameter
JKparameter
JK  namepassword/name
JK  valuepass/value
JK/parameter
JKparameter
JK  namedriverClassName/name
JK  valuecom.mysql.jdbc.Driver/value
JK/parameter
JKparameter
JK  nameurl/name
JK  valuejdbc:mysql://localhost:3306/timeslotauction/value
JK/parameter
JKparameter
JK  namemaxActive/name
JK  value8/value
JK/parameter
JKparameter
JK  namemaxIdle/name
JK  value4/value
JK/parameter
JK  /ResourceParams
JK/Context

JK and in the web.xml:

JK resource-ref
JKdescription
JK  description
JK/description
JKres-ref-name
JK  jdbc/auctionDB
JK/res-ref-name
JKres-type
JK  javax.sql.DataSource
JK/res-type
JKres-auth
JK  Container
JK/res-auth
JK /resource-ref

JK On my webpage I try the following:

JK  Context initCtx = new InitialContext();
JK  Context envCtx = (Context) initCtx.lookup(java:comp/env);
JK  DataSource ds = (DataSource)envCtx.lookup(jdbc/auctionDB);

JK which results in the following error message when I execute 
JK envCtx.lookup(jdbc/auctionDB):

JK javax.naming.NamingException: Cannot create resource instance
JK  at 
JK 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:189)
JK  at 
JK javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
JK  at org.apache.naming.NamingContext.lookup(NamingContext.java:834)
JK  at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
JK  at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
JK  at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
JK  at org.apache.jsp.happyaxis_jsp._jspService(happyaxis_jsp.java:297)
JK  at 
JK org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
JK  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
JK  at 
JK org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
JK  at 
JK org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
JK  at 
JK org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
JK  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
JK  at 
JK 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
JK  at 
JK 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
JK  at 
JK org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
JK  at 
JK 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
JK  at 
JK org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
JK  at 
JK org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
JK  at 
JK org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
JK  at 
JK 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
JK  at 
JK org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
JK  at 
JK org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
JK  at 
JK org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
JK  at 
JK org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
JK  at 
JK 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
JK  at 
JK 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
JK  at 
JK 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
JK  at 
JK org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
JK  at 
JK 

RE: Best practices question

2002-10-18 Thread Turner, John

I run Tomcat under a separate user account.  I avoid running services as
root whenever possible.

John

 -Original Message-
 From: Randy Paries [mailto:randy.paries;unitnet.com]
 Sent: Thursday, October 17, 2002 1:56 PM
 To: 'Tomcat Users List'
 Subject: Best practices question
 
 
 Hello,
 
 I was wondering are most people starting tomcat from root, or are they
 doing it other ways.
 
 What is the suggestion for this.
 
 How big are the security issues if started by root
 
 Would it be ok to start it by user apache?
 
 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: Ok people

2002-10-18 Thread Aryeh Katz
 Give him a hint as to what information to bring to a follow-up and
 where to look?
 
Reading your other post, I'd have to say that your reply here is right on the money 
(note: I did include a URL with my response :-)).

However, in fairness to the people who post here, why should they have to tell someone 
to look at, say, google.
The odds are excellent that the problem any poster is facing is addressed somewhere, 
by someone, and it can be found with some research.
Granted, that's not the easy way to go, and sometimes, there IS no available answer. 
All I was trying to say (which George pointed out) is that the way the question 
is asked has a lot to do with how (and if) it's answered, and trying to point to the 
OP what they did wrong.
I still can't answer his (Lior should be a him) question, but I can make it more 
likely that other people will
---
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: How come no one's is replying

2002-10-18 Thread Turner, John

Thanks for your comments.  You might take the URL that George Sexton posted
seriously.  You'd be amazed at the quality, free support you can get when
you aren't so petulant and demanding.

Have a great day!

John

 -Original Message-
 From: Lior Shliechkorn [mailto:liorshliech;yahoo.com]
 Sent: Thursday, October 17, 2002 3:09 PM
 To: Tomcat Users List
 Subject: RE: How come no one's is replying
 
 
 
 John, John,
 We don't need to get into this again...I understand your need 
 to have everything your way and it's not that I don't 
 appreciate what people had done to assist (or try to assist). 
 However, I'm not asking the same complex questions that I see 
 others ask, being that I am very new to this and don't 
 understand much of the complexities and strict rules that 
 Tomcat requires.
 In order not to hear from you the way I usually do I even 
 included my code with the e-mail...and being that I am a nice 
 person I will refrain from using certain words which I am 
 sure you can sense are underlying much of what I'm saying.
 So if you feel the need to skip over my inquiries feel free to do so.
 Take care, and thanks for your efforts of trying to moderate 
 posts to your liking.
  Turner, John [EMAIL PROTECTED] wrote:
 Now come on, are we going to have this conversation again?
 
 As I recall, several people, me included, spent a 
 considerable amount of
 time answering your questions earlier this week.
 
 Did you ever consider that perhaps people don't have the 
 answer, and don't
 want to waste your time (or their's) sending you on a wild 
 goose chase?
 
 John
 
  -Original Message-
  From: Lior Shliechkorn [mailto:liorshliech;yahoo.com]
  Sent: Thursday, October 17, 2002 2:38 PM
  To: Tomcat
  Subject: How come no one's is replying
  
  
  
  I've been posting messages and I see other people picking up 
  other people's requests for help and no one pays any 
  attention to mine.
  
  
  
  -
  Do you Yahoo!?
  Faith Hill - Exclusive Performances, Videos,  more
  faith.yahoo.com
  
 
 --
 To unsubscribe, e-mail: 
 For additional commands, e-mail: 
 
 
 
 -
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos,  more
 faith.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: Empty custom action tags

2002-10-18 Thread Steve Bang
The JSP 1.2 spec also says that the mytag/mytag is valid.  But, I'd
still like to know when Tomcat added support for this variant of the empty
tag.  I'm assume that all versions of Tomcat 4 support this syntax for empty
tags -- is this correct?

Thanks,
Steve

 -Original Message-
 From: Steve Bang [mailto:SBang;alphablox.com]
 Sent: Thursday, October 17, 2002 2:50 PM
 To: [EMAIL PROTECTED]
 Subject: Empty custom action tags
 
 
 According to the JSP 1.1 spec:
 
   Action elements follow the syntax of XML elements, i.e. have a 
   start tag, a body and an end tag:
 
 mytag attr1=attribute value ...
 body
 /mytag
 
   or an empty tag
 
 mytag attr1=attribute value .../
 
 But, the JSP 1.1 spec doesn't seem to explicitly state that 
 
   mytag attr1=attribute value .../mytag
 
 should be treated as an empty tag.
 
 On the other hand, the JSP 2.0 draft spec clearly shows this 
 as a valid
 empty tag.
 
 When using Tomcat 3.2.3, a tag library that I'm using has the 
 bodycontent
 tag in the TLD set to empty throws an exception stating 
 that the body is
 supposed to be empty when the tag is in the following format:
 mytag/mytag.
 I presume that Tomcat was developed to support the empty tag 
 as explicitly
 stated in the JSP 1.1 spec, although based on the JSP 2.0 
 draft it looks
 like the intent (or clarification) is that an opening and 
 closing tag with
 no content (not even a space; e.g, mytag/mytag) is to be 
 treated as an
 empty tag.  Does anyone know if this behavior has changed in 
 more recent
 versions of Tomcat, and if so, when this change occurred?
 
 Thanks,
 Steve
 
 --
 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: is this a bug ?

2002-10-18 Thread Ricardo de Souza Moura
So... my tomcat version don't work with jdk1.3.1 !!!
in the jakarta site is written:

Tomcat will operate under any Java Development Kit (JDK) environment that 
provides a JDK 1.2 (also known as Java2 Standard Edition, or J2SE) or later 
platform. You will need a Java Development Kit, as opposed to a Java Runtime 
Environment, so that your servlets, other classes, and JSP pages can be 
compiled. Tomcat 4 has been extensively tested with JDK 1.3.1, which is 
recommended

Can I use the jdk1.3.1 with Tomcat4 or not ?

Thanks 






From: [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: is this a bug ?
Date: Thu, 17 Oct 2002 13:05:23 -0400

Andy,

There are two builds of 4.1.10 as far as I recall - one that is built with
JDK 1.4, and one that is not.  The one that is built with 1.4 is a
'lightweight' install that doesnt include various APIs that come with
1.4.

You can find both on the jakarta downloads

Steve

-Original Message-
From: Bodycombe, Andrew [mailto:andrew.bodycombe;siemens.com]
Sent: Thursday, October 17, 2002 12:28 PM
To: 'Tomcat Users List'
Subject: RE: is this a bug ?



The method 'append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer;'
was introduced in JDK 1.4

If you are running this code on a previous version of the JDK
then you will get the NoSuchMethodError.

It looks like your tomcat was built using JDK1.4,
but you are running it using JDK1.3.1

A Question for the tomcat developers...
Does this mean that tomcat 4.1.10 requires JDK1.4 to work?

Andy

-Original Message-
From: Ricardo de Souza Moura [mailto:ricsouzamoura;hotmail.com]
Sent: 17 October 2002 16:55
To: [EMAIL PROTECTED]
Subject: RE: is this a bug ?


I am using jdk1.3.1 with Tomcat 4.1.10.

Is there somewhere in your code where your trying to append an array of
stringbuffers to a stringbuffer?
No !!!

I am using Struts Framework from Apache Jakarta !!! I don't know if they 
use

this !!!





From: Shapira, Yoav [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: is this a bug ?
Date: Thu, 17 Oct 2002 10:43:39 -0400

Hi,
Kind of a strange error.  You're using the JDK (not JRE) right?  What
version?  What version of tomcat?

Is there somewhere in your code where your trying to append an array of
stringbuffers to a stringbuffer?

Yoav Shapira
Millennium ChemInformatics


 -Original Message-
 From: Ricardo de Souza Moura [mailto:ricsouzamoura;hotmail.com]
 Sent: Thursday, October 17, 2002 10:27 AM
 To: [EMAIL PROTECTED]
 Subject: RE: is this a bug ?
 
 Yes !!!
 this:
 
 - Root Cause -
 java.lang.NoSuchMethodError: java.lang.StringBuffer: method
 append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not found
 at
 org.apache.catalina.connector.HttpRequestBase.parseParameters(HttpReque
stBa
 se.java,
 Compiled Code)
 at
 org.apache.catalina.connector.HttpRequestBase.getParameterNames(HttpReq
uest
 Base.java,
 Compiled Code)
 at
 org.apache.catalina.connector.RequestFacade.getParameterNames(RequestFa
cade
 .java,
 Compiled Code)
 at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java,
 Compiled Code)
 at
 org.apache.struts.action.RequestProcessor.processPopulate(RequestProces
sor.
 java,
 Compiled Code)
 at
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java
,
 Compiled Code)
 at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java,
Compiled
 Code)
 at
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java,
 Compiled Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java,
 Compiled
 Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java,
 Compiled
 Code)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
 nFilterChain.java,
 Compiled Code)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
 hain.java,
 Compiled Code)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
 ava,
 Compiled Code)
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
 keNext(StandardPipeline.java,
 Compiled Code)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
 Compiled Code)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
 Compiled Code)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
ve.j
 ava,
 Compiled Code)
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
 keNext(StandardPipeline.java,
 Compiled Code)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
 Compiled Code)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
 Compiled Code)
 at
 

Re: Ok people

2002-10-18 Thread Lior Shliechkorn

Thanks Greg. You're right, much of the organization of the documentation leaves my 
head spinning. And it's not exactly in terms where one who first approaches the 
software can just sit and configure and run wild with it. I never came to waste 
people's time, but I don't know where to look a lot of the time. And sites off of 
search engines are usually a maze themselves.
Many people have been a great and tremendous source of help that allowed me to leave 
the office and go home before the witching hour on this user list. As well as making 
the severe headaches this software can provide subside.
It's good to know that I have the support of people such as youself. It definitely 
helps get a good start on learning what I need to move ahead.
Thanks. 
 Greg Bullough [EMAIL PROTECTED] wrote:At 12:22 PM 10/17/02 -0700, Lior Shliechkorn 
wrote:
Limited knowledge, and often confusion, doesn't attribute to questions 
being asked in the same way that you, who have that knowledge, would like 
things phrased. I don't need people to gang up on me and tell me that I'm 
being rude and arrogant in the way I ask things

What Lior has underlined, and what we really should take to heart, is the 
manner
in which the Open Source movement is occasionally its own worst enemy.

Let's face it...the documentation is often nonexistent, out of date, or 
generally awful.
Tomcat is a beautiful thing...with ugly docs that merit the forgoing 
criticisms.

Now to be fair, I can't blame anyone for not writing docs for free. After 
all, one of the FEW
ways to make money in Open Source is to write for O'Reilly or Que or 
whomever. But
of course you can't do that when the target is moving really really fast. 
Or not effectively
anyway. I also can't blame them because *I* haven't done it, and so I don't 
get to
bitch too loud :-) And some fine folks already have exceeded the call of 
duty by
giving us, I say GIVING us Tomcat!

But look at where the jakarta.apache.com points us to for FAQs...jguru.com, 
which is a
for-pay site! That's just a bad strategy, when there are so many nice FAQ 
hosting
packages available under the CopyLeft.

Dumb little things, like 'don't use the RPMs,' the explanation which a 
couple of guys
here gave me for my teething troubles, can consume a lot of time. They ate 
a day of
mine. I admit, I hesitated about posting what seemed to me to be a dumb 
question
here, for fear of getting into a flame-war when someone might say 'RTFM.'

The alternatives, like Cold Fusion, have kick-ass documentation, both with the
server and written by a few supporters of the platform. The reason that CF
has been so successful...and is apt to fail now...is because it early on gave
software developers what they wanted to build things quickly, easily, and in
a way they could make a good living. Since Macromedia is falling down on
that 'give the developers what they want' measure, there's an opportunity for
the combination of Tomcat and the Jakarta classes/tags to sieze a big chunk
of that following.

This stuff *is* kind of hard to get going on. Without well-organize docs, 
it's REALLY
hard. When the next thing is that someone slaps you around for asking what they
regard as a 'dumb' question, well it doesn't do much for the proliferation 
of the
platform.

Greg


--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos,  more
faith.yahoo.com


Simple Question, change error page for request that is not in theserver.xml

2002-10-18 Thread Erick Todd
How do I change the tomcat page that pops up when someone makes a
request to a domain that tomcat does not have in the server.xml.

I have people that will make requests that are not correct and I need
them to be directed to a custom error page.

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: mod_webapp or mod:jk

2002-10-18 Thread Hendrik Coetzee
I had a look and it looks like Jakarta is moving towards mod_webapp.  I
tried to get this working in apache 2, but had no success.  Could also
just be my server...

Mod_jk worked first time, though.

Guess the old sturdy mod_jk will survive for quite a bit longer!

 
 
Hendrik Coetzee


-Original Message-
From: Dionisio Ruiz de Zarate [mailto:dionisio;tinieblas.com] 
Sent: 18 October 2002 08:09 AM
To: [EMAIL PROTECTED]
Subject: mod_webapp or mod:jk


Hello, can anybody says me , in the future, in the tomcat new versions, 
which will be the connector for apache and tomcat? the mod_webapp or
mod_jk?



--
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: Where do I get mod_jk?

2002-10-18 Thread Robert L Sowders
If you insist on using those old versions (not recommended) then you'll 
have to build from source, unless you can find them out on the internet 
somewhere.  The connector source is in the archives. 
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/archives/v4.1.10/src/

If you upgrade to the latest the binaries are at 
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/linux/i386/
 
 as mentioned in the docs 
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/doc/jk/aphowto.html#Obtaining%20mod_jk

rls





Michael Sun [EMAIL PROTECTED]
10/17/2002 08:10 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Where do I get mod_jk?

I'm sure someone's already asked this but I'd greatly appreciate if 
someone could point me in the right direction. I;m runnin redhat 
8.0,apache 2.0.40 and tomcat 4.1.10. Where can I find the proper mod_jk 
for 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




RE: Subclassing the Session object

2002-10-18 Thread Milt Epstein
On Thu, 17 Oct 2002, Nick Sharples wrote:


 Shapira, Yoav writes:
   Hi,
   I don't know the direct answer to your question.
  
   But I'm curious as to the use-case that's requiring you to subclass
   HttpSession.  As opposed to, for example, binding your (Serializable)
   objects to the session?  Thanks,

 We have a clustered environment and some legacy code that binds
 objects to the session. What I'd like to do, in order to avoid any
 rewritting, is sub-class the session object and intercept getAttribute
 calls so that changes made to the datamodel are reflected by any
 objects pulled off of the session. I'm sure I've seen this being done,
 but can't remember where you set it.

Would HttpSessionBindingListener help with this?

And do you mean setAttribute instead of getAttribute?

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




reg tomcat iis

2002-10-18 Thread Srinu Kalyan
Hi,
 
The article IIS HOW TO is pretty good but could you please help me in
configuring iis and tomcat residing in two differnt machines 
 
iis and tom cat are in two different boxes 
 
thanks 
srinu 
 
 
 



Tomcat 3.3.1 authentication problem working without cookies

2002-10-18 Thread Jose Andrés Pérez
Hello everybody,

I have an authentication problem using Jakarta Tomcat 3.3.1 and I don´t know
how to solve it. My context is the following:
  - There are two roles on my Web application (admin and contentprovider):
security-role
role-nameservices.admin/role-name
/security-role
security-role
role-nameservices.contentprovider/role-name
/security-role

  - There are two ways (urls) to access to the webapp. One of them can only
access the
users that belong to the admin role and the other one those who belong to
the contentprovider role:
security-constraint
web-resource-collection
web-resource-nameSuperAdministrator tool/web-resource-name
url-pattern/tools/admin/*/url-pattern
/web-resource-collection
auth-constraint
role-nameservicesadmin/role-name
/auth-constraint
/security-constraint
security-constraint
web-resource-collection
web-resource-nameContent Provider tool/web-resource-name
url-pattern/tools/contentprovider/*/url-pattern
/web-resource-collection
auth-constraint
role-nameservices.contentprovider/role-name
/auth-constraint
/security-constraint

  - There are two servlets listening, one for admin requests and another for
contentprovider requests:
servlet-mapping
servlet-nameAdminTools/servlet-name
url-pattern/tools/admin/*/url-pattern
/servlet-mapping
servlet-mapping
servlet-nameCPTools/servlet-name
url-pattern/tools/contentprovider/*/url-pattern
/servlet-mapping

  - I have configured on web.xml the form login jsp for both login and
error. On both cases (login and error) the jsp is the same:
login-config
auth-methodFORM/auth-method
form-login-config
form-login-page/login.jsp/form-login-page
form-error-page/login.jsp?error/form-error-page
/form-login-config
/login-config

  - I have configured the web.xml with this characteristics and the web
application works fine with cookies.

The problem is when I want to work without cookies. I try to access to the
web application (for example
http://localhost:8080/mywebapp/tools/admin/init.bwp) and the login.jsp is
executed and returned with its jsessionid on the returned url. Thats fine.
But if I fail the login Tomcat launches the resource defined on tag
form-error-pag, that is /login.jsp?error. Tomcat launches it but
(OOHHH!!) does not include the jsessionid.
How can I configure Tomcat to include the jsessionid on the loggin error
page? Is it possible this kind of configuration on Tomcat 3.3.1?



Thanks in advance,
Jose



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




Re: AW: tomcat 4.1 does not resolve links

2002-10-18 Thread Luise Massimo
Hi,
i think there is another problem in FileDirContext.java.the problem 
reside in the following code:

if (!canPath.equals(absPath))
 return null;

if you allow linking and the file linked is INSIDE webapp directory (so 
isLink = !canPath.startsWith(absoluteBase) is false, tomcat execute 
the code showed before and return null because absPath and canPath differ !
In this case the linking are allowed by allowLinking attribute, but 
are not allowed by the test inside FileDirContext


Torsten Fohrer wrote:

here is a patch for FileDirContext.java




 

-Ursprüngliche Nachricht-
Von: Alexander Piavka [mailto:piavka;cs.bgu.ac.il]
Gesendet: Donnerstag, 17. Oktober 2002 11:17
An: Tomcat Users List
Betreff: Re: tomcat 4.1 does not resolve links



Does anyone know then the  4.1.13 version will be released, 
or maybe this
bug has been already solved and i can download the current 
cvs(or a patch)?
Since i really need it urgently.
I tried to make minor changes in the FileDirContext.java file, so that
allowLinking is always enabled but it did now work.

Thanks.

On Sun, 6 Oct 2002, Remy Maucherat wrote:

   

Alexander Piavka wrote:
 

The RELEASE-NOTES it is said that to enable symbloic 
   

linking i need to
   

add the allowLinking option to FileDirContext. But i did 
   

not find anything
   

about FileDirContext in the documentation.
Does anyone know where  sould the FileDirContext 
   

configuration be put
   

and where is the documentation about it.
   

It turns out there is a bug in the feature in 4.1.12. It 
 

will be fixed
   

in 4.1.13, and properly documented.
 

--
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: expression ALWAYS evaluates to if... NEVER to else

2002-10-18 Thread Turner, John

You can't use != or == to compare Strings.

http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html

You could use something like:

if (paramPassword.compareTo(secretCode) == 0) {

  // they match

} else {

  // they don't

}

Or flip your if around and use .equals():

if (paramPassword.equals(secretCode)) {

  // they match

} else {

  // they don't

}

So, in your current if statement, the condition is always true, as a FALSE
(that they match) condition can never happen.

John

 -Original Message-
 From: Z.BEAT [mailto:zackbeatty;yahoo.com]
 Sent: Thursday, October 17, 2002 1:58 PM
 To: Tomcat Users List
 Subject: expression ALWAYS evaluates to if... NEVER to else
 
 
 In the following code snippet, the expression ALWAYS
 evaluates to the if statement block:
 
 String paramPassword =
 request.getParameter(paramPassword);
 String secretCode = secret;
 
 if(paramPassword != secretCode)
 {
 
 }
 else
 {
 
 }
 
 However, my debugging flags that I send in an HTML
 comment CLEARLY show that the two variables have the
 same value:
 
 !-- DEBUG FLAGS
 paramPassword: secret
secretCode: secret
 --
 
 What is going on?   Am I missing something obvious?
 
 Thanks!
 
 __
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos  More
 http://faith.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: Java Connectors in Tomcat?

2002-10-18 Thread Craig R. McClanahan


On Thu, 17 Oct 2002, Extance, Paul wrote:

 Date: Thu, 17 Oct 2002 18:14:18 -0700
 From: Extance, Paul [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: Java Connectors in Tomcat?

 Is there plans to allow the Tomcat container to support the JCA part of the
 J2EE Spec. I have a JSP(Struts)/JDO based app, that runs on Tomcat, no EJB's
 in site. If i want to use a 3rd party connector (like SAP) do i now need a
 EJB type container like JBoss, or is Tomcat planning to support JCA some
 time in the future?

 If this is a stupid question i apologies, just trying to get my head round
 the JCA stuff and what it means to my deployment!


I don't know of any plans to make Tomcat support the connector
architecture -- that's a J2EE thing -- although I guess in theory it would
be possible.

Tomcat is a servlet and JSP container.

 Thanx

 PaulE

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: JNDI Data Source

2002-10-18 Thread Leo Przybylski
Context path=axis docBase=/axis debug=0
  Resource name=jdbc/auctionDB auth=Container
  type=javax.sql.DataSource/
  ResourceParams name=jdbc/auctionDB
You left out a factory in your configuration file. Try:
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

For DBCP. This should fix everything.

-Leo
http://www.foopan.ath.cx

On Thu, 2002-10-17 at 01:27, Jens Kühnberger wrote:
 Hi,
 
 I got a problem setting up my jdbc connection pool as described in 
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html.
 
 I'm using the mySQL database and tomcat 4.1.
 
 Following the jndi-resources-howto.html file I added to my server.xml:
 
Context path=axis docBase=/axis debug=0
  Resource name=jdbc/auctionDB auth=Container
  type=javax.sql.DataSource/
 
  ResourceParams name=jdbc/auctionDB
parameter
  nameusername/name
  valueuser/value
/parameter
parameter
  namepassword/name
  valuepass/value
/parameter
parameter
  namedriverClassName/name
  valuecom.mysql.jdbc.Driver/value
/parameter
parameter
  nameurl/name
  valuejdbc:mysql://localhost:3306/timeslotauction/value
/parameter
parameter
  namemaxActive/name
  value8/value
/parameter
parameter
  namemaxIdle/name
  value4/value
/parameter
  /ResourceParams
/Context
 
 and in the web.xml:
 
 resource-ref
description
  description
/description
res-ref-name
  jdbc/auctionDB
/res-ref-name
res-type
  javax.sql.DataSource
/res-type
res-auth
  Container
/res-auth
 /resource-ref
 
 On my webpage I try the following:
 
  Context initCtx = new InitialContext();
  Context envCtx = (Context) initCtx.lookup(java:comp/env);
  DataSource ds = (DataSource)envCtx.lookup(jdbc/auctionDB);
 
 which results in the following error message when I execute 
 envCtx.lookup(jdbc/auctionDB):
 
 javax.naming.NamingException: Cannot create resource instance
  at 
 org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:189)
  at 
 javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:834)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
  at org.apache.jsp.happyaxis_jsp._jspService(happyaxis_jsp.java:297)
  at 
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
  at 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
  at 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
  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.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
  at 
 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  at 
 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at 
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
  at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
  at 
 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  at 
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
  at 
 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
  at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
  

RE: How come no one's is replying

2002-10-18 Thread Robert L Sowders
Actually,

We have this list of users that we definitely don't want to help.  I'll 
probably get banned for this, but I've had it with the out right 
unfairness of it all.  I'll gladly send you a copy for $50.00.  :-)

Really though to answer the question. 

It's a busy list and most of us just cruise the subject lines, so guess 
what, no descriptive subject line, no answer.

rls





Steve R Burrus [EMAIL PROTECTED]
10/17/2002 01:08 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:RE: How come no one's is replying

John, you admonished me some time ago about the particular way in which 
you think
that you percieved my posting to the newsgroup, if you remember!! I don't 
know
this Lior guy from Adam, but I DO think that he has something when he 
accuses u of
seeming to want things your way in this newsgroup all the time!! Are you 
some
kind of a perfectionist, and want everyone else to be that way also??? 
***

--- Turner, John [EMAIL PROTECTED] wrote:
 
 Thanks for your comments.  You might take the URL that George Sexton 
posted
 seriously.  You'd be amazed at the quality, free support you can get 
when
 you aren't so petulant and demanding.
 
 Have a great day!
 
 John
 
  -Original Message-
  From: Lior Shliechkorn [mailto:liorshliech;yahoo.com]
  Sent: Thursday, October 17, 2002 3:09 PM
  To: Tomcat Users List
  Subject: RE: How come no one's is replying
  
  
  
  John, John,
  We don't need to get into this again...I understand your need 
  to have everything your way and it's not that I don't 
  appreciate what people had done to assist (or try to assist). 
  However, I'm not asking the same complex questions that I see 
  others ask, being that I am very new to this and don't 
  understand much of the complexities and strict rules that 
  Tomcat requires.
  In order not to hear from you the way I usually do I even 
  included my code with the e-mail...and being that I am a nice 
  person I will refrain from using certain words which I am 
  sure you can sense are underlying much of what I'm saying.
  So if you feel the need to skip over my inquiries feel free to do so.
  Take care, and thanks for your efforts of trying to moderate 
  posts to your liking.
   Turner, John [EMAIL PROTECTED] wrote:
  Now come on, are we going to have this conversation again?
  
  As I recall, several people, me included, spent a 
  considerable amount of
  time answering your questions earlier this week.
  
  Did you ever consider that perhaps people don't have the 
  answer, and don't
  want to waste your time (or their's) sending you on a wild 
  goose chase?
  
  John
  
   -Original Message-
   From: Lior Shliechkorn [mailto:liorshliech;yahoo.com]
   Sent: Thursday, October 17, 2002 2:38 PM
   To: Tomcat
   Subject: How come no one's is replying
   
   
   
   I've been posting messages and I see other people picking up 
   other people's requests for help and no one pays any 
   attention to mine.
   
   
   
   -
   Do you Yahoo!?
   Faith Hill - Exclusive Performances, Videos,  more
   faith.yahoo.com
   
  
  --
  To unsubscribe, e-mail: 
  For additional commands, e-mail: 
  
  
  
  -
  Do you Yahoo!?
  Faith Hill - Exclusive Performances, Videos,  more
  faith.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
 
 
 


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.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




DOES BASIC AUTHENTICATION SUPPORT SSL?

2002-10-18 Thread Luca Ventura
Hello everybody!

I have IIS as Web Server and Tomcat 4.x as Servlet Container (using the
ISAPI filter).
So all requests directed to servlets, jsp-pages, or
java-technology based web sites are redirected to Tomcat 4.x from IIS.
I have installed in IIS a digital certificate to support HTTPS
protocol.

Let's suppose my web domain is: www.mydomain.com

and that my java-technology based web site is in the /javasite folder.
So to access to it in a secure way using HTPPS I must type the url:

https://www.mydomanin.com/javasite/index.html

First of all I would like to have a confirmation of the following thing:

1) When I send data to the url above are all of them cripted from my Web
Browser and decrypted by ISS before redirecting them to Tomcat 4.x
(I haven't installed the same digital certificate in Tomcat because
I don't use it as a Web Server)?

Then I need to know:

2)I want to protect some servlets and jsp-pages with an access login and
password:
So I used the BASIC authentication of Tomcat: in this way when I user
try to connect to a protected servlet or jsp-page the  Servlet Container
Tomcat asks to
the user to insert a login and a password. If the url of the servler or
jsp-page
he tries to connect to is https based (for example:
https://www.mydomanin.com/javasite/MyServet) are both login and password
crypted before sending them to Tomcat (I think that IIS should receive ,
decrypt and forward
them to Tomcat)?


I hope someone can help me.

Thanks everybody in advance!

   Luca




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




AW: is this a bug ?

2002-10-18 Thread Ralph Einfeldt
Is that the complete statcktrace ?

Isn't there a root cause ?

 -Ursprüngliche Nachricht-
 Von: Ricardo de Souza Moura [mailto:ricsouzamoura;hotmail.com]
 Gesendet: Donnerstag, 17. Oktober 2002 16:15
 An: [EMAIL PROTECTED]
 Betreff: is this a bug ?
 
 Does anybody knows about this error ? Please 
 
 2002-10-17 10:16:24 StandardWrapperValve[action]: 
 Servlet.service() for 
 servlet action threw exception
 javax.servlet.ServletException: Servlet execution threw an exception

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




Re: expression ALWAYS evaluates to if... NEVER to else

2002-10-18 Thread Jacob Kjome
Hello Z.BEAT,

If these are both java String objects then all you are comparing is if
the memory location of string object #1 is the same as that of String
object #2.  This is probably not true.  You need to compare like this.

if (paramPassword.equals(secretCode)) {

} else {

}

You can only count on the == operator to compare an object to null
or to compare simple data types such as int, boolean, long, etc

Jake

Thursday, October 17, 2002, 12:57:35 PM, you wrote:

ZB In the following code snippet, the expression ALWAYS
ZB evaluates to the if statement block:

ZB String paramPassword =
ZB request.getParameter(paramPassword);
ZB String secretCode = secret;

ZB if(paramPassword != secretCode)
ZB {

ZB }
ZB else
ZB {

ZB }

ZB However, my debugging flags that I send in an HTML
ZB comment CLEARLY show that the two variables have the
ZB same value:

ZB !-- DEBUG FLAGS
ZB paramPassword: secret
ZBsecretCode: secret
--

ZB What is going on?   Am I missing something obvious?

ZB Thanks!

ZB __
ZB Do you Yahoo!?
ZB Faith Hill - Exclusive Performances, Videos  More
ZB http://faith.yahoo.com

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



-- 
Best regards,
 Jacobmailto:hoju;visi.com


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




newbie question on connectors

2002-10-18 Thread BillP
I'm completely new to Tomcat.  We looking at switching to it from JRun
because version 4 seems to be increasing the bugs rather than decreasing.

I've installed Tomcat (4.1.12) on my local dev machine to test it out and
everything went fine.  Surprisingly easy install.  Kudos to Apache.

However, I'm really confused about connectors for IIS (IIS 5 in my case).
There seems to be several different connectors and a couple version a piece.
I'm not even sure which one to use.  My best guess is jk2?  The docs seem to
indicate that the three components are isapi_redirect.dll,
workers.properties, uriworkermap.properties.  I can't find these anywhere in
the Tomcat distribution.  In the download area I can find those in the
release 3 but not in release 4.  In the
/builds/jakarta-tomcat-connectors/jk2/release/v2.0.1/bin/win32 directory, I
find isapi_redirector2.dll
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0
.1/bin/win32/isapi_redirector2.dll , perhaps a new version, but not a zip
with the properties file.  I downloaded the connector source build and found
workers2.properties but not the other.  So I'm pretty confused about all
this connector stuff.

Any directions, help, pointers would be appreciated.

thanks




bill page 
[EMAIL PROTECTED] 
Digital Garden Software, Inc. 
856 US Hwy 206 Bldg B Ste 15 
Hillsborough, NJ 08844 
908.904.0664 




WHY DOES TOMCAT SUSPEND ITSELF?

2002-10-18 Thread Luca Ventura
Hello everybody!

I have Tomcat 4.x as Servlet Container and I have seen that sometimes the
following strange thing happens

When Tomcat doesn't receive requests for a period of time (that can take
minutes or hours) it suspends
itself and I must restart the service manually because Tomcat doesn't answer
to the users' requests any more. In fact when this happens and then a user
tries to connect to Tomcat he waits for an answer forever
without success until the connection is closed by the Web Browser because it
is timed out.

Is there some setting in Tomcat to avois this? Has someone already had such
problem? If yes, how did
he solve it?

I hope someone can help me

Thanks in advance.


Luca





RE: socket permission catalina.policy question

2002-10-18 Thread Andrew Cheng
 Euh...Can you post your catalina.policy file? Maybe another permissions
 is conflicting with the one you try to define. I'm doing some tests here
 without any problems...

 -- Jeanfrancois

Below is my policy file.  (myApplication contains several servlets. Inside a
privileged block, myServlet calls a method defined in jdom.jar in order to
check some XML.  This method tries to get the DTD from
http://the.third.machine:8080/dtd/my.dtd but encounters a socket permission
exception.) By the way, thanks for sticking with this!

Keep in mind that I am trying to grant boat loads of permissions in order to
get it to work and when it does work I will take away those unnecessary
permissions for security's sake.

/* AUTOMATICALLY GENERATED ON Thu Oct 17 11:01:15 EDT 2002*/
/* DO NOT EDIT */

grant codeBase file:${java.home}/lib/- {
  permission java.security.AllPermission;
};

grant codeBase file:${java.home}/jre/lib/ext/- {
  permission java.security.AllPermission;
};

grant codeBase file:${java.home}/../lib/- {
  permission java.security.AllPermission;
};

grant codeBase file:${java.home}/lib/ext/- {
  permission java.security.AllPermission;
};

grant codeBase file:${catalina.home}/bin/bootstrap.jar {
  permission java.security.AllPermission;
};

grant codeBase file:${catalina.home}/common/- {
  permission java.security.AllPermission;
};

grant codeBase file:${catalina.home}/server/- {
  permission java.security.AllPermission;
};

grant codeBase file:${catalina.home}/lib/- {
  permission java.security.AllPermission;
};

grant codeBase file:${catalina.home}/classes/- {
  permission java.security.AllPermission;
};

grant {
  permission java.util.PropertyPermission java.home, read;
  permission java.util.PropertyPermission java.naming.*, read;
  permission java.util.PropertyPermission javax.sql.*, read;
  permission java.util.PropertyPermission os.name, read;
  permission java.util.PropertyPermission os.version, read;
  permission java.util.PropertyPermission os.arch, read;
  permission java.util.PropertyPermission file.separator, read;
  permission java.util.PropertyPermission path.separator, read;
  permission java.util.PropertyPermission line.separator, read;
  permission java.util.PropertyPermission java.version, read;
  permission java.util.PropertyPermission java.vendor, read;
  permission java.util.PropertyPermission java.vendor.url, read;
  permission java.util.PropertyPermission java.class.version, read;
  permission java.util.PropertyPermission java.specification.version,
read;
  permission java.util.PropertyPermission java.specification.vendor,
read;
  permission java.util.PropertyPermission java.specification.name, read;
  permission java.util.PropertyPermission java.vm.specification.version,
read;
  permission java.util.PropertyPermission java.vm.specification.vendor,
read;
  permission java.util.PropertyPermission java.vm.specification.name,
read;
  permission java.util.PropertyPermission java.vm.version, read;
  permission java.util.PropertyPermission java.vm.vendor, read;
  permission java.util.PropertyPermission java.vm.name, read;
  permission java.lang.RuntimePermission accessClassInPackage.sun.beans.*;
  permission java.util.PropertyPermission jaxp.debug, read;
  permission java.net.SocketPermission the.third.machine:8080, accept,
connect, listen, resolve;
  permission java.security.AllPermission;
};

grant codeBase file:${catalina.home}/myApplication/WEB-INF/lib/jdom.jar!/-
{
  permission java.net.SocketPermission the.third.machine:8080, accept,
connect, listen, resolve;
  permission java.security.AllPermission;
};

grant codeBase file:${catalina.home}/myApplication/- {
  permission java.net.SocketPermission the.third.machine:8080, accept,
connect, listen, resolve;
};

grant codeBase file:${catalina.home}/WEB-INF/classes/- {
  permission java.net.SocketPermission the.third.machine:8080, accept,
connect, listen, resolve;
};

grant codeBase file:${catalina.home}/myApplication/myServlet/lib/jdom.jar
{
  permission java.security.AllPermission;
  permission java.net.SocketPermission the.third.machine:8080, accept,
connect, listen, resolve;
};

grant codeBase
file:${catalina.home}/myApplication/myServlet/lib/jdom.jar!/- {
  permission java.security.AllPermission;
};

grant codeBase file:${catalina.home}/myApplication/myServlet/- {
  permission java.security.AllPermission;
  permission java.net.SocketPermission the.third.machine:8080, accept,
connect, listen, resolve;
};


 -Original Message-
 From: Jean-Francois Arcand [mailto:jfarcand;apache.org]
 Sent: Thursday, October 17, 2002 11:41 AM
 To: Tomcat Users List
 Subject: Re: socket permission catalina.policy question


 Euh...Can you post your catalina.policy file? Maybe another permissions
 is conflicting with the one you try to define. I'm doing some tests here
 without any problems...

 -- Jeanfrancois

 Andrew Cheng wrote:

 Sorry, I forgot to mention that a guy on the project decided
 to be clever and he put the application in a 

RE: expression ALWAYS evaluates to if... NEVER to else

2002-10-18 Thread Sexton, George
You need to learn how java compares objects and strings. The short story is:

if(!paramPassword.equals(secretCode))
{

}
else
{

}

-Original Message-
From: Z.BEAT [mailto:zackbeatty;yahoo.com]
Sent: 17 October, 2002 11:58 AM
To: Tomcat Users List
Subject: expression ALWAYS evaluates to if... NEVER to else


In the following code snippet, the expression ALWAYS
evaluates to the if statement block:

String paramPassword =
request.getParameter(paramPassword);
String secretCode = secret;

if(paramPassword != secretCode)
{

}
else
{

}

However, my debugging flags that I send in an HTML
comment CLEARLY show that the two variables have the
same value:

!-- DEBUG FLAGS
paramPassword: secret
   secretCode: secret
--

What is going on?   Am I missing something obvious?

Thanks!

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.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




Subclassing the Session object

2002-10-18 Thread Nick Sharples

Hi,

I'd like to subclass the Session object and I thought there was a
configuration option somewhere to allow for this. Does anyone know how
to configure which class is used for the Session?

Cheers

..Nick

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




Re: Best practices question

2002-10-18 Thread Craig R. McClanahan


On Thu, 17 Oct 2002, Qmail List wrote:

 Date: Thu, 17 Oct 2002 15:03:27 -0400
 From: Qmail List [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Best practices question


 I have been wondering about this as well. Apache screams and hollers
 BIG_SECURITY_HOLE if you compile it with the flags allowing it to run as
 root.

 That said, I love the fact that Tomcat runs as root. It makes it easy for
 your webapp to do things admin applications, servers, and networks from a
 web interface.

 But at what cost? Of course it would be best to run Tomcat as nobody or
 tomcat user or whoever, but if your app needs some root permission at the OS
 level, is it OK to run as root?

 I'd imagine the root OK concept must be due to the underlying Java, but
 can't really see why or how. Anyone know?


 Great product this Tomcat. Kudos to all involved.


Consider the following JSP page:

%
  Runtime.exec(/sbin/halt);
%

(or an equivalent servlet, but let's just make it simple for now).

If I am able to break in to your system and store a copy of this JSP page
in a directory visible through Tomcat (running as root), I can shut your
computer down -- even if I broke in to a non-privileged account that
cannot execute the command directly.

Or, if I was in a nastier mood, think about the impact of rm -R /*.

Security is all about maximizing the difficulty of breaking in, and
minimizing the impact of what an attacker can do when they succeed
(there's no such thing as absolute prevention).

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: How to get a message shown immediately by the browser?

2002-10-18 Thread Andreas Probst
Hi Zsolt,

there was a message from Craig R. McClanahan on Tuesday, 
September 10, 2002 10:48 PM. He wrote:

 ...
 * You are opening an HTML element like table or p and not
 closing it
   before the flush, and writing to a browser that does not
   incrementally render (like Netscape 4.x).
 ...
 Counting on incremental output being visible is a very chancy
 bet.

Maybe this explains the delay.

Andreas



On 17 Oct 2002 at 15:40, Zsolt Koppany wrote:

 Hi,
 
 My servlet can run a long time and I would like to give the user some feedback 
 about that. I write html...body... to the browser and execute a 
 out.flush() and response.flushBuffer() bit at least mozilla-1.0.1 still needs 
 a long time to get the message shown.
 
 How can I get the browser show a message as fast as possible?
 
 Zsolt


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




Re: DBCP borrowObject failed: null

2002-10-18 Thread Felipe Schnack
  This is a know bug or what??

On Thu, 2002-10-17 at 13:50, Leo Przybylski wrote:
 Yes, it returns the exceptionally immediately ignoring the maxWait
 parameter.
 
 -Leo
 http://www.foopan.ath.cx
 
 On Thu, 2002-10-17 at 03:40, Felipe Schnack wrote:
Hey, when you got all the connection from the pool and want to get
  more the datasource throws an exception??? I thougth it would lock the
  request thread...
  
  On Thu, 2002-10-17 at 00:56, Craig R. McClanahan wrote:
   
   
   On 16 Oct 2002, Leo Przybylski wrote:
   
Date: 16 Oct 2002 17:06:22 -0700
From: Leo Przybylski [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: DBCP borrowObject failed: null
   
Hello,
   
I am getting the above error after several requests for database
connections to DBCP. I am using Tomcat 4.1.10 and mysql database. All
goes well and then I suddenly start seeing DBCP borrowObject failed:
null
   
   
   That is exactly what should happen if you've set a maxActive limit on your
   pool, and you try to check out more connections than that (either because
   of a high simultaneous request count, and/or because you've failed to
   return one or more previously allocated connections to the pool).
   
Does anyone know what might be wrong?
   
-Leo
http://www.foopan.ath.cx
   
   Craig
   
   
   --
   To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
   For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
   
  -- 
  
  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
  
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
 
-- 

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: is this a bug ?

2002-10-18 Thread Shapira, Yoav
Hi,
There should have been a root cause and another stack trace attached to
that message...

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Ricardo de Souza Moura [mailto:ricsouzamoura;hotmail.com]
Sent: Thursday, October 17, 2002 10:15 AM
To: [EMAIL PROTECTED]
Subject: is this a bug ?

Does anybody knows about this error ? Please 

2002-10-17 10:16:24 StandardWrapperValve[action]: Servlet.service() for
servlet action threw exception
javax.servlet.ServletException: Servlet execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
nFilterChain.java,
Compiled Code)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
hain.java,
Compiled Code)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
ava,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
Compiled Code)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
ve.j
ava,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
Compiled Code)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java,
Compiled Code)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
alve
.java,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
Compiled Code)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.jav
a,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
Compiled Code)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java,
Compiled
Code)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java,
Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)


_
MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com


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


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: ajpv12_handle_response, Error reading header line

2002-10-18 Thread Matt Clark
Same email, I just fixed the formatting in the log.  Sorry for the
repeat.

-Original Message-
From: Matt Clark 
Sent: Thursday, October 17, 2002 12:54 PM
To: [EMAIL PROTECTED]
Subject: ajpv12_handle_response, Error reading header line


I apologize for the question on an older version, but I'm trying to
install a webapp on a box where I can't upgrade.
 
I've deployed my servlet with the attached configuration, and every time
I POST to it, I see the following in mod_jk.log:
 
[jk_worker.c (123)]: Into wc_get_worker_for_name ajp12 
[jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker 
[jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint 
[jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service 
[jk_connect.c (108)]: Into jk_open_socket 
[jk_connect.c (115)]: jk_open_socket, try to connect socket = 8 
[jk_connect.c (124)]: jk_open_socket, after connect ret = 0 
[jk_connect.c (132)]: jk_open_socket, set TCP_NODELAY to on 
[jk_connect.c (140)]: jk_open_socket, return, sd = 8 
[jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = 8 
[jk_ajp12_worker.c (357)]: Into ajpv12_handle_request 
[jk_ajp12_worker.c (361)]: ajpv12_handle_request, sending the ajp12
start sequence 
[jk_ajp12_worker.c (413)]: ajpv12_handle_request, sending the headers 
[jk_ajp12_worker.c (432)]: ajpv12_handle_request, sending the
terminating mark 
[jk_ajp12_worker.c (445)]: ajpv12_handle_request, sending the request
body 
[jk_ajp12_worker.c (459)]: ajpv12_handle_request, read 717 bytes 
[jk_ajp12_worker.c (467)]: ajpv12_handle_request, sent 717 bytes 
[jk_ajp12_worker.c (472)]: ajpv12_handle_request done 
[jk_ajp12_worker.c (148)]: In jk_endpoint_t::service, sent request 
[jk_ajp12_worker.c (488)]: Into ajpv12_handle_response 
[jk_ajp12_worker.c (498)]: ajpv12_handle_response, error reading header
line 
[jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done
 
 
When I point my browser to http://servername/foo/bar, tomcat gives me
the directory listing.  When my client posts to it (this is for a web
service btw), it gets returned 500 internal server error, and the above
log shows up.
 
Any ideas?
 
Thanks,
Matt
 
 
 
web.xml
---
 
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
 
web-app
 
servlet
servlet-nameBar/servlet-name
servlet-classcom.foo.BarServlet/servlet-class
/servlet
 
servlet-mapping
servlet-nameBar/servlet-name
url-pattern/bar/url-pattern
/servlet-mapping
 
/web-app
 
 
context from server.xml, ajp12 and ajp13 are both enabled.
---
Context path=/foo docBase=/var/tomcat/webapps/FooServer debug=9
reloadable=true/

httpd.conf relevant sections
-
LoadModule jk_module libexec/mod_jk.so
AddModule mod_jk.c
JkWorkersFile /var/tomcat/conf/workers.properties
JkLogFile /var/tomcat/logs/mod_jk.log
JkLogLevel debug
 
JkMount /foo/* ajp12
 

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




Re: Servlet directory?

2002-10-18 Thread Kwok Peng Tuck
It's under this directory, /WEB-INF/lib or /WEB-INF/classes of any 
webapp that you have.
Then define the servlet for the web app in web.xml .
There are quite a few good examples on this that ship with many jakarta 
projects. So download a few and take a peek at it.



Jørgen Ramskov wrote:

Hi I'm trying to some software called ArcIMS.

It asks for the webservers servlet directory and in the readme it gives
some examples:

=== Cut ===
Installing ArcIMS Servlet Connector

The ArcIMS Servlet Connector directory, \com, must be copied to your Web
server's servlet directory in order to establish communication between your
Web server and the ArcIMS Application Server.

The following is a list of common Web servers and their servlet directories.
Apache 1.3.20 and Jakarta Tomcat 3.2

drive:\TOMCAT_HOME\webapps\ROOT\WEB-INF\classes
=== Cut ===

I'm however using Tomcat 4.1.12, where is the directory then?

Thanks.

--
Joergen

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




[OT] RE: How come no one's is replying

2002-10-18 Thread micael
Man this is confusing.  Does someone have a score card?

At 05:55 PM 10/17/2002 -0700, you wrote:

Actually,

We have this list of users that we definitely don't want to help.  I'll
probably get banned for this, but I've had it with the out right
unfairness of it all.  I'll gladly send you a copy for $50.00.  :-)

Really though to answer the question.

It's a busy list and most of us just cruise the subject lines, so guess
what, no descriptive subject line, no answer.

rls





Steve R Burrus [EMAIL PROTECTED]
10/17/2002 01:08 PM
Please respond to Tomcat Users List


To: Tomcat Users List [EMAIL PROTECTED]
cc:
Subject:RE: How come no one's is replying

John, you admonished me some time ago about the particular way in which
you think
that you percieved my posting to the newsgroup, if you remember!! I don't
know
this Lior guy from Adam, but I DO think that he has something when he
accuses u of
seeming to want things your way in this newsgroup all the time!! Are you
some
kind of a perfectionist, and want everyone else to be that way also???
***

--- Turner, John [EMAIL PROTECTED] wrote:

 Thanks for your comments.  You might take the URL that George Sexton
posted
 seriously.  You'd be amazed at the quality, free support you can get
when
 you aren't so petulant and demanding.

 Have a great day!

 John

  -Original Message-
  From: Lior Shliechkorn [mailto:liorshliech;yahoo.com]
  Sent: Thursday, October 17, 2002 3:09 PM
  To: Tomcat Users List
  Subject: RE: How come no one's is replying
 
 
 
  John, John,
  We don't need to get into this again...I understand your need
  to have everything your way and it's not that I don't
  appreciate what people had done to assist (or try to assist).
  However, I'm not asking the same complex questions that I see
  others ask, being that I am very new to this and don't
  understand much of the complexities and strict rules that
  Tomcat requires.
  In order not to hear from you the way I usually do I even
  included my code with the e-mail...and being that I am a nice
  person I will refrain from using certain words which I am
  sure you can sense are underlying much of what I'm saying.
  So if you feel the need to skip over my inquiries feel free to do so.
  Take care, and thanks for your efforts of trying to moderate
  posts to your liking.
   Turner, John [EMAIL PROTECTED] wrote:
  Now come on, are we going to have this conversation again?
 
  As I recall, several people, me included, spent a
  considerable amount of
  time answering your questions earlier this week.
 
  Did you ever consider that perhaps people don't have the
  answer, and don't
  want to waste your time (or their's) sending you on a wild
  goose chase?
 
  John
 
   -Original Message-
   From: Lior Shliechkorn [mailto:liorshliech;yahoo.com]
   Sent: Thursday, October 17, 2002 2:38 PM
   To: Tomcat
   Subject: How come no one's is replying
  
  
  
   I've been posting messages and I see other people picking up
   other people's requests for help and no one pays any
   attention to mine.
  
  
  
   -
   Do you Yahoo!?
   Faith Hill - Exclusive Performances, Videos,  more
   faith.yahoo.com
  
 
  --
  To unsubscribe, e-mail:
  For additional commands, e-mail:
 
 
 
  -
  Do you Yahoo!?
  Faith Hill - Exclusive Performances, Videos,  more
  faith.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





__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.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

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  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: Window doesnt close on shutdown

2002-10-18 Thread Adam Greene
Does the title bar say Finished??

-Original Message-
From: RXZ JLo [mailto:rufoo2001;yahoo.com]
Sent: Wednesday, October 16, 2002 9:33 AM
To: [EMAIL PROTECTED]
Subject: Window doesnt close on shutdown


I use tomcat4.0.4 on windows 2000.
When I shutdown tomcat, the window
just shows
Stopping Tomcat-Apache and standalone
and doesnt close on itself.

Does this mean my application hasnt
closed properly?

Thanks,
rf



__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.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: is this a bug ?

2002-10-18 Thread Ricardo de Souza Moura
I am using jdk1.3.1 with Tomcat 4.1.10.

Is there somewhere in your code where your trying to append an array of
stringbuffers to a stringbuffer?
No !!!

I am using Struts Framework from Apache Jakarta !!! I don't know if they use 
this !!!





From: Shapira, Yoav [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: is this a bug ?
Date: Thu, 17 Oct 2002 10:43:39 -0400

Hi,
Kind of a strange error.  You're using the JDK (not JRE) right?  What
version?  What version of tomcat?

Is there somewhere in your code where your trying to append an array of
stringbuffers to a stringbuffer?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Ricardo de Souza Moura [mailto:ricsouzamoura;hotmail.com]
Sent: Thursday, October 17, 2002 10:27 AM
To: [EMAIL PROTECTED]
Subject: RE: is this a bug ?

Yes !!!
this:

- Root Cause -
java.lang.NoSuchMethodError: java.lang.StringBuffer: method
append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not found
at
org.apache.catalina.connector.HttpRequestBase.parseParameters(HttpReque
stBa
se.java,
Compiled Code)
at
org.apache.catalina.connector.HttpRequestBase.getParameterNames(HttpReq
uest
Base.java,
Compiled Code)
at
org.apache.catalina.connector.RequestFacade.getParameterNames(RequestFa
cade
.java,
Compiled Code)
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java,
Compiled Code)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProces
sor.
java,
Compiled Code)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java
,
Compiled Code)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java,
Compiled
Code)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java,
Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled
Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled
Code)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
nFilterChain.java,
Compiled Code)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
hain.java,
Compiled Code)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
ava,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
Compiled Code)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
ve.j
ava,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
Compiled Code)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java,
Compiled Code)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
alve
.java,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
Compiled Code)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.jav
a,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
Compiled Code)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java,
Compiled
Code)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java,
Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)







From: Shapira, Yoav [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: is this a bug ?
Date: Thu, 17 Oct 2002 10:18:22 -0400


Ok people

2002-10-18 Thread Lior Shliechkorn

Listen,

I admit that I may have asked questions that some may not have understood ( I did get 
help and I'm not overlooking that). I'm here for the same reason we all are. I need 
help with some things, and maybe when I gain enough experience and knowledge I will be 
able to return the favor.

Limited knowledge, and often confusion, doesn't attribute to questions being asked in 
the same way that you, who have that knowledge, would like things phrased. I don't 
need people to gang up on me and tell me that I'm being rude and arrogant in the way 
I ask things (and been riding me every chance that specific person got), or refer me 
to idiots guide to asking questions. It's not fair and I'm not going to be 
discouraged by that kind of initimidation. 

You have my apologies,

Lior



-
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos,  more
faith.yahoo.com


Re: John Turner or someone who responsible for Posting -- Re: How toApache2, Tomcat4.1.2, JK2 ?

2002-10-18 Thread Robert L Sowders
Oops, forgot to mention.

Once you set everything up as xml then changing the docs to different 
formats is pretty much a snap.  Transformers for http, text, and pdf are 
very common and available.  You could conceivably make the docs available 
in any format known.  Or language for that matter, but that is another 
topic.

rls

 




Robert L Sowders [EMAIL PROTECTED]
10/17/2002 07:24 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re: John Turner or someone who responsible for Posting -- Re: 
How to 
Apache2, Tomcat4.1.2, JK2 ?

Hi Again,

I had this discussion a couple of weeks ago and there was allot of 
interest in helping with the docs.  The stumbling point as I see it is 
people just don't know how to submit changes to existing material or for 
that matter new material.

If you want to write whole chapters then;
Basically, very basically, what you do is get the tools necessary to 
participate in a xml documentation project.  Then you'll need the DTDs and 

style templates that are already being used for the current documentation. 

 These are available via anonymous cvs.  If you are making new pages or 
chapters then you'll need the above stuff to view it locally and see if 
it's correct.  Then you'll have to post it to the Tomcat-dev list and 
someone there will review it and commit it, if it applies. 

If your just correcting or extending an existing page;
All you need to do is download your target via cvs, do your corrections 
with any text editor and then diff it using cvs and post it to the 
Tomcat-dev mailing list.  Someone there with commit privs will look at it 
and commit it, if it's deemed ok.

Actually the dev list people are pretty good about accepting the changes 
when they get them, but there is a gap in showing everyone how to 
contribute, so they just don't get much to work with.

So if you want to start your OWN documentation effort then the first thing 

you need to do is set up a cvs server.  You will need to decide on what 
style your book should take, there are lots of examples out there.  Then 
you set up a cvs root and start loading your docs.  That way people who 
want to participate can download your xml style sheet, DTD's, xsl stuff 
and everyone would be on the same sheet of music.   I would also recommend 

using cvsview so people could download stuff via http.

You will also need some kind of mailing list so people who want to send in 

patches will have a place to send them, and committers will have a place 
to discuss things.

Here's a pretty good description of what I'm trying to say, about xml. 
http://httpd.apache.org/docs-project/docsformat.html
Here's a pretty good description of how the whole thing works. 
http://apache-server.com/tutorials/ATdocs-project.html

Hope this helps,

rls





yoom nguyen [EMAIL PROTECTED]
10/17/2002 02:26 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:John Turner or someone who resposible for Posting 
-- Re: How to Apache2, 
Tomcat4.1.2, JK2 ?

Hi John
You seems to be the one who would know where this question should go.
Is there a link on apache's web site for people to share their detail
(doc)work?  People like Robert Sowders, and other?

For the last two weeks I have seen many similar questions being asked 
over and over again by different people. If we can have a site that 
collecting this similar examples of different type of deployment.  Then 
we are as a community of open sources be better off.  You and everyone 
else will have more time to focus on the development instead of support 
it.

A place to allow others to share their implementation experiences. 
There are too many combination of implementation from OS (Solaris, 
Windows, Linux..) to the application version (apache, tomcat, jboss, 
jk, ant, .). 

I am volunter to host the site and have it link to apache/tomcat...site
However, I will need some help to get it up and running properly for
people to post their documentation and examples.  I will need some help 
on coding the upload documentation module for different type of format 
(such as text, doc, html..).  I will do the rest.  I am not a coder. 
What would you guys say 


Thanks, Yoom



--- Original Message -
From: Robert L Sowders [EMAIL PROTECTED]
Date: Thursday, October 17, 2002 4:03 pm
Subject: Re: How to Apache2, Tomcat4.1.2, JK2 ?

 Haven't tested with the latest, (I will later today), but this 
 should get 
 you going in the right direction.
 
 ftp://pokey.wr.usgs.gov/pub/rsowder
 
 Let me know.
 
 rls
 
 
 
 
 
 
 yoom nguyen [EMAIL PROTECTED]
 10/17/2002 11:13 AM
 Please respond to Tomcat Users List
 
 
To: [EMAIL PROTECTED]
cc: 
Subject:How to Apache2, Tomcat4.1.2, JK2 ?
 
 Does any one get this combination of Apache2.0.43, Tomcat4.1.2 and 
 JK2.2.0.2 to work and documented?  Would you share.
 
 

Anyone using HTTP-tunnel over RMI out there ?

2002-10-18 Thread achana
Anyone willing to take on this challenge ?
Trade info to make it work (or work better) ?
Must use Apache and Tomcat, make and model of backend database not
critical, but Oracle is preferred.

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




loading class

2002-10-18 Thread Marek Majtan
I cant't load class 
in Tomcat. For example code
Class.forName (xxx); throws exception.
what to do for that to work?
I've tried to put xxx.class file into
WEB-INF directories,but with no success.
Thanks for advise,
M.

Strnky o automobilech, novinky, autobazary, nov auta,
psluenstv, pojitn aut... http://automoto.volny.cz

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




Failed Build of Mod_Webapp

2002-10-18 Thread Curt LeCaptain
When I attempt to build mod_webapp, I get this failure during a Make on Red
Hat 7.3

/bin/sh
/usr/local/src/jakarta-tomcat-connectors-4.0.6-src/webapp/apr/libtool --sile
nt --mode=install \
  cp /usr/local/src/jakarta-tomcat-connectors-4.0.6-src/webapp/apr/apr
/usr/local/src/jakarta-tomcat-connectors-4.0.6-src/webapp/build/libs/apr
cp: omitting directory
`/usr/local/src/jakarta-tomcat-connectors-4.0.6-src/webapp/apr/apr'
make: *** [apr-build] Error 1


Any clue as to what this means?

Curt LeCaptain


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




Re: socket permission catalina.policy question

2002-10-18 Thread Jean-Francois Arcand
You need to add the something like that:

grant codeBase file:${catalina.home}/webapps/your app/- {
 permission java.net.SocketPermission dbhost.mycompany.com:5432, 
connect;
 permission java.net.SocketPermission *.noaa.gov:80, connect;
};

-- Jeanfrancois

Andrew Cheng wrote:

Quick question:

I have an applet that communicates with a servlet.  The servlet tries to
download a DTD file from a third machine.  It gets a socket permission
access denied exception.

I have wrapped the line of code in the servlet that downloads the file with
a privileged block.

The line of code calls a method inside a jar file.  I have used the policy
tool to grant all permissions to this jar file.  I have even tried granting
all permissions to all code temporarily!

I have made sure to use the -security option when starting tomcat.  I have
double checked this by looking at the log file and seeing that the security
manager is being used.

However, my servlet still gets a socket permission access denied exception.
The file I am trying to download is definitely downloadable from the machine
that the servlet is running on.  Please tell me what I have forgotten to do.

Thanks in advance,
Andrew
grant {
 permission java.security.AllPermission;
};

grant codeBase file:${catalina.home}/_/- {
 permission java.net.SocketPermission _:8080, accept, connect,
listen, resolve;
};

grant codeBase file:${catalina.home}/_/jdom.jar {
 permission java.security.AllPermission;
 permission java.net.SocketPermission _:8080, accept, connect,
listen, resolve;
};

grant codeBase file:${catalina.home}/_/jdom.jar!/- {
 permission java.security.AllPermission;
};


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




ERROR PAGE IN TOMCAT

2002-10-18 Thread Luca Ventura
Hello everybody!

I would like to show an html error-page that I have written
when an error happens in Tomcat (for example: PAGE NOT FOUND), instead of
that one
appears by default.

How can I do? Is there some setting in Tomcat to do this?

Best regards,

   Luca


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




RE: Window doesnt close on shutdown

2002-10-18 Thread RXZ JLo
I am creating two socket listeners in my webapp, am I
supposed to close them explicitly for the shutdown to
finish gracefully?

thanks,
rf

--- RXZ JLo [EMAIL PROTECTED] wrote:
 No. Should it?
 
 
 --- Adam Greene [EMAIL PROTECTED] wrote:
  Does the title bar say Finished??
  
  -Original Message-
  From: RXZ JLo [mailto:rufoo2001;yahoo.com]
  Sent: Wednesday, October 16, 2002 9:33 AM
  To: [EMAIL PROTECTED]
  Subject: Window doesnt close on shutdown
  
  
  I use tomcat4.0.4 on windows 2000.
  When I shutdown tomcat, the window
  just shows
  Stopping Tomcat-Apache and standalone
  and doesnt close on itself.
  
  Does this mean my application hasnt
  closed properly?
  
  Thanks,
  rf
  
  
  
  __
  Do you Yahoo!?
  Faith Hill - Exclusive Performances, Videos  More
  http://faith.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
  
 
 
 __
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos  More
 http://faith.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
 


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.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: is this a bug ?

2002-10-18 Thread Shapira, Yoav
Hi,

Can I use the jdk1.3.1 with Tomcat4 or not ?

Yes.  Download the heavier, non -LE-jdk14 version.

If you want to use tomcat 4 with JDK 1.4+, download the lighter,
-LE-jdk14 version.

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: How to get archived messages

2002-10-18 Thread Robert L Sowders
Here's another

https://mailman.real-time.com/mailman/listinfo/tomcat-users

rls





tk g [EMAIL PROTECTED]
10/17/2002 09:45 PM
Please respond to Tomcat Users List

 
To: [EMAIL PROTECTED]
cc: 
Subject:How to get archived messages


hi all,

i'm trying to configure tomcat4.1.1.2 with my IIS5.0 (w2k server)  found 
the list in

http://mikal.org/interests/java/tomcat/archive/view?mesg=55168 

there are attachements to this msg but i can't view them.  when i tried to 
get the msg  by emailing to get the thread  tomcat-user Digest of: 
thread.55168 

replied with 'msg not found'.

pls let me know how i can access to the msg  _attachments_ .. i don't 
want to send out ques if they'r already answered - i think the 
attachements in those msgs will help me.

thanks for your help.

tk



-
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos,  more
faith.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: IllegalStateException Error

2002-10-18 Thread Carl W. Jolly
try reset() ing the  response before sending the redirect. You should
not write to the response object if you are going to redirect/forward it
to another resources that will output to the  response object. 
response.reset();
also redirecting will not stop the thread from
executing the remainder of the code so you should
put in a return statement after the redirect





On Thu, 2002-10-17 at 11:12, Lior Shliechkorn wrote:
 
 
 
  From:Carl [EMAIL PROTECTED] on 10/17/2002 09:12 AM MST  
 
 
 
 



  I'm trying to do some checking on my pages that make sure that the
  user logged out and all the attributes that were bounded to the   
  session were destroyed (using session.invalidate() in the logout  
  page). However, I'm running into difficulties with 1 of my pages. 

  The check works fine on all the other pages except this one. I try to 
  response.sendRedirect() the page to the login page again, but it  
  seems to ignore it and I get errors that I can't forward after a  
  response has been committed. And other times it logs the user right   
  back in as if nothing happened after the user logged out...it's only  
  with this one page.   

  here's the code. I'm not sure what could be wrong:

  %@ page session=true %
  %@ page contentType=text/html;charset=WINDOWS-1252 %  
  %@ page import = java.util.*, java.sql.*, java.util.Vector.* %
  jsp:useBean id=pool class=ConnectionPool scope=application /  
  %
  response.setHeader(pragma, no-cache); 
  response.setHeader(Cache-Control, no-cache);  
  response.setHeader(Expires, 0);   

  Connection conn = null;   
  String asql = null;   
  Statement stmt = null;
  ResultSet rs = null;  
  String aUserID = null;
  String aPassword = null;  

  try   
  { 
 FB user = (FB) session.getAttribute(bean);   
  //*** 
  //  FormBean Exists   
  //*** 
 if (user != null)  
 {  
 aUserID = user.getUSER_ID();   
   aPassword = user.getPASSWORD();  
 }  
  //*** 
  //  No session bean exists
  //*** 
else
  { 
  response.sendRedirect(../html/ReLogin.html);
}   
  //
  // INITIALIZE THE POOL
  //
if (pool.getDriver() == null)   
{   
  pool.init();  
  pool.initializePool(); 

RE: Subclassing the Session object

2002-10-18 Thread Shapira, Yoav
Hi,
I don't know the direct answer to your question.

But I'm curious as to the use-case that's requiring you to subclass
HttpSession.  As opposed to, for example, binding your (Serializable)
objects to the session?  Thanks,

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Nick Sharples [mailto:nick;runtime-collective.com]
Sent: Thursday, October 17, 2002 11:50 AM
To: [EMAIL PROTECTED]
Subject: Subclassing the Session object


Hi,

I'd like to subclass the Session object and I thought there was a
configuration option somewhere to allow for this. Does anyone know how
to configure which class is used for the Session?

Cheers

..Nick

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


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


IllegalStateException Error

2002-10-18 Thread Lior Shliechkorn

I'm trying to do some checking on my pages that make sure that the user logged out and 
all the attributes that were bounded to the session were destroyed (using 
session.invalidate() in the logout page). However, I'm running into difficulties with 
1 of my pages.

The check works fine on all the other pages except this one. I try to 
response.sendRedirect() the page to the login page again, but it seems to ignore it 
and I get errors that I can't forward after a response has been committed. And other 
times it logs the user right back in as if nothing happened after the user logged 
out...it's only with this one page.

here's the code. I'm not sure what could be wrong:

% page session=true %
% page contentType=text/html;charset=WINDOWS-1252 %
% page import = java.util.*, java.sql.*, java.util.Vector.* %
jsp:useBean id=pool class=ConnectionPool scope=application /
%
response.setHeader(pragma, no-cache);
response.setHeader(Cache-Control, no-cache);
response.setHeader(Expires, 0);

Connection conn = null;
String asql = null;
Statement stmt = null;
ResultSet rs = null;
String aUserID = null;
String aPassword = null;

try
{
   FB user = (FB) session.getAttribute(bean);
//***
//  FormBean Exists
//***
   if (user != null) 
   {
   aUserID = user.getUSER_ID();
 aPassword = user.getPASSWORD();
   }
//***
//  No session bean exists
//***
  else 
{
response.sendRedirect(../html/ReLogin.html);
  }
//
// INITIALIZE THE POOL
//
  if (pool.getDriver() == null)
  {
pool.init();
pool.initializePool();
  }

  boolean aloginflag = false;
  conn = pool.getConnection();

  stmt = conn.createStatement();
  asql = getSqlStatement();
  System.out.println(asql);
  String accesscode = null;
  rs = stmt.executeQuery(asql);
  while (rs.next())
  {
  aloginflag = true;
System.out.println(Login successful!);
accesscode = rs.getString(ACCESS_CODE);
user.setACCESSCODE(accesscode);
System.out.println(accesscode);
  } // end while 
 
   if(aloginflag)
   {}
   else
   {
%
  jsp:forward page=../html/LoginError.html/jsp:forward
  %
   } 
   if (accesscode.equalsIgnoreCase(B))
   {
  %
jsp:forward page=daily.jsp/jsp:forward
%
   } // end if
   else if (accesscode.equalsIgnoreCase(C))
   {
  %
jsp:forward page=report2.jsp/jsp:forward
%
   } // end else if
   else if (accesscode.equalsIgnoreCase(G))
   {
  %
jsp:forward page=report.jsp/jsp:forward
%
   } // end else if
   else if (accesscode.equalsIgnoreCase(U))
   {
  %
jsp:forward page=news.jsp/jsp:forward
%
   } // end else if
   else
   {
  System.out.println(No account found in the database!);
  response.sendRedirect(../html/LoginError.html);
   } // end else
  }
  catch(SQLException e) 
  {
// Login SQL Error!
response.sendRedirect(../html/LoginError.html);
  }
  catch(ClassNotFoundException e) 
  {
  // Classname Error!
  response.sendRedirect(../html/DBConnError.html);
}
finally 
 {
  try 
   {
if (stmt != null) stmt.close();
   if (rs != null) rs.close();
if (conn != null ) pool.releaseConnection(conn);
  }
  catch (Exception sqlex) 
   {
response.sendRedirect(../html/LoginError.html);
  }
}
%

I find that it totally disregards the lines after the TRY statement and even after I 
log out I can still see that when I hit the back button it process the sql query and 
doesn't redirect. I tried to change the else (after the aloginflag) to a 
response.sendRedirect() and the page breaks...

What am I doing wrong?

Thanks,

Lior



-
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos,  more
faith.yahoo.com


RE: IllegalStateException Error

2002-10-18 Thread Cox, Charlie
ok, several problems here:
1. place a 'return;' after your sendRedirect()
2. remove unintended whitespace from your jsp:
change
   %
 jsp:forward page=daily.jsp/jsp:forward
 %

to
 %jsp:forward page=daily.jsp/jsp:forward%

3. post your error messages with stack trace. I happen to recognize
'response already committed', but others may not.

4. search the archives:
http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/
Illegalstateexception returns many hits and 'response already committed'
returns more specific to your problem. These will probably give you more
detail than I can remember right now.

#3 and #4 will help you get an answer quicker. Please also remember that not
everyone gets to all messages on the list within the 3 hours that you have
allowed.

Charlie

 -Original Message-
 From: Lior Shliechkorn [mailto:liorshliech;yahoo.com]
 Sent: Thursday, October 17, 2002 12:12 PM
 To: Tomcat
 Subject: IllegalStateException Error
 
 
 
 I'm trying to do some checking on my pages that make sure 
 that the user logged out and all the attributes that were 
 bounded to the session were destroyed (using 
 session.invalidate() in the logout page). However, I'm 
 running into difficulties with 1 of my pages.
 
 The check works fine on all the other pages except this one. 
 I try to response.sendRedirect() the page to the login page 
 again, but it seems to ignore it and I get errors that I 
 can't forward after a response has been committed. And other 
 times it logs the user right back in as if nothing happened 
 after the user logged out...it's only with this one page.
 
 here's the code. I'm not sure what could be wrong:
 
 % page session=true %
 % page contentType=text/html;charset=WINDOWS-1252 %
 % page import = java.util.*, java.sql.*, java.util.Vector.* %
 jsp:useBean id=pool class=ConnectionPool scope=application /
 %
 response.setHeader(pragma, no-cache);
 response.setHeader(Cache-Control, no-cache);
 response.setHeader(Expires, 0);
 
 Connection conn = null;
 String asql = null;
 Statement stmt = null;
 ResultSet rs = null;
 String aUserID = null;
 String aPassword = null;
 
 try
 {
FB user = (FB) session.getAttribute(bean);
 //***
 //  FormBean Exists
 //***
if (user != null) 
{
aUserID = user.getUSER_ID();
  aPassword = user.getPASSWORD();
}
 //***
 //  No session bean exists
 //***
   else 
 {
 response.sendRedirect(../html/ReLogin.html);
   }
 //
 // INITIALIZE THE POOL
 //
   if (pool.getDriver() == null)
   {
 pool.init();
 pool.initializePool();
   }
 
   boolean aloginflag = false;
   conn = pool.getConnection();
 
   stmt = conn.createStatement();
   asql = getSqlStatement();
   System.out.println(asql);
   String accesscode = null;
   rs = stmt.executeQuery(asql);
   while (rs.next())
   {
   aloginflag = true;
 System.out.println(Login successful!);
 accesscode = rs.getString(ACCESS_CODE);
 user.setACCESSCODE(accesscode);
 System.out.println(accesscode);
   } // end while 
  
if(aloginflag)
{}
else
{
 %
   jsp:forward page=../html/LoginError.html/jsp:forward
   %
} 
if (accesscode.equalsIgnoreCase(B))
{
   %
 jsp:forward page=daily.jsp/jsp:forward
 %
} // end if
else if (accesscode.equalsIgnoreCase(C))
{
   %
 jsp:forward page=report2.jsp/jsp:forward
 %
} // end else if
else if (accesscode.equalsIgnoreCase(G))
{
   %
 jsp:forward page=report.jsp/jsp:forward
 %
} // end else if
else if (accesscode.equalsIgnoreCase(U))
{
   %
 jsp:forward page=news.jsp/jsp:forward
 %
} // end else if
else
{
   System.out.println(No account found in the database!);
   response.sendRedirect(../html/LoginError.html);
} // end else
   }
   catch(SQLException e) 
   {
 // Login SQL Error!
 response.sendRedirect(../html/LoginError.html);
   }
   catch(ClassNotFoundException e) 
   {
   // Classname Error!
   response.sendRedirect(../html/DBConnError.html);
 }
 finally 
  {
   try 
{
 if (stmt != null) stmt.close();
if (rs != null) rs.close();
 if (conn != null ) pool.releaseConnection(conn);
   }
   catch (Exception sqlex) 
{
 response.sendRedirect(../html/LoginError.html);
   }
 }
 %
 
 I find that it totally disregards the 

Java Connectors in Tomcat?

2002-10-18 Thread Extance, Paul
Is there plans to allow the Tomcat container to support the JCA part of the
J2EE Spec. I have a JSP(Struts)/JDO based app, that runs on Tomcat, no EJB's
in site. If i want to use a 3rd party connector (like SAP) do i now need a
EJB type container like JBoss, or is Tomcat planning to support JCA some
time in the future?

If this is a stupid question i apologies, just trying to get my head round
the JCA stuff and what it means to my deployment!

Thanx

PaulE

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




RE: Window doesnt close on shutdown

2002-10-18 Thread RXZ JLo
Yes the tomcat process (java.exe) is still in the task
manager. Also on shutdown the process is taking in
additional memory, I am not sure if it is my app or
tomcat that is taking the additional memory of around
20mb.



--- Robert L Sowders [EMAIL PROTECTED] wrote:
 Do you still see the tomcat process in the task
 manager?  If not is there 
 a -w in the target field of the properties for the
 shortcut for Tomcat 
 stop?
 
 rls
 
 
 
 
 RXZ JLo [EMAIL PROTECTED]
 10/17/2002 09:12 PM
 Please respond to Tomcat Users List
 
  
 To: Tomcat Users List
 [EMAIL PROTECTED]
 cc: 
 Subject:RE: Window doesnt close on
 shutdown
 
 I am creating two socket listeners in my webapp, am
 I
 supposed to close them explicitly for the shutdown
 to
 finish gracefully?
 
 thanks,
 rf
 
 --- RXZ JLo [EMAIL PROTECTED] wrote:
  No. Should it?
  
  
  --- Adam Greene [EMAIL PROTECTED] wrote:
   Does the title bar say Finished??
   
   -Original Message-
   From: RXZ JLo [mailto:rufoo2001;yahoo.com]
   Sent: Wednesday, October 16, 2002 9:33 AM
   To: [EMAIL PROTECTED]
   Subject: Window doesnt close on shutdown
   
   
   I use tomcat4.0.4 on windows 2000.
   When I shutdown tomcat, the window
   just shows
   Stopping Tomcat-Apache and standalone
   and doesnt close on itself.
   
   Does this mean my application hasnt
   closed properly?
   
   Thanks,
   rf
   
   
   
  
 __
   Do you Yahoo!?
   Faith Hill - Exclusive Performances, Videos 
 More
   http://faith.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
   
  
  
  __
  Do you Yahoo!?
  Faith Hill - Exclusive Performances, Videos  More
  http://faith.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
  
 
 
 __
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos  More
 http://faith.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
 


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.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: John Turner or someone who responsible for Posting -- Re: How toApache2, Tomcat4.1.2, JK2 ?

2002-10-18 Thread Robert L Sowders
Sure,

I'll pitch in.  I'm pretty up on the windows junk.  I should be able to 
have something for you fairly quick.  Are you going to do the cvs thing? 
I'm used to that and all the other doc projects use it.

rls





yoom nguyen [EMAIL PROTECTED]
10/17/2002 09:04 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re: John Turner or someone who responsible for Posting -- Re: 
How to 
Apache2, Tomcat4.1.2, JK2 ?


Robert

Are you going to assist me to get this going?  I would like
to get as many volunters as possible if we are going to do this.
We want to get it up and running instead of drag it on for many months 
to come, just because I am not a coder, but I am willing to learn.  It 
sounds do able as Robert Sowders described but I definely need some 
help.  Please send me an email if you know that you can help. 

Thanks, Yoom

- Original Message -
From: Robert L Sowders [EMAIL PROTECTED]
Date: Thursday, October 17, 2002 10:46 pm
Subject: Re: John Turner or someone who responsible for Posting -- Re: 
How to Apache2, Tomcat4.1.2, JK2 ?

 Oops, forgot to mention.
 
 Once you set everything up as xml then changing the docs to 
 different 
 formats is pretty much a snap.  Transformers for http, text, and 
 pdf are 
 very common and available.  You could conceivably make the docs 
 available 
 in any format known.  Or language for that matter, but that is 
 another 
 topic.
 
 rls
 
 
 
 
 
 
 Robert L Sowders [EMAIL PROTECTED]
 10/17/2002 07:24 PM
 Please respond to Tomcat Users List
 
 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re: John Turner or someone who responsible 
 for Posting -- Re: How to 
 Apache2, Tomcat4.1.2, JK2 ?
 
 Hi Again,
 
 I had this discussion a couple of weeks ago and there was allot of 
 interest in helping with the docs.  The stumbling point as I see 
 it is 
 people just don't know how to submit changes to existing material 
 or for 
 that matter new material.
 
 If you want to write whole chapters then;
 Basically, very basically, what you do is get the tools necessary 
 to 
 participate in a xml documentation project.  Then you'll need the 
 DTDs and 
 
 style templates that are already being used for the current 
 documentation. 
 
 These are available via anonymous cvs.  If you are making new 
 pages or 
 chapters then you'll need the above stuff to view it locally and 
 see if 
 it's correct.  Then you'll have to post it to the Tomcat-dev list 
 and 
 someone there will review it and commit it, if it applies. 
 
 If your just correcting or extending an existing page;
 All you need to do is download your target via cvs, do your 
 corrections 
 with any text editor and then diff it using cvs and post it to the 
 Tomcat-dev mailing list.  Someone there with commit privs will 
 look at it 
 and commit it, if it's deemed ok.
 
 Actually the dev list people are pretty good about accepting the 
 changes 
 when they get them, but there is a gap in showing everyone how to 
 contribute, so they just don't get much to work with.
 
 So if you want to start your OWN documentation effort then the 
 first thing 
 
 you need to do is set up a cvs server.  You will need to decide on 
 what 
 style your book should take, there are lots of examples out there. 
 Then 
 you set up a cvs root and start loading your docs.  That way 
 people who 
 want to participate can download your xml style sheet, DTD's, xsl 
 stuff 
 and everyone would be on the same sheet of music.   I would also 
 recommend 
 
 using cvsview so people could download stuff via http.
 
 You will also need some kind of mailing list so people who want to 
 send in 
 
 patches will have a place to send them, and committers will have a 
 place 
 to discuss things.
 
 Here's a pretty good description of what I'm trying to say, about 
 xml. 
 http://httpd.apache.org/docs-project/docsformat.html
 Here's a pretty good description of how the whole thing works. 
 http:
 
 Hope this helps,
 
 rls
 
 
 
 
 
 yoom nguyen [EMAIL PROTECTED]
 10/17/2002 02:26 PM
 Please respond to Tomcat Users List
 
 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:John Turner or someone who resposible for 
 Posting 
 -- Re: How to Apache2, 
 Tomcat4.1.2, JK2 ?
 
 Hi John
 You seems to be the one who would know where this question should go.
 Is there a link on apache's web site for people to share their detail
 (doc)work?  People like Robert Sowders, and other?
 
 For the last two weeks I have seen many similar questions being 
 asked 
 over and over again by different people. If we can have a site 
 that 
 collecting this similar examples of different type of deployment. 
 Then 
 we are as a community of open sources be better off.  You and 
 everyone 
 else will have more time to focus on the development instead of 
 support 
 it.
 
 A place to allow others to share their 

RE: socket permission catalina.policy question

2002-10-18 Thread Andrew Cheng
 this had the expected effect: I used the return value later
and got a null pointer exception.  Perhaps the next thing to
try is to ask builder in jdom.jar to do something simple instead of
building from fs... and if that works?

I'll let you know how that goes. If you have any other ideas,
please let me know. I definitely appreciate it!

 -Original Message-
 From: Jean-Francois Arcand [mailto:jfarcand;apache.org]
 Sent: Thursday, October 17, 2002 4:08 PM
 To: Tomcat Users List
 Subject: Re: socket permission catalina.policy question


 Well, then let go back and do something simple. First, set:

 grant codeBase file:${catalina.home}/myApplication/WEB-INF/lib/jdom.jar
 {
  permission java.net.SocketPermission the.third.machine:8080, accept,
 connect, listen, resolve;
  permission java.security.AllPermission;
 };

 Then in your code, just try:

 try {

  doc = (org.jdom.Document)AccessController.doPrivileged

(new PrivilegedExceptionAction() {

   public Object run() throws org.jdom.JDOMException {

   new java.io.StringReader(fs);
   return null;

   }

 }

);


 Let me know if you still have some exception. We need to find
 which resource is causing the problem. I'm not convinved
 regarding the doPrivilege block, but that doesn't make a difference.

 We're coming :-)

 -- jeanfrancois




 Andrew Cheng wrote:

 I corrected the extra !... however it still gives the same exception.
 
 Then I tried directly calling builder.build() outside the
 AccessController.
 However it still gives the same exception, just from a different
 line number
 which corresponds to the invocation of builder.build()
 
 Below is an excerpt of why I was using a privileged block.  I hope I
 had the right idea..
 ...whenever a resource access is attempted, all code traversed by the
 execution thread up to that point must have permission for that resource
 access, unless some code on the thread has been marked as
 privileged. That
 is, suppose access control checking occurs in a thread of
 execution that has
 a chain of multiple callers. (Think of this as multiple method calls that
 potentially cross the protection domain boundaries.) When the
 AccessController checkPermission method is invoked by the most recent
 caller, the basic algorithm for deciding whether to allow or deny the
 requested access is as follows:
 
 If the code for any caller in the call chain does not have the requested
 permission, AccessControlException is thrown, unless the
 following is true -
 a caller whose code is granted the said permission has been marked as
 privileged (see below) and all parties subsequently called by
 this caller
 (directly or indirectly) all have the said permission.
 
 Marking code as privileged enables a piece of trusted code to
 temporarily
 enable access to more resources than are available directly to
 the code that
 called it. This is necessary in some situations. For example, an
 application
 may not be allowed direct access to files that contain fonts,
 but the system
 utility to display a document must obtain those fonts, on behalf of the
 user. In order to do this, the system utility becomes privileged while
 obtaining the fonts.
 
 
 
 -Original Message-
 
 Have you try to directly invoke builder.build outside the
 AccessController? Also, I think you have an extra ! at the end of the
 jdom jar file:
 
 grant codeBase
 file:${catalina.home}/myApplication/WEB-INF/lib/jdom.jar!/-
 {
  permission java.net.SocketPermission the.third.machine:8080, accept,
 connect, listen, resolve;
  permission java.security.AllPermission;
 };
 
 
 should be
 
 grant codeBase
file:${catalina.home}/myApplication/WEB-INF/lib/jdom.jar
{
 permission java.net.SocketPermission the.third.machine:8080, accept,
connect, listen, resolve;
 permission java.security.AllPermission;
};

--Jeanfrancois




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




FileNotFound and Problem connecting - where to start to debug ?

2002-10-18 Thread Arthur Chan
Hi all.
I have Apache talking with Tomcat. Using http://ServerName/com/ServletName I can get 
data from the db-server to display in the browser, but this is only in a company 
intranet environment. On the intranet, any changes to the db can be displayed on the 
browser with only a slight delay.
Now I need to establish an HTTP session to the applet and use the applet to tunnel 
to Tomcat.
Although I manage to throw up the screens e.g. a math caculator, JAVA console throws 
these error messages :
***
Record Sent
java.io.FileNotFoundException: http://cacophonix/demo.jar
  at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
  at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
  ...etc
java.io.FileNotFoundException: http://cacophonix//RemotedemoServer
  at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
...etc
com.developer.Tunnel.client.BaseTunnelClient$TunnelException: 
http://cacophonix//RemotedemoServer
  at 
com.developer.Tunnel.client.BaseTunnelClient._invokeMethod(BaseTunnelClient.java:216)
  ...etc

The supposedly missing files are present (I have copied them everywhere).
The CLASSPATH has been patched and extended.
To no avail.
I was told that it could be my policy files. 
But over the intranet I could access the db ?
Hints, tips and even comments are most welcome at this stage




Re: socket permission catalina.policy question

2002-10-18 Thread Jean-Francois Arcand
Everything seems fine...What is the exact error? I will try to setup my 
environment similar to you and see if I can reproduce the problemThe 
socket exception is from which component exactly?

-- Jeanfrancois

Andrew Cheng wrote:

Euh...Can you post your catalina.policy file? Maybe another permissions
is conflicting with the one you try to define. I'm doing some tests here
without any problems...

-- Jeanfrancois
   


Below is my policy file.  (myApplication contains several servlets. Inside a
privileged block, myServlet calls a method defined in jdom.jar in order to
check some XML.  This method tries to get the DTD from
http://the.third.machine:8080/dtd/my.dtd but encounters a socket permission
exception.) By the way, thanks for sticking with this!

Keep in mind that I am trying to grant boat loads of permissions in order to
get it to work and when it does work I will take away those unnecessary
permissions for security's sake.

/* AUTOMATICALLY GENERATED ON Thu Oct 17 11:01:15 EDT 2002*/
/* DO NOT EDIT */

grant codeBase file:${java.home}/lib/- {
 permission java.security.AllPermission;
};

grant codeBase file:${java.home}/jre/lib/ext/- {
 permission java.security.AllPermission;
};

grant codeBase file:${java.home}/../lib/- {
 permission java.security.AllPermission;
};

grant codeBase file:${java.home}/lib/ext/- {
 permission java.security.AllPermission;
};

grant codeBase file:${catalina.home}/bin/bootstrap.jar {
 permission java.security.AllPermission;
};

grant codeBase file:${catalina.home}/common/- {
 permission java.security.AllPermission;
};

grant codeBase file:${catalina.home}/server/- {
 permission java.security.AllPermission;
};

grant codeBase file:${catalina.home}/lib/- {
 permission java.security.AllPermission;
};

grant codeBase file:${catalina.home}/classes/- {
 permission java.security.AllPermission;
};

grant {
 permission java.util.PropertyPermission java.home, read;
 permission java.util.PropertyPermission java.naming.*, read;
 permission java.util.PropertyPermission javax.sql.*, read;
 permission java.util.PropertyPermission os.name, read;
 permission java.util.PropertyPermission os.version, read;
 permission java.util.PropertyPermission os.arch, read;
 permission java.util.PropertyPermission file.separator, read;
 permission java.util.PropertyPermission path.separator, read;
 permission java.util.PropertyPermission line.separator, read;
 permission java.util.PropertyPermission java.version, read;
 permission java.util.PropertyPermission java.vendor, read;
 permission java.util.PropertyPermission java.vendor.url, read;
 permission java.util.PropertyPermission java.class.version, read;
 permission java.util.PropertyPermission java.specification.version,
read;
 permission java.util.PropertyPermission java.specification.vendor,
read;
 permission java.util.PropertyPermission java.specification.name, read;
 permission java.util.PropertyPermission java.vm.specification.version,
read;
 permission java.util.PropertyPermission java.vm.specification.vendor,
read;
 permission java.util.PropertyPermission java.vm.specification.name,
read;
 permission java.util.PropertyPermission java.vm.version, read;
 permission java.util.PropertyPermission java.vm.vendor, read;
 permission java.util.PropertyPermission java.vm.name, read;
 permission java.lang.RuntimePermission accessClassInPackage.sun.beans.*;
 permission java.util.PropertyPermission jaxp.debug, read;
 permission java.net.SocketPermission the.third.machine:8080, accept,
connect, listen, resolve;
 permission java.security.AllPermission;
};

grant codeBase file:${catalina.home}/myApplication/WEB-INF/lib/jdom.jar!/-
{
 permission java.net.SocketPermission the.third.machine:8080, accept,
connect, listen, resolve;
 permission java.security.AllPermission;
};

grant codeBase file:${catalina.home}/myApplication/- {
 permission java.net.SocketPermission the.third.machine:8080, accept,
connect, listen, resolve;
};

grant codeBase file:${catalina.home}/WEB-INF/classes/- {
 permission java.net.SocketPermission the.third.machine:8080, accept,
connect, listen, resolve;
};

grant codeBase file:${catalina.home}/myApplication/myServlet/lib/jdom.jar
{
 permission java.security.AllPermission;
 permission java.net.SocketPermission the.third.machine:8080, accept,
connect, listen, resolve;
};

grant codeBase
file:${catalina.home}/myApplication/myServlet/lib/jdom.jar!/- {
 permission java.security.AllPermission;
};

grant codeBase file:${catalina.home}/myApplication/myServlet/- {
 permission java.security.AllPermission;
 permission java.net.SocketPermission the.third.machine:8080, accept,
connect, listen, resolve;
};


 

-Original Message-
From: Jean-Francois Arcand [mailto:jfarcand;apache.org]
Sent: Thursday, October 17, 2002 11:41 AM
To: Tomcat Users List
Subject: Re: socket permission catalina.policy question


Euh...Can you post your catalina.policy file? Maybe another permissions
is conflicting with the one you try to define. I'm doing some 

How to Apache2, Tomcat4.1.2, JK2 ?

2002-10-18 Thread yoom nguyen
Does any one get this combination of Apache2.0.43, Tomcat4.1.2 and 
JK2.2.0.2 to work and documented?  Would you share.



My apaches 2.0.43 doesn't seems to communicate with tomcat 4.1.2. I am
using jk2 (2.2.0.1)as the web connector. Apache2 in run on server #1 
and Tomcat4.1.2 run on server #2.

I am wondering if my setting are correct? Please let me 
know if I miss something here.


Are these setting correct??

*** on server #1, start of workers2.properties file ***
# Shared memory handling. Needs to be set.
[shm]
file=/etc/httpd/logs/shm.file
size=1048576

# A List of tomcat workers
#worker.list=tomcat1

# Example socket channel, explicitly set port and host.
[channel.socket:209.104.159.91:8009]
port=8009
host=209.104.159.91

# define the worker
[ajp13:209.104.159.91:8009]
channel=channel.socket:209.104.159.91:8009

# Uri mapping
[uri:/examples/*]
[uri:/*.jsp]
worker=ajp13:209.104.159.91:8009

# Announce a status worker
[status:status]

[uri:/jkstatus/*]
worker=status:status
 end of workers2.properties ***




*** on server, #1 start of httpd.conf file ***
LoadModule jk2_module modules/mod_jk2.so
AddModule mod_jk2.c
JkWorkersFile /etc/httpd/conf/workers2.properties
JkLogFile /etc/httpd/logs/mod_jk.log
JkLogLevel info
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 

#First Virtual Host access through port 80.
VirtualHost 209.104.159.90:80
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/www/dev
ServerName www.test.com
ServerAlias gratiotonline.com
ErrorLog /var/www/dev/logs/error_log
/VirtualHost
#
#First Virtual Host access through port 443.
VirtualHost 209.104.259.90:443
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/www/dev
ServerName www.dev.com
SSLEngine On
ErrorLog /var/www/dev/logs/error_log
/VirtualHost
** end of httpd.conf file ***


 on server #2, start of jk2.properties *
handler.list=apr,channelSocket,channelUnix,request
channelSocket.port=8009
serverRoot=/etc/httpd
apr.jniModeSo=/etc/httpd/modules/mod_jk2.s
* end of jk2.properties 


thanks, Yoom



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




socket permission catalina.policy question

2002-10-18 Thread Andrew Cheng
Quick question:

I have an applet that communicates with a servlet.  The servlet tries to
download a DTD file from a third machine.  It gets a socket permission
access denied exception.

I have wrapped the line of code in the servlet that downloads the file with
a privileged block.

The line of code calls a method inside a jar file.  I have used the policy
tool to grant all permissions to this jar file.  I have even tried granting
all permissions to all code temporarily!

I have made sure to use the -security option when starting tomcat.  I have
double checked this by looking at the log file and seeing that the security
manager is being used.

However, my servlet still gets a socket permission access denied exception.
The file I am trying to download is definitely downloadable from the machine
that the servlet is running on.  Please tell me what I have forgotten to do.

Thanks in advance,
Andrew
grant {
  permission java.security.AllPermission;
};

grant codeBase file:${catalina.home}/_/- {
  permission java.net.SocketPermission _:8080, accept, connect,
listen, resolve;
};

grant codeBase file:${catalina.home}/_/jdom.jar {
  permission java.security.AllPermission;
  permission java.net.SocketPermission _:8080, accept, connect,
listen, resolve;
};

grant codeBase file:${catalina.home}/_/jdom.jar!/- {
  permission java.security.AllPermission;
};


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




Re: Best practices question

2002-10-18 Thread Adam Sherman
Mark Eggers wrote:

Following that idea, only run Tomcat as root if you
are using it as a web server binding to a port less
than 1024.  Otherwise, run it from a non-privledged
account so that if there is a security issue the most
it should trash is your web server environment.


In addition, it is best to run Tomcat on a non-priviledged port and use 
your OS' firewalling to redirect port x to port 80. (eg. iptables, etc.)

If you must do something as root, such as admin work, I would run a 
seperate tomcat for those servlets and go learn about using 
SecurityManagers with Tomcat.

A.

--
Adam Sherman
Software Developer
Teach and Travel Inc.
+1.613.241.3103



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



RE: Index.jsp page in apache and tomcat config....

2002-10-18 Thread Raj Mettai
Hi John,

thanks for your response, somehow I missed your response and was waiting to hear on 
this ...anyway, as you said I have all static data on apache and all dynamic data on 
tomcat. When I do JkMount for /online/* and index.jsp in web.xml it works great but 
Apache forwards all requests to tomcat even images and include files will be looked 
under tomcat.

is there anyway, to do jkmount  /* ajp13 and still have apache serve static pages and 
images..

thanks again

-Raj


[EMAIL PROTECTED] 10/09/02 07:53AM 

OK, if you have things separated like that, then all of your static content
is on the apache server, and all of your dynamic content is on the tomcat
server.  Right?

In that scenario, /online has only dynamic content, since /online/index.jsp
needs to go to Tomcat.  My guess is you have static and dynamic content in
/online, which means you should probably add a JkMount mapping for
/online/*.jsp, not just /*.jsp.

If /online has only dynamic content, then add a JkMount for /online/* to
Tomcat and setup a welcome file of index.jsp in your web.xml, because in
that scenario (/online = Tomcat server) Apache has no way of finding the
file.

John

 -Original Message-
 From: Raj Mettai [mailto:rmettai;broward.edu]
 Sent: Tuesday, October 08, 2002 4:44 PM
 To: [EMAIL PROTECTED]
 Subject: Index.jsp page in apache and tomcat config
 
 
 Hi all,
 
 I have apache(2.0.39) and tomcat(4.0.4) configured on 
 different solaris 8 machines using mod_jk such that apache 
 servers all html and images while tomcat servers jsp and servlets.
 
 Here is my jkMount from httpd.conf 
 JkMount /*.jsp tomcat1
 JkMount /servlet/* tomcat1
 
 I want to configure apache to default to index.jsp page when 
 I try to access the directory (ex :  
 http://www.apacheserver.com/online/  should go to 
 http://www.apacheserver.com/online/index.jsp). How can I 
 achieve this, the apache documentroot directory does not have 
 any index.jsp's,so how can you make apache to defualt to index.jsp.
 
 I have modified DirectoryIndex also to include index.jsp, 
 still apache gives 403(Access forbidden).
 
 I have lot of links in the site that are just linking to 
 directory without index.jsp, I have to modify them all otherwise.
 
 any thoughts 
 
 thanks
 
 -Raj
 

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



Re: socket permission catalina.policy question

2002-10-18 Thread Jean-Francois Arcand
Have you try to directly invoke builder.build outside the 
AccessController? Also, I think you have an extra ! at the end of the 
jdom jar file:

grant codeBase 
file:${catalina.home}/myApplication/WEB-INF/lib/jdom.jar!/-
{
permission java.net.SocketPermission the.third.machine:8080, accept,
connect, listen, resolve;
permission java.security.AllPermission;
};


should be

grant codeBase file:${catalina.home}/myApplication/WEB-INF/lib/jdom.jar
{
permission java.net.SocketPermission the.third.machine:8080, accept,
connect, listen, resolve;
permission java.security.AllPermission;
};

--Jeanfrancois

Andrew Cheng wrote:

Everything seems fine...What is the exact error? I will try to setup my
environment similar to you and see if I can reproduce the problemThe
socket exception is from which component exactly?

-- Jeanfrancois
   


1/3 inside myServlet... see marked line in the middle

final String fs = s;
final org.jdom.input.SAXBuilder builder = new
org.jdom.input.SAXBuilder(true); // true=validate
org.jdom.Document doc = null;
try {
 doc = (org.jdom.Document)AccessController.doPrivileged
   (new PrivilegedExceptionAction() {
  public Object run() throws org.jdom.JDOMException {
/*err-*/return builder.build(new java.io.StringReader(fs)); // SAXBuilder
in jdom.jar
  }
}
   );
} catch (PrivilegedActionException e) {
 // e.getException() should be an instance of org.jdom.JDOMException,
 // as only checked exceptions will be wrapped in a
 // PrivilegedActionException.
 throw (org.jdom.JDOMException) e.getException();
}

2/3 string fs is the text of an xml file. refers to DTD:
http://the.third.machine:8080/dtd/my.dtd


3/3 error occurs parsing line 2 of string fs, which contains the reference
to http://the.third.machine:8080/dtd/my.dtd
org.jdom.JDOM Exception: error on line 2: access denied
(java.net.SocketPermission the.third.machine:8080 connect, resolve)
SAXBuilder: 367
SAXBuilder: 740
myClass: 1767 (this is the line marked in the code above, with comments)
AccessController.doPrivileged (native method)



--
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 version output

2002-10-18 Thread Sigurður Bjarnason
I am using.. Linux and i dont get this output..! when i start in console. just.

Using CATALINA_BASE:   /var/jakarta/tomcat4.0.6
Using CATALINA_HOME:   /var/jakarta/tomcat4.0.6
Using CATALINA_TMPDIR: /var/jakarta/tomcat4.0.6/temp
Using JAVA_HOME:   /var/java

The thing is.. i am settin up website.. where i can see..what versions are running at 
any given time.. and this output i get here dont help much.. .. :(

But there must be some way to grep what version is running, at given time. 

Regards
Siggi


-Original Message-
From: Reynir Hübner [mailto:reynir;hugsmidjan.is]
Sent: 17. október 2002 13:16
To: Tomcat Users List
Subject: RE: Tomcat version output


When I start tomcat up on commandline I get messages like this : 

C:\_tomcat2\bincatalina run
Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   c:\eplica\java
17.10.2002 13:16:09 org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
17.10.2002 13:16:09 org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
17.10.2002 13:16:09 org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
17.10.2002 13:16:10 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 80
Starting service Tomcat-Standalone
Apache Tomcat/4.1.12

I think it's like that with most versions.
Hope it helps
-reynir





 -Original Message-
 From: Sigurður Bjarnason [mailto:siggi;betware.com] 
 Sent: 17. október 2002 13:10
 To: Tomcat (E-mail)
 Subject: Tomcat version output
 
 
 
 Is there a way in tomcat to see what version of tomcat is 
 running .. like in apache you can do ..  # ./httpd -version  
 
 ?? anyone ?
 
 regards
 Siggi
 
 
 --
 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




is this a bug ?

2002-10-18 Thread Ricardo de Souza Moura
Does anybody knows about this error ? Please 

2002-10-17 10:16:24 StandardWrapperValve[action]: Servlet.service() for 
servlet action threw exception
javax.servlet.ServletException: Servlet execution threw an exception
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java, 
Compiled Code)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java, 
Compiled Code)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java, 
Compiled Code)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java, 
Compiled Code)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java, 
Compiled Code)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java, 
Compiled Code)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java, 
Compiled Code)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
   at 
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java, Compiled 
Code)
   at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java, 
Compiled Code)
   at java.lang.Thread.run(Thread.java, Compiled Code)


_
MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.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: Where do I get mod_jk?

2002-10-18 Thread Robert L Sowders
John Turner still has the old mod_jk for Apache 2.0.40 up at his web site. 
 Also there is a How To that will get you started.
http://www.johnturner.com/howto/apache-tomcat-howto.html

rls


Mark Eggers [EMAIL PROTECTED]
10/17/2002 08:41 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re: Where do I get mod_jk?

Michael,

If you want binary builds, you'll have to upgrade to
apache 2.0.42.  They can be found at:

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

The rpms can be found at:

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

You'll need the apache rpm installed to use the binary
connector rpm.

If you feel comfortable building from source, you can
get the source from:

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

/mde/

just my two cents . . . .

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.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




R: How can I protect my servlet with a login and a password?

2002-10-18 Thread Luca Ventura
Thanks a lot!

Regards,

 Luca

-Messaggio originale-
Da: Rajesh B [mailto:Rajesb;sapient.com]
Inviato: giovedì 17 ottobre 2002 9.11
A: 'Tomcat Users List'
Oggetto: RE: How can I protect my servlet with a login and a password?


U just need to add basic authentication in ur apache httpd.conf file.
Nothing to change in tomcat. Have a look at basic authentication in apache

-Original Message-
From: Luca Ventura [mailto:ventluca;tiscali.it]
Sent: Thursday, October 17, 2002 12:37 PM
To: tomcat-user
Subject: How can I protect my servlet with a login and a password?


Hello everybody!

I have Apache Tomcat 4.0 as Servlet Engine and I would like to to the
following
thing: when a user tries to connect to my servlet MyServlet a window
should appear that ask him to insert a login and a password
before accessing to the servlet. How can I do this?

Must I change some configuration file in Tomcat? Can I use
the same solution to protect other web resources (for example
the files to download)?

Thanks a lot in advance!

Luca


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




The ajp1.3 connector

2002-10-18 Thread Sigurður Bjarnason

Hi all

I am wondering about the settings for ajp1.3 connector in server.xml .. these are my 
settings 

!-- Define an AJP 1.3 Connector on port 8009 --
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=50 maxProcessors=300
acceptCount=150 debug=0/


Ok.. are there some universal settings for this.. what is the best settings.. and why ?

Regards
Siggi


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




Re: Where do I get mod_jk?

2002-10-18 Thread Michael Sun
just wanted to thanks all those who replied. It's greatly appreciated.

On Thu, 17 Oct 2002, Robert L Sowders wrote:

 John Turner still has the old mod_jk for Apache 2.0.40 up at his web site. 
  Also there is a How To that will get you started.
 http://www.johnturner.com/howto/apache-tomcat-howto.html
 
 rls
 
 
 Mark Eggers [EMAIL PROTECTED]
 10/17/2002 08:41 PM
 Please respond to Tomcat Users List
 
  
 To: Tomcat Users List [EMAIL PROTECTED]
 cc: 
 Subject:Re: Where do I get mod_jk?
 
 Michael,
 
 If you want binary builds, you'll have to upgrade to
 apache 2.0.42.  They can be found at:
 
 
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/linux/i386/
 
 The rpms can be found at:
 
 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/rpms/
 
 You'll need the apache rpm installed to use the binary
 connector rpm.
 
 If you feel comfortable building from source, you can
 get the source from:
 
 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/src/
 
 /mde/
 
 just my two cents . . . .
 
 __
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos  More
 http://faith.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
 


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




Servlet directory?

2002-10-18 Thread Jørgen Ramskov
Hi I'm trying to some software called ArcIMS.

It asks for the webservers servlet directory and in the readme it gives
some examples:

=== Cut ===
Installing ArcIMS Servlet Connector

The ArcIMS Servlet Connector directory, \com, must be copied to your Web
server's servlet directory in order to establish communication between your
Web server and the ArcIMS Application Server.

The following is a list of common Web servers and their servlet directories.
Apache 1.3.20 and Jakarta Tomcat 3.2

drive:\TOMCAT_HOME\webapps\ROOT\WEB-INF\classes
=== Cut ===

I'm however using Tomcat 4.1.12, where is the directory then?

Thanks.

--
Joergen

--
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 can I protect my servlet with a login and a password?

2002-10-18 Thread N Pappas
Remember that you can handle such security other ways-- e.g. you may control
access through your own servlet by checking permissions/userid/password
against entries in a database.  Handling all security through applications
like apache may work fine for your purposes but it may ultimately be too
inflexible.

Rajesh B wrote:

 U just need to add basic authentication in ur apache httpd.conf file.
 Nothing to change in tomcat. Have a look at basic authentication in apache

 -Original Message-
 From: Luca Ventura [mailto:ventluca;tiscali.it]
 Sent: Thursday, October 17, 2002 12:37 PM
 To: tomcat-user
 Subject: How can I protect my servlet with a login and a password?

 Hello everybody!

 I have Apache Tomcat 4.0 as Servlet Engine and I would like to to the
 following
 thing: when a user tries to connect to my servlet MyServlet a window
 should appear that ask him to insert a login and a password
 before accessing to the servlet. How can I do this?

 Must I change some configuration file in Tomcat? Can I use
 the same solution to protect other web resources (for example
 the files to download)?

 Thanks a lot in advance!

 Luca

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

--
Nicholas Pappas



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




RE: Window doesnt close on shutdown

2002-10-18 Thread Robert L Sowders
Do you still see the tomcat process in the task manager?  If not is there 
a -w in the target field of the properties for the shortcut for Tomcat 
stop?

rls




RXZ JLo [EMAIL PROTECTED]
10/17/2002 09:12 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:RE: Window doesnt close on shutdown

I am creating two socket listeners in my webapp, am I
supposed to close them explicitly for the shutdown to
finish gracefully?

thanks,
rf

--- RXZ JLo [EMAIL PROTECTED] wrote:
 No. Should it?
 
 
 --- Adam Greene [EMAIL PROTECTED] wrote:
  Does the title bar say Finished??
  
  -Original Message-
  From: RXZ JLo [mailto:rufoo2001;yahoo.com]
  Sent: Wednesday, October 16, 2002 9:33 AM
  To: [EMAIL PROTECTED]
  Subject: Window doesnt close on shutdown
  
  
  I use tomcat4.0.4 on windows 2000.
  When I shutdown tomcat, the window
  just shows
  Stopping Tomcat-Apache and standalone
  and doesnt close on itself.
  
  Does this mean my application hasnt
  closed properly?
  
  Thanks,
  rf
  
  
  
  __
  Do you Yahoo!?
  Faith Hill - Exclusive Performances, Videos  More
  http://faith.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
  
 
 
 __
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos  More
 http://faith.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
 


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.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: Best practices question

2002-10-18 Thread Turner, John

Actually, aside from the issue of running on a port under  1024, the idea
that Tomcat running as root would make it easy for your webapp to do things
admin applications, servers, and networks from a web interface is pretty
scary.  The last thing I want is some developer writing some code they
_think_ is pretty cool, only to have it run amok because it had the
permission to do so.  Like overwriting something in /proc, for example.

I would guess this is also the reason symlinks were turned off by default
recently.  Having something like Tomcat run in a JVM sandbox, but then
allowing a class or JSP page to link out to any other location on a
filesystem at will sort of defeats the purpose, especially when 
Tomcat runs as root.

Running everything as root is begging for trouble and a phone call at 2:30
AM because something just got munged up by a rogue process or application.
I'll pass.

John

 -Original Message-
 From: Qmail List [mailto:edahnke;earthlink.net]
 Sent: Thursday, October 17, 2002 3:03 PM
 To: Tomcat Users List
 Subject: Re: Best practices question
 
 
 
 I have been wondering about this as well. Apache screams and hollers
 BIG_SECURITY_HOLE if you compile it with the flags allowing 
 it to run as
 root.
 
 That said, I love the fact that Tomcat runs as root. It makes 
 it easy for
 your webapp to do things admin applications, servers, and 
 networks from a
 web interface.
 
 But at what cost? Of course it would be best to run Tomcat as 
 nobody or
 tomcat user or whoever, but if your app needs some root 
 permission at the OS
 level, is it OK to run as root?
 
 I'd imagine the root OK concept must be due to the underlying 
 Java, but
 can't really see why or how. Anyone know?
 
 
 Great product this Tomcat. Kudos to all involved.
 
 
 
 
 
 - Original Message -
 From: Turner, John [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Thursday, October 17, 2002 1:57 PM
 Subject: RE: Best practices question
 
 
 
  I run Tomcat under a separate user account.  I avoid 
 running services as
  root whenever possible.
 
  John
 
   -Original Message-
   From: Randy Paries [mailto:randy.paries;unitnet.com]
   Sent: Thursday, October 17, 2002 1:56 PM
   To: 'Tomcat Users List'
   Subject: Best practices question
  
  
   Hello,
  
   I was wondering are most people starting tomcat from 
 root, or are they
   doing it other ways.
  
   What is the suggestion for this.
  
   How big are the security issues if started by root
  
   Would it be ok to start it by user apache?
  
   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
 
 
 
 --
 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




AW: tomcat 4.1 does not resolve links

2002-10-18 Thread Torsten Fohrer
here is a patch for FileDirContext.java




 -Ursprüngliche Nachricht-
 Von: Alexander Piavka [mailto:piavka;cs.bgu.ac.il]
 Gesendet: Donnerstag, 17. Oktober 2002 11:17
 An: Tomcat Users List
 Betreff: Re: tomcat 4.1 does not resolve links
 
 
 
  Does anyone know then the  4.1.13 version will be released, 
 or maybe this
 bug has been already solved and i can download the current 
 cvs(or a patch)?
 Since i really need it urgently.
 I tried to make minor changes in the FileDirContext.java file, so that
 allowLinking is always enabled but it did now work.
 
  Thanks.
 
 On Sun, 6 Oct 2002, Remy Maucherat wrote:
 
  Alexander Piavka wrote:
The RELEASE-NOTES it is said that to enable symbloic 
 linking i need to
   add the allowLinking option to FileDirContext. But i did 
 not find anything
   about FileDirContext in the documentation.
   Does anyone know where  sould the FileDirContext 
 configuration be put
   and where is the documentation about it.
 
  It turns out there is a bug in the feature in 4.1.12. It 
 will be fixed
  in 4.1.13, and properly documented.
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org




FileDirContext.patch
Description: Binary data
--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


Internal Server Error - Still a newbie.

2002-10-18 Thread Curt LeCaptain
Using Tomcat 4.0.6, Apache 1.3.27, connected via mod_jk:

I get an internal server error when attempting to execute a JSP.  Upon
reading my mod_jk.log, this's what I see:

[Thu Oct 17 15:16:23 2002]  [jk_connect.c (143)]: jk_open_socket, connect()
failed errno = 111
[Thu Oct 17 15:16:23 2002]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 111
[Thu Oct 17 15:16:23 2002]  [jk_ajp13_worker.c (635)]: Error connecting to
the Tomcat process.
[Thu Oct 17 15:16:23 2002]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 0
[Thu Oct 17 15:16:23 2002]  [jk_connect.c (143)]: jk_open_socket, connect()
failed errno = 111
[Thu Oct 17 15:16:23 2002]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 111
[Thu Oct 17 15:16:23 2002]  [jk_ajp13_worker.c (635)]: Error connecting to
the Tomcat process.
[Thu Oct 17 15:16:23 2002]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 1
[Thu Oct 17 15:16:23 2002]  [jk_connect.c (143)]: jk_open_socket, connect()
failed errno = 111
[Thu Oct 17 15:16:23 2002]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 111
[Thu Oct 17 15:16:23 2002]  [jk_ajp13_worker.c (635)]: Error connecting to
the Tomcat process.
[Thu Oct 17 15:16:23 2002]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 2

I'm not exactly sure why it's saying this.

DocumentRoot: /data/www/docs/examples

Is there something I need to set in the server.xml file?

Thanks


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




Configuring log files in Tomcat 4.1

2002-10-18 Thread David Scott
I get an annoying SSL warning in catalina.out on every request if the 
client is not authenticated by certificate, which in our application 
means every request.  I would love to configure logging to (a) not log 
this warning message and (b) call catalina.out something else.  The docs 
aren't much help in this.  Does anyone have any specifics on how I can 
configure log files and redirect System.out and System.err messages?

I'm using Tomcat 4.1.12.

Thanks.

David


--
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 version output

2002-10-18 Thread Julius Davies
Hello, Sigurður Bjarnason,

I recently ran into this problem, as well.  I found a solution that 
works nicely with all web-servers (Tomcat, JRun, Weblogic, etc...). 
Probably others have emailed you with this solution, but in case they 
haven't:

First, create the following jsp:

getServerInfo.jsp
---
html
body
%= application.getServerInfo() %
/body
/html
---

Then access it however you can, assuming your webserver is running.  At 
work we use lynx, eg. lynx http://localhost:8080/getServerInfo.jsp. 
There are some flags you can use to make lynx just dump the output on 
std-out.  Another possibility is Curl, or even Ant's get task.


That's it!  However, I've added extra information to this email which 
you may find useful... you may be wondering where this undefined 
'application' variable in the jsp comes from!

In any jsp you have the following variables already in scope, among 
others.  Here's the link where I found this:

http://developer.java.sun.com/developer/onlineTraining/JSPIntro/contents.html#JSPIntro5

request
response
application
out

request is an instance of javax.servlet.http.HttpServletRequest.
response is an instance of javax.servlet.http.HttpServletResponse.
application is an instance of javax.servlet.ServletContext.
out is an instance of javax.servlet.jsp.JspWriter.  I tend to think of 
the superclass, java.io.Writer, instead, though.

As you can see, ServletContext provides the very useful 
getServerInfo() method.  Here's the link in the J2EE api for 
ServletContext.getServerInfo():

http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html#getServerInfo()


Good luck!

yours,

Julius Davies
Vancouver, Canada



--
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   3   4   >