[
https://issues.jboss.org/browse/JBSEAM-5037?page=com.atlassian.jira.plugi...
]
Marek Schmidt commented on JBSEAM-5037:
---------------------------------------
datasource in the seam-gen generated project with defaults:
{noformat}
[maschmid@dhcp-26-127 myproject]$ cat resources/myproject-dev-ds.xml
<?xml version="1.0" encoding="UTF-8"?>
<datasources
xmlns="http://www.jboss.org/ironjacamar/schema">
<datasource
jndi-name="myprojectDatasource"
enabled="true"
use-java-context="true"
pool-name="myprojectDatasource_pool">
<connection-url>jdbc:h2:.</connection-url>
<driver>${driver.file}</driver>
<security>
<user-name>sa</user-name>
<password></password>
</security>
</datasource>
</datasources>
{noformat}
seam-gen.properties:
{noformat}
#Generated by seam setup
#Thu Sep 13 15:51:22 CEST 2012
hibernate.connection.password=
workspace.home=/home/maschmid/testing/seam/seam2.3/jboss-seam-2.3.0.CR1/tmp
hibernate.connection.dataSource_class=org.h2.jdbcx.JdbcDataSource
model.package=com.mydomain.myproject.model
driver.jar=
action.package=com.mydomain.myproject.action
test.package=com.mydomain.myproject.test
database.type=h2
richfaces.skin=blueSky
glassfish.domain=domain1
hibernate.default_catalog.null=
hibernate.default_schema.null=
database.drop=n
project.name=myproject
hibernate.connection.username=sa
glassfish.home=C\:/Program Files/glassfish-v2.1
hibernate.connection.driver_class=org.h2.Driver
hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider
jboss.domain=standalone
project.type=war
icefaces.home=${icefaces.home.new}
database.exists=n
jboss.home=/home/maschmid/testing/as7/jboss-as-7.1.1.Final/
driver.license.jar=
hibernate.dialect=org.hibernate.dialect.H2Dialect
hibernate.connection.url=jdbc\:h2\:.
icefaces=${icefaces.new}
{noformat}
seam-gen default datasource fails to deploy on AS7 "Missing
required element driver-class in org.jboss.jca.common.metadata.ds.DataSourceImpl"
---------------------------------------------------------------------------------------------------------------------------------------------
Key: JBSEAM-5037
URL:
https://issues.jboss.org/browse/JBSEAM-5037
Project: Seam 2
Issue Type: Bug
Components: Tools
Affects Versions: 2.3.0.CR1
Environment: as7.1.1
Reporter: Marek Schmidt
Assignee: Marek Novotny
Priority: Critical
Fix For: 2.3.0.Final
A seam-gen generated war project with default settings fails to deploy with "ant
explode" on AS7.1.1.Final:
{noformat}
15:16:08,221 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed
to start service jboss.deployment.unit."myproject-ds.xml".PARSE:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."myproject-ds.xml".PARSE: Failed to process phase PARSE of
deployment "myproject-ds.xml"
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119)
[jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[rt.jar:1.6.0_30]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[rt.jar:1.6.0_30]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: IJ010069:
Missing required element driver-class in org.jboss.jca.common.metadata.ds.DataSourceImpl
at
org.jboss.as.connector.deployers.processors.DsXmlDeploymentParsingProcessor.deploy(DsXmlDeploymentParsingProcessor.java:85)
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113)
[jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: org.jboss.jca.common.api.validator.ValidateException: IJ010069: Missing
required element driver-class in org.jboss.jca.common.metadata.ds.DataSourceImpl
at
org.jboss.jca.common.metadata.ds.DataSourceImpl.validate(DataSourceImpl.java:454)
at
org.jboss.jca.common.metadata.ds.DataSourceImpl.<init>(DataSourceImpl.java:124)
at org.jboss.jca.common.metadata.ds.DsParser.parseDataSource(DsParser.java:558)
at org.jboss.jca.common.metadata.ds.DsParser.parseDataSources(DsParser.java:166)
at org.jboss.jca.common.metadata.ds.DsParser.parse(DsParser.java:119)
at org.jboss.jca.common.metadata.ds.DsParser.parse(DsParser.java:82)
at
org.jboss.as.connector.deployers.processors.DsXmlDeploymentParsingProcessor.deploy(DsXmlDeploymentParsingProcessor.java:80)
... 6 more
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira