14 Replies Latest reply on Aug 21, 2007 9:46 AM by pmuir

    Mail examples broken in CVS?

    lowecg2004

      I'm sure I've just been unlucky to catch Seam in a state of flux, however I've just been trying the receive e-mail functionality in Seam and it appears to be broken. The examples/mail app deployed _mail.ear and meldwarebase.sar which results in the following errors:

      18:42:14,164 WARN [ServiceController] Problem starting service persistence.units:ear=_mail.ear,unitName=mail
      javax.persistence.PersistenceException: org.hibernate.HibernateException: cannot simultaneously fetch multiple bags
       at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:737)
       at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
       at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:417)
       at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy89.start(Unknown Source)
       at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
       at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:551)
       at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:333)
       at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:417)
       at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy33.start(Unknown Source)
       at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
       at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
       at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
       at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
       at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy34.start(Unknown Source)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
       at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy9.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:417)
       at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy4.start(Unknown Source)
       at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy5.deploy(Unknown Source)
       at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
       at org.jboss.Main.boot(Main.java:200)
       at org.jboss.Main$1.run(Main.java:508)
       at java.lang.Thread.run(Thread.java:619)
      Caused by: org.hibernate.HibernateException: cannot simultaneously fetch multiple bags
       at org.hibernate.loader.BasicLoader.postInstantiate(BasicLoader.java:66)
       at org.hibernate.loader.entity.EntityLoader.<init>(EntityLoader.java:75)
       at org.hibernate.loader.entity.EntityLoader.<init>(EntityLoader.java:43)
       at org.hibernate.loader.entity.EntityLoader.<init>(EntityLoader.java:33)
       at org.hibernate.loader.entity.BatchingEntityLoader.createBatchingEntityLoader(BatchingEntityLoader.java:103)
       at org.hibernate.persister.entity.AbstractEntityPersister.createEntityLoader(AbstractEntityPersister.java:1748)
       at org.hibernate.persister.entity.AbstractEntityPersister.createEntityLoader(AbstractEntityPersister.java:1752)
       at org.hibernate.persister.entity.AbstractEntityPersister.createLoaders(AbstractEntityPersister.java:2984)
       at org.hibernate.persister.entity.AbstractEntityPersister.postInstantiate(AbstractEntityPersister.java:2977)
       at org.hibernate.persister.entity.SingleTableEntityPersister.postInstantiate(SingleTableEntityPersister.java:690)
       at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:290)
       at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
       at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915)
       at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:730)
       ... 145 more



      I also get this:

      18:49:56,993 WARN [DBUserEditorImpl] could not create user or role table
      18:49:56,993 ERROR [STDERR] java.lang.RuntimeException: java.sql.SQLException: Table already exists: MAIL_USERS in statement [CREATE TABLE MAIL_USERS]
      18:49:56,993 ERROR [STDERR] at org.buni.meldware.mail.usereditor.db.DBUserEditorImpl.executeStatement(DBUserEditorImpl.java:189)
      18:49:56,993 ERROR [STDERR] at org.buni.meldware.mail.usereditor.db.DBUserEditorImpl.start(DBUserEditorImpl.java:156)
      18:49:56,993 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      18:49:56,993 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      18:49:56,993 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      18:49:56,993 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
      18:49:56,993 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      18:49:56,993 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      18:49:56,993 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      18:49:56,993 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      18:49:56,993 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      18:49:56,993 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      18:49:56,993 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      18:49:56,993 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      18:49:56,993 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)
      18:49:56,993 ERROR [STDERR] at $Proxy0.start(Unknown Source)
      18:49:56,993 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
      18:49:56,993 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:435)
      18:49:56,993 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:435)
      18:49:56,993 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:435)
      18:49:56,993 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:435)
      18:49:56,993 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:435)
      18:49:56,993 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      18:49:56,993 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      18:49:56,993 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
      18:49:56,993 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      18:49:56,993 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      18:49:56,993 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      18:49:56,993 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      18:49:57,009 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      18:49:57,009 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      18:49:57,009 ERROR [STDERR] at $Proxy4.start(Unknown Source)
      18:49:57,009 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
      18:49:57,009 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      18:49:57,009 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      18:49:57,009 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      18:49:57,009 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
      18:49:57,009 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      18:49:57,009 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      18:49:57,009 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      18:49:57,009 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      18:49:57,009 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      18:49:57,009 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      18:49:57,009 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      18:49:57,009 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      18:49:57,009 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      18:49:57,009 ERROR [STDERR] at $Proxy43.start(Unknown Source)
      18:49:57,009 ERROR [STDERR] at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:197)
      18:49:57,009 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      18:49:57,009 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      18:49:57,009 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      18:49:57,009 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
      18:49:57,009 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      18:49:57,009 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
      18:49:57,009 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      18:49:57,009 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      18:49:57,009 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      18:49:57,009 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      18:49:57,009 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      18:49:57,009 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      18:49:57,009 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      18:49:57,009 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      18:49:57,009 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      18:49:57,025 ERROR [STDERR] at $Proxy9.deploy(Unknown Source)
      18:49:57,025 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      18:49:57,025 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
      18:49:57,025 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      18:49:57,025 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
      18:49:57,025 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      18:49:57,025 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      18:49:57,025 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      18:49:57,025 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      18:49:57,025 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
      18:49:57,025 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      18:49:57,025 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      18:49:57,025 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      18:49:57,025 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      18:49:57,025 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      18:49:57,025 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      18:49:57,025 ERROR [STDERR] at $Proxy0.start(Unknown Source)
      18:49:57,025 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
      18:49:57,025 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      18:49:57,025 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      18:49:57,025 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
      18:49:57,025 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      18:49:57,025 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      18:49:57,025 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      18:49:57,025 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      18:49:57,025 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      18:49:57,025 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      18:49:57,025 ERROR [STDERR] at $Proxy4.start(Unknown Source)
      18:49:57,025 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
      18:49:57,025 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      18:49:57,025 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      18:49:57,025 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      18:49:57,025 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
      18:49:57,025 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      18:49:57,025 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      18:49:57,025 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      18:49:57,025 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
      18:49:57,025 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      18:49:57,025 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      18:49:57,025 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      18:49:57,025 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      18:49:57,025 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      18:49:57,025 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      18:49:57,025 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      18:49:57,025 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      18:49:57,025 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      18:49:57,025 ERROR [STDERR] at $Proxy5.deploy(Unknown Source)
      18:49:57,025 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      18:49:57,025 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      18:49:57,025 ERROR [STDERR] at org.jboss.Main.boot(Main.java:200)
      18:49:57,025 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:508)
      18:49:57,025 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
      18:49:57,040 ERROR [STDERR] Caused by: java.sql.SQLException: Table already exists: MAIL_USERS in statement [CREATE TABLE MAIL_USERS]
      18:49:57,040 ERROR [STDERR] at org.hsqldb.jdbc.Util.throwError(Unknown Source)
      18:49:57,040 ERROR [STDERR] at org.hsqldb.jdbc.jdbcPreparedStatement.execute(Unknown Source)
      18:49:57,040 ERROR [STDERR] at org.jboss.resource.adapter.jdbc.CachedPreparedStatement.execute(CachedPreparedStatement.java:216)
      18:49:57,040 ERROR [STDERR] at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.execute(WrappedPreparedStatement.java:209)
      18:49:57,040 ERROR [STDERR] at org.buni.meldware.mail.usereditor.db.DBUserEditorImpl.executeStatement(DBUserEditorImpl.java:187)
      18:49:57,040 ERROR [STDERR] ... 114 more


      Cheers,

      Chris.

        • 1. Re: Mail examples broken in CVS?
          lowecg2004

          After reading the Seam reference for 2.0.0.b1 I think I've found some niggles (which you're probably well aware of, but I'll raise them anyway ;)

          I believe the deployment instructions for mail-ra.rar need revising since the file mail-ra.rar is no longer part of JBoss 4.2.x - this is implied when the doc states "replacing the default rar with the one distributed with Seam". To resolve, I copied the Seam mail-ra.rar to default/deploy. Is this still correct? Or should I be removing/replacing any other mail files?

          The doc refers the reader to http://wiki.jboss.org/wiki/Wiki.jsp?page=InboundJavaMail for more information on mail-ra.rar. The wiki currently does not have any information on this file.

          To a vanilla seam-gen project, the Eclipse build path needs updating to add lib/mail.jar and lib/mail-ra.jar (note: JAR and not RAR) - it would be useful to get this from the docs rather than having to work it out.

          The docs states that "Most seam annotations will work inside a MDB but you musn't access the persistence context." - Why is this? Isn't that quite a severe limitation? Can anything be done to get around this?

          Some very useful information comes to light in this thread:

          http://www.jboss.com/index.html?module=bb&op=viewtopic&t=115420

          Particularly later on when the OP is talking about ports. I would like to see that in the docs.

          Finally, the takeaway example needs tweaking before it will build from CVS: the build.xml contains an import to ../../build.xml which should be ../build.xml? Also the references to jboss-el.jar and jbpm-jpdl.jar in application.xml should be relative to lib/. After these changes the example builds but I just get a completely blank page when I run it. It would be great if this sample used the Meldware server.

          Cheers,

          Chris

          • 2. Re: Mail examples broken in CVS?
            pmuir

             

            "lowecg2004" wrote:
            After reading the Seam reference for 2.0.0.b1 I think I've found some niggles (which you're probably well aware of, but I'll raise them anyway ;)


            Probably not ;)

            Firstly, your problem deploying the mail example. I can't reproduce this using current CVS and a clean install of JBoss AS 4.2.1.GA. Is this your setup?

            I believe the deployment instructions for mail-ra.rar need revising since the file mail-ra.rar is no longer part of JBoss 4.2.x - this is implied when the doc states "replacing the default rar with the one distributed with Seam". To resolve, I copied the Seam mail-ra.rar to default/deploy. Is this still correct? Or should I be removing/replacing any other mail files?


            Please raise a JIRA issue as I'm going to need to talk to the JBoss AS guys about how they package mail-ra now.

            The doc refers the reader to http://wiki.jboss.org/wiki/Wiki.jsp?page=InboundJavaMail for more information on mail-ra.rar. The wiki currently does not have any information on this file.


            Do you mean the page doesn't work or isn't very clear about what to do?

            To a vanilla seam-gen project, the Eclipse build path needs updating to add lib/mail.jar and lib/mail-ra.jar (note: JAR and not RAR) - it would be useful to get this from the docs rather than having to work it out.


            Please raise a JIRA issue re seam-gen not adding in those files to the eclipse .classpath.

            The docs states that "Most seam annotations will work inside a MDB but you musn't access the persistence context." - Why is this? Isn't that quite a severe limitation? Can anything be done to get around this?


            IIRC this is a limitation of EJB3. You need to inject an SFSB/SLSB into the MDB (or Seam component) and do your persistence work in them.

            Some very useful information comes to light in this thread:

            http://www.jboss.com/index.html?module=bb&op=viewtopic&t=115420

            Particularly later on when the OP is talking about ports. I would like to see that in the docs.


            Specific information on mail-ra should be on the wiki not in the Seam manual (as its not part of the Seam project at the moment, but part of the JBoss AS project). So please add/edit that wiki page linked above as you see fit :)

            Finally, the takeaway example needs tweaking before it will build from CVS: the build.xml contains an import to ../../build.xml which should be ../build.xml? Also the references to jboss-el.jar and jbpm-jpdl.jar in application.xml should be relative to lib/. After these changes the example builds but I just get a completely blank page when I run it. It would be great if this sample used the Meldware server.


            This example is definitely work in progress which I intend to get back to soon :p

            • 3. Re: Mail examples broken in CVS?
              lowecg2004

              Morning Pete,

              Thanks for your reply.

              Firstly, your problem deploying the mail example. I can't reproduce this using current CVS and a clean install of JBoss AS 4.2.1.GA. Is this your setup?


              My setup is JBossAS 4.2.0.GA upgraded to Hibernate 3.2.5.GA and JBossWS 2.0.GA. I rolled back to a pre-Hibernate snapshot and the mail component works. I reapplied the Hibernate upgrade and I get the issue.

              http://jira.jboss.com/jira/browse/JBSEAM-1830

              Surprisingly, Hibernate 3.2.4.SP1 also errors despite working for you in JBossAS 4.2.1.GA. Maybe there is something iffy about the way I upgraded Hibernate (detailed in the JIRA).


              Please raise a JIRA issue as I'm going to need to talk to the JBoss AS guys about how they package mail-ra now.


              Done:

              http://jira.jboss.com/jira/browse/JBSEAM-1828

              The doc refers the reader to http://wiki.jboss.org/wiki/Wiki.jsp?page=InboundJavaMail for more information on mail-ra.rar. The wiki currently does not have any information on this file.

              Do you mean the page doesn't work or isn't very clear about what to do?


              I just mean that the docs direct me to the link to get more info on mail-ra.rar, but the wiki makes no reference to this file.

              Please raise a JIRA issue re seam-gen not adding in those files to the eclipse .classpath.


              Done:

              http://jira.jboss.com/jira/browse/JBSEAM-1829

              IIRC this is a limitation of EJB3. You need to inject an SFSB/SLSB into the MDB (or Seam component) and do your persistence work in them.


              I was panicking over nothing - my first reaction on reading the docs what that persistence would not be usable at all during a MDB callback, including in a SxSB. SxSBs will do the job nicely. I really should know better, however could you add some clarification to the doc?

              Specific information on mail-ra should be on the wiki not in the Seam manual (as its not part of the Seam project at the moment, but part of the JBoss AS project). So please add/edit that wiki page linked above as you see fit :)


              Will do.


              This is the first time I've raised a JIRA, so if I have missed anything or not properly observed convention then please let me know and I'll go back and make any required edits.

              Cheers,

              Chris.

              • 4. Re: Mail examples broken in CVS?
                lowecg2004

                Sigh, I'm really not having any luck with receiving e-mail.

                Using JBossAS 4.2.0.GA (with default Hibernate installation), I now get the following problem from Meldware. Since this is a Hibernate error, I'll try upgrading to JBoss 4.2.1.GA and see how I get on.

                Cheers,

                C.

                10:37:37,633 INFO [STDOUT] DEBUG: JavaMail version 1.4ea
                10:37:37,633 INFO [STDOUT] DEBUG: java.io.FileNotFoundException: C:\bin\Java\jdk1.6.0_02\jre\lib\javamail.providers (The system cannot find the file specified)
                10:37:37,633 INFO [STDOUT] DEBUG: !anyLoaded
                10:37:37,633 INFO [STDOUT] DEBUG: not loading resource: /META-INF/javamail.providers
                10:37:37,633 INFO [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
                10:37:37,633 INFO [STDOUT] DEBUG: Tables of loaded providers
                10:37:37,633 INFO [STDOUT] DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
                10:37:37,633 INFO [STDOUT] DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
                10:37:37,633 INFO [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
                10:37:37,633 INFO [STDOUT] DEBUG: !anyLoaded
                10:37:37,633 INFO [STDOUT] DEBUG: not loading resource: /META-INF/javamail.address.map
                10:37:37,633 INFO [STDOUT] DEBUG: java.io.FileNotFoundException: C:\bin\Java\jdk1.6.0_02\jre\lib\javamail.address.map (The system cannot find the file specified)
                10:37:37,633 INFO [STDOUT] DEBUG: setDebug: JavaMail version 1.4ea
                10:37:37,633 INFO [STDOUT] DEBUG: getProvider() returning javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]
                10:37:37,633 INFO [STDOUT] DEBUG POP3: connecting to host "localhost", port 11011, isSSL false
                10:37:37,633 INFO [ConnectionHandler] connected: /127.0.0.1 to: /127.0.0.1 until: 1187689177633
                10:37:37,633 INFO [STDOUT] S: +OK POP3 Server (Meldware Mail POP3 Server version 0.7) ready <115.1187689057633@null>
                10:37:37,633 INFO [STDOUT] C: USER myname
                10:37:37,633 WARN [CmdUSER] pop username set to myname
                10:37:37,633 INFO [STDOUT] S: +OK
                10:37:37,633 INFO [STDOUT] C: PASS mypass
                10:37:37,696 ERROR [CmdPASS] Error getting MailboxMBean: java.lang.IllegalArgumentException: org.hibernate.QueryException: illegal attempt to dereference collection [mailbox0_.id.aliases] with element property reference [name] [from org.buni.meldware.mail.mailbox.Mailbox as mbox join fetch mbox.defaultInFolder where mbox.aliases.name=:alias]
                java.lang.IllegalArgumentException: org.hibernate.QueryException: illegal attempt to dereference collection [mailbox0_.id.aliases] with element property reference [name] [from org.buni.meldware.mail.mailbox.Mailbox as mbox join fetch mbox.defaultInFolder where mbox.aliases.name=:alias]
                 at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:616)
                 at org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:95)
                 at org.jboss.ejb3.entity.TransactionScopedEntityManager.createQuery(TransactionScopedEntityManager.java:134)
                 at org.buni.meldware.mail.mailbox.MailboxServiceImpl.org$buni$meldware$mail$mailbox$MailboxServiceImpl$getMailboxByAlias$aop(MailboxServiceImpl.java:134)
                 at org.buni.meldware.mail.mailbox.MailboxServiceImpl$getMailboxByAlias_2156355474417312895.invokeNext(MailboxServiceImpl$getMailboxByAlias_2156355474417312895.java)
                 at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                 at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
                 at org.buni.meldware.mail.mailbox.MailboxServiceImpl$getMailboxByAlias_2156355474417312895.invokeNext(MailboxServiceImpl$getMailboxByAlias_2156355474417312895.java)
                 at org.buni.meldware.mail.mailbox.MailboxServiceImpl.getMailboxByAlias(MailboxServiceImpl.java)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)
                 at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)
                 at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)
                 at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)
                 at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
                 at javax.management.StandardMBean.invoke(StandardMBean.java:391)
                 at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy77.getMailboxByAlias(Unknown Source)
                 at org.buni.meldware.mail.pop3.POP3ProtocolInstance.getMailboxForUser(POP3ProtocolInstance.java:345)
                 at org.buni.meldware.mail.pop3.handlers.CmdPASS.handleRequest(CmdPASS.java:97)
                 at org.buni.meldware.mail.pop3.POP3ProtocolInstance.handleRequest(POP3ProtocolInstance.java:210)
                 at org.buni.meldware.mail.ConnectionHandler.runSocket(ConnectionHandler.java:231)
                 at org.buni.meldware.mail.ConnectionHandler.run(ConnectionHandler.java:100)
                 at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
                 at java.lang.Thread.run(Thread.java:619)
                Caused by: org.hibernate.QueryException: illegal attempt to dereference collection [mailbox0_.id.aliases] with element property reference [name] [from org.buni.meldware.mail.mailbox.Mailbox as mbox join fetch mbox.defaultInFolder where mbox.aliases.name=:alias]
                 at org.hibernate.hql.ast.tree.DotNode$1.buildIllegalCollectionDereferenceException(DotNode.java:46)
                 at org.hibernate.hql.ast.tree.DotNode.checkLhsIsNotCollection(DotNode.java:512)
                 at org.hibernate.hql.ast.tree.DotNode.resolve(DotNode.java:221)
                 at org.hibernate.hql.ast.tree.FromReferenceNode.resolve(FromReferenceNode.java:94)
                 at org.hibernate.hql.ast.tree.FromReferenceNode.resolve(FromReferenceNode.java:90)
                 at org.hibernate.hql.ast.HqlSqlWalker.resolve(HqlSqlWalker.java:728)
                 at org.hibernate.hql.antlr.HqlSqlBaseWalker.expr(HqlSqlBaseWalker.java:1216)
                 at org.hibernate.hql.antlr.HqlSqlBaseWalker.exprOrSubquery(HqlSqlBaseWalker.java:4041)
                 at org.hibernate.hql.antlr.HqlSqlBaseWalker.comparisonExpr(HqlSqlBaseWalker.java:3525)
                 at org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExpr(HqlSqlBaseWalker.java:1762)
                 at org.hibernate.hql.antlr.HqlSqlBaseWalker.whereClause(HqlSqlBaseWalker.java:776)
                 at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:577)
                 at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:281)
                 at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:229)
                 at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:228)
                 at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160)
                 at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
                 at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:77)
                 at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56)
                 at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)
                 at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
                 at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
                 at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)
                 at org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:92)
                 ... 28 more
                10:37:37,696 INFO [STDOUT] S: -ERR Service Unavailable
                10:37:37,696 INFO [STDOUT] C: QUIT
                10:37:37,758 INFO [STDOUT] S: +OK null Service closing transmission channel
                10:37:37,758 ERROR [MailActivation] Failed to execute folder check, spec=MailActivationSpec(mailServer=localhost, storeProtocol=pop3, mailFolder=INBOX, pollingInterval=60000, messageSelector=null, userName=myname, maxMessages=1, debug=true)


                • 5. Re: Mail examples broken in CVS?

                   



                  The docs states that "Most seam annotations will work inside a MDB but you musn't access the persistence context." - Why is this? Isn't that quite a severe limitation? Can anything be done to get around this?

                  IIRC this is a limitation of EJB3. You need to inject an SFSB/SLSB into the
                  MDB (or Seam component) and do your persistence work in them.


                  I haven't looked at the code but I think the reason behind it is that the entitymanager is not thread-safe. You can still inject (or do a JNDI-Lookup for) the EntityManagerFactory and use a new a new EntityManager for ervery mail processed.

                  (For more infomation see http://weblogs.java.net/blog/ss141213/archive/2005/12/dont_use_persis_1.html)

                  Regards

                  Felix

                  • 6. Re: Mail examples broken in CVS?
                    pmuir

                    Yes, there are problems with using Meldware for more than SMTP on JBoss AS 4.2 (its targeted at 4.0.5). There is a issue open in the Meldware bugzilla for this (Hibernate tightened up what was acceptable hql at some point), I never got around to creating a patch.

                    • 7. Re: Mail examples broken in CVS?
                      lowecg2004

                      @Felix

                      Thanks for the info, that makes perfect sense.

                      @Pete

                      I still get the same Hibernate issue even after upgrading to JBossAS 4.2.1.GA.

                      Next, I shall try upgrading the Meldware component to 1.0 M8...

                      Cheers,

                      Chris.

                      • 8. Re: Mail examples broken in CVS?
                        lowecg2004

                        Pete,

                        I think our last messages "crossed in the post". Do you know about the status of this bug on the latest available release, 1.0 M8?

                        Cheers,

                        Chris.

                        • 9. Re: Mail examples broken in CVS?
                          lowecg2004

                          Okay, I just upgraded to 1.0 M8 and the issue persists.

                          • 10. Re: Mail examples broken in CVS?
                            pmuir

                            http://buni.org/bugzilla/show_bug.cgi?id=162
                            http://buni.org/bugzilla/show_bug.cgi?id=163

                            If you seriously want to use Meldware then I would suggest grabbing the latest milestone from them and installing it yourself. The one with Seam is a little hacked to make it work nicely for examples.

                            I've updated the wiki page, hopefully it is a little more verbose now :)

                            • 11. Re: Mail examples broken in CVS?
                              lowecg2004

                              Pete,

                              I have tried the 1.0 M8 release which I believe is the latest version. I just copied mail.ear and meldwarebase.sar over to my server's deploy directory (after removing _mail.ear and the file meldwarebase.sar previously deployed by Seam mail example). I get the same issue, even though the bug link (id 163) suggests a fix target of version M7.

                              The Wiki's much more helpful now, thanks.

                              Cheers,

                              Chris.

                              • 12. Re: Mail examples broken in CVS?
                                pmuir

                                I think its still open but I don't really know (eugh, I don't like bugzilla's interface).

                                • 13. Re: Mail examples broken in CVS?
                                  lowecg2004

                                  Yes, it's a far cry from JIRA.

                                  So the long and short of it is that Meldware is not really an option on 4.2.x (for now)?

                                  Can you recommend any other servers? Have you tried receiving e-mails from, say, an Exchange account?

                                  I really need to be able to give my Seam app a "prod" using e-mail.

                                  Cheers,

                                  Chris.

                                  • 14. Re: Mail examples broken in CVS?
                                    pmuir

                                    JavaMail (and hence mail-ra.rar) should work with any standards compliant IMAP or POP3 implementation (SSL support is missing, TLS support is there). I've used it with some free POP3/IMAP accounts you can sign up for on the net. POP3 with flush=true is probably the easiest option as then it just pulls all mail from the mailbox and deletes after the MDB has run without an exception being thrown. If you have problems with the connector, post back here and I'll try to help (or post in another forum and tell me about the topic).

                                    We distribute Meldware as its good for examples/dev, not because we recommend using it in your production environment (I'm guessing most places have some email infrastructure existing).