AnsweredAssumed Answered

problem running the SimpleExampleWithContent

Question asked by sail on Feb 6, 2006
Latest reply on Feb 10, 2006 by sail
I import the Repository, Core, 3rd Party project into eclipse workspace, and build these projects, nothing wrong.

but when i tried to run the org.alfresco.example.SimpleExampleWithContent in the Repository project ,i got an Exception

Exception in thread "main" net.sf.acegisecurity.AuthenticationCredentialsNotFoundException: A valid SecureContext was not provided in the RequestContext
   at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecurityInterceptor.java:477)
   at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:355)
   at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:77)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:37)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:57)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
   at $Proxy22.exists(Unknown Source)
   at org.alfresco.example.SimpleExampleWithContent.doExample(SimpleExampleWithContent.java:105)
   at org.alfresco.example.SimpleExampleWithContent.access$0(SimpleExampleWithContent.java:95)
   at org.alfresco.example.SimpleExampleWithContent$1.doWork(SimpleExampleWithContent.java:87)
   at org.alfresco.repo.transaction.TransactionUtil.executeInTransaction(TransactionUtil.java:127)
   at org.alfresco.repo.transaction.TransactionUtil.executeInUserTransaction(TransactionUtil.java:72)
   at org.alfresco.example.SimpleExampleWithContent.main(SimpleExampleWithContent.java:91)

thank you!

Outcomes