[jboss-jira] [JBoss JIRA] Commented: (JBAS-5713) NullPointerException in JavaEEComponentHelper with JBoss-5.0

Jose Antonio (JIRA) jira-events at lists.jboss.org
Mon May 11 13:04:48 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBAS-5713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12466784#action_12466784 ] 

Jose Antonio commented on JBAS-5713:
------------------------------------

I'm using JBoss 5.1.0CR1 and I'm trying to deploy an EAR file which contains the following:

<?xml version="1.0" encoding="UTF-8"?>
<application 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/application_5.xsd" version="5">
  <display-name>OHAServices</display-name>
  <module>
    <ejb>datasource-common-1.0-SNAPSHOT.jar</ejb>
  </module>
  <module>
    <ejb>datasource-ws-1.0-SNAPSHOT.jar</ejb>
  </module>
  <module>
    <ejb>OHA-local-backend-1.0-SNAPSHOT.jar</ejb>
  </module>
  <module>
    <ejb>OHA-provisioning-service-1.0-SNAPSHOT.jar</ejb>
  </module>
</application>

They are in order of dependencies, as all the jars depend on datasource-common but also it's the first alphabetically so it must be deployed first. However, on deployment I see this:

18:59:11,912 INFO  [JBossASKernel] Created KernelDeployment for: OHA-local-backend-1.0-SNAPSHOT.jar
18:59:11,913 INFO  [JBossASKernel] installing bean: jboss.j2ee:ear=OHAServices-1.0-SNAPSHOT.ear,jar=OHA-local-backend-1.0-SNAPSHOT.jar,name=LocalDataSource,service=EJB3
18:59:11,913 INFO  [JBossASKernel]   with dependencies:                                                                                                                 
18:59:11,913 INFO  [JBossASKernel]   and demands:                                                                                                                       
18:59:11,913 INFO  [JBossASKernel]      persistence.unit:unitName=OHAServices-1.0-SNAPSHOT.ear/OHA-local-backend-1.0-SNAPSHOT.jar#DocumentPersistenceJTA                
18:59:11,913 INFO  [JBossASKernel]      jboss.ejb:service=EJBTimerService                                                                                               
18:59:11,913 INFO  [JBossASKernel]   and supplies:                                                                                                                      
18:59:11,913 INFO  [JBossASKernel]      jndi:OHAServices-1.0-SNAPSHOT/LocalDataSource/remote-com.andago.healthassistant.datasource.local.LocalDatasourceRemote          
18:59:11,914 INFO  [JBossASKernel]      jndi:OHAServices-1.0-SNAPSHOT/LocalDataSource/local                                                                             
18:59:11,914 INFO  [JBossASKernel]      Class:com.andago.healthassistant.datasource.local.LocalDataSourceLocal                                                          
18:59:11,914 INFO  [JBossASKernel]      Class:com.andago.healthassistant.datasource.local.LocalDatasourceRemote                                                         
18:59:11,914 INFO  [JBossASKernel]      jndi:LocalDataSourceRemote                                                                                                      
18:59:11,914 INFO  [JBossASKernel]      jndi:OHAServices-1.0-SNAPSHOT/LocalDataSource/local-com.andago.healthassistant.datasource.local.LocalDataSourceLocal            
18:59:11,914 INFO  [JBossASKernel] Added bean(jboss.j2ee:ear=OHAServices-1.0-SNAPSHOT.ear,jar=OHA-local-backend-1.0-SNAPSHOT.jar,name=LocalDataSource,service=EJB3) to KernelDeployment of: OHA-local-backend-1.0-SNAPSHOT.jar                                                                                                                                          
18:59:11,995 INFO  [JBossASKernel] Created KernelDeployment for: OHA-provisioning-service-1.0-SNAPSHOT.jar                                                                          
18:59:11,995 INFO  [JBossASKernel] installing bean: jboss.j2ee:ear=OHAServices-1.0-SNAPSHOT.ear,jar=OHA-provisioning-service-1.0-SNAPSHOT.jar,name=RelationsService,service=EJB3    
18:59:11,995 INFO  [JBossASKernel]   with dependencies:                                                                                                                             
18:59:11,996 INFO  [JBossASKernel]   and demands:                                                                                                                                   
18:59:11,996 INFO  [JBossASKernel]      jboss.ejb:service=EJBTimerService                                                                                                           
18:59:11,996 INFO  [JBossASKernel]      persistence.unit:unitName=OHAServices-1.0-SNAPSHOT.ear/OHA-provisioning-service-1.0-SNAPSHOT.jar#PatientCareRelationPersistenceJTA          
18:59:11,996 INFO  [JBossASKernel]   and supplies:                                                                                                                                  
18:59:11,996 INFO  [JBossASKernel]      jndi:OHAServices-1.0-SNAPSHOT/RelationsService/local                                                                                        
18:59:11,996 INFO  [JBossASKernel]      jndi:OHAServices-1.0-SNAPSHOT/RelationsService/local-com.andago.healthassistant.provisioning.service.RelationServiceLocal                   
18:59:11,996 INFO  [JBossASKernel]      Class:com.andago.healthassistant.provisioning.service.RelationServiceLocal                                                                  
18:59:11,996 INFO  [JBossASKernel]      jndi:OHAServices-1.0-SNAPSHOT/RelationsService/remote                                                                                       
18:59:11,996 INFO  [JBossASKernel] Added bean(jboss.j2ee:ear=OHAServices-1.0-SNAPSHOT.ear,jar=OHA-provisioning-service-1.0-SNAPSHOT.jar,name=RelationsService,service=EJB3) to KernelDeployment of: OHA-provisioning-service-1.0-SNAPSHOT.jar                                                                                                                           
18:59:12,039 INFO  [JBossASKernel] Created KernelDeployment for: datasource-common-1.0-SNAPSHOT.jar                                                                                 
18:59:12,039 INFO  [JBossASKernel] installing bean: jboss.j2ee:ear=OHAServices-1.0-SNAPSHOT.ear,jar=datasource-common-1.0-SNAPSHOT.jar,name=DataSourceFinderBean,service=EJB3       
18:59:12,039 INFO  [JBossASKernel]   with dependencies:                                                                                                                             
18:59:12,039 INFO  [JBossASKernel]   and demands:                                                                                                                                   
18:59:12,039 INFO  [JBossASKernel]      jboss.ejb:service=EJBTimerService                                                                                                           
18:59:12,040 INFO  [JBossASKernel]      persistence.unit:unitName=OHAServices-1.0-SNAPSHOT.ear/datasource-common-1.0-SNAPSHOT.jar#DataSourcePersistenceUnit                         
18:59:12,040 INFO  [JBossASKernel]   and supplies:                                                                                                                                  
18:59:12,040 INFO  [JBossASKernel]      jndi:OHAServices-1.0-SNAPSHOT/DataSourceFinderBean/local-com.andago.healthassistant.datasource.finder.DataSourceFinderLocal                 
18:59:12,040 INFO  [JBossASKernel]      jndi:OHAServices-1.0-SNAPSHOT/DataSourceFinderBean/local                                                                                    
18:59:12,040 INFO  [JBossASKernel]      Class:com.andago.healthassistant.datasource.finder.DataSourceFinderLocal                                                                    
18:59:12,040 INFO  [JBossASKernel]      jndi:DataSourceFinderBean                                                                                                                   
18:59:12,040 INFO  [JBossASKernel]      Class:com.andago.healthassistant.datasource.finder.DataSourceFinderRemote                                                                   
18:59:12,040 INFO  [JBossASKernel]      jndi:OHAServices-1.0-SNAPSHOT/DataSourceFinderBean/remote-com.andago.healthassistant.datasource.finder.DataSourceFinderRemote               
18:59:12,040 INFO  [JBossASKernel] Added bean(jboss.j2ee:ear=OHAServices-1.0-SNAPSHOT.ear,jar=datasource-common-1.0-SNAPSHOT.jar,name=DataSourceFinderBean,service=EJB3) to KernelDeployment of: datasource-common-1.0-SNAPSHOT.jar                                                                                                                                     
18:59:12,349 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/home/jsanchez/apps/jboss/jboss-5.1.0.CR1/server/default/deploy/OHA/OHAServices-1.0-SNAPSHOT.ear/ state=PreReal mode=Manual requiredState=Real                                                                                                                                      
org.jboss.deployers.spi.DeploymentException: Error deploying datasource-ws-1.0-SNAPSHOT.jar: JBAS-5713: could not find an ejb3 deployment for datasource-common-1.0-SNAPSHOT.jar (yet), try reordering the jars or adding explicit dependencies                                                                                                                         
        at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:196)                                                                                                      
        at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:99)                                                                                                       
        at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)                                                             
        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: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:1631)
        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
        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:702)
        at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
        at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
        at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
        at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
        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.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
        at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
        at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
        at org.jboss.Main.boot(Main.java:216)
        at org.jboss.Main$1.run(Main.java:546)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalStateException: JBAS-5713: could not find an ejb3 deployment for datasource-common-1.0-SNAPSHOT.jar (yet), try reordering the jars or adding explicit dependencies
        at org.jboss.ejb3.deployers.JBoss5DeploymentScope.getEjbContainer(JBoss5DeploymentScope.java:173)
        at org.jboss.ejb3.Ejb3Deployment.getEjbContainer(Ejb3Deployment.java:410)
        at org.jboss.ejb3.EJBContainer.resolveEjbContainer(EJBContainer.java:1418)
        at org.jboss.injection.AbstractHandler.addDependency(AbstractHandler.java:50)
        at org.jboss.injection.EJBRemoteHandler.ejbRefDependency(EJBRemoteHandler.java:146)
        at org.jboss.injection.EJBRemoteHandler.handleFieldAnnotations(EJBRemoteHandler.java:393)
        at org.jboss.injection.InjectionUtil.processFieldAnnotations(InjectionUtil.java:160)
        at org.jboss.injection.InjectionUtil.processFieldAnnotations(InjectionUtil.java:166)
        at org.jboss.injection.InjectionUtil.processAnnotations(InjectionUtil.java:197)
        at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:609)
        at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:418)
        at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:526)
        at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:189)
        ... 34 more
18:59:12,417 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

DEPLOYMENTS IN ERROR:
  Deployment "vfszip:/home/jsanchez/apps/jboss/jboss-5.1.0.CR1/server/default/deploy/OHA/OHAServices-1.0-SNAPSHOT.ear/" is in error due to the following reason(s): java.lang.IllegalStateException: JBAS-5713: could not find an ejb3 deployment for datasource-common-1.0-SNAPSHOT.jar (yet), try reordering the jars or adding explicit dependencies

I post it here because the error mentions this issue.

> NullPointerException in JavaEEComponentHelper with JBoss-5.0
> ------------------------------------------------------------
>
>                 Key: JBAS-5713
>                 URL: https://jira.jboss.org/jira/browse/JBAS-5713
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: EJB3
>    Affects Versions: JBossAS-5.0.0.CR1
>            Reporter: James Callaghan
>            Assignee: Carlo de Wolf
>            Priority: Critical
>             Fix For: JBossAS-5.1.0.Beta1
>
>         Attachments: 10.mpee.local.20080702.1514.ear, jira-5713-ds.xml, jira-5713-service.xml
>
>
> Please see my forum post for the background on this posting:
> http://www.jboss.com/index.html?module=bb&op=viewtopic&t=138480
> As requested, I'm creating this JIRA story. Trying to find a way to attach one of the EAR files in question. Perhaps I have to edit this story after it's created?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list