You have to add the jetty-*.jar's in the launch configuration properties' classpath. The project classpath is not used for the internal jetty server.
I made a description in my blog (in german): http://curtstech.blogspot.com/2009/07/gwt-16-hosted-mode-internen-jetty.html -Henning On 5 Jun., 18:59, Mark <[email protected]> wrote: > Hi Chad, > > I followed your guide, but I get an error when starting up hosted > mode: > > [WARN] Config error at > <New id="website" class="org.mortbay.jetty.plus.naming.Resource"> > <Arg>java:comp/env/jdbc/database</Arg> > <Arg> > <New > class="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource"> > <Set name="Url">jdbc:mysql://localhost:3306/mydbname</Set> > <Set name="User">myusername</Set><Set name="Password">mypassword</ > Set></New> > </Arg> > </New> > > I read around and it seems that jetty thinks that the jetty-plus and > jetty-naming jars are not in my classpath, but I did add them to my > project file - any idea what could be missing? > > Shouldn't we have an official example from GWT as well for this now > that the switch has been made to Jetty? Seems like a common thing > people would want to do, > > Thanks, > Mark > > On May 7, 12:24 pm, Chad <[email protected]> wrote: > > > > > You can do this by configuring ajetty-web.xml file. I blogged what > > worked for us at: > > >http://humblecode.blogspot.com/2009/05/gwt-16-using-jndi-datasource.html > > > On Mar 11, 11:16 pm, wiltonj <[email protected]> wrote: > > > > Hi, > > > How to setting DataSource in GWT 1.6 (Hosted mode -Jetty)? > > > > Hoping for some guidance. > > > > Thanks & Regards, > > > Wilton --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
