Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Nested Jars and Publishing..
Nested Jars and Publishing.. [message #169497] Wed, 17 May 2006 17:57 Go to next message
Eclipse User
Originally posted by: shankarv.earthling.net

I am using Eclipse 3.1.2 and WTP 1.0.2v200604280000. I am publishing a EAR
project which consists of an EJB project and a Dynamic WAR project, to
Weblogic. The EJB JAR has a nested JAR that is being loaded as part of the
application startup. The nested JAR is created in the build output folder
through an Ant builder for the EJB project (the rest of the project is built
by the Java builder). For some reason, the publisher drops the nested JAR
from the EJB JAR when it publishes to the server. Any ideas?

- Shankar
Re: Nested Jars and Publishing.. [message #169519 is a reply to message #169497] Wed, 17 May 2006 20:55 Go to previous messageGo to next message
Gorkem Ercan is currently offline Gorkem Ercan
Messages: 166
Registered: July 2009
Senior Member
Shankar, what do you mean by the build output folder?

Shankar Venkataraman wrote:
> I am using Eclipse 3.1.2 and WTP 1.0.2v200604280000. I am publishing a EAR
> project which consists of an EJB project and a Dynamic WAR project, to
> Weblogic. The EJB JAR has a nested JAR that is being loaded as part of the
> application startup. The nested JAR is created in the build output folder
> through an Ant builder for the EJB project (the rest of the project is built
> by the Java builder). For some reason, the publisher drops the nested JAR
> from the EJB JAR when it publishes to the server. Any ideas?
>
> - Shankar
>
>
Re: Nested Jars and Publishing.. [message #169527 is a reply to message #169519] Wed, 17 May 2006 23:06 Go to previous messageGo to next message
Eclipse User
Originally posted by: shankarv.earthling.net

The output folder that you set in the source tab of the project's
properties. Let me explain this a bit more..

The out put folder is set as <project path>/build/classes. The nested jar is
created in the <project path>/build/classes/com/xx directory. When I publish
to the app server, the publisher publishes all classes in the subfolders
under <project path>/build/classes into the EJB JAR but omits the JAR that
is placed in the <project path>/build/classes/com/xx directory.

- Shankar


"Gorkem Ercan" <gercan@acm.org> wrote in message
news:e4g2kd$dng$1@utils.eclipse.org...
> Shankar, what do you mean by the build output folder?
>
> Shankar Venkataraman wrote:
>> I am using Eclipse 3.1.2 and WTP 1.0.2v200604280000. I am publishing a
>> EAR project which consists of an EJB project and a Dynamic WAR project,
>> to Weblogic. The EJB JAR has a nested JAR that is being loaded as part of
>> the application startup. The nested JAR is created in the build output
>> folder through an Ant builder for the EJB project (the rest of the
>> project is built by the Java builder). For some reason, the publisher
>> drops the nested JAR from the EJB JAR when it publishes to the server.
>> Any ideas?
>>
>> - Shankar
>>
Re: Nested Jars and Publishing.. [message #169716 is a reply to message #169527] Sat, 20 May 2006 06:17 Go to previous messageGo to next message
Gorkem Ercan is currently offline Gorkem Ercan
Messages: 166
Registered: July 2009
Senior Member
I see, during the publish the published modules are not simply copied
from the bin folder. Can you put the jar file under a source folder so
that it is copied to bin by eclipse?
--
Gorkem


Shankar Venkataraman wrote:
> The output folder that you set in the source tab of the project's
> properties. Let me explain this a bit more..
>
> The out put folder is set as <project path>/build/classes. The nested jar is
> created in the <project path>/build/classes/com/xx directory. When I publish
> to the app server, the publisher publishes all classes in the subfolders
> under <project path>/build/classes into the EJB JAR but omits the JAR that
> is placed in the <project path>/build/classes/com/xx directory.
>
> - Shankar
>
>
> "Gorkem Ercan" <gercan@acm.org> wrote in message
> news:e4g2kd$dng$1@utils.eclipse.org...
>> Shankar, what do you mean by the build output folder?
>>
>> Shankar Venkataraman wrote:
>>> I am using Eclipse 3.1.2 and WTP 1.0.2v200604280000. I am publishing a
>>> EAR project which consists of an EJB project and a Dynamic WAR project,
>>> to Weblogic. The EJB JAR has a nested JAR that is being loaded as part of
>>> the application startup. The nested JAR is created in the build output
>>> folder through an Ant builder for the EJB project (the rest of the
>>> project is built by the Java builder). For some reason, the publisher
>>> drops the nested JAR from the EJB JAR when it publishes to the server.
>>> Any ideas?
>>>
>>> - Shankar
>>>
>
Re: Nested Jars and Publishing.. [message #170009 is a reply to message #169716] Wed, 24 May 2006 05:39 Go to previous message
Eclipse User
Originally posted by: shankarv.earthling.net

I found 2 ways to make it work. One was the way that you mentioned - have
the Ant build put the jar in a source folder that gets picked up by Eclipse
Java builder. The second way was to have th Ant build put the jar at the
build/classes folder level. All files at this level seem to be picked up by
the EAR builder.

- Shankar


"Gorkem Ercan" <gercan@acm.org> wrote in message
news:e4mca9$f5v$2@utils.eclipse.org...
>I see, during the publish the published modules are not simply copied from
>the bin folder. Can you put the jar file under a source folder so that it
>is copied to bin by eclipse?
> --
> Gorkem
>
>
> Shankar Venkataraman wrote:
>> The output folder that you set in the source tab of the project's
>> properties. Let me explain this a bit more..
>>
>> The out put folder is set as <project path>/build/classes. The nested jar
>> is created in the <project path>/build/classes/com/xx directory. When I
>> publish to the app server, the publisher publishes all classes in the
>> subfolders under <project path>/build/classes into the EJB JAR but omits
>> the JAR that is placed in the <project path>/build/classes/com/xx
>> directory.
>>
>> - Shankar
>>
>>
>> "Gorkem Ercan" <gercan@acm.org> wrote in message
>> news:e4g2kd$dng$1@utils.eclipse.org...
>>> Shankar, what do you mean by the build output folder?
>>>
>>> Shankar Venkataraman wrote:
>>>> I am using Eclipse 3.1.2 and WTP 1.0.2v200604280000. I am publishing a
>>>> EAR project which consists of an EJB project and a Dynamic WAR project,
>>>> to Weblogic. The EJB JAR has a nested JAR that is being loaded as part
>>>> of the application startup. The nested JAR is created in the build
>>>> output folder through an Ant builder for the EJB project (the rest of
>>>> the project is built by the Java builder). For some reason, the
>>>> publisher drops the nested JAR from the EJB JAR when it publishes to
>>>> the server. Any ideas?
>>>>
>>>> - Shankar
>>>>
>>
Previous Topic:Running Application Client Project in IDE
Next Topic:Exporting J2EE Module dependencies..
Goto Forum:
  


Current Time: Tue Sep 23 02:25:19 GMT 2014

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

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