Hi,
I think the problem is this:
Root Causejavax.xml.ws.WebServiceException: Remote exception with status code:
NOT_FOUND
Specifically, from the Tomcat access logs, it looks like the app is failing
because it cannot access the "/syncope/rest/platform" URI:
192.168.0.164 - - [01/Apr/2019:19:35:40 +0000] "GET /syncope/rest/platform
HTTP/1.1" 404 1103
I am not sure why at this point, but I was wondering: When I build the
project, I noticed that it is building 3 WARs (syncope.war,
syncope-console.war, and syncope-enduser.war) AND a JAR (syncope-common...jar).
Am I supposed to deploy that JAR file into Tomcat?
Thanks,Jim
On Monday, April 1, 2019, 2:49:53 PM EDT, o haya <[email protected]> wrote:
Ok, I've rebuilt the project using mvn, this time using 2.1.3, and I
re-created the database in Mysql.
However, now, when I try to access the console, it is blowing up with:
[root@ip-192-168-0-164 logs]# cat console.log
18:39:01.840 ERROR
org.apache.syncope.client.console.init.ClassPathScanImplementationLookup -
Could not find annotation
org.apache.syncope.client.console.annotations.Resource in
org.apache.syncope.client.console.wicket.markup.html.form.preview.BinaryPDFPreviewer$ThumbnailImageResource,
ignoring
18:39:50.824 ERROR org.apache.cxf.jaxrs.utils.JAXRSUtils - No message body
reader has been found for class org.apache.syncope.common.lib.to.ErrorTO,
ContentType: text/html;charset=utf-8
18:39:50.824 ERROR org.apache.cxf.jaxrs.utils.JAXRSUtils - No message body
reader has been found for class java.util.List, ContentType:
text/html;charset=utf-8
18:39:50.825 ERROR
org.apache.syncope.client.console.SyncopeConsoleRequestCycleListener -
Exception found
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)
~[wicket-auth-roles-8.2.0.jar:8.2.0]
at
org.apache.wicket.Application.fetchCreateAndSetSession(Application.java:1546)
~[wicket-core-8.2.0.jar:8.2.0]
at org.apache.wicket.Session.get(Session.java:175)
~[wicket-core-8.2.0.jar:8.2.0]
at
org.apache.wicket.authroles.authentication.AuthenticatedWebSession.get(AuthenticatedWebSession.java:39)
~[wicket-auth-roles-8.2.0.jar:8.2.0]
at
org.apache.syncope.client.console.SyncopeConsoleApplication.getHomePage(SyncopeConsoleApplication.java:255)
~[syncope-client-console-2.1.3.jar:2.1.3]
at
org.apache.wicket.DefaultMapperContext.getHomePageClass(DefaultMapperContext.java:113)
~[wicket-core-8.2.0.jar:8.2.0]
at
org.apache.wicket.core.request.mapper.MountedMapper.checkHomePage(MountedMapper.java:221)
~[wicket-core-8.2.0.jar:8.2.0]
at
org.apache.wicket.core.request.mapper.MountedMapper.parseRequest(MountedMapper.java:132)
~[wicket-core-8.2.0.jar:8.2.0]
at
org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.mapRequest(AbstractBookmarkableMapper.java:322)
~[wicket-core-8.2.0.jar:8.2.0]
at
org.apache.wicket.request.mapper.CompoundRequestMapper.mapRequest(CompoundRequestMapper.java:147)
~[wicket-request-8.2.0.jar:8.2.0]
at
org.apache.wicket.request.cycle.RequestCycle.resolveRequestHandler(RequestCycle.java:193)
~[wicket-core-8.2.0.jar:8.2.0]
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:243)
~[wicket-core-8.2.0.jar:8.2.0]
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:221)
~[wicket-core-8.2.0.jar:8.2.0]
at
org.apache.wicket.protocol.ws.AbstractUpgradeFilter.processRequestCycle(AbstractUpgradeFilter.java:70)
~[wicket-native-websocket-core-8.2.0.jar:8.2.0]
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:206)
~[wicket-core-8.2.0.jar:8.2.0]
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:299)
~[wicket-core-8.2.0.jar:8.2.0]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
~[catalina.jar:9.0.17]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
~[catalina.jar:9.0.17]
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200)
~[catalina.jar:9.0.17]
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
~[catalina.jar:9.0.17]
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
~[catalina.jar:9.0.17]
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
~[catalina.jar:9.0.17]
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
~[catalina.jar:9.0.17]
at
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)
~[catalina.jar:9.0.17]
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
~[catalina.jar:9.0.17]
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
~[catalina.jar:9.0.17]
at
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
~[tomcat-coyote.jar:9.0.17]
at
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
~[tomcat-coyote.jar:9.0.17]
at
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:834)
~[tomcat-coyote.jar:9.0.17]
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415)
~[tomcat-coyote.jar:9.0.17]
at
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
~[tomcat-coyote.jar:9.0.17]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
~[?:1.8.0_201]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
~[?:1.8.0_201]
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
~[tomcat-util.jar:9.0.17]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201]
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method) ~[?:1.8.0_201]
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
~[?:1.8.0_201]
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
~[?:1.8.0_201]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
~[?:1.8.0_201]
at
org.apache.wicket.authroles.authentication.AuthenticatedWebApplication.newSession(AuthenticatedWebApplication.java:117)
~[wicket-auth-roles-8.2.0.jar:8.2.0]
... 34 more
Caused by: javax.xml.ws.WebServiceException: Remote exception with status code:
NOT_FOUND
at
org.apache.syncope.client.lib.RestClientExceptionMapper.fromResponse(RestClientExceptionMapper.java:76)
~[syncope-client-lib-2.1.3.jar:2.1.3]
at
org.apache.syncope.client.lib.RestClientExceptionMapper.fromResponse(RestClientExceptionMapper.java:42)
~[syncope-client-lib-2.1.3.jar:2.1.3]
at
org.apache.cxf.jaxrs.client.ClientProxyImpl.checkResponse(ClientProxyImpl.java:315)
~[cxf-rt-rs-client-3.2.7.jar:3.2.7]
at
org.apache.cxf.jaxrs.client.ClientProxyImpl.handleResponse(ClientProxyImpl.java:891)
~[cxf-rt-rs-client-3.2.7.jar:3.2.7]
at
org.apache.cxf.jaxrs.client.ClientProxyImpl.doChainedInvocation(ClientProxyImpl.java:797)
~[cxf-rt-rs-client-3.2.7.jar:3.2.7]
at
org.apache.cxf.jaxrs.client.ClientProxyImpl.invoke(ClientProxyImpl.java:238)
~[cxf-rt-rs-client-3.2.7.jar:3.2.7]
at com.sun.proxy.$Proxy119.platform(Unknown Source) ~[?:?]
at
org.apache.syncope.client.console.SyncopeConsoleSession.<init>(SyncopeConsoleSession.java:103)
~[syncope-client-console-2.1.3.jar:2.1.3]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method) ~[?:1.8.0_201]
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
~[?:1.8.0_201]
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
~[?:1.8.0_201]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
~[?:1.8.0_201]
at
org.apache.wicket.authroles.authentication.AuthenticatedWebApplication.newSession(AuthenticatedWebApplication.java:117)
~[wicket-auth-roles-8.2.0.jar:8.2.0]
... 34 more
18:39:50.866 ERROR org.apache.cxf.jaxrs.utils.JAXRSUtils - No message body
reader has been found for class org.apache.syncope.common.lib.to.ErrorTO,
ContentType: text/html;charset=utf-8
18:39:50.867 ERROR org.apache.cxf.jaxrs.utils.JAXRSUtils - No message body
reader has been found for class java.util.List, ContentType:
text/html;charset=utf-8
On Monday, April 1, 2019, 1:39:56 PM EDT, o haya <[email protected]> wrote:
BTW, this
https://cwiki.apache.org/confluence/display/SYNCOPE/Create+a+new+Syncope+project,
says:
Version warning
The content below is for Apache Syncope <= 1.2 - for later versions the Getting
Started guide is available.
which, then points to this:
http://syncope.apache.org/docs/getting-started.html#maven-project
which is what I am now following (since version 2.1.3 is > 1.2).
and that is what I am following now to build the project...
On Monday, April 1, 2019, 1:34:11 PM EDT, o haya <[email protected]> wrote:
Hi,
I am trying to follow the documentation at Run Syncope in real environments -
Apache Syncope - Apache Software Foundation, in particular the Other setup
tasks" part and the "Connect console to core".
|
|
| |
Run Syncope in real environments - Apache Syncope - Apache Software Foun...
|
|
|
The "Connect console to core" says to "Modify
console/src/main/resources/console.properties so that provided properties
reflects the scheme, hostname and port number where your JEE container is
running and the URL context where Syncope core will be deployed.".
Should that "console.properties" be modified BEFORE running the mvn to create
the package or before deploying the built WAR files?
Where is that "console.properties" that is being referred to? Is it under the
archetype directory? Or under the Tomcat webapps directory after the WARs are
deployed?
FYI, right now, I re-ran the mvn using 2.1.3 and then the mvn to build the
package and then deployed 3 WAR files (syncope, syncope-enduser, and
syncope-console.war) to the Tomcat, and when I attempt to access the /console,
I am getting:
Root Cause
java.net.ConnectException: ConnectException invoking
http://localhost:9080/syncope/rest/platform: Connection refused (Connection
refused)
Sorry, I think that, at this point, I am really confused :(!!
Jim
On Monday, April 1, 2019, 1:07:50 PM EDT, Filipe Silva <[email protected]>
wrote:
Hi
It's best to. You can check the documentation for the migration process (1.* to
2.*) but unless you have already plenty of data I advice you against it.
Regards
Filipe
On 01/04/19 17:38, o haya wrote:
Hi,
If I rebuild the WARs and deploy those instead of the 1.1.3 ones I have, will
I have to delete the database (in Mysql) and re-create the database?
Thanks, Jim