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</classname>
> </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