Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Deployment assembly of projects that include bianry class folders
Deployment assembly of projects that include bianry class folders [message #904079] Mon, 27 August 2012 13:55 Go to next message
Erdal Karaca is currently offline Erdal Karaca
Messages: 736
Registered: July 2009
Senior Member
It seems that when exporting a dynamic web project whose deployment assemby page is configured to include a project that itself includes binary class folders, the created WAR app does not include the binary class folders...
What am I doing wrong? Is this supported at all?
Re: Deployment assembly of projects that include bianry class folders [message #904489 is a reply to message #904079] Tue, 28 August 2012 10:13 Go to previous messageGo to next message
Roberto Sanchez Herrera is currently offline Roberto Sanchez Herrera
Messages: 28
Registered: January 2011
Junior Member
What version of WTP are you using? could you attach a sample project?
Re: Deployment assembly of projects that include bianry class folders [message #904561 is a reply to message #904489] Tue, 28 August 2012 13:28 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal Karaca
Messages: 736
Registered: July 2009
Senior Member
I have installed the version that is available through the juno update site:

http://download.eclipse.org/releases/juno

I have attached a zip that contains 2 projects:
- d1: dynamic web project
- r1: a project created by the pde "Create a plug-in project from existing JAR archives." wizard, I have just picked up a jar in my eclipse plugins directory

d1 references r1, i.e. its deployment assembly consists of /src, /WebContent and r1.
d1.war is the result of exporting the d1. It should contain the binary classes set up in r1...

Thanks!

Roberto Sanchez Herrera wrote on Tue, 28 August 2012 10:13
What version of WTP are you using? could you attach a sample project?

Re: Deployment assembly of projects that include bianry class folders [message #904955 is a reply to message #904561] Wed, 29 August 2012 09:09 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1305
Registered: July 2009
Senior Member
On 8/28/2012 1:28 PM, Erdal Karaca wrote:
> I have installed the version that is available through the juno update site:
>
> http://download.eclipse.org/releases/juno
>
> I have attached a zip that contains 2 projects:
> - d1: dynamic web project
> - r1: a project created by the pde "Create a plug-in project from existing JAR archives." wizard, I have just picked up a jar in my eclipse plugins directory
>
> d1 references r1, i.e. its deployment assembly consists of /src, /WebContent and r1.
> d1.war is the result of exporting the d1. It should contain the binary classes set up in r1...
>
> Thanks!
>
> Roberto Sanchez Herrera wrote on Tue, 28 August 2012 10:13
>> What version of WTP are you using? could you attach a sample project?
>
>

Adding runtime dependencies to Dynamic Web Projects is done using the
Deployment Assembly page in the project's Properties dialog. The result
is that the Java content of the project is built into a jar that goes in
the Dynamic Web Project's WEB-INF/lib as <project_name>.jar. Usually
such a "utility" project is done with a standard Java project. I have
never tried it with an Eclipse plug-in project, so I don't know if there
are any side effects of that.

Cheers,
Larry
Re: Deployment assembly of projects that include bianry class folders [message #905103 is a reply to message #904955] Wed, 29 August 2012 13:35 Go to previous message
Erdal Karaca is currently offline Erdal Karaca
Messages: 736
Registered: July 2009
Senior Member
I need to have specific functionality as OSGi service AND in a web service.

I have some more eclipse plugins that are built properly included via deployment assembly.
The only difference seems to be with included binary class folders: they are just ignored.


Larry Isaacs wrote on Wed, 29 August 2012 09:09
On 8/28/2012 1:28 PM, Erdal Karaca wrote:
> I have installed the version that is available through the juno update site:
>
> http://download.eclipse.org/releases/juno
>
> I have attached a zip that contains 2 projects:
> - d1: dynamic web project
> - r1: a project created by the pde "Create a plug-in project from existing JAR archives." wizard, I have just picked up a jar in my eclipse plugins directory
>
> d1 references r1, i.e. its deployment assembly consists of /src, /WebContent and r1.
> d1.war is the result of exporting the d1. It should contain the binary classes set up in r1...
>
> Thanks!
>
> Roberto Sanchez Herrera wrote on Tue, 28 August 2012 10:13
>> What version of WTP are you using? could you attach a sample project?
>
>

Adding runtime dependencies to Dynamic Web Projects is done using the
Deployment Assembly page in the project's Properties dialog. The result
is that the Java content of the project is built into a jar that goes in
the Dynamic Web Project's WEB-INF/lib as <project_name>.jar. Usually
such a "utility" project is done with a standard Java project. I have
never tried it with an Eclipse plug-in project, so I don't know if there
are any side effects of that.

Cheers,
Larry

Previous Topic:My validatorV2 extension disables XML source validation
Next Topic:How to make Content assist working when editors are inside Composite?
Goto Forum:
  


Current Time: Sat Aug 23 09:33:40 EDT 2014

Powered by FUDForum. Page generated in 0.01859 seconds