Hi,
I downloaded and configured the sample app in the Wiring Your Web Application with Open Source Java. I followed the instructions in the readme.txt file. But, I couldn't start the app with Tomcat. The message is as follow. Can anyone help me out? Thanks.
- Initializing Coyote HTTP/1.1 on port 8082
Starting service Tomcat-Standalone
Apache Tomcat/4.1.30
- Loading XML bean definitions from resource [/WEB-INF/applicationContext-hibernate.xml] of ServletContext
- Bean factory for application context [Root XmlWebApplicationContext]: org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [mySessionFactory,myTransactionManager,orderService ,orderTarget,orderDAO]; Root of BeanFactory hierarchy
- 5 beans defined in ApplicationContext [Root XmlWebApplicationContext]
- No MessageSource found for context [Root XmlWebApplicationContext]: using empty StaticMessageSource
- No ThemeSource found for [Root XmlWebApplicationContext]: using ResourceBundleThemeSource
- Refreshing listeners
- Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [mySessionFactory,myTransactionManager,orderService ,orderTarget,orderDAO]; Root of BeanFactory hierarchy]
- Creating shared instance of singleton bean 'mySessionFactory'
- Hibernate 2.1.3
- hibernate.properties not found
- using CGLIB reflection optimizer
- Mapping class: com.meagle.bo.Order -> Orders
- Mapping class: com.meagle.bo.OrderLineItem -> OrderLineItem
- Building new Hibernate SessionFactory
- processing one-to-many association mappings
- Mapping collection: com.meagle.bo.Order.orderLineItems -> OrderLineItem
- processing one-to-one association property references
- processing foreign key constraints
- Using dialect: net.sf.hibernate.dialect.MySQLDialect
- Use outer join fetching: false
- Destroying singletons in factory {org.springframework.beans.factory.support.Default ListableBeanFactory defining beans [mySessionFactory,myTransactionManager,orderService ,orderTarget,orderDAO]; Root of BeanFactory hierarchy}
- Context initialization failed
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'mySessionFactory' defined in resource [/WEB-INF/applicationContext-hibernate.xml] of ServletContext: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/logicalcobwebs/proxool/ProxoolException
java.lang.NoClassDefFoundError: org/logicalcobwebs/proxool/ProxoolException
at net.sf.hibernate.connection.ConnectionProviderFact ory.newConnectionProvider(ConnectionProviderFactor y.java:75)
at net.sf.hibernate.cfg.SettingsFactory.buildSettings (SettingsFactory.java:64)
at net.sf.hibernate.cfg.Configuration.buildSettings(C onfiguration.java:1132)
at net.sf.hibernate.cfg.Configuration.buildSessionFac tory(Configuration.java:766)
at org.springframework.orm.hibernate.LocalSessionFact oryBean.newSessionFactory(LocalSessionFactoryBean. java:436)
at org.springframework.orm.hibernate.LocalSessionFact oryBean.afterPropertiesSet(LocalSessionFactoryBean .java:374)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:801)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:249)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:177)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:159)
at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:177)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:268)
at org.springframework.web.context.support.XmlWebAppl icationContext.refresh(XmlWebApplicationContext.ja va:131)
at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:156)
at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:97)
at org.springframework.web.context.ContextLoaderServl et.init(ContextLoaderServlet.java:80)
at javax.servlet.GenericServlet.init(GenericServlet.j ava:258)
at org.apache.catalina.core.StandardWrapper.loadServl et(StandardWrapper.java:935)
at org.apache.catalina.core.StandardWrapper.load(Stan dardWrapper.java:823)
at org.apache.catalina.core.StandardContext.loadOnSta rtup(StandardContext.java:3427)
at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:3628)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1188)
at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:754)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:363)
at org.apache.catalina.core.StandardService.start(Sta ndardService.java:497)
at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalin a.java:512)
at org.apache.catalina.startup.Catalina.execute(Catal ina.java:400)
at org.apache.catalina.startup.Catalina.process(Catal ina.java:180)
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:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:203)
- Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
- Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
- Initializing, config='com.meagle.resources.ApplicationResources' , returnNull=true
- Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
- Initializing, config='org.apache.webapp.admin.ApplicationResourc es', returnNull=true
- Starting Coyote HTTP/1.1 on port 8082
- JK2: ajp13 listening on /0.0.0.0:8009
- Jk running ID=0 time=0/47 config=E:\projects\frameworks\jakarta-tomcat-4.1.30\conf\jk2.properties


Reply With Quote