on 05-16-2008 6:07 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.