12 Replies Latest reply on May 14, 2009 11:34 PM by tony.herstell1

    And moving forward to JBoss AS 5.0GA

    tony.herstell1

      I remove the seam.properties file as per the Wiki.


      I get these errors at run up:



      20:32:55,156 WARN  [AbstractDeploymentContext] Unable to register deployment mbean vfsfile:/C:/jboss-5.0.0.GA/server/selwyn/deploy/Sec.ear/SecEJB.jar/sec-ds.xml
      javax.management.InstanceAlreadyExistsException: jboss.deployment:id="vfsfile:/C:/jboss-5.0.0.GA/server/selwyn/deploy/Sec.ear/SecEJB.jar/sec-ds.xml",type=SubDeployment already registered. at 
      org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistry.java:767)
      



      See the WARN statement:


      20:33:42,828 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=secDatasource' to JNDI name 'java:secDatasource'
      20:33:42,828 INFO  [PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=Sec.ear/SecEJB.jar#secDatabase
      20:33:42,906 INFO  [Version] Hibernate Annotations 3.4.0.GA
      20:33:42,937 INFO  [Environment] Hibernate 3.3.1.GA
      20:33:42,953 INFO  [Environment] hibernate.properties not found
      20:33:42,953 INFO  [Environment] Bytecode provider name : javassist
      20:33:42,968 INFO  [Environment] using JDK 1.4 java.sql.Timestamp handling
      20:33:43,140 INFO  [Version] Hibernate Commons Annotations 3.1.0.GA
      20:33:43,156 INFO  [Version] Hibernate EntityManager 3.4.0.GA
      20:33:43,296 WARN  [Ejb3Configuration] Persistence provider caller does not implement the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null.
      20:33:43,546 INFO  [AnnotationBinder] Binding entity from annotated class: nz.co.selwynequestriancentre.model.entity.Resource
      20:33:43,671 INFO  [EntityBinder] Bind entity nz.co.selwynequestriancentre.model.entity.Resource on table Resource
      20:33:43,843 INFO  [AnnotationBinder] Binding entity from annotated class: nz.co.selwynequestriancentre.model.entity.event.TestTemplate
      20:33:43,843 INFO  [EntityBinder] Bind entity nz.co.selwynequestriancentre.model.entity.event.TestTemplate on table TestTemplate
      20:33:43,921 INFO  [AnnotationBinder] Binding entity from annotated class: nz.co.selwynequestriancentre.model.entity.User
      20:33:43,921 INFO  [EntityBinder] Bind entity nz.co.selwynequestriancentre.model.entity.User on table User
      20:33:43,953 INFO  [AnnotationBinder] Binding entity from annotated class: nz.co.selwynequestriancentre.model.entity.event.CompetitorDetails
      20:33:43,953 INFO  [EntityBinder] Bind entity nz.co.selwynequestriancentre.model.entity.event.CompetitorDetails on table CompetitorDetails
      20:33:43,968 INFO  [AnnotationBinder] Binding entity from annotated class: nz.co.selwynequestriancentre.model.entity.booking.BookingResource
      20:33:43,968 INFO  [EntityBinder] Bind entity nz.co.selwynequestriancentre.model.entity.booking.BookingResource on table BookingResource
      20:33:44,109 INFO  [AnnotationBinder] Binding entity from annotated class: nz.co.selwynequestriancentre.model.entity.booking.BookingResourceWithHoursRange
      20:33:44,140 INFO  [AnnotationBinder] Binding entity from annotated class: nz.co.selwynequestriancentre.model.entity.Images
      20:33:44,140 INFO  [EntityBinder] Bind entity nz.co.selwynequestriancentre.model.entity.Images on table Images
      20:33:44,156 INFO  [AnnotationBinder] Binding entity from annotated class: nz.co.selwynequestriancentre.model.entity.MailingListEntry
      20:33:44,156 INFO  [EntityBinder] Bind entity nz.co.selwynequestriancentre.model.entity.MailingListEntry on table MailingListEntry
      20:33:44,156 INFO  [AnnotationBinder] Binding entity from annotated class: nz.co.selwynequestriancentre.model.entity.booking.BookingResourceWithRiders
      20:33:44,156 INFO  [AnnotationBinder] Binding entity from annotated class: nz.co.selwynequestriancentre.model.entity.booking.BookingResourceWithMeals
      20:33:44,156 INFO  [AnnotationBinder] Binding entity from annotated class: nz.co.selwynequestriancentre.model.entity.SelwynEquestrianCentreRole
      20:33:44,156 INFO  [EntityBinder] Bind entity nz.co.selwynequestriancentre.model.entity.SelwynEquestrianCentreRole on table SelwynEquestrianCentreRole
      20:33:44,156 INFO  [AnnotationBinder] Binding entity from annotated class: nz.co.selwynequestriancentre.model.entity.event.ClassEntity
      20:33:44,171 INFO  [EntityBinder] Bind entity nz.co.selwynequestriancentre.model.entity.event.ClassEntity on table ClassEntity
      20:33:44,171 INFO  [AnnotationBinder] Binding entity from annotated class: nz.co.selwynequestriancentre.model.entity.booking.BookingResourceWithNumbers
      20:33:44,171 INFO  [AnnotationBinder] Binding entity from annotated class: nz.co.selwynequestriancentre.model.entity.ResourceStatus
      20:33:44,187 INFO  [EntityBinder] Bind entity nz.co.selwynequestriancentre.model.entity.ResourceStatus on table ResourceStatus
      20:33:44,187 INFO  [AnnotationBinder] Binding entity from annotated class: nz.co.selwynequestriancentre.model.entity.booking.Booking
      20:33:44,187 INFO  [EntityBinder] Bind entity nz.co.selwynequestriancentre.model.entity.booking.Booking on table Booking
      20:33:44,187 INFO  [AnnotationBinder] Binding entity from annotated class: nz.co.selwynequestriancentre.model.entity.event.Cost
      20:33:44,187 INFO  [EntityBinder] Bind entity nz.co.selwynequestriancentre.model.entity.event.Cost on table Cost
      20:33:44,187 INFO  [AnnotationBinder] Binding entity from annotated class: nz.co.selwynequestriancentre.model.entity.Image
      20:33:44,203 INFO  [EntityBinder] Bind entity nz.co.selwynequestriancentre.model.entity.Image on table Image
      20:33:44,203 INFO  [AnnotationBinder] Binding entity from annotated class: nz.co.selwynequestriancentre.model.entity.event.Paperwork
      20:33:44,218 INFO  [EntityBinder] Bind entity nz.co.selwynequestriancentre.model.entity.event.Paperwork on table Paperwork
      20:33:44,218 INFO  [AnnotationBinder] Binding entity from annotated class: nz.co.selwynequestriancentre.model.entity.booking.BookingDay
      20:33:44,218 INFO  [EntityBinder] Bind entity nz.co.selwynequestriancentre.model.entity.booking.BookingDay on table BookingDay
      20:33:44,218 INFO  [AnnotationBinder] Binding entity from annotated class: nz.co.selwynequestriancentre.model.entity.event.TestStep
      20:33:44,218 INFO  [EntityBinder] Bind entity nz.co.selwynequestriancentre.model.entity.event.TestStep on table TestStep
      20:33:44,234 INFO  [AnnotationBinder] Binding entity from annotated class: nz.co.selwynequestriancentre.model.entity.event.Score
      20:33:44,234 INFO  [EntityBinder] Bind entity nz.co.selwynequestriancentre.model.entity.event.Score on table Score
      20:33:44,234 INFO  [AnnotationBinder] Binding entity from annotated class: nz.co.selwynequestriancentre.model.entity.event.Event
      20:33:44,234 INFO  [EntityBinder] Bind entity nz.co.selwynequestriancentre.model.entity.event.Event on table Event
      20:33:44,265 INFO  [AnnotationBinder] Binding entity from annotated class: nz.co.selwynequestriancentre.model.entity.Horse
      20:33:44,265 INFO  [EntityBinder] Bind entity nz.co.selwynequestriancentre.model.entity.Horse on table Horse
      20:33:44,312 INFO  [Version] Hibernate Validator 3.1.0.GA
      20:33:44,500 INFO  [HibernateSearchEventListenerRegister] Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
      20:33:44,656 INFO  [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
      20:33:44,671 INFO  [InjectedDataSourceConnectionProvider] Using provided datasource
      20:33:45,093 INFO  [SettingsFactory] RDBMS: MySQL, version: 5.1.30-community
      20:33:45,093 INFO  [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.7 ( Revision: ${svn.Revision} )
      20:33:45,156 INFO  [Dialect] Using dialect: org.hibernate.dialect.MySQLInnoDBDialect
      20:33:45,171 INFO  [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
      20:33:45,187 INFO  [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
      20:33:45,203 INFO  [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
      20:33:45,203 INFO  [SettingsFactory] Automatic flush during beforeCompletion(): disabled
      



      and


      20:33:48,375 INFO  [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812042120)] Started in 1m:15s:938ms
      20:33:52,609 INFO  [Contexts] starting up: org.jboss.seam.security.identity
      20:33:52,625 INFO  [Contexts] starting up: org.jboss.seam.web.session
      20:33:52,828 WARN  [InterceptorsFactory] EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container
      20:33:52,828 WARN  [InterceptorsFactory] EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container
      20:33:52,843 WARN  [InterceptorRegistry] applicable interceptors is non-existent for public void org.jboss.seam.transaction.EjbSynchronizations.beforeCompletion() throws javax.ejb.EJBException,java.rmi.RemoteException
      20:33:52,843 WARN  [InterceptorRegistry] applicable interceptors is non-existent for public void org.jboss.seam.transaction.EjbSynchronizations.afterCompletion(boolean) throws javax.ejb.EJBException,java.rmi.RemoteException
      20:33:52,843 WARN  [InterceptorRegistry] applicable interceptors is non-existent for public void org.jboss.seam.transaction.EjbSynchronizations.destroy()
      20:33:52,843 WARN  [InterceptorRegistry] applicable interceptors is non-existent for public void org.jboss.seam.transaction.EjbSynchronizations.afterTransactionBegin()
      20:33:52,843 WARN  [InterceptorRegistry] applicable interceptors is non-existent for public void org.jboss.seam.transaction.EjbSynchronizations.afterBegin()
      20:33:52,843 WARN  [InterceptorRegistry] applicable interceptors is non-existent for public void org.jboss.seam.transaction.EjbSynchronizations.beforeTransactionCommit()
      20:33:52,843 WARN  [InterceptorRegistry] applicable interceptors is non-existent for public void org.jboss.seam.transaction.EjbSynchronizations.registerSynchronization(javax.transaction.Synchronization)
      20:33:54,484 WARN  [InterceptorRegistry] applicable interceptors is non-existent for public void org.jboss.seam.transaction.EjbSynchronizations.afterTransactionCommit(boolean)
      20:33:54,515 WARN  [InterceptorRegistry] applicable interceptors is non-existent for public void org.jboss.seam.transaction.EjbSynchronizations.afterTransactionRollback()
      20:33:54,515 WARN  [InterceptorRegistry] applicable interceptors is non-existent for public boolean org.jboss.seam.transaction.EjbSynchronizations.isAwareOfContainerTransactions()
      20:33:54,515 WARN  [InterceptorRegistry] applicable interceptors is non-existent for public void org.jboss.seam.transaction.EjbSynchronizations.beforeCompletion() throws javax.ejb.EJBException,java.rmi.RemoteException
      20:33:54,515 WARN  [InterceptorRegistry] applicable interceptors is non-existent for public void org.jboss.seam.transaction.EjbSynchronizations.afterCompletion(boolean) throws javax.ejb.EJBException,java.rmi.RemoteException
      20:33:54,515 WARN  [InterceptorRegistry] applicable interceptors is non-existent for public void org.jboss.seam.transaction.EjbSynchronizations.destroy()
      20:33:54,515 WARN  [InterceptorRegistry] applicable interceptors is non-existent for public void org.jboss.seam.transaction.EjbSynchronizations.afterTransactionBegin()
      20:33:54,531 WARN  [InterceptorRegistry] applicable interceptors is non-existent for public void org.jboss.seam.transaction.EjbSynchronizations.afterBegin()
      20:33:54,531 WARN  [InterceptorRegistry] applicable interceptors is non-existent for public void org.jboss.seam.transaction.EjbSynchronizations.beforeTransactionCommit()
      20:33:54,531 WARN  [InterceptorRegistry] applicable interceptors is non-existent for public void org.jboss.seam.transaction.EjbSynchronizations.registerSynchronization(javax.transaction.Synchronization)
      20:33:54,531 WARN  [InterceptorRegistry] applicable interceptors is non-existent for public void org.jboss.seam.transaction.EjbSynchronizations.afterTransactionCommit(boolean)
      20:33:54,531 WARN  [InterceptorRegistry] applicable interceptors is non-existent for public void org.jboss.seam.transaction.EjbSynchronizations.afterTransactionRollback()
      20:33:54,531 WARN  [InterceptorRegistry] applicable interceptors is non-existent for public boolean org.jboss.seam.transaction.EjbSynchronizations.isAwareOfContainerTransactions()
      




      and when I run the app:


      20:33:59,234 INFO  [Contexts] starting up: org.jboss.seam.security.identity
      20:33:59,234 INFO  [Contexts] starting up: org.jboss.seam.web.session
      20:33:59,890 ERROR [viewhandler] Error Rendering View[/home.xhtml]
      java.lang.IllegalArgumentException: Image pointed to must exist (input stream must not be null)
           at org.jboss.seam.ui.graphicImage.Image.readImage(Image.java:446)
           at org.jboss.seam.ui.graphicImage.Image.readImage(Image.java:394)
           at org.jboss.seam.ui.graphicImage.Image.setInput(Image.java:141)
           at org.jboss.seam.ui.graphicImage.GraphicImageRendererBase.doEncodeBegin(GraphicImageRendererBase.java:31)
      



      Does ANY of this mean anything to anyone?

        • 1. Re: And moving forward to JBoss AS 5.0GA
          jharting

          What version of Seam are you using?

          • 2. Re: And moving forward to JBoss AS 5.0GA
            tony.herstell1

            I am using:




            • Seam 2.1.1.GA

            • RF 3.2.2.GA

            • JBoss 4.2.1.GA (Reverted from 5.0.0.GA AGAIN!)

            • MySQL connector 5.1.7

            • MySQL 5.1.30-community




            100% Seam (EJB3, JPA)


            NO Ant/Maven/Other Build or Deployment Script (All auto managed through MyEclipse).



            Originally  (many many many months ago... the project was laid out by using the Ant build for an example Seam project and copying the files into the correct projects Ear, Jar and War... since then I have never touched a build/deployment script).



            • 3. Re: And moving forward to JBoss AS 5.0GA
              tony.herstell1

              After some more work on this (again).


              I still get javax.management.InstanceAlreadyExistsException


              The Image problem appears cleared and I can now use


              <s:convertEntity/>
              


              as I now think I am using Seam Perisitance



              I however get this now:



              public interface InitialisationController {
              
                   /**
                    * This method is run at the very start of the Application
                    * Useful for pre-loading stuff and grabbing resources etc.
                    */
                   public void initialise();
              
              }
              





              @SuppressWarnings("serial")
              @Stateless
              @Scope(value=ScopeType.APPLICATION)
              @Startup
              @Name("initialisationController")
              public class InitialisationControllerImpl implements InitialisationController, Serializable {
              
                      /**
                       * Inject and leverage the Seam Logger.
                       */
                      @Logger
                      private Log log;
                      
                      /**
                       * Inject the EJB3 Persistence context.
                       */
                      @PersistenceContext
                      private EntityManager entityManager;
                      
                      @Observer("org.jboss.seam.postInitialization") // was org.jboss.seam.postReInitialization
                      public void initialise() {
                              log.info("Initialising Resource Kinds if required.");
                              for (ResourceKind eachResourceKind : ResourceKind.values()) {
                                      Query theQuery = entityManager.createQuery("from Resource r where r.kind = :kind").setParameter("kind", eachResourceKind);
                                      if (theQuery.getResultList().isEmpty()) {
                                              Resource resource = new Resource();
                                              resource.setKind(eachResourceKind);
                                              ResourceStatus resourceStatus = new ResourceStatus();
                                              resourceStatus.setOpen(true);
                                              resource.setResourceStatus(resourceStatus);
                                              log.info("adding " + eachResourceKind);
                                              entityManager.persist(resource);
                                      }
                              }
                      }
              }



              causes:


              20:24:33,890 INFO  [Contexts] starting up: initialisationController
              20:24:33,890 ERROR [[/site]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
              org.jboss.seam.InstantiationException: Could not instantiate Seam component: initialisationController
                      at org.jboss.seam.Component.newInstance(Component.java:2106)
                      at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
                      at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
                      at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:112)
                      at org.jboss.seam.init.Initialization.init(Initialization.java:735)
                      at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:35)
                      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
                      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
                      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
                      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
                      at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
                      at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                      at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
                      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:157)
                      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                      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:668)
                      at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                      at $Proxy36.start(Unknown Source)
                      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
                      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
                      at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                      at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                      at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                      at org.jboss.system.ServiceController.start(ServiceController.java:460)
                      at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)
                      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
                      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
                      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
                      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
                      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
                      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
                      at org.jboss.Main.boot(Main.java:209)
                      at org.jboss.Main$1.run(Main.java:547)
                      at java.lang.Thread.run(Thread.java:619)
              Caused by: javax.naming.NameNotFoundException: InitialisationControllerImpl not bound
                      at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
                      at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
                      at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
                      at org.jnp.server.NamingServer.lookup(NamingServer.java:396)
                      at org.jnp.server.NamingServer.lookup(NamingServer.java:399)
                      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:713)
                      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:673)
                      at javax.naming.InitialContext.lookup(InitialContext.java:392)
                      at org.jboss.seam.Component.instantiateSessionBean(Component.java:1367)
                      at org.jboss.seam.Component.instantiate(Component.java:1331)
                      at org.jboss.seam.Component.newInstance(Component.java:2084)
                      ... 64 more
              



              sec-ds.xml


              <?xml version="1.0" encoding="UTF-8"?>
              
              <datasources>
                      <local-tx-datasource>
                              <jndi-name>secDatasource</jndi-name>
                              <connection-url>
                                      jdbc:mysql://localhost:3306/selwyn
                              </connection-url>
                              <driver-class>com.mysql.jdbc.Driver</driver-class>
                              <user-name>root</user-name>
                              <password>xxxxxxx</password>
                      </local-tx-datasource>
              </datasources>
              



              persistence.xml



              
              <?xml version="1.0" encoding="UTF-8"?>
              <persistence xmlns="http://java.sun.com/xml/ns/persistence" 
                           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                           xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" 
                           version="1.0">
                 <persistence-unit name="secDatabase">
                    <provider>org.hibernate.ejb.HibernatePersistence</provider>
                    <jta-data-source>java:/secDatasource</jta-data-source>
                    <properties>
                           <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDBDialect"/>
                       <property name="hibernate.hbm2ddl.auto" value="update"/>
                       <property name="hibernate.show_sql" value="true"/>
                       <!-- These are the default for JBoss EJB3, but not for HEM: -->
                       <property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/>
                       <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
                       <property name="jboss.entity.manager.factory.jndi.name" value="java:/secEntityManagerFactories"/>
                    </properties>
                 </persistence-unit>
              </persistence>





              components.xml




              <?xml version="1.0" encoding="UTF-8"?>
              <components xmlns="http://jboss.com/products/seam/components"
                      xmlns:core="http://jboss.com/products/seam/core"
                      xmlns:security="http://jboss.com/products/seam/security"
                      xmlns:transaction="http://jboss.com/products/seam/transaction"
                      xmlns:persistence="http://jboss.com/products/seam/persistence"
                      xmlns:mail="http://jboss.com/products/seam/mail"
                      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                      xsi:schemaLocation="http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd
                               http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.1.xsd
                               http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd
                               http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd
                               http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd
                               http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.1.xsd">
              
                      <core:init jndi-pattern="Sec/#{ejbName}/local" debug="false" />
              
                      <core:manager conversation-timeout="360000"
                              concurrent-request-timeout="500" 
                              conversation-id-parameter="cid" />
              
                      <!--<transaction:ejb-transaction />-->
                      
                      <persistence:managed-persistence-context name="entityManager" auto-create="true"
                              persistence-unit-jndi-name="java:/secEntityManagerFactories"/>
                      
                      <!--<transaction:entity-transaction entity-manager="#{em}"/>-->
              
                      <security:identity
                              authenticate-method="#{authenticationController.authenticate}" />
              
                      <!-- Config for login re-direct -->
                      <event type="org.jboss.seam.security.notLoggedIn">
                              <action execute="#{redirect.captureCurrentView}" />
                              <action execute="#{identity.tryLogin}"/>
                      </event>
              
                      <event type="org.jboss.seam.security.loginSuccessful">
                              <action execute="#{redirect.returnToCapturedView}" />
                      </event>
              
                      <!-- Config for file uploads // NOW USING RICHFACES
                      <component class="org.jboss.seam.web.MultipartFilter">
                              <property name="createTempFiles">true</property>
                              <property name="maxRequestSize">1000000</property>
                      </component>
                      -->
              
                      <mail:mail-session host="smtp.gmail.com"
                              username="tony.herstell@selwynequestriancentre.co.nz"
                              password="v0yager1" ssl="true" port="465" />
              
                      <!-- Utility bean called "basePath"that allows the pages to reference the basePath for resources
                              Usage: <link rel="stylesheet" type="text/css" href="#{basePath}/xmlhttp/css/xp/xp.css" />
                      -->
                      <factory name="basePath"
                              value="#{facesContext.externalContext.request.scheme}://#{facesContext.externalContext.request.serverName}:#{facesContext.externalContext.request.serverPort}#{facesContext.externalContext.request.contextPath}/" />
              
              </components>
              





              web.xml



              <?xml version="1.0" encoding="UTF-8"?>
              <web-app version="2.5"
                  xmlns="http://java.sun.com/xml/ns/javaee"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
                  
                  <display-name>Selwyn Equestrian Centre</display-name>
              
                  <!-- Seam -->
                  <listener>
                      <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
                  </listener>
                  
                  <servlet>
                      <servlet-name>Seam Resource Servlet</servlet-name>
                      <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
                  </servlet>
                  
                  <servlet-mapping>
                      <servlet-name>Seam Resource Servlet</servlet-name>
                      <url-pattern>/seam/resource/*</url-pattern>
                  </servlet-mapping>
                  
                  <filter>
                      <filter-name>Seam Filter</filter-name>
                      <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
                      <init-param>
                              <param-name>createTempFiles</param-name>
                              <param-value>false</param-value>
                      </init-param>
                      <init-param>
                              <param-name>maxRequestSize</param-name>
                              <param-value>200000</param-value>
                      </init-param>
                  </filter>
              
                  <filter-mapping>
                      <filter-name>Seam Filter</filter-name>
                      <url-pattern>/*</url-pattern>
                  </filter-mapping>
                  
                  <!-- JSF -->
                  
                  <context-param>
                      <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                      <param-value>.xhtml</param-value>
                  </context-param>
                  
                  <context-param>
                      <param-name>facelets.DEVELOPMENT</param-name>
                      <param-value>true</param-value>
                  </context-param>
                  
                  <servlet>
                      <servlet-name>Faces Servlet</servlet-name>
                      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                      <load-on-startup>1</load-on-startup>
                  </servlet>
                  
                  <servlet-mapping>
                      <servlet-name>Faces Servlet</servlet-name>
                      <url-pattern>*.seam</url-pattern>
                  </servlet-mapping>
              
                  <session-config>
                      <session-timeout>30</session-timeout> 
                  </session-config>  
                  
              </web-app>
              




              • 4. Re: And moving forward to JBoss AS 5.0GA
                deruelle_jean

                Did you got it to work ?
                I'm porting my Seam app bundled in an EAR to JBoss 5 and I got the same exception at load time :


                javax.management.InstanceAlreadyExistsException: jboss.deployment:id="vfszip:/home/deruelle/servers/jboss-5.0.0.GA/server/default/deploy/shopping-demo.ear/shopping-demo-business-1.2-SNAPSHOT.jar/ShoppingDemo-ds.xml",type=SubDeployment already registered.


                • 5. Re: And moving forward to JBoss AS 5.0GA
                  deruelle_jean

                  For information, I got paste it by removing the xml data source file that was located at the root of my ejb-jar bundled within my EAR and copying this datasource to <jboss5-home>/server/default/deploy directory. Would appreciate any hint on how to be able to bundle the ds with my app though, I see this as a temp solution only

                  • 6. Re: And moving forward to JBoss AS 5.0GA
                    tony.herstell1

                    I will try that tonight... and see if it makes a difference.


                    I must admit I have given up with Jboss 5.0 again!


                    I will wait for 5.1... always a good plan!


                    I also strongly agree that the file should be bundled with the EAR.. anything else is a workaround.



                    • 7. Re: And moving forward to JBoss AS 5.0GA
                      tony.herstell1

                      Does anyone have any idea why, given this code, I get the following exception with JBoss 5.0 when it starts up.



                      public interface InitialisationController {
                      
                           /**
                            * This method is run at the very start of the Application
                            * Useful for pre-loading stuff and grabbing resources etc.
                            */
                           public void initialise();
                      
                      }






                      @SuppressWarnings("serial")
                      @Stateless
                      @Scope(value=ScopeType.APPLICATION)
                      @Startup
                      @Name("initialisationController")
                      public class InitialisationControllerImpl implements InitialisationController, Serializable {
                      
                              /**
                               * Inject and leverage the Seam Logger.
                               */
                              @Logger
                              private Log log;
                              
                              /**
                               * Inject the EJB3 Persistence context.
                               */
                              @PersistenceContext
                              private EntityManager entityManager;
                              
                              @Observer("org.jboss.seam.postInitialization") // was org.jboss.seam.postReInitialization
                              public void initialise() {
                                      log.info("Initialising Resource Kinds if required.");
                                      for (ResourceKind eachResourceKind : ResourceKind.values()) {
                                              Query theQuery = entityManager.createQuery("from Resource r where r.kind = :kind").setParameter("kind", eachResourceKind);
                                              if (theQuery.getResultList().isEmpty()) {
                                                      Resource resource = new Resource();
                                                      resource.setKind(eachResourceKind);
                                                      ResourceStatus resourceStatus = new ResourceStatus();
                                                      resourceStatus.setOpen(true);
                                                      resource.setResourceStatus(resourceStatus);
                                                      log.info("adding " + eachResourceKind);
                                                      entityManager.persist(resource);
                                              }
                                      }
                              }
                      }
                      






                      20:24:33,890 INFO  [Contexts] starting up: initialisationController
                      20:24:33,890 ERROR [[/site]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
                      org.jboss.seam.InstantiationException: Could not instantiate Seam component: initialisationController
                              at org.jboss.seam.Component.newInstance(Component.java:2106)
                              at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
                              at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
                              at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:112)
                              at org.jboss.seam.init.Initialization.init(Initialization.java:735)
                              at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:35)
                              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
                              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
                              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
                              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
                              at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
                              at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                              at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
                              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:157)
                              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                              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:668)
                              at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                              at $Proxy36.start(Unknown Source)
                              at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
                              at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
                              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                              at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                              at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
                              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                              at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                              at org.jboss.system.ServiceController.start(ServiceController.java:460)
                              at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)
                              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
                              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
                              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
                              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
                              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
                              at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
                              at org.jboss.Main.boot(Main.java:209)
                              at org.jboss.Main$1.run(Main.java:547)
                              at java.lang.Thread.run(Thread.java:619)
                      Caused by: javax.naming.NameNotFoundException: InitialisationControllerImpl not bound
                              at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
                              at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
                              at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
                              at org.jnp.server.NamingServer.lookup(NamingServer.java:396)
                              at org.jnp.server.NamingServer.lookup(NamingServer.java:399)
                              at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:713)
                              at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:673)
                              at javax.naming.InitialContext.lookup(InitialContext.java:392)
                              at org.jboss.seam.Component.instantiateSessionBean(Component.java:1367)
                              at org.jboss.seam.Component.instantiate(Component.java:1331)
                              at org.jboss.seam.Component.newInstance(Component.java:2084)
                              ... 64 more
                      
                      




                      • 8. Re: And moving forward to JBoss AS 5.0GA
                        tony.herstell1

                        Is there any movement on AS 5.0 with problems with the @Startup tag?


                        • 9. Re: And moving forward to JBoss AS 5.0GA
                          jharting

                          Does your Stateless Session Bean have a local or remote business interface?

                          • 10. Re: And moving forward to JBoss AS 5.0GA
                            tony.herstell1

                            This may sound odd but after coding seam for over 2 years I have never added either Local or Remote to any bean I have used in Seam.


                            I have simply never had a need to!


                            I don't know what the implications are; as there is nothing at all in the seam doco or any bok I have read on Seam so far to say I need one or why I should use one.


                            I create the spec and the body and it just works (I like that about Seam)...


                            I don't even know if they are really Pojo's! :)


                            I would actually like to know why you would annotate the beans as so far I have not had a problem that I know about.


                            I am running a single server solution however so clustering etc. may be a problem if I ever did.


                            I did look in the Jboss Managament Page and see all by beans listed and on runup I do see the beans being discovered etc.


                            Humm...

                            • 11. Re: And moving forward to JBoss AS 5.0GA
                              tony.herstell1

                              I am going to try AS 5.0.1 and if this is unsuccessful then can I create a JIRA for this?

                              • 12. Re: And moving forward to JBoss AS 5.0GA
                                tony.herstell1

                                Tony Herstell wrote on Jan 28, 2009 21:39:


                                Does anyone have any idea why, given this code, I get the following exception with JBoss 5.0 when it starts up.


                                public interface InitialisationController {
                                
                                     /**
                                      * This method is run at the very start of the Application
                                      * Useful for pre-loading stuff and grabbing resources etc.
                                      */
                                     public void initialise();
                                
                                }






                                @SuppressWarnings("serial")
                                @Stateless
                                @Scope(value=ScopeType.APPLICATION)
                                @Startup
                                @Name("initialisationController")
                                public class InitialisationControllerImpl implements InitialisationController, Serializable {
                                
                                        /**
                                         * Inject and leverage the Seam Logger.
                                         */
                                        @Logger
                                        private Log log;
                                        
                                        /**
                                         * Inject the EJB3 Persistence context.
                                         */
                                        @PersistenceContext
                                        private EntityManager entityManager;
                                        
                                        @Observer("org.jboss.seam.postInitialization") // was org.jboss.seam.postReInitialization
                                        public void initialise() {
                                                log.info("Initialising Resource Kinds if required.");
                                                for (ResourceKind eachResourceKind : ResourceKind.values()) {
                                                        Query theQuery = entityManager.createQuery("from Resource r where r.kind = :kind").setParameter("kind", eachResourceKind);
                                                        if (theQuery.getResultList().isEmpty()) {
                                                                Resource resource = new Resource();
                                                                resource.setKind(eachResourceKind);
                                                                ResourceStatus resourceStatus = new ResourceStatus();
                                                                resourceStatus.setOpen(true);
                                                                resource.setResourceStatus(resourceStatus);
                                                                log.info("adding " + eachResourceKind);
                                                                entityManager.persist(resource);
                                                        }
                                                }
                                        }
                                }
                                






                                20:24:33,890 INFO  [Contexts] starting up: initialisationController
                                20:24:33,890 ERROR [[/site]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
                                org.jboss.seam.InstantiationException: Could not instantiate Seam component: initialisationController
                                        at org.jboss.seam.Component.newInstance(Component.java:2106)
                                        at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
                                        at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
                                        at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:112)
                                        at org.jboss.seam.init.Initialization.init(Initialization.java:735)
                                        at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:35)
                                        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
                                        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
                                        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
                                        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
                                        at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
                                        at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                                        at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
                                        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:157)
                                        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                                        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:668)
                                        at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                                        at $Proxy36.start(Unknown Source)
                                        at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
                                        at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
                                        at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                                        at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                                        at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                                        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                                        at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
                                        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                                        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                                        at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                                        at org.jboss.system.ServiceController.start(ServiceController.java:460)
                                        at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)
                                        at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
                                        at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
                                        at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                                        at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                                        at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                                        at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                                        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                                        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
                                        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
                                        at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                                        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                                        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                                        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                                        at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                                        at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
                                        at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
                                        at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
                                        at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
                                        at org.jboss.Main.boot(Main.java:209)
                                        at org.jboss.Main$1.run(Main.java:547)
                                        at java.lang.Thread.run(Thread.java:619)
                                Caused by: javax.naming.NameNotFoundException: InitialisationControllerImpl not bound
                                        at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
                                        at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
                                        at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
                                        at org.jnp.server.NamingServer.lookup(NamingServer.java:396)
                                        at org.jnp.server.NamingServer.lookup(NamingServer.java:399)
                                        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:713)
                                        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:673)
                                        at javax.naming.InitialContext.lookup(InitialContext.java:392)
                                        at org.jboss.seam.Component.instantiateSessionBean(Component.java:1367)
                                        at org.jboss.seam.Component.instantiate(Component.java:1331)
                                        at org.jboss.seam.Component.newInstance(Component.java:2084)
                                        ... 64 more
                                
                                








                                Is it ok to create a JIRA for the startup problem?


                                All code is above and it has not gone away.


                                I am still on JBoss 4.2.1