Look the the exception. Its 2 different Constraint classes. Make sure to use 100% the same Jetty versions for all the jetty JARs. Its likely a mixed version. Also make sure your code uses the same Constraint class.
On Tue, Sep 3, 2013 at 6:10 PM, contactreji <contactr...@gmail.com> wrote: > Hi Clause > Thank you so much for that. I think it worked for me. The package becomes > active now on Fuse. But I get another problem. In the fuse log i get > following error > > * > org.springframework.beans.factory.BeanCreationException: Error creating bean > with name 'constraintMapping' defined in URL > [bundle://493.12:0/META-INF/spring/jetty-spring.xml]: Initialization of bean > failed; nested exception is > org.springframework.beans.ConversionNotSupportedException: Failed to convert > property value of type 'org.eclipse.jetty.http.security.Constraint' to > required type 'org.eclipse.jetty.util.security.Constraint' for property > 'constraint'; nested exception is java.lang.IllegalStateException: Cannot > convert value of type [org.eclipse.jetty.http.security.Constraint] to > required type [org.eclipse.jetty.util.security.Constraint] for property > 'constraint': no matching editors or conversion strategy found > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:526)[105:org.springframework.beans:3.0.7.RELEASE] > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)[105:org.springframework.beans:3.0.7.RELEASE] > at > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)[105:org.springframework.beans:3.0.7.RELEASE] > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[105:org.springframework.beans:3.0.7.RELEASE] > at > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)[105:org.springframework.beans:3.0.7.RELEASE] > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)[105:org.springframework.beans:3.0.7.RELEASE] > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)[105:org.springframework.beans:3.0.7.RELEASE] > at > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[104:org.springframework.context:3.0.7.RELEASE] > at > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[114:org.springframework.osgi.core:1.2.1] > at > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[114:org.springframework.osgi.core:1.2.1] > at > org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[114:org.springframework.osgi.core:1.2.1] > at > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[114:org.springframework.osgi.core:1.2.1] > at > org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[113:org.springframework.osgi.extender:1.2.1] > at java.lang.Thread.run(Unknown Source)[:1.6.0_45] > Caused by: org.springframework.beans.ConversionNotSupportedException: Failed > to convert property value of type > 'org.eclipse.jetty.http.security.Constraint' to required type > 'org.eclipse.jetty.util.security.Constraint' for property 'constraint'; > nested exception is java.lang.IllegalStateException: Cannot convert value of > type [org.eclipse.jetty.http.security.Constraint] to required type > [org.eclipse.jetty.util.security.Constraint] for property 'constraint': no > matching editors or conversion strategy found > at > org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:481)[105:org.springframework.beans:3.0.7.RELEASE] > at > org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:518)[105:org.springframework.beans:3.0.7.RELEASE] > at > org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:512)[105:org.springframework.beans:3.0.7.RELEASE] > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1373)[105:org.springframe > * > > > > > Can you suggest what could have went wrong. > I am trying to implement basic JAAS Auth by following the documentation at > http://fusesource.com/docs/esb/4.4.1/esb_security/CamelJetty-BasicAuth.html > > I am using it to secure a cxf endpoint. > Would be really helpful if you could suggest a solution to my problem. > Am using it using jetty configuration. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/org-eclipse-jetty-http-security-nDependency-not-resolved-tp5738570p5738605.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen