[Portletunit-users] PortletUnit -Eclipse Classnotfound Exception
Status: Alpha
Brought to you by:
m0smith
|
From: deepu m. <mar...@ya...> - 2007-09-25 04:27:30
|
Hi,
I recently configured Portletunit on my Eclipse.The
Sample Portlet provided with portletunit works
great,However when i try running portletunit on basic
portlet JSR168 created on RAD.Its throwing a classnot
found exception.Can someone let me know if i am
missing something .
Here is the stacktrace
java.lang.ClassNotFoundException:
com.sun.portal.rssportlet.RssPortlet
at
java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native
Method)
at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at
net.sf.portletunit.service.PortletUnitPortletDefinitionRegistryServiceImpl.fill(PortletUnitPortletDefinitionRegistryServiceImpl.java:202)
at
net.sf.portletunit.service.PortletUnitPortletDefinitionRegistryServiceImpl.init(PortletUnitPortletDefinitionRegistryServiceImpl.java:102)
at
org.apache.pluto.portalImpl.services.ServiceManager.init(ServiceManager.java:213)
at
net.sf.portletunit.servlet.PortletUnitServlet.init(PortletUnitServlet.java:91)
at
com.meterware.servletunit.WebApplication$ServletConfiguration.getServlet(WebApplication.java:587)
at
com.meterware.servletunit.WebApplication$ServletRequestImpl.getServlet(WebApplication.java:775)
at
com.meterware.servletunit.InvocationContextImpl$ExecutionContext.getServlet(InvocationContextImpl.java:251)
at
com.meterware.servletunit.InvocationContextImpl.getServlet(InvocationContextImpl.java:89)
at
net.sf.portletunit.PortletRunner.initializePluto(PortletRunner.java:258)
at
net.sf.portletunit.PortletRunner.<init>(PortletRunner.java:91)
at
net.sf.portletunit.PortletRunner.createPortletRunner(PortletRunner.java:125)
at
com.cts.portunit.Portletunit.testHelloWorld(Portletunit.java:18)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
junit.framework.TestCase.runTest(TestCase.java:154)
at
junit.framework.TestCase.runBare(TestCase.java:127)
at
junit.framework.TestResult$1.protect(TestResult.java:106)
at
junit.framework.TestResult.runProtected(TestResult.java:124)
at
junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at
junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:999)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:423)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:598)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:235)
java.lang.NullPointerException
at
org.apache.pluto.portalImpl.services.portletdefinitionregistry.PortletDefinitionRegistry.getPortletApplicationDefinitionList(PortletDefinitionRegistry.java:47)
at
net.sf.portletunit.service.PortletEntityRegistryServiceDynamicImpl.init(PortletEntityRegistryServiceDynamicImpl.java:42)
at
org.apache.pluto.portalImpl.services.ServiceManager.init(ServiceManager.java:213)
at
net.sf.portletunit.servlet.PortletUnitServlet.init(PortletUnitServlet.java:91)
at
com.meterware.servletunit.WebApplication$ServletConfiguration.getServlet(WebApplication.java:587)
at
com.meterware.servletunit.WebApplication$ServletRequestImpl.getServlet(WebApplication.java:775)
at
com.meterware.servletunit.InvocationContextImpl$ExecutionContext.getServlet(InvocationContextImpl.java:251)
at
com.meterware.servletunit.InvocationContextImpl.getServlet(InvocationContextImpl.java:89)
at
net.sf.portletunit.PortletRunner.initializePluto(PortletRunner.java:258)
at
net.sf.portletunit.PortletRunner.<init>(PortletRunner.java:91)
at
net.sf.portletunit.PortletRunner.createPortletRunner(PortletRunner.java:125)
at
com.cts.portunit.Portletunit.testHelloWorld(Portletunit.java:18)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
junit.framework.TestCase.runTest(TestCase.java:154)
at
junit.framework.TestCase.runBare(TestCase.java:127)
at
junit.framework.TestResult$1.protect(TestResult.java:106)
at
junit.framework.TestResult.runProtected(TestResult.java:124)
at
junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at
junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:999)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:423)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:598)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:235)
java.lang.Exception: ServiceManager: Services
initialized (4/6 successful).
at
org.apache.pluto.portalImpl.services.ServiceManager.init(ServiceManager.java:263)
at
net.sf.portletunit.servlet.PortletUnitServlet.init(PortletUnitServlet.java:91)
at
com.meterware.servletunit.WebApplication$ServletConfiguration.getServlet(WebApplication.java:587)
at
com.meterware.servletunit.WebApplication$ServletRequestImpl.getServlet(WebApplication.java:775)
at
com.meterware.servletunit.InvocationContextImpl$ExecutionContext.getServlet(InvocationContextImpl.java:251)
at
com.meterware.servletunit.InvocationContextImpl.getServlet(InvocationContextImpl.java:89)
at
net.sf.portletunit.PortletRunner.initializePluto(PortletRunner.java:258)
at
net.sf.portletunit.PortletRunner.<init>(PortletRunner.java:91)
at
net.sf.portletunit.PortletRunner.createPortletRunner(PortletRunner.java:125)
at
com.cts.portunit.Portletunit.testHelloWorld(Portletunit.java:18)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
junit.framework.TestCase.runTest(TestCase.java:154)
at
junit.framework.TestCase.runBare(TestCase.java:127)
at
junit.framework.TestResult$1.protect(TestResult.java:106)
at
junit.framework.TestResult.runProtected(TestResult.java:124)
at
junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at
junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:999)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:423)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:598)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:235)
Regards,
Deepak
Always be nice to people on the way up; because you'll meet the same people
on the way down.
- Wilson Mizner
Meet people who discuss and share your passions. Go to http://in.promos.yahoo.com/groups
|