Re: Getting hibername / database setup
"Matt Schmidt" <[email protected]> Fri, 13 Jun 2003 01:38:34 -0400
| Newsgroups | gmane.comp.java.javalobby.communityplatform |
|---|---|
| Message-ID | <[email protected]> |
Well I got the Tomcat tutorial finished before I said I would. Please read over it and let me know if it was helpful. I have attached the PDF version since I think its easier to read anyway ;) I will also put this into CVS in gotjava\docs. -Matt On Thu, 12 Jun 2003 11:18:06 -0400 Aaron Held <[email protected]> wrote: >I'll give it another shot. I'll look into orion. >I'll plow on and get it going. >Thanks, >-Aaron > >Matt Schmidt wrote: > >>Ok, first you need to modify a local.properties file like >>it suggests >>in the INSTALL doc. This requires changing a few >>settings. I would >>suggest using MySQL if you can, as the URLs are a bit >>easier. In this >>INSTALL doc, you'll only want to pay attention to the >>part about >>local.properties. It also appears that yo are using >>Tomcat. You'll >>need to copy the jars from gotjava\lib\optional\tomcat >>into >>tomcat\common\libs and then setup a datasource using the >>JOTM >>manager. I'm not sure whether we have a doc on that yet, >>but I'll try >>and right one on the plane on Friday. After you get that >>setup, you >>need to make a few more changes to local.properties and >>run ant >>tomcat-war. Copy this to your webapps, add it to your >>context and >>then run :) I'll definitely write a better doc on Friday >>and put it >>in CVS. Your other option is to download Orion and use >>that, following >>the INSTALL doc. >> >>-Matt >>On Wed, 11 Jun 2003 11:48:07 -0400 >> Aaron Held <[email protected]> wrote: >> >>>I'm trying to run the CVS version and having trouble >>> >>>Running the createdb task yields a stack trace ending in: >>>Error creating schema Could not find datasource: Can't >>>find >>>SerialContextProvider >>> [java] net.sf.hibernate.HibernateException: Could not >>>find >>>datasource: Can't find SerialContextProvider >>> [java] at >>>net.sf.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:155) >>> >>> [java] at >>>net.sf.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:284) >>> >>>And plowing ahead by running the ant-built war gives me >>>this: >>> >>>java.lang.NullPointerException >>> at >>>org.jlcp.infrastructure.persistence.hibernate.web.HibernateSessionFilter.doFilter(HibernateSessionFilter.java:65) >>> >>> at >>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) >>> >>> at >>>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) >>> >>> at >>>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) >>> >>> at >>>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) >>> >>> at >>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) >>> >>> >>>I assume there is some file somewhere that I have to >>>setup to tell it >>>about the database I would like to use. >>> >>>I would like to use the simplest database for now, mckoi >>>is fine, but >>>I do not see the jar in the >>>webapps/WebINF dir. I also have mySQL running if needed. >>> >>>Thanks, >>>-Aaron Held >>> >>> >>> >> > >
jlcp-tomcat-howto.pdf
(application/pdf, 91.4 KB) - not displayed