Hi Paul,

I can see only one message and it does not seem to be an error message. I 
found it in the jetspeed/WEB-INF/log/jetspeed.log. There are no relevant 
messages elswhere.

[Fri Feb 01 13:45:57 EST 2002] -- DEBUG -- Adding entry HelloWorld of class 
class org.apache.jetspeed.services.registry.NormalizedPortletEntry to 
registry Registry

I have the servlet.jar also in the jetpseed/WEB-INF/classes directory. I am 
using Tomcat 4.0.1 and Jetspeed 1.3a2 on Red Hat Linux 7.2 and jdk1.3.

Also I deleted the HelloWorld.class from the jetspeed/WEB-INF/classes 
directory and restarted Tomcat. I got no error messages. So looks like the 
HelloWorld.class file is not being read/accessed at all by the portlets.

Thanks a lot. I really hope I can be helped.

Gopi



On Friday 01 February 2002 13:58, you wrote:
> Gopi,
>
> Are their any message in the Jetspeed log file, Tomcat log files,
> standard output?
>
> Paul Spencer
>
> Gopi Kandaswamy wrote:
> > I am new to jetspeed and have a simple question. How to run a servlet
> > within jetspeed.
> >
> > I have a simple servlet to start with, i.e the HelloWorld servlet. I did
> > the following but still cannot get the servlet to print the message
> > "HelloWorld" when I make it a portlet. But it prints the message
> > "HelloWorld" when I access it as a servlet.
> >
> > 1. I compiled the servlet and put the class file in
> > jetspeed/WEB-INF/classes. 2. I added the following entry in the
> > jetspeed/WEB-INF/conf/portlets.xreg file
> >
> > <portlet-entry name="Servlet" hidden="false" type="abstract"
> > application="false">
> > <classname>org.apache.jetspeed.portal.portlets.ServletInvokerPortlet</cla
> >ssname> </portlet-entry>
> >
> > <portlet-entry name="HelloWorld" hidden="false" type="ref"
> >         parent="Servlet" application="false">
> >         <meta-info>
> >             <title>Hello World Servlet</title>
> >             <description>This is my Hello World Servlet</description>
> >         </meta-info>
> >         <media-type ref="html"/>
> >         <url>/servlet/HelloWorld</url>
> > </portlet-entry>
> >
> > 3. I added the following entry to my jetspeed/WEB-INF/web.xml file
> >
> >  <servlet>
> >     <servlet-name>HelloWorld</servlet-name>
> >     <display-name>Hello World Servlet</display-name>
> >     <description>no description</description>
> >     <servlet-class>HelloWorld</servlet-class>
> >   </servlet>
> >
> >   <servlet-mapping>
> >     <servlet-name>HelloWorld</servlet-name>
> >     <url-pattern>/servlet/HelloWorld</url-pattern>
> >   </servlet-mapping>
> >
> > Any help would be greatly appreciated.
> >
> > Thanks
> >
> > Gopi
> >
> >
> > --
> > To unsubscribe, e-mail:  
> > <mailto:[EMAIL PROTECTED]> For additional
> > commands, e-mail: <mailto:[EMAIL PROTECTED]>

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

Reply via email to