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? Thanks. Paolo S. 2013/10/22 Francesco Chicchiriccò <[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<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<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/<http://people.apache.org/~ilgrosso/> > >
<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> <property name="persistenceXmlLocation" value="classpath*:META-INF/spring-persistence.xml"/> <property name="persistenceUnitName" value="syncopePersistenceUnit"/> <property name="dataSource" ref="dataSource"/> <property name="jpaVendorAdapter"> <bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter"> <property name="showSql" value="false"/> <property name="generateDdl" value="true"/> <property name="databasePlatform" value="${jpa.dialect}"/> </bean> </property> <property name="jpaPropertyMap"> <map> <!--<entry key="openjpa.Log" value="SQL=TRACE"/> <entry key="openjpa.ConnectionFactoryProperties" value="PrettyPrint=true, PrettyPrintLineLength=80"/>--> <entry key="openjpa.NontransactionalWrite" value="false"/> <entry key="openjpa.AutoDetach" value="close, commit, nontx-read, rollback"/> <entry key="openjpa.jdbc.SchemaFactory" value="native(ForeignKeys=true)"/> <entry key="openjpa.jdbc.MappingDefaults" value="ForeignKeyDeleteAction=restrict, JoinForeignKeyDeleteAction=restrict"/> <entry key="openjpa.ReadLockLevel" value="none"/> <entry key="openjpa.WriteLockLevel" value="write"/> <entry key="openjpa.LockTimeout" value="30000"/> <entry key="openjpa.DataCache" value="true" /> <entry key="openjpa.QueryCache" value="true"/> <entry key="openjpa.RemoteCommitProvider" value="sjvm"/> <entry key="openjpa.MetaDataFactory" value="org.apache.syncope.core.persistence.openjpa.JBossPersistenceMappingFactory(URLs=vfs:/content/syncope.war/WEB-INF/classes/, Resources=META-INF/orm.xml)"/> </map> </property> </bean> </beans>
