Hi, I resolved the last problem but now the server throw this exception java.lang.IllegalArgumentException: Object of class 'org.mortbay.jetty.plugin.JettyWebAppContext' is not of type 'org.mortbay.jetty.plugin.JettyServer'.
Sorry, I am a newbee of jetty Luc 2013/5/29 Luca Rossi <[email protected]> > OK, this is reasonable. I put the dependency into the jetty plugin..but > now I have another problem: > java.lang.ClassNotFoundException: org.eclipse.jetty.webapp.WebAppContext > It's enough odd, because of this is a dependency already setted in plugin > pom. > > Thanks a lot for your previous responses! > > Luca > > > > 2013/5/28 Jesse McConnell <[email protected]> > >> need to be available to the classloader of the jetty plugin, not the >> classloader of the webapp/project...hence the need to define a dependencies >> section on the plugin itself >> >> jesse >> >> -- >> jesse mcconnell >> [email protected] >> >> >> On Tue, May 28, 2013 at 1:16 PM, Luca Rossi <[email protected]>wrote: >> >>> Hi, >>> I am not using eclipse but netbeans with this plugin >>> org.mortbay.jetty:jetty-maven-plugin >>> I don't understand why the server don't load one library that is >>> available as maven dependency. This library is org.apache.commons.dbcd. >>> Surfing on internet I saw that this problem is quite common but I >>> didnt't catch the solution. >>> Luca >>> >>> >>> 2013/5/28 Jesse McConnell <[email protected]> >>> >>>> two things >>>> >>>> 1) org.eclipse.jetty:jetty-maven-plugin is the latest coordinates for >>>> jetty 9 version of the plugin >>>> >>>> 2) you likely need to add that to the <dependencies> section of the >>>> _plugin_ itself for it to be exposed to the embedded instance of jetty >>>> running in the plugin. >>>> >>>> cheers, >>>> jesse >>>> >>>> >>>> -- >>>> jesse mcconnell >>>> [email protected] >>>> >>>> >>>> On Tue, May 28, 2013 at 10:43 AM, Luca Rossi <[email protected]>wrote: >>>> >>>>> Hi, >>>>> I am trying to run a web application with jetty and hsqldb on >>>>> netbeans. I added the plugin org.mortbay.jetty to the pom.xml and I >>>>> configured the jetty-env.xml. But when I run the server I have this error: >>>>> ClassNotFoundException org.apache.commons.dbcp.BasicDataSource. >>>>> This jar is already among the dependecies of the pom. I tried to set >>>>> the scope at runtime or provided but did not work. >>>>> Anyone can help me to solve this problem? >>>>> Thanks, >>>>> Luca >>>>> >>>>> _______________________________________________ >>>>> jetty-users mailing list >>>>> [email protected] >>>>> https://dev.eclipse.org/mailman/listinfo/jetty-users >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> jetty-users mailing list >>>> [email protected] >>>> https://dev.eclipse.org/mailman/listinfo/jetty-users >>>> >>>> >>> >>> _______________________________________________ >>> jetty-users mailing list >>> [email protected] >>> https://dev.eclipse.org/mailman/listinfo/jetty-users >>> >>> >> >> _______________________________________________ >> jetty-users mailing list >> [email protected] >> https://dev.eclipse.org/mailman/listinfo/jetty-users >> >> >
_______________________________________________ jetty-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/jetty-users
