[jboss-user] [JNDI and Naming] - ERROR [AbstractKernelController] Error installing to Start persistence unit

Kang Delapan do-not-reply at jboss.com
Thu Sep 9 07:24:51 EDT 2010


Kang Delapan [http://community.jboss.org/people/delapan4] created the discussion

"ERROR [AbstractKernelController] Error installing to Start persistence unit"

To view the discussion, visit: http://community.jboss.org/message/560666#560666

--------------------------------------------------------------
Hi guys, anybody can help me?

I'm developing web application using jboss seam (jboss-seam-2.2.0.GA) with jboss jboss-5.0.1.GA as application server, database Oracle, and Icefaces (ICEfaces-1.8.2-bin) as presentation layer.

I was successed while creating project and deploying it into JBoss, but get a problem while start the jboss server with following error:

============================================================================
*Trace Error:*

09:46:41,266 INFO  [JBossASKernel] installing bean: jboss.j2ee:ear=BCL02.ear,jar=jboss-seam.jar,name=EjbSynchronizations,service=EJB3
09:46:41,266 INFO  [JBossASKernel]   with dependencies:
09:46:41,266 INFO  [JBossASKernel]   and demands:
09:46:41,266 INFO  [JBossASKernel]      jboss.ejb:service=EJBTimerService
09:46:41,266 INFO  [JBossASKernel]   and supplies:
09:46:41,282 INFO  [JBossASKernel]      Class:org.jboss.seam.transaction.LocalEjbSynchronizations
09:46:41,282 INFO  [JBossASKernel]      jndi:BCL02/EjbSynchronizations/local-org.jboss.seam.transaction.LocalEjbSynchronizations
09:46:41,282 INFO  [JBossASKernel]      jndi:BCL02/EjbSynchronizations/local
09:46:41,282 INFO  [JBossASKernel]      jndi:BCL02/EjbSynchronizations/remote
09:46:41,282 INFO  [JBossASKernel] Added bean(jboss.j2ee:ear=BCL02.ear,jar=jboss-seam.jar,name=EjbSynchronizations,service=EJB3) to KernelDeployment of: jbo
ss-seam.jar
09:46:41,891 INFO  [SessionSpecContainer] Starting jboss.j2ee:ear=BCL02.ear,jar=BCL02.jar,name=AuthenticatorBean,service=EJB3
09:46:41,923 INFO  [EJBContainer] STARTED EJB: id.co.vico.hr.ccis.sessionbeans.AuthenticatorBean ejbName: AuthenticatorBean
09:46:42,157 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:

        BCL02/AuthenticatorBean/local - EJB3.x Default Local Business Interface
        BCL02/AuthenticatorBean/local-id.co.vico.hr.ccis.sessionbeans.Authenticator - EJB3.x Local Business Interface

09:46:42,688 INFO  [PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=BCL02.ear/BCL02.jar#BCL02
09:46:42,751 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=BCL02.ear/BCL02.jar#BCL02 state=Create
javax.naming.NameNotFoundException: BCL02Datasource 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:443)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:682)
        at javax.naming.InitialContext.lookup(InitialContext.java:351)
        at org.jboss.jpa.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:111)
        at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:275)
        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.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
        at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
        at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
        at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
        at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
        at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
        at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
        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.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.install(AbstractController.java:774)
        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
        at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
        at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
        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:698)
        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:595)

============================================================================
*Part of Web.xml*

<persistence-unit-ref>
      <persistence-unit-ref-name>BCL02/pu</persistence-unit-ref-name>
      <persistence-unit-name>../BCL02.jar#BCL02</persistence-unit-name>
      <!-- The relative reference doesn't work on GlassFish. Instead, set the <persistence-unit-name> to "BCL02",
           package persistence.xml in the WAR, and add a <jar-file> element in persistence.xml with value "../../BCL02.jar".
      <persistence-unit-name>BCL02</persistence-unit-name>
      -->
   </persistence-unit-ref>
============================================================================
*Here is my persistence.xml :*

<?xml version="1.0" encoding="UTF-8"?>
<!-- Persistence deployment descriptor for dev profile -->
<persistence xmlns=" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence" 
             xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation=" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence  http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" 
             version="1.0">
             
   <persistence-unit name="BCL02">
      <provider>org.hibernate.ejb.HibernatePersistence</provider>
      <jta-data-source>java:/BCL02Datasource</jta-data-source>
      <!-- The <jar-file> element is necessary if you put the persistence.xml in the WAR and the classes in the JAR -->
      <!--
      <jar-file>../../vehicles.jar</jar-file>
      -->
      <properties>
         <property name="hibernate.dialect" value="org.hibernate.dialect.OracleDialect"/>
         <property name="hibernate.hbm2ddl.auto" value="update"/>
         <property name="hibernate.show_sql" value="true"/>
         <property name="hibernate.format_sql" value="true"/>
         <property name="hibernate.default_schema" value="BCL"/>
         <property name="jboss.entity.manager.factory.jndi.name" value="java:/BCL02EntityManagerFactory"/>
      </properties>
   </persistence-unit>
    
</persistence>
============================================================================
*Component.xml:* 

<?xml version="1.0" encoding="UTF-8"?>
<components xmlns=" http://jboss.com/products/seam/components http://jboss.com/products/seam/components"
            xmlns:core=" http://jboss.com/products/seam/core http://jboss.com/products/seam/core"
            xmlns:persistence=" http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence"
            xmlns:drools=" http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools"
            xmlns:bpm=" http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm"
            xmlns:security=" http://jboss.com/products/seam/security http://jboss.com/products/seam/security"
            xmlns:mail=" http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail"
            xmlns:web=" http://jboss.com/products/seam/web http://jboss.com/products/seam/web"
            xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation=
                " http://jboss.com/products/seam/core http://jboss.com/products/seam/core  http://jboss.com/products/seam/core-2.2.xsd http://jboss.com/products/seam/core-2.2.xsd
                  http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence  http://jboss.com/products/seam/persistence-2.2.xsd http://jboss.com/products/seam/persistence-2.2.xsd
                  http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools  http://jboss.com/products/seam/drools-2.2.xsd http://jboss.com/products/seam/drools-2.2.xsd
                  http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm  http://jboss.com/products/seam/bpm-2.2.xsd http://jboss.com/products/seam/bpm-2.2.xsd
                  http://jboss.com/products/seam/security http://jboss.com/products/seam/security  http://jboss.com/products/seam/security-2.2.xsd http://jboss.com/products/seam/security-2.2.xsd
                  http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail  http://jboss.com/products/seam/mail-2.2.xsd http://jboss.com/products/seam/mail-2.2.xsd
                  http://jboss.com/products/seam/web http://jboss.com/products/seam/web  http://jboss.com/products/seam/web-2.2.xsd http://jboss.com/products/seam/web-2.2.xsd
                  http://jboss.com/products/seam/components http://jboss.com/products/seam/components  http://jboss.com/products/seam/components-2.2.xsd http://jboss.com/products/seam/components-2.2.xsd">

   <core:init debug="@debug@" jndi-pattern="@jndiPattern@"/>

   <component name="renderManager" scope="application" class="com.icesoft.faces.async.render.RenderManager" auto-create="true"/>

   <core:manager concurrent-request-timeout="500"
                 conversation-timeout="120000"
                 conversation-id-parameter="cid"
                 parent-conversation-id-parameter="pid"/>

   <!-- Make sure this URL pattern is the same as that used by the Faces Servlet -->
   <web:hot-deploy-filter url-pattern="*.seam"/>

   <persistence:managed-persistence-context name="entityManager" auto-create="true"
                      persistence-unit-jndi-name="@puJndiName@"/>

   <drools:rule-base name="securityRules">
      <drools:rule-files>
         <value>/security.drl</value>
      </drools:rule-files>
   </drools:rule-base>

   <security:rule-based-permission-resolver security-rules="#{securityRules}"/>



   <event type="org.jboss.seam.security.notLoggedIn">
      <action execute="#{redirect.captureCurrentView}"/>
   </event>
   <event type="org.jboss.seam.security.loginSuccessful">
      <action execute="#{redirect.returnToCapturedView}"/>
   </event>

   <mail:mail-session host="localhost" port="25"/>

   <!-- For use with jBPM pageflow or process management -->
   <!--
   <bpm:jbpm>
      <bpm:process-definitions></bpm:process-definitions>
      <bpm:pageflow-definitions></bpm:pageflow-definitions>
   </bpm:jbpm>
   -->

   <security:jpa-identity-store
      user-class="id.co.vico.hr.ccis.entitybeans.UserAccount"
      role-class="id.co.vico.hr.ccis.entitybeans.UserRole"/>

   <security:jpa-permission-store user-permission-class="id.co.vico.hr.ccis.entitybeans.UserPermission"/>

   <security:remember-me enabled="true"/>

</components>

============================================================================
thankyou...
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/560666#560666]

Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100909/88c7986e/attachment-0001.html 


More information about the jboss-user mailing list