Symlink access error

2002-07-29 Thread SomchaiDion

Dear sir,
I am using Tomcat 4.1.3-LE-jdk1.4 with JSDK 1.4.0_01 on Linux(Mandrake
8.1). I want to add my data on CD-ROM into my homepage. So, I set my user
homepage(~lsomchai) by using Listenner tag in server.xml file as follow.

Listener className=org.apache.catalina.startup.UserConfig
directoryName=public_html
userClass=org.apache.catalina.startup.PasswdUserDatabase/

In my homepage directory, there is the Test subdirectory and the TestSymlink
inside it. The TestSymlink is link to /mnt/cdrom directory.

if I access to ~lsomchai/Test, the homepage will list TestSymlink with
nothing at Size column and null at Last Modified column.
then, I access into TestSymlink. It show this message.
=
HTTP Status 404 - /%7Elsomchai/Test/TestSymlink/


type Status report
message /%7Elsomchai/Test/TestSymlink/
description The requested resource (/%7Elsomchai/Test/TestSymlink/) is not
available.


Apache Tomcat/4.1.3-LE-jdk14
==

Please help me. How can I set my tomcat to access CD-ROM?

Thanks,
Somchai



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




Symlink Problem

2002-07-28 Thread SomchaiDion

Dear sir,
I am using tomcat 4.1.3-LE-jdk14 with JSDK 1.4.0 on my Linux(Mandrake
8.1). I cannot access my homepage with has a symlink.  I post this problem
to tomcat-dev and got the answer below that it is a side-effect of security
problem. However, may be someone has any trick to solve this problem. Please
let me know.

Thank you,
Somchai
=
 Somchai,

 This would probably be better off asked to the tomcat-user mailing list.
 Also, version numbers and specific information on Tomcat, your JVM, OS
would
 be useful in answering your question.

 This is from http://jakarta.apache.org/tomcat/tomcat-3.3-doc/faq

* Five, on a Unix platform, you are attempting to access a file
  that is a symbolic link.

The last three cases are caused by a test in
org.apache.tomcat.core.DefaultServlet to see whether the absolute
name of a file equals the canonical name. This test is intended
to solve a serious security problem, where mixed case or additional
characters in a file name can get Tomcat to serve the source
file instead of the processed file for JSP files on a Windows
platform. This test should be replaced with a solution that doesn't
have the above side effects.

 Hope that helps you out.

 Regards,
 Michael Locasto


 - Original Message -
 From: SomchaiDion [EMAIL PROTECTED]
 To: Tomcat Developers List [EMAIL PROTECTED]
 Sent: Sunday, July 28, 2002 5:37 AM
 Subject: Re: Symlink problem


   Does anyone know who to solve this problem.
 
  Sorry, it is Does anyone know how to soleve this problem?
 
  Somchai
  - Original Message -
  From: SomchaiDion [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Sunday, July 28, 2002 6:34 PM
  Subject: Symlink problem
 
 
   Dear sir,
   I have some information on CD-ROM and want to add it into my
 homepage.
   So, I setup tomcat to serve user webdirectory by using Listener. Then,
I
   create symlink in my homepage to the CD-ROM mounting directory. But, I
   cannot access it. Does anyone know who to solve this problem. Please
 help
   me.
  
   Thanks,
   Somchai



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




context path null error

2002-06-22 Thread SomchaiDion

Help me please,
I found the error message in the log files as shown below. Can anybody
explain me what is it.

Thanks
Somchai
=
2002-06-21 10:22:32 StandardHost[localhost]: Error deploying application at
context path null
java.lang.reflect.InvocationTargetException
at
org.apache.commons.digester.Digester.createSAXException(Digester.java
:2033)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java
:2053)
at
org.apache.commons.digester.Digester.endElement(Digester.java:833)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1536)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.commons.digester.Digester.parse(Digester.java:1302)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep




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




Login prompt twice

2002-06-19 Thread SomchaiDion

Hi, can anybody help me.
I try to config my tomcat to serve my homepage and protect some data by
using security-constrain. The data file is a MS-Word document. When anyone
access the data directory, it will ask usernamepassword. That is ok. But,
when click at a link to document file, it ask usernamepassword again. I
don't know, why? I am using Tomcat 4.1.3LE with JSDK 1.4.0 on Linux 2.4.18.
My WEB-INF/web.xml file as follow:


?xml version=1.0 encoding=UTF-8?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
  session-config
session-timeout
30
/session-timeout
  /session-config
  welcome-file-list
welcome-file
index.jsp
/welcome-file
welcome-file
index.html
/welcome-file
welcome-file
index.htm
/welcome-file
  /welcome-file-list
  security-constraint
web-resource-collection
  web-resource-nameDataProtect/web-resource-name
  descriptionprotect/description
  url-pattern/DataStructure/*/url-pattern
/web-resource-collection
auth-constraint
  role-namedsstudent/role-name
/auth-constraint
  /security-constraint
  login-config
auth-methodBASIC/auth-method
realm-nameDefault/realm-name
  /login-config
  security-role
role-namedsstudent/role-name
  /security-role
/web-app

==
Somchai LIMSIRORATANA



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