Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

[09:27:03 CDT(-0500)] <rickard> How do I manually deploy a portlet to a uPortal instance? I don't have the uPortal source on the server, so I can't run "ant deployPortletApp".
[09:27:18 CDT(-0500)] <rickard> "The "deployPortletApp" target runs the portlet Deployer tool. This tool takes a portlet WAR file, rewrites the web.xml file and deploys the results to the servlet container."
[09:27:42 CDT(-0500)] <rickard> Just copying the .war to webapps doesn't seem to work. There appears to be something else involved.
[09:36:54 CDT(-0500)] <athena1> the deploy portlet app task runs the maven pluto plugin on it
[09:36:57 CDT(-0500)] <athena1> which changes the web.xml
[09:37:24 CDT(-0500)] <athena1> that's done differently for different portals and different uportal versions, which is why we include that as a step from the portal side, rather than from the portlet
[09:37:42 CDT(-0500)] <rickard> Ok. Can I do that "manually"? I don't want to have to put the uPortal source on our production server just to be able to deploy new versions of portlets.
[09:37:56 CDT(-0500)] <athena1> yes, you could add the pluto plugin to your project
[09:38:03 CDT(-0500)] <athena1> maybe even make it an optional profile or something
[09:38:22 CDT(-0500)] <rickard> My project meaning the eclipse portlet project?
[09:39:09 CDT(-0500)] <athena1> yeah
[09:39:20 CDT(-0500)] <rickard> Hmm, ok.
[09:39:30 CDT(-0500)] <rickard> How does everyone else do this? (smile)
[09:39:46 CDT(-0500)] <athena1> just remember that once you've run the pluto plugin as part of a build, you don't want to run it through ant deployPortletApp
[09:39:48 CDT(-0500)] <athena1> bunch of ways
[09:39:54 CDT(-0500)] <athena1> some people do install the source on the server
[09:40:06 CDT(-0500)] <athena1> but there are a lot of different strategies
[09:40:22 CDT(-0500)] <rickard> Can you deploy a portlet via the import/export portlet?
[09:40:57 CDT(-0500)] <rickard> Nevermind. Our server people probably won't do that.
[09:41:00 CDT(-0500)] <athena1> i did some work with yale a couple years ago to create a strategy where they check out a very small one-file project on the server, then run maven goals from it to download portlets from a local repository and deploy them
[09:41:03 CDT(-0500)] <athena1> no, you can't
[09:41:10 CDT(-0500)] <athena1> we've talked about developing that as a dev tool
[09:41:20 CDT(-0500)] <athena1> but it probably wouldn't work well in a clustered environment, among other things
[09:41:28 CDT(-0500)] <rickard> Ok
[09:42:53 CDT(-0500)] <rickard> We have about 40 different in-house portlets so modifying all those eclipse projects isn't exactly tempting. Maybe putting the source on the production server is the best way after all. Or just doing an scp copy from the test server.
[09:51:36 CDT(-0500)] <athena1> you might check out the uportal maven plugin
[09:51:49 CDT(-0500)] <athena1> that's the thing that yale's using to deploy portlets on the server
[09:52:01 CDT(-0500)] <athena1> so they have a really small maven project that's basically just a pom file
[09:52:36 CDT(-0500)] <athena1> and then they run a deploy-portlet command that takes arguments for the portlet artifactId, groupId, and version
[09:52:52 CDT(-0500)] <athena1> then that pulls the portlet from a local maven repo
[09:53:15 CDT(-0500)] <athena1> (they deploy configured portlets to the repo w/ classifiers indicating the environment)
[09:54:44 CDT(-0500)] <rickard> Ok, I will. Thanks.
[09:55:23 CDT(-0500)] <rickard> Question number two. Is there any way to completely disable the mobile theme?
[09:58:58 CDT(-0500)] <athena1> yeah, just edit the browser mappings file so that that's never mapps
[09:58:59 CDT(-0500)] <athena1> er, mapped
[10:00:50 CDT(-0500)] <athena1> browser.mappings
[10:21:25 CDT(-0500)] <rickard> athena1: Thanks. Found it.
[10:22:05 CDT(-0500)] <rickard> Question number three. Any problems running multiple uPortal instances on one tomcat?
[12:05:17 CDT(-0500)] <athena1> rickard: i probably wouldn't recommend it
[12:05:35 CDT(-0500)] <athena1> it could work technically, but you'd have to rename each web context for the second uportal
[12:05:42 CDT(-0500)] <athena1> so uportal, cas, and all the deployed portlets
[12:05:53 CDT(-0500)] <athena1> EricDalquist: any ideas what would cause this?
[12:05:53 CDT(-0500)] <athena1> No queryBuilder was generated for query {given=
[12:05:54 CDT(-0500)] <athena1> [student]}, null will be returned
[12:06:07 CDT(-0500)] <EricDalquist> ?