Hi Francesco,

My cargo config is attached in cargo.xml.

The 2 resources attached means:
First I create 2 connectors and resources in Syncope. The resource names
"Resource1" and "Resource2".
Than I want to create a Role in Syncope, and this Role has a set of
Resources, with "Resource1" and "Resource2".

When running this test on Syncope, deployed on standard tomcat install,
with mysql, everything works fine.
When running on tomcat that is managed by cargo, using h2 database, only
"Resource1" is attached in Syncope to the Role created.

Hope this makes things clear.
Regards,
Ernst




2013/2/20 Francesco Chicchiriccò <[email protected]>

> On 20/02/2013 16:36, ernst Developer wrote:
>
>> Hi,
>>
>> I am running syncope on my localhost, using cargo. I configured the h2
>> database in persistence.properties. Everything is working fine. Except when
>> I create a Role with 2 resources attached, Only the first resource is
>> found. Both resources exist in Syncope. Does anybody have any idea?
>>
>
> Are you running in embedded mode or instead deploying Syncope (core and
> console) into an external Tomcat, but using H2 for internal storage?
>
> Anyway, can you detail the "2 resources attached"?
>
> Regards.
>
>
>  I looked into our default installation, using tomcat and mysql. I was
>> able to create a Role with 2 resources. In that setup all is working fine.
>>
>
> --
> Francesco Chicchiriccò
>
> ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
> http://people.apache.org/~**ilgrosso/<http://people.apache.org/~ilgrosso/>
>
>
            <plugin>
                <groupId>org.codehaus.cargo</groupId>
                <artifactId>cargo-maven2-plugin</artifactId>
                <version>1.3.2</version>
                <dependencies>
                    <dependency>
                        <groupId>com.h2database</groupId>
                        <artifactId>h2</artifactId>
                        <version>1.3.170</version>
                    </dependency>
                    <dependency>
                        <groupId>mysql</groupId>
                        <artifactId>mysql-connector-java</artifactId>
                        <version>5.1.23</version>
                    </dependency>
                </dependencies>
                <configuration>
                    <container>
                        <containerId>tomcat7x</containerId>
                        <zipUrlInstaller>
                            <url>http://archive.apache.org/dist/tomcat/tomcat-7/v${tomcat.version}/bin/apache-tomcat-${tomcat.version}.zip</url>
                            <downloadDir>${settings.localRepository}/org/codehaus/cargo/cargo-container-archives</downloadDir>
                            <extractDir>${project.build.directory}/cargo/extract</extractDir>
                        </zipUrlInstaller>
                        <log>${cargo.log}</log>
                        <output>${cargo.output}</output>
                        <dependencies>
                            <dependency>
                                <groupId>com.h2database</groupId>
                                <artifactId>h2</artifactId>
                                <classpath>shared</classpath>
                            </dependency>
                            <dependency>
                                <groupId>mysql</groupId>
                                <artifactId>mysql-connector-java</artifactId>
                                <classpath>shared</classpath>
                            </dependency>
                        </dependencies>
                    </container>
                    <configuration>
                        <type>standalone</type>
                        <properties>
                            <cargo.servlet.port>${cargo.servlet.port}</cargo.servlet.port>
                            <cargo.tomcat.ajp.port>${cargo.tomcat.ajp.port}</cargo.tomcat.ajp.port>
                            <cargo.rmi.port>${cargo.rmi.port}</cargo.rmi.port>
                            <!--<cargo.jvmargs>-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n</cargo.jvmargs>-->
                            <cargo.jvmargs>
                                -noverify ${javaagent}
                                -Drebel.spring_plugin=false
                                -XX:+CMSClassUnloadingEnabled
                                -XX:+UseConcMarkSweepGC
                                -XX:MaxPermSize=256m
                                -Xdebug
                                -Xnoagent
                                -Djava.compiler=NONE
                                -Xrunjdwp:transport=dt_socket,address=4011,server=y,suspend=n
                            </cargo.jvmargs>
                        </properties>
                    </configuration>
                    <deployables>
                        <deployable>
                            <groupId>nl.iwelcome.syncope</groupId>
                            <artifactId>core</artifactId>
                            <type>war</type>
                            <properties>
                                <context>/syncope</context>
                            </properties>
                        </deployable>
                        <deployable>
                            <groupId>nl.iwelcome</groupId>
                            <artifactId>some-iwelcome-service</artifactId>
                            <type>war</type>
                            <properties>
                                <context>some iwelcome context</context>
                            </properties>
                        </deployable>
                    </deployables>
                </configuration>
                <executions>
                    <execution>
                        <id>start-container</id>
                        <phase>pre-integration-test</phase>
                        <goals>
                            <goal>start</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>stop-container</id>
                        <phase>post-integration-test</phase>
                        <goals>
                            <goal>stop</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

Reply via email to