You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@roller.apache.org by fp <Fr...@impaqgroup.com> on 2007/12/18 10:39:51 UTC

Re: Roller 4.0 RC8 on Geronimo 2.0.2

Hi Dave,Matt,

i've a Problem with Geronimo 2.0.2 and Roller 4.0 and derby 10.2.2
Perhapse it's because roller uses openjpa-0.9.7-incubating.jar and Geronimo
openjpa-1.0.0.jar.

I could create the derby-Database and a User, but I couldn't create  a
weblog.
 because of an Foreign-Key-Vailolation
 <openjpa-1.0.0-r420667:568756 fatal store error> 
 org.apache.openjpa.persistence.RollbackException: The transaction  has been
rolled back.  See the nested exceptions for details on the  errors that
occurred. Caused by: <openjpa-1.0.0-r420667:568756 nonfatal general error>
org.apache.openjpa.persistence.PersistenceException: INSERT on 
table 'BOOKMARK' caused a violation of foreign key constraint 
'BM_FOLDERID_FK' for key (635f6ed4-6dc7-4db6-9787-8e7c5eccfbd9).  
The statement has been rolled back. {prepstmnt 3444850 INSERT INTO bookmark
(id, description, feedurl, image, name, priority, url, 
 weight, folderid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [params=
(String) 006cb728-13ed-4fd3-b7ab-a32cb364dba4, (String) , (null) 
 null, (null) null, (String) Matt Raible, (int) 0, (String) http://
 raibledesigns.com/page/rd, (int) 0, (String) 
 635f6ed4-6dc7-4db6-9787-8e7c5eccfbd9]} [code=20000, state=23503]
 INSERT on table 'BOOKMARK' caused a violation of foreign key 
 constraint 'BM_FOLDERID_FK' for key 
 (635f6ed4-6dc7-4db6-9787-8e7c5eccfbd9).  The statement has been 
 rolled back. {prepstmnt 3444850 INSERT INTO bookmark (id, 
 description, feedurl, image, name, priority, url, weight, folderid) 
 VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [params=(String) 
 006cb728-13ed-4fd3-b7ab-a32cb364dba4, (String) , (null) null, 
(null) null, (String) Matt Raible, (int) 0, (String) http://
 raibledesigns.com/page/rd, (int) 0, (String) 
 635f6ed4-6dc7-4db6-9787-8e7c5eccfbd9]} [code=20000, state=23503]

 Strange, because the same derby-database worked fine with the same 
 roller 4.0 and TOMCAT 6.0.14.
Any idee or Help


mraible wrote:
> 
> I'll commit this shortly.
> 
> Matt
> 
> On 10/23/07, Dave <sn...@gmail.com> wrote:
>> On 10/23/07, Dave <sn...@gmail.com> wrote:
>> > I don't have any problem dropping that in as long as it works and we
>> > can get a CLA on file for Phillip. There's no risk of regression since
>> > the class is totally isolated and only comes into play w/CAS.
>>
>> Phillip is going to submit a CLA so please commit that CAS populator.
>>
>> I hope to have some time this week to spin a new RC.
>>
>> Thanks,
>> Dave
>>
> 
> 
> -- 
> http://raibledesigns.com
> 
> 

-- 
View this message in context: http://www.nabble.com/Roller-4.0-RC8-on-Geronimo-2.0.2-tp13335292s12275p14388628.html
Sent from the Roller - Dev mailing list archive at Nabble.com.


Re: Roller 4.0 RC8 on Geronimo 2.0.2

Posted by Jonathan Chen <da...@gmail.com>.
Try using the deployment plan from the archives:

http://mail-archives.apache.org/mod_mbox/roller-dev/200710.mbox/%3cb72e8fc60710011426t635a87f9ub5a3e5b0b7c6f17b@mail.gmail.com%3e

The filtered entries will load from the enclosed archive rather than
the container.

Hope this helps.
-- 
Jonathan Chen <da...@gmail.com>

Re: Roller 4.0 RC8 on Geronimo 2.0.2

Posted by fp <Fr...@impaqgroup.com>.


Dave Johnson-8 wrote:
> 
> On Dec 18, 2007 4:39 AM, fp <Fr...@impaqgroup.com> wrote:
>> Hi Dave,Matt,
>> i've a Problem with Geronimo 2.0.2 and Roller 4.0 and derby 10.2.2
>> Perhapse it's because roller uses openjpa-0.9.7-incubating.jar and
>> Geronimo
>> openjpa-1.0.0.jar.
>>
>> I could create the derby-Database and a User, but I couldn't create  a
>> weblog.
>>  because of an Foreign-Key-Vailolation
>>  <openjpa-1.0.0-r420667:568756 fatal store error>
> 
> Yep, Roller 4.0 will not work with OpenJPA 1.0. We include OpenJPA
> 0.9.7 and that's what we expect Roller to use.
> 
> - Dave
> 
> 

Whe I just use the Geronimo Ressourcen deployed with a deploymenplan

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0">

    <environment>
        <moduleId>
            <artifactId>Roller</artifactId>
        </moduleId>
        <dependencies>
            <dependency>
                <groupId>console.dbpool</groupId>
                <artifactId>derby</artifactId>
            </dependency>
            <dependency>
                <groupId>org.apache.geronimo.configs</groupId>
                <artifactId>javamail</artifactId>
                <type>car</type>
            </dependency>
        </dependencies>
    </environment>

    <context-root>/roller</context-root>

    <!-- define a reference name to the db pool-->
    <resource-ref>
        <ref-name>jdbc/rollerdb</ref-name>
        <resource-link>derby</resource-link>
    </resource-ref>

    <resource-ref>
        <ref-name>mail/Session</ref-name>
        <!-- Default Geronimo mail session -->
        <resource-link>mail/MailSession</resource-link>
    </resource-ref>
</web-app>

I can create Blog's, Register user with
http://localhost:8080/roller/roller-ui/register.rol. 
Only as an Admin I can't create a user with
http://localhost:8080/roller/roller-ui/admin/createUser.rol. Theres is still
the SQL-Error
So better use the Ressource-Provider from Geronimo, to get it running not
the installation.type=auto
And also increase the JVM  -XX:MaxPermSize=128m in this combination
-- 
View this message in context: http://www.nabble.com/Roller-4.0-RC8-on-Geronimo-2.0.2-tp13335292s12275p14397208.html
Sent from the Roller - Dev mailing list archive at Nabble.com.


Re: Roller 4.0 RC8 on Geronimo 2.0.2

Posted by Dave <sn...@gmail.com>.
On Dec 18, 2007 4:39 AM, fp <Fr...@impaqgroup.com> wrote:
> Hi Dave,Matt,
> i've a Problem with Geronimo 2.0.2 and Roller 4.0 and derby 10.2.2
> Perhapse it's because roller uses openjpa-0.9.7-incubating.jar and Geronimo
> openjpa-1.0.0.jar.
>
> I could create the derby-Database and a User, but I couldn't create  a
> weblog.
>  because of an Foreign-Key-Vailolation
>  <openjpa-1.0.0-r420667:568756 fatal store error>

Yep, Roller 4.0 will not work with OpenJPA 1.0. We include OpenJPA
0.9.7 and that's what we expect Roller to use.

- Dave