wouldnt this be more appropriate for the jetty mailing lists...there
is a likelyhood more people on those lists will be able to help you

-igor


On Fri, Mar 14, 2008 at 9:45 AM, Kevin Murphy <[EMAIL PROTECTED]> wrote:
> I'm having difficulty adding database functionality to my Wicket
>  QuickStart app by configuring a JNDI data source in Jetty.
>
>  I've added jetty-naming, jetty-plus, mysql-connector-java, and
>  commons-dbcp to the POM.
>
>  I have this in WEB-INF/web.xml:
>
>     <resource-ref>
>         <description>My DataSource Reference</description>
>         <res-ref-name>jdbc/MySqlPool</res-ref-name>
>         <res-type>javax.sql.DataSource</res-type>
>         <res-auth>Container</res-auth>
>     </resource-ref>
>
>  and this in WEB-INF/jetty-env.xml:
>
>     <New id="MySqlPool" class="org.mortbay.jetty.plus.naming.Resource">
>         <Arg>jdbc/MySqlPool</Arg>
>         <Arg>
>             <New class="org.apache.commons.dbcp.BasicDataSource">
>                 <Set name="driverClassName">com.mysql.jdbc.Driver</Set>
>                 <Set name="url">jdbc:mysql://localhost/mysql</Set>
>                 <Set name="username">joe</Set>
>                 <Set name="password">cool</Set>
>             </New>
>         </Arg>
>     </New>
>
>
>  I'm now stymied by the following error when my application runs
>  '(DataSource) ic.lookup("java:comp/env/jdbc/MySqlPool")':
>
>  javax.naming.NameNotFoundException; remaining name 'env/jdbc/MySqlPool'
>
>  Thanks for any quick tips.
>
>  -Kevin
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to