Nested Jars and Publishing.. [message #169497] |
Wed, 17 May 2006 17:57 |
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 #169527 is a reply to message #169519] |
Wed, 17 May 2006 23:06 |
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 #170009 is a reply to message #169716] |
Wed, 24 May 2006 05:39 |
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
>>>>
>>
|
|
|
Powered by
FUDForum. Page generated in 0.04307 seconds