Re: Getting hibername / database setup
Aaron Held <[email protected]> Mon, 16 Jun 2003 15:17:28 -0400
| Newsgroups | gmane.comp.java.javalobby.communityplatform |
|---|---|
| Message-ID | <[email protected]> |
Thanks a bunch, Due to your persistence and some extra docs I can now view a java.lang.NullPointerException in a web browser! Seriously though, I am very interested in this project, but I need to be able to get the CVS version, I think that I am working with an older set of files. I'll try again in a few days, maybe CVS will be up by then. In the meantime I am launching another hacked up PHP site (this one based on Drupal) so I look forward to a time that I can migrate to a common code base. Thanks, -Aaron Held (Not giving up, just have a multi-pages of SQL that needs to be turned into a user queriable web report) Matthew Schmidt wrote: > Don't get me started about anonymous CVS on SF. We'll likely be > moving the CVS from SF to our own site hopefully based on CollabNet. > Does anyone know of any other alternatives to SF that we could install > on our services? Perhaps some open source? > > -Matt > > Aaron Held wrote: > >> Thanks, >> >> The .pdf works! >> >> I'll give it a try. I grabbed some other material about the >> datasource setup, but I am still missing something. >> >> I am a little concerned about the CVS though, I probably do not have >> the latest version. I tried it on a Linux system and still do not >> see this doc. >> The newest files that I have are from Jun 8. >> >> Maybe its a sf issue w/ anonymous CVS? >> I track CVS in some other projects, I'll check them as well. >> >> Thanks, >> -Aaron >> >> >> Matthew Schmidt wrote: >> >>> There ya go. Please let me know if the tutorial helps/doesn't work >>> and I'll update it. >>> >>> -Matt >>> >>> Aaron Held wrote: >>> >>>> I am having a lot of trouble logging into cvs.sf.net as well, it >>>> takes 5-10 tried to get an anon connection. >>>> >>>> Is there a certain branch or tag that I have to use? >>>> >>>> I'll keep working on it, I'll try a linux box next. In the >>>> meantime can you resend that doc? (Its not up on the public CVS >>>> site yet.) >>>> >>>> Thanks, >>>> -Aaron Held >>>> >>>> Matthew Schmidt wrote: >>>> >>>>> Aaron, >>>>> Hmm, that's very weird. It looks like its in my CVS. On two >>>>> different machines it appears to be in the repository. Here is >>>>> the output from my console: >>>>> >>>>> [zeus:java/jlcp-0.9.0/docs] matt% ls >>>>> CVS jlcp-tomcat-howto.doc licenses >>>>> design jlcp-tomcat-howto.pdf userguide >>>>> >>>>> That's with the latest source tree. They both appear to be >>>>> committed. I have no idea what is going on. You're definitely >>>>> checking out the correct module. >>>>> >>>>> -Matt >>>>> >>>>> >>>>> >>>>> Aaron Held wrote: >>>>> >>>>>> I am looking in CVS, is there some tag I have to specify???? >>>>>> >>>>>> Is this the correct place? : >>>>>> http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/gotjava/gotjava/docs/ >>>>>> >>>>>> I realize that the web view may be a day late and I am using both >>>>>> the cygwin cvs command as well as smartCVS. I just checked the >>>>>> "gotjava" module, but I still do not see the file in the docs >>>>>> directory? >>>>>> >>>>>> Am I missing something?? >>>>>> >>>>>> -Aaron >>>>>> >>>>>> Matthew Schmidt wrote: >>>>>> >>>>>>> Ok, its definitely in CVS. I will check on my windows machine >>>>>>> to see whether the PDF works. There is also a Word version. >>>>>>> Sorry for the crappy format, but that's what I used to write >>>>>>> it. The PDF was automatically generated by OS X. >>>>>>> >>>>>>> -Matt >>>>>>> >>>>>>> Aaron Held wrote: >>>>>>> >>>>>>>> Thanks, >>>>>>>> >>>>>>>> But I can't read the pdf and nothing in CVS yet. >>>>>>>> >>>>>>>> -Aaron Held >>>>>>>> >>>>>>>> Matt Schmidt wrote: >>>>>>>> >>>>>>>>> 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 >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> >>>> >>>> >> >> >