[jboss-jira] [JBoss JIRA] Commented: (JBAS-8559) Create DataSource out of Java EE6 spec specified @DataSourceDefinition and its XML deployment descriptor equivalent

Frank Langelage (JIRA) jira-events at lists.jboss.org
Tue Dec 21 08:31:18 EST 2010


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

Frank Langelage commented on JBAS-8559:
---------------------------------------

I got a NPE after EARDataSourceDeployer was enabled.
My application.xml does only modules, no refs, datasources,etc.

I could quick fix this problem the following way:

Checked out revision 110073.
Index: jboss-head/connector/src/main/java/org/jboss/resource/deployers/EARDataSourceDeployer.java
===================================================================
--- jboss-head/connector/src/main/java/org/jboss/resource/deployers/EARDataSourceDeployer.java  (revision 110073)
+++ jboss-head/connector/src/main/java/org/jboss/resource/deployers/EARDataSourceDeployer.java  (working copy)
@@ -23,7 +23,7 @@
        {
                EarMetaData emd = unit.getAttachment(EarMetaData.class);

-               if(emd != null && emd.isEE6())
+               if(emd != null && emd.isEE6() && ((Ear60MetaData)emd).getEarEnvironmentRefsGroup() != null )
                {
                        return ((Ear60MetaData)emd).getEarEnvironmentRefsGroup().getDataSources();
                }


> Create DataSource out of Java EE6 spec specified @DataSourceDefinition and its XML deployment descriptor equivalent
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBAS-8559
>                 URL: https://issues.jboss.org/browse/JBAS-8559
>             Project: JBoss Application Server
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>          Components: Integration
>            Reporter: Shelly McGowan
>            Assignee: Weston M. Price
>             Fix For: 6.0.0.Final
>
>
> See http://community.jboss.org/wiki/Switchboard for what's needed for ResourceProvider in AS 6 to implement.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list