It looks like HelloWorld was found, but AbstractPortlet was not found (ie.
the base class for HelloWorld).

If you have a normal 'webapp' install of jetspeed, the problem may be with
the CLASSPATH/classloader. If you have a classpath set, try *removing* this
before starting Tomcat (and leave your class where it is - assuming this is
in webapps/<jetspeed>/WEB-INF/classes etc.)


Joe.

-----Original Message-----
From: Giampiero DeCiantis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 10 May 2001 8:38 PM
To: [EMAIL PROTECTED]
Subject: Newbie: HelloWorld will not work for me


I have tried everything in every mailing list about the subject.
 
I have just re-installed Tomcat and have written HelloWorldPortlet.class
which does not have any package associated with it. Then I copied it to
WEB-INF/classes. This didn't work, so I tried putting the class into a
jar and putting the jar file into the WEB-INF/lib directory. This also
didn't work. I haven't done anything with the classpath that isn't out
of the ordinary (ie CLASSPATH contains usual entries).
 
I can't think of anything else. I have tried it all. Any suggestions
would be very welcome.
 
This is the error that I get:
 
Exception:  java.lang.NoClassDefFoundError:
org/apache/jetspeed/portal/portlets/AbstractPortlet
 Stack Trace follows:
 java.lang.NoClassDefFoundError:
org/apache/jetspeed/portal/portlets/AbstractPortlet
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
 at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
 at
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoad
er.java:446)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:120)
 at
org.apache.jetspeed.portal.factory.PortletFactory.getPortlet(PortletFact
ory.java:411)
 at
org.apache.jetspeed.portal.factory.PortletFactory.getPortlet(PortletFact
ory.java:218)
 at
org.apache.jetspeed.portal.factory.PortletFactory.getPortlet(PortletFact
ory.java:196)
 at
org.apache.jetspeed.portal.factory.PortletFactory.getPortlet(PortletFact
ory.java:172)
 at
org.apache.jetspeed.portal.portlets.customize.CustomizePortlet.getCapabi
lities(CustomizePortlet.java:593)
 at
org.apache.jetspeed.portal.portlets.customize.CustomizePortlet.getPageOn
e(CustomizePortlet.java:264)
 at
org.apache.jetspeed.portal.portlets.customize.CustomizePortlet.getConten
t(CustomizePortlet.java:177)
 at
org.apache.jetspeed.portal.controls.ClearPortletControl.getContent(Clear
PortletControl.java:71)
 at
org.apache.jetspeed.portal.controllers.RowColumnPortletController.getHTM
LContent(RowColumnPortletController.java:166)
 at
org.apache.jetspeed.portal.controllers.RowColumnPortletController.getCon
tent(RowColumnPortletController.java:115)
 at
org.apache.jetspeed.portal.PortletSet.getContent(PortletSet.java:277)
 at
org.apache.jetspeed.modules.screens.Customize.getPSMLContent(Customize.j
ava:224)
 at
org.apache.jetspeed.modules.screens.Customize.doBuild(Customize.java:148
)
 at org.apache.turbine.modules.Screen.build(Screen.java:100)
 at org.apache.turbine.modules.ScreenLoader.eval(ScreenLoader.java:125)
 at
org.apache.jetspeed.modules.layouts.JetspeedJspLayout.doBuild(JetspeedJs
pLayout.java:103)
 at org.apache.turbine.modules.Layout.build(Layout.java:93)
 at org.apache.turbine.modules.LayoutLoader.exec(LayoutLoader.java:122)
 at
org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:17
0)
 at org.apache.turbine.modules.Page.build(Page.java:92)
 at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:122)
 at org.apache.turbine.Turbine.doGet(Turbine.java:364)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:797)
 at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
ttpConnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:49
8)
 at java.lang.Thread.run(Thread.java:484)

_______________________
Giampiero De Ciantis
QA Analyst

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


================================================================================================
This electronic message (email) and any attachments to it are subject to copyright and 
are sent for the personal attention of the addressee. Although you may be the named 
recipient, it may become apparent that this email and its contents are not intended 
for you and an addressing error has been made. This email may include information that 
is legally privileged and exempt from disclosure. If you have received this email in 
error, please advise us immediately and delete this email and any attachments from 
your computer system.Rabobank International is the trading name of Co�peratieve 
Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands. 
Registered with the Registrar of Companies for England & Wales No. BR002630 and 
regulated by the SFA for the conduct of investment business in the UK.

The presence of this footnote also confirms that this email has been automatically 
checked by Rabobank International for the presence of computer viruses prior to it 
being sent, however, no guarantee is given or implied that this email is virus free 
upon delivery.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to