Hi,
for the sake of clarity, the github repository [1] you mention below is a third party project maintained by my company and hence not directly under control of the Apache Syncope project.

Anyway, as stated in the README.md, it is a kind of utility reference for running Apache Syncope in JBoss / Wildfly, built by applying the advices provided by the official documentation. For this reason, it is not meant for being deployed in Tomcat or other Java EE containers: if you need that, please follow the official documentation [2].

Coming to your error, the problem I read from the stacktrace below is that the admin console is not able to connect to the core (quick ref to Syncope architecture [3]), essentially because the port is wrong: 9080 while I suppose Wildfly is listening to 8080, as per default.

Please note that this means anyway that the core was successfully deployed, as you can check by pointing your browser to

http://host:8080/syncope/

which should display something similar to [4], e.g. the REST reference.

The fix is easy, anyway: just copy the actual configuration files onto /opt/syncope/conf, the directory which was configured during the build:

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

I have also updated the README.md there accordingly.

HTH
Regards.

[1] https://github.com/Tirasa/syncopeOnJBoss/
[2] http://syncope.apache.org/docs/getting-started.html#maven-project
[3] http://syncope.apache.org/docs/getting-started.html#a-bird-s-eye-view-on-the-architecture
[4] http://syncope.apache.org/rest/2.0/index.html

On 23/11/2016 20:18, Tech wrote:
Dear Experts,

we tried to install Syncope 2.0 on a Unix environment with these features:
- CentOS7
- Java1.8.0.111
- Mvn 3.10
+
- Tomcat 8.0.39
- Wildfly 10.1

We tried to follow this procedure https://github.com/Tirasa/syncopeOnJBoss/blob/master/README.md

and we tried to deploy the war both in Tomcat and WildFly without success.

We got this error when we start the application and we are not able to find a solution: could you please support?



19:35:20,844 ERROR [io.undertow.request] (default task-2) UT005023: Exception handling request to /syncope-console/: org.apache.wicket.WicketRuntimeException: Unable to instantiate web session class org.apache.syncope.client.console.SyncopeConsoleSession at org.apache.wicket.authroles.authentication.AuthenticatedWebApplication.newSession(AuthenticatedWebApplication.java:121) at org.apache.wicket.Application.fetchCreateAndSetSession(Application.java:1714)
    at org.apache.wicket.Session.get(Session.java:169)
at org.apache.syncope.client.console.SyncopeConsoleSession.get(SyncopeConsoleSession.java:103) at org.apache.syncope.client.console.SyncopeConsoleRequestCycleListener.onException(SyncopeConsoleRequestCycleListener.java:61)
       [..]

Caused by: javax.ws.rs.ProcessingException: java.net.ConnectException: ConnectException invoking http://localhost:9080/syncope/rest/platform: Connection refused (Connection refused) at org.apache.cxf.jaxrs.client.AbstractClient.checkClientException(AbstractClient.java:596) at org.apache.cxf.jaxrs.client.AbstractClient.preProcessResult(AbstractClient.java:578) at org.apache.cxf.jaxrs.client.ClientProxyImpl.doChainedInvocation(ClientProxyImpl.java:748) at org.apache.cxf.jaxrs.client.ClientProxyImpl.invoke(ClientProxyImpl.java:231)
    at com.sun.proxy.$Proxy247.platform(Unknown Source)
at org.apache.syncope.client.console.SyncopeConsoleSession.<init>(SyncopeConsoleSession.java:113)
    ... 62 more
       [..]

Caused by: java.net.ConnectException: ConnectException invoking http://localhost:9080/syncope/rest/platform: Connection refused (Connection refused) at sun.reflect.GeneratedConstructorAccessor102.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1377) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1361)
       [..]

Caused by: java.net.ConnectException: Connection refused (Connection refused)
    at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)



Thanks!



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