FYI, here are the steps we follow to build Syncope:
1) We run:
/apps/apache-maven-3.0.5/bin/mvn archetype:generate 
-DarchetypeGroupId=org.apache.syncope -DarchetypeArtifactId=syncope-archetype 
-DarchetypeRepository=http://repo1.maven.org/maven2 -DarchetypeVersion=2.1.5
          responses:
              "Define value for property 'groupId':": "org.apache.syncope"
              "Define value for property 'artifactId':": "syncope-archetype"
              "Define value for property 'version' 1.0-SNAPSHOT: :": "2.1.5"
              "Define value for property 'package' org.apache.syncope:": 
"org.apache.syncope"
              "Define value for property 'anonymousKey':": "XXX"
              "Define value for property 'jwsKey':": "XXX"
              "Define value for property 'secretKey':": "XXX"
              "Y: :": "Y"


2) We create the "conf", "logs", and "bundles" directories under 
/apps/syncope-archetype    

3) We copy a modified "provisioning.properties" file to 
/apps/syncope-archetype/core/src/main/resources/provisioning.properties and a 
modified "Master.properties file to 
/apps/syncope-archetype/core/src/main/resources/domains/Master.properties 
(files modified for using Mysql as database)


4) We add a "setenv.sh" file to /apps/apache-tomcat-9.0.20/bin.  setenv.sh 
contains:
VA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms1536m 
-Xmx1536m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:+DisableExplicitGC 
-Djava.security.egd=file:/dev/./urandom"

5) We run "/apps/apache-maven-3.0.5/bin/mvn clean package 
-Dconf.directory=/apps/syncope-archetype/conf 
-Dbundles.directory=/apps/syncope-archetype/bundles/ 
-Dlog.directory=/apps/syncope-archetype/logs/"
The builds all show as SUCCESSFUL.
[FYI, in a different/separate attempt, I have also tried running the "mvn 
install" and "mvn compile" separately and both were successful.]


6) We copy the WAR files to <TOMCAT>/webapps.  We copy properties files to 
/apps/syncope-archetype/conf, and "customFormAttributes.json" and 
"customTemplate.json" to /apps/syncope-archetype/conf.



But, per below, when we start Tomcat, we get the shown below.
Looking at the Tomcat Console, the syncope-console is running and the syncope 
and syncope-enduser are not running.
If I try to access the syncope-console webapp, I get an error that mentions 
"wicket":
org.apache.wicket.WicketRuntimeException: Unable to instantiate web session 
class org.apache.syncope.client.console.SyncopeConsoleSession
        
org.apache.wicket.authroles.authentication.AuthenticatedWebApplication.newSession(AuthenticatedWebApplication.java:121)
        
org.apache.wicket.Application.fetchCreateAndSetSession(Application.java:1555)
        org.apache.wicket.Session.get(Session.java:176)
I/we are really puzzled, because we don't understand why others apparently are 
able to build Syncope, but  I/we have had terrible problems (believe many 
sleepless nights now). 

Is it because we are trying to build it using Maven?  But, it seems like the 
Syncope docs say that Maven is the best way to build Syncope?
Please advise.
Thanks,Jim





    On Friday, October 25, 2019, 5:29:39 PM UTC, [email protected] 
<[email protected]> wrote:  
 
  Hi,
FYI, when we try to start Tomcat, we are seeing errors like the following in 
catalina.out log file:
25-Oct-2019 16:21:29.031 SEVERE [main] 
org.apache.catalina.startup.HostConfig.deployWAR Error deploying web 
application archive [/apps/apache-tomcat-9.0.20/webapps/syncope.war]
        java.lang.IllegalStateException: Error starting child
                at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:716)
                at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
                at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
                at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:978)
                at 
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1849)
                at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
                at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                at 
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
                at 
java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
                at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:773)
                at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
                at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)
                at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
                at 
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
                at 
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
                at 
org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
                at 
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:929)
                at 
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)
                at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377)
                at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367)
                at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                at 
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
                at 
java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
                at 
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902)
                at 
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
                at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                at 
org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
                at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                at 
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:932)
                at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                at org.apache.catalina.startup.Catalina.start(Catalina.java:633)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:498)
                at 
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:344)
                at 
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:475)
        Caused by: org.apache.catalina.LifecycleException: Failed to start 
component 
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/syncope]]
                at 
org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
                at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
                at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:713)
                ... 37 more
        Caused by: java.lang.NoClassDefFoundError: 
org/apache/cocoon/pipeline/component/PipelineComponent
                at java.lang.Class.getDeclaredFields0(Native Method)
                at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
                at java.lang.Class.getDeclaredFields(Class.java:1916)
                at 
org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:110)
                at 
org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:269)
                at 
org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:137)
                at 
org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:69)
                at 
org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:330)
                at 
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:778)
                at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:301)
                at 
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
                at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5048)
                at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                ... 38 more
        Caused by: java.lang.ClassNotFoundException: 
org.apache.cocoon.pipeline.component.PipelineComponent
                at 
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1363)
                at 
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1186)
                ... 51 more


Can someone tell us exactly what version of the products are "officially" being 
used for building Syncope, for everything (especially maven)?
Also Hunter has mentioned that these are the exact same problems/errors he was 
seeing in his earlier problem, e.g.:
Pony Mail!

| 
| 
|  | 
Pony Mail!


 |

 |

 |




Thanks,JIm



    On Friday, October 25, 2019, 5:12:53 PM UTC, [email protected] 
<[email protected]> wrote:  
 
 Hi,
I am trying to reproduce the Syncope 2.1.5 (on RHEL 7) build that one of my 
colleagues (Hunter) had had problems with previously as reported on this 
mailing list.  As described previously, he was eventually able to get a good 
build by using Maven 3.0.5 instead of Maven 3.6.2.  

However in my new build, I started with using Maven 3.0.5 and encountered 
similar "transitive dependencies" and "missing POM" errors as the ones he had 
been seeing previously, and then, also, working with Hunter today, he tried 
both Maven 3.0.5 and 3.6.2, and today, his build attempts are also failing now.

So we wanted to find out if maybe there is something bad going on with the 
Syncope Maven repos at this time?
Please advise.
Thanks,Jim
    

Reply via email to