[jboss-user] [JBoss Seam] - Re: configuration question

laksu do-not-reply at jboss.com
Mon Dec 10 12:01:24 EST 2007


I have added the following to bootstrap-beans.xml

    <bean name="payrollDSBootstrap" class="org.jboss.resource.adapter.jdbc.local.LocalTxDataSource">
  |         <property name="driverClass"><value>org.postgresql.Driver</value></property>
  |         <property name="connectionURL"><value>jdbc:postgresql://192.168.10.79:5432/payroll_levent</value></property>
  |         <property name="userName"><value>postgres</value></property>
  |         <property name="jndiName"><value>java:/payrollDatasource</value></property>
  |         <property name="minSize"><value>0</value></property>
  |         <property name="maxSize"><value>10</value></property>
  |         <property name="blockingTimeout"><value>1000</value></property>
  |         <property name="idleTimeout"><value>50000</value></property>
  |         <property name="transactionManager"><inject bean="TransactionManager"/></property>
  |         <property name="cachedConnectionManager"><inject bean="CachedConnectionManager"/></property>
  |         <property name="initialContextProperties"><inject bean="InitialContextProperties"/></property>
  |     </bean>
  |     
  |     <bean name="payrollDatasource" class="java.lang.Object">
  |         <constructor factoryMethod="getDatasource">
  |             <factory bean="payrollDSBootstrap"/>
  |         </constructor>
  |     </bean>

I now get :

   [testng] FAILED CONFIGURATION: @BeforeClass init
  |    [testng] org.jboss.deployers.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
  |    [testng] 
  |    [testng] *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
  |    [testng] 
  |    [testng] payrollDSBootstrap
  |    [testng]  -> TransactionManager{Configured:** NOT FOUND **}
  |    [testng]  -> InitialContextProperties{Configured:** NOT FOUND **}
  |    [testng]  -> CachedConnectionManager{Configured:** NOT FOUND **}
  |    [testng] 
  |    [testng] payrollDatasource
  |    [testng] 
  |    [testng] 
  |    [testng] *** CONTEXTS IN ERROR: Name -> Error
  |    [testng] 
  |    [testng] InitialContextProperties -> ** NOT FOUND **
  |    [testng] 
  |    [testng] TransactionManager -> ** NOT FOUND **
  |    [testng] 
  |    [testng] CachedConnectionManager -> ** NOT FOUND **
  |    [testng] 
  |    [testng] 
  |    [testng]     at org.jboss.embedded.Bootstrap.checkIncomplete(Bootstrap.java:144)
  |    [testng]     at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:169)
  |    [testng]     at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:201)
  |    [testng]     at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:214)
  |    [testng]     at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:11)
  |    [testng]     at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1006)
  |    [testng]     at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:931)
  |    [testng]     at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
  |    [testng] ... Removed 22 stack frames
  | 

This way it seems like transactionManager and other stuff does not get injected for some reason. I cannot tell why. Also in the documentation it says, seam-gen generates "jboss-beans.xml" file but I cannot seem to find it. 
It would be great if someone said I am barking at the correct tree. 



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111698#4111698

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111698



More information about the jboss-user mailing list