1 2 3 Previous Next 33 Replies Latest reply on Jun 14, 2006 3:50 AM by aronsogor

    JBMS fails on first start-up...multiple errors

    danaris

      Greetings.
      I'm new to JBoss as a whole, though I've been using Tomcat and other Java technologies for a while now. I found JBoss Mail Server recently, and it looks to be a great fit for my company if we can get it to work. However, I'm having trouble getting it started.

      I managed to get an instance of JBossAS 4.0.4GA running smoothly on my Mac OS X 10.4.6 laptop (using for testing), and on the Windows Server 2003 box I'm using for test deployment. Once I installed JBMS, however, I got the following errors on startup (this will be kind of long...):

      14:20:21,780 INFO [SessionFactoryImpl] building session factory
      14:20:21,976 ERROR [[/calendar]] StandardWrapper.Throwable
      java.lang.IllegalAccessError: tried to access method net.sf.ehcache.CacheManager.<init>()V from class org.hibernate.cache.EhCacheProvider
       at org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:124)
       at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:180)
       at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1213)
       at org.jboss.mail.calendar.util.HibernateLookUp.loadFactory(HibernateLookUp.java:76)
       at org.jboss.mail.calendar.util.HibernateLookUp.initializeFactory(HibernateLookUp.java:68)
       at org.jboss.mail.calendar.util.HibernateLookUp.getSessionFactory(HibernateLookUp.java:46)
       at org.jboss.mail.calendar.util.HibernateLookUp.checkSchema(HibernateLookUp.java:59)
       at org.jboss.mail.calendar.web.util.CalendarPlugin.init(CalendarPlugin.java:31)
       at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839)
       at org.apache.struts.action.ActionServlet.init(ActionServlet.java:332)
       at javax.servlet.GenericServlet.init(GenericServlet.java:211)
       at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
       at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
       at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)
       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
       at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
       at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
       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:585)
       at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
       at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.apache.catalina.core.StandardContext.init(StandardContext.java:5116)
       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:585)
       at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
       at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
       at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
       at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
       at org.jboss.web.WebModule.startModule(WebModule.java:83)
       at org.jboss.web.WebModule.startService(WebModule.java:61)
       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:585)
       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.GeneratedMethodAccessor6.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       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 $Proxy48.start(Unknown Source)
       at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
       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:585)
       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.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:117)
       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 $Proxy49.start(Unknown Source)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
       at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       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 $Proxy6.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.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:585)
       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.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:585)
       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:1007)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
       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:585)
       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:464)
       at java.lang.Thread.run(Thread.java:613)
      14:20:22,155 ERROR [[/calendar]] Servlet /calendar threw load() exception
      java.lang.IllegalAccessError: tried to access method net.sf.ehcache.CacheManager.<init>()V from class org.hibernate.cache.EhCacheProvider
       at org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:124)
       at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:180)
       at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1213)
       at org.jboss.mail.calendar.util.HibernateLookUp.loadFactory(HibernateLookUp.java:76)
       at org.jboss.mail.calendar.util.HibernateLookUp.initializeFactory(HibernateLookUp.java:68)
       at org.jboss.mail.calendar.util.HibernateLookUp.getSessionFactory(HibernateLookUp.java:46)
       at org.jboss.mail.calendar.util.HibernateLookUp.checkSchema(HibernateLookUp.java:59)
       at org.jboss.mail.calendar.web.util.CalendarPlugin.init(CalendarPlugin.java:31)
       at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839)
       at org.apache.struts.action.ActionServlet.init(ActionServlet.java:332)
       at javax.servlet.GenericServlet.init(GenericServlet.java:211)
       at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
       at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
       at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)
       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
       at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
       at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
       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:585)
       at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
       at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.apache.catalina.core.StandardContext.init(StandardContext.java:5116)
       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:585)
       at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
       at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
       at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
       at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
       at org.jboss.web.WebModule.startModule(WebModule.java:83)
       at org.jboss.web.WebModule.startService(WebModule.java:61)
       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:585)
       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.GeneratedMethodAccessor6.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       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 $Proxy48.start(Unknown Source)
       at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
       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:585)
       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.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:117)
       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 $Proxy49.start(Unknown Source)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
       at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       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 $Proxy6.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.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:585)
       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.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:585)
       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:1007)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
       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:585)
       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:464)
       at java.lang.Thread.run(Thread.java:613)
      


      Then, almost immediately afterwards, another error:

      14:20:22,471 INFO [TomcatDeployer] deploy, ctxPath=/lp, warUrl=.../tmp/deploy/tmp61600loginproxywebapp-exp.war/
      14:20:24,242 INFO [EARDeployer] Started J2EE application: file:/Applications/JBoss/server/default/deploy/calendar.ear/
      14:20:24,248 INFO [EARDeployer] Init J2EE application: file:/Applications/JBoss/server/default/deploy/mail.ear/
      14:20:31,756 ERROR [MainDeployer] Could not create deployment: file:/Applications/JBoss/server/default/deploy/mail.ear/mail.sar/
      org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowableException)
       at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
       at org.jboss.system.ServiceController.install(ServiceController.java:226)
       at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       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.install(Unknown Source)
       at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:943)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
       at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       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 $Proxy6.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.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:585)
       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.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:585)
       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:1007)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
       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:585)
       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:464)
       at java.lang.Thread.run(Thread.java:613)
      Caused by: java.lang.reflect.UndeclaredThrowableException
       at org.jboss.system.ServiceCreator.install(ServiceCreator.java:236)
       at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
       at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
       ... 82 more
      Caused by: java.lang.NoClassDefFoundError: org/jboss/aop/JoinPoint
       at java.lang.Class.getDeclaredConstructors0(Native Method)
       at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
       at java.lang.Class.getConstructor0(Class.java:2640)
       at java.lang.Class.getConstructor(Class.java:1629)
       at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1232)
       at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
       at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)
       at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
       ... 84 more
      


      ....and after that, an Incomplete Deployment Listing, which I'll be happy to provide upon request.

      The errors look more or less the same on both the Mac and Windows side.

      Any assistance in this would be appreciated.

      Timothy Collett

        • 1. Re: JBMS fails on first start-up...multiple errors
          sappenin

          Not sure if this is your problem, but it looks like you're having a hibernate issue with the calendar EJB's.

          Can you verify that your Jboss AS has the latest EJB3 code in it? Depending on how you installed JBAS, you might not have that. From what I can tell, if you install JBAS 4.0.4GA with the intaller, you can optionally add the EJB3 RC6/RC7 stuff in (the latest and greatest). If you just "unzip" the JBossAS 4.0.4GA zip file (which is a different download), then I don't think you'll have the right EJB3 files that you need.

          To confirm, navigate to you your JBAS 4.0.4GA directory, and look in the "server/default/deploy" directory. You should see the directories "ejb3.deployer" and "jboss-aop-jdk50.deployer". If you don't see that (for example, if you see a "jboss-aop.deployer" directory instead), then you've got the wrong ejb3 classes.

          Assuming this is your problem, you can update the EJB code manually by following the instructions here: http://docs.jboss.org/ejb3/app-server/tutorial/installing.html

          If that's not your problem (i.e., you have the latest EJB3 code), then I suggest downloading the JBMS binary instead, and installing JBMS that way. JBMS 1.0M5 Pre_1 comes with JBAS 4.0.4RC2, and it should get you up and running for testing much faster than using your own jboss server (especially if your still eval'ing jbms).

          The link to the JBMS binary is here: http://jboss.org/jbossBlog/blog/acoliver/2006/05/15/JBoss_Collaboration_Server_1_0M5_pre1.txt

          • 2. Re: JBMS fails on first start-up...multiple errors
            danaris

            That fixed the errors, thanks!

            ....But now I'm getting new errors, and they're different on Mac OS X than on Windows. On Windows, I get a startup error telling me that port 1101 is in use (your standard JVM_Bind exception), but when I run netstat, I see ports all around there in use, but not 1101.

            When I try to check mail from Thunderbird, I get the following error on the Windows side:

            2006-05-22 10:05:45,156 ERROR [org.jboss.mail.pop3.handlers.CmdPASS] Error getting MailboxMBean: java.lang.RuntimeException: javax.persistence.NoResultException: No entity found for query
            java.lang.RuntimeException: javax.persistence.NoResultException: No entity found for query
             at org.jboss.mail.pop3.POP3ProtocolInstance.getMailboxForUser(POP3ProtocolInstance.java:348)
             at org.jboss.mail.pop3.handlers.CmdPASS.handleRequest(CmdPASS.java:84)
             at org.jboss.mail.pop3.POP3ProtocolInstance.handleRequest(POP3ProtocolInstance.java:202)
             at org.jboss.mail.ConnectionHandler.runSocket(ConnectionHandler.java:188)
             at org.jboss.mail.ConnectionHandler.run(ConnectionHandler.java:82)
             at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
             at java.lang.Thread.run(Thread.java:595)
            Caused by: javax.persistence.NoResultException: No entity found for query
             at org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:66)
             at org.jboss.mail.mailbox.MailboxServiceImpl.org$jboss$mail$mailbox$MailboxServiceImpl$getMailboxByAlias$aop(MailboxServiceImpl.java:93)
             at org.jboss.mail.mailbox.MailboxServiceImpl$getMailboxByAlias_N4657912063293129124.invokeNext(MailboxServiceImpl$getMailboxByAlias_N4657912063293129124.java)
             at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
             at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:196)
             at org.jboss.mail.mailbox.MailboxServiceImpl$getMailboxByAlias_N4657912063293129124.invokeNext(MailboxServiceImpl$getMailboxByAlias_N4657912063293129124.java)
             at org.jboss.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:585)
             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 $Proxy77.getMailboxByAlias(Unknown Source)
             at org.jboss.mail.pop3.POP3ProtocolInstance.getMailboxForUser(POP3ProtocolInstance.java:344)
             ... 6 more
            


            ...and Thunderbird tells me first "Service Unavailable," then "User already specified".

            On the Mac side, I get the error:
            10:07:55,993 ERROR [STDERR] javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
            10:07:55,994 ERROR [STDERR] at com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:345)
            10:07:55,995 ERROR [STDERR] at org.jboss.mail.pop3.handlers.CmdSTLS$1.handshakeCompleted(CmdSTLS.java:110)
            10:07:56,002 ERROR [STDERR] at com.sun.net.ssl.internal.ssl.SSLSocketImpl$NotifyHandshakeThread$1.run(SSLSocketImpl.java:1988)
            10:07:56,002 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
            10:07:56,002 ERROR [STDERR] at com.sun.net.ssl.internal.ssl.SSLSocketImpl$NotifyHandshakeThread.run(SSLSocketImpl.java:1986)
            10:07:59,936 WARN [CmdUSER] pop username set to tcollett
            10:08:00,402 ERROR [STDERR] java.lang.NullPointerException
            10:08:00,404 ERROR [STDERR] at org.jboss.mail.pop3.POP3ProtocolInstance.lock(POP3ProtocolInstance.java:377)
            10:08:00,404 ERROR [STDERR] at org.jboss.mail.pop3.handlers.CmdPASS.handleRequest(CmdPASS.java:102)
            10:08:00,405 ERROR [STDERR] at org.jboss.mail.pop3.POP3ProtocolInstance.handleRequest(POP3ProtocolInstance.java:211)
            10:08:00,405 ERROR [STDERR] at org.jboss.mail.ConnectionHandler.runSocket(ConnectionHandler.java:205)
            10:08:00,405 ERROR [STDERR] at org.jboss.mail.ConnectionHandler.run(ConnectionHandler.java:97)
            10:08:00,406 ERROR [STDERR] at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
            10:08:00,406 ERROR [STDERR] at java.lang.Thread.run(Thread.java:613)
            


            ...and Thunderbird tells me "Mailbox locked," and, again, "User already specified."

            Again, any assistance is most appreciated.

            Timothy Collett

            • 3. Re: JBMS fails on first start-up...multiple errors
              sappenin

              It looks like there is no mailbox defined for the user that you are specifying in your pop3 configuration.

              The easiest way to remedy this is to login to the webmail program first (as the user you want to be). There is a "provision" function that gets called in the webmail code that will create the right mailbox and folder entries for your user upon login to the webapp.

              That's located at: http://localhost:8080/webmail/webmail.html.

              The only catch is that in order to login to the webmail, you will need a user defined in your login module/repository. The default login module is basically a file with username/passwords in it. In a real world situation you would want to change this to be a Database or LDAP repository, or something else.

              Anyway, the users in the file-based login module are (I think) generally set in the install when you specify user accounts to create.

              So, assuming you specifed a more username/password in the install, use that user/pass to login to the webmail, then you should be able to use pop3 with that user.

              David

              • 4. Re: JBMS fails on first start-up...multiple errors
                danaris

                 

                "sappenin" wrote:
                It looks like there is no mailbox defined for the user that you are specifying in your pop3 configuration.

                The easiest way to remedy this is to login to the webmail program first (as the user you want to be). There is a "provision" function that gets called in the webmail code that will create the right mailbox and folder entries for your user upon login to the webapp.


                Hmm...I have, actually, logged in through the webmail, and it's worked fine on the Mac...on Windows, it just tells me /webmail is not available. Having logged into the webmail doesn't seem to change anything on the Mac side...either that, or I had already done so (I don't remember the exact order I did those things in).

                The only catch is that in order to login to the webmail, you will need a user defined in your login module/repository. The default login module is basically a file with username/passwords in it. In a real world situation you would want to change this to be a Database or LDAP repository, or something else.


                Yes, that's another thing I was wondering about...is there an administrative interface for doing that sort of thing, or do I have to edit configuration files? And if the latter, is there some nice documentation on them?

                Again, thanks for your help thus far.

                Timothy Collett

                • 5. Re: JBMS fails on first start-up...multiple errors
                  sappenin

                  The default jbms login username/password info is found in 2 files: server\default\deploy\mail.ear\mail.sar\jbms-roles.properties & server\default\deploy\mail.ear\mail.sar\jbms-users.properties. You can add users/roles here.

                  Can you verify that the username/password you're logging in with is the same as what's in your properties files?

                  david

                  • 6. Re: JBMS fails on first start-up...multiple errors
                    danaris

                    Yes. My jdbms-users.properties file looks like this:

                    calendar=CalTest1
                    tcollett=tcollett
                    postmaster=MailTest1


                    and I've logged in with tcollett and postmaster both through the webmail interface. When I try to have Thunderbird check mail as either one of them, I get the errors I listed above (this is all for the Mac side, since, as I said, on Windows the webmail doesn't even come up).

                    Timothy Collett

                    • 7. Re: JBMS fails on first start-up...multiple errors
                      sappenin

                      Ok,

                      Sorry, I misunderstood your previous post. On the windows side, you're not able to login via POP3 because the correct mailbox entries have not be provisioned...I'm guessing this is because you are unable to login to the webmail, hence, no provision happens automatically. What error do you get when you try to bring up the webmail on windows?

                      On the mac side, it looks like a different error -- either something todo with your SSL connection or the Lock table, I'm not fully sure.

                      Are you connecting over SSL for your POP3 session (on the mac)? If so, try connecting over port 25. Also, be sure to follow the instructions for POP3 here: http://wiki.jboss.org/wiki/Wiki.jsp?page=HowToConfigureMozillaThunderbirdForUseWithJBossMailServer1.0M3

                      Be sure to get all the TLS and auth settings right. I had these mixed up when I originally tried to use Thunderbird via POP3, and encountered similar errors to yours.

                      • 8. Re: JBMS fails on first start-up...multiple errors
                        danaris

                        On the Windows side, I just get the standard Tomcat 404 error. According to it, /webmail/webmail.html doesn't even exist.

                        On the Mac side, I am, indeed, set up in more or less the way laid out in that Wiki page. I've got Thunderbird 1.5, so I'm using TLS, not POPSSL.

                        I tried turning off encryption entirely, and got an interesting and new error message in the log (though Thunderbird doesn't complain at all...). It's another big one...

                        10:21:57,658 INFO [Server] Got request
                        10:21:57,660 INFO [Server] waiting for request
                        10:21:57,666 INFO [ConnectionHandler] connected: /10.1.1.138 to: /10.1.1.73 until: 1148480637659
                        10:21:57,780 WARN [CmdUSER] pop username set to tcollett
                        10:21:58,269 WARN [JDBCExceptionReporter] SQL Error: 1093, SQLState: HY000
                        10:21:58,277 ERROR [JDBCExceptionReporter] You can't specify target table 'Flag' for update in FROM clause
                        10:21:58,463 INFO [ConnectionHandler] ConnectionHandler finished
                        10:21:58,465 ERROR [STDERR] Exception in thread "Thread-130"
                        10:21:58,465 ERROR [STDERR] javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not execute update query
                        10:21:58,466 ERROR [STDERR] at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:562)
                        10:21:58,473 ERROR [STDERR] at org.hibernate.ejb.QueryImpl.executeUpdate(QueryImpl.java:46)
                        10:21:58,474 ERROR [STDERR] at org.jboss.mail.mailbox.MailboxServiceImpl.org$jboss$mail$mailbox$MailboxServiceImpl$fastExpunge$aop(MailboxServiceImpl.java:709)
                        10:21:58,474 ERROR [STDERR] at org.jboss.mail.mailbox.MailboxServiceImpl.access$3(MailboxServiceImpl.java)
                        10:21:58,475 ERROR [STDERR] at org.jboss.mail.mailbox.MailboxServiceImpl$fastExpunge_1383726929380080844.invokeNext(MailboxServiceImpl$fastExpunge_1383726929380080844.java)
                        10:21:58,476 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
                        10:21:58,476 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:196)
                        10:21:58,476 ERROR [STDERR] at org.jboss.mail.mailbox.MailboxServiceImpl$fastExpunge_1383726929380080844.invokeNext(MailboxServiceImpl$fastExpunge_1383726929380080844.java)
                        10:21:58,477 ERROR [STDERR] at org.jboss.mail.mailbox.MailboxServiceImpl.fastExpunge(MailboxServiceImpl.java)
                        10:21:58,478 ERROR [STDERR] at org.jboss.mail.mailbox.MailboxServiceImpl.org$jboss$mail$mailbox$MailboxServiceImpl$deleteMarked$aop(MailboxServiceImpl.java:480)
                        10:21:58,481 ERROR [STDERR] at org.jboss.mail.mailbox.MailboxServiceImpl$deleteMarked_N734570016776585460.invokeNext(MailboxServiceImpl$deleteMarked_N734570016776585460.java)
                        10:21:58,482 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                        10:21:58,483 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:262)
                        10:21:58,483 ERROR [STDERR] at org.jboss.mail.mailbox.MailboxServiceImpl$deleteMarked_N734570016776585460.invokeNext(MailboxServiceImpl$deleteMarked_N734570016776585460.java)
                        10:21:58,486 ERROR [STDERR] at org.jboss.mail.mailbox.MailboxServiceImpl.deleteMarked(MailboxServiceImpl.java)
                        10:21:58,487 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        10:21:58,492 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                        10:21:58,493 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                        10:21:58,493 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
                        10:21:58,494 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                        10:21:58,494 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                        10:21:58,495 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                        10:21:58,495 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                        10:21:58,495 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                        10:21:58,496 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                        10:21:58,496 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                        10:21:58,496 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                        10:21:58,497 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                        10:21:58,497 ERROR [STDERR] at $Proxy123.deleteMarked(Unknown Source)
                        10:21:58,498 ERROR [STDERR] at org.jboss.mail.pop3.POP3ProtocolInstance.deleteMarked(POP3ProtocolInstance.java:427)
                        10:21:58,499 ERROR [STDERR] at org.jboss.mail.pop3.handlers.CmdQUIT.handleRequest(CmdQUIT.java:66)
                        10:21:58,499 ERROR [STDERR] at org.jboss.mail.pop3.POP3ProtocolInstance.handleRequest(POP3ProtocolInstance.java:211)
                        10:21:58,499 ERROR [STDERR] at org.jboss.mail.ConnectionHandler.runSocket(ConnectionHandler.java:205)
                        10:21:58,501 ERROR [STDERR] at org.jboss.mail.ConnectionHandler.run(ConnectionHandler.java:97)
                        10:21:58,502 ERROR [STDERR] at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
                        10:21:58,503 ERROR [STDERR] at java.lang.Thread.run(Thread.java:613)
                        10:21:58,504 ERROR [STDERR] Caused by: org.hibernate.exception.GenericJDBCException: could not execute update query
                        10:21:58,504 ERROR [STDERR] at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
                        10:21:58,505 ERROR [STDERR] at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
                        10:21:58,505 ERROR [STDERR] at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
                        10:21:58,506 ERROR [STDERR] at org.hibernate.hql.ast.exec.BasicExecutor.execute(BasicExecutor.java:84)
                        10:21:58,506 ERROR [STDERR] at org.hibernate.hql.ast.QueryTranslatorImpl.executeUpdate(QueryTranslatorImpl.java:391)
                        10:21:58,507 ERROR [STDERR] at org.hibernate.engine.query.HQLQueryPlan.performExecuteUpdate(HQLQueryPlan.java:259)
                        10:21:58,508 ERROR [STDERR] at org.hibernate.impl.SessionImpl.executeUpdate(SessionImpl.java:1129)
                        10:21:58,509 ERROR [STDERR] at org.hibernate.impl.QueryImpl.executeUpdate(QueryImpl.java:94)
                        10:21:58,509 ERROR [STDERR] at org.hibernate.ejb.QueryImpl.executeUpdate(QueryImpl.java:43)
                        10:21:58,510 ERROR [STDERR] ... 34 more
                        10:21:58,510 ERROR [STDERR] Caused by: java.sql.SQLException: You can't specify target table 'Flag' for update in FROM clause
                        10:21:58,511 ERROR [STDERR] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2928)
                        10:21:58,511 ERROR [STDERR] at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1571)
                        10:21:58,511 ERROR [STDERR] at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1666)
                        10:21:58,512 ERROR [STDERR] at com.mysql.jdbc.Connection.execSQL(Connection.java:2994)
                        10:21:58,512 ERROR [STDERR] at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:936)
                        10:21:58,513 ERROR [STDERR] at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1166)
                        10:21:58,513 ERROR [STDERR] at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1082)
                        10:21:58,515 ERROR [STDERR] at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1067)
                        10:21:58,515 ERROR [STDERR] at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:251)
                        10:21:58,516 ERROR [STDERR] at org.hibernate.hql.ast.exec.BasicExecutor.execute(BasicExecutor.java:75)
                        10:21:58,516 ERROR [STDERR] ... 39 more


                        Thanks for your further assistance.

                        Timothy Collett

                        • 9. Re: JBMS fails on first start-up...multiple errors
                          sappenin

                          1.) Not sure if it helps, but I was never able to get TLS to work with Thunderbird (ver 1.5.0.2), despite having the "TLSEnabled" set to 'true' in my jboss-service.xml file inside of deploy/Mail.ear/Mail.sar/META-INF.

                          I'm not sure what the deal is there -- is that a Thunderbird issue, or a JBMS issue? Things just sort of timeout, with no real error messages.

                          So, I set TLS to "never" in my thunderbird account settings. Also, I've found that it is best to shut down thunderbird, and re-open whenever I make a setting change (that way, the connections to JBMS are closed, and there's a clean slate when you re-open thunderbird).

                          2.) The error you show below is a known issue -- kindly referred to as the "FLAG" issue - you can see the JDBC update exception is caused by a malformed query on the FLAG table -- that I believe just got fixed yesterday (or this morning). It's an issue, but it generally doesn't prevent messages from being downloaded/sent via thunderbird. So, you can basically just ignore it for now.

                          3.) What URL are you using on the windows side to browse to the webmail? Are you able to look at the JBAS JMX console, or hit the default Apache page? Remember that the default JBAS port is 8080, and sometimes even the "localhost" domain is mis-configured. You may want to try browsing directly to your ip address.

                          Try: http://localhost:8080/ and see what pops up. The JMX console is here: http://localhost:8080/jmx-console/

                          If those don't work, try http://[ip_address]:8080/

                          Do those work for you?

                          • 10. Re: JBMS fails on first start-up...multiple errors
                            danaris

                            OK, I'll try it with TLS disabled from now on...

                            It seems to correctly check for mail, and find none, on the Mac side. I tried sending mail to tcollett@oriska.corp (that's our company's internal domain, both for DNS and LDAP/AD, and I've set up the Mac to be its mailserver for the moment), but it says in the logfiles that it can't find tcollett@oriska.corp as a local user...oddly, when I log into the webmail, it has me as tcollett@oriskains.com (that's the publicly-accessible domain of our new test internal mailserver...but I don't think I've ever told JBCS on the Mac side about it. In fact, I did a content-search on the entire $JBOSS_HOME directory and all subdirectories, and couldn't come up with "oriskains" anywhere...). So that's another bizarre thing...Oh, but on our Active Directory server, my profile *does* have tcollett@oriskains.com listed as my email address, if that could have anything to do with it...

                            On the Windows side, the web-console and JMX-console work just fine, and so does my own web application that I originally wrote for plain old Tomcat. The /webmail, /calendar, and /lp contexts, however, don't seem to be active at all.

                            Once again, thank you for your help.

                            Timothy Collett

                            • 11. Re: JBMS fails on first start-up...multiple errors
                              sappenin

                              So, pretty strange about the webmail not showing up on the windows box. Just to be clear, you're hitting http://mail_server_ip:8080/webmail/webmail.html ?

                              Also, on the MAC side, the userid tcollet is your main user id (specified in the users.properties file). In addition to that, you need to define some aliases that map to this user. These are setup in the 'alias' table for jbms. I haven't seen a good way to add these in except for manually.

                              So, in the alias table, the primary key ('id' column) can just be the next index number. The name would be the alias that you want to use, and the 'FOLDER_ID' is the index of the MailBox folder you want that user to point to.

                              So, you should have something like this:

                              id | name | FOLDER_ID
                              ----------------------------
                              1 | tcollet | 1
                              2 | tcollett@oriska.corp | 1
                              3 | tcollet@example.com | 1

                              All three of these aliases point to the MailBox folder with ID=1. It's possible that your Mailbox folder has some other id...you'll want to verify that in your DB.

                              • 12. Re: JBMS fails on first start-up...multiple errors
                                danaris

                                Yep, <mailserver IP>:8080/webmail/webmail.html, <mailserver FQDN>:8080/webmail/webmail.html...both get me a 404, and not a blip in the server logs..

                                On the Mac, that did it: the test mail sent properly, and I received it properly. Still got that PersistenceException, but it didn't seem to affect anything.

                                Not exactly sure where it's getting the email address it shows in the webmail, though...

                                Timothy Collett

                                • 13. Re: JBMS fails on first start-up...multiple errors
                                  acoliver

                                  TLS: did you specify a keystore?

                                  • 14. Re: JBMS fails on first start-up...multiple errors
                                    danaris

                                    Hi! It's been a little while (other projects took priority for a bit...) but I've run another test on the Windows box, installing clean from the JBCS installer, and it seems to work perfectly now! (well, it's still got that "flag" issue, but otherwise fine)

                                    So, is there an administrator interface for managing users and whatnot? Or do they need to be configured by hand in text files and tables?

                                    Timothy Collett

                                    1 2 3 Previous Next