- 浏览: 10175 次
- 性别:
- 来自: 深圳
最新评论
-
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
请问你在安装时有没遇到同样问题呢????
相关推荐
这个压缩包包含了关于Jetspeed的重要中文文档,包括“Jetspeed2之安装配置.doc”、“Jetspeed2总结.docx”以及“JetSpeed2开发文档的中文翻译.pdf”,这些文档对于理解和使用Jetspeed2具有极高的价值。 首先,我们...
本文档旨在详细介绍如何在个人PC上安装配置Jetspeed,并指导用户创建一个简单的Portlet。 #### 二、系统需求 - **硬件需求**: - 个人PC - 操作系统:Windows XP - **软件需求**: - JDK版本:1.5.0.12 - ...
标题 "jetspeed2" 暗示我们正在讨论一个开源的Java门户框架——Jetspeed 2。Jetspeed 2是一个高度可配置和可扩展的框架,用于构建企业级的Web门户应用。它允许开发者整合各种内容、应用和服务,提供统一的用户界面。...
2. **PORTLET 容器**: Jetspeed2作为portlet容器,负责管理和执行portlet生命周期,遵循JSR-168和JSR-286规范。 3. **PORTLET**:portlet是门户中的独立组件,它可以是动态的Web内容,如新闻、天气预报等,也可以是...
【Jetspeed2官网guide文档翻译2】这篇文档主要面向初次接触Jetspeed的用户,提供了从源码构建和部署Jetspeed 2.2的详细步骤。Jetspeed是一个开源的portlet容器和企业信息门户平台,它允许集成多种应用和服务,提供...
本文档是Jetspeed2 Deployer Guide的中文翻译,旨在帮助初学者理解如何部署和配置Jetspeed2的安全机制。 在Jetspeed2的安全部署配置中,有两个主要的认证策略:Permissions(权限)和Constraints(约束)。...
Jetspeed2是一款开源的企业级portlet容器和门户框架,它基于Java技术栈,主要用于构建可定制、可扩展的企业级门户系统。这个资料包包含了关于Jetspeed2的详细信息,对于理解并使用Jetspeed2进行门户开发具有很高的...
通过对jetspeed2样式的开发文档进行深入分析,我们可以了解到jetspeed2样式的开发不仅需要掌握基本的前端技术如Velocity和CSS,还需要熟悉jetspeed2框架本身的特点。布局样式的开发涉及到多个文件的配置与编写,而...
6. **部署脚本**:这些脚本用于在服务器上安装和启动jetSpeed,通常包括批处理脚本(Windows)和Shell脚本(Unix/Linux)。 7. **Web应用程序**:可能有一个名为`jetspeed-2.war`的文件,这是一个预打包的Web应用...
在提供的压缩包文件中,"jetspeed1资料.zip"可能包含了Jetspeed 1的相关文档、源代码、示例和开发指南,而"Jetspeed2资料.rar"则可能包含Jetspeed 2的更新内容、教程和案例研究。这些资源对于想要学习和使用Jetspeed...
2. 已安装JDK 1.5.0.12,并且配置了PATH和CLASSPATH环境变量。 3. 下载Jetspeed-2 2.2.0 Installer,可以从Apache官方站点获取。 4. 获取portlet容器和插件,包括`com.sun.server.os.portlet.container_1.0.0.jar`和...
通过上述步骤,我们可以成功地在个人PC上安装配置Jetspeed环境,并利用Eclipse开发简单的portlet应用。这为开发者提供了一个强大的工具集,能够快速构建和部署门户应用。此外,熟悉这些步骤也有助于更深入地理解...
这种集中式的访问控制和个性化配置对于提升工作效率和用户体验至关重要。 在 Jetspeed 中,"源码"标签意味着我们能够深入研究其内部结构和工作原理。Jetspeed 是用Java语言开发的,因此熟悉Java和相关框架如Spring...
Jetspeed是Apache组织开发的一个采用Java和XML的开放源代码的企业信息门户的实现。门户可以让终端用户可以...由于jetspeed1在设计上的“缺陷”,现在已经升级到jetspeed2。目前大陆还没有成功使用jetspeed2开发的案例。
- **简单易用**:安装配置简单,易于部署Java应用。 #### 五、Derby详解 - **概念**:Derby是一款轻量级的嵌入式关系数据库管理系统,适用于小型应用和测试环境。 - **特点**: - **无需安装**:随JetSpeed门户...
相较于早期的JetSpeed1.x(J1.x),J2在架构上进行了重大改进,不再依赖Turbine框架,而是引入了Spring Framework作为默认的组件框架,提供了更强大且灵活的组件管理和依赖注入能力。这使得开发者可以利用Spring的...
2. **安装与配置**:文档会详细介绍如何在不同的操作系统环境下安装Jetspeed,以及如何进行服务器配置,包括Tomcat、Jetty等常见的Java应用服务器。 3. **portlet开发**:Jetspeed支持portlet开发,portlet是门户中...
3. 安装JetSpeed SDK,这将提供必要的库文件和配置文件,帮助你创建和部署portlet。 4. 安装portlet插件,如Eclipse Portlet Plug-in,它能增强Eclipse对portlet开发的支持。 portlet项目创建: 1. 在Eclipse中,...
3. **构建和安装**:使用Apache Maven作为构建工具。首先,确保Maven已安装并配置好。然后,在Jetspeed源码目录下执行`mvn clean install`命令。这会编译源码,运行测试,并将生成的JAR文件放置到正确的目录。 4. *...