You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by lee hwaying <hw...@hotmail.com> on 2006/05/09 13:39:21 UTC

System.setProperty failed during Tomcat5 startup

Tomcat startup fail with below error log when Springframework tried to call 
System.setProperty.
Can some one help me?
I ran the code succesyfully at windows pc but not on unix server

thanks
hy

java.security.AccessControlException: access denied
(java.util.PropertyPermission webApp.root write)
@40000000445f114f374f04fc at
java.security.AccessControlContext.checkPermission
java.security.AccessController.checkPermission(AccessController.java:427)
@40000000445f114f374f149c at java.lang.SecurityManager.checkPermission
(SecurityManager.java:532)
@40000000445f114f374fa524 at java.lang.System.setProperty
(System.java:698)
@40000000445f114f374facf4 at
org.springframework.web.util.WebUtils.setWebAppRootSystemProperty
(WebUtils.java:104)
@40000000445f114f374fb4c4 at
org.springframework.web.util.Log4jWebConfigurer.initLogging


>From: "Tim Lucia" <ti...@yahoo.com>
>Reply-To: "Tomcat Users List" <us...@tomcat.apache.org>
>To: "'Tomcat Users List'" <us...@tomcat.apache.org>
>Subject: RE: Default servlet
>Date: Tue, 9 May 2006 07:15:47 -0400
>
>Mark is right (of course)... my bad.
>
>-----Original Message-----
>From: Mark Thomas [mailto:markt@apache.org]
>Sent: Monday, May 08, 2006 10:14 PM
>To: Tomcat Users List
>Subject: Re: Default servlet
>
>Tim Lucia wrote:
> > Look in conf/web.xml -- it is commented out by default.
>Not it isn't. The default servlet is enabled by default.
>
> > It is widely
> > considered evil to use the default servlet.  At a minimum, it poses
>security
> > risks.
>Again, no. The default servlet is not considered evil. You are thinking
>of the invoker servlet.
>
>Mark
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>

_________________________________________________________________
Get an advanced look at the new version of MSN Messenger. 
http://messenger.msn.com.my/Beta/Default.aspx


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


[OT] Hijack (WAS: Re: System.setProperty failed during Tomcat5 startup)

Posted by Antonio Petrelli <br...@tariffenet.it>.
Tim Funk ha scritto:
> 1) Don't hijack threads - start a new one
The last famous words... some people will never learn ;-)
Ciao
Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: update jar file does not work immediately

Posted by Mark Thomas <ma...@apache.org>.
When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this  makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.

This is known as thread hijacking and is that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Mark
tomcat-user-owner

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: update jar file does not work immediately

Posted by Calvin Deiterich <ce...@comcast.net>.
Tony,
I have the same problem. Eclipse 3.1 WTP install.
I ended up shutting down tomcat and deleting the .war and the folder,
then saving the new .war file and start the tomcat up again.
I also publish to another tomcat server and still have to do the same
thing.  On both machines I am running tomcat 5.5.17.
Hope someone has a solution as this is a pain.
Calvin

Tony Smith wrote the following on 5/18/2006 7:30 PM:
> Hi, 
>  
>  I am using Tomcat 5.5.9 on Windows. I use Eclipse to
>  write my server code. Every time I change my code, I
>  export the jar directly to the myapp/WEB-INF/lib
>  directory and restart Tomcat. I found that the new
>  code is not immediately used by Tomcat, I have to
>  re-export, re-start Tomcat a couple times to make
>  Tomcat pickup my new code.
>  
>  Anyone know why?
>  
>  Thanks,
>  
>  qq
>>
>> __________________________________________________


-- 
http://mywebpages.comcast.net/tnczoo/
-----
"If a dog will not come to you after having looked you in the face,
you should go home and examine your conscience."
- Woodrow Wilson
-----


update jar file does not work immediately

Posted by Tony Smith <qu...@yahoo.com>.
Hi, 
 
 I am using Tomcat 5.5.9 on Windows. I use Eclipse to
 write my server code. Every time I change my code, I
 export the jar directly to the myapp/WEB-INF/lib
 directory and restart Tomcat. I found that the new
 code is not immediately used by Tomcat, I have to
 re-export, re-start Tomcat a couple times to make
 Tomcat pickup my new code.
 
 Anyone know why?
 
 Thanks,
 
 qq
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


update jar file does not work immediately

Posted by Tony Smith <qu...@yahoo.com>.
Hi, 

I am using Tomcat 5.5.9 on Windows. I use Eclipse to
write my server code. Every time I change my code, I
export the jar directly to the myapp/WEB-INF/lib
directory and restart Tomcat. I found that the new
code is not immediately used by Tomcat, I have to
re-export, re-start Tomcat a couple times to make
Tomcat pickup my new code.

Anyone know why?

Thanks,

qq


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: System.setProperty failed during Tomcat5 startup

Posted by Tim Funk <fu...@joedog.org>.
Don't know - you'll need to ask a spring related user list.

-Tim

lee hwaying wrote:

> 
> sorry for that.
> 
> THanks for the reply
> 
> is there any way round it without having to touch the security manager 
> as I am running it from a web hosting package
> 
> many thanks
> 
>> From: Tim Funk <fu...@joedog.org>
>> Reply-To: "Tomcat Users List" <us...@tomcat.apache.org>
>> To: Tomcat Users List <us...@tomcat.apache.org>
>> Subject: Re: System.setProperty failed during Tomcat5 startup
>> Date: Tue, 09 May 2006 09:02:07 -0400
>>
>> 1) Don't hijack threads - start a new one
>> 2) Your running tomcat in with the security manager turned on. When 
>> the security manager is enabled - methods System.setProperty() and 
>> System.exit() are not allowed to be called.
>>
>> -Tim
>>
>> lee hwaying wrote:
>>
>>> Tomcat startup fail with below error log when Springframework tried 
>>> to call System.setProperty.
>>> Can some one help me?
>>> I ran the code succesyfully at windows pc but not on unix server
>>>
>>> thanks
>>> hy
>>>
>>> java.security.AccessControlException: access denied
>>> (java.util.PropertyPermission webApp.root write)
>>> @40000000445f114f374f04fc at
>>> java.security.AccessControlContext.checkPermission
>>> java.security.AccessController.checkPermission(AccessController.java:427) 
>>>
>>> @40000000445f114f374f149c at java.lang.SecurityManager.checkPermission
>>> (SecurityManager.java:532)
>>> @40000000445f114f374fa524 at java.lang.System.setProperty
>>> (System.java:698)
>>> @40000000445f114f374facf4 at
>>> org.springframework.web.util.WebUtils.setWebAppRootSystemProperty
>>> (WebUtils.java:104)
>>> @40000000445f114f374fb4c4 at
>>> org.springframework.web.util.Log4jWebConfigurer.initLogging

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: System.setProperty failed during Tomcat5 startup

Posted by lee hwaying <hw...@hotmail.com>.
sorry for that.

THanks for the reply

is there any way round it without having to touch the security manager as I 
am running it from a web hosting package

many thanks

>From: Tim Funk <fu...@joedog.org>
>Reply-To: "Tomcat Users List" <us...@tomcat.apache.org>
>To: Tomcat Users List <us...@tomcat.apache.org>
>Subject: Re: System.setProperty failed during Tomcat5 startup
>Date: Tue, 09 May 2006 09:02:07 -0400
>
>1) Don't hijack threads - start a new one
>2) Your running tomcat in with the security manager turned on. When the 
>security manager is enabled - methods System.setProperty() and 
>System.exit() are not allowed to be called.
>
>-Tim
>
>lee hwaying wrote:
>
>>Tomcat startup fail with below error log when Springframework tried to 
>>call System.setProperty.
>>Can some one help me?
>>I ran the code succesyfully at windows pc but not on unix server
>>
>>thanks
>>hy
>>
>>java.security.AccessControlException: access denied
>>(java.util.PropertyPermission webApp.root write)
>>@40000000445f114f374f04fc at
>>java.security.AccessControlContext.checkPermission
>>java.security.AccessController.checkPermission(AccessController.java:427)
>>@40000000445f114f374f149c at java.lang.SecurityManager.checkPermission
>>(SecurityManager.java:532)
>>@40000000445f114f374fa524 at java.lang.System.setProperty
>>(System.java:698)
>>@40000000445f114f374facf4 at
>>org.springframework.web.util.WebUtils.setWebAppRootSystemProperty
>>(WebUtils.java:104)
>>@40000000445f114f374fb4c4 at
>>org.springframework.web.util.Log4jWebConfigurer.initLogging
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>

_________________________________________________________________
Find love online with MSN Personals. 
http://match.msn.com.my/match/mt.cfm?pg=channel


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: System.setProperty failed during Tomcat5 startup

Posted by Tim Funk <fu...@joedog.org>.
1) Don't hijack threads - start a new one
2) Your running tomcat in with the security manager turned on. When the 
security manager is enabled - methods System.setProperty() and System.exit() 
are not allowed to be called.

-Tim

lee hwaying wrote:

> Tomcat startup fail with below error log when Springframework tried to 
> call System.setProperty.
> Can some one help me?
> I ran the code succesyfully at windows pc but not on unix server
> 
> thanks
> hy
> 
> java.security.AccessControlException: access denied
> (java.util.PropertyPermission webApp.root write)
> @40000000445f114f374f04fc at
> java.security.AccessControlContext.checkPermission
> java.security.AccessController.checkPermission(AccessController.java:427)
> @40000000445f114f374f149c at java.lang.SecurityManager.checkPermission
> (SecurityManager.java:532)
> @40000000445f114f374fa524 at java.lang.System.setProperty
> (System.java:698)
> @40000000445f114f374facf4 at
> org.springframework.web.util.WebUtils.setWebAppRootSystemProperty
> (WebUtils.java:104)
> @40000000445f114f374fb4c4 at
> org.springframework.web.util.Log4jWebConfigurer.initLogging
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org