[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jetty-users] java.lang.ClassNotFoundException: org.eclipse.jetty.deploy.providers.WebAppProvider
|
Hello,
I'm using jetty 8.0.0.M2 via jetty-maven-plugin, and would like to add JNDI
DataSource. I tried following jetty-env.xml entries:
<code>
<Call name="addLifeCycle">
<Arg>
<New class="org.mortbay.jetty.deployer.WebAppDeployer">
<Set name="contexts"><Ref id="Contexts"/></Set>
<Set name="webAppDir"><SystemProperty name="jetty.home"
default="."/>/webapps</Set>
<Set name="parentLoaderPriority">false</Set>
<Set name="extract">true</Set>
<Set name="allowDuplicates">false</Set>
<Set name="defaultsDescriptor"><SystemProperty name="jetty.home"
default="."/>/etc/webdefault.xml</Set>
<Set name="configurationClasses"><Ref id="plusConfig"/></Set>
</New>
</Arg>
</Call>
</code>
<code>
<Call name="addLifeCycle">
<Arg>
<New class="org.eclipse.jetty.deploy.WebAppDeployer">
<Set name="contexts"><Ref id="Contexts"/></Set>
<Set name="webAppDir"><SystemProperty name="jetty.home"
default="."/>/webapps</Set>
<Set name="parentLoaderPriority">false</Set>
<Set name="extract">true</Set>
<Set name="allowDuplicates">false</Set>
<Set name="defaultsDescriptor"><SystemProperty name="jetty.home"
default="."/>/etc/webdefault.xml</Set>
<Set name="configurationClasses"><Ref id="plusConfig"/></Set>
</New>
</Arg>
</Call>
</code>
<code>
<Call name="addLifeCycle">
<Arg>
<New class="org.eclipse.jetty.deploy.providers.WebAppProvider">
<Set name="contexts"><Ref id="Contexts"/></Set>
<Set name="webAppDir"><SystemProperty name="jetty.home"
default="."/>/webapps</Set>
<Set name="parentLoaderPriority">false</Set>
<Set name="extract">true</Set>
<Set name="allowDuplicates">false</Set>
<Set name="defaultsDescriptor"><SystemProperty name="jetty.home"
default="."/>/etc/webdefault.xml</Set>
<Set name="configurationClasses"><Ref id="plusConfig"/></Set>
</New>
</Arg>
</Call>
</code>
<code>
<Call name="addLifeCycle">
<Arg>
<New class="org.mortbay.jetty.deploy.providers.WebAppProvider">
<Set name="contexts"><Ref id="Contexts"/></Set>
<Set name="webAppDir"><SystemProperty name="jetty.home"
default="."/>/webapps</Set>
<Set name="parentLoaderPriority">false</Set>
<Set name="extract">true</Set>
<Set name="allowDuplicates">false</Set>
<Set name="defaultsDescriptor"><SystemProperty name="jetty.home"
default="."/>/etc/webdefault.xml</Set>
<Set name="configurationClasses"><Ref id="plusConfig"/></Set>
</New>
</Arg>
</Call>
</code>
Every single one of them returned ClassNotFoundException
<code>
java.lang.ClassNotFoundException:
org.eclipse.jetty.deploy.providers.WebAppProvider
</code>
like this:
<code>
WARN::Config error at <Call name="addLifeCycle"><Arg>|???<New
class="org.eclipse.jetty.deploy.providers.WebAppProvider"><Set
name="contexts">|?????<Ref id="Contexts"/>|????</Set><Set
name="webAppDir">|?????<SystemProperty name="jetty.home"
default="."/>|?????/webapps|????</Set><Set
name="parentLoaderPriority">false</Set><Set name="extract">true</Set><Set
name="allowDuplicates">false</Set><Set
name="defaultsDescriptor">|?????<SystemProperty name="jetty.home"
default="."/>|?????/etc/webdefault.xml|????</Set><Set
name="configurationClasses">|?????<Ref
id="plusConfig"/>|????</Set></New>|??</Arg></Call>
java.lang.ClassNotFoundException:
org.eclipse.jetty.deploy.providers.WebAppProvider
</code>
Sorry for asking so basic question "how to fix that" but I'm still new in jee,
and tried really hard to solve this on my own, but i have no ideas anymore.
Thanks,
Mariusz Gliwiński
Attachment:
signature.asc
Description: This is a digitally signed message part.