Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
steffen_spahr2
Participant
0 Kudos

Hi everybody,

after changing our netweaver runtime platform from 7.0 to 7.31 , I spent a lot of time, trying to migrate some of our TomCat 7.0-based web-application to SAP Netweaver 7.31.

The most of these applications are using popular components/techniques like MyFaces 2.0 (JSF 2.0), Tomahawk, PrimeFaces, Mobile PrimeFaces, Trinidad, CDI, JPA....

Because of the fact that NW 7.31 still supports EE 5.0 (not EE 6.0), in most cases the SAP JSF 1.2 implemenation was insufficient for our needs.

After reading lots of the documents in SDN about "heavy ressource loading", I found a way to separate the MyFaces (JSF) 2.0 libraries into a library project, so that I could use the Mobile PrimeFaces components in my dynamic web projects, referencing the MyFaces 2.0 implementations via a hard class loader reference.

    <!-- JSF 2.0:  MyFaces 2.0.x-Implementierung -->

    <reference reference-type="hard" prepend="true">

        <reference-target provider-name="oevbs.de"

            target-type="library">myfaces~2.0.x</reference-target>

    </reference>

The most difficult part was to decide which jars to place in the MyFaces 2.0 library project to avoid "class not found"-runtime exceptions. But I still found a solution that fulfilled our requirements.

Because of the fact that there still is a big interest in using popular java techniques that exceed the possibilties of the EE 5.0 implementation on NW 7.3, I decided to post my solution in SDN.

The example project is a skeleton of an existing project we use in our insurance ("Elektronische Versicherungsbestätigung"). (Sorry, for the field names and comments in the project example beeing in german language).

If you like, you'll find all sources of the example project in the Code Exchange Repository: "https://code.sdn.sap.com/svn/MobilePrimeFacesExample/"

Important Notice:

  • For entering "Code Exchange", you have to be a registered user!
  • To exclude conflicts with the different licence agreements, I removed the "open source" jars from the project!

If you just want to see the running web-application:

  1. log in to SCN (http://scn.sap.com/community/code-exchange)
  2. download the enterprise-application-archiv "eVBMobilExampleEAR.ear" ("https://code.sdn.sap.com/svn/MobilePrimeFacesExample/eVBMobilExampleEAR/eVBMobilExampleEAR.ear")
  3. download the needed jars (See: "https://code.sdn.sap.com/svn/MobilePrimeFacesExample/eVBMobilExample/WebContent/WEB-INF/Needed_Libra..." for the download-locations!)
  4. place the jars into the zipped "eVBMobilExampleEAR.ear"-file below the following lib-folder:
  5. download the library-sda-file "MyFaces20x.sda" (See: "https://code.sdn.sap.com/svn/MobilePrimeFacesExample/MyFaces20x/MyFaces20x.sda")
  6. download the needed jars (See: "https://code.sdn.sap.com/svn/MobilePrimeFacesExample/MyFaces20x/Needed_Libraries.txt" for the download-locations!)
  7. place the jars into the zipped "MyFaces20x.sda"-file below the following lib-folder (Notice: The names of the jars must exactly match to the listed names in the provider.xml) :
  8. deploy the standard library file: "MyFaces20x.sda" and accordingly the Enterprise Archiv: "eVBMobilExampleEAR.ear"

Call the web-application using the URL: "http://{Your Hostname:Port}/eVBMobilExample".

If everything works fine, you should see the following dialog-pages:

Regards

Steffen

Labels in this area