tomcat 4.04 work with struts/sslext problem (fail to get bean:include work using ssl)

2003-02-19 Thread Jason Yam
Hi everyone,
 
I have a application that I want to use sslext to work with struts 1.02
in order to further control using http or https protocol.  Initially I
cannot setup the ssl for the Netbeans-included tomcat 4.04 because I change
the server's original server.xml instead my user profile's server.xml.  I
add the following into my profile's server.xml and I get it work:
===
Connector className=org.apache.catalina.connector.http.HttpConnector
port=8443 minProcessors=5 maxProcessors=75 enableLookups=true
acceptCount=10 debug=0 connectionTimeout=6 scheme=https
secure=true
  Factory className=org.apache.catalina.net.SSLServerSocketFactory
clientAuth=false protocol=TLS
keystoreFile=C:\WINNT\Profiles\me.000\.keystore/
/Connector
===
 
Next, I can still access all actions or jsps through ssl after I setup
sslext.  All seem to work except that I get the error Exception opening
resource  https://localhost:8443/project/main.do
https://localhost:8443/project/main.do: javax.net.ssl.SSLHandshakeException:
java.security.cert.CertificateException: Couldn't find trusted certificate
when I access main.do.  This jsp includes:
bean:include id=topmenu page=/incl.displaymenu.do/
bean:include id=topbanner page=/jsp/incl/topbanner.inc/
The jsp works fine if I delete these two lines.
 
Anyone know how to solve this problem?  I cannot find any web pages
mentioned  this problem.  = (
 
Thank you for your help
 
Jason
 




RE: JSP file: 404 file not found(caused by user ID?)

2001-03-22 Thread Jason Yam
Title: RE: JSP file: 404 file not found(caused by user ID?)





Thanx Kelvin. Your idea is correct. Not quite sure why Tomcat will give me a file not found error message if it is the user permission problem. I have one more question to ask:

Is it OK to change the user/group permission of all files under the tomcat directory to nobody:nobody as suggested by Kelvin/you, though I don't think so? = 

Thx


Jason


-Original Message-
From: Kevin Sangeelee
To: [EMAIL PROTECTED]
Sent: 3/23/01 12:35 AM
Subject: Re: JSP file: 404 file not found(caused by user ID?)


On Fri, 23 Mar 2001, Jason wrote:


 I run the tomcat using startup.sh using the user root. It runs
 fine. If I run it using the same startup.sh but using the user
nobody
 instead, then I will get .jsp file: file not found when running
 few sample programs. E.g. the INCLUDE sample program. However,
not
 all sample programs (.jsp file) give me the same kind of response. I
am
 not absolutely sure it is related to the problem I mention above. I
 just know I get this problem whenever I run the script using the user
 nobody . Strange


Have you tried chown -R nobody.nobody * from your tomcat directory?
Perhaps there are permission problems.





RE: Help: form-based auth in Tomcat 3.2.1

2001-03-21 Thread Jason Yam
Title: RE: Help: form-based auth in Tomcat 3.2.1





Not sure it helps or not. Use port 8080. e.g. http://1.2.3.4:8080/examples/jsp/security/login.jsp


Jason


-Original Message-
From: Valeriy Molyakov
To: [EMAIL PROTECTED]
Sent: 3/21/01 8:54 PM
Subject: Help: form-based auth in Tomcat 3.2.1



Hi !
Form-based authentication :
When I use Apache + mod _ jk + Tomcat3.2.1 I receive an error 404
 url : http: // valera.kompan.com.ua/auto/j _ security _ check 
With use Tomcat standalone all works fine.
Where is a problem ?

Software :NT2000+Tomcat3.2.1+Apache1.3.14+mod_jk


Best regards,
 Valera M.
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]