On 22/10/2013 17:01, Paolo Stopponi wrote:
Hi Francesco,
I download jboss 7.1.1 (http://www.jboss.org/jbossas/downloads/) and i deployed SyncopeOnJboss. In attachment persistenceContextEMFactory.xml with fix (https://cwiki.apache.org/confluence/display/SYNCOPE/Run+Syncope+in+real+environments#RunSyncopeinrealenvironments-JBossAS7.1), but it's not work.

Can you tell me JBoss Version(link) that you use?

Hi,
here's what I did, on a clean environment:

1. downloaded JBoss AS 7.1.1 from http://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as-7.1.1.Final.zip 2. uncompressed JBoss ZIP in /tmp, started via /tmp/jboss-as-7.1.1.Final/bin/standalone.sh, added an admin user
3. cloned syncopeOnJBoss from [email protected]:Tirasa/syncopeOnJBoss.git
4. built (3) via 'mvn clean package'
5. logged in to http://localhost:9990/console with the admin user created in (2) 6. went to Deployments > Manage Deployments > Add Content, chosen core/target/syncope.war produced at step (4), finally enabled the 'syncope.war' deployment 7. accessed http://localhost:8080/syncope/rest/configuration/list.xml (providing admin / password credentials)

Now Syncope core works fine; then

8. went to Deployments > Manage Deployments > Add Content, chosen console/target/syncope-console.war produced at step (4), finally enabled the 'syncope-console.war' deployment 9. accessed http://localhost:8080/syncope-console (providing admin / password credentials)

Now Syncope console works fine as well.

Regards.

2013/10/22 Francesco Chicchiriccò <[email protected] <mailto:[email protected]>>

    On 20/10/2013 21:45, Paolo Stopponi wrote:


        Hi,
         I have a problem with Syncope v.1.1.4, because it's not
        compatible with
         Jboss 7.1.1.
         I use this configuration for environment:
         Application-server: Jboss AS 7 (EAP 6.1)
         JDK: v. 1.7
         Oracle 11g
         Syncope v. 1.1.4
         OpenJPA v. 2.2.2


         I tried  also with https://github.com/Tirasa/syncopeOnJBoss,
        but it's not work.

         What may be the problem?


    Hi,
    Syncope 1.1.X has proven to be fully compatible with JBoss AS
    7.1.1 and features a dedicated integration test profile for
    checking this specific compatibility.

    Moreover, my company currently hosts our public Syncope demo [1]
    at OpenShift (via JBoss AS 7.1.1)

    We have created the sample project, hosted at GitHub, reported
    above, only to show a sample of how Syncope can be configured to
    run with JBoss AS 7.1.1, as reported in [2].

    Having said this, I am not sure at all that EAP 6.1 is fully
    equivalent to JBoss AS 7.1.1 - the fix we use (e.g.
    JBossPersistenceMappingFactory) for making OpenJPA able to run
    with JBoss is working AFAIK only with JBoss AS > 7.1; the error
    message below:


          Caused by:
         org.apache.openjpa.persistence.ArgumentException: An error
         occurred while parsing the query filter "SELECT e FROM
        ExternalResource e".
         Error message: The name "ExternalResource" is not a
        recognized entity or
         identifier. Perhaps you meant ExternalResource, which is a
        close match.
         Known entity names: [AbstractSchema, ExternalResource,
        RAttrUniqueValue,
         Abstract


    only confirms my suspects: either JBossPersistenceMappingFactory
    is not configured correctly or simply does not work with your
    JBoss version.

    Regards.

    [1] http://syncopedemo.tirasa.net/
    [2]
    
https://cwiki.apache.org/confluence/display/SYNCOPE/Run+Syncope+in+real+environments#RunSyncopeinrealenvironments-JBossAS7.1

--
Francesco Chicchiriccò

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/

Reply via email to