geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay D. McHugh" <jaydmch...@gmail.com>
Subject Re: Geronimo 2.1 and Seam
Date Fri, 29 Feb 2008 19:59:18 GMT
False alarm.

It does deploy from the command line also.

I made the mistake of trying to deploy as a non-root user when Geronimo 
is installed into a directory owned by root.

It is working from the command line also.

I'll try using the patched Geronimo 2.1 to make sure that works too.

Jay

Jay D. McHugh wrote:
> Actually, it is working if I deploy from the web console.
> 
> When I try to deploy from the command line, it chokes.
> 
> So try using the console to deploy and see if that gets you there.
> 
> Jay
> 
> Jay D. McHugh wrote:
>> Burt,
>>
>> Grab a new copy of the geronimo-hibernate-transaction-manager-lookup 
>> jar (later referred to as 'ghtml.jar') from 
>> http://people.apache.org/~jaydm/hibernate and replace the file already 
>> in your Geronimo repo.
>>
>> Using a fresh trunk build and that recompiled jar file, I was able to 
>> deploy the Seam jee5 booking example.
>>
>> The old ghtml.jar was giving me unresolved import errors when I tried 
>> to  deploy (I don't know why).
>>
>> But now I am looking at the booking example (ooh pretty!).
>>
>> Are you able to get the sample running?
>>
>>
>> Jay
>>
>> David Jencks wrote:
>>>
>>> On Feb 28, 2008, at 10:01 PM, David Jencks wrote:
>>>
>>>>
>>>> On Feb 28, 2008, at 4:42 PM, Burt Prior wrote:
>>>>
>>>>>
>>>>> Hi Jacek,
>>>>>
>>>>> I just noticed something in my last posting to David. In my error 
>>>>> log I
>>>>> posted:
>>>>>
>>>>> ...
>>>>> 14:00:28,084 INFO  [Ejb3Configuration] Processing 
>>>>> PersistenceUnitInfo [
>>>>>         name: bookingDatabase
>>>>>         ...]
>>>>> 14:00:28,084 ERROR [Ejb3Configuration] Container is providing a null
>>>>> PersistenceUnitRootUrl: discovery impossible
>>>>> ...
>>>>>
>>>>> I noticed that in your "Running JBoss Seam 2 on Geronimo 2.1" 
>>>>> article, when
>>>>> you show the log, it has the same error as well.
>>>>>
>>>>> The difference appears to be, your example continues to load the 
>>>>> booking
>>>>> application, and mine throws an exception on the next line:
>>>>>
>>>>> 14:00:28,115 ERROR [GBeanInstanceState] Error while starting; GBean 
>>>>> is now
>>>>> in the FAILED state:
>>>>> abstractName="org.jboss.seam.examples.jee5/jboss-seam-jee5/2.1.0.A1/ear?EJBModule=jboss-seam-jee5.jar,J2EEApplication=org.jboss.seam.examples.jee5/jboss-seam-jee5/2.1.0.A1/ear,PersistenceUnitModule=jboss-seam-jee5.jar,j2eeType=PersistenceUnit,name=bookingDatabase"

>>>>>
>>>>> java.lang.NullPointerException
>>>>>         at
>>>>> org.jboss.util.file.ArchiveBrowser.getBrowser(ArchiveBrowser.java:62)
>>>>>         at
>>>>> org.hibernate.ejb.Ejb3Configuration.scanForXmlFiles(Ejb3Configuration.java:606)

>>>>>
>>>>>         at
>>>>> org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:351)

>>>>>
>>>>>         at
>>>>> org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:126)

>>>>>
>>>>>         at
>>>>> org.apache.geronimo.persistence.PersistenceUnitGBean.<init>(PersistenceUnitGBean.java:119)

>>>>>
>>>>>
>>>>> ...
>>>>>
>>>>> I thought it was interesting that although we recieved the same 
>>>>> error, your
>>>>> example continued to deploy and run, and mine stopped the deploy 
>>>>> with those
>>>>> exceptions.
>>>>
>>>> I browsed the hibernate code a bit and think that maybe you are 
>>>> using different versions of hibernate?  In
>>>>
>>>> http://fisheye.jboss.com/browse/Hibernate/entitymanager/trunk/src/java/org/hibernate/ejb/Ejb3Configuration.java?r=11344

>>>>
>>>>
>>>> the error message is right before some code that uses the 
>>>> PersistenceUnitRootUrl whereas in a later version of the code the 
>>>> message is immediately followed by "return".
>>>>
>>>> I looked in the geronimo code a bit more and haven't figured out how 
>>>> this can be null.....
>>>
>>> Further investigation after some sleep revealed a bug right next to 
>>> the previous one.  I've fixed it and pushed a new snapshot of 
>>> geronimo-persistence-jpa10-2.2-20080229.155614-3.jar.  If you get 
>>> this one in your g. repo just like you did with the previous jar you 
>>> should be able to get farther.
>>>
>>> thanks
>>> david jencks
>>>
>>>>
>>>> Where in the ear is the persistence unit?
>>>>
>>>> thanks
>>>> david jencks
>>>>
>>>>>
>>>>> Thanks,
>>>>> .Burt
>>>>>
>>>>>
>>>>>
>>>>> Jacek Laskowski wrote:
>>>>>>
>>>>>> On Wed, Feb 27, 2008 at 5:51 PM, David Jencks 
>>>>>> <david_jencks@yahoo.com>
>>>>>> wrote:
>>>>>>
>>>>>>>  did you complain about this on the lists when you found the

>>>>>>> problem?
>>>>>>
>>>>>> Complain? No, not at all. Just put a note with other stuff and it
>>>>>> might not get enough attention. See
>>>>>> http://www.nabble.com/forum/ViewPost.jtp?post=13785778.
>>>>>>
>>>>>> Jacek
>>>>>>
>>>>>> -- 
>>>>>> Jacek Laskowski
>>>>>> http://www.JacekLaskowski.pl
>>>>>>
>>>>>>
>>>>>
>>>>> -- 
>>>>> View this message in context: 
>>>>> http://www.nabble.com/Geronimo-2.1-and-Seam-tp15621154s134p15749616.html

>>>>>
>>>>> Sent from the Apache Geronimo - Users mailing list archive at 
>>>>> Nabble.com.
>>>>>
>>>>
>>>
>>>

Mime
View raw message