[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[jetty-users] Issue loading classes from JARs used by Jetty.
|
- From: RÃbert KohÃnyi <kohanyi.robert@xxxxxxxxx>
- Date: Sun, 16 Oct 2011 17:01:51 +0200
- Delivered-to: jetty-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=76BSTwSrLnjj1teOM7AGikH+mG9WwAsgeW33/YztaQs=; b=Wy7ubnZVctPOdMy/60dnV1qBPqmtaL5Av/q20BBE8UJ6VOyDW3v0B8cP/IeSNj4D62 HPNf8lCUYBmfTq93EI7MwWQAw7D1SCOBRSyhpj+lNbQhyrrt2MDaJ0IG5lOSdSfOG/GN zIC7RukSjtobFsxdEWb3evqCVKsUsjKSns3mw=
I'm trying to create a servlet which tries to use classes included in Jetty's lib/ directory. Namely the class org.eclipse.jetty.deploy.DeploymentManager which is included in lib/jetty-deploy-8.0.3.v20111011.jar.
Instantiating the DeploymentManager in the constructor generates no errors, but doing the same in the doPut method always throws:Âjava.lang.NoClassDefFoundError: org/eclipse/jetty/deploy/DeploymentManager.
I'v tried saving Thread.currentThread().getContextClassLoader() (in the constructor) in a static variable and load the DeploymentManager's class in doPut, however it still threw an exception (same as above).
I haven't got the faintest idea what could the problem be and that how can I solve this.
If anyone has an idea please let me know about it! Thanks!
Regards,
KohÃnyi RÃbert