Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Simple question about deployment assembly(Simple question about deployment assembly)
Simple question about deployment assembly [message #1278757] Thu, 27 March 2014 20:13 Go to next message
William Phillips is currently offline William PhillipsFriend
Messages: 1
Registered: March 2014
Junior Member
In my workspace, I have a web application project and a library project.

The web application project depends on the library.

In my project setup, I have:


  • Added the library project to the build path ("Projects" tab) of the web app
  • Added the library project to the deployment assembly of the web app



Right when I add the deployment assembly and "apply":
a jar of my library project is created and it is put into the WEB-INF/lib directory

When I change the library project, however, the jar is never rebuilt with updated content

I have tried the following and neither causes the jar to rebuild:

  • clean/republish the server
  • clean workspace


The only thing I have found that works is to remove the deployment assembly and add it back in. This takes a long time and seems like a poor workflow.

---

Can anyone tell me how this is supposed to work?
Is their a hot key or a something to cause the jar to rebuild?

I am using Indigo SR2.
When I run, "check for updates" nothing appears, so I assume software is up to date.


Thanks
Re: Simple question about deployment assembly [message #1279241 is a reply to message #1278757] Fri, 28 March 2014 12:53 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
On 3/28/2014 8:23 AM, William Phillips wrote:
> In my workspace, I have a web application project and a library project.
>
> The web application project depends on the library.
>
> In my project setup, I have:
>
>
> Added the library project to the build path ("Projects" tab) of the web app
> Added the library project to the deployment assembly of the web app
>
>
>
> Right when I add the deployment assembly and "apply":
> a jar of my library project is created and it is put into the
> WEB-INF/lib directory
> When I change the library project, however, the jar is never rebuilt
> with updated content
>
> I have tried the following and neither causes the jar to rebuild:
>
> clean/republish the server
> clean workspace
>
>
> The only thing I have found that works is to remove the deployment
> assembly and add it back in. This takes a long time and seems like a
> poor workflow.
>
> ---
>
> Can anyone tell me how this is supposed to work?
> Is their a hot key or a something to cause the jar to rebuild?
>
> I am using Indigo SR2.
> When I run, "check for updates" nothing appears, so I assume software is
> up to date.
>
>
> Thanks

Try not adding the library project on the "Projects" tab. This is
unnecessary and may be interfering with normal behavior. Adding the
library project in Deployment Assembly should handle the Java Build Path
issues for you automatically. With the web application added to a
server in the Servers view, you can click "Publish", then make a change
to the library project and see the state of the server and webapp change
from "Synchronized" to "Republish". Publishing again should update the
jar in the published webapp.

Cheers,
Larry
Previous Topic:Large XML files loaded twice into memory
Next Topic:How to install a WSDL model in Luna?
Goto Forum:
  


Current Time: Thu Apr 25 04:19:02 GMT 2024

Powered by FUDForum. Page generated in 0.03571 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top