users@grizzly.java.net

Re: War classpath

From: Oleksiy Stashok <oleksiy.stashok_at_oracle.com>
Date: Tue, 05 Jun 2012 18:01:27 +0200

Hi Chris,

can you pls. create an issue and attach the testcase, so it would be
easier for us to start working on this.

Thanks.

WBR,
Alexey.

On 06/04/2012 11:36 PM, Christopher Piggott wrote:
> sorry that went out without a Subject. Cut and paste problems.
>
> On Mon, Jun 4, 2012 at 5:36 PM, Christopher Piggott<cpiggott_at_gmail.com> wrote:
>> Hi,
>>
>> I have a two maven projects. One is a webapp that has a LOT of
>> dependencies (including jersey and guice). The second is an
>> 'executor' that is basically a main() that attempts to start grizzly
>> and deploy the war. What I'm trying to do is to make a deployable
>> war, and provide a user with a simple .jar they can run that starts up
>> and configures Grizzly then deploys said war into it.
>>
>> It isn't quite working, because it's unable to find the dependencies
>> that are INSIDE the war. Deploying it yields:
>>
>> SEVERE: Unable to load class com.google.inject.servlet.GuiceFilter
>> java.lang.NoClassDefFoundError: javax/servlet/Filter
>>
>> which is in the war in guice-serverlet.3.0.jar.
>>
>> I tried playing with DeployerServerConfiguration.libraryPath but
>> couldn't find the right way to do this. In order to work at all, it
>> seems it would have to explode the war -- I don't think you can simply
>> have the .war on the classpath, because no class loader that I know of
>> can load a jar that's inside another jar (or war).
>>
>> What am I missing here?
>>
>> --Chris