Hi,
I guess you are attempting to obtain Apache Syncope 2.1.4 via Maven.

Before attempting to fix your Maven deployment, did you consider:

1. standalone distribution; download from

http://www.apache.org/dyn/closer.lua/syncope/2.1.4/syncope-standalone-2.1.4-distribution.zip

then follow instructions from

http://syncope.apache.org/docs/2.1/getting-started.html#standalone

2. Docker:

http://syncope.apache.org/docs/2.1/getting-started.html#docker

You can look at the docker-compose samples from

https://github.com/apache/syncope/tree/2_1_X/docker/src/main/resources/docker-compose

Just replace

${SYNCOPE_VERSION}

with 2.1.4 (latest stable).

FYI the troubles you are currently experiencing are simply due to an incorrect Maven build; after generating the project as explained in

http://syncope.apache.org/docs/2.1/getting-started.html#create-project

you can start the embedded mode as shown in

http://syncope.apache.org/docs/2.1/getting-started.html#embedded-mode

If everything goes well (and there are very few reasons why this should not happen), you can consider an actual deployment into external DBMS and Tomcat.

At the end of the paragraph above you can read:

"Before actual deployment onto a standalone Java EE container, you need to further check the Customization chapter of the Apache Syncope Reference Guide."

So, looking at the Reference Guide you'll need first to adjust your configuration to your actual DBMS:

http://syncope.apache.org/docs/reference-guide.html#dbms

Once done that, you are ready to properly build your project, as explained in

http://syncope.apache.org/docs/reference-guide.html#customization

e.g.

$ mvn clean verify \
   -Dconf.directory=/opt/syncope/conf \
   -Dbundles.directory=/opt/syncope/bundles \
   -Dlog.directory=/opt/syncope/log
$ cp core/target/classes/*properties /opt/syncope/conf
$ cp console/target/classes/*properties /opt/syncope/conf
$ cp enduser/target/classes/*properties /opt/syncope/conf
$ cp enduser/target/classes/customFormAttributes.json /opt/syncope/conf
$ cp enduser/target/classes/customTemplate.json /opt/syncope/conf

(assuming the default layout for deployment directories, read in the guide for more info).

At this point you can deploy the three WAR files generated.

Hope this helps.
Regards.

On 18/07/19 23:36, oh...@yahoo.com wrote:
Hi,

I had some time to settle down and try to dig into the problems, and looking at the Tomcat manage web app, it looks like the 3 syncope applications (syncope, syncope-console, and syncope-enduser) are all failing to start when Tomcat starts.  Also trying to start the apps from the manage web app fails.

That probably explains why I am seeing 404 error when I try to access /syncope??

So I tailed the manager.log, and I see this when i try to start the syncope app:

18-Jul-2019 21:16:51.158 INFO [http-nio-8080-exec-12] org.apache.catalina.core.ApplicationContext.log HTMLManager: list: Listing contexts for virtual host 'localhost' 18-Jul-2019 21:19:00.111 INFO [http-nio-8080-exec-15] org.apache.catalina.core.ApplicationContext.log HTMLManager: start: Starting web application '/syncope' 18-Jul-2019 21:19:00.380 SEVERE [http-nio-8080-exec-15] org.apache.catalina.core.ApplicationContext.log HTMLManager: Error starting [/syncope]         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.manager.ManagerServlet.start(ManagerServlet.java:1415)                 at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:700)                 at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:223)                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)                 at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:136)                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)                 at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)                 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:607)                 at org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:348)                 at org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:53)                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)                 at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)                 at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)                 at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)                 at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853)                 at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)                 at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)                 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)                 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)                 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
                at java.lang.Thread.run(Thread.java:748)
        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)
                ... 32 more
        Caused by: java.lang.ClassNotFoundException: org.apache.cocoon.pipeline.component.PipelineComponent                 at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1365)                 at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1188)
                ... 45 more
18-Jul-2019 21:19:00.380 INFO [http-nio-8080-exec-15] org.apache.catalina.core.ApplicationContext.log HTMLManager: list: Listing contexts for virtual host 'localhost'

I am not quite sure how to interpret the above:

- From the ClassNotFoundException(s), it seems like some cocoon JAR is missing from the classpath?  I am not sure why?  But...

- From the http-nio-8080, it seems like some kind of HTTP connection might be failing?

- Or, are the HTTP connections failing because the syncope app is failing, because the missing Class, so then nothing is listening on 8080?

So does anyone know, are we supposed to do something additional with the classpath, or maybe download some additional libraries (e.g., cocoon) NOW in this version, and those libraries were not used in the older Syncope version, which we were able to get working with not much problems before?

Thanks,
Jim





On Thursday, July 18, 2019, 6:37:04 PM UTC, oh...@yahoo.com <oh...@yahoo.com> wrote:


Hi,

Also, BTW, we've been trying to follow info that we found on this older thread:

syncope-user - Unable to install Syncope 2.0 <http://syncope-user.1051894.n5.nabble.com/Unable-to-install-Syncope-2-0-td5708813.html>


        


        


    syncope-user - Unable to install Syncope 2.0

Unable to install Syncope 2.0. Dear Experts, we tried to install Syncope 2.0 on a Unix environment with these fe...

<http://syncope-user.1051894.n5.nabble.com/Unable-to-install-Syncope-2-0-td5708813.html>


And, FYI, going to http://hostname:8080/syncope, we get a Tomcat-style 404 error.


Jim


On Thursday, July 18, 2019, 5:42:24 PM UTC, oh...@yahoo.com <oh...@yahoo.com> wrote:


Hi,

FYI, I am a colleague of Noah and have been "trying" to help get this new Syncope installation working, so I'd like to add some notes to the error/stack trace that he posted:

- FYI, the Tomcat instance itself seems to work, e.g., I can go to http://hostname:8080/ <http://<hostname>:8080/> and get a web page, and also the manage app web page (http://hostname:8080/manager/html <http://192.168.155.20:8080/manager/html> works and I can log into that.

- That error/stacktrace that he posted is from trying to access http://hostname:8080/syncope-console/.

- Can someone let us know how we might be able to enable some debug logging to try to determine what is wrong?  FYI, we have checked logging under /apps/apache-tomcat/logs, and under /apps/syncope/logs and /apps/syncope-archetype/logs.  The latter dir has nothing in it.  The /apps/syncope/logs has only enduser.log vs. on the older Syncope instance that works, there is a enduser.log and a console.log.

Thanks!

Jim




On Thursday, July 18, 2019, 5:07:50 PM UTC, Noah <noah.hansen1...@gmail.com> wrote:


Hi All,

I’m attempting to install Syncope 2.1.4 and I’m running into the error posted below.

I’m using:

Maven 3.6.1

Tomcat 9.0.21

MySQL 8.0.16

MySQL Java Connector 8.0.16

Here is the error:

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)
        org.apache.syncope.client.console.SyncopeConsoleSession.get(SyncopeConsoleSession.java:91)         org.apache.syncope.client.console.SyncopeConsoleRequestCycleListener.onException(SyncopeConsoleRequestCycleListener.java:80)         org.apache.wicket.request.cycle.RequestCycleListenerCollection$4.notify(RequestCycleListenerCollection.java:126)         org.apache.wicket.request.cycle.RequestCycleListenerCollection$4.notify(RequestCycleListenerCollection.java:122)         org.apache.wicket.util.listener.ListenerCollection.notify(ListenerCollection.java:80)         org.apache.wicket.request.cycle.RequestCycleListenerCollection.onException(RequestCycleListenerCollection.java:121)         org.apache.wicket.request.cycle.RequestCycleListenerCollection$4.notify(RequestCycleListenerCollection.java:126)         org.apache.wicket.request.cycle.RequestCycleListenerCollection$4.notify(RequestCycleListenerCollection.java:122)         org.apache.wicket.util.listener.ListenerCollection.notify(ListenerCollection.java:80)         org.apache.wicket.request.cycle.RequestCycleListenerCollection.onException(RequestCycleListenerCollection.java:121)         org.apache.wicket.request.cycle.RequestCycle.handleException(RequestCycle.java:368)         org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:314)         org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:259)         org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:221)         org.apache.wicket.protocol.ws.AbstractUpgradeFilter.processRequestCycle(AbstractUpgradeFilter.java:70)         org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:206)         org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:299)

*Root Cause*

java.lang.reflect.InvocationTargetException
        sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)         sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)         sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        org.apache.wicket.authroles.authentication.AuthenticatedWebApplication.newSession(AuthenticatedWebApplication.java:117)         org.apache.wicket.Application.fetchCreateAndSetSession(Application.java:1555)
        org.apache.wicket.Session.get(Session.java:176)
        org.apache.syncope.client.console.SyncopeConsoleSession.get(SyncopeConsoleSession.java:91)         org.apache.syncope.client.console.SyncopeConsoleRequestCycleListener.onException(SyncopeConsoleRequestCycleListener.java:80)         org.apache.wicket.request.cycle.RequestCycleListenerCollection$4.notify(RequestCycleListenerCollection.java:126)         org.apache.wicket.request.cycle.RequestCycleListenerCollection$4.notify(RequestCycleListenerCollection.java:122)         org.apache.wicket.util.listener.ListenerCollection.notify(ListenerCollection.java:80)         org.apache.wicket.request.cycle.RequestCycleListenerCollection.onException(RequestCycleListenerCollection.java:121)         org.apache.wicket.request.cycle.RequestCycleListenerCollection$4.notify(RequestCycleListenerCollection.java:126)         org.apache.wicket.request.cycle.RequestCycleListenerCollection$4.notify(RequestCycleListenerCollection.java:122)         org.apache.wicket.util.listener.ListenerCollection.notify(ListenerCollection.java:80)         org.apache.wicket.request.cycle.RequestCycleListenerCollection.onException(RequestCycleListenerCollection.java:121)         org.apache.wicket.request.cycle.RequestCycle.handleException(RequestCycle.java:368)         org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:314)         org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:259)         org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:221)         org.apache.wicket.protocol.ws.AbstractUpgradeFilter.processRequestCycle(AbstractUpgradeFilter.java:70)         org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:206)         org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:299)

*Root Cause*

javax.xml.ws.WebServiceException: Remote exception with status code: NOT_FOUND         org.apache.syncope.client.lib.RestClientExceptionMapper.fromResponse(RestClientExceptionMapper.java:76)         org.apache.syncope.client.lib.RestClientExceptionMapper.fromResponse(RestClientExceptionMapper.java:42)         org.apache.cxf.jaxrs.client.ClientProxyImpl.checkResponse(ClientProxyImpl.java:372)         org.apache.cxf.jaxrs.client.ClientProxyImpl.handleResponse(ClientProxyImpl.java:948)         org.apache.cxf.jaxrs.client.ClientProxyImpl.doChainedInvocation(ClientProxyImpl.java:854)         org.apache.cxf.jaxrs.client.ClientProxyImpl.invoke(ClientProxyImpl.java:295)
        com.sun.proxy.$Proxy54.platform(Unknown Source)
        org.apache.syncope.client.console.SyncopeConsoleSession.<init>(SyncopeConsoleSession.java:103)         sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)         sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)         sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        org.apache.wicket.authroles.authentication.AuthenticatedWebApplication.newSession(AuthenticatedWebApplication.java:117)         org.apache.wicket.Application.fetchCreateAndSetSession(Application.java:1555)
        org.apache.wicket.Session.get(Session.java:176)
        org.apache.syncope.client.console.SyncopeConsoleSession.get(SyncopeConsoleSession.java:91)         org.apache.syncope.client.console.SyncopeConsoleRequestCycleListener.onException(SyncopeConsoleRequestCycleListener.java:80)         org.apache.wicket.request.cycle.RequestCycleListenerCollection$4.notify(RequestCycleListenerCollection.java:126)         org.apache.wicket.request.cycle.RequestCycleListenerCollection$4.notify(RequestCycleListenerCollection.java:122)         org.apache.wicket.util.listener.ListenerCollection.notify(ListenerCollection.java:80)         org.apache.wicket.request.cycle.RequestCycleListenerCollection.onException(RequestCycleListenerCollection.java:121)         org.apache.wicket.request.cycle.RequestCycleListenerCollection$4.notify(RequestCycleListenerCollection.java:126)         org.apache.wicket.request.cycle.RequestCycleListenerCollection$4.notify(RequestCycleListenerCollection.java:122)         org.apache.wicket.util.listener.ListenerCollection.notify(ListenerCollection.java:80)         org.apache.wicket.request.cycle.RequestCycleListenerCollection.onException(RequestCycleListenerCollection.java:121)         org.apache.wicket.request.cycle.RequestCycle.handleException(RequestCycle.java:368)         org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:314)         org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:259)         org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:221)         org.apache.wicket.protocol.ws.AbstractUpgradeFilter.processRequestCycle(AbstractUpgradeFilter.java:70)         org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:206)         org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:299)

thanks so much for your help,

Noah Hansen

Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10


--
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