Results 1 to 2 of 2

Thread: The petclinic deployment error

  1. #1
    Join Date
    Nov 2009
    Posts
    4

    Default The petclinic deployment error

    Hi, all
    Could you help me? What is the reason?

    [2009-11-13 17:45:11.668] Thread-5 <WE0000I> Starting web bundle 'org.springframework.petclinic.hibernate-1-org.springframework.petclinic.web' context path '/petclinic'.
    [2009-11-13 17:45:17.465] service-monitor-thread-1 <KE0010W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.hibernate-1-org.springframework.petclinic.repository.hibernate ' version '1.0.0' is waiting for service with filter '(objectClass=javax.sql.DataSource)'.
    [2009-11-13 17:45:32.465] service-monitor-thread-1 <KE0010W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.hibernate-1-org.springframework.petclinic.repository.hibernate ' version '1.0.0' is waiting for service with filter '(objectClass=javax.sql.DataSource)'.
    [2009-11-13 17:46:17.465] service-monitor-thread-1 <KE0010W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.hibernate-1-org.springframework.petclinic.repository.hibernate ' version '1.0.0' is waiting for service with filter '(objectClass=javax.sql.DataSource)'.
    [2009-11-13 17:47:17.465] service-monitor-thread-1 <KE0010W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.hibernate-1-org.springframework.petclinic.repository.hibernate ' version '1.0.0' is waiting for service with filter '(objectClass=javax.sql.DataSource)'.
    [2009-11-13 17:48:17.480] service-monitor-thread-1 <KE0010W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.hibernate-1-org.springframework.petclinic.repository.hibernate ' version '1.0.0' is waiting for service with filter '(objectClass=javax.sql.DataSource)'.
    [2009-11-13 17:49:17.465] service-monitor-thread-1 <KE0010W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.hibernate-1-org.springframework.petclinic.repository.hibernate ' version '1.0.0' is waiting for service with filter '(objectClass=javax.sql.DataSource)'.
    [2009-11-13 17:50:12.496] Thread-6 <DE0061E> Start failed for bundle 'org.springframework.petclinic.repository.hibernat e' version '1.0.0'. org.springframework.context.ApplicationContextExce ption: Application context initialization for 'org.springframework.petclinic.hibernate-1-org.springframework.petclinic.repository.hibernate ' has timed out
    at org.springframework.osgi.extender.internal.depende ncies.startup.DependencyWaiterApplicationContextEx ecutor.timeout(DependencyWaiterApplicationContextE xecutor.java:463)
    at org.springframework.osgi.extender.internal.depende ncies.startup.DependencyWaiterApplicationContextEx ecutor.access$000(DependencyWaiterApplicationConte xtExecutor.java:51)
    at org.springframework.osgi.extender.internal.depende ncies.startup.DependencyWaiterApplicationContextEx ecutor$WatchDogTask.run(DependencyWaiterApplicatio nContextExecutor.java:108)
    at java.util.TimerThread.mainLoop(Timer.java:512)
    at java.util.TimerThread.run(Timer.java:462)

    [2009-11-13 17:50:12.496] Thread-6 <AG0000E> Application context creation failure for bundle 'org.springframework.petclinic.hibernate-1-org.springframework.petclinic.repository.hibernate '. org.springframework.context.ApplicationContextExce ption: Application context initialization for 'org.springframework.petclinic.hibernate-1-org.springframework.petclinic.repository.hibernate ' has timed out
    at org.springframework.osgi.extender.internal.depende ncies.startup.DependencyWaiterApplicationContextEx ecutor.timeout(DependencyWaiterApplicationContextE xecutor.java:463)
    at org.springframework.osgi.extender.internal.depende ncies.startup.DependencyWaiterApplicationContextEx ecutor.access$000(DependencyWaiterApplicationConte xtExecutor.java:51)
    at org.springframework.osgi.extender.internal.depende ncies.startup.DependencyWaiterApplicationContextEx ecutor$WatchDogTask.run(DependencyWaiterApplicatio nContextExecutor.java:108)
    at java.util.TimerThread.mainLoop(Timer.java:512)
    at java.util.TimerThread.run(Timer.java:462)

    [2009-11-13 17:50:14.652] Thread-5 <WE0005E> Failed to start web bundle '/petclinic': consult the Server trace.log for further details.
    [2009-11-13 17:50:14.652] TCP Connection(4)-127.0.0.1 <DE0060I> Started bundle 'org.springframework.petclinic.web' version '1.0.0'.

  2. #2
    Join Date
    Oct 2008
    Posts
    493

    Default

    Given that it's the DataSource that's unavailable, my first guess would be that you maybe haven't started the database?
    Andy Wilkinson
    SpringSource

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •