Randy,

It works for me on Mandrake running as a non-root user. The issue I found is that the JDK likes to write some stuff back into its own directories when using the prefs api (bad idea IMO). So what I had to do was give write access to the JDK directory of the user running the tests.


Randy Watler wrote:

This registry component tests error shows up on Linux/MySQL for the current
cvs version, (it apparently works on windows):

Testcase:
test1(org.apache.jetspeed.components.portletregistry.TestPortletRegistryDAO)
: Caused an ERROR
Could not lockSystem prefs.Lock file access denied.
java.lang.SecurityException: Could not lockSystem prefs.Lock file access
denied.
       at
java.util.prefs.FileSystemPreferences.checkLockFile0ErrorCode(FileSystemPref
erences.java:919)
       at
java.util.prefs.FileSystemPreferences.lockFile(FileSystemPreferences.java:90
8)
       at
java.util.prefs.FileSystemPreferences.removeNode(FileSystemPreferences.java:
656)
       at
org.apache.jetspeed.components.portletregistry.PersistenceStorePortletRegist
ry.removeApplication(PersistenceStorePortletRegistry.java:203)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
       at
org.springframework.aop.framework.AopProxyUtils.invokeJoinpointUsingReflecti
on(AopProxyUtils.java:61)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint
(ReflectiveMethodInvocation.java:149)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflect
iveMethodInvocation.java:116)
       at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(Tr
ansactionInterceptor.java:56)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflect
iveMethodInvocation.java:138)
       at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopPro
xy.java:152)
       at $Proxy0.removeApplication(Unknown Source)
       at
org.apache.jetspeed.components.portletregistry.TestPortletRegistryDAO.tearDo
wn(TestPortletRegistryDAO.java:87)

Testcase:
testData(org.apache.jetspeed.components.portletregistry.TestPortletRegistryD
AO):      Caused an ERROR
Could not lockSystem prefs.Lock file access denied.
java.lang.SecurityException: Could not lockSystem prefs.Lock file access
denied.
       at
java.util.prefs.FileSystemPreferences.checkLockFile0ErrorCode(FileSystemPref
erences.java:919)
       at
java.util.prefs.FileSystemPreferences.lockFile(FileSystemPreferences.java:90
8)
       at
java.util.prefs.FileSystemPreferences.removeNode(FileSystemPreferences.java:
656)
       at
org.apache.jetspeed.components.portletregistry.PersistenceStorePortletRegist
ry.removeApplication(PersistenceStorePortletRegistry.java:203)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
       at
org.springframework.aop.framework.AopProxyUtils.invokeJoinpointUsingReflecti
on(AopProxyUtils.java:61)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint
(ReflectiveMethodInvocation.java:149)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflect
iveMethodInvocation.java:116)
       at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(Tr
ansactionInterceptor.java:56)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflect
iveMethodInvocation.java:138)
       at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopPro
xy.java:152)
       at $Proxy0.removeApplication(Unknown Source)
       at
org.apache.jetspeed.components.portletregistry.TestPortletRegistryDAO.tearDo
wn(TestPortletRegistryDAO.java:87)





--
"Great minds discuss ideas. Average minds discuss events. Small minds discuss people." 
 - Admiral Hyman Rickover

*******************************************
*           Scott T. Weaver               *
*         <[EMAIL PROTECTED]>             *
*     <http://www.einnovation.com>        *
* --------------------------------------  *
*   Apache Jetspeed Enterprise Portal     *
*     Apache Pluto Portlet Container      *
*                                         *
* OpenEditPro, Website Content Management *
*     <http://www.openedit.org>           *
*******************************************


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



Reply via email to