Quantcast
Channel: SCN : Popular Discussions - SAP Enterprise Portal: Content Management and Collaboration
Viewing all articles
Browse latest Browse all 1826

issue with J2ee app to access KM in EP 7.4

$
0
0
Not sure if the code/app is having some issues or there is some issue with the EP system itself.
Need your expert comments.
Relevant info is :

EP:  NW 7.4 SP11

NWDS : SAP Enhancement Package 1 for SAP NetWeaver Developer Studio 7.3 SP15 PAT0003

 

Working on migration of servlet based J2EE App to read KM content (app is getting migrated from EP 7.0 to 7.4).
Have already fixed the InvokerServlet issue.
Stuck at following :
When using
ResourceContext ctx = new ResourceContext(WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service"));
OR
IResourceContext ctx = ResourceFactory.getInstance().getServiceContext("cmadmin_service");
getting following exception trace in NWA :
[EXCEPTION]
java.lang.NoClassDefFoundError: com/sapportals/wcm/crt/CrtClassLoaderRegistry

at com.sapportals.wcm.repository.ResourceFactory.getInstance(ResourceFactory.java:48)

at com.sap.FileUpload.doGet(FileUpload.java:49)
<application-j2ee-engine>
     <reference
          reference-type="weak">
          <reference-target
               provider-name="sap.com"
               target-type="application">com.sap.km.application</reference-target>
     </reference>
     <provider-name>yourvendor.com</provider-name>
     <fail-over-enable
          mode="disable"/>
</application-j2ee-engine>
but, as the new app has been migrated using newer version of NWDS (for compatibility with EP 7.4), the "web-j2ee-engine.xml" was modified as follows. Anything similar to above is not accepted and file shows errors (as those parameters are no longer available/deprecated).
<spec-version>2.3</spec-version>
<resource-ref>
<res-ref-name>com.sap.km.application</res-ref-name>
</resource-ref>
</web-j2ee-engine>

Viewing all articles
Browse latest Browse all 1826

Trending Articles