Forum Home » Fuse Distributions » Fuse Services Framework

Thread: Data base connectivity is not working in FUSE

 
This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Jul 16, 2011 9:49 AM Last Post By: njiang
sankar1v

Posts: 2
Registered: 07/12/11
Data base connectivity is not working in FUSE
Posted: Jul 13, 2011 8:12 AM
 
  Click to reply to this thread Reply
I am having simple FUSE application without data base connectivity. Later I have added data base connectivity. From that point onwards, i am not able to start the bundle(able to install the bundle successfully).

When I tried to start, initially it is showing as Waiting later it failed with below error.

ERROR | Timer-0 | WaiterApplicationContextExecutor | WaiterApplicationContextExecutor 424 | 59 - org.springframework.osgi.extender - 1.2.1 | Unable to create application context for TestApp, unsatisfied dependencies: Dependency on http://(&(org.springframework.osgi.bean.name=dataSourceOLTP)(objectClass=javax.sql.DataSource)) (from bean &dataSourceOLTP)
org.springframework.context.ApplicationContextException: Application context initialization for 'TestApp' has timed out
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:454)59:org.springframework.osgi.extender:1.2.1
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:50)59:org.springframework.osgi.extender:1.2.1
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:105)59:org.springframework.osgi.extender:1.2.1
at java.util.TimerThread.mainLoop(Timer.java:512):1.6.0_21
at java.util.TimerThread.run(Timer.java:462):1.6.0_21
10:58:51,464 | ERROR | Timer-0 | ContextLoaderListener | BundleApplicationContextListener 50 | 59 - org.springframework.osgi.extender - 1.2.1 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=TestApp, config=osgibundle:/META-INF/spring/*.xml))
org.springframework.context.ApplicationContextException: Application context initialization for 'TestApp' has timed out
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:454)59:org.springframework.osgi.extender:1.2.1
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:50)59:org.springframework.osgi.extender:1.2.1
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:105)59:org.springframework.osgi.extender:1.2.1
at java.util.TimerThread.mainLoop(Timer.java:512):1.6.0_21
at java.util.TimerThread.run(Timer.java:462):1.6.0_21

Can you please tell me the Artifacts need to add as dependencies in order to implement Database connectivity
njiang

Posts: 572
Registered: 09/17/07
Re: Data base connectivity is not working in FUSE
Posted: Jul 16, 2011 9:49 AM   in response to: sankar1v in response to: sankar1v
 
  Click to reply to this thread Reply
I think you should ask the question in the FUSE ESB instead of FUSE Service Framework.
There JPA example in the FUSE ESB kit that you may want to have a look :)