Hi Thomas, just saw your message while typing this one up. Ok i am going
to try with the nightly build and go from there. Thanks again

-----------------------------------------------------------
On redeploy cycles, jboss complains the entity manager is already registered


  | 15:02:41,517 WARN  [ServiceController] Ignoring request to destroy 
nonexistent service: persistence.units:ear=cms.ear.ear,jar=cms.
  | ejb3.jar,unitName=iplaycmsEntityManager
  | 15:02:41,517 WARN  [ServiceController] Problem starting service 
jboss.j2ee:service=EJB3,module=cms.ejb3
  | java.lang.RuntimeException: 
javax.management.InstanceAlreadyExistsException: 
persistence.units:ear=cms.ear.ear,jar=cms.ejb3.jar,un
  | itName=iplaycmsEntityManager already registered.
  |         at 
org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:80)
  |         at 
org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:608)
  |         at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:452)
  |         at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:139)
  |         at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
  |         at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
  |         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:141)
  |         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  |         at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
  |         at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  |         at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
  |         at $Proxy0.start(Unknown Source)
  |         at 
org.jboss.system.ServiceController.start(ServiceController.java:428)
  |         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:141)
  |         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  |         at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
  |         at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  |         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  |         at $Proxy28.start(Unknown Source)
  |         at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:365)
  |         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
  |         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:979)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
  |         at sun.reflect.GeneratedMethodAccessor15.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:141)
  |         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  |         at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  |         at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  |         at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
  |         at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  |         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  |         at $Proxy6.deploy(Unknown Source)
  |         at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
  |         at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
  |         at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
  |         at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
  |         at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)
  | Caused by: javax.management.InstanceAlreadyExistsException: 
persistence.units:ear=cms.ear.ear,jar=cms.ejb3.jar,unitName=iplaycms
  | EntityManager already registered.
  |         at 
org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistry.java:742)
  |         at 
org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:210)
  |         at sun.reflect.GeneratedMethodAccessor2.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:141)
  |         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  |         at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  |         at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  |         at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
  |         at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  |         at 
org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1407)
  |         at java.security.AccessController.doPrivileged(Native Method)
  |         at 
org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1402)
  |         at 
org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:361)
  |         at 
org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:73)
  |         ... 50 more
  | 15:02:41,517 INFO  [EJB3Deployer] Deployed: 
file:/F:/projects/iplay/prod/jboss/server/iplayserver/tmp/deploy/tmp38815cms.ear-conte
  | nts/cms.ejb3
  | 15:02:41,527 INFO  [TomcatDeployer] deploy, ctxPath=/, 
warUrl=.../tmp/deploy/tmp38815cms.ear-contents/cms-exp.war/
  | 15:02:43,120 INFO  [ServletContextListener] Welcome to Seam 1.0 beta 2
  | 15:02:43,140 INFO  [Initialization] reading properties from: 
/seam.properties
  | 15:02:43,140 INFO  [Initialization] reading properties from: 
/seam-jndi.properties
  | 15:02:43,140 INFO  [Initialization] initializing Seam
  | 15:02:43,140 INFO  [Component] Component: org.jboss.seam.core.init, scope: 
APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.cor
  | 

>From my web.xml I removed the following as there were deployment errors


  |  <context-param>
  |         
<param-name>org.jboss.seam.core.manager.conversationTimeout</param-name>
  |         <param-value>120000</param-value>
  |     </context-param>
  |    
  |     <!-- Global JNDI name pattern for JBoss EJB3 (change for other servers) 
-->
  |  
  |     <context-param>
  |         <param-name>org.jboss.seam.core.init.jndiPattern</param-name>
  |         <param-value>cms/#{ejbName}/local</param-value>
  |     </context-param>
  | 

When i do a clean start of the server, with tmp/work removed and a fresh deploy 
the following stack is
displayed


  | 15:06:46,404 INFO  [Component] Component: iplaycmsEntityManager, scope: 
CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.cor
  | e.ManagedPersistenceContext
  | 15:06:46,434 INFO  [Scanner] scanning: 
/F:/projects/iplay/prod/jboss/server/iplayserver/tmp/deploy/tmp49914cms.ear-contents/cms.ej
  | b3
  | 15:06:46,514 ERROR [[/]] Exception sending context initialized event to 
listener instance of class org.jboss.seam.servlet.SeamList
  | ener
  | java.lang.IllegalArgumentException: You must specify 
org.jboss.seam.core.init.jndiPattern or use @JndiName: login
  |         at org.jboss.seam.Component.getJndiName(Component.java:240)
  |         at org.jboss.seam.Component.<init>(Component.java:166)
  |         at org.jboss.seam.Component.<init>(Component.java:142)
  |         at org.jboss.seam.Component.<init>(Component.java:137)
  |         at org.jboss.seam.Component.<init>(Component.java:132)
  |         at 
org.jboss.seam.init.Initialization.addComponent(Initialization.java:244)
  |         at 
org.jboss.seam.init.Initialization.addComponents(Initialization.java:225)
  |         at org.jboss.seam.init.Initialization.init(Initialization.java:93)
  |         at 
org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:59)
  |         at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669)
  |         at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)
  |         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:150)
  |         at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | 

Hmm. I can't see these in the examples, i can't access cvs yet, but are
they present in the latest examples - the jndiPattern value etc ? Perhaps
I need to build of a fresh source.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921211#3921211

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921211


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to