[jboss-jira] [JBoss JIRA] Commented: (AS7-1277) NPE when processing web.xml containing a <data-source/> element
Takayoshi Kimura (JIRA)
jira-events at lists.jboss.org
Thu Jul 14 03:51:23 EDT 2011
[ https://issues.jboss.org/browse/AS7-1277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614100#comment-12614100 ]
Takayoshi Kimura commented on AS7-1277:
---------------------------------------
Looks like we don't handle optional attributes (description and isolation-level) properly.
> NPE when processing web.xml containing a <data-source/> element
> ---------------------------------------------------------------
>
> Key: AS7-1277
> URL: https://issues.jboss.org/browse/AS7-1277
> Project: Application Server 7
> Issue Type: Bug
> Affects Versions: 7.0.0.Final
> Environment: Windows 7 Professional x64 SP1 (also reproduced on Fedora 15 x64 and Ubuntu 11.04 x86)
> JBoss AS 7 Final
> java version "1.6.0_26"
> Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
> Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
> Reporter: Craig Ringer
> Labels: data_source, datasource, deployment, persistence, web_xml
> Attachments: jboss-ds-defn-testcase.zip
>
>
> A webapp that uses the standard <data-source/> element to define a datasource within web.xml fails during the post-deploy step with the following backtrace:
> 14:38:18,717 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) Starting deployment of "dsmap2.war"
> 14:38:18,741 INFO [org.jboss.jpa] (MSC service thread 1-6) read persistence.xml for org.example_dsmap2_war_1.0-SNAPSHOTPU
> 14:38:18,751 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start service jboss.deployment.unit."dsmap2.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."dsmap2.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "dsmap2.war"
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
> at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]
> at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]
> Caused by: java.lang.NullPointerException
> at org.jboss.as.ee.datasource.DataSourceDefinitionDeploymentDescriptorParser.getBindingConfiguration(DataSourceDefinitionDeploymentDescriptorParser.java:101)
> at org.jboss.as.ee.datasource.DataSourceDefinitionDeploymentDescriptorParser.processDescriptorEntries(DataSourceDefinitionDeploymentDescriptorParser.java:58)
> at org.jboss.as.ee.component.AbstractDeploymentDescriptorBindingsProcessor.deploy(AbstractDeploymentDescriptorBindingsProcessor.java:60)
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
> ... 5 more
> A test case that uses a simple JavaDB database definition is attached. The test case deploys fine on Glassfish 3.1.1.
--
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