Hello,

> [1] https://syncope.apache.org/docs/3.0/getting-started.html#maven-project
> [2] https://syncope.apache.org/docs/3.0/getting-started.html#embedded-mode
> [3] https://syncope.apache.org/docs/reference-guide.html#customization

I studied it all.
The problem seems to be that the “self keymaster” is not configured and I 
didn’t succeed to configure it.

Regards
Alexandre

De : Francesco Chicchiriccò <ilgro...@apache.org>
Envoyé : lundi, 22 juillet 2024 10:38
À : user@syncope.apache.org
Objet : Re: Error as Apache Syncope is starting in tomcat

On 22/07/24 10:32, Alexandre Roy wrote:
Hello,

We installed Apache Syncope 3.07 as “Maven Project” with
- Red Hat Enterprise Linux release 9.4
- OpenJDK21U-jdk_x64_linux_hotspot_21.0.1_12 as java
- Maven 3.9.8
- tomcat-9.0.87
- Mariadb

As the app is starting, we have the following error in core.log and wa.log:
-----
10:07:53.063 INFO  org.apache.syncope.core.starter.SyncopeCoreApplication - 
Starting SyncopeCoreApplication v3.0.7 using Java 17.0.11 on tstsyncope with 
PID 1307 
(/var/lib/tomcat/webapps/syncope/WEB-INF/lib/syncope-core-starter-3.0.7.jar 
started by tomcat in /usr/share/tomcat)
10:07:53.064 INFO  org.apache.syncope.core.starter.SyncopeCoreApplication - The 
following 1 profile is active: "mariadb"
10:07:55.164 INFO  
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext 
- Root WebApplicationContext: initialization completed in 1860 ms
10:07:56.291 WARN  openjpa.Runtime - An error occurred while registering a 
ClassTransformer with PersistenceUnitInfo: name 'Master', root URL 
[file:/var/lib/tomcat/webapps/syncope/WEB-INF/lib/syncope-core-persistence-jpa-3.0.7.jar<file://var/lib/tomcat/webapps/syncope/WEB-INF/lib/syncope-core-persistence-jpa-3.0.7.jar>].
 The error has been consumed. To see it, set your openjpa.Runtime log level to 
TRACE. Load-time class transformation will not be available.
10:07:56.337 WARN  
org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext
 - Exception encountered during context initialization - cancelling refresh 
attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'keymasterStart': Unsatisfied dependency 
expressed through field 'serviceOps'; nested exception is 
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying 
bean of type 'org.apache.syncope.common.keymaster.client.api.ServiceOps' 
available: expected at least 1 bean which qualifies as autowire candidate. 
Dependency annotations: 
{@org.springframework.beans.factory.annotation.Autowired(required=true)}<mailto:%7b@org.springframework.beans.factory.annotation.Autowired(required=true)%7d>
10:07:56.358 INFO  
org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener
 -

Error starting ApplicationContext. To display the conditions report re-run your 
application with 'debug' enabled.
10:07:56.388 ERROR 
org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter -

***************************
APPLICATION FAILED TO START
***************************

Description:

Field serviceOps in 
org.apache.syncope.common.keymaster.client.api.startstop.KeymasterStartStop 
required a bean of type 
'org.apache.syncope.common.keymaster.client.api.ServiceOps' that could not be 
found.

The injection point has the following annotations:
      - @org.springframework.beans.factory.annotation.Autowired(required=true)


Action:

Consider defining a bean of type 
'org.apache.syncope.common.keymaster.client.api.ServiceOps' in your 
configuration.
-----


Do someone know how to solve this error ?

Hi,
I suppose you've read [1] and got the Embedded Mode working [2]; have you also 
checked the warning box there that says something about "building for 
production"?
You should have a look at [3] anyway.

HTH
Regards.

[1] https://syncope.apache.org/docs/3.0/getting-started.html#maven-project
[2] https://syncope.apache.org/docs/3.0/getting-started.html#embedded-mode
[3] https://syncope.apache.org/docs/reference-guide.html#customization

--

Francesco Chicchiriccò



Tirasa - Open Source Excellence

http://www.tirasa.net/



Member at The Apache Software Foundation

Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail

http://home.apache.org/~ilgrosso/

Reply via email to