uPortal默认的web容器室tomcat,把Uportal从tomcat迁移到jetty中的方式如下:
操作步骤:
1.uPortal默认安装在uPortal-4.0.1-quick-start/apache-tomcat-6.0.33/webapps目录下,将以下文件夹拷贝至jetty/webapps目录。 文件有
BookmarksPortlet
FunctionalTestsPortlet
jasig-widget-portlets
NewsReaderPortlet
pluto-testsuite
ResourceServingWebapp
SimpleContentPortlet
WeatherPortlet
WebProxyPortlet
uPortal
2将uPortal-4.0.1-quick-start/apache-tomcat-6.0.33/shared/lib目录下所有jar包拷贝至jetty/lib/ext目录
3.到jetty/webapps/uPortal/WEB-INF/web.xml,将
<servlet-mapping>
<servlet-name>RenderingDispatcherServlet</servlet-name>
<url-pattern>/index.jsp</url-pattern>
<url-pattern>*.uP</url-pattern>
<url-pattern>/f/*</url-pattern>
<url-pattern>/p/*</url-pattern>
</servlet-mapping>
改为:
<servlet-mapping>
<servlet-name>RenderingDispatcherServlet</servlet-name>
<url-pattern>/*</url-pattern>
<url-pattern>/index.jsp</url-pattern>
<url-pattern>*.uP</url-pattern>
<url-pattern>/f/*</url-pattern>
<url-pattern>/p/*</url-pattern>
</servlet-mapping>
4.然后启动jetty
命令:java -Xms512m -Xmx512m-XX:MaxPermSize=128m -jar start.jar