Hi all, 

I am new to EJBs, and I'm having problems deploying on postgres. 

I can start the server just fine, and create all the tables, and in the 
beginning everything works fine, but then after a little while, and 
randomly, I get the following exception. (see below). I believe I have my 
jboss.jcml set up right, but I will include it at the end as well... Has 
anyone else seen this exception? I get it very frequently...

Thanks so much for your help!!

Rachel

[Client] XAException: tx=XidImpl [FormatId=257, 
GlobalId=botia.vireo.org//1003, BranchQual=] errorCode=XAER_NOTA
[Client] javax.transaction.xa.XAException
[Client]        at 
org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl.start(XAResourceImpl.java:258)
[Client]        at 
org.jboss.tm.TxCapsule.startResource(TxCapsule.java:1087)
[Client]        at 
org.jboss.tm.TxCapsule.enlistResource(TxCapsule.java:614)
[Client]        at 
org.jboss.tm.TransactionImpl.enlistResource(TransactionImpl.java:111)
[Client]        at 
org.jboss.pool.jdbc.xa.XAConnectionFactory.prepareObject(XAConnectionFactory.java:269)
[Client]        at 
org.jboss.pool.ObjectPool.getObject(ObjectPool.java:548)
[Client]        at 
org.jboss.pool.ObjectPool.getObject(ObjectPool.java:521)
[Client]        at 
org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java:165)
[Client]        at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.getConnection(JDBCCommand.java:680)
[Client]        at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:152)
[Client]        at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCStoreEntityCommand.execute(JDBCStoreEntityCommand.java:97)
[Client]        at 
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.storeEntity(JAWSPersistenceManager.java:168)
[Client]        at 
org.jboss.ejb.plugins.CMPPersistenceManager.storeEntity(CMPPersistenceManager.java:424)
[Client]        at 
org.jboss.ejb.plugins.EntitySynchronizationInterceptor$InstanceSynchronization.beforeCompletion(EntitySynchronizationInterceptor.java:370)
[Client]        at 
org.jboss.tm.TxCapsule.doBeforeCompletion(TxCapsule.java:1210)
[Client]        at org.jboss.tm.TxCapsule.commit(TxCapsule.java:304)
[Client]        at 
org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:76)
[Client]        at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:355)
[Client]        at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[Client]        at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:190)
[Client]        at 
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
[Client]        at 
org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:338)
[Client]        at 
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:390)
[Client]        at java.lang.reflect.Method.invoke(Native Method)
[Client]        at 
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
[Client]        at sun.rmi.transport.Transport$1.run(Transport.java:142)
[Client]        at java.security.AccessController.doPrivileged(Native 
Method)
[Client]        at 
sun.rmi.transport.Transport.serviceCall(Transport.java:139)
[Client]        at 
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)
[Client]        at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:643)
[Client]        at java.lang.Thread.run(Thread.java:484)
---------------------------------------------------
jboss.jcml:
-----------------------------
<?xml version="1.0" encoding="UTF-8"?>
         <server>
           <!-- Classloading -->
           <mbean code="org.jboss.web.WebService"
         name="DefaultDomain:service=Webserver">
             <attribute name="Port">8083</attribute>
           </mbean>

           <!-- JNDI -->
           <mbean code="org.jboss.naming.NamingService"
         name="DefaultDomain:service=Naming">
             <attribute name="Port">1099</attribute>
           </mbean>
           <mbean code="org.jboss.naming.JNDIView"
         name="DefaultDomain:service=JNDIView" />
  
           <!-- Transactions -->
           <mbean code="org.jboss.tm.TransactionManagerService"
         name="DefaultDomain:service=TransactionManager">
             <attribute name="TransactionTimeout">300</attribute>
           </mbean>

           <!-- JDBC -->
           <mbean code="org.jboss.jdbc.JdbcProvider"
         name="DefaultDomain:service=JdbcProvider">
              <attribute name="Drivers">org.postgresql.Driver</attribute>
           </mbean>
  <mbean code="org.jboss.mgt.ServerDataCollector" 
name="Management:service=Collector">
    <attribute name="RefreshSleep">5000</attribute>
</mbean>   
           <mbean code="org.jboss.jdbc.XADataSourceLoader"
         name="DefaultDomain:service=XADataSource,name=DefaultDS">
                <attribute name="Properties"></attribute>
                <attribute name="PoolName">DefaultDS</attribute>
                <attribute
         
name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl</attribute>
                <attribute 
name="URL">jdbc:postgresql://localhost/blah</attribute>
                <attribute name="GCMinIdleTime">1200000</attribute>
                <attribute name="JDBCUser">stew</attribute>
                <attribute name="MaxSize">20</attribute>
                <attribute name="Password">nugent420</attribute>
                <attribute name="GCEnabled">false</attribute>
                <attribute name="InvalidateOnError">false</attribute>
                <attribute name="TimestampUsed">false</attribute>
                <attribute name="Blocking">true</attribute>
                <attribute name="GCInterval">120000</attribute>
                <attribute name="IdleTimeout">1800000</attribute>
                <attribute name="IdleTimeoutEnabled">true</attribute>
                <attribute name="LoggingEnabled">true</attribute>
                <attribute name="MaxIdleTimeoutPercent">1.0</attribute>
                <attribute name="MinSize">0</attribute>
           </mbean>

           <!-- J2EE deployment -->

           <mbean code="org.jboss.ejb.ContainerFactory"
         name=":service=ContainerFactory">
             <attribute name="VerifyDeployments">true</attribute>
             <attribute name="MetricsEnabled">false</attribute>
             <attribute name="VerifierVerbose">true</attribute>
             <attribute 
name="BeanCacheJMSMonitoringEnabled">false</attribute>
           </mbean>


           <!-- Make sure you change EmbeddedTomcat to Jetty if you are 
using
         etty  -->
           <mbean code="org.jboss.deployment.J2eeDeployer"
         name="J2EE:service=J2eeDeployer">
             <attribute name="DeployerName">Default</attribute>
             <attribute 
name="JarDeployerName">:service=ContainerFactory</attribute>
           </mbean>

           <mbean code="org.jboss.ejb.AutoDeployer" 
name="EJB:service=AutoDeployer">
             <attribute 
name="Deployer">J2EE:service=J2eeDeployer</attribute>
             <attribute name="URLs">../deploy</attribute>
           </mbean>

           <!-- J2EE connector architecture -->

           <!-- Minerva XA transaction connection manager factory
                Use this for resource adapters that support "xa"
                transactions. -->
           <mbean code="org.jboss.resource.ConnectionManagerFactoryLoader"

         
name="JCA:service=ConnectionManagerFactoryLoader,name=MinervaXACMFactory">
             <attribute name="FactoryName">MinervaXACMFactory</attribute>
             <attribute 
name="FactoryClass">org.opentools.minerva.connector.jboss.MinervaXACMFactory</attribute>
             <attribute name="Properties"></attribute>
             <attribute 
name="FactoryClass">org.opentools.minerva.connector.jboss.MinervaXACMFactory</attribute>
             <attribute name="Properties"></attribute>
           </mbean>

           <!-- JMX adaptors -->
           <mbean code="org.jboss.jmx.server.JMXAdaptorService"
         name="Adaptor:name=RMI" />

           <mbean code="org.jboss.jmx.server.RMIConnectorService"
         name="Connector:name=RMI" />

           <mbean code="com.sun.jdmk.comm.HtmlAdaptorServer"
         name="Adaptor:name=html">
             <attribute name="MaxActiveClientCount">10</attribute>
             <attribute name="Parser" />
             <attribute name="Port">8082</attribute>
           </mbean>
           <!-- Add your custom MBeans here -->

         </server>



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to