[JBoss Seam] - seam-gen setup and maven
by atao
I just updated seam from cvs and tried to created a new project.
When I run "seam setup" I get:
anonymous wrote :
| Buildfile: C:\DEV\projects\eclipse\workspace\seam-cvs\seam-gen\build.xml
|
| init:
| [artifact:dependencies] Downloading: org/jboss/seam/jboss-seam-gen/${version}.${patchlevel}/jboss-seam-gen-${version}.${
| patchlevel}.pom
| [artifact:dependencies] [WARNING] POM for 'org.jboss.seam:jboss-seam-gen:pom:${version}.${patchlevel}:compile' is invali
| d. It will be ignored for artifact resolution. Reason: The POM expression: ${version} could not be evaluated. Reason: Ex
| pression value '${version}.${patchlevel}' references itself in 'org.jboss.seam:jboss-seam-gen:pom:${version}.${patchleve
| l}'. for project org.jboss.seam:jboss-seam-gen at Artifact [org.jboss.seam:jboss-seam-gen:pom:${version}.${patchlevel}:c
| ompile]
| [artifact:dependencies] Downloading: org/jboss/seam/jboss-seam-gen/${version}.${patchlevel}/jboss-seam-gen-${version}.${
| patchlevel}.jar
| [artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
| [artifact:dependencies] Diagnosis:
| [artifact:dependencies]
| [artifact:dependencies] Unable to resolve artifact: Missing:
| [artifact:dependencies] ----------
| [artifact:dependencies] 1) org.jboss.seam:jboss-seam-gen:jar:${version}.${patchlevel}
| [artifact:dependencies]
| [artifact:dependencies] Try downloading the file manually from the project website.
| [artifact:dependencies]
| [artifact:dependencies] Then, install it using the command:
| [artifact:dependencies] mvn install:install-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-gen \
| [artifact:dependencies] -Dversion=${version}.${patchlevel} -Dpackaging=jar -Dfile=/path/to/file
| [artifact:dependencies] Alternatively, if you host your own repository you can deploy the file there: mvn deploy:d
| eploy-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-gen \
| [artifact:dependencies] -Dversion=${version}.${patchlevel} -Dpackaging=jar -Dfile=/path/to/file \
| [artifact:dependencies] -Durl=[url] -DrepositoryId=[id]
| [artifact:dependencies]
| [artifact:dependencies] Path to dependency:
| [artifact:dependencies] 1) unspecified:unspecified:jar:0.0
| [artifact:dependencies] 2) org.jboss.seam:jboss-seam-gen:jar:${version}.${patchlevel}
| [artifact:dependencies]
| [artifact:dependencies] ----------
| [artifact:dependencies] 1 required artifact is missing.
| [artifact:dependencies]
| [artifact:dependencies] for artifact:
| [artifact:dependencies] unspecified:unspecified:jar:0.0
| [artifact:dependencies]
| [artifact:dependencies] from the specified remote repositories:
| [artifact:dependencies] central (http://repo1.maven.org/maven2)
| [artifact:dependencies]
| [artifact:dependencies]
|
| BUILD FAILED
| C:\DEV\projects\eclipse\workspace\seam-cvs\seam-gen\build.xml:25: Unable to resolve artifact: Missing:
| ----------
| 1) org.jboss.seam:jboss-seam-gen:jar:${version}.${patchlevel}
|
| Try downloading the file manually from the project website.
|
| Then, install it using the command:
| mvn install:install-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-gen \
| -Dversion=${version}.${patchlevel} -Dpackaging=jar -Dfile=/path/to/file
| Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org
| .jboss.seam -DartifactId=jboss-seam-gen \
| -Dversion=${version}.${patchlevel} -Dpackaging=jar -Dfile=/path/to/file \
| -Durl=[url] -DrepositoryId=[id]
|
| Path to dependency:
| 1) unspecified:unspecified:jar:0.0
| 2) org.jboss.seam:jboss-seam-gen:jar:${version}.${patchlevel}
|
| ----------
| 1 required artifact is missing.
|
| for artifact:
| unspecified:unspecified:jar:0.0
|
| from the specified remote repositories:
| central (http://repo1.maven.org/maven2)
|
|
| Total time: 2 seconds
|
|
I don't know Maven. It seams that version and patchlevel should be initialized.
Am'I right? If so, where this must be done?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087554#4087554
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087554
18 years, 7 months
[EJB 3.0] - Inheritence and EJBQL
by tynor
Can EJBQL be used to query polymorphically? I cannot find any examples in the spec or in Bill Burke's EJB3 book, and my attempts are always returning null.
l = entityManager.createQuery("SELECT s FROM Security s").getResultList();
Here I'm trying to find all rows of all security subclasses. Even though the database has many such entries, the query always returns null. I can find each subclass independently - eg.:
l = entityManager.createQuery("SELECT s FROM SecurityLoan s").getResultList();
| l = entityManager.createQuery("SELECT s FROM SecurityEquity s").getResultList();
but would like to write a single query to get all objects, regardless of subclass.
My entities are declared using JOINED inheritence:
| @Entity
| @Table(name = "security")
| @Inheritance(strategy = InheritanceType.JOINED)
| public class Security implements java.io.Serializable {
| ....
| @Entity
| @Table(name = "security_loan")
| @PrimaryKeyJoinColumn(name="security_id")
| public class SecurityLoan extends Security implements java.io.Serializable {
| ....
| @Entity
| @Table(name = "security_equity")
| @PrimaryKeyJoinColumn(name="security_id")
| public class SecurityEquity extends Security implements java.io.Serializable {
|
Is this possible?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087551#4087551
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087551
18 years, 7 months
[JBoss Seam] - Re: How to configure 2 Session Factories?
by mgrouch
OK
I've figured out configuration
<core:hibernate-session-factory name="hibernateSessionFactory" cfg-resource-name="hibernate.cfg.xml" />
| <core:hibernate-session-factory name="hibernateHistSessionFactory" cfg-resource-name="hist-hibernate.cfg.xml" />
| <core:managed-hibernate-session name="settlementsDatabase" auto-create="true"
| session-factory-jndi-name="java:/settlementsHibernateSessionFactory" />
| <core:managed-hibernate-session name="settlementsHistDatabase" auto-create="true"
| session-factory-jndi-name="java:/settlementsHistHibernateSessionFactory" />
But I'm getting error at start up
[java] 12:50:12,491 ERROR [[/LPP/settlements]] Exception sending context initialized event to listener instance of class org.jboss.seam.
| servlet.SeamListener
| [java] org.hibernate.MappingException: component class not found: com.company.data.entity.FailId
| [java] at org.hibernate.mapping.Component.getComponentClass(Component.java:104)
| [java] at org.hibernate.tuple.component.PojoComponentTuplizer.buildGetter(PojoComponentTuplizer.java:130)
| [java] at org.hibernate.tuple.component.AbstractComponentTuplizer.<init>(AbstractComponentTuplizer.java:43)
| [java] at org.hibernate.tuple.component.PojoComponentTuplizer.<init>(PojoComponentTuplizer.java:38)
| [java] at org.hibernate.tuple.component.ComponentEntityModeToTuplizerMapping.<init>(ComponentEntityModeToTuplizerMapping.java:52)
| [java] at org.hibernate.tuple.component.ComponentMetamodel.<init>(ComponentMetamodel.java:50)
| [java] at org.hibernate.mapping.Component.buildType(Component.java:152)
| [java] at org.hibernate.mapping.Component.getType(Component.java:145)
| [java] at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253)
| [java] at org.hibernate.mapping.RootClass.validate(RootClass.java:193)
| [java] at org.hibernate.cfg.Configuration.validate(Configuration.java:1102)
| [java] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1287)
| [java] at org.jboss.seam.microcontainer.HibernateFactory.createSessionFactory(HibernateFactory.java:121)
| [java] at org.jboss.seam.core.HibernateSessionFactory.startup(HibernateSessionFactory.java:35)
| [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [java] at java.lang.reflect.Method.invoke(Method.java:585)
| [java] at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
| [java] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
| [java] at org.jboss.seam.Component.callComponentMethod(Component.java:1834)
| [java] at org.jboss.seam.Component.callCreateMethod(Component.java:1757)
| [java] at org.jboss.seam.Component.newInstance(Component.java:1746)
| [java] at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:175)
| [java] at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:145)
| [java] at org.jboss.seam.init.Initialization.init(Initialization.java:504)
| [java] at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
| [java] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
| [java] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
| [java] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
| [java] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
| [java] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
| [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [java] at java.lang.reflect.Method.invoke(Method.java:585)
| [java] at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
| [java] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| [java] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
| [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [java] at java.lang.reflect.Method.invoke(Method.java:585)
| [java] at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
| [java] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| [java] at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
| [java] at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
| [java] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
| [java] at org.jboss.web.WebModule.startModule(WebModule.java:83)
| [java] at org.jboss.web.WebModule.startService(WebModule.java:61)
| [java] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| [java] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| [java] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [java] at java.lang.reflect.Method.invoke(Method.java:585)
| [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| [java] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| [java] at $Proxy0.start(Unknown Source)
| [java] at org.jboss.system.ServiceController.start(ServiceController.java:417)
| [java] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [java] at java.lang.reflect.Method.invoke(Method.java:585)
| [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| [java] at $Proxy54.start(Unknown Source)
| [java] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
| [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [java] at java.lang.reflect.Method.invoke(Method.java:585)
| [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| [java] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| [java] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| [java] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| [java] at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| [java] at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
| [java] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| [java] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| [java] at $Proxy55.start(Unknown Source)
| [java] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| [java] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| [java] at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
| [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [java] at java.lang.reflect.Method.invoke(Method.java:585)
| [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| [java] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| [java] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| [java] at $Proxy9.deploy(Unknown Source)
| [java] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| [java] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| [java] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| [java] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| [java] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| [java] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| [java] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [java] at java.lang.reflect.Method.invoke(Method.java:585)
| [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| [java] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| [java] at $Proxy0.start(Unknown Source)
| [java] at org.jboss.system.ServiceController.start(ServiceController.java:417)
| [java] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [java] at java.lang.reflect.Method.invoke(Method.java:585)
| [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| [java] at $Proxy4.start(Unknown Source)
| [java] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| [java] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [java] at java.lang.reflect.Method.invoke(Method.java:585)
| [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| [java] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| [java] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| [java] at $Proxy5.deploy(Unknown Source)
| [java] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| [java] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| [java] at org.jboss.Main.boot(Main.java:200)
| [java] at org.jboss.Main$1.run(Main.java:508)
| [java] at java.lang.Thread.run(Thread.java:595)
| [java] Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: com.company.data.entity.FailId
| [java] at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
| [java] at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:514)
| [java] at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
| [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| [java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
| [java] at java.lang.Class.forName0(Native Method)
| [java] at java.lang.Class.forName(Class.java:164)
| [java] at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
| [java] at org.hibernate.mapping.Component.getComponentClass(Component.java:101)
| [java] ... 162 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087534#4087534
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087534
18 years, 7 months
[JBoss Seam] - Re: access the entityManager in a converter (seam 2 beta)
by xalperte
Hi,
I'm ussing the Seam 1.2.1GA with the SeamEntityManager (http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamEntityConverter), and I'm having the same problem, this is the exception:
Caused by: java.lang.IllegalStateException: EntityManager is closed
at org.hibernate.ejb.EntityManagerImpl.getSession(EntityManagerImpl.java:42)
at org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:447)
at org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:442)
at org.jboss.seam.persistence.EntityManagerProxy.joinTransaction(EntityManagerProxy.java:113)
at org.jboss.seam.framework.EntityQuery.createQuery(EntityQuery.java:104)
at org.jboss.seam.framework.EntityQuery.getResultList(EntityQuery.java:41)
at sun.reflect.GeneratedMethodAccessor723.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
at org.jboss.seam.interceptors.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:34)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
at org.jboss.seam.interceptors.TransactionInterceptor$1.work(TransactionInterceptor.java:32)
at org.jboss.seam.util.Work.workInTransaction(Work.java:37)
at org.jboss.seam.interceptors.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:27)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
at org.jboss.seam.framework.EntityQuery_$$_javassist_421.getResultList(EntityQuery_$$_javassist_421.java)
... 284 more
I don't understand what happends and why it happens?
What can I do to solve the problem? can I apply any patch to my environment configuration (download something...)?
Thanks
Javi
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087532#4087532
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087532
18 years, 7 months