Thanks a mill Mike. It worked.

On 2/14/07, Michael Horwitz <[EMAIL PROTECTED]> wrote:
Richard,

I think the key to your problem lies right at the bottom of the stack trace:

Caused by: org.hibernate.cache.NoCachingEnabledException: Second-level cache
is
not enabled for usage [hibernate.cache.use_second_level_cache |
hibernate.cache.
use_query_cache]

It looks as if one of the hbm.xml files you have added/are using is asking
for a second level cache? Or one of your queries asks for caching? But you
have not set the hibernate caching properties properly on the session
factory? You have two choices here: 1) make sure none of your entities ask
for caching, or 2) set up a second level cache as per
http://www.hibernate.org/hib_docs/v3/reference/en/html/performance.html#performance-cache.
The exact setup depends on which type of cache you decide to use. We have
used EHCache fairly successfully in several projects.

Mike.


On 2/13/07, Nathan Anderson <[EMAIL PROTECTED]> wrote:
>
> All I can suggest is examine your spring configuration files... it
> appears that something is not configured correctly.  Double check
> everything, and if you don't find a problem... triple check.  I can't
> think of a reason why these beans could not be created other than a
> problem with the .xml files.
>
>
> Hope that helps,
> Nathan
>
> Richard Nduka wrote:
> > Please can somebody help me with this error my boss is seriously on my
> > kneck as i need to deliver. Thanks.
> >
> > On 2/13/07, Richard Nduka <[EMAIL PROTECTED]> wrote:
> >> This is another startup log. I was able to catch it right from the very
> >> beginning. Any assistance would be appreciated. Thanks.
> >>
> >>
> >> [loans] ERROR [main] ContextLoader.initWebApplicationContext(205) |
> >> Context
> >> init
> >> ialization failed
> >> org.springframework.beans.factory.BeanCreationException: Error
> >> creating bean
> >> wit
> >> h name 'userManagerTx': Cannot resolve reference to bean
> >> 'userManagerTxAdvice' w
> >> hile setting bean property 'advice'; nested exception is
> >> org.springframework.bea
> >> ns.factory.BeanCreationException: Error creating bean with name
> >> 'userManagerTxAd
> >> vice': Cannot resolve reference to bean 'transactionManager' while
> >> setting
> >> bean
> >> property 'transactionManager'; nested exception is
> >> org.springframework.beans.fac
> >> tory.BeanCreationException: Error creating bean with name
> >> 'transactionManager' d
> >> efined in ServletContext resource
> >> [/WEB-INF/applicationContext-hibernate.xml]:
> >> C
> >> annot resolve reference to bean 'sessionFactory' while setting bean
> >> property
> >> 'se
> >> ssionFactory'; nested exception is
> >> org.springframework.beans.factory.BeanCreatio
> >> nException: Error creating bean with name 'sessionFactory' defined in
> >> ServletCon
> >> text resource [/WEB-INF/applicationContext-hibernate.xml]: Invocation
> of
> >> init me
> >> thod failed; nested exception is org.hibernate.HibernateException:
> >> Could not
> >> ins
> >> tantiate cache implementation
> >> Caused by:
> >> org.springframework.beans.factory.BeanCreationException: Error
> >> creating bean
> >> wit
> >> h name 'userManagerTxAdvice': Cannot resolve reference to bean
> >> 'transactionManag
> >> er' while setting bean property 'transactionManager'; nested
> >> exception is
> >> org.sp
> >> ringframework.beans.factory.BeanCreationException: Error creating
> >> bean with
> >> name
> >>  'transactionManager' defined in ServletContext resource
> >> [/WEB-INF/applicationCo
> >> ntext-hibernate.xml]: Cannot resolve reference to bean 'sessionFactory'
> >> while se
> >> tting bean property 'sessionFactory'; nested exception is
> >> org.springframework.be
> >> ans.factory.BeanCreationException: Error creating bean with name
> >> 'sessionFactory
> >> ' defined in ServletContext resource [/WEB-INF/applicationContext-
> >> hibernate.xml]
> >> : Invocation of init method failed; nested exception is
> >> org.hibernate.HibernateE
> >> xception: Could not instantiate cache implementation
> >> Caused by:
> >> org.springframework.beans.factory.BeanCreationException: Error
> >> creating bean
> >> wit
> >> h name 'transactionManager' defined in ServletContext resource
> >> [/WEB-INF/applica
> >> tionContext-hibernate.xml]: Cannot resolve reference to bean
> >> 'sessionFactory' wh
> >> ile setting bean property 'sessionFactory'; nested exception is
> >> org.springframew
> >> ork.beans.factory.BeanCreationException: Error creating bean with name
> >> 'sessionF
> >> actory' defined in ServletContext resource
> >> [/WEB-INF/applicationContext-hibernat
> >> e.xml]: Invocation of init method failed; nested exception is
> >> org.hibernate.Hibe
> >> rnateException: Could not instantiate cache implementation
> >> Caused by:
> >> org.springframework.beans.factory.BeanCreationException: Error
> >> creating bean
> >> wit
> >> h name 'sessionFactory' defined in ServletContext resource
> >> [/WEB-INF/application
> >> Context-hibernate.xml]: Invocation of init method failed; nested
> >> exception
> >> is or
> >> g.hibernate.HibernateException: Could not instantiate cache
> >> implementation
> >> Caused by:
> >> org.hibernate.HibernateException: Could not instantiate cache
> >> implementation
> >>         at
> >> org.hibernate.cache.CacheFactory.createCache(CacheFactory.java
> >> :64)
> >>         at org.hibernate.impl.SessionFactoryImpl.<init>(
> >> SessionFactoryImpl.java:
> >> 214)
> >>         at org.hibernate.cfg.Configuration.buildSessionFactory(
> >> Configuration.jav
> >> a:1218)
> >>         at
> >> org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSession
> >> Factory(LocalSessionFactoryBean.java:807)
> >>         at
> >> org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessi
> >> onFactory(LocalSessionFactoryBean.java:740)
> >>         at
> >> org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPr
> >> opertiesSet(AbstractSessionFactoryBean.java:131)
> >>         at
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)
> >>         at
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
> >>         at
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> Factory.createBean(AbstractAutowireCapableBeanFactory.java:420)
> >>         at
> >> org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
> >> ject(AbstractBeanFactory.java:245)
> >>         at
> >> org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
> >> y.getSingleton(DefaultSingletonBeanRegistry.java:141)
> >>         at
> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> >> (AbstractBeanFactory.java:242)
> >>         at
> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> >> (AbstractBeanFactory.java:156)
> >>         at
> >> org.springframework.beans.factory.support.BeanDefinitionValueResolver
> >> .resolveReference(BeanDefinitionValueResolver.java:246)
> >>         at
> >> org.springframework.beans.factory.support.BeanDefinitionValueResolver
> >> .resolveValueIfNecessary(BeanDefinitionValueResolver.java:128)
> >>         at
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java
> :955)
> >>         at
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> Factory.populateBean(AbstractAutowireCapableBeanFactory.java:729)
> >>         at
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> Factory.createBean(AbstractAutowireCapableBeanFactory.java:416)
> >>         at
> >> org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
> >> ject(AbstractBeanFactory.java:245)
> >>         at
> >> org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
> >> y.getSingleton(DefaultSingletonBeanRegistry.java:141)
> >>         at
> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> >> (AbstractBeanFactory.java:242)
> >>         at
> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> >> (AbstractBeanFactory.java:156)
> >>         at
> >> org.springframework.beans.factory.support.BeanDefinitionValueResolver
> >> .resolveReference(BeanDefinitionValueResolver.java:246)
> >>         at
> >> org.springframework.beans.factory.support.BeanDefinitionValueResolver
> >> .resolveValueIfNecessary(BeanDefinitionValueResolver.java:128)
> >>         at
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java
> :955)
> >>         at
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> Factory.populateBean(AbstractAutowireCapableBeanFactory.java:729)
> >>         at
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> Factory.createBean(AbstractAutowireCapableBeanFactory.java:416)
> >>         at
> >> org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
> >> ject(AbstractBeanFactory.java:245)
> >>         at
> >> org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
> >> y.getSingleton(DefaultSingletonBeanRegistry.java:141)
> >>         at
> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> >> (AbstractBeanFactory.java:242)
> >>         at
> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> >> (AbstractBeanFactory.java:156)
> >>         at
> >> org.springframework.beans.factory.support.BeanDefinitionValueResolver
> >> .resolveReference(BeanDefinitionValueResolver.java:246)
> >>         at
> >> org.springframework.beans.factory.support.BeanDefinitionValueResolver
> >> .resolveValueIfNecessary(BeanDefinitionValueResolver.java:128)
> >>         at
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java
> :955)
> >>         at
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> Factory.populateBean(AbstractAutowireCapableBeanFactory.java:729)
> >>         at
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> Factory.createBean(AbstractAutowireCapableBeanFactory.java:416)
> >>         at
> >> org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
> >> ject(AbstractBeanFactory.java:245)
> >>         at
> >> org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
> >> y.getSingleton(DefaultSingletonBeanRegistry.java:141)
> >>         at
> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> >> (AbstractBeanFactory.java:242)
> >>         at
> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> >> (AbstractBeanFactory.java:156)
> >>         at
> >> org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyC
> >> reator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:102)
> >>         at
> >> org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyC
> >> reator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:68)
> >>         at
> >> org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyC
> >> reator.getAdvicesAndAdvisorsForBean(
> AbstractAdvisorAutoProxyCreator.java:54)
> >>
> >>         at
> >> org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.
> >> postProcessAfterInitialization(AbstractAutoProxyCreator.java:247)
> >>         at
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> Factory.applyBeanPostProcessorsAfterInitialization
> >> (AbstractAutowireCapableBeanFa
> >> ctory.java:311)
> >>         at
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1038)
> >>         at
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> Factory.createBean(AbstractAutowireCapableBeanFactory.java:420)
> >>         at
> >> org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
> >> ject(AbstractBeanFactory.java:245)
> >>         at
> >> org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
> >> y.getSingleton(DefaultSingletonBeanRegistry.java:141)
> >>         at
> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> >> (AbstractBeanFactory.java:242)
> >>         at
> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> >> (AbstractBeanFactory.java:156)
> >>         at
> >> org.springframework.beans.factory.support.DefaultListableBeanFactory.
> >> getBeansOfType(DefaultListableBeanFactory.java:238)
> >>         at
> >> org.springframework.context.support.AbstractApplicationContext.getBea
> >> nsOfType(AbstractApplicationContext.java:697)
> >>         at
> >> org.springframework.context.support.AbstractApplicationContext.regist
> >> erListeners(AbstractApplicationContext.java:521)
> >>         at
> >> org.springframework.context.support.AbstractApplicationContext.refres
> >> h(AbstractApplicationContext.java:345)
> >>         at
> >> org.springframework.web.context.support.AbstractRefreshableWebApplica
> >> tionContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
> >>         at
> >> org.springframework.web.context.ContextLoader.createWebApplicationCon
> >> text(ContextLoader.java:246)
> >>         at
> >> org.springframework.web.context.ContextLoader.initWebApplicationConte
> >> xt(ContextLoader.java:184)
> >>         at
> >> org.springframework.web.context.ContextLoaderListener.contextInitiali
> >> zed(ContextLoaderListener.java:49)
> >>         at
> >> org.appfuse.webapp.listener.StartupListener.contextInitialized
> >> (Startu
> >> pListener.java:48)
> >>         at org.apache.catalina.core.StandardContext.listenerStart
> >> (StandardContex
> >> t.java:3827)
> >>         at org.apache.catalina.core.StandardContext.start(
> >> StandardContext.java:4
> >> 343)
> >>         at org.apache.catalina.core.ContainerBase.addChildInternal
> >> (ContainerBase
> >> .java:823)
> >>         at org.apache.catalina.core.ContainerBase.addChild(
> >> ContainerBase.java:80
> >> 7)
> >>         at
> >> org.apache.catalina.core.StandardHost.addChild(StandardHost.java
> >> :595)
> >>
> >>         at org.apache.catalina.core.StandardHostDeployer.addChild
> >> (StandardHostDe
> >> ployer.java:903)
> >>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>         at sun.reflect.NativeMethodAccessorImpl.invoke
> >> (NativeMethodAccessorImpl.
> >> java:39)
> >>         at sun.reflect.DelegatingMethodAccessorImpl.invoke
> >> (DelegatingMethodAcces
> >> sorImpl.java:25)
> >>         at java.lang.reflect.Method.invoke(Method.java:585)
> >>         at org.apache.commons.beanutils.MethodUtils.invokeMethod(
> >> MethodUtils.jav
> >> a:216)
> >>         at
> >> org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
> >>         at org.apache.commons.digester.Rule.end(Rule.java:276)
> >>         at org.apache.commons.digester.Digester.endElement(
> Digester.java
> >> :1058)
> >>         at org.apache.catalina.util.CatalinaDigester.endElement
> >> (CatalinaDigester
> >> .java:76)
> >>         at
> >> org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> >> Source
> >> )
> >>         at
> >> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
> >> Unknown Source)
> >>         at
> >> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
> >> Dispatcher.dispatch(Unknown Source)
> >>         at
> >> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
> >> known Source)
> >>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> >> Source)
> >>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> >> Source)
> >>         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> >>         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> >> Source)
> >>         at
> >> org.apache.commons.digester.Digester.parse(Digester.java:1567)
> >>         at org.apache.catalina.core.StandardHostDeployer.install
> >> (StandardHostDep
> >> loyer.java:488)
> >>         at
> >> org.apache.catalina.core.StandardHost.install(StandardHost.java
> >> :863)
> >>         at org.apache.catalina.startup.HostConfig.deployDescriptors(
> >> HostConfig.j
> >> ava:483)
> >>         at
> >> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java
> >> :427
> >> )
> >>         at
> >> org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
> >>         at org.apache.catalina.startup.HostConfig.lifecycleEvent(
> >> HostConfig.java
> >> :349)
> >>         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
> >> (Lifecycl
> >> eSupport.java:119)
> >>         at
> >> org.apache.catalina.core.ContainerBase.start(ContainerBase.java
> >> :1091)
> >>
> >>         at org.apache.catalina.core.StandardHost.start(
> StandardHost.java
> >> :789)
> >>         at
> >> org.apache.catalina.core.ContainerBase.start(ContainerBase.java
> >> :1083)
> >>
> >>         at
> >> org.apache.catalina.core.StandardEngine.start(StandardEngine.java
> >> :478
> >> )
> >>         at org.apache.catalina.core.StandardService.start(
> >> StandardService.java:4
> >> 80)
> >>         at
> >> org.apache.catalina.core.StandardServer.start(StandardServer.java
> >> :231
> >> 3)
> >>         at org.apache.catalina.startup.Catalina.start(Catalina.java
> :556)
> >>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>         at sun.reflect.NativeMethodAccessorImpl.invoke
> >> (NativeMethodAccessorImpl.
> >> java:39)
> >>         at sun.reflect.DelegatingMethodAccessorImpl.invoke
> >> (DelegatingMethodAcces
> >> sorImpl.java:25)
> >>         at java.lang.reflect.Method.invoke(Method.java:585)
> >>         at
> >> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
> >>         at
> >> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
> >> Caused by: org.hibernate.cache.NoCachingEnabledException:
> >> Second-level cache
> >> is
> >> not enabled for usage [hibernate.cache.use_second_level_cache |
> >> hibernate.cache.
> >> use_query_cache]
> >>         at org.hibernate.cache.NoCacheProvider.buildCache(
> >> NoCacheProvider.java:2
> >> 1)
> >>         at
> >> org.hibernate.cache.CacheFactory.createCache(CacheFactory.java
> >> :61)
> >>         ... 103 more
> >>
> >>
> >>
> >> On 2/13/07, Richard Nduka <[EMAIL PROTECTED]> wrote:
> >> >
> >> > I have not changed my sessionFactoryBean. Here is what my
> >> > applicationContext-Hibernate.xml file looks like:
> >> >
> >> >
> >> > <?xml version="1.0" encoding="UTF-8"?>
> >> >
> >> > <beans xmlns="http://www.springframework.org/schema/beans";
> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> >> > "
> >> >
> >> > xsi:schemaLocation="http://www.springframework.org/schema/beans
> >> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
> >> > ">
> >> >
> >> > <!-- Hibernate SessionFactory -->
> >> >
> >> > <bean id="sessionFactory" class="
> >> > org.springframework.orm.hibernate3.LocalSessionFactoryBean">
> >> >
> >> > <property name="dataSource" ref="dataSource"/>
> >> >
> >> > <property name="mappingResources">
> >> >
> >> > <list>
> >> >
> >> > <value>org/appfuse/model/Role.hbm.xml</value>
> >> >
> >> > <value>org/appfuse/model/User.hbm.xml</value>
> >> >
> >> > <value>org/appfuse/model/Loan.hbm.xml</value>
> >> >
> >> > <value>org/appfuse/model/File.hbm.xml</value>
> >> >
> >> > </list>
> >> >
> >> > </property>
> >> >
> >> > <property name="hibernateProperties">
> >> >
> >> > <props>
> >> >
> >> > <prop key="hibernate.dialect">@HIBERNATE-DIALECT@</prop>
> >> >
> >> > <prop key="hibernate.query.substitutions">true 'Y', false 'N'</prop>
> >> >
> >> > <!-- Create/update the database tables automatically when the JVM
> >> starts
> >> > up
> >> >
> >> > <prop key="hibernate.hbm2ddl.auto">update</prop> -->
> >> >
> >> > <!-- Turn batching off for better error messages under PostgreSQL
> >> >
> >> > <prop key="hibernate.jdbc.batch_size">0</prop> -->
> >> >
> >> > </props>
> >> >
> >> > </property>
> >> >
> >> > <property name="lobHandler">
> >> >
> >> > <bean class="org.springframework.jdbc.support.lob.DefaultLobHandler
> "/>
> >> >
> >> > </property>
> >> >
> >> > </bean>
> >> >
> >> > <!-- Transaction manager for a single Hibernate SessionFactory
> >> > (alternative to JTA) -->
> >> >
> >> > <bean id="transactionManager" class="
> >> > org.springframework.orm.hibernate3.HibernateTransactionManager">
> >> >
> >> > <property name="sessionFactory" ref="sessionFactory"/>
> >> >
> >> > </bean>
> >> >
> >> > <!-- Generic Dao - can be used when doing standard CRUD -->
> >> >
> >> > <bean id="dao" class="org.appfuse.dao.hibernate.BaseDaoHibernate">
> >> >
> >> > <property name="sessionFactory" ref="sessionFactory"/>
> >> >
> >> > </bean>
> >> >
> >> > <!-- LookupDao: Hibernate implementation -->
> >> >
> >> > <bean id="lookupDao"
> >> class="org.appfuse.dao.hibernate.LookupDaoHibernate">
> >> >
> >> > <property name="sessionFactory" ref="sessionFactory"/>
> >> >
> >> > </bean>
> >> >
> >> > <!-- UserDao: Hibernate implementation -->
> >> >
> >> > <bean id="userDao" class="org.appfuse.dao.hibernate.UserDaoHibernate
> ">
> >> >
> >> > <property name="sessionFactory" ref="sessionFactory"/>
> >> >
> >> > </bean>
> >> >
> >> > <!-- RoleDao: Hibernate implementation -->
> >> >
> >> > <bean id="roleDao" class="org.appfuse.dao.hibernate.RoleDaoHibernate
> ">
> >> >
> >> > <property name="sessionFactory" ref="sessionFactory"/>
> >> >
> >> > </bean>
> >> >
> >> > <!-- Add new Daos here -->
> >> >
> >> > <!--Loan-START-->
> >> >
> >> > <bean id="loanDao" class="org.appfuse.dao.hibernate.LoanDaoHibernate
> ">
> >> >
> >> > <property name="sessionFactory" ref="sessionFactory"/>
> >> >
> >> > </bean>
> >> >
> >> > <!--Loan-END-->
> >> >
> >> > <!--File-START-->
> >> >
> >> > <bean id="fileDao" class="org.appfuse.dao.hibernate.FileDaoHibernate
> ">
> >> >
> >> > <property name="sessionFactory" ref="sessionFactory"/>
> >> >
> >> > </bean>
> >> >
> >> > <!--File-END-->
> >> >
> >> > </beans>
> >> >
> >> > Thanks for your assistance.
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >  On 2/13/07, Matt Raible <[EMAIL PROTECTED]> wrote:
> >> > >
> >> > > Have you changed your sessionFactory bean?  It looks like you
> >> have the
> >> > > cache parameters configured wrong:
> >> > >
> >> > > org.hibernate.HibernateException: Could not instantiate cache
> >> > > implementation
> >> > >
> >> > > Matt
> >> > >
> >> > > On 2/13/07, Richard Nduka <[EMAIL PROTECTED]> wrote:
> >> > > > I searched the mailing list archives and discovered that
> >> someone has
> >> > > done
> >> > > > this before. This can be seen from the url below:
> >> > > >
> >> > > >
> >>
>
http://www.nabble.com/Adding-image-to-user-profile-tf2367528s2369.html#a6634670
> >>
> >> > >
> >> > > >
> >> > > > The issue is that i followed the contents of this url and at
> >> the end
> >> > > when i
> >> > > > deployed my application and started tomcat, i get the error
> below:
> >> > > >
> >> > > > vice': Cannot resolve reference to bean 'transactionManager'
> while
> >> > > setting
> >> > > > bean
> >> > > > property 'transactionManager'; nested exception is
> >> > > > org.springframework.beans.fac
> >> > > > tory.BeanCreationException: Error creating bean with name
> >> > > > 'transactionManager' d
> >> > > > efined in ServletContext resource
> >> > > > [/WEB-INF/applicationContext-hibernate.xml]: C
> >> > > > annot resolve reference to bean 'sessionFactory' while setting
> >> bean
> >> > > property
> >> > > > 'se
> >> > > > ssionFactory'; nested exception is
> >> > > > org.springframework.beans.factory.BeanCreatio
> >> > > > nException: Error creating bean with name 'sessionFactory'
> >> defined in
> >> > > > ServletCon
> >> > > > text resource [/WEB-INF/applicationContext-hibernate.xml ]:
> >> Invocation
> >> > > of
> >> > > > init me
> >> > > > thod failed; nested exception is
> >> > > > org.hibernate.HibernateException: Could not ins
> >> > > > tantiate cache implementation
> >> > > > Caused by:
> >> > > > org.springframework.beans.factory.BeanCreationException :
> >> > > > Error creating bean wit
> >> > > > h name 'userManagerTxAdvice': Cannot resolve reference to bean
> >> > > > 'transactionManag
> >> > > > er' while setting bean property 'transactionManager'; nested
> >> exception
> >> > > is
> >> > > > org.sp
> >> > > > ringframework.beans.factory.BeanCreationException: Error
> >> > > > creating bean with name
> >> > > >  'transactionManager' defined in ServletContext resource
> >> > > > [/WEB-INF/applicationCo
> >> > > > ntext-hibernate.xml]: Cannot resolve reference to bean
> >> > > 'sessionFactory'
> >> > > > while se
> >> > > > tting bean property 'sessionFactory'; nested exception is
> >> > > > org.springframework.be
> >> > > > ans.factory.BeanCreationException: Error creating bean with
> >> > > > name 'sessionFactory
> >> > > > ' defined in ServletContext resource
> >> > > > [/WEB-INF/applicationContext-hibernate.xml ]
> >> > > > : Invocation of init method failed; nested exception is
> >> > > > org.hibernate.HibernateE
> >> > > > xception: Could not instantiate cache implementation
> >> > > > Caused by:
> >> > > > org.springframework.beans.factory.BeanCreationException :
> >> > > > Error creating bean wit
> >> > > > h name 'transactionManager' defined in ServletContext resource
> >> > > > [/WEB-INF/applica
> >> > > > tionContext-hibernate.xml]: Cannot resolve reference to bean
> >> > > > 'sessionFactory' wh
> >> > > > ile setting bean property 'sessionFactory'; nested exception is
> >> > > > org.springframew
> >> > > > ork.beans.factory.BeanCreationException : Error creating
> >> > > > bean with name 'sessionF
> >> > > > actory' defined in ServletContext resource
> >> > > > [/WEB-INF/applicationContext-hibernat
> >> > > > e.xml]: Invocation of init method failed; nested exception is
> >> > > > org.hibernate.Hibe
> >> > > >  rnateException: Could not instantiate cache implementation
> >> > > > Caused by:
> >> > > > org.springframework.beans.factory.BeanCreationException:
> >> > > > Error creating bean wit
> >> > > > h name 'sessionFactory' defined in ServletContext resource
> >> > > > [/WEB-INF/application
> >> > > > Context-hibernate.xml ]: Invocation of init method failed; nested
> >> > > exception
> >> > > > is or
> >> > > > g.hibernate.HibernateException: Could not instantiate cache
> >> > > implementation
> >> > > > Caused by:
> >> > > > org.hibernate.HibernateException: Could not instantiate
> >> > > > cache implementation
> >> > > >         at
> >> > > > org.hibernate.cache.CacheFactory.createCache(CacheFactory.java
> :64)
> >> > > >         at
> >> > > >
> >> org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java :
> >> > > > 214)
> >> > > >         at
> >> > > > org.hibernate.cfg.Configuration.buildSessionFactory
> >> > > > (Configuration.jav
> >> > > > a:1218)
> >> > > >         at
> >> > > >
> >> org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSession
> >> > > > Factory(LocalSessionFactoryBean.java:807)
> >> > > >         at
> >> > > >
> >> org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessi
> >> > > > onFactory(LocalSessionFactoryBean.java:740)
> >> > > >         at
> >> > > >
> >> org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPr
> >> > > > opertiesSet(AbstractSessionFactoryBean.java:131)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> > > > Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java
> >> > > :1062)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> > > > Factory.initializeBean(AbstractAutowireCapableBeanFactory.java
> >> > > > :1029)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> > > > Factory.createBean(AbstractAutowireCapableBeanFactory.java:420)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
> >> > > > ject(AbstractBeanFactory.java:245)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
> >> > > > y.getSingleton(DefaultSingletonBeanRegistry.java:141)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> >> > > > (AbstractBeanFactory.java:242)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> >> > > > ( AbstractBeanFactory.java:156)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.BeanDefinitionValueResolver
> >> > > > .resolveReference(BeanDefinitionValueResolver.java:246)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.BeanDefinitionValueResolver
> >> > > > .resolveValueIfNecessary(BeanDefinitionValueResolver.java:128)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> > > >
> >> Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java
> :955)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> > > > Factory.populateBean(AbstractAutowireCapableBeanFactory.java:729)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> > > > Factory.createBean(AbstractAutowireCapableBeanFactory.java:416)
> >> > > >          at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
> >> > > > ject(AbstractBeanFactory.java:245)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
> >> > > > y.getSingleton( DefaultSingletonBeanRegistry.java:141)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> >> > > > (AbstractBeanFactory.java:242)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> >> > > > (AbstractBeanFactory.java:156)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.BeanDefinitionValueResolver
> >> > > > .resolveReference(BeanDefinitionValueResolver.java:246)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.BeanDefinitionValueResolver
> >> > > > .resolveValueIfNecessary(BeanDefinitionValueResolver.java :128)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> > > >
> >> Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java
> >> > > > :955)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> > > > Factory.populateBean(AbstractAutowireCapableBeanFactory.java:729)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> > > > Factory.createBean(AbstractAutowireCapableBeanFactory.java :416)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
> >> > > > ject(AbstractBeanFactory.java:245)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
> >> > > > y.getSingleton(DefaultSingletonBeanRegistry.java:141)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> >> > > > (AbstractBeanFactory.java:242)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> >> > > > (AbstractBeanFactory.java:156)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.BeanDefinitionValueResolver
> >> > > > .resolveReference( BeanDefinitionValueResolver.java:246)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.BeanDefinitionValueResolver
> >> > > > .resolveValueIfNecessary(BeanDefinitionValueResolver.java:128)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> > > >
> >> Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java
> >> > > > :955)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> > > > Factory.populateBean(AbstractAutowireCapableBeanFactory.java:729)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> > > > Factory.createBean(AbstractAutowireCapableBeanFactory.java :416)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
> >> > > > ject(AbstractBeanFactory.java:245)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
> >> > > > y.getSingleton(DefaultSingletonBeanRegistry.java:141)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> >> > > > (AbstractBeanFactory.java:242)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> >> > > > (AbstractBeanFactory.java:156)
> >> > > >         at
> >> > > >
> >> org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyC
> >> > > > reator.findCandidateAdvisors (
> AbstractAdvisorAutoProxyCreator.java
> >> > > :102)
> >> > > >         at
> >> > > >
> >> org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyC
> >> > > >
> >> reator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:68)
> >> > > >         at
> >> > > >
> >> org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyC
> >> > > > reator.getAdvicesAndAdvisorsForBean(
> >> > > AbstractAdvisorAutoProxyCreator.java
> >> > > > :54)
> >> > > >         at
> >> > > >
> >> org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator .
> >> > > > postProcessAfterInitialization(AbstractAutoProxyCreator.java:247)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> > > >
> >> Factory.applyBeanPostProcessorsAfterInitialization
> (AbstractAutowireCapableBeanFa
> >>
> >> > > > ctory.java:311)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> > > > Factory.initializeBean(AbstractAutowireCapableBeanFactory.java
> >> > > > :1038)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >> > > > Factory.createBean(AbstractAutowireCapableBeanFactory.java:420)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
> >> > > > ject(AbstractBeanFactory.java:245)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
> >> > > > y.getSingleton(DefaultSingletonBeanRegistry.java:141)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> >> > > > (AbstractBeanFactory.java:242)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> >> > > > ( AbstractBeanFactory.java:156)
> >> > > >         at
> >> > > >
> >> org.springframework.beans.factory.support.DefaultListableBeanFactory
> >> > > > .
> >> > > > getBeansOfType(DefaultListableBeanFactory.java:238)
> >> > > >         at
> >> > > >
> >> org.springframework.context.support.AbstractApplicationContext.getBea
> >> > > > nsOfType(AbstractApplicationContext.java:697)
> >> > > >         at
> >> > > >
> >> org.springframework.context.support.AbstractApplicationContext.regist
> >> > > > erListeners(AbstractApplicationContext.java:521)
> >> > > >         at
> >> > > >
> >> org.springframework.context.support.AbstractApplicationContext.refres
> >> > > > h(AbstractApplicationContext.java:345)
> >> > > >         at
> >> > > >
> >> org.springframework.web.context.support.AbstractRefreshableWebApplica
> >> > > >
> >> tionContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
> >> > > >         at
> >> > > >
> >> org.springframework.web.context.ContextLoader.createWebApplicationCon
> >> > > > text(ContextLoader.java:246)
> >> > > >         at
> >> > > >
> >> org.springframework.web.context.ContextLoader.initWebApplicationConte
> >> > > > xt(ContextLoader.java:184)
> >> > > >         at
> >> > > >
> >> org.springframework.web.context.ContextLoaderListener.contextInitiali
> >> > > > zed(ContextLoaderListener.java:49)
> >> > > >         at
> >> > > > org.appfuse.webapp.listener.StartupListener.contextInitialized
> >> > > > (Startu
> >> > > > pListener.java:48)
> >> > > >         at
> >> > > > org.apache.catalina.core.StandardContext.listenerStart
> >> (StandardContex
> >> > > > t.java:3827)
> >> > > >         at
> >> > > >
> >> org.apache.catalina.core.StandardContext.start(StandardContext.java:4
> >> > > > 343)
> >> > > >         at
> >> > > > org.apache.catalina.core.ContainerBase.addChildInternal
> >> (ContainerBase
> >> > > > .java:823)
> >> > > >         at
> >> > > >
> >> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
> >> > > > 7)
> >> > > >         at org.apache.catalina.core.StandardHost.addChild
> >> > > > (StandardHost.java :595)
> >> > > >
> >> > > >         at
> >> > > >
> >> org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDe
> >> > > > ployer.java:903)
> >> > > >         at
> >> > > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> > > >         at sun.reflect.NativeMethodAccessorImpl.invoke
> >> > > > (NativeMethodAccessorImpl.
> >> > > > java:39)
> >> > > >         at
> >> > > >
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> >> > > > sorImpl.java:25)
> >> > > >         at java.lang.reflect.Method.invoke(Method.java:585)
> >> > > >         at
> >> > > > org.apache.commons.beanutils.MethodUtils.invokeMethod
> >> > > > (MethodUtils.jav
> >> > > > a:216)
> >> > > >         at
> >> > > > org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
> >> > > >         at
> >> > > > org.apache.commons.digester.Rule.end(Rule.java:276)
> >> > > >         at org.apache.commons.digester.Digester.endElement
> >> > > > (Digester.java:1058)
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester
> >> > > > .java:76)
> >> > > >         at
> >> > > > org.apache.xerces.parsers.AbstractSAXParser.endElement (Unknown
> >> > > > Source
> >> > > > )
> >> > > >         at
> >> > > >
> >> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
> >> > > > Unknown Source)
> >> > > >         at
> >> > > >
> >> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
> >> > > > Dispatcher.dispatch(Unknown Source)
> >> > > >         at
> >> > > >
> >> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
> >> > > > known Source)
> >> > > >         at
> >> > > > org.apache.xerces.parsers.XML11Configuration.parse (Unknown
> >> > > > Source)
> >> > > >         at
> >> > > > org.apache.xerces.parsers.XML11Configuration.parse (Unknown
> >> > > > Source)
> >> > > >         at
> >> > > > org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> >> > > >         at
> >> > > > org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> >> > > > Source)
> >> > > >         at org.apache.commons.digester.Digester.parse
> >> > > > (Digester.java:1567)
> >> > > >         at
> >> > > > org.apache.catalina.core.StandardHostDeployer.install
> >> (StandardHostDep
> >> > > > loyer.java:488)
> >> > > >         at
> >> > > >
> >> org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
> >> > > >         at
> >> > > > org.apache.catalina.startup.HostConfig.deployDescriptors(
> >> HostConfig.j
> >> > > > ava:483)
> >> > > >         at
> >> > > >
> >> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427
> >> > > > )
> >> > > >         at org.apache.catalina.startup.HostConfig.start
> >> > > > (HostConfig.java :983)
> >> > > >         at
> >> > > >
> >> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
> >> > > > :349)
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
> >> > > > eSupport.java:119)
> >> > > >          at
> >> > > >
> >> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
> >> > > >
> >> > > >         at
> >> > > > org.apache.catalina.core.StandardHost.start(StandardHost.java
> :789)
> >> > > >         at
> >> > > >
> >> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
> >> > > >
> >> > > >         at
> >> > > >
> >> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478
> >> > > > )
> >> > > >         at
> >> > > >
> >> org.apache.catalina.core.StandardService.start(StandardService.java:4
> >> > > > 80)
> >> > > >         at org.apache.catalina.core.StandardServer.start
> >> > > > (StandardServer.java:231
> >> > > > 3)
> >> > > >         at
> >> > > > org.apache.catalina.startup.Catalina.start(Catalina.java:556)
> >> > > >         at
> >> > > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> > > >         at sun.reflect.NativeMethodAccessorImpl.invoke
> >> > > > (NativeMethodAccessorImpl.
> >> > > > java:39)
> >> > > >         at
> >> > > >
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> >> > > > sorImpl.java:25)
> >> > > >         at java.lang.reflect.Method.invoke(Method.java:585)
> >> > > >         at org.apache.catalina.startup.Bootstrap.start
> >> > > > (Bootstrap.java:287)
> >> > > >         at
> >> > > > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
> >> > > > Caused by: org.hibernate.cache.NoCachingEnabledException :
> >> > > > Second-level cache is
> >> > > > not enabled for usage
> >> > > > [hibernate.cache.use_second_level_cache | hibernate.cache.
> >> > > > use_query_cache]
> >> > > >         at
> >> > > > org.hibernate.cache.NoCacheProvider.buildCache
> >> (NoCacheProvider.java:2
> >> > > > 1)
> >> > > >         at
> >> > > > org.hibernate.cache.CacheFactory.createCache(CacheFactory.java
> :61)
> >> > > >         ... 103 more
> >> > > >
> >> > > >
> >> > > > Any assistance would be highly appreciated.
> >> > > >
> >> > > > Thanks.
> >> > > >
> >> > > >
> >> > > >
> >> > > >
> >> > > > On 2/13/07, Nathan Anderson <[EMAIL PROTECTED]> wrote:
> >> > > > > In that case Matt's response or the alternative I suggested
> >> should
> >> > > work
> >> > > > > just fine...
> >> > > > >
> >> > > > > Nathan
> >> > > > >
> >> > > > > Richard Nduka wrote:
> >> > > > > > Maybe my choice of words sounded rather confusing. I meant a
> >> > > scenerio
> >> > > > > > whereby you already have the picture of the person
> >> registering and
> >> > > as
> >> > > > > > part of the registration process maybe the same way you
> >> have text
> >> > > > > > boxes capturing personal details, you also have a file upload
> >> > > button
> >> > > > > > to upload this image against this user and then can be viewed
> >> > > > > > subsequently.
> >> > > > > >
> >> > > > > > On 2/13/07, *Nathan Anderson* < [EMAIL PROTECTED]
> >> > > > > > <mailto: [EMAIL PROTECTED]>> wrote:
> >> > > > > >
> >> > > > > >
> >> > > > > >     I think Matt meant "blob" rather than "blog" ;)
> >> Another way
> >> > > to do
> >> > > > > >     it is
> >> > > > > >     to use file upload to save the image to the filesystem
> and
> >> > > then
> >> > > > > >     save the
> >> > > > > >     path to the database.  But I think the reason you
> >> didn't get a
> >> > > > > >     response
> >> > > > > >     earlier [at least from me] is that it sounds like you are
> >> > > asking
> >> > > > > >     how to
> >> > > > > >     force the capture of an image during registration.  Which
> >> > > sounds
> >> > > > > >     like an
> >> > > > > >     impossible task unless a requirement of your app is to
> >> have a
> >> > > > > >     camera in
> >> > > > > >     a fixed location and then you would need to trigger the
> >> camera
> >> > > > > >     somehow...
> >> > > > > >
> >> > > > > >     Anyway, saving the picture would be the easy part in that
> >> > > scenario.
> >> > > > > >
> >> > > > > >     Nathan Anderson
> >> > > > > >
> >> > > > > >     Matt Raible wrote:
> >> > > > > >     > You could probably just do an image upload and store
> >> it as a
> >> > > blog
> >> > > > in
> >> > > > > >     > the database.  I believe folks have done this with
> >> AppFuse
> >> > > before.
> >> > > > > >     > You might try searching the archives, or looking at
> >> Spring's
> >> > > > > >     imagedb
> >> > > > > >     > sample application.
> >> > > > > >     >
> >> > > > > >     > Matt
> >> > > > > >     >
> >> > > > > >     > On 2/12/07, Richard Nduka <[EMAIL PROTECTED]
> >> > > > > >     <mailto: [EMAIL PROTECTED]>> wrote:
> >> > > > > >     >> Hi,
> >> > > > > >     >>
> >> > > > > >     >> Any assistance on this would be highly appreciated.
> >> Thanks
> >> > > a lot.
> >> > > > > >     >>
> >> > > > > >     >>
> >> > > > > >     >>
> >> > > > > >     >> On 2/12/07, Richard Nduka <[EMAIL PROTECTED]
> >> > > > > >     <mailto:[EMAIL PROTECTED]>> wrote:
> >> > > > > >     >> >
> >> > > > > >     >> >
> >> > > > > >     >> > Hi All,
> >> > > > > >     >> >
> >> > > > > >     >> > I have a requirement in my appfuse 194 application
> >> to as
> >> > > part
> >> > > > > >     of a
> >> > > > > >     >> registration process include capturing and displaying
> >> > > pictures of
> >> > > > > >     >> individuals doing the registration. Please has
> >> anyone done
> >> > > this
> >> > > > > >     >> before? How
> >> > > > > >     >> do i go about doing this? Any suggestions would be
> >> welcomed
> >> > > and
> >> > > > > >     >> appreciated.
> >> > > > > >     >> >
> >> > > > > >     >> > I am using appfuse 194 with struts and hibernate and
> >> > > using
> >> > > > > >     mysql as
> >> > > > > >     >> the
> >> > > > > >     >> database.
> >> > > > > >     >> >
> >> > > > > >     >> >
> >> > > > > >     >> > Thanks.
> >> > > > > >     >>
> >> > > > > >     >>
> >> > > > > >     >
> >> > > > > >     >
> >> > > > > >
> >> > > > > >
> >> > > >
> >> ---------------------------------------------------------------------
> >> > > > > >     To unsubscribe, e-mail:
> >> > > > [EMAIL PROTECTED]
> >> > > > > >     <mailto:[EMAIL PROTECTED]>
> >> > > > > >     For additional commands, e-mail:
> >> > > [EMAIL PROTECTED]
> >> > > > > >     <mailto:[EMAIL PROTECTED] >
> >> > > > > >
> >> > > > > >
> >> > > > >
> >> > > > >
> >> > > >
> >> ---------------------------------------------------------------------
> >> > > > > To unsubscribe, e-mail:
> >> > > > [EMAIL PROTECTED]
> >> > > > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >> > > > >
> >> > > > >
> >> > > >
> >> > > >
> >> > >
> >> > >
> >> > > --
> >> > > http://raibledesigns.com
> >> > >
> >> > >
> >> ---------------------------------------------------------------------
> >> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >> > >
> >> > >
> >> >
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to