Hi,

1. I removed the extra comma.
2. I have the interclient recompiled in jdk 1.3.

I got this message again:
java.rmi.ServerException: RemoteException occurred in server thread; nested 
exception is:
        javax.transaction.TransactionRolledbackException: Unable to connect to 
database. org.opentools.minerva.jdbc.xa.XAPoolDataSource; nested exception 
is:
        javax.ejb.EJBException: Unable to connect to database. 
org.opentools.minerva.jdbc.xa.XAPoolDataSource

javax.transaction.TransactionRolledbackException: Unable to connect to 
database. org.opentools.minerva.jdbc.xa.XAPoolDataSource; nested exception 
is:
        javax.ejb.EJBException: Unable to connect to database. 
org.opentools.minerva.jdbc.xa.XAPoolDataSource

javax.ejb.EJBException: Unable to connect to database. 
org.opentools.minerva.jdbc.xa.XAPoolDataSource

        at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)

        at 
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)

        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)

        at 
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unknown 
Source)

        at 
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:248)

        at $Proxy0.create(Unknown Source)

        at AccountClient.main(AccountClient.java:31)




thanx rado



>Hi,

>1. remove the extra comma
>jboss.jcml :
>
>   <mbean code="org.jboss.jdbc.JdbcProvider" 
>name="DefaultDomain:service=JdbcProvider">
>      <attribute 
>name="Drivers">----->,<----->interbase.interclient.Driver</attribute>
>   </mbean>
>

>2. In my experience people usually have to recompile the java portion
>(interclient) of interclient/interserver to get it to work under jdk1.3.
>There's an ant script that recompiles both parts under linux and >probably
>solarix at firebird.sourceforge.net, but I don't know how to recompile
>interserver under windows.  The version at sourceforge has working 
> >database
>metadata, allowing you to have jaws create your tables, with the >addition
>of jboss patch 424409.

>david jencks

>Hi,
>
>I'm new in jboss and ejb. I use jboss 2.2.2, interbase 6, interclient 2
>jdk 1.3.1.
>
>When i tried to move Account example from J2EE SDK to JBOSS and Interbase
>I got this error message:
>
>java.rmi.ServerException: RemoteException occurred in server thread;
>nested exception is:
>       javax.transaction.TransactionRolledbackException: Unable to
>connect to database. org.opentools.minerva.jdbc.xa.XAPoolDataSource; nested
>exception is:
>       javax.ejb.EJBException: Unable to connect to database. 
>org.opentools.minerva.jdbc.xa.XAPoolDataSource
>javax.transaction.TransactionRolledbackException: Unable to connect to 
>database. org.opentools.minerva.jdbc.xa.XAPoolDataSource; nested
>exception is:
>       javax.ejb.EJBException: Unable to connect to database. 
>org.opentools.minerva.jdbc.xa.XAPoolDataSource
>javax.ejb.EJBException: Unable to connect to database. 
>org.opentools.minerva.jdbc.xa.XAPoolDataSource
>       at
>
>sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
>       at 
>sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
>       at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
>       at 
>org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unknown
>
>Source)
>       at 
>org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:248)
>       at $Proxy0.create(Unknown Source)
>       at AccountClient.main(AccountClient.java:31)
>
>
>my configuration:
>
>jboss.jcml :
>
>   <mbean code="org.jboss.jdbc.JdbcProvider" 
>name="DefaultDomain:service=JdbcProvider">
>      <attribute name="Drivers">,interbase.interclient.Driver</attribute>
>   </mbean>
>
>   <mbean code="org.jboss.jdbc.XADataSourceLoader" 
>name="DefaultDomain:service=XADataSource,name=Ceprs">
>     <attribute name="PoolName">Ceprs</attribute>
>     <attribute
>
>name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl</attribute>
>     <attribute name="Properties"></attribute>
>     <attribute 
>name="URL">jdbc:interbase://localhost/c:/prj/CeprsEJB/data/CEPRS.GDB</attribute>
>     <attribute name="GCMinIdleTime">1200000</attribute>
>     <attribute name="JDBCUser">sysdba</attribute>
>     <attribute name="MaxSize">10</attribute>
>     <attribute name="Password">masterkey</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">false</attribute>
>     <attribute name="LoggingEnabled">true</attribute>
>     <attribute name="MaxIdleTimeoutPercent">1.0</attribute>
>     <attribute name="MinSize">0</attribute>
>   </mbean>
>
>jboss.xml :
>
><jboss>
>     <secure>false</secure>
>     <container-configurations />
>     <resource-managers>
>
>       <resource-manager res-class="org.jboss.ejb.deployment.JDBCResource">
>         <res-name>jdbc/Interbase</res-name>
>         <res-jndi-name>java:/Ceprs</res-jndi-name>
>       </resource-manager>
>
>     </resource-managers>
>
>     <enterprise-beans>
>       <entity>
>             <ejb-name>EJB</ejb-name>
>             <jndi-name>MyCeprs</jndi-name>
>           <configuration-name></configuration-name>
>
>           <resource-ref>
>             <res-ref-name>jdbc/Ceprs</res-ref-name>
>             <resource-name>jdbc/Interbase</resource-name>
>           </resource-ref>
>
>       </entity>
>     </enterprise-beans>
></jboss>
>
>
>ejb-jar.xml :
>
><ejb-jar>
>   <description>no description</description>
>   <display-name>Ejb1</display-name>
>   <enterprise-beans>
>     <entity>
>       <description>no description</description>
>       <display-name>Enterprise Bean</display-name>
>       <ejb-name>EJB</ejb-name>
>       <home>AccountHome</home>
>       <remote>Account</remote>
>       <ejb-class>AccountEJB</ejb-class>
>       <persistence-type>Bean</persistence-type>
>       <prim-key-class>java.lang.String</prim-key-class>
>       <reentrant>False</reentrant>
>       <resource-ref>
>               <res-ref-name>jdbc/Ceprs</res-ref-name>
>               <res-type>javax.sql.DataSource</res-type>
>               <res-auth>Container</res-auth>
>       </resource-ref>
>     </entity>
>   </enterprise-beans>
>   <assembly-descriptor>
>     <container-transaction>
>       <method>
>       <ejb-name>EJB</ejb-name>
>       <method-intf>Remote</method-intf>
>       <method-name>getLastName</method-name>
>       <method-params />
>       </method>
>       <trans-attribute>Required</trans-attribute>
>     </container-transaction>
>     <container-transaction>
>       <method>
>       <ejb-name>EJB</ejb-name>
>       <method-intf>Remote</method-intf>
>       <method-name>debit</method-name>
>       <method-params>
>         <method-param>double</method-param>
>       </method-params>
>       </method>
>       <trans-attribute>Required</trans-attribute>
>     </container-transaction>
>     <container-transaction>
>       <method>
>       <ejb-name>EJB</ejb-name>
>       <method-intf>Remote</method-intf>
>       <method-name>getBalance</method-name>
>       <method-params />
>       </method>
>       <trans-attribute>Required</trans-attribute>
>     </container-transaction>
>     <container-transaction>
>       <method>
>       <ejb-name>EJB</ejb-name>
>       <method-intf>Remote</method-intf>
>       <method-name>credit</method-name>
>       <method-params>
>         <method-param>double</method-param>
>       </method-params>
>       </method>
>       <trans-attribute>Required</trans-attribute>
>     </container-transaction>
>     <container-transaction>
>       <method>
>       <ejb-name>EJB</ejb-name>
>       <method-intf>Remote</method-intf>
>       <method-name>getFirstName</method-name>
>       <method-params />
>       </method>
>       <trans-attribute>Required</trans-attribute>
>     </container-transaction>
>   </assembly-descriptor>
></ejb-jar>
>
>jaws.xml
>
><jaws>
>     <datasource>Ceprs</datasource>
>     <type-mapping>InterBase</type-mapping>
>      <default-entity>
>         <create-table>false</create-table>
>         <remove-table>false</remove-table>
>         <tuned-updates>true</tuned-updates>
>         <read-only>false</read-only>
>         <time-out>300</time-out>
>         <select-for-update>false</select-for-update>
>      </default-entity>
>     <type-mappings>
>         <type-mapping>
>             <name>InterBase</name>
>...........
>
>
>AccountEjb.java
>
>    private void makeConnection() throws NamingException, SQLException {
>
>       InitialContext ic = new InitialContext();
>       System.out.println("InitialContext");
>       DataSource ds = (DataSource) ic.lookup("java:comp/env/jdbc/Ceprs");
>       System.out.println("Got datasource");
>       con =  ds.getConnection();
>       System.out.println("Got connection");
>
>    }
>
>
>Client :
>
>       Properties env = new Properties();
>       env.setProperty("java.naming.factory.initial",  
>"org.jnp.interfaces.NamingContextFactory");
>       env.setProperty("java.naming.provider.url",  "localhost:1099");
>       env.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming");
>        try {
>            InitialContext initial = new InitialContext(env);
>            Object objref = initial.lookup("MyCeprs");
>
>            AccountHome home =
>                 (AccountHome)PortableRemoteObject.narrow(objref,
>                                             AccountHome.class);
>
>            Account duke = home.create("123", "Duke", "Earl", 0.00);
>
>Thanx for help    pepe
>_________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
>_______________________________________________
>JBoss-user mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-user
>


_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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

Reply via email to