Hi laxmiraghu

From a quick look at your portlet.xml, you should be able to search for and
install portlets named "mode", "exceptions", "books" and "redirect". (Without the double quotes).

To see if the portlets installed correctly, start jetspeed, rebuild and deploy your .war file. Yous should see (on the console) "Found web.xml" followed by a lot of informational stuff as the portlets load. An exception here should be taken seriously.

If you can't get this running, email me the (zipped) source code. and I will have an attempt at fixing it.

Regards

Ron

rmcnulty(at)xtra.co.nz

----- Original Message ----- From: "laxmiraghu" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, August 27, 2008 10:43 PM
Subject: Re: how to deploy sample spring application on jetspeed



Hi Ron,

Yes the war file is deployed onto jetspeed deploy directory. ie.
/usr/local/Jetspeed-2.1.3/webapps/jetspeed/WEB-INF/deploy.

Here is my portlet.xml file. But none of the portlets mentioned here are
listed in the search. I browsed thro' all the pages manually and none
displayed. Where/how can i find whether the deployment happened without
errors or not?

After the deploymenet, When i traverse to the
/usr/local/Jetspeed2.1.3/webapps directory the directory
spring-portlet-sample is found with all fines intact.


<?xml version="1.0" encoding="UTF-8"?>

<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd

http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd";
version="1.0">

   <portlet>
       <portlet-name>mode</portlet-name>

<portlet-class>org.springframework.web.portlet.DispatcherPortlet</portlet-class>
<init-param>
<name>contextConfigLocation</name>
<value>/WEB-INF/context/portlet/mode.xml</value>
</init-param>
       <supports>
           <mime-type>text/html</mime-type>
           <portlet-mode>view</portlet-mode>
           <portlet-mode>edit</portlet-mode>
           <portlet-mode>help</portlet-mode>
       </supports>
       <portlet-info>
           <title>Mode Name View</title>
       </portlet-info>
   </portlet>

   <portlet>
       <portlet-name>exceptions</portlet-name>

<portlet-class>org.springframework.web.portlet.DispatcherPortlet</portlet-class>
<init-param>
<name>contextConfigLocation</name>
<value>/WEB-INF/context/portlet/exceptions.xml</value>
</init-param>
       <supports>
           <mime-type>text/html</mime-type>
           <portlet-mode>view</portlet-mode>
           <portlet-mode>edit</portlet-mode>
           <portlet-mode>help</portlet-mode>
       </supports>
       <portlet-info>
           <title>Test Exceptions</title>
       </portlet-info>
   </portlet>

   <portlet>
       <portlet-name>books</portlet-name>

<portlet-class>org.springframework.web.portlet.DispatcherPortlet</portlet-class>
<init-param>
<name>contextConfigLocation</name>
<value>/WEB-INF/context/portlet/books.xml</value>
</init-param>
       <supports>
           <mime-type>text/html</mime-type>
           <portlet-mode>view</portlet-mode>
           <portlet-mode>help</portlet-mode>
       </supports>
       <portlet-info>
           <title>Books</title>
       </portlet-info>
   </portlet>

   <portlet>
       <portlet-name>redirect</portlet-name>

<portlet-class>org.springframework.web.portlet.DispatcherPortlet</portlet-class>
<init-param>
<name>contextConfigLocation</name>
<value>/WEB-INF/context/portlet/redirect.xml</value>
</init-param>
       <supports>
           <mime-type>text/html</mime-type>
           <portlet-mode>view</portlet-mode>
       </supports>
       <portlet-info>
           <title>Redirect</title>
       </portlet-info>
   </portlet>

   <portlet>
       <portlet-name>upload</portlet-name>

<portlet-class>org.springframework.web.portlet.DispatcherPortlet</portlet-class>
<init-param>
<name>contextConfigLocation</name>
<value>/WEB-INF/context/portlet/upload.xml</value>
</init-param>
       <supports>
           <mime-type>text/html</mime-type>
           <portlet-mode>view</portlet-mode>
       </supports>
       <portlet-info>
           <title>Upload</title>
       </portlet-info>
   </portlet>

   <portlet>
       <portlet-name>helloworld</portlet-name>

<portlet-class>org.springframework.web.portlet.DispatcherPortlet</portlet-class>
<init-param>
<name>contextConfigLocation</name>
<value>/WEB-INF/context/portlet/helloworld.xml</value>
</init-param>
       <supports>
           <mime-type>text/html</mime-type>
           <portlet-mode>view</portlet-mode>
       </supports>
       <portlet-info>
           <title>Hello World</title>
       </portlet-info>
   </portlet>

   <user-attribute>
       <name>user.login.id</name>
   </user-attribute>
   <user-attribute>
       <name>user.name</name>
   </user-attribute>
   <user-attribute>
       <name>user.name.full</name>
   </user-attribute>

</portlet-app>

--
View this message in context: http://www.nabble.com/how-to-deploy-sample-spring-application-on-jetspeed-tp18942649p19178487.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.


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



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

Reply via email to