cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.NoClassDefFoundError: com.XXX.portal.projectmanagement

07-22-2009 2:40 PM
997 views 5 comments
0 Likes
SAP Managed Tags
Subscribe

Hi,

We have a portal application deployed on our portal NW 7.0 SPS18. The par file is: com.XXX.portal.projectmanagement.par, the (application alias="projectmanagement").

I have to reference to this project from a WebDynpro (Java) but when I try to deploy the WebDynpro I get the java.lang.NoClassDefFoundError.

How can I reference to this already existing and deployed project? I tried all suitable possibilities in the WebDynpro proberties in the tab "Sharing References" and also in the other ones but then I couldn't even deploy the WebDynpro.

Do you have any idea how to get the reference working and how the "Sharing Reference" has to be set?

Thanks in advance.

Stefan

Edited by: Stefan Kuster on Jul 22, 2009 3:05 PM

What I already tried strings as Sharing Reference

PORTAL:XXX.com/com.XXX.portal.projectmanagement

XXX.com/com.XXX.portal.projectmanagement

com.XXX.portal.projectmanagement

projectmanagement

comXXXportal~projectmanagement

com/XXX/portal/projectmanagement

0 Likes

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member192434
Active Contributor
0 Likes

Hi

NoClassDefFoundError excepiton comes when the required jar file is not reaching to the server.

make sure all the jar sud be there in lib folder before deypoyment.

Thanks

Former Member
0 Likes

Hi Stefan

try

XXX.com~com.XXX.projektmanagement

Thats one "~" between the vendor name and the component name.

Jan

Former Member
0 Likes

Hi Jan,

Thanks for your reply.

Unfortunately this doesn't work, either. When I try to deploy I get the following deployment error (warning) message:

The referenced application XXX.com~com.XXX.portal.projectmanagement cannot be started. Check the causing exception for details. Hint: Is the referenced application deployed correctly on the server?....

Regards,

Stefan

Former Member
0 Likes

According to the following help page it should be PORTAL:com.XXX.portal.projectmanagement, right? And it should work with simple portal applications.

[http://help.sap.com/saphelp_nw2004s/helpdata/en/5b/a0480cb4a14747b60cf4d6b23c0a44/content.htm]

Applications

The SharingReference entry specifies the reference to a J2EE application and applications that contain EJBs or portal applications and portal services. The entry must begin with the prefix PORTAL: for referenced portal applications and services, for example SharingReference=PORTAL:<Name of the portal application>.

As for ServiceReferences, the name specified under SharingReference must be a valid application that is deployed on the J2EE Engine. If the J2EE Engine does not know the specified application, you cannot start the referencing Web Dynpro application after deployment. This is the case if a defined reference cannot be triggered at runtime.

Former Member
0 Likes

Any other ideas how to solve this issue? How to correct set the Sharing Reference?

Stefan

Ask a Question