cancel
Showing results for 
Search instead for 
Did you mean: 

Checkin failed for KM DC

Former Member
0 Kudos

Hi All,

Here I have developed one application using KM API, it is deploying, working and everything is fine but the build activation is failed for checkin. Here is the activation log for more details

[timer] WebDynpro generator finished in 8.923 seconds

[javac] Compiling 25 source files to D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\classes

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:23: package com.sapportals.wcm.repository does not exist

import com.sapportals.wcm.repository.Content;

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:24: package com.sapportals.wcm.repository does not exist

import com.sapportals.wcm.repository.ICollection;

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:25: package com.sapportals.wcm.repository does not exist

import com.sapportals.wcm.repository.IResource;

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:26: package com.sapportals.wcm.repository does not exist

import com.sapportals.wcm.repository.IResourceContext;

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:27: package com.sapportals.wcm.repository does not exist

import com.sapportals.wcm.repository.ResourceContext;

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:28: package com.sapportals.wcm.repository does not exist

import com.sapportals.wcm.repository.ResourceFactory;

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:29: package com.sapportals.wcm.util.content does not exist

import com.sapportals.wcm.util.content.IContent;

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:30: package com.sapportals.wcm.util.uri does not exist

import com.sapportals.wcm.util.uri.RID;

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:31: package com.sapportals.wcm.util.usermanagement does not exist

import com.sapportals.wcm.util.usermanagement.WPUMFactory;

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:169: package com.sapportals.portal.security.usermanagement does not exist

com.sapportals.portal.security.usermanagement.IUser iuser =

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:170: cannot resolve symbol

symbol : variable WPUMFactory

location: class com.abc.practice.Suggestion_BoxView

WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:171: cannot resolve symbol

symbol : class IResourceContext

location: class com.abc.practice.Suggestion_BoxView

IResourceContext irCtx = new ResourceContext(iuser);

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:171: cannot resolve symbol

symbol : class ResourceContext

location: class com.abc.practice.Suggestion_BoxView

IResourceContext irCtx = new ResourceContext(iuser);

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:175: cannot resolve symbol

symbol : class RID

location: class com.abc.practice.Suggestion_BoxView

RID docsResource = RID.getRID("/documents");

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:175: cannot resolve symbol

symbol : variable RID

location: class com.abc.practice.Suggestion_BoxView

RID docsResource = RID.getRID("/documents");

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:176: cannot resolve symbol

symbol : class IContent

location: class com.abc.practice.Suggestion_BoxView

IContent initCont = new Content(new ByteArrayInputStream("Good going Nice portal".getBytes()),"text/html",-1,null);

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:176: cannot resolve symbol

symbol : class Content

location: class com.abc.practice.Suggestion_BoxView

IContent initCont = new Content(new ByteArrayInputStream("Good going Nice portal".getBytes()),"text/html",-1,null);

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:177: cannot resolve symbol

symbol : variable RID

location: class com.abc.practice.Suggestion_BoxView

if (ResourceFactory.getInstance().getResource(RID.getRID("/documents/Comments.html"), irCtx) == null) {

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:177: cannot resolve symbol

symbol : variable ResourceFactory

location: class com.abc.practice.Suggestion_BoxView

if (ResourceFactory.getInstance().getResource(RID.getRID("/documents/Comments.html"), irCtx) == null) {

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:178: cannot resolve symbol

symbol : class ICollection

location: class com.abc.practice.Suggestion_BoxView

ICollection docsColl = (ICollection)ResourceFactory.getInstance().getResource(docsResource,irCtx);

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:178: cannot resolve symbol

symbol : class ICollection

location: class com.abc.practice.Suggestion_BoxView

ICollection docsColl = (ICollection)ResourceFactory.getInstance().getResource(docsResource,irCtx);

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:178: cannot resolve symbol

symbol : variable ResourceFactory

location: class com.abc.practice.Suggestion_BoxView

ICollection docsColl = (ICollection)ResourceFactory.getInstance().getResource(docsResource,irCtx);

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:185: cannot resolve symbol

symbol : class RID

location: class com.abc.practice.Suggestion_BoxView

RID sugg_html = RID.getRID("/documents/Comments.html");

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:185: cannot resolve symbol

symbol : variable RID

location: class com.abc.practice.Suggestion_BoxView

RID sugg_html = RID.getRID("/documents/Comments.html");

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:187: cannot resolve symbol

symbol : class IResource

location: class com.abc.practice.Suggestion_BoxView

IResource resource = ResourceFactory.getInstance().getResource(sugg_html, irCtx);

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:187: cannot resolve symbol

symbol : variable ResourceFactory

location: class com.abc.practice.Suggestion_BoxView

IResource resource = ResourceFactory.getInstance().getResource(sugg_html, irCtx);

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:192: cannot resolve symbol

symbol : class IContent

location: class com.abc.practice.Suggestion_BoxView

IContent cont = resource.getContent();

^

D:\usr\sap\NSP\JC01\j2ee\cluster\server0\temp\CBS\3d\.B\143\t\647B720563CEDFB0BA47E7591A7D31D1\gwd\packages\com\abc\practice\Suggestion_BoxView.java:205: cannot resolve symbol

symbol : class Content

location: class com.abc.practice.Suggestion_BoxView

cont = new Content(inputStream,"text/html",-1,null);

^

28 errors

Ant build finished with ERRORS

Regards

Suresh

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185029
Active Contributor
0 Kudos

hi,

It is quite clear from the log that the component is not getting references for the classes you are using.

Solution

Add these classes to the library project as a jar file and include it as a used DC

Ashutosh

Former Member
0 Kudos

Hi,

Thnaks for your quick response. I have already done like this. Could you pleave give me another solution.

Regards

Suresh

former_member185029
Active Contributor
0 Kudos

Dear Suresh,

There is no alternate solution.

Is the library DC checked in into DTR?

Even after adding jar files if you are not getting the class instances, you need to check whether the library file has been created properly.

Have you added 2 public parts of the library DC? (Runtime and deploy time resp)

Ashutosh

Former Member
0 Kudos

Hi,

Yes everything is done from my side and also I am able to see the jar files in java build path from preferences. But it still giving errors.

former_member185029
Active Contributor
0 Kudos

Hi,

try doing following things

1. Remove and add the used DC again

2. Sync used DC.

Let me know what happens.

Ashutosh