[jboss-user] [EJB 3.0] - Re: RC9 is out
Wolfgang Knauf
do-not-reply at jboss.com
Wed Sep 20 16:11:16 EDT 2006
Some changes from 4.0.4 with installer for RC8 to 4.0.5CR1/RC9 that I noticed (I hope someone can comment on them):
Libraries:
\client\jboss-ejb3-client.jar was before split to jboss-ejb3-client.jar and jboss-ejb3x.jar
\client\jboss-aop-jdk50-client.jar and \client\jboss-aspect-jdk50-client.jar are no longer installed (now only in deploy\ejb3.deployer)
Will those JAR changes also take place in the installer for 4.0.5 ? This is quite important to me because I modified a Eclipse WTP JBoss plugin to work with 4.0.4 and now my JAR file references need to be changed)
================
Installing to "deploy" configuration:
If I deploy an EJB3 application (EAR file with EJB and AppClient project referencing application_5.xsd, ejb-jar_3_0.xsd, persistence_1_0.xsd and application-client_5.xsd) the server loads javaee_web_services_client_1_2.xsd from the internet. If there is no internet connection this message can be found in the log:
21:58:57,718 WARN [JBossEntityResolver] Cannot load systemId from resource: javaee_web_services_client_1_2.xsd
21:58:57,734 WARN [SaxJBossXBParser] schema_reference.4: Failed to read schema document 'javaee_web_services_client_1_2.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. @ http://java.sun.com/xml/ns/javaee/javaee_5.xsd[78,69]
21:58:57,750 WARN [ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=KuchenSimpleEJB.jar
org.jboss.xb.binding.JBossXBException: Failed to parse source: src-resolve: Cannot resolve the name 'javaee:service-refGroup' to a(n) 'group' component. @ http://java.sun.com/xml/ns/javaee/javaee_5.xsd[798,49]
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:156)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:169)
at org.jboss.ejb3.metamodel.EjbJarDDObjectFactory.parse(EjbJarDDObjectFactory.java:87)
at org.jboss.ejb3.Ejb3HandlerFactory$DDFactory.(Ejb3HandlerFactory.java:44)
at org.jboss.ejb3.Ejb3HandlerFactory.getInstance(Ejb3HandlerFactory.java:83)
...
With an internet connection the file is loaded.
This worked with 4.0.4.
====================
Removing a detached entity worked with 4.0.4/RC8 (I did not know I did something wrong ;-) ), now it throws this exception:
Caused by: java.lang.IllegalArgumentException: Removing a detached instance de.fhw.swtvertiefung.knauf.kuchen.KuchenSimpleBean#1
at org.hibernate.ejb.event.EJB3DeleteEventListener.performDetachedEntityDeletionCheck(EJB3DeleteEventListener.java:47)
at org.hibernate.event.def.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:75)
at org.hibernate.event.def.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:49)
at org.hibernate.impl.SessionImpl.fireDelete(SessionImpl.java:766)
at org.hibernate.impl.SessionImpl.delete(SessionImpl.java:744)
at org.hibernate.ejb.AbstractEntityManagerImpl.remove(AbstractEntityManagerImpl.java:245)
at org.jboss.ejb3.entity.TransactionScopedEntityManager.remove(TransactionScopedEntityManager.java:187)
at de.fhw.swtvertiefung.knauf.kuchen.KuchenWorkerBean.deleteKuchen(KuchenWorkerBean.java:32)
I did not find anything about such a change in the release notes.
Will have to modify my code a bit ;-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973069#3973069
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973069
More information about the jboss-user
mailing list