RE: write and read problem

2004-11-19 Thread Wout Perquin
Hi Yoav,
Thanks for your time.  I have changed my design and now no longer require to
read from the local file system.
It keeps on puzzling me why I couldnt, but it no longer blocks my project.
Best regards, Wout Perquin

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: November 19, 2004 5:41 AM
To: Tomcat Users List
Subject: RE: write and read problem



Hi,
Attachments usually don't make it to the list, so you need to post your
code inline.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Wout Perquin [mailto:[EMAIL PROTECTED]
>Sent: Friday, November 19, 2004 2:14 AM
>To: Tomcat Users List
>Subject: RE: write and read problem
>
>Thanks for responding.
>My code attached:
>> Logging.java is the servlet
>> Runner.java is a utility class
>> also web.xml
>
>Thanks in advance, Wout Perquin
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: November 18, 2004 1:34 PM
>To: Tomcat Users List
>Subject: RE: write and read problem
>
>
>
>Hi,
>Post your code and we might be able to help more.  In general, the
>server admin may run with restrictive permissions for security at the
OS
>level, so it wouldn't matter whether the Java Security Manager is
>running or not.  This is usually a good idea.  And writing files to a
>random directory from a webapp is usually a bad idea.
>
>Yoav Shapira http://www.yoavshapira.com
>
>
>>-Original Message-
>>From: Wout Perquin [mailto:[EMAIL PROTECTED]
>>Sent: Friday, November 19, 2004 1:38 AM
>>To: Tomcat Users List
>>Subject: write and read problem
>>
>>Hi All,
>>I run Tomcat4 on Linux Red Hat 7.1
>>From within the init() of a servlet I try to read and write to the
>local
>>filesystem.
>>The SecurityManager is not enabled because System.getSecurityManager()
>>returns null.
>>
>>When I try to read/write something then log catalina.out tells me:
>>java.io.FileNotFoundException:  (Permission denied)
>>
>>I am not sure what to do next:
>>> I believe it is not java security related because there is no
>security
>>manager active
>>> In $CATALINA_HOME/conf/catalina.policy I have granted all
permissions
>>> Maybe I have to give user-id tomcat4 special rights ?
>>
>>Any suggestions ?
>>
>>Many thanks,
>>
>>Wout Perquin
>>
>>
>>
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary
>and/or privileged.  This e-mail is intended only for the individual(s)
to
>whom it is addressed, and may not be saved, copied, printed, disclosed
or
>used by anyone else.  If you are not the(an) intended recipient, please
>immediately delete this e-mail from your computer system and notify the
>sender.  Thank you.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>




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


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





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



RE: write and read problem

2004-11-19 Thread Shapira, Yoav

Hi,
Attachments usually don't make it to the list, so you need to post your
code inline.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Wout Perquin [mailto:[EMAIL PROTECTED]
>Sent: Friday, November 19, 2004 2:14 AM
>To: Tomcat Users List
>Subject: RE: write and read problem
>
>Thanks for responding.
>My code attached:
>> Logging.java is the servlet
>> Runner.java is a utility class
>> also web.xml
>
>Thanks in advance, Wout Perquin
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: November 18, 2004 1:34 PM
>To: Tomcat Users List
>Subject: RE: write and read problem
>
>
>
>Hi,
>Post your code and we might be able to help more.  In general, the
>server admin may run with restrictive permissions for security at the
OS
>level, so it wouldn't matter whether the Java Security Manager is
>running or not.  This is usually a good idea.  And writing files to a
>random directory from a webapp is usually a bad idea.
>
>Yoav Shapira http://www.yoavshapira.com
>
>
>>-Original Message-
>>From: Wout Perquin [mailto:[EMAIL PROTECTED]
>>Sent: Friday, November 19, 2004 1:38 AM
>>To: Tomcat Users List
>>Subject: write and read problem
>>
>>Hi All,
>>I run Tomcat4 on Linux Red Hat 7.1
>>From within the init() of a servlet I try to read and write to the
>local
>>filesystem.
>>The SecurityManager is not enabled because System.getSecurityManager()
>>returns null.
>>
>>When I try to read/write something then log catalina.out tells me:
>>java.io.FileNotFoundException:  (Permission denied)
>>
>>I am not sure what to do next:
>>> I believe it is not java security related because there is no
>security
>>manager active
>>> In $CATALINA_HOME/conf/catalina.policy I have granted all
permissions
>>> Maybe I have to give user-id tomcat4 special rights ?
>>
>>Any suggestions ?
>>
>>Many thanks,
>>
>>Wout Perquin
>>
>>
>>
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary
>and/or privileged.  This e-mail is intended only for the individual(s)
to
>whom it is addressed, and may not be saved, copied, printed, disclosed
or
>used by anyone else.  If you are not the(an) intended recipient, please
>immediately delete this e-mail from your computer system and notify the
>sender.  Thank you.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>




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


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



RE: write and read problem

2004-11-18 Thread Wout Perquin
Thanks for responding.
My code attached:
> Logging.java is the servlet
> Runner.java is a utility class
> also web.xml

Thanks in advance, Wout Perquin

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: November 18, 2004 1:34 PM
To: Tomcat Users List
Subject: RE: write and read problem



Hi,
Post your code and we might be able to help more.  In general, the
server admin may run with restrictive permissions for security at the OS
level, so it wouldn't matter whether the Java Security Manager is
running or not.  This is usually a good idea.  And writing files to a
random directory from a webapp is usually a bad idea.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Wout Perquin [mailto:[EMAIL PROTECTED]
>Sent: Friday, November 19, 2004 1:38 AM
>To: Tomcat Users List
>Subject: write and read problem
>
>Hi All,
>I run Tomcat4 on Linux Red Hat 7.1
>From within the init() of a servlet I try to read and write to the
local
>filesystem.
>The SecurityManager is not enabled because System.getSecurityManager()
>returns null.
>
>When I try to read/write something then log catalina.out tells me:
>java.io.FileNotFoundException:  (Permission denied)
>
>I am not sure what to do next:
>> I believe it is not java security related because there is no
security
>manager active
>> In $CATALINA_HOME/conf/catalina.policy I have granted all permissions
>> Maybe I have to give user-id tomcat4 special rights ?
>
>Any suggestions ?
>
>Many thanks,
>
>Wout Perquin
>
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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




http://java.sun.com/dtd/web-app_2_3.dtd";>


Servlet Logging Test hedres.org

  Some tests to understand basic servlet functionalities

	
		Logging
		hedres.servlets.Logging
		
			properties
			/hedres/conf/servlets/Logging
		

		
			java.security.policy
			http://linuxg:8088/java.policy.all
		
		
			net.jini.discovery.interface
			linuxg
		
		
			java.rmi.activation.port
			1099
		
		
			java.rmi.server.codebase
			http://linuxg:8088/
		

	

	
Logging
/grapje




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

RE: write and read problem

2004-11-18 Thread Shapira, Yoav

Hi,
Post your code and we might be able to help more.  In general, the
server admin may run with restrictive permissions for security at the OS
level, so it wouldn't matter whether the Java Security Manager is
running or not.  This is usually a good idea.  And writing files to a
random directory from a webapp is usually a bad idea.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Wout Perquin [mailto:[EMAIL PROTECTED]
>Sent: Friday, November 19, 2004 1:38 AM
>To: Tomcat Users List
>Subject: write and read problem
>
>Hi All,
>I run Tomcat4 on Linux Red Hat 7.1
>From within the init() of a servlet I try to read and write to the
local
>filesystem.
>The SecurityManager is not enabled because System.getSecurityManager()
>returns null.
>
>When I try to read/write something then log catalina.out tells me:
>java.io.FileNotFoundException:  (Permission denied)
>
>I am not sure what to do next:
>> I believe it is not java security related because there is no
security
>manager active
>> In $CATALINA_HOME/conf/catalina.policy I have granted all permissions
>> Maybe I have to give user-id tomcat4 special rights ?
>
>Any suggestions ?
>
>Many thanks,
>
>Wout Perquin
>
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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