Skip to main content

Where do I put jar file war depends on for autodeploy?

1 reply [Last post]
owr
Offline
Joined: 2010-01-21

Hi folks,

I am brand new to the forum and a bit of a newbie to Glassfish and web servers in general. Please escuse this if its an elementary/vague question.

I have an existing war that I am tryin to test and it depends on another jar file. In Tomcat, I can just place the war in the "webapps" drectory and the jar in "common\lib".

In Glassfish - Ive learned that I can place the war in "autodeploy" or register it through asadmin and have gotten the basic "hello" example from Sun to work. Is there any quick way to do this with my custom application similar to Tomcat?

If it matters, I just installed Glassfish v3.

Thanks for your time.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Sahoo

Two options:
1. Copy the jar to glassfish/domains/domain1/lib/ and
copy the war to domain1/autodeploy/.

2. asadmin deploy --libraries

In approach #2, only this war can see the jar, no other apps can. If you
want another war to share the library, use the same library path and the
two wars will share the library.

Sahoo

glassfish@javadesktop.org wrote:
> Hi folks,
>
> I am brand new to the forum and a bit of a newbie to Glassfish and web servers in general. Please escuse this if its an elementary/vague question.
>
> I have an existing war that I am tryin to test and it depends on another jar file. In Tomcat, I can just place the war in the "webapps" drectory and the jar in "common\lib".
>
> In Glassfish - Ive learned that I can place the war in "autodeploy" or register it through asadmin and have gotten the basic "hello" example from Sun to work. Is there any quick way to do this with my custom application similar to Tomcat?
>
> If it matters, I just installed Glassfish v3.
>
> Thanks for your time.
> [Message sent by forum member 'owr' (owrosen@gmail.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=382209
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net