Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

java.lang.ClassNotFoundException

Hello

I get this error when I try to map a component with a class.

Could not create command with alias KenGPager and classname be.kindengezin.wcm.rendering.component.cm.Pager:java.lang.ClassNotFoundException: be.kindengezin.wcm.rendering.component.cm.Pager
	at com.sapportals.wcm.crt.CrtClassLoaderRegistry.findClass(CrtClassLoaderRegistry.java:176)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
	at com.sapportals.wcm.rendering.collection.ComponentFactory.createComponent(ComponentFactory.java:447)
	at com.sapportals.wcm.rendering.collection.ComponentFactory.initialize(ComponentFactory.java:489)
	at com.sapportals.wcm.rendering.collection.ComponentFactory.configEvent(ComponentFactory.java:553)
	at com.sapportals.config.event.ConfigEventService.dispatchEvent(ConfigEventService.java:227)
	at com.sapportals.config.event.ConfigEventService.configEvent(ConfigEventService.java:112)
	at com.sapportals.config.event.ConfigEventDispatcher.callConfigListeners(ConfigEventDispatcher.java:308)
	at com.sapportals.config.event.ConfigEventDispatcher.flushEvents(ConfigEventDispatcher.java:251)
	at com.sapportals.config.event.ConfigEventDispatcher.run(ConfigEventDispatcher.java:110)

My java file starts as following:

package be.kindengezin.wcm.rendering.component.cm;
 
import com.sap.tc.logging.Location;
import com.sapportals.htmlb.*;
import com.sapportals.htmlb.enum.TextViewDesign;
import com.sapportals.htmlb.event.Event;
import com.sapportals.wcm.WcmException;
import com.sapportals.wcm.control.util.PropertyRendererString;
import com.sapportals.wcm.rendering.base.*;
import com.sapportals.wcm.rendering.collection.*;
import com.sapportals.wcm.rendering.util.EmptyHtmlFragment;
import com.sapportals.wcm.rendering.util.PagerData;
import com.sapportals.wcm.repository.*;
import com.sapportals.wcm.repository.service.IRepositoryServiceFactory;
import com.sapportals.wcm.repository.service.layout.customizing.IParameterName;
import com.sapportals.wcm.service.propertyconfig.*;
import com.sapportals.wcm.util.logging.LoggingFormatter;
import com.sapportals.wcm.util.name.IName;
import com.sapportals.wcm.util.resource.ResourceBundles;
import com.sapportals.wcm.util.uri.RID;
import java.util.*;
 
// Referenced classes of package com.sapportals.wcm.rendering.component.cm:
//			  LightComponent, PagerComponent, PagerInterval
 
public class Pager extends LightComponent
{

Any ideas?

I checked already the Sharingreferences.

Thanks in advance!

Christof

Former Member
Not what you were looking for? View more on this topic or Ask a question