Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] jndi datasource jetty

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
jesse.mcconnell@xxxxxxxxx


On Tue, May 28, 2013 at 1:16 PM, Luca Rossi <luca.rossi81@xxxxxxxxx> 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 <jesse.mcconnell@xxxxxxxxx>
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
jesse.mcconnell@xxxxxxxxx


On Tue, May 28, 2013 at 10:43 AM, Luca Rossi <luca.rossi81@xxxxxxxxx> 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
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



Back to the top