karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Karaf 2.3.2: ClassNotFoundException for javax.* packages
Date Fri, 09 Aug 2013 15:27:17 GMT
It could be related to the Spring update. Let me try to reproduce the 
issue with a bundle test case.

Regards
JB

On 08/09/2013 05:01 PM, vetalok wrote:
> Removed all the jars from endorsed folder but the problem still exist:
>
> karaf@root> Exception in thread "SpringOsgiExtenderThread-6"
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'h
> azelcast' defined in URL
> [bundleentry://160.fwk1329414206/META-INF/spring/HazelcastInstance.xml]:
> Instantiation of bean failed; nested exception is or
> g.springframework.beans.factory.BeanDefinitionStoreException: Factory method
> [public static com.hazelcast.core.HazelcastInstance com.hazelcast.core.Ha
> zelcast.newHazelcastInstance(com.hazelcast.config.Config)] threw exception;
> nested exception is java.lang.NoClassDefFoundError: javax/security/auth/lo
> gin/LoginException
>          at
> org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:581)
>          at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFacto
> ry.java:1025)
>          at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:921
> )
>          at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
>          at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
>          at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
>          at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
>          at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
>          at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
>          at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626)
>          at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
>          at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationCont
> ext.java:69)
>          at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.ja
> va:355)
>          at
> org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
>          at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplication
> Context.java:320)
>          at
> org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(Dependen
> cyWaiterApplicationContextExecutor.java:132)
>          at java.lang.Thread.run(Thread.java:722)
> Caused by: org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static com.hazelcast.core.HazelcastInstance com.haze
> lcast.core.Hazelcast.newHazelcastInstance(com.hazelcast.config.Config)]
> threw exception; nested exception is java.lang.NoClassDefFoundError:
> javax/sec
> urity/auth/login/LoginException
>          at
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:181)
>          at
> org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:570)
>          ... 16 more
> Caused by: java.lang.NoClassDefFoundError:
> javax/security/auth/login/LoginException
>          at com.hazelcast.impl.Node.<init>(Node.java:171)
>          at com.hazelcast.impl.FactoryImpl.<init>(FactoryImpl.java:374)
>          at
> com.hazelcast.impl.FactoryImpl.newHazelcastInstanceProxy(FactoryImpl.java:121)
>          at
> com.hazelcast.impl.FactoryImpl.newHazelcastInstanceProxy(FactoryImpl.java:107)
>          at
> com.hazelcast.core.Hazelcast.newHazelcastInstance(Hazelcast.java:507)
>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>          at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>          at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>          at java.lang.reflect.Method.invoke(Method.java:601)
>          at
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:160)
>          ... 17 more
> Caused by: java.lang.ClassNotFoundException:
> javax.security.auth.login.LoginException
>          at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Karaf-2-3-2-ClassNotFoundException-for-javax-packages-tp4029428p4029430.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Mime
View raw message