geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Carew <dcca...@gmail.com>
Subject Re: Datasource for Hot Deploy
Date Tue, 14 Feb 2006 15:46:21 GMT
Thanks. the aconnector was a typo(was trying different variations). here's
the original deployment plan for the datasource that works

<?xml version="1.0"?>
<connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.0"
 version="1.5" configId="webbankdb/derby"
        parentId="geronimo/j2ee-server/1.0/car">


 <dependency>
  <uri>org.apache.derby/derbyclient/10.1.1.0/jar</uri>
 </dependency>

 <resourceadapter>
    <outbound-resourceadapter>

       <connection-definition>
     <connectionfactory-interface>
   javax.sql.DataSource
     </connectionfactory-interface>
  <connectiondefinition-instance>
     <name>WebBankDerbyDatabase</name>
                    <config-property-setting
name="CommitBeforeAutocommit">false</config-property-setting>
                    <config-property-setting name="Driver">
org.apache.derby.jdbc.ClientDriver</config-property-setting>
                    <config-property-setting name="ExceptionSorterClass">
org.tranql.connector.AllExceptionsAreFatalSorter</config-property-setting>
                    <config-property-setting
name="ConnectionURL">jdbc:derby://localhost:1527/webbank</config-property-setting>
   <connectionmanager>
    <local-transaction />
    <single-pool>
       <max-size>10</max-size>
       <min-size>0</min-size>
       <blocking-timeout-milliseconds>
      5000
       </blocking-timeout-milliseconds>
       <idle-timeout-minutes>
      30
       </idle-timeout-minutes>
       <match-one />
    </single-pool>
   </connectionmanager>
     </connectiondefinition-instance>
  </connection-definition>
    </outbound-resourceadapter>
 </resourceadapter>
</connector>
and here's the geronimo-application.xml w/the data source stuff copied and
pasted (note that the web app and ejb have their own embedded deployment
plans)


<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.0"
xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1" xmlns:sys="
http://geronimo.apache.org/xml/ns/deployment-1.0"
application-name="WebBankEAR" configId="webbank-1.0">
 <ext-module>
 <connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.0"
 version="1.5" configId="webbankdb/derby"
        parentId="geronimo/j2ee-server/1.0/car">

 <dependency>
  <uri>org.apache.derby/derbyclient/10.1.1.0/jar</uri>
 </dependency>

       <resourceadapter>
    <outbound-resourceadapter>

       <connection-definition>
     <connectionfactory-interface>
   javax.sql.DataSource
     </connectionfactory-interface>
  <connectiondefinition-instance>
     <name>WebBankDerbyDatabase</name>
                    <config-property-setting
name="CommitBeforeAutocommit">false</config-property-setting>
                    <config-property-setting name="Driver">
org.apache.derby.jdbc.ClientDriver</config-property-setting>
                    <config-property-setting name="ExceptionSorterClass">
org.tranql.connector.AllExceptionsAreFatalSorter</config-property-setting>
                    <config-property-setting
name="ConnectionURL">jdbc:derby://localhost:1527/webbank</config-property-setting>
   <connectionmanager>
    <local-transaction />
    <single-pool>
       <max-size>10</max-size>
       <min-size>0</min-size>
       <blocking-timeout-milliseconds>
      5000
       </blocking-timeout-milliseconds>
       <idle-timeout-minutes>
      30
       </idle-timeout-minutes>
       <match-one />
    </single-pool>
   </connectionmanager>
     </connectiondefinition-instance>
  </connection-definition>
    </outbound-resourceadapter>
 </resourceadapter>
</connector>
 </ext-module>
</application>
here's the  error I got when trying this particular version

       Invalid deployment descriptor: [error: cvc-complex-type.2.4a:
   Expected elements
   'connector@http://geronimo.apache.org/xml/ns/j2ee/application-1.0
   ejb@http://geronimo.apache.org/xml/ns/j2ee/application-1.0
   java@http://geronimo.apache.org/xml/ns/j2ee/application-1.0
   web@http://geronimo.apache.org/xml/ns/j2ee/application-1.0' instead
   of 'connector@http://geronimo.apache.org/xml/ns/j2ee/connector-1.0'
   here in element
   ext-module@http://geronimo.apache.org/xml/ns/j2ee/application-1.0,
   error: cvc-complex-type.2.4c: Expected elements
   'connector@http://geronimo.apache.org/xml/ns/j2ee/application-1.0
   ejb@http://geronimo.apache.org/xml/ns/j2ee/application-1.0
   java@http://geronimo.apache.org/xml/ns/j2ee/application-1.0
   web@http://geronimo.apache.org/xml/ns/j2ee/application-1.0' before
   the end of the content in element
   ext-module@http://geronimo.apache.org/xml/ns/j2ee/application-1.0]

   Descriptor: <xml-fragment application-name="WebBankEAR"
   configId="webbank-1.0"
   xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"
   xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.0"
   xmlns:app="http://geronimo.apache.org/xml/ns/j2ee/application-1.0">

     <app:ext-module>

       <connector version="1.5" configId="webbankdb/derby"
   parentId="geronimo/j2ee-server/1.0/car"
   xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.0">

         <sys:dependency>

           <sys:uri>org.apache.derby/derbyclient/10.1.1.0/jar</sys:uri>

         </sys:dependency>

         <resourceadapter>

           <outbound-resourceadapter>

             <connection-definition>


   <connectionfactory-interface>javax.sql.DataSource</connectionfactory-inte
e>

               <connectiondefinition-instance>

                 <name>WebBankDerbyDatabase</name>

                 <config-property-setting
   name="CommitBeforeAutocommit">false</config-property-setting>

                 <config-property-setting
   name="Driver">org.apache.derby.jdbc.ClientDriver</config-property-setting

                 <config-property-setting
   name="ExceptionSorterClass">org.tranql.connector.AllExceptionsAreFatalSor
/config-property-setting>

                 <config-property-setting
   name="ConnectionURL">jdbc:derby://localhost:1527/webbank</config-property
ting>

                 <connectionmanager>

                   <local-transaction/>

                   <single-pool>

                     <max-size>10</max-size>

                     <min-size>0</min-size>


   <blocking-timeout-milliseconds>5000</blocking-timeout-milliseconds>

                     <idle-timeout-minutes>30</idle-timeout-minutes>

                     <match-one/>

                   </single-pool>

                 </connectionmanager>

               </connectiondefinition-instance>

             </connection-definition>

           </outbound-resourceadapter>

         </resourceadapter>

       </connector>

     </app:ext-module>

   </xml-fragment>


On 2/14/06, Aaron Mulder <ammulder@alumni.princeton.edu> wrote:
>
> It's really hard to make sense if this without seeing the plans in
> full, but the one thing that jumped out at me was:
>
> in element connector@http://geronimo.apache.org/xml/ns/j2ee/connector-1.0,
>
> .../aconnector-1.0 is not the correct namespace.
>
> Aaron
>
>
>

Mime
View raw message