Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] Can't find org.eclipse.jetty.plus.naming.Resource

To save you some trouble for manually updating the packages, see http://docs.codehaus.org/display/JETTY/Upgrade+from+jetty6+to+jetty7(eclipse)

Cheers

On Wed, Jun 3, 2009 at 3:50 PM, Will Brown <dr.hfuhruhurr@xxxxxxxxx> wrote:
Apparently in my previous post I did use an old war where I probably
had a reference to a mortbay package. Now I get to where my datasource
is being configured in my jetty-env.xml file. The jetty-env.xml is in
my WEB-INF and contains

================================
<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN"
"http://www.eclipse.org/jetty/configure.dtd">

<Configure class="org.eclipse.jetty.webapp.WebAppContext">
       <New id="DataSource" class="org.eclipse.jetty.plus.naming.Resource">
               <Arg>jdbc/mydb</Arg>
               <Arg>
                       <New class="org.apache.commons.dbcp.BasicDataSource">
                               <Set name="driverClassName">com.mysql.jdbc.Driver</Set>
                               <Set name="url">jdbc:mysql://localhost/mydb</Set>
                               <Set name="username">dbuser</Set>
                               <Set name="password">dbpw</Set>
                       </New>
               </Arg>
       </New>
</Configure>
================================

I pasted this together from examples for version 6. I thereby manually
changed the package
org.mortbay.jetty.plus.naming.Resource to
org.eclipse.jetty.plus.naming.Resource.

This time I get the following error:
java.lang.ClassNotFoundException: org.eclipse.jetty.plus.naming.Resource

Looking through the jars I must agree with jetty: I can't find that
class either.

================================


A log-snippet follows (I added structure for legibility):

2009-06-03 07:18:32.197::WARN:  Config error at
<New id="DataSource" class="org.eclipse.jetty.plus.naming.Resource">
       <Arg>jdbc/mydb</Arg>
       <Arg>
               <New class="org.apache.commons.dbcp.BasicDataSource">
                       <Set name="driverClassName">com.mysql.jdbc.Driver</Set>
                       <Set name="url">jdbc:mysql://localhost/mydb</Set>
                       <Set name="username">dbuser</Set>
                       <Set name="password">dbpw</Set>
               </New>
       </Arg>
</New>
2009-06-03 07:18:32.197::WARN:  Failed startup of context
WebAppContext@5e176f@5e176f/MyApp,file:/tmp/Jetty_0_0_0_0_8081_MyApp.war__MyApp__ig8bku/webapp/,file:/home/me/jetty-distribution-7.0.0.M2/webapps-plus/MyApp.war
java.lang.ClassNotFoundException: org.eclipse.jetty.plus.naming.Resource
       at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
_______________________________________________
jetty-dev mailing list
jetty-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-dev


Back to the top