cancel
Showing results for 
Search instead for 
Did you mean: 

web dynpro runtime library

Former Member
0 Kudos

Dear all,

We have a j2ee library that contains classes from a java project. Those classes are using Web Dynpro classes, for example: IWDNode.

When i'm running a web dynpro application i get a classnotfound exception for the iwdnodeinfo class used in the j2ee library. I've already references from the j2ee library to ejb20 to know those classes @ runtime. What is the library that contains the web dynpro classes?

On my local drive, i found "_webdynpro_progmodel.jar" among others. This jar contains the iwdnode class and other web dynpro classes. What is the development component that contains these jars?

Kind regards,

J.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hai,

If you are using Webdynpro Application, copy those jars into lib folder of webdynpro project, you can see the folder in navigator view.

If you are using Dc type Of project see this blog

/people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro

Regards,

naga

Former Member
0 Kudos

Hi,

I have the same problem as described here:

My j2ee library contains classes with Web Dynrp classes. (IWDNodeInfo, IWDNodeElement, ...)

Isnt there a library or so that contains these classes and that can be referenced from my J2EE library? I did the same for EJB20 library and that is working fine.

When i try referencing tc/wd/webdynrp (a service that contains the jars i need) i get the error described in the above thread when deploying my web dynpro application. I also think my j2ee library isnt deployed correctly when i reference td/wd/webdynpro because i cannot see it in the classloader viewer service in visual adminstrator. Without the reference, i can see it here.

Kind regards,

J.

Former Member
0 Kudos

Joren,

As I described in the thread mentioned, it's impossible to use WD classes from EJB. Think of it from this point of view -- in MVC it's not allowed to call View logic from Model tier.

Seems that WD classes has strong dependency on WD container that hosts WD applications and it's impossible to use them outside container (i.e. in EJB container).

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Former Member
0 Kudos

Thx for the reply,

Does the same goes for calling simple JAVA classes (java project) that contain general methods for web dynpro that come in handy? We allready have a java project that contain general classes that come in handy in Web Dynpro, EJB, ... so we want to develop the general methods for Web Dynpro here too (for example a class WDPHelper with a method listAllSubnodesNames(IWDNode node) that returns a collection of Strings, but they will probably only be called from Web Dynpro...

but the classes with the general web dynpro methods will be in a library that contains all or other "helper" classes..

Can we create a "web dynpro" library that contains all the SAP web dynpro jars that are necessary so we can make a dependency to this library and not to the web dynpro service... I dont see why its not good design or so...

Kind regards,

J.

Former Member
0 Kudos

Joren,

Your suspicions are correct, unfortunately.

If you deploy your java project to WD container (as WD ear) then you'll be unable to use them from EJB project; if you deploy java project as J2EE application/library then you'll get ClassNotFound exceptions from this J2EE library when accessing WD classes.

The only solution is to split your reusable libraries up to 2 libraries:

1. First library has no dependencies on WebDynpro, it's deployed as J2EE library and may be accessed from both EJB and WD projects

2. Second library is WD project, it uses first library and may be accessed from other WD projects (but not from EJB ones)

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Former Member
0 Kudos

Hi,

before moving my classes to a web dynpro dc i tried making my own web dynpro j2ee library containing all the necessary web dynpro jars, but as expected this didnt work either because of a linkage error. (jars were already loaded when starting the web dynpro application)

So now i finally moved (as the only way out) all my web dynpro classes to a web dynpro dc and putted them in the public part and use those from another web dynpro dc. this works.

Thx for the help.

Kind regards,

J.