Announcement Announcement Module
Collapse
No announcement yet.
Error Starting PetClinic Client Server from Tomcat 5.5 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error Starting PetClinic Client Server from Tomcat 5.5

    Hello all,

    Trying to deploy PetClinic Client Server from Tomcat 5.5.

    Env
    -----
    JDK1.5.0_01
    Tomcat 5.5
    Ant 1.6.2

    Completed the following steps

    1) ant warfile
    2) Deployed petclinic-server.war in Tomcat 5.5

    I am getting the following error (from Tomcat stdout.log).
    Appreciate you help in resolving the error. Thanks.

    Dec 30, 2004 3:04:43 PM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive petclinic-server.war
    Dec 30, 2004 3:04:44 PM org.apache.catalina.core.ApplicationContext log
    SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListe ner
    java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListe ner
    at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1332)
    at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1181)
    at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:3579)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4065)
    at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:755)
    at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:739)
    at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:525)
    at org.apache.catalina.startup.HostConfig.deployWAR(H ostConfig.java:777)
    at org.apache.catalina.startup.HostConfig.deployWARs( HostConfig.java:672)
    at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:472)
    at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1079)
    at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java:310)
    at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1011)
    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1003)
    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:437)
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:450)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:2010)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:537)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:409)
    Dec 30, 2004 3:04:45 PM org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Skipped installing application listeners due to previous error(s)
    Dec 30, 2004 3:04:45 PM org.apache.catalina.core.StandardContext start
    SEVERE: Error listenerStart
    Dec 30, 2004 3:04:45 PM org.apache.catalina.core.StandardContext start
    SEVERE: Context startup failed due to previous errors
    Dec 30, 2004 3:04:45 PM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive petclinic.war
    Dec 30, 2004 3:04:46 PM org.springframework.web.context.ContextLoader initWebApplicationContext
    INFO: Root WebApplicationContext: initialization started
    Dec 30, 2004 3:04:46 PM org.apache.catalina.core.ApplicationContext log
    INFO: Loading Spring root WebApplicationContext
    Dec 30, 2004 3:04:46 PM org.springframework.beans.factory.xml.XmlBeanDefin itionReader loadBeanDefinitions
    INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-hibernate.xml]
    Dec 30, 2004 3:04:46 PM org.springframework.context.support.AbstractRefres hableApplicationContext refreshBeanFactory
    INFO: Bean factory for application context [org.springframework.web.context.support.XmlWebAppl icationContext;hashCode=15558189]: org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [propertyConfigurer,dataSource,sessionFactory,trans actionManager,clinicTarget,clinic]; root of BeanFactory hierarchy
    Dec 30, 2004 3:04:46 PM org.springframework.context.support.AbstractApplic ationContext refresh
    INFO: 6 beans defined in application context [org.springframework.web.context.support.XmlWebAppl icationContext;hashCode=15558189]
    Dec 30, 2004 3:04:46 PM org.springframework.beans.factory.support.Abstract BeanFactory getBean
    INFO: Creating shared instance of singleton bean 'propertyConfigurer'
    Dec 30, 2004 3:04:46 PM org.springframework.beans.factory.config.PropertyR esourceConfigurer postProcessBeanFactory
    INFO: Loading properties from ServletContext resource [/WEB-INF/jdbc.properties]
    Dec 30, 2004 3:04:46 PM org.springframework.context.support.AbstractApplic ationContext initMessageSource
    INFO: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.StaticMessageS ource: {}]
    Dec 30, 2004 3:04:46 PM org.springframework.context.support.AbstractApplic ationContext initApplicationEventMulticaster
    INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicatio nEventMulticaster@3257b8]
    Dec 30, 2004 3:04:46 PM org.springframework.ui.context.support.UiApplicati onContextUtils initThemeSource
    INFO: No ThemeSource found for [org.springframework.web.context.support.XmlWebAppl icationContext;hashCode=15558189]: using ResourceBundleThemeSource
    Dec 30, 2004 3:04:46 PM org.springframework.context.support.AbstractApplic ationContext refreshListeners
    INFO: Refreshing listeners
    Dec 30, 2004 3:04:46 PM org.springframework.beans.factory.support.DefaultL istableBeanFactory preInstantiateSingletons
    INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [propertyConfigurer,dataSource,sessionFactory,trans actionManager,clinicTarget,clinic]; root of BeanFactory hierarchy]
    Dec 30, 2004 3:04:46 PM org.springframework.beans.factory.support.Abstract BeanFactory getBean
    INFO: Creating shared instance of singleton bean 'dataSource'
    Dec 30, 2004 3:04:46 PM org.springframework.jdbc.datasource.DriverManagerD ataSource setDriverClassName
    INFO: Loaded JDBC driver: org.hsqldb.jdbcDriver
    Dec 30, 2004 3:04:46 PM org.springframework.beans.factory.support.Abstract BeanFactory getBean
    INFO: Creating shared instance of singleton bean 'sessionFactory'
    Dec 30, 2004 3:04:46 PM net.sf.hibernate.cfg.Environment <clinit>
    INFO: Hibernate 2.1.7
    Dec 30, 2004 3:04:46 PM net.sf.hibernate.cfg.Environment <clinit>
    INFO: hibernate.properties not found
    Dec 30, 2004 3:04:46 PM net.sf.hibernate.cfg.Environment <clinit>
    INFO: using CGLIB reflection optimizer
    Dec 30, 2004 3:04:46 PM net.sf.hibernate.cfg.Environment <clinit>
    INFO: using JDK 1.4 java.sql.Timestamp handling
    Dec 30, 2004 3:04:47 PM net.sf.hibernate.cfg.Binder bindRootClass
    INFO: Mapping class: org.springframework.samples.petclinic.Vet -> vets
    Dec 30, 2004 3:04:47 PM net.sf.hibernate.cfg.Binder bindCollection
    INFO: Mapping collection: org.springframework.samples.petclinic.Vet.specialt iesInternal -> vet_specialties
    Dec 30, 2004 3:04:47 PM net.sf.hibernate.cfg.Binder bindRootClass
    INFO: Mapping class: org.springframework.samples.petclinic.Specialty -> specialties
    Dec 30, 2004 3:04:47 PM net.sf.hibernate.cfg.Binder bindRootClass
    INFO: Mapping class: org.springframework.samples.petclinic.Owner -> owners
    Dec 30, 2004 3:04:47 PM net.sf.hibernate.cfg.Binder bindRootClass
    INFO: Mapping class: org.springframework.samples.petclinic.Pet -> pets
    Dec 30, 2004 3:04:47 PM net.sf.hibernate.cfg.Binder bindRootClass
    INFO: Mapping class: org.springframework.samples.petclinic.PetType -> types
    Dec 30, 2004 3:04:47 PM net.sf.hibernate.cfg.Binder bindRootClass
    INFO: Mapping class: org.springframework.samples.petclinic.Visit -> visits
    Dec 30, 2004 3:04:47 PM org.springframework.orm.hibernate.LocalSessionFact oryBean afterPropertiesSet
    INFO: Building new Hibernate SessionFactory
    Dec 30, 2004 3:04:47 PM net.sf.hibernate.cfg.Configuration secondPassCompile
    INFO: processing one-to-many association mappings
    Dec 30, 2004 3:04:47 PM net.sf.hibernate.cfg.Binder bindCollectionSecondPass
    INFO: Mapping collection: org.springframework.samples.petclinic.Owner.petsIn ternal -> pets
    Dec 30, 2004 3:04:47 PM net.sf.hibernate.cfg.Binder bindCollectionSecondPass
    INFO: Mapping collection: org.springframework.samples.petclinic.Pet.visitsIn ternal -> visits
    Dec 30, 2004 3:04:47 PM net.sf.hibernate.cfg.Configuration secondPassCompile
    INFO: processing one-to-one association property references
    Dec 30, 2004 3:04:47 PM net.sf.hibernate.cfg.Configuration secondPassCompile
    INFO: processing foreign key constraints
    Dec 30, 2004 3:04:47 PM net.sf.hibernate.dialect.Dialect <init>
    INFO: Using dialect: net.sf.hibernate.dialect.HSQLDialect
    Dec 30, 2004 3:04:47 PM net.sf.hibernate.cfg.SettingsFactory buildSettings
    INFO: Use outer join fetching: true
    Dec 30, 2004 3:04:47 PM net.sf.hibernate.connection.ConnectionProviderFact ory newConnectionProvider
    INFO: Initializing connection provider: org.springframework.orm.hibernate.LocalDataSourceC onnectionProvider
    Dec 30, 2004 3:04:47 PM net.sf.hibernate.transaction.TransactionManagerLoo kupFactory getTransactionManagerLookup
    INFO: No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended)
    Dec 30, 2004 3:04:48 PM net.sf.hibernate.util.JDBCExceptionReporter logExceptions
    WARNING: SQL Error: -80, SQLState: 08000
    Dec 30, 2004 3:04:48 PM net.sf.hibernate.util.JDBCExceptionReporter logExceptions
    SEVERE: socket creation error
    Dec 30, 2004 3:04:48 PM net.sf.hibernate.cfg.SettingsFactory buildSettings
    WARNING: Could not obtain connection metadata
    java.sql.SQLException: socket creation error
    at org.hsqldb.jdbc.jdbcUtil.sqlException(Unknown Source)
    at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)
    at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
    at org.hsqldb.jdbcDriver.connect(Unknown Source)
    at java.sql.DriverManager.getConnection(DriverManager .java:525)
    at java.sql.DriverManager.getConnection(DriverManager .java:171)
    at org.springframework.jdbc.datasource.DriverManagerD ataSource.getConnectionFromDriverManager(DriverMan agerDataSource.java:156)
    at org.springframework.jdbc.datasource.DriverManagerD ataSource.getConnectionFromDriverManager(DriverMan agerDataSource.java:144)
    at org.springframework.jdbc.datasource.DriverManagerD ataSource.getConnection(DriverManagerDataSource.ja va:132)
    at org.springframework.orm.hibernate.LocalDataSourceC onnectionProvider.getConnection(LocalDataSourceCon nectionProvider.java:59)
    at net.sf.hibernate.cfg.SettingsFactory.buildSettings (SettingsFactory.java:84)
    at net.sf.hibernate.cfg.Configuration.buildSettings(C onfiguration.java:1160)
    at net.sf.hibernate.cfg.Configuration.buildSessionFac tory(Configuration.java:794)
    at org.springframework.orm.hibernate.LocalSessionFact oryBean.newSessionFactory(LocalSessionFactoryBean. java:475)
    at org.springframework.orm.hibernate.LocalSessionFact oryBean.afterPropertiesSet(LocalSessionFactoryBean .java:413)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1037)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:305)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:223)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:236)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:159)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:255)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:317)
    at org.springframework.web.context.support.AbstractRe freshableWebApplicationContext.refresh(AbstractRef reshableWebApplicationContext.java:131)
    at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:177)
    at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:105)
    at org.springframework.web.context.ContextLoaderServl et.init(ContextLoaderServlet.java:81)
    at javax.servlet.GenericServlet.init(GenericServlet.j ava:211)
    at org.apache.catalina.core.StandardWrapper.loadServl et(StandardWrapper.java:1053)
    at org.apache.catalina.core.StandardWrapper.load(Stan dardWrapper.java:886)
    at org.apache.catalina.core.StandardContext.loadOnSta rtup(StandardContext.java:3817)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4079)
    at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:755)
    at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:739)
    at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:525)
    at org.apache.catalina.startup.HostConfig.deployWAR(H ostConfig.java:777)
    at org.apache.catalina.startup.HostConfig.deployWARs( HostConfig.java:672)
    at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:472)
    at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1079)
    at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java:310)
    at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1011)
    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1003)
    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:437)
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:450)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:2010)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:537)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:409)
    Dec 30, 2004 3:04:48 PM net.sf.hibernate.cfg.SettingsFactory buildSettings
    INFO: Use scrollable result sets: false
    Dec 30, 2004 3:04:48 PM net.sf.hibernate.cfg.SettingsFactory buildSettings
    INFO: Use JDBC3 getGeneratedKeys(): false
    Dec 30, 2004 3:04:48 PM net.sf.hibernate.cfg.SettingsFactory buildSettings
    INFO: Optimize cache for minimal puts: false
    Dec 30, 2004 3:04:48 PM net.sf.hibernate.cfg.SettingsFactory buildSettings
    INFO: echoing all SQL to stdout
    Dec 30, 2004 3:04:48 PM net.sf.hibernate.cfg.SettingsFactory buildSettings
    INFO: Query language substitutions: {}
    Dec 30, 2004 3:04:48 PM net.sf.hibernate.cfg.SettingsFactory buildSettings
    INFO: cache provider: net.sf.hibernate.cache.EhCacheProvider
    Dec 30, 2004 3:04:48 PM net.sf.hibernate.cfg.Configuration configureCaches
    INFO: instantiating and configuring caches
    Dec 30, 2004 3:04:49 PM net.sf.hibernate.impl.SessionFactoryImpl <init>
    INFO: building session factory

  • #2
    Did you include spring.jar and servlet.jar ?

    Comment


    • #3
      Thanks. The build.xml was missing Spring.jar. I fixed and it ran like
      a charm. Also, I made the changes to petclinic-clientserver.jnlp
      to include spring-richclient-sandbox.jar.

      Comment

      Working...
      X