- 浏览: 9871 次
- 性别:
- 来自: 深圳
最新评论
-
jetxu:
你好,我现在刚刚开始学习jetspeed,但是网上很多资料都是 ...
潜水修炼门户技术(自感)2011-2-18 -
helloklzs:
楼上的这个问题,是不是通过eclipse中maven插件执行报 ...
windows上jetspeed2安装和配置 -
koko2031:
我也碰到这个问题。
[DEBUG] -- end config ...
windows上jetspeed2安装和配置 -
huhai:
现在的2.2.1 版本了,去按官网的指导操作吧
windows上jetspeed2安装和配置 -
zhjb_javaeye:
楼主你好,我要创建自己的Portal照你的方法进行安装报错:o ...
windows上jetspeed2安装和配置
1、jetspeed2的安装
首页
http://portals.apache.org/jetspeed-2/
下载文件
jetspeed-installer-minimal-2.2.0.jar
安装
java -jar jetspeed-installer-minimal-2.2.0.jar
打开了图形化安装界面
命令行安装
java -jar jetspeed-installer-minimal-2.2.0.jar text
我的安装路径
e:\apache\Jetspeed-2.2.0
选择数据库
mysql
下载mysql驱动
http://dev.mysql.com/downloads/
5.0驱动地址
http://dev.mysql.com/downloads/connector/j/5.0.html
启动
cd e:\apache\Jetspeed-2.2.0\bin
startup.bat
访问地址
http://localhost:8080/jetspeed/portal
http://localhost:8080/jetspeed/desktop
用户名和密码
admin -- System administrator, super user
manager - Has system administration rights, but not super user
user -- A sample user demonstrating with with a home page and advanced profiled menus
tomcat -- A sample user demonstrating a user without a home page
jetspeed -- A sample user demonstrating discovery of pages by both group and role fallback profiling algorithms
subsite -- Example of how to setup users with a primary subsite role fallback profiling rules
subsite2 -- Example of how to setup users with a secondary subsite role fallback profiling rules
devmgr -- Delegated security manager, can manage users with the "dev" (developer) role
2、创建自己的portal
参考文档
http://portals.apache.org/jetspeed-2/tutorial/index.html
http://portals.apache.org/jetspeed-2/buildguide/jetspeed-archetype.html
解开压缩文件
jetspeed-2-2.2.0-src.zip
cd E:\book\opensource\jetspeed\jetspeed-2-2.2.0
编译和安装jetspeed maven plugin
mvn install -P init
修改maven2配置文件D:\tool\apache-maven-2.2.1\conf\settings.xml
<pluginGroup>org.apache.portals.jetspeed-2</pluginGroup>
using the jetspeed-archetype maven plugin
mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate
-DarchetypeGroupId=org.apache.portals.jetspeed-2
-DarchetypeArtifactId=jetspeed-archetype
-DarchetypeVersion=2.2.0
-DartifactId=surpassPortal
-Dpackage=cn.surpass.surpassPortal
-DgroupId=cn.surpass.surpassPortal -Dversion=1.0.0
生成surpassPortal 应用
cd e:\workspace
mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate
-DarchetypeGroupId=org.apache.portals.jetspeed-2
-DarchetypeArtifactId=jetspeed-archetype
-DarchetypeVersion=2.2.0
-DartifactId=surpassPortal
-Dpackage=cn.surpass.surpassPortal
-DgroupId=cn.surpass.surpassPortal -Dversion=1.0.0
修改配置文件jetspeed-mvn-settings.xml
<org.apache.jetspeed.server.home>d:/dev/apache-tomcat-6.0.18/</org.apache.jetspeed.server.home>
<org.apache.jetspeed.catalina.version.major>6</org.apache.jetspeed.catalina.version.major>
<org.apache.jetspeed.production.database.default.name>mysql</org.apache.jetspeed.production.database.default.name>
<org.apache.jetspeed.production.jdbc.driver.groupId>mysql</org.apache.jetspeed.production.jdbc.driver.groupId>
<org.apache.jetspeed.production.jdbc.driver.artifactId>mysql-connector-java</org.apache.jetspeed.production.jdbc.driver.artifactId>
<org.apache.jetspeed.production.jdbc.driver.version>5.1.6</org.apache.jetspeed.production.jdbc.driver.version>
<org.apache.jetspeed.production.database.driver>com.mysql.jdbc.Driver</org.apache.jetspeed.production.database.driver>
<org.apache.jetspeed.production.database.url><![CDATA[jdbc:mysql://127.0.0.1/portal?useServerPrepStmts=false&jdbcCompliantTruncation=false]]></org.apache.jetspeed.production.database.url>
<org.apache.jetspeed.production.database.user>portal</org.apache.jetspeed.production.database.user>
<org.apache.jetspeed.production.database.password>portal</org.apache.jetspeed.production.database.password>
发布应用到tomcat
mvn jetspeed:mvn -Dtarget=all
其他命令
mvn jetspeed:mvn -Dtarget=deploy-pa
mvn jetspeed:mvn -Dtarget=deploy-portal
启动tomcat
D:\eclipse-jee\apache-tomcat-6.0.18\bin
访问
http://localhost:8080/surpassPortal/portal
评论
[DEBUG] -- end configuration --
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14:59.918s
[INFO] Finished at: Fri Apr 08 05:58:29 GMT 2011
[INFO] Final Memory: 5M/9M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.portals.jetspeed-2:jetspeed-deploy-mav
en-plugin:2.2.0:deploy (deploy-jetspeed-layouts) on project jetexpress-portal: A
rtifact org.apache.portals.jetspeed-2:jetspeed-layouts:war dependency not define
d -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.apache.portals.jetspeed-2:jetspeed-deploy-maven-plugin:2.2.0:deploy (deploy-j
etspeed-layouts) on project jetexpress-portal: Artifact org.apache.portals.jetsp
eed-2:jetspeed-layouts:war dependency not defined
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Artifact org.apache.p
ortals.jetspeed-2:jetspeed-layouts:war dependency not defined
at org.apache.jetspeed.maven.plugins.DeployMojo.execute(DeployMojo.java:
210)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
... 19 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] jetexpress portal project ......................... FAILURE [15:37.639s]
[INFO] jetexpress portal ................................. SKIPPED
[INFO] jetexpress portlet application .................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15:56.983s
[INFO] Finished at: Fri Apr 08 05:58:29 GMT 2011
[INFO] Final Memory: 2M/5M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.portals.jetspeed-2:jetspeed-mvn-maven-
plugin:2.2.0:mvn (default-cli) on project jetexpress: ...FAILED[code=1]. -> [Hel
p 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.apache.portals.jetspeed-2:jetspeed-mvn-maven-plugin:2.2.0:mvn (default-cli) o
n project jetexpress: ...FAILED[code=1].
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.MojoFailureException: ...FAILED[code=1].
at org.apache.jetspeed.maven.plugins.MvnMojo.executeTarget(MvnMojo.java:
506)
at org.apache.jetspeed.maven.plugins.MvnMojo.execute(MvnMojo.java:328)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
... 19 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: unpack artifact org.apache.portals.jetspeed-2:jetspeed-portal-resources:jar not defined as plugin dependency
at org.apache.jetspeed.maven.utils.UnpackResources.unpack(UnpackResources.java:352)
at org.apache.jetspeed.maven.mojo.AbstractUnpackMojo.execute(AbstractUnpackMojo.java:54)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
请问你在安装时有没遇到同样问题呢????
相关推荐
Jetspeed2之安装配置文档详细说明了jetspeed2安装已经配置,还有常见问题的解决
Jetspeed安装与portlet开发.pdf
朋友翻译的Jetspeed2之安装配置.doc,网上找到的JetSpeed2开发文档的中文翻译.pdf 。还有一份Jetspeed2总结.docx是以前公司同事总结的。
jetspeed2样式的开发文档,汉化的
Apache的门户技术 Jetspeed2的详细开发文档,包含框架介绍,技术内容,各种入门资源链接等
关于Jetspeed一些入门的文档,适合初次接触Jetspeed的用户
学习Jetspeed2时和同事一起对文档进行的简单翻译,适合初学者。
Jetspeed是Apache组织开发的一个采用Java和XML的开放源代码的企业信息门户的实现。门户可以让终端用户可以...由于jetspeed1在设计上的“缺陷”,现在已经升级到jetspeed2。目前大陆还没有成功使用jetspeed2开发的案例。
包含jetspeed1.* 以及 jetspeed2.*的资料 本人找了好久! 希望大家支持!
NULL 博文链接:https://helloklzs.iteye.com/blog/1150044
Jetspeed2.0最终release版本发布于2005年12月, 可以从以下网址下载源代码和捆绑tomcat的压缩文件: http://www.apache.org/dist/portals/jetspeed-2/ 。 与Jetspeed1.x比较,Jetspeed2.0 (以下简称J2)的架构...
本文档用图文描述了portal开发过程中所涉及到的Jetspeed的安装步骤和创建一个简单的Portlet。
自己收集的一些jetspeed资料
在这篇教程中,您将了解如何使用象 JavaServer Pages(JSP)这样的 Web 编程...献给使用 Jetspeed 进行门户网站和 portlet 开发并理解这一内容的开发人员和技术经理,以及爱好jetspeed部分的读者,共同探讨jetspeed。
JetSpeed2开发文档的中文翻译,JetSpeed2开发文档的中文翻译
这个是开发门户网站的好资料 可以一步一步的学会开发apache jetspeed2 开发
在portal.xml文件中配置一个portlet 配置对应的.psml文件,如下 一个特定的Subject通过doAs方法来执行一个特定的操作(Action) 一个演示第一个doAs方法的例子 Portlet对动作的处理过程 portlet中对预先配置参数的...
本文档详细描述了Jetspeed的下载与安装以及在eclipse中开发一个portlet的详细步骤 绝对经典
NULL 博文链接:https://abcity.iteye.com/blog/1446748
基于jetspeed的portlet开发探讨,供大家学习参考!!!!