<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: how can i connect my jboss pool connection with spring web framework
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/juank">Juan Carlos Hipolito Castañeda</a> in <i>Datasource Configuration</i> - <a href="http://community.jboss.org/message/565183#565183">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>i make this spring.xml</p><p><span style="color: #008080; font-size: 10pt; "><p align="left">&lt;?</p><p align="left"><span style="color: #3f7f7f; font-size: 10pt; ">xml</span><span style="font-size: 10pt;"> </span><span style="color: #7f007f; font-size: 10pt; ">version</span><span style="font-size: 10pt;">=</span><em><span style="color: #2a00ff; font-size: 10pt; ">"1.0"</span><span style="font-size: 10pt;"> </span><span style="color: #7f007f; font-size: 10pt; ">encoding</span><span style="font-size: 10pt;">=</span><em><span style="color: #2a00ff; font-size: 10pt; ">"UTF-8"</span><span style="color: #008080; font-size: 10pt; ">?&gt;</span><span style="color: #008080; font-size: 10pt; "><p align="left">&lt;</p><p align="left"><span style="color: #3f7f7f; font-size: 10pt; ">beans</span><span style="font-size: 10pt;"> </span><span style="color: #7f007f; font-size: 10pt; ">xmlns</span><span style="font-size: 10pt;">=</span><em><span style="color: #2a00ff; font-size: 10pt; "><span>"</span><a class="jive-link-external-small" href="http://www.springframework.org/schema/beans" target="_blank">http://www.springframework.org/schema/beans</a><span>"</span></span><em style="font-size: 10pt; "><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left"><span style="color: #7f007f; font-size: 10pt; ">xmlns:xsi</span><span style="font-size: 10pt;">=</span><em><span style="color: #2a00ff; font-size: 10pt; "><span>"</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>"</span></span><em style="font-size: 10pt; "><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left"><span style="color: #7f007f; font-size: 10pt; ">xmlns:tx</span><span style="font-size: 10pt;">=</span><em><span style="color: #2a00ff; font-size: 10pt; "><span>"</span><a class="jive-link-external-small" href="http://www.springframework.org/schema/tx" target="_blank">http://www.springframework.org/schema/tx</a><span>"</span></span><em style="font-size: 10pt; "><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left"><span style="color: #7f007f; font-size: 10pt; ">xmlns:jee</span><span style="font-size: 10pt;">=</span><em><span style="color: #2a00ff; font-size: 10pt; "><span>"</span><a class="jive-link-external-small" href="http://www.springframework.org/schema/jee" target="_blank">http://www.springframework.org/schema/jee</a><span>"</span></span><em style="font-size: 10pt; "><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left"><span style="color: #7f007f; font-size: 10pt; ">xmlns:context</span><span style="font-size: 10pt;">=</span><em><span style="color: #2a00ff; font-size: 10pt; "><span>"</span><a class="jive-link-external-small" href="http://www.springframework.org/schema/context" target="_blank">http://www.springframework.org/schema/context</a><span>"</span></span><em style="font-size: 10pt; "><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left"><span style="color: #7f007f; font-size: 10pt; ">xsi:schemaLocation</span><span style="font-size: 10pt;">=</span><em><span style="color: #2a00ff; font-size: 10pt; "><span>"</span><a class="jive-link-external-small" href="http://www.springframework.org/schema/beans" target="_blank">http://www.springframework.org/schema/beans</a></span><em style=": ; color: #2a00ff; font-size: 10pt; "><p align="left"><a class="jive-link-external-small" href="http://www.springframework.org/schema/beans/spring-beans-2.5.xsd" target="_blank">http://www.springframework.org/schema/beans/spring-beans-2.5.xsd</a></p><p align="left"><a class="jive-link-external-small" href="http://www.springframework.org/schema/tx" target="_blank">http://www.springframework.org/schema/tx</a></p><p align="left"><a class="jive-link-external-small" href="http://www.springframework.org/schema/tx/spring-tx-2.5.xsd" target="_blank">http://www.springframework.org/schema/tx/spring-tx-2.5.xsd</a></p><p align="left"><a class="jive-link-external-small" href="http://www.springframework.org/schema/context" target="_blank">http://www.springframework.org/schema/context</a></p><p align="left"><a class="jive-link-external-small" href="http://www.springframework.org/schema/context/spring-context-2.5.xsd" target="_blank">http://www.springframework.org/schema/context/spring-context-2.5.xsd</a><span>"</span></p><span style="color: #2a00ff; font-size: 10pt; "><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left"><span style="color: #008080; font-size: 10pt; ">&gt;</span><span style="font-size: 10pt;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left"><span style="color: #3f5fbf; font-size: 10pt; ">&lt;!-- Instructs the container to look for beans with @Transactional and decorate them --&gt;</span><span style="font-size: 10pt;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left"><span style="color: #008080; font-size: 10pt; ">&lt;</span><span style="color: #3f7f7f; font-size: 10pt; ">tx:annotation-driven</span><span style="font-size: 10pt;"> </span><span style="color: #7f007f; font-size: 10pt; ">transaction-manager</span><span style="font-size: 10pt;">=</span><em><span style="color: #2a00ff; font-size: 10pt; ">"transactionManager"</span><span style="color: #008080; font-size: 10pt; ">/&gt;</span><span style="font-size: 10pt;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left"><span style="color: #3f5fbf; font-size: 10pt; ">&lt;!-- Drives transactions in a local <span style="text-decoration: underline;">Hibernate</span> environment --&gt;</span><span style="font-size: 10pt;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left"><span style="color: #008080; font-size: 10pt; ">&lt;</span><span style="color: #3f7f7f; font-size: 10pt; ">bean</span><span style="font-size: 10pt;"> </span><span style="color: #7f007f; font-size: 10pt; ">id</span><span style="font-size: 10pt;">=</span><em><span style="color: #2a00ff; font-size: 10pt; ">"transactionManager"</span><span style="font-size: 10pt;"> </span><span style="color: #7f007f; font-size: 10pt; ">class</span><span style="font-size: 10pt;">=</span><em><span style="color: #2a00ff; font-size: 10pt; ">"org.springframework.jdbc.datasource.DataSourceTransactionManager"</span><span style="color: #008080; font-size: 10pt; ">&gt;</span><span style="font-size: 10pt;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left"><span style="color: #008080; font-size: 10pt; ">&lt;</span><span style="color: #3f7f7f; font-size: 10pt; ">property</span><span style="font-size: 10pt;"> </span><span style="color: #7f007f; font-size: 10pt; ">name</span><span style="font-size: 10pt;">=</span><em><span style="color: #2a00ff; font-size: 10pt; ">"dataSource"</span><span style="font-size: 10pt;"> </span><span style="color: #7f007f; font-size: 10pt; ">ref</span><span style="font-size: 10pt;">=</span><em><span style="color: #2a00ff; font-size: 10pt; ">"dataSource"</span><span style="font-size: 10pt;"> </span><span style="color: #008080; font-size: 10pt; ">/&gt;</span><span style="font-size: 10pt; "><p align="left"><em><em style="font-size: 10pt; "><span style="color: #3f5fbf; font-size: 10pt;"><span style=": ; color: #3f5fbf; font-size: 2; font-color: #3f5fbf; "><p align="left"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p></span><span style="font-color: #3f5fbf; font-size: 2; "><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p align="left"><span style="color: #008080; font-size: 10pt; "><p align="left"><span style="color: #3f7f7f; font-size: 10pt; ">beans</span><span style="color: #008080; font-size: 10pt; ">&gt;</span></p><p><span style="color: #008080; font-size: 10pt; "><span style="color: #008080; font-size: 10pt;"><span style=": ; color: #008080; font-size: 2; font-color: #008080; "><p align="left">&lt;</p></span><span style="font-color: #008080; font-size: 2; "><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p align="left"><span style="color: #3f7f7f; font-size: 10pt; ">jee:jndi-lookup</span><span style="color: #000000; font-size: 10pt;"> </span><span style="color: #7f007f; font-size: 10pt; ">id</span><span style="color: #000000; font-size: 10pt;">=</span><em style=": ; color: #2a00ff; font-size: 10pt; ">"dataSource"</em><span style="color: #000000; font-size: 10pt;"> </span><span style="color: #7f007f; font-size: 10pt; ">jndi-name</span><span style="color: #000000; font-size: 10pt;">=</span><em style=": ; color: #2a00ff; font-size: 10pt; ">"java:jdbc/OracleDS"</em><span style="color: #008080; font-size: 10pt; ">/&gt;</span></p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><p><span style="font-size: 10pt;"><p>i get the next error:</p><span style="color: #000080; font-size: 10pt; text-decoration: underline; "><p align="left">org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException</p><span style="color: #000080; font-size: 10pt; "><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left"><span style="font-size: 10pt;">: Line 22 in XML document from ServletContext resource [/WEB-INF/applicationContext.xml] is invalid; nested exception is </span><span style="text-decoration: underline;"><span style="color: #000080; font-size: 10pt; ">org.xml.sax.SAXParseException</span><span style="font-size: 10pt;">: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'jee:jndi-lookup'.</span></span></p></span></span><span style="font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p></p></span></p></span></p></em></em></p></span></em></em></p></span></em></em></p></span></p></span></em></p></span></p></span></p></span></em></em></p></em></em></p></em></em></p></em></em></p></em></em></p></em></em></p></span></em></em></p></span></p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/565183#565183">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Datasource Configuration at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2077">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>