[
https://issues.apache.org/jira/browse/SYNCOPE-337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13606258#comment-13606258
]
Alexander Osadchiy commented on SYNCOPE-337:
--------------------------------------------
One thing to mention, I got rid of ClassNotFoundException, but still have some
other exceptions in logs while using these updated files, e.g. for the
syncope-console:
277 | ERROR | Executor: 1 | nder.war.internal.WebXmlObserver 171 | 217 -
org.ops4j.pax.web.pax-web-extender-war - 1.1.12 | Could not parse web.xml
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'roleTreeBuilder': Injection of autowired dependencies failed; nested
exception is org.springframework.beans.factory.BeanCreationException: Could not
autowire field: private org.apache.syncope.console.rest.RoleRestClient
org.apache.syncope.console.commons.RoleTreeBuilder.restClient; nested exception
is org.springframework.beans.factory.NoSuchBeanDefinitionException: No
qualifying bean of type [org.apache.syncope.console.rest.RoleRestClient] found
for dependency: expected at least 1 bean which qualifies as autowire candidate
for this dependency. Dependency annotations:
{@org.springframework.beans.factory.annotation.Autowired(required=true)}
and this one for syncope-core:
257 | WARN | Executor: 1 | util.component.AbstractLifeCycle 204 | 58 -
org.eclipse.jetty.util - 7.6.8.v20121106 | FAILED
HttpServiceContext{httpContext=org.ops4j.pax.web.extender.war.internal.WebAppWebContainerContext@511976}:
java.lang.IllegalStateException: No LoginService for
org.eclipse.jetty.security.authentication.ClientCertAuthenticator@1bfb99 in
org.eclipse.jetty.security.ConstraintSecurityHandler@1231382
java.lang.IllegalStateException: No LoginService for
org.eclipse.jetty.security.authentication.ClientCertAuthenticator@1bfb99 in
org.eclipse.jetty.security.ConstraintSecurityHandler@1231382
> ClassNotFoundException in karaf osgi container
> ----------------------------------------------
>
> Key: SYNCOPE-337
> URL: https://issues.apache.org/jira/browse/SYNCOPE-337
> Project: Syncope
> Issue Type: Bug
> Components: console, core
> Affects Versions: 1.1.0
> Environment: apache karaf 2.3.1
> Reporter: Roman Minko
> Attachments: MANIFEST(console).MF, MANIFEST(core).MF
>
>
> Install war feature and try to install syncope core and console wars.
> Different dependencies issues and finally ClassNotFoundException in logs
> appeared.
> Syncope already include all the dependent jars in the lib/ folder of the war.
> But the MANIFEST files in the syncope-core and syncope-console are not
> correct enough, Bundle-ClassPath: , Web-ContextPath: should be added into
> MANIFEST.
> After manually adding Bundle-ClassPath: and update Import-Package: nothing
> dependencies bundles needed and no ClassNotFoundException.
> Pom files of core and console project should be updated to generate correct
> Bundle-ClassPath and Import-Package in MANIFEST. Or make changes on the
> MANIFEST directly during the build at least.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira