You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by "Eric R. Medley" <em...@xylocore.com> on 2006/12/07 00:16:21 UTC

Error when trying to add admin user (java.lang.IllegalStateException: The security policy has not yet been set)

I am receiving the following error(s) when I attempt to create the admin
user at archiva startup. The error occurs in both Tomcat and Jetty (plugin).
Has anyone seen this issue?

 

Dec 6, 2006 6:02:51 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent

INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path: C:\Program
Files\Java\jdk1.5.0_10\bin;.;C:\WINDOWS\system32;C:\WINDOWS;c:\java\maven-2.
0.4\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\
IBM\CM;C:\PROGRA~1\IBM\CM\DLL;C:\PROGRA~1\IBM\CM\HELP;C:\Program
Files\IBM\Personal Communications\;C:\Program Files\IBM\Trace
Facility\;C:\Program Files\Common Files\Adaptec
Shared\System;C:\j2sdk1.4.2_13\bin

Dec 6, 2006 6:02:51 PM org.apache.coyote.http11.Http11BaseProtocol init

INFO: Initializing Coyote HTTP/1.1 on http-8080

Dec 6, 2006 6:02:51 PM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 781 ms

Dec 6, 2006 6:02:51 PM org.apache.catalina.core.StandardService start

INFO: Starting service Catalina

Dec 6, 2006 6:02:51 PM org.apache.catalina.core.StandardEngine start

INFO: Starting Servlet Engine: Apache Tomcat/5.5.20

Dec 6, 2006 6:02:51 PM org.apache.catalina.core.StandardHost start

INFO: XML validation disabled

log4j:WARN No appenders could be found for logger
(org.apache.catalina.startup.TldConfig).

log4j:WARN Please initialize the log4j system properly.

2006-12-06 18:02:52,783 [main] INFO  PlexusContainer                -
Loading on start [role]:
[org.apache.maven.archiva.scheduler.RepositoryTaskScheduler]

2006-12-06 18:02:52,933 [main] INFO  RAMJobStore                    -
RAMJobStore initialized.

2006-12-06 18:02:52,933 [main] INFO  StdSchedulerFactory            - Quartz
scheduler 'defaultScheduler' initialized from an externally provided
properties instance.

2006-12-06 18:02:52,933 [main] INFO  StdSchedulerFactory            - Quartz
scheduler version: 1.4.5

2006-12-06 18:02:52,933 [main] INFO  QuartzScheduler                -
Scheduler defaultScheduler_$_NON_CLUSTERED started.

2006-12-06 18:02:53,304 [main] WARN  ConfigurationStore             -
Configuration file: C:\Documents and Settings\exmtemp\.m2\archiva.xml not
found. Using defaults.

2006-12-06 18:02:53,314 [main] INFO  RepositoryTaskScheduler        - Not
scheduling indexer - index path is not configured

2006-12-06 18:02:53,314 [main] INFO  PlexusContainer                -
Loading on start [role,roleHint]:
[org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor,indexer]

Dec 6, 2006 6:02:54 PM org.apache.coyote.http11.Http11BaseProtocol start

INFO: Starting Coyote HTTP/1.1 on http-8080

Dec 6, 2006 6:02:54 PM org.apache.jk.common.ChannelSocket init

INFO: JK: ajp13 listening on /0.0.0.0:8009

Dec 6, 2006 6:02:54 PM org.apache.jk.server.JkMain start

INFO: Jk running ID=0 time=0/20  config=null

Dec 6, 2006 6:02:54 PM org.apache.catalina.storeconfig.StoreLoader load

INFO: Find registry server-registry.xml at classpath resource

Dec 6, 2006 6:02:54 PM org.apache.catalina.startup.Catalina start

INFO: Server startup in 3405 ms

2006-12-06 18:03:27,383 [http-8080-Processor25] INFO  UserConfiguration
- Attempting to find configuration [C:\Documents and
Settings\exmtemp/.m2/security.properties] (resolved to [C:\Documents and
Settings\exmtemp/.m2/security.properties])

2006-12-06 18:03:27,383 [http-8080-Processor25] DEBUG UserConfiguration
- Testing [C:\Documents and Settings\exmtemp/.m2/security.properties] as
resource

2006-12-06 18:03:27,393 [http-8080-Processor25] DEBUG UserConfiguration
- Testing [C:\Documents and Settings\exmtemp/.m2/security.properties] as url

2006-12-06 18:03:27,393 [http-8080-Processor25] DEBUG UserConfiguration
- URL [C:\Documents and Settings\exmtemp/.m2/security.properties] is
malformed

2006-12-06 18:03:27,393 [http-8080-Processor25] DEBUG UserConfiguration
- Testing [C:\Documents and Settings\exmtemp/.m2/security.properties] as
file

2006-12-06 18:03:27,393 [http-8080-Processor25] WARN  UserConfiguration
- Unable to find configuration [C:\Documents and
Settings\exmtemp/.m2/security.properties]

2006-12-06 18:03:27,393 [http-8080-Processor25] INFO  UserConfiguration
- Non-existant configuration [C:\Documents and
Settings\exmtemp/.m2/security.properties] not loaded.

2006-12-06 18:03:27,393 [http-8080-Processor25] INFO  UserConfiguration
- Attempting to find configuration [C:\Documents and
Settings\exmtemp/.m2/archiva.properties] (resolved to [C:\Documents and
Settings\exmtemp/.m2/archiva.properties])

2006-12-06 18:03:27,393 [http-8080-Processor25] DEBUG UserConfiguration
- Testing [C:\Documents and Settings\exmtemp/.m2/archiva.properties] as
resource

2006-12-06 18:03:27,393 [http-8080-Processor25] DEBUG UserConfiguration
- Testing [C:\Documents and Settings\exmtemp/.m2/archiva.properties] as url

2006-12-06 18:03:27,393 [http-8080-Processor25] DEBUG UserConfiguration
- URL [C:\Documents and Settings\exmtemp/.m2/archiva.properties] is
malformed

2006-12-06 18:03:27,393 [http-8080-Processor25] DEBUG UserConfiguration
- Testing [C:\Documents and Settings\exmtemp/.m2/archiva.properties] as file

2006-12-06 18:03:27,393 [http-8080-Processor25] WARN  UserConfiguration
- Unable to find configuration [C:\Documents and
Settings\exmtemp/.m2/archiva.properties]

2006-12-06 18:03:27,393 [http-8080-Processor25] INFO  UserConfiguration
- Non-existant configuration [C:\Documents and
Settings\exmtemp/.m2/archiva.properties] not loaded.

2006-12-06 18:03:27,393 [http-8080-Processor25] INFO  UserConfiguration
- Attempting to find configuration
[/org/apache/maven/archiva/security.properties] (resolved to
[/org/apache/maven/archiva/security.properties])

2006-12-06 18:03:27,393 [http-8080-Processor25] DEBUG UserConfiguration
- Testing [/org/apache/maven/archiva/security.properties] as resource

2006-12-06 18:03:27,393 [http-8080-Processor25] DEBUG UserConfiguration
- Found [/org/apache/maven/archiva/security.properties] as resource

2006-12-06 18:03:27,443 [http-8080-Processor25] INFO  UserConfiguration
- Attempting to find configuration
[/org/codehaus/plexus/security/config-defaults.properties] (resolved to
[/org/codehaus/plexus/security/config-defaults.properties])

2006-12-06 18:03:27,443 [http-8080-Processor25] DEBUG UserConfiguration
- Testing [/org/codehaus/plexus/security/config-defaults.properties] as
resource

2006-12-06 18:03:27,443 [http-8080-Processor25] DEBUG UserConfiguration
- Found [/org/codehaus/plexus/security/config-defaults.properties] as
resource

2006-12-06 18:03:28,064 [http-8080-Processor25] INFO
Interceptor:pssSecureActionInterceptor -
org.codehaus.plexus.security.ui.web.interceptor.SecureActionInterceptor
initialized!

2006-12-06 18:03:28,064 [http-8080-Processor25] INFO
Interceptor:pssSecureActionInterceptor -
org.codehaus.plexus.security.ui.web.interceptor.SecureActionInterceptor
initialized!

2006-12-06 18:03:28,414 [http-8080-Processor25] ERROR VelocityComponent
- ResourceManager : unable to find resource 'VM_global_library.vm' in any
resource loader.

2006-12-06 18:03:28,484 [http-8080-Processor25] WARN  ConfigurationFactory
- No configuration found. Configuring ehcache from ehcache-failsafe.xml
found in the classpath:
jar:file:/C:/java/apache-tomcat-5.5.20/webapps/archiva/WEB-INF/lib/ehcache-1
.2.jar!/ehcache-failsafe.xml

2006-12-06 18:03:28,664 [http-8080-Processor25] INFO
EnvironmentCheck:required-roles - Checking the existance of required roles.

2006-12-06 18:03:32,840 [http-8080-Processor25] DEBUG RBACManager:cached
- NOT CACHED - .getGlobalResource()

2006-12-06 18:03:32,840 [http-8080-Processor25] DEBUG RBACManager:jdo
- Create Resource [*] Returning Existing.

2006-12-06 18:03:32,951 [http-8080-Processor25] DEBUG RBACManager:cached
- NOT CACHED - .getGlobalResource()

2006-12-06 18:03:32,961 [http-8080-Processor25] DEBUG RBACManager:cached
- NOT CACHED - .getGlobalResource()

2006-12-06 18:03:32,961 [http-8080-Processor25] DEBUG RBACManager:cached
- NOT CACHED - .getGlobalResource()

2006-12-06 18:03:32,971 [http-8080-Processor25] DEBUG RBACManager:cached
- NOT CACHED - .getGlobalResource()

2006-12-06 18:03:32,971 [http-8080-Processor25] DEBUG RBACManager:cached
- NOT CACHED - .getGlobalResource()

2006-12-06 18:03:32,981 [http-8080-Processor25] DEBUG RBACManager:cached
- NOT CACHED - .getGlobalResource()

2006-12-06 18:03:32,991 [http-8080-Processor25] DEBUG RBACManager:cached
- NOT CACHED - .getGlobalResource()

2006-12-06 18:03:32,991 [http-8080-Processor25] DEBUG RBACManager:cached
- NOT CACHED - .getGlobalResource()

2006-12-06 18:03:33,001 [http-8080-Processor25] DEBUG RBACManager:cached
- NOT CACHED - .getGlobalResource()

2006-12-06 18:03:33,011 [http-8080-Processor25] DEBUG RBACManager:cached
- NOT CACHED - .getGlobalResource()

2006-12-06 18:03:33,011 [http-8080-Processor25] DEBUG RBACManager:cached
- NOT CACHED - .getGlobalResource()

2006-12-06 18:03:33,021 [http-8080-Processor25] DEBUG RBACManager:cached
- NOT CACHED - .getGlobalResource()

2006-12-06 18:03:33,031 [http-8080-Processor25] DEBUG RBACManager:cached
- NOT CACHED - .getGlobalResource()

2006-12-06 18:03:33,041 [http-8080-Processor25] DEBUG RBACManager:cached
- NOT CACHED - .getGlobalResource()

2006-12-06 18:03:33,051 [http-8080-Processor25] DEBUG RBACManager:cached
- NOT CACHED - .getGlobalResource()

2006-12-06 18:03:33,291 [http-8080-Processor25] DEBUG RBACManager:cached
- NOT CACHED - .getGlobalResource()

2006-12-06 18:03:33,291 [http-8080-Processor25] DEBUG RBACManager:cached
- NOT CACHED - .getGlobalResource()

2006-12-06 18:03:33,371 [http-8080-Processor25] DEBUG RBACManager:cached
- NOT CACHED - .getGlobalResource()

2006-12-06 18:03:33,371 [http-8080-Processor25] DEBUG RBACManager:cached
- NOT CACHED - .getGlobalResource()

2006-12-06 18:03:33,551 [http-8080-Processor25] FATAL
Interceptor:pssEnvironmentCheckInterceptor - EnvironmentCheck Failure.

======================================================================

 ENVIRONMENT FAILURE !!

 

xwork.xml - Missing named result "success" in action "account" in package
"/security".

xwork.xml - Missing named result "success" in action "login" in package
"/security".

xwork.xml - Expected method attribute value of "show" but got "logout"
instead, on action "logout" in package "/security".

xwork.xml - Missing named result "input" in action "logout" in package
"/security".

xwork.xml - Missing named result "error" in action "logout" in package
"/security".

xwork.xml - Missing named result "success" in action "logout" in package
"/security".

xwork.xml - Missing named result "success" in action "register" in package
"/security".

xwork.xml - Expected method attribute value of "edit" but got "show"
instead, on action "usercreate" in package "/security".

xwork.xml - Expected method attribute value of "show" but got "list"
instead, on action "roles" in package "/security".

xwork.xml - Missing named result "input" in action "roles" in package
"/security".

xwork.xml - Missing named result "error" in action "roles" in package
"/security".

xwork.xml - Missing named result "success" in action "roles" in package
"/security".

xwork.xml - Expected method attribute value of "show" but got "list"
instead, on action "permissions" in package "/security".

xwork.xml - Missing named result "input" in action "permissions" in package
"/security".

xwork.xml - Missing named result "error" in action "permissions" in package
"/security".

xwork.xml - Missing named result "success" in action "permissions" in
package "/security".

Missing [16] xwork.xml configuration elements.

 

======================================================================

2006-12-06 18:03:33,551 [http-8080-Processor25] INFO
Interceptor:pssSecureActionInterceptor -
org.codehaus.plexus.security.ui.web.interceptor.SecureActionInterceptor
initialized!

2006-12-06 18:03:33,551 [http-8080-Processor25] INFO
Interceptor:pssSecureActionInterceptor -
org.codehaus.plexus.security.ui.web.interceptor.SecureActionInterceptor
initialized!

2006-12-06 18:03:33,732 [http-8080-Processor25] WARN  SQL
- Object with id "admin" not found !

2006-12-06 18:03:33,732 [http-8080-Processor25] INFO
Interceptor:pssForceAdminUserInterceptor - No admin user found - forwarding
to admin user creation page.

2006-12-06 18:03:33,972 [http-8080-Processor25] INFO  FreemarkerManager
- Instantiating Freemarker ConfigManager!,
com.opensymphony.webwork.views.freemarker.FreemarkerManager

2006-12-06 18:05:17,720 [http-8080-Processor23] INFO
Action:pss-admin-account       - user =
UserCredentials[username=admin,fullName=admin,email=Eric_Medley@kyfbins.com,
password=<***>,confirmPassword=<***>]

2006-12-06 18:05:17,730 [http-8080-Processor23] ERROR DispatcherUtils
- Could not execute action

java.lang.IllegalStateException: The security policy has not yet been set.

        at
org.codehaus.plexus.security.policy.rules.ReusePasswordRule.hasReusedPasswor
d(ReusePasswordRule.java:58)

        at
org.codehaus.plexus.security.policy.rules.ReusePasswordRule.testPassword(Reu
sePasswordRule.java:94)

        at
org.codehaus.plexus.security.policy.DefaultUserSecurityPolicy.validatePasswo
rd(DefaultUserSecurityPolicy.java:271)

        at
org.codehaus.plexus.security.ui.web.action.AbstractUserCredentialsAction.val
idateCredentialsStrict(AbstractUserCredentialsAction.java:89)

        at
org.codehaus.plexus.security.ui.web.action.admin.AddAdminUserAction.submit(A
ddAdminUserAction.java:79)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

        at java.lang.reflect.Method.invoke(Method.java:585)

        at
com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInv
ocation.java:364)

        at
com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActio
nInvocation.java:216)

        at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocatio
n.java:190)

        at
com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.doIntercept(De
faultWorkflowInterceptor.java:168)

        at
com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodF
ilterInterceptor.java:86)

        at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocatio
n.java:188)

        at
com.opensymphony.xwork.validator.ValidationInterceptor.doIntercept(Validatio
nInterceptor.java:115)

        at
com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodF
ilterInterceptor.java:86)

        at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocatio
n.java:188)

        at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterce
ptor.java:31)

        at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocatio
n.java:188)

        at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterce
ptor.java:31)

        at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocatio
n.java:188)

        at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterce
ptor.java:31)

        at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocatio
n.java:188)

        at
com.opensymphony.webwork.interceptor.FileUploadInterceptor.intercept(FileUpl
oadInterceptor.java:171)

        at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocatio
n.java:188)

        at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterce
ptor.java:31)

        at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocatio
n.java:188)

        at
com.opensymphony.webwork.interceptor.debugging.DebuggingInterceptor.intercep
t(DebuggingInterceptor.java:147)

        at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocatio
n.java:188)

        at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterce
ptor.java:31)

        at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocatio
n.java:188)

        at
com.opensymphony.xwork.interceptor.I18nInterceptor.intercept(I18nInterceptor
.java:151)

        at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocatio
n.java:188)

        at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterce
ptor.java:31)

        at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocatio
n.java:188)

        at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterce
ptor.java:31)

        at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocatio
n.java:188)

        at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterce
ptor.java:31)

        at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocatio
n.java:188)

        at
com.opensymphony.xwork.interceptor.ExceptionMappingInterceptor.intercept(Exc
eptionMappingInterceptor.java:186)

        at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocatio
n.java:188)

        at
com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:11
3)

        at
com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(Dispatcher
Utils.java:225)

        at
com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatch
er.java:202)

        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:202)

        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)

        at
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java
:118)

        at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:
52)

        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:202)

        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)

        at
com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(ActionCont
extCleanUp.java:88)

        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:202)

        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)

        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)

        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)

        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)

        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)

        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)

        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
onnection(Http11BaseProtocol.java:664)

        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:527)

        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.java:80)

        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)

        at java.lang.Thread.run(Thread.java:595)

 

Thanks in advance!

 

 

Eric R. Medley

The Palantir Corporation