You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by laxmiraghu <la...@yahoo.com> on 2008/08/12 13:34:19 UTC
how to deploy sample spring application on jetspeed
Hi,
Can anybody help as - how to deploy sample spring application on jetspeed2?
Thank you so much for any help in this regard.
Regards,
--
View this message in context: http://www.nabble.com/how-to-deploy-sample-spring-application-on-jetspeed-tp18942649p18942649.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: how to deploy sample spring application on jetspeed
Posted by laxmiraghu <la...@yahoo.com>.
I found answers to my all my questions regarding creating a portal project
and deploying it on jetspeed at the following thread.
http://www.nabble.com/Developing-portlets-for-Jetspeed-2.1.3-using-NetBeans-6.0-td15986648.html
Hope it's useful to someone in the similar lines.
--
View this message in context: http://www.nabble.com/how-to-deploy-sample-spring-application-on-jetspeed-tp18942649p19428734.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: how to deploy sample spring application on jetspeed
Posted by laxmiraghu <la...@yahoo.com>.
Hi Ron,
I installed JSR168 and JSR286 plugins for portal development for eclipse
using 'software updates' option wherein i give the url
'http://portlet-eclipse.sourceforge.net/update' in the Add Site option. I
installed the plugin. But the project tab doesn't show any portal project
type.
If i see in 'WIndows -> Preferences' option, it will show portlet.
My requirement is to create a portal project in eclipse that supports spring
framework.
Can anybody help me in successfully create a portal project in eclipse that
will run on jetspeed 2.1.3.?
Thanks in advance for any help in this regard.
--
View this message in context: http://www.nabble.com/how-to-deploy-sample-spring-application-on-jetspeed-tp18942649p19366894.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: how to deploy sample spring application on jetspeed
Posted by Ron McNulty <rm...@xtra.co.nz>.
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" <la...@yahoo.com>
To: <je...@portals.apache.org>
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: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: how to deploy sample spring application on jetspeed
Posted by laxmiraghu <la...@yahoo.com>.
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: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: how to deploy sample spring application on jetspeed
Posted by Ron McNulty <rm...@xtra.co.nz>.
Hi laxmiraghu
I assume that the .war file was deployed to the jetspeed deploy directory,
and initialised without errors?
Take a look in the portlet.xml of the sample. The first section lists a name
and short name (This is from memory - I am not at my development machine. I
forget which is the correct one). Search for these. If the portlet is
correctly installed, it will be there. We name all our portlets with a
prefix that identifies the .war they are in (e.g. MY_PROJECT Change Address
Portlet, MY_PROJECT Contact Us Portlet etc). It makes searching much
easier...
Alternatively, page through all portlets. You should soon find what you
need.
Regards
Ron
----- Original Message -----
From: "laxmiraghu" <la...@yahoo.com>
To: <je...@portals.apache.org>
Sent: Wednesday, August 27, 2008 9:32 PM
Subject: Re: how to deploy sample spring application on jetspeed
>
> Hi Ron,
>
> Thank you for the valuable info.
>
> But when i search for spring-portal-sample, it didn't find it. Do you have
> any idea what could be the reason?
>
> PLease help.
>
> I appreciate all your help.
> --
> View this message in context:
> http://www.nabble.com/how-to-deploy-sample-spring-application-on-jetspeed-tp18942649p19177571.html
> Sent from the Jetspeed - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: how to deploy sample spring application on jetspeed
Posted by laxmiraghu <la...@yahoo.com>.
Hi Ron,
Thank you for the valuable info.
But when i search for spring-portal-sample, it didn't find it. Do you have
any idea what could be the reason?
PLease help.
I appreciate all your help.
--
View this message in context: http://www.nabble.com/how-to-deploy-sample-spring-application-on-jetspeed-tp18942649p19177571.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: how to deploy sample spring application on jetspeed
Posted by Ron McNulty <rm...@xtra.co.nz>.
Hi laxmiraghu
Portlets do not just appear at a URL. You need to install one or more
portlet instances on a portal page.
Try this:
1. Display the jetspeed/welcome page, and log in as admin.
2. Click the edit icon in the top right-hand corner to put the page into
edit layout mode.
3. Click the "Add portlet" button
4. Search for your portlet name in the Search box.
5. Click Add to increment the count to 1 (or as many as you want...)
6. Click the large green arrow by the search box. You should now see the
welcome page with your portlet added.
7. Click the "View" icon (was "Edit" originally) to put the page back into
view mode.
You can easily ceate your own pages by doing step 1 above, then using the
"Create page" edit boxes. New pages turn up as tabs at the top of the
default layout.
Regards
Ron
----- Original Message -----
From: "laxmiraghu" <la...@yahoo.com>
To: <je...@portals.apache.org>
Sent: Tuesday, August 26, 2008 2:45 PM
Subject: Re: how to deploy sample spring application on jetspeed
>
> Now that i created a war file and deployed onto jetspeed.
>
> I deployed spring-portlet-sample portal.
>
> WHen i access it with the below url it's giving me 404 - html error page.
>
> http://localhost:8080/spring-portlet-sample/
>
> BUt if i access jetspeed portal, it works fine.
>
> http://localhost:8080/jetspeed/portal
>
> What's the url for accessing my newly created portal? Please help.
>
> Thank you.
> --
> View this message in context:
> http://www.nabble.com/how-to-deploy-sample-spring-application-on-jetspeed-tp18942649p19154983.html
> Sent from the Jetspeed - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: how to deploy sample spring application on jetspeed
Posted by laxmiraghu <la...@yahoo.com>.
Now that i created a war file and deployed onto jetspeed.
I deployed spring-portlet-sample portal.
WHen i access it with the below url it's giving me 404 - html error page.
http://localhost:8080/spring-portlet-sample/
BUt if i access jetspeed portal, it works fine.
http://localhost:8080/jetspeed/portal
What's the url for accessing my newly created portal? Please help.
Thank you.
--
View this message in context: http://www.nabble.com/how-to-deploy-sample-spring-application-on-jetspeed-tp18942649p19154983.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: how to deploy sample spring application on jetspeed
Posted by laxmiraghu <la...@yahoo.com>.
I would like to know how a portal project is created in eclipse ? Do i need
to have a separate plugin for that? Currently my eclipse doesn't show any
project for portal application.
How do i create a portal project in eclipse?
Thank you.
--
View this message in context: http://www.nabble.com/how-to-deploy-sample-spring-application-on-jetspeed-tp18942649p19144893.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: how to deploy sample spring application on jetspeed
Posted by laxmiraghu <la...@yahoo.com>.
Thanks David for the info. I will try to deploy as per the instructions given
in the web links provided.
If i face any problem, i will come back to this thread again.
Thanks again.
--
View this message in context: http://www.nabble.com/how-to-deploy-sample-spring-application-on-jetspeed-tp18942649p19102578.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: how to deploy sample spring application on jetspeed
Posted by David Sean Taylor <da...@bluesunrise.com>.
On Aug 18, 2008, at 10:32 PM, laxmiraghu wrote:
>
> Sorry for asking very simple questions.
>
> How to build war file?
>
Eclipse has a nice IDE (as does NetBeans) for building war files known
as the Web Tools Platform:
http://www.eclipse.org/webtools/
It comes bundled with some of the latest (Ganymede) distributions
> One more question. How do i develop a portal application using
> spring in
> jetspeed and make it up and running?
Developing portlets is possible with the Spring MVC Portlet framework,
here a few links:
http://opensource.atlassian.com/confluence/spring/display/JSR168/Home
http://static.springframework.org/spring/docs/2.0.x/reference/portlet.html
Or just develop your portlets with Spring just like you would with any
other web application. There are examples of this in the Portals
Bridges source:
http://svn.apache.org/viewvc/portals/bridges/trunk/applications/springmvc/
>
>
> PLs help me to make simple hello world portal application to run on
> jetspeed
> using eclipse.
Try the tutorials for 2.1.3 that can help there:
http://portals.apache.org/tutorials/jetspeed-2-ant/
or get a book to help get started
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
RE: how to deploy sample spring application on jetspeed
Posted by laxmiraghu <la...@yahoo.com>.
Sorry for asking very simple questions.
How to build war file?
One more question. How do i develop a portal application using spring in
jetspeed and make it up and running?
PLs help me to make simple hello world portal application to run on jetspeed
using eclipse.
THis is the second day i'm trying different options (maven, eclipse and ant
etc) without any success.
THanks very much.
--
View this message in context: http://www.nabble.com/how-to-deploy-sample-spring-application-on-jetspeed-tp18942649p19044540.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
RE: how to deploy sample spring application on jetspeed
Posted by "Timony, Michael" <Mi...@FMR.COM>.
If your on Tomcat simple copy the portlet's WAR file to the
/WEB-INF/deploy directory of your Jetspeed portal:
http://portals.apache.org/jetspeed-2/multiproject/jetspeed-deploy-tools/
index.html
If your application is a webapp and not a portlet you'll have to rewrite
it to be a portlet.
-----Original Message-----
From: laxmiraghu [mailto:laxmiuk@yahoo.com]
Sent: Tuesday, August 12, 2008 7:34 AM
To: jetspeed-user@portals.apache.org
Subject: how to deploy sample spring application on jetspeed
Hi,
Can anybody help as - how to deploy sample spring application on
jetspeed2?
Thank you so much for any help in this regard.
Regards,
--
View this message in context:
http://www.nabble.com/how-to-deploy-sample-spring-application-on-jetspee
d-tp18942649p18942649.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org