Re: Questionnaire

2002-08-12 Thread aaron . duncan

Marcos Manosso [EMAIL PROTECTED]
08/08/2002 11:05
Please respond to Tomcat Users List

 
To: Marcos Manosso [EMAIL PROTECTED]
cc: Marcos Manosso [EMAIL PROTECTED]
Subject:Questionnaire
Is this part of a business decision process?: 


Dear Sir/Madam

We are conducting some research concerning the public's opinion about the 
level of ethics in advertising. As you may be aware, many companies have 
ethical advertising policies. Furthermore,  the media (i.e. TV, Radio, 
Magazines and Newspapers) have governmental and non-governmental 
organizations that are suppose to monitor the ethical content of 
advertisements. The questions we want to address in this study are 
whether, in the public's opinion, (a) this control is really maintaining a 
high level of ethics in advertising executions; (b) what are the main 
issues in advertising ethics that should be dealt with in order to ensure 
this high ethical level, and (c) if ethics impacts consumers attitudes and 
behaviours towards firms that maintain high levels of ethics in their 
business and advertisings, which may be reflected in the company's society 
and environment.

In order to answer these questions, we need your help. Following this 
letter is a short questionnaire. We would really appreciate your help in 
completing and returning it. Your responses are extremely valuable and 
will help us gain a better understanding of the issues of advertising 
ethics and corporate social responsibility.

Once completed, please return the questionnaire to [EMAIL PROTECTED] 

We know your time is valuable, and therefore, as a token of our 
appreciation for your cooperation, we would be pleased to send you the 
results and analysis of this questionnaire. If you wish to receive this 
summary, please place your e-mail address in the Subject box of your 
response e-mail.

We assure you that the information you provide will be kept strictly 
confidential and combined with all other responses so that no individuals 
can be identified. In addition, your  name and/or e-mail address will 
remain in the highest levels of anonymity and privacy, and will not be 
given, sold or otherwise distributed to anyone, being destroyed from our 
records immediately after your questionnaire is gathered and (if the case) 
the results posted to you.

Please take a few minutes now to complete and return the questionnaire.

Thank you very much for your help

Marcos Manosso
[EMAIL PROTECTED]





Please complete the following fields:
Age:29 
Country of residence:Australia 
Gender (Male / Female):Male 
Education Level (Elementary / High School / University / 
Post-Graduate):University 

 
Please answer the following questions by placing an x in the appropriate 
space:
Businesses have responsibilities with society that go beyond job 
creation. 
1. Strongly agree   (X) 
2. Agree   (__)
3.  No Opinion   (__)
4. Disagree   (__)
5. Strongly Disagree   (__)

It is possible for a business to be both ethical and profitable. 
1. Strongly agree   (X) 
2. Agree   (__)
3.  No Opinion   (__)
4. Disagree   (__)
5. Strongly Disagree   (__)

Advertising shows an accurate view of reality. 
1. Strongly agree   (__) 
2. Agree   (__)
3.  No Opinion   (__)
4. Disagree   (X)
5. Strongly Disagree   (__)

Advertising helps to shape society's views of the world and itself. 
1. Strongly agree   (X) 
2. Agree   (__)
3.  No Opinion   (__)
4. Disagree   (__)
5. Strongly Disagree   (__)

How do you view the level of ethics in general advertising? 
1. Very High   (__)
2. High   (__)
3. Average   (X)
4. Low   (__)
5. Very Low   (__)

 
Whose responsibility is it to deal with the social problems of the world? 
(please mark with an x, as appropriate)
01.  Businesses   (__)
02.  Non-Profit Organizations   (__)
03.  Government   (X)
04.  Non-Government Organizations (NGOs)   (__)
05.  Schools and Universities   (X)
06.  General Public   (X)
07.  Other - Please cite:___ 


Which of the following issues in general advertising would you consider 
being unethical? (please mark by placing an x in the appropriate 
place(s))
01. Ads for abortion services or family planning   (X)

02. Ads for cosmetic surgery or other elective surgery   (__)

03. Ads for medical products and services   (__)

04. Ads for personal care and hygiene products   (__)

05. Ads for professional services (lawyers, doctors, etc.)   (__)

06. Ads for workers to replace striking workers   (X)

07. Advertising pharmaceuticals   (__)

08. Advertising to children   (X)

09. AIDS-awareness ads   (__)

10. Alcoholic beverage ads   (__)

11. Anti-abortion ads   (__)

12. Anti-alcohol Public Service Announcements   (__)

13. Anti-cigarette Public Service Announcements   (__)

14. Anti-drug Public Service Announcements   (__)

15. Censorious advertising   (__)

16. Cigarette and tobacco ads   (__)

17. Comparative advertising   (__)

18. Condom ads   (__)


AW: form based auth...

2002-08-12 Thread Ralph Einfeldt

The problem lies in your error.jsp.

Have a look at line 61 of the generated file error$jsp.java
in the work directory to see what causes the Exception.

Ralph Einfeldt
Uptime Internet Solution Center GmbH
Hamburg, Germany
Hosting, Content Management, Java Consulting
http://www.uptime-isc.de 

 -Ursprüngliche Nachricht-
 Von: Softwareentwicklung Hauschel
 [mailto:[EMAIL PROTECTED]]
 Gesendet: Sonntag, 11. August 2002 16:48
 An: [EMAIL PROTECTED]
 Betreff: form based auth...
 
 java.lang.NullPointerException
 at org.apache.jsp.error$jsp._jspService(error$jsp.java:61)


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




Re: NOW DESPERATE: Package not found

2002-08-12 Thread Ben Walding

As a last ditch effort I find using the the file monitor from system 
internals useful for tracking down what is happening.  Of course you 
can't use it with war files unless they are unpacked

(Look for filemon on www.sysinternals.com)

Have a look for errors as it tries to find the classes, it can be very 
elucidating sometimes.

Cheers

Ben

Jacob Kjome wrote:


 Where is the library that is importing these classes?

 If it is in any of the  $CATALINA_HOME library folders such as lib, 
 common/lib, or server/lib, then I would expect that they couldn't find 
 the classes if they existed under a webapp's WEB-INF/classes or or 
 WEB-INF/lib folder.

 And, of course there are alternatives to Tomcat.  However, given that 
 there are thousands of users that successfully use Tomcat every day, 
 the problem is, most likely, user error, not a problem with Tomcat.  I 
 would look there first.

 You are going to need to provide more information for anyone to be 
 able to help you further.

 Jake

 At 01:03 PM 8/12/2002 +1000, you wrote:

 Ok, I stopped and started the tomcat service, and now it won't even 
 find the
 package. I get

 Package au.com.multemedia.wf.ui not found in import.

 yet WEB-INF\classes\au\com\multemedia\wf\ui clearly exists and 
 contains two
 class files.

 Does anybody have any idea what the bloody hell is wrong with this 
 sytem? Is
 there an alternative to tomcat?

 -Josh

 Rimmer, real dumplings, proper dumplings when they're properly
   cooked to perfection, proper dumplings, should not bounce.



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






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




Re: NOW DESPERATE: Package not found - FIXED

2002-08-12 Thread Josh

Ah Ok i'll get that for future problems. I managed to fix the problem.
Upgraded to 4.1 beta and magically everything works :)

-Josh

Rimmer, real dumplings, proper dumplings when they're properly
  cooked to perfection, proper dumplings, should not bounce.

- Original Message -
From: Ben Walding [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 12, 2002 5:13 PM
Subject: Re: NOW DESPERATE: Package not found


 As a last ditch effort I find using the the file monitor from system
 internals useful for tracking down what is happening.  Of course you
 can't use it with war files unless they are unpacked

 (Look for filemon on www.sysinternals.com)

 Have a look for errors as it tries to find the classes, it can be very
 elucidating sometimes.

 Cheers

 Ben

 Jacob Kjome wrote:

 
  Where is the library that is importing these classes?
 
  If it is in any of the  $CATALINA_HOME library folders such as lib,
  common/lib, or server/lib, then I would expect that they couldn't find
  the classes if they existed under a webapp's WEB-INF/classes or or
  WEB-INF/lib folder.
 
  And, of course there are alternatives to Tomcat.  However, given that
  there are thousands of users that successfully use Tomcat every day,
  the problem is, most likely, user error, not a problem with Tomcat.  I
  would look there first.
 
  You are going to need to provide more information for anyone to be
  able to help you further.
 
  Jake
 
  At 01:03 PM 8/12/2002 +1000, you wrote:
 
  Ok, I stopped and started the tomcat service, and now it won't even
  find the
  package. I get
 
  Package au.com.multemedia.wf.ui not found in import.
 
  yet WEB-INF\classes\au\com\multemedia\wf\ui clearly exists and
  contains two
  class files.
 
  Does anybody have any idea what the bloody hell is wrong with this
  sytem? Is
  there an alternative to tomcat?
 
  -Josh
 
  Rimmer, real dumplings, proper dumplings when they're properly
cooked to perfection, proper dumplings, should not bounce.
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 




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



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




RE: Login problem with reverse proxy

2002-08-12 Thread JensStutte


No, i have no concrete idea. My only doubt is, that the chain
browser-proxy-tomcat must be involved, that is your redirect somehow gets
executed over this chain, otherwise the problem would not exist. I think,
there is an option to say, wether redirects should be executed via the
browser or really internally, but i don't remember, where...

Regards,

Jens Stutte



   
  
Barney Hamish  
  
Hamish.Barney@ect-teTo: 'Tomcat Users List' 
  
lecoms.de   [EMAIL PROTECTED]  
  
 cc:   
  
09/08/2002 13.52 Subject: RE: Login problem with 
reverse proxy   
Please respond to  
  
Tomcat Users List
  
   
  
   
  




Thanks Jens. I'm afraid that doesn't help with my specific problem. This is
something to do with the forwarding of requests to the login page that
Tomcat does internally. I'm not sure how I can avoid that in the way I
design my application (if I want to use the built-in authentication method
without modifying the way Tomcat handles realms).
Do you know how I can deal with this specific problem?
Thanks,
Hamish



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 12:58 PM
To: Tomcat Users List
Subject: Re: Login problem with reverse proxy



Sorry for the empty mail, i struggled with my Lotus client (who the heck
creates a dialog box that defaults to Send when closing a modified mail
without sending it ?)...

I have a similar configuration here (slightly complicated due to the use of
struts). You must follow some rules in your design, to be able to do this:
- do not use browser redirects, but internal redirects. Or create
dynamically JavaScript redirects on your pages (not very nice, i know).
- use only relative URLs. Otherwise, especially if your application does
not map to your proxys root directory but some subfolder, nothing will
work.
- if you use struts, be aware of some tags, that create absolut URL pathes
(the form tag for example). I extended and overrided some of these tags in
order to create relative pathes (the struts community has decided, to not
treat this issue).

Hence, the most existing J2EE applications, that are not designed and
tested for a similar environment, most likely won't work without
modifications.

Regards,

Jens Stutte





JensStutte@qu

idinfo.itTo: Tomcat Users List

 [EMAIL PROTECTED]

09/08/2002   cc:

11.46Subject: Re: Login problem
with
reverse proxy
Please

respond to

Tomcat Users

List










Barney Hamish

Hamish.Barney@ect-teTo:
'[EMAIL PROTECTED]'
lecoms.de
[EMAIL PROTECTED]
 cc:

09/08/2002 11.32 Subject: Login problem
with reverse proxy
Please respond to

Tomcat Users List











Hi,
I'm using tomcat 3.2 with form based login and an apache reverse proxy to
filter requests to the webserver. When tomcat issues the redirect to the
login page the users are sent directly to the webserver not the reverse
proxy. As the webserver is not directly accessable they are unable to
request the log-in page. Is anyone aware of a way I can configure tomcat
and
or the reverse proxy to make this set-up work?


More info:

-Internet--
   |
Reverse Proxy
   |
Private Net
   |
Webserver (with Tomcat)

When a request for a secure resource is sent to the reverse proxy, it
forwards that request to the webserver. If the user is not logged-in tomcat
tries to redirect the user to the login form. In that redirect Tomcat
apparently includes the IP address of the server upon which it is currently
residing. The reverse proxy forwards the webserver's response to the
client.
When the client tries to request the log-in page from the directly from the
webserver it is unable to reach the webserver.

Hamish

--
To unsubscribe, e-mail:   

Re: Tomcat, JAXB and SecurityManager

2002-08-12 Thread Cédric Viaud

Thanks, a lot for your help.

Yoav Shapira answer make me think about Tomcat version, and i've just tried
to run under Tomcat 4.0.4 LE (light edition) this morning. The problems has
gone away.

Thanks to all,

   Cédric

PS : Yoav, in fact when i have write despited i meant depressed (but i don't
speak English at all :-)

- Original Message -
From: Extance, Paul [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, August 09, 2002 10:42 PM
Subject: RE: Tomcat, JAXB and SecurityManager


 We have had a problem with JAXB under Tomcat 4.0.3, as it couldn't find
the
 jaxb-rt.jar in the WEB-INF/lib folder.

 We also put it in the %catalina_home%/common/lib, and it still couldn't
find
 it.
 We then put the jar in the %java_home%/jre/lib/ext and then it worked.

 We then upgraded to Tomcat 4.0.4 and the problem went away.

 So if your getting a 'ClassNotFound' exception this may help.

 PaulE

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 7:09 AM
 To: Tomcat Users List
 Subject: RE: Tomcat, JAXB and SecurityManager


 Bonjour! ;)

 If i launch it from a servlet, i failed.

 Can you please provide more details?  The stack trace would be helpful.
Any
 suspicious or error messages in the tomcat logs?

 One more point, if the same code is run under Tomcat 4.0.1, it work !!!

 Then I would look at the release notes for 4.0.3 to see what changes were
 made to the security manager between 4.0.1 and 4.0.3 ;)

  Cédric (very despited for two days).

 What does very despited mean?

 Yoav Shapira
 Millennium ChemInformatics

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

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



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




.shtml with 4.0.4

2002-08-12 Thread MadBit


Hello.

I'm using Tomcat 4.0.4 with Apache 1.3.26 on Windows 2000.

I want to use .shtml pages. In tomcat I enabled de SSI servlet and 
mapping on web.xml,
and on Apache I enabled the AJP connector and enabled .shtml processing:


 LoadModule jk_module modules/mod_jk.dll
 Addmodule mod_jk.c

 JkWorkersFile /webprg/tomcat/conf/jk/workers.properties
 JkLogFile /webprg/apache/logs/mod_jk.log
 JkLogLevel info



AddType text/html .shtml
AddHandler server-parsed .shtml

...
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMOunt /*.shtml ajp13

On a .shtml page I have a servlet code=classpath.Class/servlet 
call. The called Class it's working fine calling directely via 
'localhost/servlet/classpath.Class' URL but with the .shtml the Class 
seems not to be called and the browser never end to load the page, 
always it's on awaiting data state.

Anyone can help me?

   Thanks


Rogelio Herranz
[EMAIL PROTECTED]



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




Turn off caching

2002-08-12 Thread Gunter D'Hondt

Is it possible to turn off the caching of precompiled jsp pages in tomcat4?
i would need this becoz in developer's fase it's not very usefull that
tomcat caches everything when using jsp pages that include other jsp page
etc.

Greetings,
Gunter.


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




Apachecon 2001 paper

2002-08-12 Thread Mark Gordon

Does anyone know where I can get a copy of the paper Tomcat Server and
Application
Security delivered at Apachecon 2001

with thanks

Mark


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




unable to load class

2002-08-12 Thread Micha Kwiatek

Hello!

I'm getting the following error on a seemingly well-configured tomcat 4.0.3
installation (on Linux Mandrake).

org.apache.jasper.compiler.CompileException: /bla.jsp(5,0) Unable to load
class pl.biznespartner.cms.phoenix.server.WindowTag
at
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:139
)
...

I double-checked - the class is in the classpath. What's going on?

I've seen people asking same question before, but not a single answer.
Perhaps you've already solved the problem, please let me know!

Micha Kwiatek

---
BiznesPartner.pl SA
ul. Mynarska 48
01-171 Warszawa
tel. 5355560



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




RE: Apache 2 and Tomcat 4

2002-08-12 Thread Robert L Sowders

You need to register the dairy as a Context in the server.xml file, 
something like this assuming the path is /dairy

Context path=/dairy docBase=diary debug=0 reloadable=true /

If your installation is working correctly at http://localhost:8080 then 
please read http://localhost:8080/tomcat-docs/appdev/index.html for an 
easy way to deploy applications under 4.1.x. using Ant.

Good luck

rls





Michael Remijan [EMAIL PROTECTED]
08/11/2002 02:57 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:RE: Apache 2 and Tomcat 4

Robert,

Yes, but I don't and can't use an index.html.  I need index.jsp so I can 
put a tag in the page that will do a redirect to another jsp page if need 
be.  I've setup workers2.properties like this:

[uri:/diary]
info=Diary webapp in the default context
context=/diary
debug=0

[uri:/diary/servlet/*]
info=Prefix mapping

[uri:/diary/do/*]
info=Prefix mapping

[uri:/diary/*.jsp]
info=Extension mapping


but still get a directory listing when I goto http://localhost/diary or 
http://localhost/diary/  So it's like apache isn't forwarding this request to tomcat.  
If I put 
in http://localhost/diary/index.jsp it works fine.


mike/


-Original Message-
From: Robert L Sowders [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 05, 2002 6:37 PM
To: Tomcat Users List
Subject: RE: Apache 2 and Tomcat 4


Mod_jk2 doesn't have anything to do with the default index page.  That is 
up to Apache or Tomcat depending on what dirs Tomcat is mounting with 
mod_jk2.  This is determined in the works2.properties file in the 
APACHE_HOME\conf directory. (*.jsp)

Tomcat is set to recognize the index.jsp as the default in it's 
directories already.  If you just want a page to look at instead of the 
directory listing for the example directory then a simple index.html will 
do just fine.

Have a look at TOMCAT_HOME\examples\servlets\index.html or the 
TOMCAT_HOME\examples\jsp\index.html.  Apache will hand you these pages so 
there's no need to do a index.jsp.  Remember let Apache and Tomcat do 
their respective jobs, static for Apache, and jsp for Tomcat.






Michael Remijan [EMAIL PROTECTED]
08/05/2002 12:52 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:RE: Apache 2 and Tomcat 4

Robert,

I tracked it down.  I've been using jdk1.4.1beta.  Once I downloaded and 
installed jdk1.4.0 it started to work.  How do I get mod_jk2 to recognize 
index.jsp as the default page.  I obviously need that other than a 
directory listing.  I have index.jsp added to DirectoryIndex in 
httpd.conf and I have the welcome-file-list set in the web.xml's


mike/



-Original Message-
From: Robert L Sowders [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 05, 2002 1:03 PM
To: Tomcat Users List
Cc: Tomcat Users List
Subject: RE: Apache 2 and Tomcat 4


Hey Mike,

What do the apache log files say?  Chck there to see any errors during 
startup for Tomcat.  Check your JAVA_HOME environment variable and path 
statement for accuracy.  You may also want to include the JAVA_HOME\bin 
dir in the path so the JAI is found.

Hope this helps.





Michael Remijan [EMAIL PROTECTED]
08/05/2002 09:50 AM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:RE: Apache 2 and Tomcat 4

Robert,

I followed these steps but it doesn't appear to be working.  The 
stderr.log says:
---
TomcatStarter: main()
Try  org.apache.tomcat.startup.Main
Try  org.apache.catalina.startup.BootstrapService
Starting org.apache.catalina.startup.BootstrapService
java.lang.NoClassDefFoundError: org/xml/sax/InputSource
 at java.lang.Class.newInstance0(Native Method)
 at java.lang.Class.newInstance(Unknown Source)
 at 
org.apache.catalina.startup.BootstrapService.init(BootstrapService.java:198)
 at 
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:292)
 at java.lang.reflect.Method.invoke(Native Method)
 at 
org.apache.jk.apr.TomcatStarter.run(TomcatStarter.java:127)
 at java.lang.Thread.run(Unknown Source)
---


couple things about your post:
(1) you say
 Cut and paste the following jk2.properties file into the JAVA_HOME\conf 
 directory 
 (Edit paths to suit)
I'm assuming you mean TOMCAT_HOME


(2) my jdk1.4 is in c:\program files\j2se.  this make a difference?


mike/

-Original Message-
From: Robert L Sowders [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 11:18 PM
To: [EMAIL PROTECTED]
Subject: Re: Apache 2 and Tomcat 4


Sure thing,

But it's for Tomcat 4.1.8

Install J2sdk1.4.0_01
http://java.sun.com/j2se/1.4/download.html
No need to install src or demos.  I chose an install path of c:\1\java, 
try to keep it simple. Add the java bin directory to 

Re: Getting mod_webapp

2002-08-12 Thread Adrian

You have to have the servlet.jar in your classpath just like when you build
a connector. I`ve built `em on FreeBSD,
so I know it can be a pain. There was a site www.pubbitch.org/jboss that
helped point me in the right direction. I`ve got to build a linux box today
for a customer with James and Tomcat, write back if you still need help.
- Original Message -
From: Murray Cumming [EMAIL PROTECTED]
To: Tomcat-User [EMAIL PROTECTED]
Sent: Sunday, August 11, 2002 2:58 PM
Subject: Getting mod_webapp


 I'm sure this should be on an FAQ somewhere, but I have a good look all
 over the place and I can't find any definitive help.

 I'm using Tomcat 4.0.4 (because I've read that Cocoon 2 needs it rather
 than Tomcat 3), trying to make it work though Apache2 on RedHat 7.2

 To keeps things simple, I've installed from the RPM. I believe I need
 the mod_webapp apache module that's provided by
 tomcat-jakarta-connectors4.0.4, but I can't find any RPM of this.

 Instead, I tried building tomcat-jakarta-connectors from source, but
 maybe I'm not familiar enough with the ant build system:

 If I run ant from the top level I get this error:

 [javac] Compiling 31 source files to
 /home/murrayc/jakarta-tomcat-connectors-4.0.4-src/jk/build/classes
 [javac]

/home/murrayc/jakarta-tomcat-connectors-4.0.4-src/jk/java/org/apache/jk/comm
on/JkInputStream.java:66: package javax.servlet does not exist
 [javac] import javax.servlet.ServletInputStream;


 And if I run ant from the webapp directory, I get this error:

 BUILD FAILED

file:/home/murrayc/jakarta-tomcat-connectors-4.0.4-src/webapp/build.xml:105:
Cannot find Tomcat 4.0 classes


 --
 Murray Cumming
 [EMAIL PROTECTED]
 www.murrayc.com


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




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




Re: Getting mod_webapp

2002-08-12 Thread Murray Cumming


On Mon, 2002-08-12 at 12:33, Adrian wrote:
 You have to have the servlet.jar in your classpath just like when you build
 a connector.

Thanks, but I'm afraid I need to have this spelled out. I don't seem to
have any CLASSPATH environment variable set. With ant, is there some
standard way to add a path to the classpath used while building?

 I`ve built `em on FreeBSD,
 so I know it can be a pain. There was a site www.pubbitch.org/jboss that
 helped point me in the right direction.

This page:
http://www.pubbitch.org/jboss.html
suggests building it with a manual gcc command line, but I would really
prefer to use the regular build system.

There are other pages there about using mod_jk2 instead, but everything
I've seen so far suggests that mod_webapp is the regular choice. I just
want to set it up in the most standard way possible.

 I`ve got to build a linux box today
 for a customer with James and Tomcat, write back if you still need help.
 - Original Message -
 From: Murray Cumming [EMAIL PROTECTED]
 To: Tomcat-User [EMAIL PROTECTED]
 Sent: Sunday, August 11, 2002 2:58 PM
 Subject: Getting mod_webapp
 
 
  I'm sure this should be on an FAQ somewhere, but I have a good look all
  over the place and I can't find any definitive help.
 
  I'm using Tomcat 4.0.4 (because I've read that Cocoon 2 needs it rather
  than Tomcat 3), trying to make it work though Apache2 on RedHat 7.2
 
  To keeps things simple, I've installed from the RPM. I believe I need
  the mod_webapp apache module that's provided by
  tomcat-jakarta-connectors4.0.4, but I can't find any RPM of this.
 
  Instead, I tried building tomcat-jakarta-connectors from source, but
  maybe I'm not familiar enough with the ant build system:
 
  If I run ant from the top level I get this error:
 
  [javac] Compiling 31 source files to
  /home/murrayc/jakarta-tomcat-connectors-4.0.4-src/jk/build/classes
  [javac]
 
 /home/murrayc/jakarta-tomcat-connectors-4.0.4-src/jk/java/org/apache/jk/comm
 on/JkInputStream.java:66: package javax.servlet does not exist
  [javac] import javax.servlet.ServletInputStream;
 
 
  And if I run ant from the webapp directory, I get this error:
 
  BUILD FAILED
 
 file:/home/murrayc/jakarta-tomcat-connectors-4.0.4-src/webapp/build.xml:105:
 Cannot find Tomcat 4.0 classes
 
 
  --
  Murray Cumming
  [EMAIL PROTECTED]
  www.murrayc.com
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
-- 
Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com


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




RE: upgrading from v.3.1.1 to v.3.3 ?

2002-08-12 Thread Larry Isaacs

I would start with:

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

which documents changes to Tomcat 3.3 from Tomcat 3.2.x.
Install a complete copy of Tomcat 3.3.1 and either
copy your web applications over, or refer to:

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

on how to serve your 3.1.1 webapps without copying them.
As long as your webapps are not dependent on bugs or quirks
in Tomcat 3.1.1, it shouldn't be a lot of work getting them
to run successfully in Tomcat 3.3.1.

HTH

Cheers,
Larry

 -Original Message-
 From: Paul Tomsic [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, August 09, 2002 7:23 PM
 To: [EMAIL PROTECTED]
 Subject: upgrading from v.3.1.1 to v.3.3 ?
 
 
 What's involved w/ an upgrade of Tomcat from 3.1.1
 to 3.3?
 
 Is this a fairly straight forward task, or is it quite
 involved?
 We're experiencing some odd behaviour from 3.1.1,
 and can't help but wonder if it's got something to do
 w/ the old version.
 
 Unfortunately, we're in the middle of a crunch
 deadline, so if it's as simple as say, swapping out a
 jar file or something, that would be great.
 
 Thoughts, or can someone point me to a FAQ on
 upgrading like this?
 
 Thanks,
 
 Paul Tomsic
 
 
 __
 Do You Yahoo!?
 HotJobs - Search Thousands of New Jobs
 http://www.hotjobs.com
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

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




RE: NetBeans + Tomcat 4.0.4

2002-08-12 Thread Turner, John


I had the same problem...the folks on the netbeans list told me it was a bug
with tomcat integration.  Not sure if it was fixed or not, I've been using
4.0.3 with Netbeans and it is OK.

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Alexander Wallace [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 12:04 PM
To: [EMAIL PROTECTED]
Subject: NetBeans + Tomcat 4.0.4


Does anyone here use NetBeans with tomcat 404?

I'm using it, and use a small class to start tomcat from netbeans
(instead of using the internal one that's 3.2), it works great when I
want to debug servlets. But no JSP works, they all give error 500, even
the ones in /exaples. But if i start it manually (i can't debug then, or
is there a way?) the jsps work fine.

The root couse starts with: java.lang.NoSuchMethodError:
javax.servlet.ServletResponse.resetBuffer()

Any clues?





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

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




RE: 500 error on all JSP pages

2002-08-12 Thread Anderson, Richard D ERDC-ITL-MS Contractor

i have experienced the same issue using tomcat 4.0.4, have any suggestions?
i'm running red hat 7.2, tomcat 4.0.4,and j2sdk1.4.0_01.

the error log says (it's really long):


2002-08-09 10:13:28 WebappLoader[/examples]: Deploying class repositories to
work directory
/home/u4ih9rda/project/Jakarta/jakarta-tomcat-4.0.4-src/dist/work/Standalone
/localhost/examples
2002-08-09 10:13:28 WebappLoader[/examples]: Reloading checks are enabled
for
this Context
2002-08-09 10:13:28 StandardManager[/examples]: Seeding random number
generator
class java.security.SecureRandom
2002-08-09 10:13:28 StandardManager[/examples]: Seeding of random number
generator has been completed
2002-08-09 10:13:29 ContextConfig[/examples]: Added certificates - request
attribute Valve
2002-08-09 10:13:29 ContextConfig[/examples]: Configured an authenticator
for
method FORM
2002-08-09 10:13:29 ContextListener: contextInitialized()
2002-08-09 10:13:29 SessionListener: contextInitialized()
2002-08-09 10:13:29 ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@901437')
2002-08-09 10:13:29 StandardWrapper[/examples:default]: Loading container
servlet default
2002-08-09 10:13:29 StandardWrapper[/examples:invoker]: Loading container
servlet invoker
2002-08-09 10:13:29 StandardContext[/examples]: Servlet /examples threw
load()
exception
javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:94
6)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3279)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at
org.apache.xerces.parsers.AbstractDOMParser.setDocumentClassName(AbstractDOM
Parser.java:347)
at
org.apache.xerces.parsers.AbstractDOMParser.reset(AbstractDOMParser.java:417
)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:151)
at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:253)
at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:20
1)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:86)
at
org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:201)
at
org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCa
che.java:165)
at
org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:1
38)
at
org.apache.jasper.EmbededServletOptions.init(EmbededServletOptions.java:35
0)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:265)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
8)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3279)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at 

RE: can't find mod_jk.conf

2002-08-12 Thread Turner, John


To get mod_jk.conf auto-generated, you need to add Listener directives into
server.xml. 

You'll need one at the Server level, and one (or more) at the Host level for
each different Host.

See my HOWTO at http://www.johnturner.com/howto/apache-tomcat-howto.html ,
step #10.  The HOWTO is for RedHat, but the server.xml is the same
regardless of platform, as far as I know.

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Scott Adamson [mailto:[EMAIL PROTECTED]]
Sent: Sunday, August 11, 2002 11:35 AM
To: Tomcat Users List
Subject: can't find mod_jk.conf


I have been trying to get Tomcat 4.04 to work with Apache (compiled
statically with mod_jk). According to the HOWTO on the Apache site
mod_jk.conf should be auto-generated with startup, it isnt. My guess would
be that there is some other configuration I need, but the HOWTO only seems
to mentions a 'workers.properties' file, which I created as instructed. Can
anyone help me with Tomcat 4 + Apache + mod_jk ? I would prefer to stick
with mod_jk (it already works with tomcat3.2.1) but I would consider using
other connectors.


Any help that anyone can offer would be much appreciated.

regards,

Scott Adamson
Systems Administrator
Syware Technology

[EMAIL PROTECTED]
http://upe.com.au


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

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




Re: new to tomcat

2002-08-12 Thread Michael E. Locasto

Amit,

 But when i create  TESTJSP directory under
 Tomcat4.0
 - webapps
 --- TESTJSP
 ---  HelloWorld.jsp

did you restart Tomcat after you created that directory and put the jsp in
it?

You don't need a Context entry in server.xml for directories under webapps/
...
they will get loaded automagically at startup.

Regards,
Michael



  try to view in browser ..
 http://localhost:8080/TESTJSP/HelloWorld.jsp

 it gives error saying HTTP 404 error .. requested resources are not
 available..
 Can u tell me what type of error is it?

 regards

 Amit Luktuke



 - Original Message -
 From: Ben Walding [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Saturday, August 10, 2002 1:40 PM
 Subject: Re: new to tomcat


  Possibly :
  You should have called the dir webapps
 
  not webaaps
 
  Although this is probably just a typo in your email :)
 
  Amit Luktuke wrote:
 
  hello
  
  I am very new to Tomcat4.0.
  I have successfully installed tomcat4.0 on my machine but can not able
to
 run simple HelloWorld.jsp file.
  
  I have put it in folder
  C:\Tomcat4.0\webaaps\TestJSP\Helloworld.jsp
  
 webapps
 
  
  On brower ..
  http://localhost:8080/TestJSP/Helloworld.jsp
  
  My O.S is windows 2000 professional  i have JDK1.3 installed.
  
  Can anyone help me
  
  
  Regards
  
  Amit Luktuke
  
  
  
  
 
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 


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


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




RES: tomcat + apache

2002-08-12 Thread Tiago Ferraz Machado

I'm just translating the mail... (And my Spanish isn't thaat thing... I speak 
Portuguese, which is very close to Spanish). Any corrections to my Spanish are welcome 
!! : )

See ya,

Tiago.

=
Hi I'm trying, in my linux suse 8, to run tomcat with apache, and to make that port 80 
also answer to the particions jsp and I'm not having success.

To see the jsp, I have to look at port 8080.

At the httpd.conf of apache, I have :


-Mensagem original-
De: Carlos [mailto:[EMAIL PROTECTED]]
Enviada em: sexta-feira, 9 de agosto de 2002 17:11
Para: [EMAIL PROTECTED]
Assunto: tomcat + apache

LoadModule webapp_module /usr/lib/apache/mod_webapp.so
WebAppConnection tomcat warp localhost:8008
WebAppDeploy examples tomcat /examples
WebAppInfo /webapp-info
# The following line prohibits users from directly accessing WEB-INF
Location /examples/WEB-INF/
AllowOverride None
deny from all
/Location

The documentRoot of apache is at /usr/local/httpd/htdocs. How can I run at the port 80 
the pages that are at /usr/local/httpd/htdocs/admin ?

The DocumentRoot of Tomcat is at /opt/jakarta/webapps/ROOT

Can you help me with this ?

I'm trying this during 2 weeks and couldn't make it.
I think that could be many things:
1- Edit the httpd.conf of apache and add a conector with the port.
2- Edit the server.xml and add a context, but even more I try, I can't see the admin.

Could you help me ?

Thanks.

=

hola estoy intentando , en mi linux suse 8, hacer andar el tomcat con el
apache, es decir que el puerto 80 tambien responda a las peticones jsp y no
lo consigo.
para ver las jsp tengo que poenr 8080.
bien el el httpd.conf de apache tengo:
LoadModule webapp_module /usr/lib/apache/mod_webapp.so
WebAppConnection tomcat warp localhost:8008
WebAppDeploy examples tomcat /examples
WebAppInfo /webapp-info
# The following line prohibits users from directly accessing WEB-INF
Location /examples/WEB-INF/
AllowOverride None
deny from all
/Location

el documentoRoot de apache esta en /usr/local/httpd/htdocs. Como puedo hacer
andar en el puerto 80 unas paginas jsp que estan el:
/usr/local/httpd/htdocs/admin ?
el documento root de tomcat esta en /opt/jakarta/webapps/ROOT

Me podeis ayudar con esto?

llevo dos semanas con ello y no consigo tirar adelante.
Me imagino que hay que hacer varias cosas:
1.- editar el httpd.conf de apache y añadir un conector con un puerto
2.- editar el server.xml y añadir un contexcto pero por mas que hago pruebas
no consigo ver el admin.

Me podeis ayudar?
muchas gracias



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


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




StandardWrapperFacade?!

2002-08-12 Thread Maia Zaharieva

hi all,
i am using tomcat 4.0.1. and i keep getting the following exception while
starting my servlet:
 StandardManager[/templateconfig] Exception loading sessions from persistent
storage java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.catalina.core.StandardWrapperFacade
.
Caused by: java.io.NotSerializableException:
org.apache.catalina.core.StandardWrapperFacade

does anyone know why it happens?

thanks,
maia



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




Re: new to tomcat

2002-08-12 Thread Vishal Mukherjee

hi
Is it necessary to deploy the application under webapps directory only.
Regards
Vishal

- Original Message -
From: Michael E. Locasto [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 12, 2002 6:04 PM
Subject: Re: new to tomcat


Amit,

 But when i create  TESTJSP directory under
 Tomcat4.0
 - webapps
 --- TESTJSP
 ---  HelloWorld.jsp

did you restart Tomcat after you created that directory and put the jsp in
it?

You don't need a Context entry in server.xml for directories under webapps/
...
they will get loaded automagically at startup.

Regards,
Michael



  try to view in browser ..
 http://localhost:8080/TESTJSP/HelloWorld.jsp

 it gives error saying HTTP 404 error .. requested resources are not
 available..
 Can u tell me what type of error is it?

 regards

 Amit Luktuke



 - Original Message -
 From: Ben Walding [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Saturday, August 10, 2002 1:40 PM
 Subject: Re: new to tomcat


  Possibly :
  You should have called the dir webapps
 
  not webaaps
 
  Although this is probably just a typo in your email :)
 
  Amit Luktuke wrote:
 
  hello
  
  I am very new to Tomcat4.0.
  I have successfully installed tomcat4.0 on my machine but can not able
to
 run simple HelloWorld.jsp file.
  
  I have put it in folder
  C:\Tomcat4.0\webaaps\TestJSP\Helloworld.jsp
  
 webapps
 
  
  On brower ..
  http://localhost:8080/TestJSP/Helloworld.jsp
  
  My O.S is windows 2000 professional  i have JDK1.3 installed.
  
  Can anyone help me
  
  
  Regards
  
  Amit Luktuke
  
  
  
  
 
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 


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


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

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




Re: tomcat + apache

2002-08-12 Thread Michael E. Locasto

We can at least make a best effort ... :)


Carlos,

 el documentoRoot de apache esta en /usr/local/httpd/htdocs. Como puedo
hacer
 andar en el puerto 80 unas paginas jsp que estan el:
 /usr/local/httpd/htdocs/admin ?

Que necessita hacer es añadir un contexcto en

 /opt/jakarta/webapps/conf/server.xml que dice:

Context path=/admin docBase=/usr/local/httpd/htdocs/admin debug=0
reloadable=true /

y (pienso, no uso el mod_webapp, uso mod_jk)

WebAppDeploy admin tomcat /admin
Location /admin/WEB-INF/
AllowOverride None
deny from all
/Location

Lo siento para mi espanol muy mal.

Buen suerte,

Michael




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




Re: new to tomcat

2002-08-12 Thread Michael E. Locasto

No sir, you can pretty much put the directory any place you want, as long as
you then specify a Context entry telling Tomcat where to find it.

Regards,
Michael


- Original Message -
From: Vishal Mukherjee [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 12, 2002 8:25 AM
Subject: Re: new to tomcat


 hi
 Is it necessary to deploy the application under webapps directory only.
 Regards
 Vishal

 - Original Message -
 From: Michael E. Locasto [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, August 12, 2002 6:04 PM
 Subject: Re: new to tomcat


 Amit,

  But when i create  TESTJSP directory under
  Tomcat4.0
  - webapps
  --- TESTJSP
  ---  HelloWorld.jsp

 did you restart Tomcat after you created that directory and put the jsp in
 it?

 You don't need a Context entry in server.xml for directories under
webapps/
 ...
 they will get loaded automagically at startup.

 Regards,
 Michael


 
   try to view in browser ..
  http://localhost:8080/TESTJSP/HelloWorld.jsp
 
  it gives error saying HTTP 404 error .. requested resources are not
  available..
  Can u tell me what type of error is it?
 
  regards
 
  Amit Luktuke
 
 
 
  - Original Message -
  From: Ben Walding [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Saturday, August 10, 2002 1:40 PM
  Subject: Re: new to tomcat
 
 
   Possibly :
   You should have called the dir webapps
  
   not webaaps
  
   Although this is probably just a typo in your email :)
  
   Amit Luktuke wrote:
  
   hello
   
   I am very new to Tomcat4.0.
   I have successfully installed tomcat4.0 on my machine but can not
able
 to
  run simple HelloWorld.jsp file.
   
   I have put it in folder
   C:\Tomcat4.0\webaaps\TestJSP\Helloworld.jsp
   
  webapps
  
   
   On brower ..
   http://localhost:8080/TestJSP/Helloworld.jsp
   
   My O.S is windows 2000 professional  i have JDK1.3 installed.
   
   Can anyone help me
   
   
   Regards
   
   Amit Luktuke
   
   
   
   
  
  
  
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


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

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


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




AW: 500 error on all JSP pages

2002-08-12 Thread Ralph Einfeldt

The relevant part is the root cause (see below).

It looks like your xerces.jar isn't found or the 
jar that is found is an outdated version.

So look where the jar is and if it is the only 
one on your system, and check that it contains 
the org/w3c/dom/ranges/DocumentRange.class.

 -Ursprüngliche Nachricht-
 Von: Anderson, Richard D ERDC-ITL-MS Contractor
 [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 12. August 2002 14:04
 An: 'Tomcat Users List'
 Betreff: RE: 500 error on all JSP pages
 
 - Root Cause -
 java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:130)

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




Re: Getting mod_webapp

2002-08-12 Thread Adrian

Are you running apache2 ? If not you need to get the APR and unzip it in the
webapp dir. Keep me updated, we`ll get you through it. Going to work, write
me back If I can help. I check my mail there too.
- Original Message -
From: Murray Cumming [EMAIL PROTECTED]
To: Adrian [EMAIL PROTECTED]
Cc: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 12, 2002 7:45 AM
Subject: Re: Getting mod_webapp



 On Mon, 2002-08-12 at 12:33, Adrian wrote:
  You have to have the servlet.jar in your classpath just like when you
build
  a connector.

 Thanks, but I'm afraid I need to have this spelled out. I don't seem to
 have any CLASSPATH environment variable set. With ant, is there some
 standard way to add a path to the classpath used while building?

  I`ve built `em on FreeBSD,
  so I know it can be a pain. There was a site www.pubbitch.org/jboss that
  helped point me in the right direction.

 This page:
 http://www.pubbitch.org/jboss.html
 suggests building it with a manual gcc command line, but I would really
 prefer to use the regular build system.

 There are other pages there about using mod_jk2 instead, but everything
 I've seen so far suggests that mod_webapp is the regular choice. I just
 want to set it up in the most standard way possible.

  I`ve got to build a linux box today
  for a customer with James and Tomcat, write back if you still need help.
  - Original Message -
  From: Murray Cumming [EMAIL PROTECTED]
  To: Tomcat-User [EMAIL PROTECTED]
  Sent: Sunday, August 11, 2002 2:58 PM
  Subject: Getting mod_webapp
 
 
   I'm sure this should be on an FAQ somewhere, but I have a good look
all
   over the place and I can't find any definitive help.
  
   I'm using Tomcat 4.0.4 (because I've read that Cocoon 2 needs it
rather
   than Tomcat 3), trying to make it work though Apache2 on RedHat 7.2
  
   To keeps things simple, I've installed from the RPM. I believe I need
   the mod_webapp apache module that's provided by
   tomcat-jakarta-connectors4.0.4, but I can't find any RPM of this.
  
   Instead, I tried building tomcat-jakarta-connectors from source, but
   maybe I'm not familiar enough with the ant build system:
  
   If I run ant from the top level I get this error:
  
   [javac] Compiling 31 source files to
   /home/murrayc/jakarta-tomcat-connectors-4.0.4-src/jk/build/classes
   [javac]
  
 
/home/murrayc/jakarta-tomcat-connectors-4.0.4-src/jk/java/org/apache/jk/comm
  on/JkInputStream.java:66: package javax.servlet does not exist
   [javac] import javax.servlet.ServletInputStream;
  
  
   And if I run ant from the webapp directory, I get this error:
  
   BUILD FAILED
  
 
file:/home/murrayc/jakarta-tomcat-connectors-4.0.4-src/webapp/build.xml:105:
  Cannot find Tomcat 4.0 classes
  
  
   --
   Murray Cumming
   [EMAIL PROTECTED]
   www.murrayc.com
  
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
 
 
 --
 Murray Cumming
 [EMAIL PROTECTED]
 www.murrayc.com


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





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




RE: 500 error on all JSP pages

2002-08-12 Thread Anderson, Richard D ERDC-ITL-MS Contractor

i'll do that. funny thing is tomcat comes with xerces.jar and i've used the
file the came packaged with tomcat 4.0.4.

i have downloaded the latest xerces.jar and i will try that.  if none of
that works how do i check the jar file

to see if it contains the class needed?  i tried unsuccessfully to view it
using an editor, i figured i couldn't, but i was worth a try.

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 7:43 AM
To: Tomcat Users List
Subject: AW: 500 error on all JSP pages


The relevant part is the root cause (see below).

It looks like your xerces.jar isn't found or the 
jar that is found is an outdated version.

So look where the jar is and if it is the only 
one on your system, and check that it contains 
the org/w3c/dom/ranges/DocumentRange.class.

 -Ursprüngliche Nachricht-
 Von: Anderson, Richard D ERDC-ITL-MS Contractor
 [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 12. August 2002 14:04
 An: 'Tomcat Users List'
 Betreff: RE: 500 error on all JSP pages
 
 - Root Cause -
 java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:130)

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

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




Re: Getting mod_webapp

2002-08-12 Thread Murray Cumming

On Mon, 2002-08-12 at 13:46, Adrian wrote:
 Are you running apache2 ?

Yes. It's installed by default on RedHat 7.2

 If not you need to get the APR

Erm, what's an APR?

 and unzip it in the
 webapp dir. Keep me updated, we`ll get you through it. Going to work, write
 me back If I can help. I check my mail there too.
 - Original Message -
 From: Murray Cumming [EMAIL PROTECTED]
 To: Adrian [EMAIL PROTECTED]
 Cc: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, August 12, 2002 7:45 AM
 Subject: Re: Getting mod_webapp
 
 
 
  On Mon, 2002-08-12 at 12:33, Adrian wrote:
   You have to have the servlet.jar in your classpath just like when you
 build
   a connector.
 
  Thanks, but I'm afraid I need to have this spelled out. I don't seem to
  have any CLASSPATH environment variable set. With ant, is there some
  standard way to add a path to the classpath used while building?
 
   I`ve built `em on FreeBSD,
   so I know it can be a pain. There was a site www.pubbitch.org/jboss that
   helped point me in the right direction.
 
  This page:
  http://www.pubbitch.org/jboss.html
  suggests building it with a manual gcc command line, but I would really
  prefer to use the regular build system.
 
  There are other pages there about using mod_jk2 instead, but everything
  I've seen so far suggests that mod_webapp is the regular choice. I just
  want to set it up in the most standard way possible.
 
   I`ve got to build a linux box today
   for a customer with James and Tomcat, write back if you still need help.
   - Original Message -
   From: Murray Cumming [EMAIL PROTECTED]
   To: Tomcat-User [EMAIL PROTECTED]
   Sent: Sunday, August 11, 2002 2:58 PM
   Subject: Getting mod_webapp
  
  
I'm sure this should be on an FAQ somewhere, but I have a good look
 all
over the place and I can't find any definitive help.
   
I'm using Tomcat 4.0.4 (because I've read that Cocoon 2 needs it
 rather
than Tomcat 3), trying to make it work though Apache2 on RedHat 7.2
   
To keeps things simple, I've installed from the RPM. I believe I need
the mod_webapp apache module that's provided by
tomcat-jakarta-connectors4.0.4, but I can't find any RPM of this.
   
Instead, I tried building tomcat-jakarta-connectors from source, but
maybe I'm not familiar enough with the ant build system:
   
If I run ant from the top level I get this error:
   
[javac] Compiling 31 source files to
/home/murrayc/jakarta-tomcat-connectors-4.0.4-src/jk/build/classes
[javac]
   
  
 /home/murrayc/jakarta-tomcat-connectors-4.0.4-src/jk/java/org/apache/jk/comm
   on/JkInputStream.java:66: package javax.servlet does not exist
[javac] import javax.servlet.ServletInputStream;
   
   
And if I run ant from the webapp directory, I get this error:
   
BUILD FAILED
   
  
 file:/home/murrayc/jakarta-tomcat-connectors-4.0.4-src/webapp/build.xml:105:
   Cannot find Tomcat 4.0 classes
   
   
--
Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com
   
   
--
To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
   
   
  
  
  --
  Murray Cumming
  [EMAIL PROTECTED]
  www.murrayc.com
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
-- 
Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com


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




RE: Weird no such method error - pulling out my hair

2002-08-12 Thread Stefan Langer

First thing first

Are all your classes on the Classpath? Is the class PageBase available in
web-inf/classes or in a jar in Web-inf/lib?

If so then it might be jsp cache problem. In other words delete your old jsp
classes and recompile them so that you are definitly having a current class
in there and you are not using an old version of your jsp. Sometimes there
is a problem with Tomcat discovering if the jsp have changed or not...

If it is neither of em ... I'm out of ideas.

A detailed setup of your webapp might help!

Stefan



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




AW: 500 error on all JSP pages

2002-08-12 Thread Ralph Einfeldt

The xerces that is delivered with tomcat 
should be okay (at least it is for 4.0.3).

To view the content of a jar use either 
$JAVA_HOME/bin/jar tvf jarfile
or use an ordinary zip tool.

Are you shure that that you don't have an jar file
on your system that contains the w3c classes that 
might be found before xerces ?

There might be other jar files that contain this 
classes. Have look espcially at jar files in
$JAVA_HOME/jre/lib/ext.

Ralph Einfeldt
Uptime Internet Solution Center GmbH
Hamburg, Germany
Hosting, Content Management, Java Consulting
http://www.uptime-isc.de 

 -Ursprüngliche Nachricht-
 Von: Anderson, Richard D ERDC-ITL-MS Contractor
 [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 12. August 2002 14:54
 An: 'Tomcat Users List'
 Betreff: RE: 500 error on all JSP pages
 
 
 i'll do that. funny thing is tomcat comes with xerces.jar and 
 i've used the
 file the came packaged with tomcat 4.0.4.
 
 i have downloaded the latest xerces.jar and i will try that.  
 if none of that works how do i check the jar file
 

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




RE: Getting mod_webapp

2002-08-12 Thread Turner, John


APR = Apache Portable Runtime

http://apr.apache.org/

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Murray Cumming [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 9:04 AM
To: Adrian
Cc: Tomcat Users List
Subject: Re: Getting mod_webapp


On Mon, 2002-08-12 at 13:46, Adrian wrote:
 Are you running apache2 ?

Yes. It's installed by default on RedHat 7.2

 If not you need to get the APR

Erm, what's an APR?

 and unzip it in the
 webapp dir. Keep me updated, we`ll get you through it. Going to work,
write
 me back If I can help. I check my mail there too.
 - Original Message -
 From: Murray Cumming [EMAIL PROTECTED]
 To: Adrian [EMAIL PROTECTED]
 Cc: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, August 12, 2002 7:45 AM
 Subject: Re: Getting mod_webapp
 
 
 
  On Mon, 2002-08-12 at 12:33, Adrian wrote:
   You have to have the servlet.jar in your classpath just like when you
 build
   a connector.
 
  Thanks, but I'm afraid I need to have this spelled out. I don't seem to
  have any CLASSPATH environment variable set. With ant, is there some
  standard way to add a path to the classpath used while building?
 
   I`ve built `em on FreeBSD,
   so I know it can be a pain. There was a site www.pubbitch.org/jboss
that
   helped point me in the right direction.
 
  This page:
  http://www.pubbitch.org/jboss.html
  suggests building it with a manual gcc command line, but I would really
  prefer to use the regular build system.
 
  There are other pages there about using mod_jk2 instead, but everything
  I've seen so far suggests that mod_webapp is the regular choice. I just
  want to set it up in the most standard way possible.
 
   I`ve got to build a linux box today
   for a customer with James and Tomcat, write back if you still need
help.
   - Original Message -
   From: Murray Cumming [EMAIL PROTECTED]
   To: Tomcat-User [EMAIL PROTECTED]
   Sent: Sunday, August 11, 2002 2:58 PM
   Subject: Getting mod_webapp
  
  
I'm sure this should be on an FAQ somewhere, but I have a good look
 all
over the place and I can't find any definitive help.
   
I'm using Tomcat 4.0.4 (because I've read that Cocoon 2 needs it
 rather
than Tomcat 3), trying to make it work though Apache2 on RedHat 7.2
   
To keeps things simple, I've installed from the RPM. I believe I
need
the mod_webapp apache module that's provided by
tomcat-jakarta-connectors4.0.4, but I can't find any RPM of this.
   
Instead, I tried building tomcat-jakarta-connectors from source, but
maybe I'm not familiar enough with the ant build system:
   
If I run ant from the top level I get this error:
   
[javac] Compiling 31 source files to
/home/murrayc/jakarta-tomcat-connectors-4.0.4-src/jk/build/classes
[javac]
   
  

/home/murrayc/jakarta-tomcat-connectors-4.0.4-src/jk/java/org/apache/jk/comm
   on/JkInputStream.java:66: package javax.servlet does not exist
[javac] import javax.servlet.ServletInputStream;
   
   
And if I run ant from the webapp directory, I get this error:
   
BUILD FAILED
   
  

file:/home/murrayc/jakarta-tomcat-connectors-4.0.4-src/webapp/build.xml:105:
   Cannot find Tomcat 4.0 classes
   
   
--
Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com
   
   
--
To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
   
   
  
  
  --
  Murray Cumming
  [EMAIL PROTECTED]
  www.murrayc.com
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
-- 
Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com


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

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




RE: RequestDispatcher question

2002-08-12 Thread Shapira, Yoav

Hi,
You're not supposed to use the RequestDispather.forward() method for
another webapp, much less another box.  Try response.sendRedirect()
instead.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 1:57 PM
To: [EMAIL PROTECTED]
Subject: RequestDispatcher question

Hello,

I am trying to send a (request, response) object to a server that lives
at
another IP (or URL). I have the need to pass parameters that are in the
request object, but I cannot seem to forward the request to the other
servlet. I keep getting a error: java.lang.IllegalArgumentException:
Path
http://xxx.xxx.xxx.xxx/testcode/servlet/allparams does not start with a
/
character

When I try the same code on my local machine, within the same web app,
all
works great. So I think the coding is good.  So I am trying to figure
how
to get the request object from one box to another? Any ideas?

Thanks,


Test Code:
// from a method here
try {

gotoPage(http://XXX.XXX.X.XXX/testcode/servlet/allparams;, request,
response);

response.sendRedirect(mm.getSomeURL());
}


private void gotoPage(String address,
  HttpServletRequest request,
  HttpServletResponse response)
throws ServletException, IOException {
RequestDispatcher dispatcher =
getServletContext().getRequestDispatcher(address);
dispatcher.forward(request, response);

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


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




RE: unable to load class

2002-08-12 Thread Shapira, Yoav

Hi,

org.apache.jasper.compiler.CompileException: /bla.jsp(5,0) Unable to
load
class pl.biznespartner.cms.phoenix.server.WindowTag
   at
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.jav
a:13
9
)
...

I double-checked - the class is in the classpath. What's going on?

I doubt the class in the the Jasper classpath, or the Unable to load
class message wouldn't come up ;)  

When you say the class is in the classpath, what do you mean?  Where si
the WindowTag .class file located?  

Perhaps it's worth your time to precompile the JSP (jspc) and try to run
it.  That would at least take the runtime classpath issue out of the
equation, and make sure the JSP page is compile-able and runnable.

Yoav Shapira
Millennium ChemInformatics

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




RE: 500 error on all JSP pages

2002-08-12 Thread Anderson, Richard D ERDC-ITL-MS Contractor

thanks i'm checking my jars now; $JAVA_HOME/jre/lib/ext did not have the
class
and i will definitely check tools.jar and xercesImpl.jar.

xerces2.0.2 does not have xerces.jar or crimson.jar. from what i read, the
classes in both 

are placed in xercesImpl.jar


-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 8:04 AM
To: Tomcat Users List
Subject: AW: 500 error on all JSP pages


The xerces that is delivered with tomcat 
should be okay (at least it is for 4.0.3).

To view the content of a jar use either 
$JAVA_HOME/bin/jar tvf jarfile
or use an ordinary zip tool.

Are you shure that that you don't have an jar file
on your system that contains the w3c classes that 
might be found before xerces ?

There might be other jar files that contain this 
classes. Have look espcially at jar files in
$JAVA_HOME/jre/lib/ext.

Ralph Einfeldt
Uptime Internet Solution Center GmbH
Hamburg, Germany
Hosting, Content Management, Java Consulting
http://www.uptime-isc.de 

 -Ursprüngliche Nachricht-
 Von: Anderson, Richard D ERDC-ITL-MS Contractor
 [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 12. August 2002 14:54
 An: 'Tomcat Users List'
 Betreff: RE: 500 error on all JSP pages
 
 
 i'll do that. funny thing is tomcat comes with xerces.jar and 
 i've used the
 file the came packaged with tomcat 4.0.4.
 
 i have downloaded the latest xerces.jar and i will try that.  
 if none of that works how do i check the jar file
 

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

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




RE: Weird no such method error - pulling out my hair

2002-08-12 Thread Shapira, Yoav

Hi,
Can you pre-compile your JSP with jspc?  I bet as soon as you see the
result of that (if it compiles), you'll be able to fix the error in a
second!

public abstract class PageBase extends HttpJspBase {

Yoav Shapira
Millennium ChemInformatics


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




RE: NetBeans + Tomcat 4.0.4

2002-08-12 Thread Alexander Wallace

Cool! THank you so much. And also when I started using jpda to attach an
external tomcat, the problem was not there.


On Mon, 2002-08-12 at 12:59, Turner, John wrote:
 
 I had the same problem...the folks on the netbeans list told me it was a bug
 with tomcat integration.  Not sure if it was fixed or not, I've been using
 4.0.3 with Netbeans and it is OK.
 
 John Turner
 [EMAIL PROTECTED]
 
 
 -Original Message-
 From: Alexander Wallace [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 12:04 PM
 To: [EMAIL PROTECTED]
 Subject: NetBeans + Tomcat 4.0.4
 
 
 Does anyone here use NetBeans with tomcat 404?
 
 I'm using it, and use a small class to start tomcat from netbeans
 (instead of using the internal one that's 3.2), it works great when I
 want to debug servlets. But no JSP works, they all give error 500, even
 the ones in /exaples. But if i start it manually (i can't debug then, or
 is there a way?) the jsps work fine.
 
 The root couse starts with: java.lang.NoSuchMethodError:
 javax.servlet.ServletResponse.resetBuffer()
 
 Any clues?
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



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




Re: new to tomcat

2002-08-12 Thread Cédric Viaud

No,

you can deploy it everywhere, but if you do so, you have to declare your
application in the %TOMCAT_COME%/conf/server.xml

At the end, of the file INSIDE the HOST/HOST element, add something like
the following :
context path=/applicallname docBase=d:/applidir/everywhereyouwant
debug=0 reloadable=true crossContext=false/

So you can next call your appli by http://localhost:8080/applicallname; and
have your sources in d:/applidir/everywhereyouwant.

Beware of NT and slashes / may become \

Regards,

Cédric

- Original Message -
From: Vishal Mukherjee [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 12, 2002 2:25 PM
Subject: Re: new to tomcat


 hi
 Is it necessary to deploy the application under webapps directory only.
 Regards
 Vishal

 - Original Message -
 From: Michael E. Locasto [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, August 12, 2002 6:04 PM
 Subject: Re: new to tomcat


 Amit,

  But when i create  TESTJSP directory under
  Tomcat4.0
  - webapps
  --- TESTJSP
  ---  HelloWorld.jsp

 did you restart Tomcat after you created that directory and put the jsp in
 it?

 You don't need a Context entry in server.xml for directories under
webapps/
 ...
 they will get loaded automagically at startup.

 Regards,
 Michael


 
   try to view in browser ..
  http://localhost:8080/TESTJSP/HelloWorld.jsp
 
  it gives error saying HTTP 404 error .. requested resources are not
  available..
  Can u tell me what type of error is it?
 
  regards
 
  Amit Luktuke
 
 
 
  - Original Message -
  From: Ben Walding [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Saturday, August 10, 2002 1:40 PM
  Subject: Re: new to tomcat
 
 
   Possibly :
   You should have called the dir webapps
  
   not webaaps
  
   Although this is probably just a typo in your email :)
  
   Amit Luktuke wrote:
  
   hello
   
   I am very new to Tomcat4.0.
   I have successfully installed tomcat4.0 on my machine but can not
able
 to
  run simple HelloWorld.jsp file.
   
   I have put it in folder
   C:\Tomcat4.0\webaaps\TestJSP\Helloworld.jsp
   
  webapps
  
   
   On brower ..
   http://localhost:8080/TestJSP/Helloworld.jsp
   
   My O.S is windows 2000 professional  i have JDK1.3 installed.
   
   Can anyone help me
   
   
   Regards
   
   Amit Luktuke
   
   
   
   
  
  
  
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


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

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



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




newbie question : i can't acces absolute symbolic link created with ln -s command on LINUX

2002-08-12 Thread CouasPhilippe

Hi everybody,


Where is my mistake ?

i can't acces symbolic link with Tomcat 4.1.8 standalone on LINUX.
i have created a link with ln -s command on LINUX. (ln -s /appli appli in ROOT 
directory)
If this symbolic link don't refer to a directory which is in webapps tree i have an 
error 404 with my Browser.
why ?


That is ok with Tomcat 4.0.4
i' can acces with a real directory created with mkdir


Thanks
Philippe


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




JDBC Realm Error --Form- Looking both Database and tomcat-user.xml

2002-08-12 Thread Polly Poon

Hi all,

I have got this error from tomcat JDBC Realm.

My Config
Tomcat 3.2.4
MySQL 3.2.3
Red Hat Linux

Problem
JDBC Realm look up both database and tomcat-users.xml. The error is like
this(This is when the tomcat-users.xml is empty)

2002-08-12 23:01:28 - ContextManager: JDBCRealm: Authentication successful
for user polly
2002-08-12 23:01:28 - ContextManager: JDBCRealm: Auth ok, user=polly

It suppose to look up the role next but somehow it stops.

And then it redirects me to the error.html, the error page that i specific
in web.xml.

IF i insert the user details into tomcat-users.xml, it works perfect.

The JDBC Realm was started successfully. I wonder what this problem could
be.

Thanks in advanced.

From,
Polly


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




One more thing -- JDBC Realm Error --Form- Looking both Database and tomcat-user.xml

2002-08-12 Thread Polly Poon

If i try to insert a name in tomcat-user.xml that doesnt exist in database
it will redirect me to error.html. And if i try to login using a name only
exists in database not in tomcat-users.xml, it redirects me to error.html as
well

Thanks again!

From,
Polly

- Original Message -
From: Polly Poon [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 12, 2002 11:51 PM
Subject: JDBC Realm Error --Form- Looking both Database and tomcat-user.xml


 Hi all,

 I have got this error from tomcat JDBC Realm.

 My Config
 Tomcat 3.2.4
 MySQL 3.2.3
 Red Hat Linux

 Problem
 JDBC Realm look up both database and tomcat-users.xml. The error is like
 this(This is when the tomcat-users.xml is empty)

 2002-08-12 23:01:28 - ContextManager: JDBCRealm: Authentication successful
 for user polly
 2002-08-12 23:01:28 - ContextManager: JDBCRealm: Auth ok, user=polly

 It suppose to look up the role next but somehow it stops.

 And then it redirects me to the error.html, the error page that i specific
 in web.xml.

 IF i insert the user details into tomcat-users.xml, it works perfect.

 The JDBC Realm was started successfully. I wonder what this problem could
 be.

 Thanks in advanced.

 From,
 Polly


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



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




RE: RMI and TC4.x (Really classloader stuff)

2002-08-12 Thread Cox, Charlie

I am not familiar with RMI, but I have looked at the classloaders.

The classloader overview is defined in the classloader document. 
There are two instances of StandardClassLoader that are used by webapps,
'shared' and 'common'. Then each webapp has its own WebappClassLoader
instance.

If the WebappClassLoader can not find a class then it delegates to the
'shared' instance of StandardClassLoader, which then can delegate to the
'common' instance.

Are you by chance passing a Hashtable,Vector,etc that contain instances of
your classes? If so you may want to see this thread from last week which
also had a problem serializing objects(although not with RMI):
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg61929.html

For (2) below:
This is difficult because classes loaded by the WebappClassLoader will not
know about the classes that you load. This is why you get
ClassNotfoundExceptions. It may help to set the current classloader as the
parent for your new classloader, so that class requests can be delegated.

For (3) below:
This is what the WebappClassLoader already does. The webapp specific things
are in the /WEB-INF/lib, which you said was returned by getUrls().

I looked at the bug listed previously. does the stack trace change when you
have no spaces in the tomcat path?

Charlie


 -Original Message-
 From: Greg Trasuk [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 11:54 PM
 To: 'Tomcat Users List'
 Subject: RE: RMI and TC4.x (Really classloader stuff)
 
 
 Hi David:
 
   I'm in the same boat trying to use RMI and/or Jini from 
 Tomcat.  This isn't
 a complete answer to your question, as I'm still 
 investigating the issue,
 but I'm posting what I know so far in the hope that it might 
 help in your
 own solution, and also generate discussion that will guide my 
 exploration.
 When all is said and done, if there's interest, I can post a 
 Catalina-RMI
 HOWTO sort of document.
 
   Although I didn't try to run the test case that you 
 attached to your bug
 report, I did take a look at it, and I think I know what's 
 going on.  Here's
 what I know so far (most of which you probably know already, but I'm
 summarizing for other folks on the list):
 
   When you pass an instance of some Serializable class as 
 an argument to an
 RMI call (e.g. passing a command object, as in your test 
 case), the RMI
 subsystem will serialize the object with an additional 
 annotation indicating
 the locations from which the class's bytecode can be 
 downloaded.  When you
 pass an exported object (e.g. a server object or an object 
 that will receive
 callbacks from remote objects), the RMI subsystem creates and 
 serializes a
 proxy object (otherwise known as the RMI stub object) in 
 place of the actual
 object.  In either case, the remote RMI subsystem has to load 
 the class that
 is called out in the serialized instance.  It does this by calling the
 RMIClassLoader.
 
   The RMIClassLoader object first tries to find the class 
 locally (i.e. in
 the default classloader).  If it can't find it locally, it 
 searches in the
 list of locations contained in the annotation mentioned above.  If the
 required class is available locally, no further headaches are 
 caused, which
 may be why some people have had no problems using RMI under 
 Tomcat - they
 probably had the serialized classes and/or proxy classes in 
 the standard
 classpath/classloader setup.
 
   And there we find our problem.  (At this point you 
 might want to have a
 look at the JSP snippet below) The annotation is determined by
 RMIClassLoader. According to the RMI and Object 
 Serialization FAQ in the
 JDK1.31 API docs,
 
   If the _Stub class was loaded by an RMIClassLoader, then 
 RMI already
 knows which codebase to use for its annotation. If the _Stub class was
 loaded from the CLASSPATH, then there is no obvious codebase, and RMI
 consults the java.rmi.server.codebase system property to find 
 the codebase.
 If the system property is not set, then the stub is 
 marshalled with a null
 codebase, which means that it cannot be used unless the client has a
 matching copy of the _Stub classfile in the client's CLASSPATH. 
 
   If we're running a standalone application (and I 
 believe also in Tomcat
 3.x), we're using the system class loader, which has no 
 obvious codebase,
 so the java.rmi.server.codebase property gets used.  But 
 what's the class
 loader used in Tomcat 4.x?  I looked at the source code for 
 Tomcat 4.0.1
 (happens to be what I have on hand), and 
 o.a.c.loader.WebAppClassLoader
 extends from o.a.c.loader.StandardClassLoader, which extends from
 java.net.URLClassLoader, which has a method called getURLs().  The
 WebAppClassLoader.getURLs() method returns a list of all the 
 repositories it
 will search when trying to load a class on behalf of the web 
 app.  This list
 calls out all the jar's in WEB-INF/lib, common/lib, etc.
 
   Having not seen the source for RMIClassLoader, I 

AW: One more thing -- JDBC Realm Error --Form- Looking both Database and tomcat-user.xml

2002-08-12 Thread Andreas Mohrig

I'm not 100 percent sure about this, but I always thought the whole point
was having one realm and one realm only. Otherwise the semantics would be
quite unclear: Would any legal user have to be defined in both realms or
would any one of the realms suffice? Your problems seem to point in this
direction. Try to choose one of the realms and deactivate the other.

greetings

Andreas Mohrig
-Ursprüngliche Nachricht-
Von: Polly Poon [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 12. August 2002 15:57
An: Tomcat Users List
Betreff: One more thing -- JDBC Realm Error --Form- Looking both
Database and tomcat-user.xml


If i try to insert a name in tomcat-user.xml that doesnt exist in database
it will redirect me to error.html. And if i try to login using a name only
exists in database not in tomcat-users.xml, it redirects me to error.html as
well

Thanks again!

From,
Polly

- Original Message -
From: Polly Poon [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 12, 2002 11:51 PM
Subject: JDBC Realm Error --Form- Looking both Database and tomcat-user.xml


 Hi all,

 I have got this error from tomcat JDBC Realm.

 My Config
 Tomcat 3.2.4
 MySQL 3.2.3
 Red Hat Linux

 Problem
 JDBC Realm look up both database and tomcat-users.xml. The error is like
 this(This is when the tomcat-users.xml is empty)

 2002-08-12 23:01:28 - ContextManager: JDBCRealm: Authentication successful
 for user polly
 2002-08-12 23:01:28 - ContextManager: JDBCRealm: Auth ok, user=polly

 It suppose to look up the role next but somehow it stops.

 And then it redirects me to the error.html, the error page that i specific
 in web.xml.

 IF i insert the user details into tomcat-users.xml, it works perfect.

 The JDBC Realm was started successfully. I wonder what this problem could
 be.

 Thanks in advanced.

 From,
 Polly


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



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

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




Loading new context on tomcat 4

2002-08-12 Thread Rodrigo Giammarini

Hi ! 
I have a problem loading new context on tomcat 4.0.4 on a Redhat 7.2 and java 
1.4.0_01, the app that wont work in tomcat 4 is working on tomcat 3.2.1-
If I delete this lines from de webapps/context-name/WEB-INF/web.xml the page is loaded 
but not displayed an in the /manger/list appears as running-
web.xml
?xml version=1.0 encoding=ISO-8859-1?

!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

  session-config
session-timeout10/session-timeout
  /session-config

  servlet
servlet-nameController/servlet-name
servlet-classcom.cti.webgeoloc.Controller/servlet-class
  /servlet

/web-app

Thanks in advance!



RE: Apache 2 and Tomcat 4

2002-08-12 Thread Michael Remijan

...

I do have this done.  Right now I'm thinking that it has to do with the Apache 
configuration.  If I have directory browsing turned on, and an index.html file is not 
found, then apache will display the directory.  I'm hoping that if I turn directory 
browsing off, and it doesn't find index.html it'll forward the request to tomcat.  
This sound like it'll work?

mike/


-Original Message-
From: Robert L Sowders [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 5:41 AM
To: Tomcat Users List
Cc: Tomcat Users List
Subject: RE: Apache 2 and Tomcat 4


You need to register the dairy as a Context in the server.xml file, 
something like this assuming the path is /dairy

Context path=/dairy docBase=diary debug=0 reloadable=true /

If your installation is working correctly at http://localhost:8080 then 
please read http://localhost:8080/tomcat-docs/appdev/index.html for an 
easy way to deploy applications under 4.1.x. using Ant.

Good luck

rls





Michael Remijan [EMAIL PROTECTED]
08/11/2002 02:57 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:RE: Apache 2 and Tomcat 4

Robert,

Yes, but I don't and can't use an index.html.  I need index.jsp so I can 
put a tag in the page that will do a redirect to another jsp page if need 
be.  I've setup workers2.properties like this:

[uri:/diary]
info=Diary webapp in the default context
context=/diary
debug=0

[uri:/diary/servlet/*]
info=Prefix mapping

[uri:/diary/do/*]
info=Prefix mapping

[uri:/diary/*.jsp]
info=Extension mapping


but still get a directory listing when I goto http://localhost/diary or 
http://localhost/diary/  So it's like apache isn't forwarding this request to tomcat.  
If I put 
in http://localhost/diary/index.jsp it works fine.


mike/


-Original Message-
From: Robert L Sowders [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 05, 2002 6:37 PM
To: Tomcat Users List
Subject: RE: Apache 2 and Tomcat 4


Mod_jk2 doesn't have anything to do with the default index page.  That is 
up to Apache or Tomcat depending on what dirs Tomcat is mounting with 
mod_jk2.  This is determined in the works2.properties file in the 
APACHE_HOME\conf directory. (*.jsp)

Tomcat is set to recognize the index.jsp as the default in it's 
directories already.  If you just want a page to look at instead of the 
directory listing for the example directory then a simple index.html will 
do just fine.

Have a look at TOMCAT_HOME\examples\servlets\index.html or the 
TOMCAT_HOME\examples\jsp\index.html.  Apache will hand you these pages so 
there's no need to do a index.jsp.  Remember let Apache and Tomcat do 
their respective jobs, static for Apache, and jsp for Tomcat.






Michael Remijan [EMAIL PROTECTED]
08/05/2002 12:52 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:RE: Apache 2 and Tomcat 4

Robert,

I tracked it down.  I've been using jdk1.4.1beta.  Once I downloaded and 
installed jdk1.4.0 it started to work.  How do I get mod_jk2 to recognize 
index.jsp as the default page.  I obviously need that other than a 
directory listing.  I have index.jsp added to DirectoryIndex in 
httpd.conf and I have the welcome-file-list set in the web.xml's


mike/



-Original Message-
From: Robert L Sowders [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 05, 2002 1:03 PM
To: Tomcat Users List
Cc: Tomcat Users List
Subject: RE: Apache 2 and Tomcat 4


Hey Mike,

What do the apache log files say?  Chck there to see any errors during 
startup for Tomcat.  Check your JAVA_HOME environment variable and path 
statement for accuracy.  You may also want to include the JAVA_HOME\bin 
dir in the path so the JAI is found.

Hope this helps.





Michael Remijan [EMAIL PROTECTED]
08/05/2002 09:50 AM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:RE: Apache 2 and Tomcat 4

Robert,

I followed these steps but it doesn't appear to be working.  The 
stderr.log says:
---
TomcatStarter: main()
Try  org.apache.tomcat.startup.Main
Try  org.apache.catalina.startup.BootstrapService
Starting org.apache.catalina.startup.BootstrapService
java.lang.NoClassDefFoundError: org/xml/sax/InputSource
 at java.lang.Class.newInstance0(Native Method)
 at java.lang.Class.newInstance(Unknown Source)
 at 
org.apache.catalina.startup.BootstrapService.init(BootstrapService.java:198)
 at 
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:292)
 at java.lang.reflect.Method.invoke(Native Method)
 at 
org.apache.jk.apr.TomcatStarter.run(TomcatStarter.java:127)
 at java.lang.Thread.run(Unknown Source)
---


couple things about your post:
(1) you say
 Cut and paste the following jk2.properties file into 

codebase not accepted - Security Manager - catalina.policy

2002-08-12 Thread Juraj Lenharcik

Hi,


I use the Security Manager in my Webapps. Everythink works fine, until I
write the codeBase parameter to the grant in my catalina.policy. Then I get
some security Exceptions, which are not when I use only grant standalone.
I use this entry in my catalina.policy:

grant codeBase file:${catalina.home}/webapps/-{ 
permission java.lang.RuntimePermission getClassLoader;
};

And get this Exception:

java.security.AccessControlException: access denied
(java.lang.RuntimePermission
 getClassLoader)

If the - Element works, than I shouldn't get any Permission-Exceptions. Or
is there any syntax error in my configuration? Has someone a example with
codebase and - which ist working?


bye
juraj 

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




Tomcat 4.1.8 in jni mode

2002-08-12 Thread Sullivan, Mark E

Can Tomcat 4.1.8 be run with mod_jk or mod_jk2 in jni in-process mode on a
linux/unix box? the jk confguration documentation says that tomcat 4x cannot
be run this way. these pages, however, were released with the tomcat 4.0.x
distributions, so i think that they may not apply to the new tomcat 4.1x
series. Can anyone shed some light on this issue?

thanks,
mark

the config page i'm referring to is
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk2.html

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




RE: Loading new context on tomcat 4

2002-08-12 Thread Shapira, Yoav

Hi,
If you're using tomcat 4.x, why is your DTD written to the version 2.2
spec?
You probably cannot copy the app directory from tomcat 3.2.1 to 4.x
without any changes.  You need to update your deployment descriptor at
least.  Have you also verified a proper installation of 4.x, i.e. all
examples running etc.?  

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Rodrigo Giammarini [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 10:04 AM
To: [EMAIL PROTECTED]
Subject: Loading new context on tomcat 4

Hi !
I have a problem loading new context on tomcat 4.0.4 on a Redhat 7.2
and
java 1.4.0_01, the app that wont work in tomcat 4 is working on tomcat
3.2.1-
If I delete this lines from de webapps/context-name/WEB-INF/web.xml the
page is loaded but not displayed an in the /manger/list appears as
running-
web.xml
?xml version=1.0 encoding=ISO-8859-1?

!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

  session-config
session-timeout10/session-timeout
  /session-config

  servlet
servlet-nameController/servlet-name
servlet-classcom.cti.webgeoloc.Controller/servlet-class
  /servlet

/web-app

Thanks in advance!

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




Re: Precompiling JSPs for Tomcat

2002-08-12 Thread Sean LeBlanc

On 08-09 15:21, Rossen Raykov wrote:
 Try something like:
 
 property name=build.compiler value=jikes/
 path id=compile.classpath
   pathelement location=${java.home}/jre/lib/rt.jar/
   pathelement location=${java.home}/lib/tools.jar/
   pathelement location=${tomcat.lib}/jasper-compiler.jar/
   pathelement location=${tomcat.lib}/jasper-runtime.jar/
   pathelement location=${tomcat.common.lib}/xerces.jar/
   pathelement location=${tomcat.common.lib}/servlet.jar/
   ...
 /path
 !-- store the generated java classes here --
 property name=generated.java.classes.dir value=/some/path /
 !-- generate java classes for you JSPs and mapping web.xml --
 java
  classname=org.apache.jasper.JspC
  classpath=${compile.classpath}
  fork=true
  failonerror=true
   arg value=-d /
   arg value=${generated.java.classes.dir} /
   arg value=-webinc /
   arg value=/path/to/the/generated/web.xml /
   arg value=-webapp /
   arg value=/path/to/you/webapp/dir /
   jvmarg
 value=-Djava.endorsed.dirs=${tomcat.home}/bin:${tomcat.home}/common/endorse
 d /
   jvmarg value=-Djasper.home=${tomcat.home} /
   jvmarg value=-Xms194m /
   jvmarg value=-Xmx194m /
 /java
 !-- compile generated java classes and store them in their finall location
 --
 javac
  srcdir=${generated.java.classes.dir}
  destdir=/path/to/you/webapp/dir/WEB-INF/classes
  optimize=off
  debug=on
  depend=on
  classpath=${compile.classpath}
  includeJavaRuntime=on/
 
 Regards,
 Rossen

Thanks, Rossen.

However, I still have two problems when I run the above.

1. The resulting .class file does not have the XXX$jsp.class naming that
results from having Tomcat compile it on-the-fly. Thus, Tomcat doesn't use
my pre-compiled tax.

2. Also, I'm having trouble with variables being shared across pages, i.e.,
pages that define a variable, and then use the same variable in an included
page. This is valid, but the precompilation bombs on this. 


TIA,

-- 
Sean LeBlanc - Nutros.com


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




JDBC Realm Error --Cant access database

2002-08-12 Thread khozaima shakir

Hi all, need help, please!
I am trying to set up JDBCRealm. I edit server.xml as:-
Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=org.gjt.mm.mysql.Driver
  
connectionURL=jdbc:mysql://mysql.wpi.edu/EMSDATA?user=skhuzema;password=pPqrAb
  userTable=USERS userNameCol=USER_NAME
userCredCol=USER_PASS
  userRoleTable=USER_ROLES roleNameCol=ROLE_NAME /
When i restart the tomcat after this, i get error message as
Starting service Tomcat-Standalone
Apache Tomcat/4.0.4
Catalina.start: LifecycleException:  Exception opening database connection:
java.sql.SQLException: Invalid authorization specification: Access denied 
for user:'skhuzema;[EMAIL PROTECTED]' (Using password: NO)
LifecycleException:  Exception opening database connection:
java.sql.SQLException: Invalid authorization specification: Access denied 
for user: 'skhuzema;[EMAIL PROTECTED]' (Using password: NO)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
  at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

The mysql database server is not on my local host (for tomcat). Does it look 
like the connection URL is not being parsed correctly? ( I tried changing 
the connectionURL string in server.xml and those were reflected in the error 
message and still got error as (Using Password: NO) Without setting up 
JDBCRealm, I can start the tomcat sucessfully and the servlet also access 
the database using the same url username and password
can't figure out the fault... please help???
What other configs, do I need to do in addition to the one in server.xml, 
just to get tomcat started?
Khozaima





_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




Re: Persistence in Tomact

2002-08-12 Thread David Mossakowski

Trying 'username' in db url instead of 'user'

d.

Ujwal Oswal wrote:
 Hi,
 
 Has anyone out there implemented Persistence Session using JDBC Based Store
  in Tomcat. If yes can you please let us know of the procedure. I tried
 modifing the Server.xml file but
 I am getting SQLException.
 
 Here are the exception 
 
 2002-08-08 15:50:42 JDBCStore[/examples]: The database connection is null or
 was found to be closed. Trying to re-open it.
 2002-08-08 15:50:42 JDBCStore[/examples]: A SQL exception occurred
 java.sql.SQLException: invalid arguments in call
 
 
 Heres part of my Server.xml (ONLY PERSISTENCE ELEMENT)
 
   Manager className=org.apache.catalina.session.PersistentManager
   debug=0
   saveOnRestart=true
   maxActiveSessions=-1
   minIdleSwap=-1
   maxIdleSwap=0
   maxIdleBackup=0
 Store className=org.apache.catalina.session.JDBCStore
debug=2
  
 connectionURL=jdbc:oracle:thin:@hocleunx02:1521:reqpro?user=x25agent_dev;pa
 ssword=x25agent_dev
driverName=oracle.jdbc.driver.OracleDriver
sessionDataCol=session_data
sessionIdCol=session_id
sessionLastAccessedCol=last_access
sessionMaxInactiveCol=max_inactive
sessionTable=tomcat_sessions
sessionValidCol=valid_session/
   /Manager
 
 Thanks
 Ujwal
 
 
 


-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



***
Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.

***


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




RE: 500 error on all JSP pages

2002-08-12 Thread Anderson, Richard D ERDC-ITL-MS Contractor

i checked the xercesImpl.jar (from xerces-2.0.2)and it didn't have
org/w3c/dom/ranges/DocumentRange.class so i downloaded the source of
xerces-1.4.4. after building the binary dist i set tomcat's build.properties
to xerces.jar and bang! it worked.

thanks Ralph for you help

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 8:04 AM
To: Tomcat Users List
Subject: AW: 500 error on all JSP pages


The xerces that is delivered with tomcat 
should be okay (at least it is for 4.0.3).

To view the content of a jar use either 
$JAVA_HOME/bin/jar tvf jarfile
or use an ordinary zip tool.

Are you shure that that you don't have an jar file
on your system that contains the w3c classes that 
might be found before xerces ?

There might be other jar files that contain this 
classes. Have look espcially at jar files in
$JAVA_HOME/jre/lib/ext.

Ralph Einfeldt
Uptime Internet Solution Center GmbH
Hamburg, Germany
Hosting, Content Management, Java Consulting
http://www.uptime-isc.de 

 -Ursprüngliche Nachricht-
 Von: Anderson, Richard D ERDC-ITL-MS Contractor
 [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 12. August 2002 14:54
 An: 'Tomcat Users List'
 Betreff: RE: 500 error on all JSP pages
 
 
 i'll do that. funny thing is tomcat comes with xerces.jar and 
 i've used the
 file the came packaged with tomcat 4.0.4.
 
 i have downloaded the latest xerces.jar and i will try that.  
 if none of that works how do i check the jar file
 

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

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




Re: Loading new context on tomcat 4

2002-08-12 Thread Rodrigo Giammarini

hi,
I 've copy everything from tomcat 3.2 to tomcat4 because I'm not the
developer who done this apps, so I'll ask the developer to update the
deployment, beside, have you got a WEB-INF/web.xml example , so I can show
it to my developers?
and about the e.i. all are running fine.
Thank
RG

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 12, 2002 11:33 AM
Subject: RE: Loading new context on tomcat 4


Hi,
If you're using tomcat 4.x, why is your DTD written to the version 2.2
spec?
You probably cannot copy the app directory from tomcat 3.2.1 to 4.x
without any changes.  You need to update your deployment descriptor at
least.  Have you also verified a proper installation of 4.x, i.e. all
examples running etc.?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Rodrigo Giammarini [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 10:04 AM
To: [EMAIL PROTECTED]
Subject: Loading new context on tomcat 4

Hi !
I have a problem loading new context on tomcat 4.0.4 on a Redhat 7.2
and
java 1.4.0_01, the app that wont work in tomcat 4 is working on tomcat
3.2.1-
If I delete this lines from de webapps/context-name/WEB-INF/web.xml the
page is loaded but not displayed an in the /manger/list appears as
running-
web.xml
?xml version=1.0 encoding=ISO-8859-1?

!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

  session-config
session-timeout10/session-timeout
  /session-config

  servlet
servlet-nameController/servlet-name
servlet-classcom.cti.webgeoloc.Controller/servlet-class
  /servlet

/web-app

Thanks in advance!

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



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




RE: ADMINS: Ban a user?

2002-08-12 Thread Sexton, George

While we are doing this, why don't we put a filter on subject and exclude
the following key words:

URGENT

REQUIRE

DESPERATE

HELP!!



-Original Message-
From: Tiago Nodari [mailto:[EMAIL PROTECTED]]
Sent: 11 August, 2001 4:55 PM
To: Tomcat Users List
Subject: Re: ADMINS: Ban a user?



 Thats a good one, he sends us spam and we are the ones filling his
inbox
 unsubscribing is so easy...
 that is what I like about yahoogroups you can ban a user from
posting, but he still receives the messages,
 that is the right punishment from spam...
 we should add you to a few more mailing lists, websites and etc :)

 tiago


At 11:39 PM 8/11/2002 +, you wrote:
Thank you, I've been trying to unsubscribe for quite a while now, but the
system doesn't seem to be responding.
Please ban me, and stop filling my computer with these messages.
Kind Regards
   - Original Message -
   From: Stuart Stephen
   To: [EMAIL PROTECTED]
   Sent: Sunday, August 11, 2002 10:33 PM
   Subject: ADMINS: Ban a user?


   Hello Admins?

   Can we please get [EMAIL PROTECTED] banned from this list please?
This
   is the second time I have recieved his 'advertising questionnaire' that
I
   still have absolutely no intention of looking at.

   It's completely off topic and of no interest to all the parties
subscribed
   to this TOMCAT USERS list. It's just plain and simple SPAM.

   Thank you,
   SS.


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



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


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




RE: Loading new context on tomcat 4

2002-08-12 Thread Shapira, Yoav

Hi,
When you download tomcat 4.x, you get a couple of example deployment
descriptors.  Check the 
webapps/ROOT/WEB-INF
and 
webapps/examples/WEB-INF
directories and you'll see the web.xml files there.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Rodrigo Giammarini [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 11:07 AM
To: Tomcat Users List
Subject: Re: Loading new context on tomcat 4

hi,
I 've copy everything from tomcat 3.2 to tomcat4 because I'm not the
developer who done this apps, so I'll ask the developer to update the
deployment, beside, have you got a WEB-INF/web.xml example , so I can
show
it to my developers?
and about the e.i. all are running fine.
Thank
RG

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 12, 2002 11:33 AM
Subject: RE: Loading new context on tomcat 4


Hi,
If you're using tomcat 4.x, why is your DTD written to the version 2.2
spec?
You probably cannot copy the app directory from tomcat 3.2.1 to 4.x
without any changes.  You need to update your deployment descriptor at
least.  Have you also verified a proper installation of 4.x, i.e. all
examples running etc.?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Rodrigo Giammarini [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 10:04 AM
To: [EMAIL PROTECTED]
Subject: Loading new context on tomcat 4

Hi !
I have a problem loading new context on tomcat 4.0.4 on a Redhat 7.2
and
java 1.4.0_01, the app that wont work in tomcat 4 is working on tomcat
3.2.1-
If I delete this lines from de webapps/context-name/WEB-INF/web.xml
the
page is loaded but not displayed an in the /manger/list appears as
running-
web.xml
?xml version=1.0 encoding=ISO-8859-1?

!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

  session-config
session-timeout10/session-timeout
  /session-config

  servlet
servlet-nameController/servlet-name
servlet-classcom.cti.webgeoloc.Controller/servlet-class
  /servlet

/web-app

Thanks in advance!

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



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


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




JDBC MySQL again

2002-08-12 Thread Jan Willem Penterman

Hi,

I searched the archives for a solution to my problem, but couldn't find
any. Like many, I keep getting the following error:

SQLException: Cannot connect to MySQL server on localhost:3306. Is there
a MySQL server running on the machine/port you are trying to connect to?
(java.net.ConnectException)

There's no stacktrace like some other people posted, I don't know why
not. 
I think I got my sourcecode ok. I tried three different approaches:

Class.forName(org.gjt.mm.mysql.Driver);
Class.forName(org.gjt.mm.mysql.Driver).newInstance();
Thread.currentThread().getContextClassLoader().loadClass(org.gjt.mm.mys
ql.Driver);

I also got this other stuff in my error log when I start Tomcat, but I
don't know if that's part of my problem or just the result of me ruining
other files:

Starting service Tomcat-Standalone
Apache Tomcat/4.0.4
PARSE error at line 1 column 10
org.xml.sax.SAXParseException: Element type web-app must be declared.
Server 1.6 is running Press [Ctrl]+[C] to abort Starting service
Tomcat-Apache Apache Tomcat/4.0.4
SQLException: Cannot connect to MySQL server on localhost:3306. Is there
a MySQL server running on the machine/port you are trying to connect to?
(java.net.ConnectException)

I got:
Debian3.0/woody
Tomcat4.0.4
j2sdk1.3 (BlackDown FCS)
Mm.mysql-2.0.14
MySQL 3.23.49

JW
Shapers

p.s. I have the exact same servlet running fine on
WindowsXP/Tomcat4.0.3/j2sdk14/mm.mysql-2.0.12/MySQL3.23.49. But I need
Debian now.

p.s.2 I have a deju-vu at this moment. Weird :)



 


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




mod_jk2.so

2002-08-12 Thread Sigurður Bjarnason


Can someone tell me if that module..is compatable with apache 1.2.36 ??

regards
Siggi


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




RE: JDBC MySQL again

2002-08-12 Thread Shapira, Yoav


Starting service Tomcat-Standalone
Apache Tomcat/4.0.4
PARSE error at line 1 column 10
org.xml.sax.SAXParseException: Element type web-app must be declared.

Howdy,
I haven't seen your original message, which presumably has to do with
the MySQL error.  However, the above is enough to suggest something is
seriously wrong with the configuration for your web application.  That
could definitely affect the allocation of database drivers and other
things.  

Double-check your web.xml for correctness.  Create a simple servlet or
JSP page in your app that you can run, and verify that it runs OK.
Don't do any DB activity in that page.

Once you have that done, it will be a lot easier to trace what's wrong
with the MySQL stuff.

Yoav Shapira
Millennium ChemInformatics

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




RE: JDBC MySQL again

2002-08-12 Thread Mike Jackson

Your class loader looks ok, but you can simplify it to:

Class.forName(org.gjt.mm.mysql.Driver);

But the way you're getting the connection is strange (to my eyes), here's
an easier way (change the url for you instance):

DriverManager.getConnectio(
jdbc:msql://www.myserver.com:1114/contact_mgr,
username, password );

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

 -Original Message-
 From: Jan Willem Penterman [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 12, 2002 8:15 AM
 To: [EMAIL PROTECTED]
 Subject: JDBC MySQL again


 Hi,

 I searched the archives for a solution to my problem, but couldn't find
 any. Like many, I keep getting the following error:

 SQLException: Cannot connect to MySQL server on localhost:3306. Is there
 a MySQL server running on the machine/port you are trying to connect to?
 (java.net.ConnectException)

 There's no stacktrace like some other people posted, I don't know why
 not.
 I think I got my sourcecode ok. I tried three different approaches:

 Class.forName(org.gjt.mm.mysql.Driver);
 Class.forName(org.gjt.mm.mysql.Driver).newInstance();
 Thread.currentThread().getContextClassLoader().loadClass(org.gjt.mm.mys
 ql.Driver);

 I also got this other stuff in my error log when I start Tomcat, but I
 don't know if that's part of my problem or just the result of me ruining
 other files:

 Starting service Tomcat-Standalone
 Apache Tomcat/4.0.4
 PARSE error at line 1 column 10
 org.xml.sax.SAXParseException: Element type web-app must be declared.
 Server 1.6 is running Press [Ctrl]+[C] to abort Starting service
 Tomcat-Apache Apache Tomcat/4.0.4
 SQLException: Cannot connect to MySQL server on localhost:3306. Is there
 a MySQL server running on the machine/port you are trying to connect to?
 (java.net.ConnectException)

 I got:
 Debian3.0/woody
 Tomcat4.0.4
 j2sdk1.3 (BlackDown FCS)
 Mm.mysql-2.0.14
 MySQL 3.23.49

 JW
 Shapers

 p.s. I have the exact same servlet running fine on
 WindowsXP/Tomcat4.0.3/j2sdk14/mm.mysql-2.0.12/MySQL3.23.49. But I need
 Debian now.

 p.s.2 I have a deju-vu at this moment. Weird :)






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





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




Re: JDBC MySQL again

2002-08-12 Thread Colin Chalmers

Hi,

What happens when you use another version of mysql driver, I was having
trouble with version 14.

/colin

- Original Message -
From: Jan Willem Penterman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 12, 2002 5:14 PM
Subject: JDBC MySQL again


 Hi,

 I searched the archives for a solution to my problem, but couldn't find
 any. Like many, I keep getting the following error:

 SQLException: Cannot connect to MySQL server on localhost:3306. Is there
 a MySQL server running on the machine/port you are trying to connect to?
 (java.net.ConnectException)

 There's no stacktrace like some other people posted, I don't know why
 not.
 I think I got my sourcecode ok. I tried three different approaches:

 Class.forName(org.gjt.mm.mysql.Driver);
 Class.forName(org.gjt.mm.mysql.Driver).newInstance();
 Thread.currentThread().getContextClassLoader().loadClass(org.gjt.mm.mys
 ql.Driver);

 I also got this other stuff in my error log when I start Tomcat, but I
 don't know if that's part of my problem or just the result of me ruining
 other files:

 Starting service Tomcat-Standalone
 Apache Tomcat/4.0.4
 PARSE error at line 1 column 10
 org.xml.sax.SAXParseException: Element type web-app must be declared.
 Server 1.6 is running Press [Ctrl]+[C] to abort Starting service
 Tomcat-Apache Apache Tomcat/4.0.4
 SQLException: Cannot connect to MySQL server on localhost:3306. Is there
 a MySQL server running on the machine/port you are trying to connect to?
 (java.net.ConnectException)

 I got:
 Debian3.0/woody
 Tomcat4.0.4
 j2sdk1.3 (BlackDown FCS)
 Mm.mysql-2.0.14
 MySQL 3.23.49

 JW
 Shapers

 p.s. I have the exact same servlet running fine on
 WindowsXP/Tomcat4.0.3/j2sdk14/mm.mysql-2.0.12/MySQL3.23.49. But I need
 Debian now.

 p.s.2 I have a deju-vu at this moment. Weird :)






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




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




Re: JDBC MySQL again

2002-08-12 Thread Peter T. Abplanalp

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Aug 12, 2002 at 05:14:46PM +0200, Jan Willem Penterman wrote:
 SQLException: Cannot connect to MySQL server on localhost:3306. Is there
 a MySQL server running on the machine/port you are trying to connect to?
 (java.net.ConnectException)

generally, if you see this problem, your driver is loaded correctly;
however, it is unable to connect to your mysql server.  i would test
this by trying to telnet to port 3306 on localhost and see if you get
a connection.  if you don't, you need to make sure your mysql is
allowing connections over tcp/ip which, if i'm not mistaken, debian
has turned off by default.  look in the /etc/my.cnf or maybe
/etc/mysql/my.cnf or some such for a skip-networking flag and comment
it out if necessary.  restart mysql, try the telnet again.  if it
works, restart tomcat and see if your app works.

another thing to check is if you have some sort of firewall software
enabled that is blocking that particular port.

hth,

- -- 
Peter Abplanalp

Email:   [EMAIL PROTECTED]
PGP: pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9V9W0ggA8sH0iRXQRAnQcAJ9dEA9G4+Fw3QT7j2IbNeV3h1eEDwCcDcvo
q5X51xanggB0ECObZIx+n2Q=
=e9ia
-END PGP SIGNATURE-

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




tomcat jsse help!

2002-08-12 Thread Truong,Hoang C.

Hi All,
I wanted to turn on https support for tomcat.  So I ran this command:
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA

I believe I mistypes keystore password.

Now, If I startup tomcat, I got this error message:
java.io.IOException: Keystore was tampered with, or password was
incorrect
at
sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:737)
at java.security.KeyStore.load(KeyStore.java:608)

I tried to recreate the key again but got this error:
keytool error: java.io.IOException: Keystore was tampered with, or
password was incorrect

How do I recreate the key again?

Thanks,

-Hoang

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




Re: JDBC MySQL again

2002-08-12 Thread Larry Meadors

Also, if you are using ipchains or iptables as a firewall, you may need
to open a conduit to allow access to port 3306. 

Even on localhost, ipchains will not allow access unless configured to
do so.

Larry

 [EMAIL PROTECTED] 08/12/02 09:35 AM 
generally, if you see this problem, your driver is loaded correctly;
however, it is unable to connect to your mysql server.  i would test
this by trying to telnet to port 3306 on localhost and see if you get
a connection.  

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




RE: tomcat jsse help!

2002-08-12 Thread Durham David Cntr 805CSS/SCBE

create your own keystore:

keytool -genkey -alias tomcat -keyalg RSA -keystore tomcatCerts



 -Original Message-
 From: Truong Hieu C 
 Sent: Monday, August 12, 2002 10:43 AM
 To: Tomcat Users List
 Subject: tomcat jsse help!
 
 
 Hi All,
 I wanted to turn on https support for tomcat.  So I ran this command:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
 
 I believe I mistypes keystore password.
 
 Now, If I startup tomcat, I got this error message:
 java.io.IOException: Keystore was tampered with, or password was
 incorrect
 at
 sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:737)
 at java.security.KeyStore.load(KeyStore.java:608)
 
 I tried to recreate the key again but got this error:
 keytool error: java.io.IOException: Keystore was tampered with, or
 password was incorrect
 
 How do I recreate the key again?
 
 Thanks,
 
 -Hoang
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


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




Re: tomcat jsse help!

2002-08-12 Thread Truong,Hoang C.

Thanks David.

I created my own keystore succesfully but I still get same error when I
startup tomcat.  Do I need to do anything else?

-Hoang

Durham David Cntr 805CSS/SCBE wrote:
 
 create your own keystore:
 
 keytool -genkey -alias tomcat -keyalg RSA -keystore tomcatCerts
 
  -Original Message-
  From: Truong Hieu C
  Sent: Monday, August 12, 2002 10:43 AM
  To: Tomcat Users List
  Subject: tomcat jsse help!
 
 
  Hi All,
  I wanted to turn on https support for tomcat.  So I ran this command:
  %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
 
  I believe I mistypes keystore password.
 
  Now, If I startup tomcat, I got this error message:
  java.io.IOException: Keystore was tampered with, or password was
  incorrect
  at
  sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:737)
  at java.security.KeyStore.load(KeyStore.java:608)
 
  I tried to recreate the key again but got this error:
  keytool error: java.io.IOException: Keystore was tampered with, or
  password was incorrect
 
  How do I recreate the key again?
 
  Thanks,
 
  -Hoang
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




RE: Loading new context on tomcat 4

2002-08-12 Thread Craig R. McClanahan



On Mon, 12 Aug 2002, Shapira, Yoav wrote:

 Date: Mon, 12 Aug 2002 10:33:15 -0400
 From: Shapira, Yoav [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: RE: Loading new context on tomcat 4

 Hi,
 If you're using tomcat 4.x, why is your DTD written to the version 2.2
 spec?
 You probably cannot copy the app directory from tomcat 3.2.1 to 4.x
 without any changes.  You need to update your deployment descriptor at
 least.  Have you also verified a proper installation of 4.x, i.e. all
 examples running etc.?


If you have a servlet 2.2 / JSP 1.1 app that conforms to those specs,
running successfully on Tomcat 3.2.x or 3.3.x, it should run *unchanged*
under Tomcat 4.  The newer specs mandate backwards compatibilty, including
parsing the older deployment descriptors.

 Yoav Shapira
 Millennium ChemInformatics

Craig McClanahan


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




Re: Loading new context on tomcat 4

2002-08-12 Thread Rodrigo Giammarini

hi, one more thing, I've found what is the problem,
I have this on my web.xml
session-config
session-timeout10/session-timeout
/session-config
If I leave this uncommented the app wont load.
Someone know which is de equivalent in tomcat4
thank

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 12, 2002 12:10 PM
Subject: RE: Loading new context on tomcat 4


Hi,
When you download tomcat 4.x, you get a couple of example deployment
descriptors.  Check the
webapps/ROOT/WEB-INF
and
webapps/examples/WEB-INF
directories and you'll see the web.xml files there.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Rodrigo Giammarini [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 11:07 AM
To: Tomcat Users List
Subject: Re: Loading new context on tomcat 4

hi,
I 've copy everything from tomcat 3.2 to tomcat4 because I'm not the
developer who done this apps, so I'll ask the developer to update the
deployment, beside, have you got a WEB-INF/web.xml example , so I can
show
it to my developers?
and about the e.i. all are running fine.
Thank
RG

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 12, 2002 11:33 AM
Subject: RE: Loading new context on tomcat 4


Hi,
If you're using tomcat 4.x, why is your DTD written to the version 2.2
spec?
You probably cannot copy the app directory from tomcat 3.2.1 to 4.x
without any changes.  You need to update your deployment descriptor at
least.  Have you also verified a proper installation of 4.x, i.e. all
examples running etc.?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Rodrigo Giammarini [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 10:04 AM
To: [EMAIL PROTECTED]
Subject: Loading new context on tomcat 4

Hi !
I have a problem loading new context on tomcat 4.0.4 on a Redhat 7.2
and
java 1.4.0_01, the app that wont work in tomcat 4 is working on tomcat
3.2.1-
If I delete this lines from de webapps/context-name/WEB-INF/web.xml
the
page is loaded but not displayed an in the /manger/list appears as
running-
web.xml
?xml version=1.0 encoding=ISO-8859-1?

!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

  session-config
session-timeout10/session-timeout
  /session-config

  servlet
servlet-nameController/servlet-name
servlet-classcom.cti.webgeoloc.Controller/servlet-class
  /servlet

/web-app

Thanks in advance!

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



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


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



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




Authentication: Use Tomcat and Apache

2002-08-12 Thread Kevin Andryc

I have an application that currently uses Apache's authentication. In order
for this to work with Tomcat I had to specify it in my server.xml, like so:

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

I also have another application running under Tomcat that I would like
Tomcat to handle the authentication. Is there a way to have both methods?

Thanks,
Kevin


Kevin Andryc
Web Systems Engineer
MISER
http://www.umass.edu/miser/
Phone: (413)-545-3460
[EMAIL PROTECTED]





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




RE: JDBC Realm Error --Cant access database

2002-08-12 Thread Andrew

Try removing your username and password info from your connection string
and using the 'connectionName' and 'connectionPassword' attributes

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html

- Andrew

 -Original Message-
 From: khozaima shakir [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, August 12, 2002 10:42 AM
 To: [EMAIL PROTECTED]
 Subject: JDBC Realm Error --Cant access database
 
 
 Hi all, need help, please!
 I am trying to set up JDBCRealm. I edit server.xml as:-
 Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=org.gjt.mm.mysql.Driver
   
 connectionURL=jdbc:mysql://mysql.wpi.edu/EMSDATA?user=skhuzem
 a;password=pPqrAb
   userTable=USERS userNameCol=USER_NAME 
 userCredCol=USER_PASS
   userRoleTable=USER_ROLES roleNameCol=ROLE_NAME 
 / When i restart the tomcat after this, i get error message 
 as Starting service Tomcat-Standalone Apache Tomcat/4.0.4
 Catalina.start: LifecycleException:  Exception opening 
 database connection:
 java.sql.SQLException: Invalid authorization specification: 
 Access denied 
 for user:'skhuzema;[EMAIL PROTECTED]' (Using password: NO)
 LifecycleException:  Exception opening database connection:
 java.sql.SQLException: Invalid authorization specification: 
 Access denied 
 for user: 'skhuzema;[EMAIL PROTECTED]' (Using password: NO)
 at 
 org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
 at 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
 at 
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
 at 
 org.apache.catalina.core.StandardService.start(StandardService
 .java:388)
 at 
 org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
 at 
 org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at 
 org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
   at 
 org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at java.lang.reflect.Method.invoke(Native Method)
at 
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 
 The mysql database server is not on my local host (for 
 tomcat). Does it look 
 like the connection URL is not being parsed correctly? ( I 
 tried changing 
 the connectionURL string in server.xml and those were 
 reflected in the error 
 message and still got error as (Using Password: NO) Without 
 setting up 
 JDBCRealm, I can start the tomcat sucessfully and the servlet 
 also access 
 the database using the same url username and password
 can't figure out the fault... please help???
 What other configs, do I need to do in addition to the one in 
 server.xml, 
 just to get tomcat started?
 Khozaima
 
 
 
 
 
 _
 Send and receive Hotmail on your mobile device: http://mobile.msn.com
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 


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




Re: Reading from files in servlet from Tomcat-4.0.4

2002-08-12 Thread TOMITA_ALEX_NONLILLY

Hi,

you need to put the file in /TOMCAT_HOME/bin

I had the same problem and first I made a simple servlet code that writes 
a txt file, then I look for that file and Tomcat put it in 
/TOMCAT_HOME/bin

regards
Alex Tomita






khozaima shakir [EMAIL PROTECTED]
10/08/2002 04:30 p.m.
Please respond to Tomcat Users List

 
To: [EMAIL PROTECTED]
cc: 
Subject:Reading from files in servlet from Tomcat-4.0.4



Hi all,
I am trying to read from a file : filename
Where should i put this file in tomcat 4.0.4 directory structure?
I tried putting the file in directories:
webapps/ROOT, webapps/ROOT/WEB-INF, webapps/ROOT/WEB-INF/classes  in each 
instance i get the error message
The system cannot find the file specified

I used following statement in servlet code.
bufferin = new BufferedReader(new InputStreamReader(new 
FileInputStream(fileName)));

Thanks
Khozaima


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


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






[Q] Realms, Principals, et al...

2002-08-12 Thread Per Kreipke

I have a couple of security questions:

Q1:
===

If GenericPrincipal isn't available from webapps, is there another way to
get at the complete list of roles for a given user and their password?

I need the complete list of roles for the current user and password to
implement a connector from Cocoon authentication to the container
authentication.

Jason Loo on 2-5-2002 asked:

I've been successful in creating a custom JDBCRealm and have extended the
GenericPrincipal.  However, when attempting to pull my principal from the
request (request.getUserPrincipal()) and cast to EITHER
org.apache.catalina.realm.GenericPrincipal or my custom principal, I get a
Class Cast Exception.

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

He pointed to this message:

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

but never got a reply.

I presume that the reason it's not available is because the catalina jar is
loaded by a different classloader separate from webapps. [Aside: can't find
the documentation that details what each */lib directory does (e.g. common
vs lib vs ...)].

Is there any way besides tweaking the classpath (by changing it or by
copying JARs) to get at the GenericPrincipal class?

There are some convenience methods on GenericPrincipal that are not on
Principal that would be nice to get to (complete list of roles for the
current user and password).


Q2:
===
Is the implementation of JAASRealm in 4.1 backwards compatible to 4.0.4?


Q3:
===
Does anyone know of a Realm implementation that includes the notion of
groups?

Maybe I'm thinking about this the wrong way but here's the problem:

Parties in our case are users, companies and holding companies. Users are
members of one company and can have different application permissions within
the company (e.g. manager, employee, reader). Members of a holding company
have rights across other companies (e.g. they can be a manager of one but
only 'reader' of another).

I can model this in the database but have never found a sstisfactory Java
implementation that integrates with Tomcat's Realm based security and
security constraints.

Any pointers would be appreciated.


Thanks, Per


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




RE: Loading new context on tomcat 4

2002-08-12 Thread Shapira, Yoav

Hi,
Tomcat 4.x implements the Servlet Specification, v2.3.  You can get the
servlet spec at:
http://java.sun.com/products/servlet/download.html

In there you will find the DTD for web.xml.  Among other things, it
lists where you can put session-config elements and their meaning.
The session-config element is not required in order for a webapp to
load.  It is an optional element, with a default value of 30 minutes for
session expiration.

Accordingly, there must be some other reason why your webapp won't load
if you don't put the session-config element in your web.xml.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Rodrigo Giammarini [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 12:21 PM
To: Tomcat Users List
Subject: Re: Loading new context on tomcat 4

hi, one more thing, I've found what is the problem,
I have this on my web.xml
session-config
session-timeout10/session-timeout
/session-config
If I leave this uncommented the app wont load.
Someone know which is de equivalent in tomcat4
thank

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 12, 2002 12:10 PM
Subject: RE: Loading new context on tomcat 4


Hi,
When you download tomcat 4.x, you get a couple of example deployment
descriptors.  Check the
webapps/ROOT/WEB-INF
and
webapps/examples/WEB-INF
directories and you'll see the web.xml files there.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Rodrigo Giammarini [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 11:07 AM
To: Tomcat Users List
Subject: Re: Loading new context on tomcat 4

hi,
I 've copy everything from tomcat 3.2 to tomcat4 because I'm not the
developer who done this apps, so I'll ask the developer to update the
deployment, beside, have you got a WEB-INF/web.xml example , so I can
show
it to my developers?
and about the e.i. all are running fine.
Thank
RG

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 12, 2002 11:33 AM
Subject: RE: Loading new context on tomcat 4


Hi,
If you're using tomcat 4.x, why is your DTD written to the version 2.2
spec?
You probably cannot copy the app directory from tomcat 3.2.1 to 4.x
without any changes.  You need to update your deployment descriptor at
least.  Have you also verified a proper installation of 4.x, i.e. all
examples running etc.?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Rodrigo Giammarini [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 10:04 AM
To: [EMAIL PROTECTED]
Subject: Loading new context on tomcat 4

Hi !
I have a problem loading new context on tomcat 4.0.4 on a Redhat 7.2
and
java 1.4.0_01, the app that wont work in tomcat 4 is working on
tomcat
3.2.1-
If I delete this lines from de webapps/context-name/WEB-INF/web.xml
the
page is loaded but not displayed an in the /manger/list appears as
running-
web.xml
?xml version=1.0 encoding=ISO-8859-1?

!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

  session-config
session-timeout10/session-timeout
  /session-config

  servlet
servlet-nameController/servlet-name
servlet-classcom.cti.webgeoloc.Controller/servlet-class
  /servlet

/web-app

Thanks in advance!

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



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


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



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


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




RE: Reading from files in servlet from Tomcat-4.0.4

2002-08-12 Thread Shapira, Yoav

Hi,
That's a misleading answer.  Using the FileInputStream approach, unless
you specify an absolute path your results will depend on what the
current directory ($CWD) is when you start the server.  Not everyone
starts it from TOMCAT_HOME/bin.  

The first answer posted, using getResource() or getResourceAsStream() is
better because it does not have the above dependency and will work out
of a WAR.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 12:34 PM
To: Tomcat Users List
Subject: Re: Reading from files in servlet from Tomcat-4.0.4

Hi,

you need to put the file in /TOMCAT_HOME/bin

I had the same problem and first I made a simple servlet code that
writes
a txt file, then I look for that file and Tomcat put it in
/TOMCAT_HOME/bin

regards
Alex Tomita






khozaima shakir [EMAIL PROTECTED]
10/08/2002 04:30 p.m.
Please respond to Tomcat Users List


To: [EMAIL PROTECTED]
cc:
Subject:Reading from files in servlet from Tomcat-4.0.4



Hi all,
I am trying to read from a file : filename
Where should i put this file in tomcat 4.0.4 directory structure?
I tried putting the file in directories:
webapps/ROOT, webapps/ROOT/WEB-INF, webapps/ROOT/WEB-INF/classes  in
each
instance i get the error message
The system cannot find the file specified

I used following statement in servlet code.
bufferin = new BufferedReader(new InputStreamReader(new
FileInputStream(fileName)));

Thanks
Khozaima


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


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




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




mod_jk and webapp file locations

2002-08-12 Thread John Rishea

I have a Tomcat/Apache application running successfully using mod_webapp but
want to allow Apache to handle static requests.

I built mod_jk from source and it's handling the Tomcat examples correctly,
but I'm wondering how I set up the directory structure for my own webapps so
that Apache can handle the static stuff.  Can I keep the webapp files (both
static html and servlets) in a directory under TOMCAT_HOME/webapps, as I did
when using mod_webapp, or do I have to move the static elements under an
Apache directory somewhere?  Should I change Apache's server root to point
to the Tomcat webapps directory?  I've searched the list and the web for a
clear answer but found nothing very helpful.

This is using apache 1.3.26 and tomcat 4.0.4.  Thanks for the help.
__
John Rishea



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




Ajp 1.3 Connector Fails

2002-08-12 Thread Isabel Lameda

I´ve downloaded Tomcat 4.1.8 Beta Released and
uncomment the line for the ajp 1.3 Connector, which is:

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/
   
So when i start the Tomcat i get this

INFO: Initializing Coyote HTTP/1.1 on port 8080
ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with Ajp13Connector
at
org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:225)
at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy
cleListener.java:359)
at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy
cleListener.java:716)
at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy
cleListener.java:690)
at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy
cleListener.java:329)
at
org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLife
cycleListener.java:206)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2181)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Starting service Tomcat-Standalone
Apache Tomcat/4.1.8
12/08/2002 11:26:32 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080


Every thing works fine, i can view my pages using IIS via the ajp Connector.

The only problem is that i cannot use the Administration Tool, when i open
it
i get this:

HTTP Status 503 - Servlet action is currently unavailable 

type: Status report
message: Servlet action is currently unavailable
description: The requested service (Servlet action is currently
unavailable) is not currently available.

If i comment back the line for the ajp connector the administration tool
works fine but
the thing is that i need to use the connector.

I'm also worry about what other problems could be due that exception,
because until now i´ve only
found that with the administration tool.

Thanks, I´ll appreciate any help.



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




apache 2.0.40 upgrade w/tomcat 4.0.4 on w2k

2002-08-12 Thread Carrie Salazar

this may be a silly question, but i assume to  upgrade to
Apache 2.0.40 (with Tomcat 4.0.4). i have to re-compile the  
mod_jk.dll?  if so, anyone have Visual C++ handy ;) ?

this is all after i have Apache 2.0.39 working beautifully  
with Tomcat 4.0.4., but for several reasons i need to upgrade.
-
carrie s.
~

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




Re: [Q] Realms, Principals, et al...

2002-08-12 Thread Craig R. McClanahan



On Mon, 12 Aug 2002, Per Kreipke wrote:

 Date: Mon, 12 Aug 2002 12:38:12 -0400
 From: Per Kreipke [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: [Q] Realms, Principals, et al...

 I have a couple of security questions:

 Q1:
 ===

 If GenericPrincipal isn't available from webapps, is there another way to
 get at the complete list of roles for a given user and their password?


Not from a webapp through a portable API.  What you see (isUserInRole())
is what you get.

However, properly configured web.xml files will have security-role
elements for all of the role names that are referenced by that webapp, so
you might try reading them (by parsing /WEB-INF/web.xml) and trying all of
those names through isUserInRole().  Of course, that doesn't help you if
the webapp doesn't define them all ...

 I need the complete list of roles for the current user and password to
 implement a connector from Cocoon authentication to the container
 authentication.


It's not at all clear to me that every possible Realm implementation will
be able to articulate such a list -- or that the list won't change over
time.  For example, it's perfectly feasible to implement a Realm that says
user Joe has this role, but only from 8am to 5pm on weekdays.  It sounds
like the Cocoon folks might want to do a little more thinking about their
design.

Craig


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




RE: JDBC MySQL again

2002-08-12 Thread Jan Willem Penterman

 generally, if you see this problem, your driver is loaded 
 correctly; however, it is unable to connect to your mysql 
 server.  i would test this by trying to telnet to port 3306 
 on localhost and see if you get a connection.  if you don't, 
 you need to make sure your mysql is allowing connections over 
 tcp/ip which, if i'm not mistaken, debian has turned off by 
 default.  look in the /etc/my.cnf or maybe /etc/mysql/my.cnf 
 or some such for a skip-networking flag and comment it out if 
 necessary.  restart mysql, try the telnet again.  if it 
 works, restart tomcat and see if your app works.
 
Very good! You're the 'winner' with the right answer! I was thinking my
mysqld setup was ok, since it worked flawlessly with PHP. I guess PHP
and MySQL have some sort of secret 'marriage', and don't connect over
TCP/IP? 

[off-topic]
Is that also the reason that php:mysql seems about twice as fast in
executing queries in comparison to jdbc:mysql? I tested this on my
Windows machine.
[/off-topic]

However, now I get the following exception: 
SQLException: Invalid authorization specification: Access denied for
user: 'root@barrie' (Using password: YES)

My guess is that I have to config mysqld in a way that it accepts this
user (of which I'm pretty sure it has the correct login and password)
from 'barrie' instead of 'localhost' (barrie and localhost essentially
are the same Debian box). But that's not a question to ask to this
list...

Thanks Hoang! (and the rest of you who didn't give the right answer;). I
tried your solutions, and at least I got rid of the parse error that
also was in my catalina.out but that had a different cause).

JW







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




Re: JDBC MySQL again

2002-08-12 Thread Peter T. Abplanalp

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Aug 12, 2002 at 06:57:09PM +0200, Jan Willem Penterman wrote:
  generally, if you see this problem, your driver is loaded 
  correctly; however, it is unable to connect to your mysql 
  server.  i would test this by trying to telnet to port 3306 
  on localhost and see if you get a connection.  if you don't, 
  you need to make sure your mysql is allowing connections over 
  tcp/ip which, if i'm not mistaken, debian has turned off by 
  default.  look in the /etc/my.cnf or maybe /etc/mysql/my.cnf 
  or some such for a skip-networking flag and comment it out if 
  necessary.  restart mysql, try the telnet again.  if it 
  works, restart tomcat and see if your app works.
  
 Very good! You're the 'winner' with the right answer! I was thinking my

yay!  do i get a medal or something?  ;-)

 mysqld setup was ok, since it worked flawlessly with PHP. I guess PHP
 and MySQL have some sort of secret 'marriage', and don't connect over
 TCP/IP? 

probably.

 [off-topic]
 Is that also the reason that php:mysql seems about twice as fast in
 executing queries in comparison to jdbc:mysql? I tested this on my
 Windows machine.
 [/off-topic]

yes.  domain sockets leave out the whole tcp/ip stack and are much
faster.

 However, now I get the following exception: 
 SQLException: Invalid authorization specification: Access denied for
 user: 'root@barrie' (Using password: YES)
 
 My guess is that I have to config mysqld in a way that it accepts this
 user (of which I'm pretty sure it has the correct login and password)
 from 'barrie' instead of 'localhost' (barrie and localhost essentially
 are the same Debian box). But that's not a question to ask to this
 list...

since we're here...

yes, the problem is that when you connect using the mysql tool on the
command line, the client thinks it is localhost; however, java passes
the host name over the connection and thus you must allow the root
user to connect to mysql from that host even thought they are
esentially the same.

as root:

use mysql;
grant all privileges on db.object(s) to root@barrie
identified by 'some_password' [with grant option];
flush privileges;

minor nit - i wouldn't use the root user for these connections.  if
the password is somehow compromised, your *entire* server is
compromised.  if, however, you set up different users for each
database only that particular database will be compromised.

- -- 
Peter Abplanalp

Email:   [EMAIL PROTECTED]
PGP: pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9V+r/ggA8sH0iRXQRAiEYAJ0fDrn34VaWmFMGXIFqMjzRQH5I6wCguCkx
ldddPETeicqjMdQfm5ZgChc=
=0/8l
-END PGP SIGNATURE-

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




RE: [Q] Realms, Principals, et al...

2002-08-12 Thread Per Kreipke

  Q1:
  ===
 
  If GenericPrincipal isn't available from webapps, is there
 another way to
  get at the complete list of roles for a given user and their password?
 

 Not from a webapp through a portable API.  What you see (isUserInRole())
 is what you get.

 However, properly configured web.xml files will have security-role
 elements for all of the role names that are referenced by that webapp, so
 you might try reading them (by parsing /WEB-INF/web.xml) and trying all of
 those names through isUserInRole().  Of course, that doesn't help you if
 the webapp doesn't define them all ...

... or if the set of all roles is dynamic, a shortfall of the declarative
servlet security API.

  I need the complete list of roles for the current user and password to
  implement a connector from Cocoon authentication to the container
  authentication.
 

 It's not at all clear to me that every possible Realm implementation will
 be able to articulate such a list -- or that the list won't change over
 time.  For example, it's perfectly feasible to implement a Realm that says
 user Joe has this role, but only from 8am to 5pm on weekdays.  It sounds
 like the Cocoon folks might want to do a little more thinking about their
 design.

I don't know that it's their mistake, I'm just talking about wrapping the
GenericPrincipal class. Isn't it true that you can't do that from _any_
webapp, much less Cocoon. E.g. given any of the current Tomcat Realms, how
could you do your 'Joe' example?

Thanks, Per

P.s. I know you spend a huge amount of time helping people on this and other
lists, so I hesitate to ask again but...

Is the implementation of JAASRealm in 4.1 backwards compatible to 4.0.4?



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




Page Load Problem in Stand-alone Mode

2002-08-12 Thread Cory Isaacson

When running Tomcat in stand-alone mode, if I successively request pages in
two different frames, the second page often does not display. I get a
Server not found error in the browser. For example, to keep pages in
multiple frames in synch I submit one frame based on the JavaScript ONLOAD
event of the other, so the second pages is requested immediately after the
first. Using the Coyote connector, this works fine so long as both pages are
JSP. If one page is JSP and the other HTML, the HTML will display using
Coyote, after about a 10 second delay (with both JSPs there is no delay).
Using the regular default connector, I almost always get the server not
found error. I tried this same code in WebSphere 4.x, and it works fine with
JSP and an HTML page without delay or a problem.

Because it works in WebSphere and to some degree with Coyote, I wonder if
its just not a configuration problem. Here are the relevant sections from
the server.xml file:

  Service name=Tomcat-Standalone

!-- Define a non-SSL HTTP/1.1 Connector on port 8000 --
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8000 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8043
   acceptCount=10 debug=0 connectionTimeout=6/
!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8081 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8081 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=2/


Thanks in advance for any help on this.

Cory


Cory Isaacson
President  CTO
Compuflex International
(818) 884-1168
[EMAIL PROTECTED]
www.compuflex.com



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



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




Does Tomcat eat Exceptions?

2002-08-12 Thread Will Hartung

Hi all,

Running Tomcat 3.2, and I'm debugging some new code I've been working on.

In my code, it checks for some notable details, and if it finds a problem,
it throws a simple RuntimeException describing the problem.

But, while running Tomcat, I never see the actual exception.

Does Tomcat silently eat exceptions it receives from Servlets? I would hope
that it would do Ye Olde Stack Trace when it hit an exception, but
apparently not.

Any hints?

Thanx!

Will Hartung
([EMAIL PROTECTED])




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




Servlet Compilation Taking Way Too Long

2002-08-12 Thread micael

Whenever I change a jsp page, it takes forever for the program to 
compile.  (Forever = five to fifteen minutes.)  During that time my site 
is essentially shut down.

I am current running aTomcat 4.0 with Struts 1.2.  I have an application 
set for www.myapp.com with the following code in server.xml, where the code 
for /anniversaries is reapeated for 24 different sites.

 Context path=  
 
  docBase=myapp
  debug=0
  reloadbale=true/

 Context path=/manager
  docBase=manager
  debug=0
  privileged=true/

 Context path=/mysubapp-0NE
  docBase=mysubapp-0NE
  debug=0
  reloadable=true/

 Context path=/mysubapp-TWO
  docBase=mysubapp-TWO
  debug=0
  reloadable=true/

...

 Context path=/mysubapp-TWENTY-FIVE
  docBase=mysubapp-TWENTY-FIVE
  debug=0
  reloadable=true/

Am I doing something dumb, or am I misusing one of the applications?  Or, 
what?  Thanks.

Micael



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




Tomcat and SOCKS proxy server

2002-08-12 Thread Rutledge, Aaron

I am trying to use Tomcat behind a SOCKS firewall.  I have a servlet
that is trying to access information outside the application context and
I am getting the following exceptions

java.net.NoRouteToHostException: No route to host: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
at java.net.Socket.connect(Socket.java:425)
at java.net.Socket.connect(Socket.java:375)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:366)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:582)
at sun.net.www.http.HttpClient.init(HttpClient.java:292)
at sun.net.www.http.HttpClient.init(HttpClient.java:253)
at sun.net.www.http.HttpClient.New(HttpClient.java:321)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:301)
...and so on


I found on a really old post that I need to set TOMCAT_OPTS =
-DsocksProxyHost=my proxy's ip -DsocksProxyPort=1080
I have set an environmental variable (I am using W2K), but I am still
having problems.  Is there something more I need to do?  I can't find
any documentation on this.  Any help GREATLY appreciated!  
Best regards, Aaron

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




automatically serve index.jsp

2002-08-12 Thread Michael Remijan

hi all,

I'm currently working on Apache 2.0.39 - tomcat-4.1.8 with mod_jk2 and jdk1.4.0_01.  
I've posted previously about apache giving a directory listing instead of returning 
index.jsp.  The only way I've been able to get around this problem is editing the 
workers2.properties file to include a mapping to the whole webapp...


- workers2.properties (snippet) ---
[uri:/diary/*]
info=Map the whole webapp
---



I have an alias and directory in httpd.conf set up as follows

- httpd.conf (snippet) 
##
## diary webapp
##
Alias /diary C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary

Directory C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary
Options FollowSymLinks MultiViews IncludesNoExec
AddOutputFilter Includes html htm gif jpeg jpg
AllowOverride None
Order allow,deny
Allow from all
/Directory



The question I have is, because of mapping the whole webapp in the workers2.properties 
file, will that basically override apache serving static content?  I assuming it would 
 but I don't have the time to go digging around in the connector's source.


thanks,
mike/


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




RE: JDBC MySQL again

2002-08-12 Thread Jan Willem Penterman

 yay!  do i get a medal or something?  ;-)
 
Yes you get a medal. Only thing is that it is so incredibly heavy that I
can't send it by mail. You have to come pick it up at our office in
Amsterdam :P
O and I gave my thanks to Hoang, but I was mistaken. Thanks Peter!

  [off-topic]
  Is that also the reason that php:mysql seems about twice as fast in 
  executing queries in comparison to jdbc:mysql? I tested this on my 
  Windows machine. [/off-topic]
 
 yes.  domain sockets leave out the whole tcp/ip stack and are 
 much faster.
 
Why on earth they invented JDBC for then? I am really dissappointed by
the lack of performance compared to PHP. The processing of query results
in Java is even worse (about 10 times slower). 

 use mysql;
 grant all privileges on db.object(s) to root@barrie
 identified by 'some_password' [with grant option];
 flush privileges;

You get TWO medals now.

 
 minor nit - i wouldn't use the root user for these 
 connections.  if the password is somehow compromised, your 
 *entire* server is compromised.  if, however, you set up 
 different users for each database only that particular 
 database will be compromised.
 
True. But at this stage it's not that important :)

JW


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




Re: automatically serve index.jsp

2002-08-12 Thread Steve Prior

You're a little ahead of me in doing this, but did you try adding
index.jsp to a DirectoryIndex directive in Apache?

This was very obious to do in Apache 1.3, not sure as obvious in 2.0.

Steve

Michael Remijan wrote:
 hi all,
 
 I'm currently working on Apache 2.0.39 - tomcat-4.1.8 with mod_jk2 and 
jdk1.4.0_01.  I've posted previously about apache giving a directory listing instead 
of returning index.jsp.  The only way I've been able to get around this problem is 
editing the workers2.properties file to include a mapping to the whole webapp...
 
 
 - workers2.properties (snippet) ---
 [uri:/diary/*]
 info=Map the whole webapp
 ---
 
 
 
 I have an alias and directory in httpd.conf set up as follows
 
 - httpd.conf (snippet) 
 ##
 ## diary webapp
 ##
 Alias /diary C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary
 
 Directory C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary
 Options FollowSymLinks MultiViews IncludesNoExec
 AddOutputFilter Includes html htm gif jpeg jpg
 AllowOverride None
 Order allow,deny
 Allow from all
 /Directory
 
 
 
 The question I have is, because of mapping the whole webapp in the 
workers2.properties file, will that basically override apache serving static content? 
 I assuming it would  but I don't have the time to go digging around in the 
connector's source.
 
 
 thanks,
 mike/
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]


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




Re: JDBC MySQL again

2002-08-12 Thread Peter T. Abplanalp

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Aug 12, 2002 at 07:45:03PM +0200, Jan Willem Penterman wrote:
 Yes you get a medal. Only thing is that it is so incredibly heavy that I
 can't send it by mail. You have to come pick it up at our office in
 Amsterdam :P

next time i'm in europe, i'll stop by and pick them up.

 Why on earth they invented JDBC for then? I am really dissappointed by
 the lack of performance compared to PHP. The processing of query results
 in Java is even worse (about 10 times slower). 

well, how do propose to get results if your database server isn't on
the same box as your webserver?  ;-)

- -- 
Peter Abplanalp

Email:   [EMAIL PROTECTED]
PGP: pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9V/aXggA8sH0iRXQRAjPcAJ4yXUPW6542kd1jylikkRj4ohfEKQCgoS+/
Jk5bE6T/ZRLYOLeymzqTOD8=
=DTUQ
-END PGP SIGNATURE-

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




RE: automatically serve index.jsp

2002-08-12 Thread Michael Remijan

...

Yes I did.  In fact it was the first thing I tried.  I also tried getting rid of the 
AddOutputFilter snippet of the Directory tag thinking it was preventing apache 
from loading the jsp page.   that didn't work either.

mike/

-Original Message-
From: Steve Prior [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 12:53 PM
To: Tomcat Users List
Subject: Re: automatically serve index.jsp


You're a little ahead of me in doing this, but did you try adding
index.jsp to a DirectoryIndex directive in Apache?

This was very obious to do in Apache 1.3, not sure as obvious in 2.0.

Steve

Michael Remijan wrote:
 hi all,
 
 I'm currently working on Apache 2.0.39 - tomcat-4.1.8 with mod_jk2 and 
jdk1.4.0_01.  I've posted previously about apache giving a directory listing instead 
of returning index.jsp.  The only way I've been able to get around this problem is 
editing the workers2.properties file to include a mapping to the whole webapp...
 
 
 - workers2.properties (snippet) ---
 [uri:/diary/*]
 info=Map the whole webapp
 ---
 
 
 
 I have an alias and directory in httpd.conf set up as follows
 
 - httpd.conf (snippet) 
 ##
 ## diary webapp
 ##
 Alias /diary C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary
 
 Directory C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary
 Options FollowSymLinks MultiViews IncludesNoExec
 AddOutputFilter Includes html htm gif jpeg jpg
 AllowOverride None
 Order allow,deny
 Allow from all
 /Directory
 
 
 
 The question I have is, because of mapping the whole webapp in the 
workers2.properties file, will that basically override apache serving static content? 
 I assuming it would  but I don't have the time to go digging around in the 
connector's source.
 
 
 thanks,
 mike/
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]


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




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




Tomcat/Apache authentication

2002-08-12 Thread Koes, Derrick

I put this in my httpd.conf file:

 

Location /dora

AuthType Basic

AuthName protected area

AuthUserFile C:/Program Files/Apache Group/users

require user koes

/Location

 

I get the browser authentication popup and I enter the username and password
that is in my AuthUserFile.

 

However, I still get a 403 error from tomcat even though I have
tomcatAuthentication set to false in the AJP Connector.

 

Does anyone have any ideas why this is happening?




RE: automatically serve index.jsp

2002-08-12 Thread Michael Remijan

...

having this snippet workers2.properties also works

- workers2.properties (snippet) ---
 [uri:/diary/]
 info=Map the whole webapp
---


mike/

-Original Message-
From: Steve Prior [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 12:53 PM
To: Tomcat Users List
Subject: Re: automatically serve index.jsp


You're a little ahead of me in doing this, but did you try adding
index.jsp to a DirectoryIndex directive in Apache?

This was very obious to do in Apache 1.3, not sure as obvious in 2.0.

Steve

Michael Remijan wrote:
 hi all,
 
 I'm currently working on Apache 2.0.39 - tomcat-4.1.8 with mod_jk2 and 
jdk1.4.0_01.  I've posted previously about apache giving a directory listing instead 
of returning index.jsp.  The only way I've been able to get around this problem is 
editing the workers2.properties file to include a mapping to the whole webapp...
 
 
 - workers2.properties (snippet) ---
 [uri:/diary/*]
 info=Map the whole webapp
 ---
 
 
 
 I have an alias and directory in httpd.conf set up as follows
 
 - httpd.conf (snippet) 
 ##
 ## diary webapp
 ##
 Alias /diary C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary
 
 Directory C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary
 Options FollowSymLinks MultiViews IncludesNoExec
 AddOutputFilter Includes html htm gif jpeg jpg
 AllowOverride None
 Order allow,deny
 Allow from all
 /Directory
 
 
 
 The question I have is, because of mapping the whole webapp in the 
workers2.properties file, will that basically override apache serving static content? 
 I assuming it would  but I don't have the time to go digging around in the 
connector's source.
 
 
 thanks,
 mike/
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]


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




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




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




RE: tomcat jsse help!

2002-08-12 Thread Durham David Cntr 805CSS/SCBE

You have to tell tomcat to use that keystore.  I'm not sure how to do that, check the 
manual.

 -Original Message-
 From: Truong Hieu C 
 Sent: Monday, August 12, 2002 11:08 AM
 To: Tomcat Users List
 Subject: Re: tomcat jsse help!
 
 
 Thanks David.
 
 I created my own keystore succesfully but I still get same 
 error when I
 startup tomcat.  Do I need to do anything else?
 
 -Hoang
 
 Durham David Cntr 805CSS/SCBE wrote:
  
  create your own keystore:
  
  keytool -genkey -alias tomcat -keyalg RSA -keystore tomcatCerts
  
   -Original Message-
   From: Truong Hieu C
   Sent: Monday, August 12, 2002 10:43 AM
   To: Tomcat Users List
   Subject: tomcat jsse help!
  
  
   Hi All,
   I wanted to turn on https support for tomcat.  So I ran 
 this command:
   %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
  
   I believe I mistypes keystore password.
  
   Now, If I startup tomcat, I got this error message:
   java.io.IOException: Keystore was tampered with, or password was
   incorrect
   at
   
 sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:737)
   at java.security.KeyStore.load(KeyStore.java:608)
  
   I tried to recreate the key again but got this error:
   keytool error: java.io.IOException: Keystore was tampered with, or
   password was incorrect
  
   How do I recreate the key again?
  
   Thanks,
  
   -Hoang
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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


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




RE: automatically serve index.jsp

2002-08-12 Thread Subir Sengupta

Put this in your web.xml

  welcome-file-list
welcome-fileindex.jsp/welcome-file
  /welcome-file-list

Subir

-Original Message-
From: Michael Remijan [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 11:02 AM
To: Tomcat Users List
Subject: RE: automatically serve index.jsp


...

having this snippet workers2.properties also works

- workers2.properties (snippet) ---
 [uri:/diary/]
 info=Map the whole webapp
---


mike/

-Original Message-
From: Steve Prior [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 12:53 PM
To: Tomcat Users List
Subject: Re: automatically serve index.jsp


You're a little ahead of me in doing this, but did you try adding
index.jsp to a DirectoryIndex directive in Apache?

This was very obious to do in Apache 1.3, not sure as obvious in 2.0.

Steve

Michael Remijan wrote:
 hi all,
 
 I'm currently working on Apache 2.0.39 - tomcat-4.1.8 with mod_jk2 and
jdk1.4.0_01.  I've posted previously about apache giving a directory listing
instead of returning index.jsp.  The only way I've been able to get around
this problem is editing the workers2.properties file to include a mapping to
the whole webapp...
 
 
 - workers2.properties (snippet)
---
 [uri:/diary/*]
 info=Map the whole webapp

---
 
 
 
 I have an alias and directory in httpd.conf set up as follows
 
 - httpd.conf (snippet)

 ##
 ## diary webapp
 ##
 Alias /diary C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary
 
 Directory C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary
 Options FollowSymLinks MultiViews IncludesNoExec
 AddOutputFilter Includes html htm gif jpeg jpg
 AllowOverride None
 Order allow,deny
 Allow from all
 /Directory


 
 
 The question I have is, because of mapping the whole webapp in the
workers2.properties file, will that basically override apache serving static
content?  I assuming it would  but I don't have the time to go digging
around in the connector's source.
 
 
 thanks,
 mike/
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


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




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




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

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




Re: .shtml with 4.0.4

2002-08-12 Thread rsequeira


First the servlet code.../servlet isn't supported by Tomcat. It isn't a
standard tag i.e. it isn't defined in the servlet specs. You should use
jsp include / instead. Convert  the .shtml files (be careful if you have
SSI includes or CGI processing in the shtml files) that contain the
servlet tags to .jsps.
And then replace the
servlet code=classpath.Class/servlet
with
jsp:include page=/servlet/classpath.Class flush=true/


RS




   

  MadBit   

  madbit@telepolisTo:   
[EMAIL PROTECTED]
  .comcc: 

   Subject:  .shtml with 4.0.4 

  08/12/02 04:45 AM

  Please respond to

  Tomcat Users

  List

   

   






Hello.

I'm using Tomcat 4.0.4 with Apache 1.3.26 on Windows 2000.

I want to use .shtml pages. In tomcat I enabled de SSI servlet and
mapping on web.xml,
and on Apache I enabled the AJP connector and enabled .shtml processing:


 LoadModule jk_module modules/mod_jk.dll
 Addmodule mod_jk.c

 JkWorkersFile /webprg/tomcat/conf/jk/workers.properties
 JkLogFile /webprg/apache/logs/mod_jk.log
 JkLogLevel info



AddType text/html .shtml
AddHandler server-parsed .shtml

...
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMOunt /*.shtml ajp13

On a .shtml page I have a servlet code=classpath.Class/servlet
call. The called Class it's working fine calling directely via
'localhost/servlet/classpath.Class' URL but with the .shtml the Class
seems not to be called and the browser never end to load the page,
always it's on awaiting data state.

Anyone can help me?

   Thanks


Rogelio Herranz
[EMAIL PROTECTED]



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







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




RE: automatically serve index.jsp

2002-08-12 Thread Michael Remijan

...

Nope, that does work either.  I've been using tomcat for a while so I've already tried 
the most of those kinds of things.

It looks to me like the mappings in the workers2.properties file is looked at first.  
If a matching is found, it is forwarded to tomcat.  If not, it goes to apache.  Since 
I have directory browsing for that directory off and no index.html I get apache's 
standard error message for not being able to see that file.  What I want apache to do 
is translate http://localhost/diary/ into http://localhost/diary/index.jsp.  can I do 
this with a redirect?

mike/


-Original Message-
From: Subir Sengupta [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 1:24 PM
To: 'Tomcat Users List'
Subject: RE: automatically serve index.jsp


Put this in your web.xml

  welcome-file-list
welcome-fileindex.jsp/welcome-file
  /welcome-file-list

Subir

-Original Message-
From: Michael Remijan [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 11:02 AM
To: Tomcat Users List
Subject: RE: automatically serve index.jsp


...

having this snippet workers2.properties also works

- workers2.properties (snippet) ---
 [uri:/diary/]
 info=Map the whole webapp
---


mike/

-Original Message-
From: Steve Prior [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 12:53 PM
To: Tomcat Users List
Subject: Re: automatically serve index.jsp


You're a little ahead of me in doing this, but did you try adding
index.jsp to a DirectoryIndex directive in Apache?

This was very obious to do in Apache 1.3, not sure as obvious in 2.0.

Steve

Michael Remijan wrote:
 hi all,
 
 I'm currently working on Apache 2.0.39 - tomcat-4.1.8 with mod_jk2 and
jdk1.4.0_01.  I've posted previously about apache giving a directory listing
instead of returning index.jsp.  The only way I've been able to get around
this problem is editing the workers2.properties file to include a mapping to
the whole webapp...
 
 
 - workers2.properties (snippet)
---
 [uri:/diary/*]
 info=Map the whole webapp

---
 
 
 
 I have an alias and directory in httpd.conf set up as follows
 
 - httpd.conf (snippet)

 ##
 ## diary webapp
 ##
 Alias /diary C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary
 
 Directory C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary
 Options FollowSymLinks MultiViews IncludesNoExec
 AddOutputFilter Includes html htm gif jpeg jpg
 AllowOverride None
 Order allow,deny
 Allow from all
 /Directory


 
 
 The question I have is, because of mapping the whole webapp in the
workers2.properties file, will that basically override apache serving static
content?  I assuming it would  but I don't have the time to go digging
around in the connector's source.
 
 
 thanks,
 mike/
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


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




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




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

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




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




.htaccess files

2002-08-12 Thread Mark_DiBattista

Hi,

I'm trying to configure a .htaccess file to set a compact privacy policy
for our web server, IE 6 doesn't like 3rd Party cookies too much.

The body of my .htaccess file looks like this.

header append P3P 'CP=CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM
NAV INT DEM PRE'


I've placed the file in several directories in Apache and Tomcat and it
hasn't picked it up yet.

Has anyone ever attempted to use a .htaccess file in such away?


Thank you very much for any input.
Mark


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




RE: automatically serve index.jsp

2002-08-12 Thread rsequeira


Add index.jsp in the DirectoryIndex statement of Apache. Also check
your JkMount statements. Apache needs to forward all jsps to Tomcat.

RS



   
 
  Michael Remijan
 
  Michael.Remijan@sTo:   Tomcat Users List  
 
  olocup.com[EMAIL PROTECTED]  
 
cc:
 
  08/12/02 02:03 PM Subject:  RE: automatically serve 
index.jsp 
  Please respond to
 
  Tomcat Users
 
  List
 
   
 
   
 




...

Nope, that does work either.  I've been using tomcat for a while so I've
already tried the most of those kinds of things.

It looks to me like the mappings in the workers2.properties file is looked
at first.  If a matching is found, it is forwarded to tomcat.  If not, it
goes to apache.  Since I have directory browsing for that directory off and
no index.html I get apache's standard error message for not being able to
see that file.  What I want apache to do is translate
http://localhost/diary/ into http://localhost/diary/index.jsp.  can I do
this with a redirect?

mike/


-Original Message-
From: Subir Sengupta [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 1:24 PM
To: 'Tomcat Users List'
Subject: RE: automatically serve index.jsp


Put this in your web.xml

  welcome-file-list
welcome-fileindex.jsp/welcome-file
  /welcome-file-list

Subir

-Original Message-
From: Michael Remijan [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 11:02 AM
To: Tomcat Users List
Subject: RE: automatically serve index.jsp


...

having this snippet workers2.properties also works

- workers2.properties (snippet) ---
 [uri:/diary/]
 info=Map the whole webapp
---


mike/

-Original Message-
From: Steve Prior [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 12:53 PM
To: Tomcat Users List
Subject: Re: automatically serve index.jsp


You're a little ahead of me in doing this, but did you try adding
index.jsp to a DirectoryIndex directive in Apache?

This was very obious to do in Apache 1.3, not sure as obvious in 2.0.

Steve

Michael Remijan wrote:
 hi all,

 I'm currently working on Apache 2.0.39 - tomcat-4.1.8 with mod_jk2 and
jdk1.4.0_01.  I've posted previously about apache giving a directory
listing
instead of returning index.jsp.  The only way I've been able to get around
this problem is editing the workers2.properties file to include a mapping
to
the whole webapp...


 - workers2.properties (snippet)
---
 [uri:/diary/*]
 info=Map the whole webapp

---



 I have an alias and directory in httpd.conf set up as follows

 - httpd.conf (snippet)

 ##
 ## diary webapp
 ##
 Alias /diary C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary

 Directory C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary
 Options FollowSymLinks MultiViews IncludesNoExec
 AddOutputFilter Includes html htm gif jpeg jpg
 AllowOverride None
 Order allow,deny
 Allow from all
 /Directory





 The question I have is, because of mapping the whole webapp in the
workers2.properties file, will that basically override apache serving
static
content?  I assuming it would  but I don't have the time to go digging
around in the connector's source.


 thanks,
 mike/


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


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




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




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

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

AW: form based auth...

2002-08-12 Thread Softwareentwicklung Hauschel

Really stupid to use a jsp error.jsp for login ;-)
It works, thank you very much !

-Ursprüngliche Nachricht-
Von: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 12. August 2002 08:31
An: Tomcat Users List
Betreff: AW: form based auth...


The problem lies in your error.jsp.

Have a look at line 61 of the generated file error$jsp.java
in the work directory to see what causes the Exception.

Ralph Einfeldt
Uptime Internet Solution Center GmbH
Hamburg, Germany
Hosting, Content Management, Java Consulting
http://www.uptime-isc.de 

 -Ursprüngliche Nachricht-
 Von: Softwareentwicklung Hauschel
 [mailto:[EMAIL PROTECTED]]
 Gesendet: Sonntag, 11. August 2002 16:48
 An: [EMAIL PROTECTED]
 Betreff: form based auth...
 
 java.lang.NullPointerException
 at org.apache.jsp.error$jsp._jspService(error$jsp.java:61)


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


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


RE: ADMINS: Ban a user?

2002-08-12 Thread Mona Wong-Barnum


I vote that we do NOT filter out emails with the below keywords.  Let's 
not throw out the baby with the bath water!

 While we are doing this, why don't we put a filter on subject and exclude
 the following key words:
 
 URGENT
 
 REQUIRE
 
 DESPERATE
 
 HELP!!

==
Mona Wong-Barnum
National Center for Microscopy and Imaging Research
University of California, San Diego
http://ncmir.ucsd.edu/

The truth shall set you free, but first it will piss you off
A Landmark instructor
==



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




RE: [Q] Realms, Principals, et al...

2002-08-12 Thread Craig R. McClanahan



On Mon, 12 Aug 2002, Per Kreipke wrote:

 Date: Mon, 12 Aug 2002 13:11:56 -0400
 From: Per Kreipke [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: RE: [Q] Realms, Principals, et al...

   Q1:
   ===
  
   If GenericPrincipal isn't available from webapps, is there
  another way to
   get at the complete list of roles for a given user and their password?
  
 
  Not from a webapp through a portable API.  What you see (isUserInRole())
  is what you get.
 
  However, properly configured web.xml files will have security-role
  elements for all of the role names that are referenced by that webapp, so
  you might try reading them (by parsing /WEB-INF/web.xml) and trying all of
  those names through isUserInRole().  Of course, that doesn't help you if
  the webapp doesn't define them all ...

 ... or if the set of all roles is dynamic, a shortfall of the declarative
 servlet security API.


If the roles are dynamic, how is it that anyone believes it is possible to
enumerate the set of roles for a given user?

   I need the complete list of roles for the current user and password to
   implement a connector from Cocoon authentication to the container
   authentication.
  
 
  It's not at all clear to me that every possible Realm implementation will
  be able to articulate such a list -- or that the list won't change over
  time.  For example, it's perfectly feasible to implement a Realm that says
  user Joe has this role, but only from 8am to 5pm on weekdays.  It sounds
  like the Cocoon folks might want to do a little more thinking about their
  design.

 I don't know that it's their mistake, I'm just talking about wrapping the
 GenericPrincipal class.

GenericPrincipal is an internal implementation detail for how the existing
Realms implement things.  It is not part of the public API that Tomcat
exposes to a webapp.  There is no guarantee that any other container
creates something like this that has the roles built in to the Principal
object itself.

 Isn't it true that you can't do that from _any_
 webapp, much less Cocoon. E.g. given any of the current Tomcat Realms, how
 could you do your 'Joe' example?


Implementing time-sensitive permissions would actually be pretty easy -
subclass the Realm implementation that talks to the right kind of
persistent store, and add logic in its hasRole() method to return false
outside the allowed times, even if the role is listed in the
GenericPrincipal instance.  Obviously, you'd want to add more information
to the database (or whatever) containing the user information, but that's
all internal implementation stuff.

If you're following what's going on with Tomcat 5 on the developer's list,
you'll see an extension being added to the Realm interface that passes the
current request in to the hasRole() method as well (so that it can make
decisions based on characteristics of the current request).  This is being
done in support of implementing JSR-115, which is an SPI between a
container (like Tomcat) and an authorization service that might implement
arbitrarily complex rules for deciding whether a user, for this request,
at this date and time, has a requested role.  But, from the web
application's point of view, nothing changes -- isUserInRole() is how you
can dynamically ask the question for a particular role.

If you want to expose a Principal object (via getUserPrincipal()) that can
be cast by a webapp to get more data than just the name, that would be
feasible;

* Create a new class implementing Principal (and putting it in
  common/lib or common/classes so that it's visible to both
  Tomcat and your app)

* Build your own Realm implementation that creates and returns one of
  these Principals from the authenticate() method.

Obviously (I hope), this would tie you directly to Tomcat 4 internals.
There's nothing portable in Servlet 2.3 (or 2.4) for enumerating roles --
in fact, if I remember right, JSR-115 dispensed with the idea of creating
API for enumerating all the roles owned by a user because it was not
going to be possible for many environments.

 Thanks, Per

 P.s. I know you spend a huge amount of time helping people on this and other
 lists, so I hesitate to ask again but...

 Is the implementation of JAASRealm in 4.1 backwards compatible to 4.0.4?


Haven't got a clue.  In theory it should be, but I've never tried.

Craig


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




Re: automatically serve index.jsp

2002-08-12 Thread Michael Locasto

Mike,

I think there was discussion on tomcat-dev about this issue (with jk2)
recently (~2/3 weeks ago)... there should also be a bug report in
bugzilla. Try searching both those archives.

Of course, it's been a while and I wasn't really paying attention to the
conversation because it didn't impact my use, so this may be a bit of a
red herring. I hope it isn't :)

http://nagoya.apache.org/eyebrowse/ReadMsg?[EMAIL PROTECTED]
che.orgmsgId=404644

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

Good luck,
Michael



- Original Message -
From: Michael Remijan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 12, 2002 3:03 PM
Subject: RE: automatically serve index.jsp


 ...

 Nope, that does work either.  I've been using tomcat for a while so I've
already tried the most of those kinds of things.

 It looks to me like the mappings in the workers2.properties file is
looked at first.  If a matching is found, it is forwarded to tomcat.  If
not, it goes to apache.  Since I have directory browsing for that
directory off and no index.html I get apache's standard error message for
not being able to see that file.  What I want apache to do is translate
http://localhost/diary/ into http://localhost/diary/index.jsp.  can I do
this with a redirect?

 mike/


 -Original Message-
 From: Subir Sengupta [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 12, 2002 1:24 PM
 To: 'Tomcat Users List'
 Subject: RE: automatically serve index.jsp


 Put this in your web.xml

   welcome-file-list
 welcome-fileindex.jsp/welcome-file
   /welcome-file-list

 Subir

 -Original Message-
 From: Michael Remijan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 12, 2002 11:02 AM
 To: Tomcat Users List
 Subject: RE: automatically serve index.jsp


 ...

 having this snippet workers2.properties also works

 - workers2.properties
(snippet) ---
  [uri:/diary/]
  info=Map the whole webapp
 
---


 mike/

 -Original Message-
 From: Steve Prior [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 12, 2002 12:53 PM
 To: Tomcat Users List
 Subject: Re: automatically serve index.jsp


 You're a little ahead of me in doing this, but did you try adding
 index.jsp to a DirectoryIndex directive in Apache?

 This was very obious to do in Apache 1.3, not sure as obvious in 2.0.

 Steve

 Michael Remijan wrote:
  hi all,
 
  I'm currently working on Apache 2.0.39 - tomcat-4.1.8 with mod_jk2
and
 jdk1.4.0_01.  I've posted previously about apache giving a directory
listing
 instead of returning index.jsp.  The only way I've been able to get
around
 this problem is editing the workers2.properties file to include a
mapping to
 the whole webapp...
 
 
  - workers2.properties (snippet)
 ---
  [uri:/diary/*]
  info=Map the whole webapp
 
 
---
 
 
 
  I have an alias and directory in httpd.conf set up as follows
 
  - httpd.conf (snippet)
 
  ##
  ## diary webapp
  ##
  Alias /diary
C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary
 
  Directory
C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary
  Options FollowSymLinks MultiViews IncludesNoExec
  AddOutputFilter Includes html htm gif jpeg jpg
  AllowOverride None
  Order allow,deny
  Allow from all
  /Directory
 
 

 
 
  The question I have is, because of mapping the whole webapp in the
 workers2.properties file, will that basically override apache serving
static
 content?  I assuming it would  but I don't have the time to go digging
 around in the connector's source.
 
 
  thanks,
  mike/
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


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




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




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

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




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



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




RE: automatically serve index.jsp

2002-08-12 Thread Michael Remijan

...

Nope, I've tried that too.  and I'm using mod_jk2 so the JkMount doesn't apply


mike/

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 2:19 PM
To: Tomcat Users List
Subject: RE: automatically serve index.jsp



Add index.jsp in the DirectoryIndex statement of Apache. Also check
your JkMount statements. Apache needs to forward all jsps to Tomcat.

RS



   
 
  Michael Remijan
 
  Michael.Remijan@sTo:   Tomcat Users List  
 
  olocup.com[EMAIL PROTECTED]  
 
cc:
 
  08/12/02 02:03 PM Subject:  RE: automatically serve 
index.jsp 
  Please respond to
 
  Tomcat Users
 
  List
 
   
 
   
 




...

Nope, that does work either.  I've been using tomcat for a while so I've
already tried the most of those kinds of things.

It looks to me like the mappings in the workers2.properties file is looked
at first.  If a matching is found, it is forwarded to tomcat.  If not, it
goes to apache.  Since I have directory browsing for that directory off and
no index.html I get apache's standard error message for not being able to
see that file.  What I want apache to do is translate
http://localhost/diary/ into http://localhost/diary/index.jsp.  can I do
this with a redirect?

mike/


-Original Message-
From: Subir Sengupta [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 1:24 PM
To: 'Tomcat Users List'
Subject: RE: automatically serve index.jsp


Put this in your web.xml

  welcome-file-list
welcome-fileindex.jsp/welcome-file
  /welcome-file-list

Subir

-Original Message-
From: Michael Remijan [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 11:02 AM
To: Tomcat Users List
Subject: RE: automatically serve index.jsp


...

having this snippet workers2.properties also works

- workers2.properties (snippet) ---
 [uri:/diary/]
 info=Map the whole webapp
---


mike/

-Original Message-
From: Steve Prior [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 12:53 PM
To: Tomcat Users List
Subject: Re: automatically serve index.jsp


You're a little ahead of me in doing this, but did you try adding
index.jsp to a DirectoryIndex directive in Apache?

This was very obious to do in Apache 1.3, not sure as obvious in 2.0.

Steve

Michael Remijan wrote:
 hi all,

 I'm currently working on Apache 2.0.39 - tomcat-4.1.8 with mod_jk2 and
jdk1.4.0_01.  I've posted previously about apache giving a directory
listing
instead of returning index.jsp.  The only way I've been able to get around
this problem is editing the workers2.properties file to include a mapping
to
the whole webapp...


 - workers2.properties (snippet)
---
 [uri:/diary/*]
 info=Map the whole webapp

---



 I have an alias and directory in httpd.conf set up as follows

 - httpd.conf (snippet)

 ##
 ## diary webapp
 ##
 Alias /diary C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary

 Directory C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary
 Options FollowSymLinks MultiViews IncludesNoExec
 AddOutputFilter Includes html htm gif jpeg jpg
 AllowOverride None
 Order allow,deny
 Allow from all
 /Directory





 The question I have is, because of mapping the whole webapp in the
workers2.properties file, will that basically override apache serving
static
content?  I assuming it would  but I don't have the time to go digging
around in the connector's source.


 thanks,
 mike/


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


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




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

  1   2   >