I am now using the latest nightly build of JBoss IDE.
When I deploy to jboss-4.0.4RC1 I am informed that JBoss cannot deploy the war
file successfully. However this message is preceded by the following errors:
2006-02-13 21:10:03,203 FATAL
[org.hibernate.ejb.packaging.PersistenceXmlLoader] entityManager JTA
2006-02-13 21:10:09,328 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/seamapp]]
Exception sending context initialized event to listener instance of class
org.jboss.seam.servlet.SeamListener
java.lang.IllegalStateException: Missing value() for @DataModelSelection with
multiple @DataModels
I am using the following configuration files:
seam.properties
| org.jboss.seam.core.init.jndiPattern seamapp/#{ejbName}/local
|
persistence.xml
| <persistence>
| <persistence-unit name="entityManager">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>java:/phicorpBookingDataSource</jta-data-source>
| <properties>
| <property name="hibernate.dialect"
value="org.hibernate.dialect.PostgreSQLDialect"/>
| <property name="hibernate.transaction.manager_lookup_class"
value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
| <property name="hibernate.transaction.flush_before_completion"
value="true"/>
| <!-- property name="hibernate.hbm2ddl.auto" value="create-drop"/
-->
| <!-- property name="hibernate.show_sql" value="true"/ -->
| </properties>
| </persistence-unit>
| </persistence>
|
phicorp-booking-ds.xml
| <?xml version="1.0" encoding="UTF-8"?>
| <datasources>
| <local-tx-datasource>
| <jndi-name>phicorpBookingDataSource</jndi-name>
|
<connection-url>jdbc:postgresql://localhost:5432/phicorp_booking_development</connection-url>
| <driver-class>org.postgresql.Driver</driver-class>
| <user-name>phicorp_booking_dev_user</user-name>
| <password>phicorp_booking_dev_user</password>
| </local-tx-datasource>
| </datasources>
|
Can you see any errors in my configuration, and comment on the
@DataModelSelection error?
Many thanks,
Bruce.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923442#3923442
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923442
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user