Hi Ashwani,
   i saw one more passage in the spec......probably this may answer ur question...
*******************************
Top level JAR files that are processed by a deployment tool should not contain 
Class-Path entries;
suchentries would, by definition, reference other files external to the deployment 
unit.
A deployment tool is not required to process such external references.
*******************************
<<
But What I want is that I want to specify this at the ear file's  manifest
so that I dont have to individually give this entry.
>>

What i feel is if you specify something in the ear's (which is also JAR format file ) 
manifest then on the basis of the above reasoning your jar will be treated as 
something external to the deployment unit (because ur ear file is the topmost file
).....which is not the case and therefore the error...

Could this reasoning be right?..........apologies if I am wrong:)

--------------------------------------------------------------------------------------------------------------------------------
S Srihari





                                                    To:   [EMAIL PROTECTED]
                                                    cc:   (bcc: Srihari 
Srinivasan/BTC/COMP/PHILIPS)
                                                    Subject:    Re: how to access 
common files in jar from ejb and web modules of
                                                     ear file
               Ashwani Kalra
               <[EMAIL PROTECTED]            Classification:
               .IN>

               Sent by:
               A mailing list for
               Enterprise JavaBeans
               development
               <[EMAIL PROTECTED]
               M>

               03/10/2003 01:16 PM
               Please respond to
               ashwani.kalra







hi,
let me add more info to make my point clear

I have following components at the same level directly  in my ear file

1. allejbs.jar  file (containing all ejbs)
2. war file (cotaining web components)
3.  common.jar (required by ejb jar and war files)

What currently I am doing is that I am setting the  following entry in
manifest file of  allejbs.jar and war file

Class-Path:  common.jar

But What I want is that I want to specify this at the ear file's  manifest
so that I dont have to individually give this entry.  But this is not
working.


Harpreet this I think doent have to do anything about  the scope you are
talking about on WAS I will tell you later that due to this ( I am ofcourse
using module level visibility). I am getting another problem.









                    Srihari Srinivasan
                    <[EMAIL PROTECTED]        To:     [EMAIL PROTECTED]
                    ILIPS.COM>                    cc:     (bcc: ashwani.kalra/Polaris)
                    Sent by: A mailing            Subject:     Re: how to access 
common files in jar from ejb and web
                    list for Enterprise           modules of              ear file
                    JavaBeans development
                    <[EMAIL PROTECTED]
                    .COM>


                    03/10/2003 12:41 PM
                    Please respond to
                    srihari.srinivasan







Hi
check out the J2EE spec.............i am referring to j2ee-1_4 proposed
final draft section 8.2
************************
The following example illustrates a simple use of the bundled optional
package mechanism to reference a library of utility classes that are shared
between enterprise beans in two separate ejb-jar files.
app1.ear:
META-INF/application.xml
ejb1.jar Class-Path: util.jar
ejb2.jar Class-Path: util.jar
util.jar
************************

looks like u need to specify them separately each time!!!!
hope this helps

--------------------------------------------------------------------------------------------------------------------------------

S Srihari





                                                    To:
[EMAIL PROTECTED]
                                                    cc:   (bcc: Srihari
Srinivasan/BTC/COMP/PHILIPS)
                                                    Subject:    how to
access common files in jar from ejb and web modules of ear
                                                     file
               Ashwani Kalra
               <[EMAIL PROTECTED]            Classification:
               .IN>

               Sent by:
               A mailing list for
               Enterprise JavaBeans
               development
               <[EMAIL PROTECTED]
               M>

               03/10/2003 12:11 PM
               Please respond to
               ashwani.kalra






hi,

I am having some common files in jar file(say common.jar) used by ejb and
web module.

If I try to set the classpath attribute in ear file manifest as

1. Class-Path:  common.jar

This doesnt work (doesnt pick the classes).

How ever if I individually   put the entry 1 in manifest files of ejb
modules and  webmodules, then it doesnt give the error.

But I want to use the first method .  Is there anything wrong.

I am using WAS 4.0.1 for multiplatform.

Regds
Ashwani

(See attached file: InterScan_Disclaimer.txt)





(See attached file: InterScan_Disclaimer.txt)

This e-Mail may contain proprietary and confidential information and is sent for the 
intended recipient(s) only.
If by an addressing or transmission error this mail has been misdirected to you, you 
are requested to delete this mail immediately.
You are also hereby notified that any use, any form of reproduction, dissemination, 
copying, disclosure, modification,
distribution and/or publication of this e-mail message, contents or its attachment 
other than by its intended recipient/s is strictly prohibited.

Visit Us at http://www.polaris.co.in

Reply via email to