It seems an import problem of "tomcat-jdbc" bundle. Created 
https://issues.apache.org/bugzilla/show_bug.cgi?id=54684




>________________________________
> From: "[email protected]" <[email protected]>
>To: [email protected]; [email protected] 
>Sent: Wednesday, March 13, 2013 7:15 AM
>Subject: RE: java.lang.NoClassDefFoundError: javax/naming/spi/ObjectFactory
> 
>
> 
>You may don’t have the rt.jar or jdni.jar  in your classpath? Or maybe you 
>have it duplicated somewhere ?
>Thomas.
> 
> 
>From:Martin Lichtin [mailto:[email protected]] 
>Sent: 12 March 2013 14:31
>To: [email protected]
>Subject: java.lang.NoClassDefFoundError: javax/naming/spi/ObjectFactory
> 
>Hi, does anyone understand what happens here?
>
>The exception occurs after enabling 
>log4j.logger.org.apache.aries.blueprint.container.ServiceRecipe = DEBUG
>2013-03-12 14:17:13,565 | DEBUG | Blueprint Extender: 1    | ServiceRecipe     
>               | lueprint.container.ServiceRecipe  247 | 7 - 
>org.apache.aries.blueprint.core - 1.1.0 | Retrieving service for bundle null 
>and service registration null
>SLF4J: Failed toString() invocation on an object of type 
>[org.apache.tomcat.jdbc.pool.DataSource]
>2013-03-12 14:17:13,612 | DEBUG | Blueprint Extender: 1    | ServiceRecipe     
>               | lueprint.container.ServiceRecipe  276 | 7 - 
>org.apache.aries.blueprint.core - 1.1.0 | Creating service instance
>java.lang.NoClassDefFoundError: javax/naming/spi/ObjectFactory
>    at java.lang.ClassLoader.defineClass1(Native Method)
>    at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
>    at 
>org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2128)
>    at 
>org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1432)
>    at 
>org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72)
>    at 
>org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843)
>    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
>    at 
>org.apache.tomcat.jdbc.pool.PoolProperties.toString(PoolProperties.java:804)
>    at java.lang.String.valueOf(String.java:2854)
>    at java.lang.StringBuilder.append(StringBuilder.java:128)
>    at 
>org.apache.tomcat.jdbc.pool.DataSourceProxy.toString(DataSourceProxy.java:215)
>    at 
>org.slf4j.helpers.MessageFormatter.safeObjectAppend(MessageFormatter.java:304)
>    at 
>org.slf4j.helpers.MessageFormatter.deeplyAppendParameter(MessageFormatter.java:276)
>    at 
>org.slf4j.helpers.MessageFormatter.arrayFormat(MessageFormatter.java:230)
>    at org.slf4j.helpers.MessageFormatter.format(MessageFormatter.java:124)
>    at org.ops4j.pax.logging.slf4j.Slf4jLogger.debug(Slf4jLogger.java:280)
>    at 
>org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:302)
>    at 
>org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:249)
>    at 
>org.apache.aries.blueprint.container.ServiceRecipe.internalCreate(ServiceRecipe.java:146)
>    at 
>org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)
>    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>    at 
>org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)
>    at 
>org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:245)
>    at 
>org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183)
>    at 
>org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:668)
>    at 
>org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:370)
>    at 
>org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:261)
>    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>    at 
>org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106)
>    at 
>org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)
>    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>    at 
>java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
>    at 
>java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
>    at 
>java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>    at 
>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>    at java.lang.Thread.run(Thread.java:722)
>Caused by: java.lang.ClassNotFoundException: javax.naming.spi.ObjectFactory 
>not found by org.apache.tomcat.jdbc [165]
>    at 
>org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460)
>    at 
>org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72)
>    at 
>org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843)
>    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
>    ... 41 more
> 
> 
> 
> 
> 
> 
>>________________________________
> 
>Confidentiality: The contents of this e-mail and any attachments transmitted 
>with it are intended to be confidential to the intended recipient; and may be 
>privileged or otherwise protected from disclosure. If you are not an intended 
>recipient of this e-mail,
 do not duplicate or redistribute it by any means. Please delete it and any 
attachments and notify the sender that you have received it in error. This 
e-mail is sent by a William Hill PLC group company. The William Hill group 
companies include, among others,
 William Hill PLC (registered number 4212563), William Hill Organization 
Limited (registered number 278208), William Hill US HoldCo Inc, WHG 
(International) Limited (registered number 99191) and WHG Trading Limited 
(registered number 101439). Each of William
 Hill PLC, William Hill Organization Limited is registered in England and Wales 
and has its registered office at Greenside House, 50 Station Road, Wood Green, 
London N22 7TP. William Hill U.S. HoldCo, Inc. is 160 Greentree Drive, Suite 
101, Dover 19904, Kent,
 Delaware, United States of America. Each of WHG (International) Limited and 
WHG Trading Limited is registered in Gibraltar and has its registered office at 
6/1 Waterport Place, Gibraltar. Unless specifically indicated otherwise, the 
contents of this e-mail
 are subject to contract; and are not an official statement, and do not 
necessarily represent the views, of William Hill PLC, its subsidiaries or 
affiliated companies. Please note that neither William Hill PLC, nor its 
subsidiaries and affiliated companies
 can accept any responsibility for any viruses contained within this e-mail and 
it is your responsibility to scan any emails and their attachments. William 
Hill PLC, its subsidiaries and affiliated companies may monitor e-mail traffic 
data and also the content
 of e-mails for effective operation of the e-mail system, or for security, 
purposes..
> 
>
>

Reply via email to