Re: Getting hibername / database setup

Aaron Held <[email protected]> Mon, 16 Jun 2003 12:02:57 -0400
Newsgroups gmane.comp.java.javalobby.communityplatform
Message-ID <[email protected]>
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
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>>
>