Skip to Content
avatar image
Former Member

A response to the External Libraries article

Hi,

I am using another way of sharing external jars between applications - irj and other application that I deploy in the SAP J2EE Engine (like EJBs applications that provide my portal components data from SAP).

This way also seems to work fine (it is in production for at least a year for various portal components I created).

You can place your .jar files under SAP_J2EEngine6.20aloneadditional-lib

Then open the SAP_J2EEngine6.20alonemanagerslibrary.txt

Edit this file and add a library name like "myNewLib" that will reference your .jar files.

It should look like this:

library myNewLib  myJarFile.jar

For example I have added this library:

library axis axis.jar;clutil.jar;commons-logging.jar;tt-bytecode.jar;jaxrpc.jar;log4j-core.jar;xerces.jar

Then open the SAP_J2EEEngine6.20alonemanagers eference.txt

edit the file and add a reference to your new library "myNewLib".

To add a reference to the portal components add that line for example:

reference irj library:myNewLib

after those changes you need to restart your engine.

No special definitions are required in the portal components.

I hope this helps someone...

Carmit.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Oct 02, 2003 at 07:15 PM

    thanx.

    a good comparison between J2EE and portal services. But it does not mean, that you should always prefer J2EE services ;-).

    Oliver

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 12, 2004 at 11:32 PM

    I'm trying to use EJB's on 6.2 within the portal. I've got my EJB's created and deployed. Further, I've copied the ejb jar file to the additional-lib directory, added my referece.txt and library.txt entries.

    However, when I deploy a portal component that references a class in the EJB jar file, I get a NoClassDefFoundError. I've tried several variations in the SharingReference (ie using the name from reference.txt), but it doesn't seem to make a difference.

    What am I missing?? Thanks.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      okay, I've finally got it working. For anyone interested...

      1. Create your EJB

      2. Deploy EJB(s) using the deploy tool

      3. use the J2EE console to create the reference between irj and your EJB app

      3a. telnet localhost 50008

      3b. JUMP to your server

      3c. ADD DEPLOY

      3d. LISTAPP shows all applications on the cluster

      3e. LL shows all references

      3f. CHANGEREF -m IRJ application:[ejbApp]

      Then, restart. You can then access your EJB's and it's supporting classes from an iView. Also, if you've got another web application, you can link it (instead of IRJ) the same way.

  • avatar image
    Former Member
    Jun 28, 2004 at 11:25 AM

    Hi, can anyone tell me how did the program the ejb, what kind of IDE they used, and if they used the j2ee deploy tool, and if they tried to access a EJB from another client.

    My main problem is this P4 prototcol. Because is I try to use the export client jar function I get some really strange functions.

    If somebody has more experience in this, please help.

    Thanks.

    Best Regards Lucian.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      You said this "Now we've referenced the EJB application from the portal and are developing it all via Eclipse. For class references, at development time we have two projects- one EJB project and one par project. The PAR project has a reference to the EJB project so it'll compile cleanly." And you said that you used Eclipse, so this is why I said like that about NetWeaver Developer Studio.

      Anyway thanks so much,

      Best Regards,

      Lucian,