﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-StevenBot-Saltsam-随笔分类-pentaho </title><link>http://www.blogjava.net/Steven-bot/category/49767.html</link><description>眼睛能装下世界，为何却装不下眼泪? 一只风筝一辈子只为一根线冒险。 
那不是一场游戏，为何总有一根线牵着心怀，隐隐作疼？
那不是一段邂逅，为何飘在桥上的影子，总缠进梦乡？
那不是一个梦境，为何你的温柔私语，总是不经意的响起？</description><language>zh-cn</language><lastBuildDate>Fri, 07 Oct 2011 14:10:55 GMT</lastBuildDate><pubDate>Fri, 07 Oct 2011 14:10:55 GMT</pubDate><ttl>60</ttl><item><title>在tomcat上部署pentaho 1.5.3</title><link>http://www.blogjava.net/Steven-bot/archive/2011/10/07/360141.html</link><dc:creator>Steven_bot</dc:creator><author>Steven_bot</author><pubDate>Fri, 07 Oct 2011 14:06:00 GMT</pubDate><guid>http://www.blogjava.net/Steven-bot/archive/2011/10/07/360141.html</guid><wfw:comment>http://www.blogjava.net/Steven-bot/comments/360141.html</wfw:comment><comments>http://www.blogjava.net/Steven-bot/archive/2011/10/07/360141.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/Steven-bot/comments/commentRss/360141.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/Steven-bot/services/trackbacks/360141.html</trackback:ping><description><![CDATA[<div><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; line-height: 25px; ">1 . 首先需要下载pentaho-j2ee-deployment-<version>&nbsp;, pentaho-data-<version>&nbsp;和 pentaho-solution-<version>&nbsp;三个包，分别解压到三个不同的地方<br />2 . 从命令行进入pentaho-j2ee-deployment 目录，运行ant -p 会列出所有的ant 任务，执行war-pentaho-tomcat-hypersonic任务,成功之后会生成4个war包，pentaho-portal-layout.war , pentaho-style.war 和 sw-style.war ，(sw-style.war 是steel-wheel-style ，是可选项，可能是pentaho的一个例子或者是pentaho的一种style风格),还有多出一个tomcat目录下的hsqldb目录下有一个pentaho.war ，如果你执行的是war-pentaho-mysql就是在tomcat目录下有个mysql5目录，里面一样是pentaho.war.我选用的是hsqldb .<br />3 . 在你的tomcat的安装目录下找到conf / server.xml 文件，在其中的host 元素下加上如下这一段，这一段是从pentaho的文档里面抄来的，manual-deployment-pentaho-<version>&nbsp;,其中它列出来的有些多余，这个文档应该使用confluence 用pdf 方式导出的，抄的时候注意检查一下xml 元素排版上的问题.它列出的resource 元素太多了，你查看pentaho-data-<version>&nbsp;包里面，应该只有四个数据库hibernate,sampledata,shark,quartz ,把不用的resource元素都删掉，（应该是最上面的四个）.如果你的tomcat启动不了了，检查一下你添加的部分是不是有错。<br /><br /></version></version></version></version></version><div>xml 代码</div><div style="font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Consolas, 'Courier New', monospace; font-size: 12px; background-color: transparent; width: 675px; overflow-x: auto; overflow-y: auto; margin-left: 9px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; word-break: break-all; word-wrap: break-word; "><div></div><ol start="1" style="font-size: 1em; line-height: 1.4em; margin-top: 0px; margin-right: 0px; margin-bottom: 1px; margin-left: 0px; padding-top: 2px; padding-right: 0px; padding-bottom: 2px; padding-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #d1d7dc; border-right-color: #d1d7dc; border-bottom-color: #d1d7dc; border-left-color: #d1d7dc; list-style-type: decimal; list-style-position: initial; list-style-image: initial; background-color: #ffffff; color: #2b91af; "><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">&lt;</span><span style="color: black; ">Context</span>&nbsp;<span style="color: black; ">path</span><span style="color: black; ">=</span><span style="color: black; ">"/pentaho"</span>&nbsp;<span style="color: black; ">docbase</span><span style="color: black; ">=</span><span style="color: black; ">"webapps/pentaho/"</span><span style="color: black; ">&gt;</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">&lt;</span><span style="color: black; ">Resource</span>&nbsp;<span style="color: black; ">name</span><span style="color: black; ">=</span><span style="color: black; ">"jdbc/SampleData"</span>&nbsp;<span style="color: black; ">auth</span><span style="color: black; ">=</span><span style="color: black; ">"Container"</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">type</span><span style="color: black; ">=</span><span style="color: black; ">"javax.sql.DataSource"</span>&nbsp;<span style="color: black; ">maxActive</span><span style="color: black; ">=</span><span style="color: black; ">"20"</span>&nbsp;<span style="color: black; ">maxIdle</span><span style="color: black; ">=</span><span style="color: black; ">"5"</span>&nbsp;<span style="color: black; ">maxWait</span><span style="color: black; ">=</span><span style="color: black; ">"10000"</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">username</span><span style="color: black; ">=</span><span style="color: black; ">"pentaho_user"</span>&nbsp;<span style="color: black; ">password</span><span style="color: black; ">=</span><span style="color: black; ">"password"</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">factory</span><span style="color: black; ">=</span><span style="color: black; ">"org.apache.commons.dbcp.BasicDataSourceFactory"</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">driverClassName</span><span style="color: black; ">=</span><span style="color: black; ">"org.hsqldb.jdbcDriver"</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">url</span><span style="color: black; ">=</span><span style="color: black; ">"jdbc:hsqldb:hsql://localhost/sampledata"</span>&nbsp;<span style="color: black; ">/&gt;</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">&lt;</span><span style="color: black; ">Resource</span>&nbsp;<span style="color: black; ">name</span><span style="color: black; ">=</span><span style="color: black; ">"jdbc/Hibernate"</span>&nbsp;<span style="color: black; ">auth</span><span style="color: black; ">=</span><span style="color: black; ">"Container"</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">type</span><span style="color: black; ">=</span><span style="color: black; ">"javax.sql.DataSource"</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">factory</span><span style="color: black; ">=</span><span style="color: black; ">"org.apache.commons.dbcp.BasicDataSourceFactory"</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">maxActive</span><span style="color: black; ">=</span><span style="color: black; ">"20"</span>&nbsp;<span style="color: black; ">maxIdle</span><span style="color: black; ">=</span><span style="color: black; ">"5"</span>&nbsp;<span style="color: black; ">maxWait</span><span style="color: black; ">=</span><span style="color: black; ">"10000"</span>&nbsp;<span style="color: black; ">username</span><span style="color: black; ">=</span><span style="color: black; ">"hibuser"</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">password</span><span style="color: black; ">=</span><span style="color: black; ">"password"</span>&nbsp;<span style="color: black; ">driverClassName</span><span style="color: black; ">=</span><span style="color: black; ">"org.hsqldb.jdbcDriver"</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">url</span><span style="color: black; ">=</span><span style="color: black; ">"jdbc:hsqldb:hsql://localhost/hibernate"</span>&nbsp;<span style="color: black; ">/&gt;</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">&lt;</span><span style="color: black; ">Resource</span>&nbsp;<span style="color: black; ">name</span><span style="color: black; ">=</span><span style="color: black; ">"jdbc/Quartz"</span>&nbsp;<span style="color: black; ">auth</span><span style="color: black; ">=</span><span style="color: black; ">"Container"</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">type</span><span style="color: black; ">=</span><span style="color: black; ">"javax.sql.DataSource"</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">factory</span><span style="color: black; ">=</span><span style="color: black; ">"org.apache.commons.dbcp.BasicDataSourceFactory"</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">maxActive</span><span style="color: black; ">=</span><span style="color: black; ">"20"</span>&nbsp;<span style="color: black; ">maxIdle</span><span style="color: black; ">=</span><span style="color: black; ">"5"</span>&nbsp;<span style="color: black; ">maxWait</span><span style="color: black; ">=</span><span style="color: black; ">"10000"</span>&nbsp;<span style="color: black; ">username</span><span style="color: black; ">=</span><span style="color: black; ">"pentaho_user"</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">password</span><span style="color: black; ">=</span><span style="color: black; ">"password"</span>&nbsp;<span style="color: black; ">driverClassName</span><span style="color: black; ">=</span><span style="color: black; ">"org.hsqldb.jdbcDriver"</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">url</span><span style="color: black; ">=</span><span style="color: black; ">"jdbc:hsqldb:hsql://localhost/quartz"</span>&nbsp;<span style="color: black; ">/&gt;</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">&lt;</span><span style="color: black; ">Resource</span>&nbsp;<span style="color: black; ">name</span><span style="color: black; ">=</span><span style="color: black; ">"jdbc/Shark"</span>&nbsp;<span style="color: black; ">auth</span><span style="color: black; ">=</span><span style="color: black; ">"Container"</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">type</span><span style="color: black; ">=</span><span style="color: black; ">"javax.sql.DataSource"</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">factory</span><span style="color: black; ">=</span><span style="color: black; ">"org.apache.commons.dbcp.BasicDataSourceFactory"</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">maxActive</span><span style="color: black; ">=</span><span style="color: black; ">"20"</span>&nbsp;<span style="color: black; ">maxIdle</span><span style="color: black; ">=</span><span style="color: black; ">"5"</span>&nbsp;<span style="color: black; ">maxWait</span><span style="color: black; ">=</span><span style="color: black; ">"10000"</span>&nbsp;<span style="color: black; ">username</span><span style="color: black; ">=</span><span style="color: black; ">"sa"</span>&nbsp;<span style="color: black; ">password</span><span style="color: black; ">=</span><span style="color: black; ">""</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">driverClassName</span><span style="color: black; ">=</span><span style="color: black; ">"org.hsqldb.jdbcDriver"</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; ">url</span><span style="color: black; ">=</span><span style="color: black; ">"jdbc:hsqldb:hsql://localhost/shark"</span>&nbsp;<span style="color: black; ">/&gt;</span></span></li><li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span style="color: black; "><span style="color: black; ">Context</span><span style="color: black; ">&gt;</span></span></span></li></ol></div><br /><context path="/pentaho" docbase="webapps/pentaho/"><context docbase="webapps/pentaho/" path="/pentaho"><resource auth="Container" name="jdbc/SampleData"><resource name="jdbc/SampleData" auth="Container"><resource name="jdbc/Hibernate" auth="Container"><resource auth="Container" name="jdbc/Hibernate"><resource name="jdbc/Quartz" auth="Container"><resource auth="Container" name="jdbc/Quartz"><resource name="jdbc/Shark" auth="Container"><context docbase="webapps/pentaho/" path="/pentaho"><resource auth="Container" name="jdbc/Hibernate"><resource auth="Container" name="jdbc/Quartz"><resource auth="Container" name="jdbc/Shark"></resource></resource></resource></context></resource></resource></resource></resource></resource></resource></resource></context></context><br />4 . 把pentaho.war copy到tomcat 的webapps目录下，它会自动解压的，然后关闭tomcat , 找到pentaho/WEB-INF/web.xml 文件，找到solution-path元素，指向你解压后的pentaho-solution-<version>&nbsp;目录，注意java里面是用正斜杠 / ,如果你从windows的地址栏copy的话注意把反斜杠改一下.<br />5 . 修改pentaho/WEB-INF/classes 目录下的log4j.xml文件，把<appender 这一段的="" name="CONSOLE">&nbsp;里面的value改成INFO,或者更高，这一步是可选项，主要是启动的时候出现很多不必要的debug 信息.如果你启动的时候出错了，再改回来。(一般都是solution-path没有找对，我用7-zip解压的时候老是解压到一个新的目录，所以后来指定 solution-path 的时候，目录地址高了一级.)&nbsp;<br />6 . 启动pentaho-data-<version>&nbsp;目录里面的hsqldb数据库.<br />7 . 这个时候启动tomcat ,应该是不报任何错误的.你把浏览器指向http://localhost:8080/pentaho ，会看到pentaho的界面的，只不过是没有什么颜色的那种.<br />8 . 把编译後的三个war文件copy到tomcat 的webapps目录下，等它们自动解压之后，再进去看，发现有了样式了。安装就完成了.<br /><br />贴几张图:<br />pentaho成功启动后应该有 Pentaho BI 平台服务器就绪 这句话.<br /><img src="http://dl.iteye.com/upload/picture/pic/3617/da1322f0-17f7-489c-8154-2a8be5e11a58.png"  alt="" /><br />安装了style 和 portal 包之后的登录界面<br /><img src="http://dl.iteye.com/upload/picture/pic/3618/9a769a00-a268-4f47-955b-1556b4d9eb3a.png"  alt="" /><br />在pentaho-data-<version>&nbsp;目录的lib 目录下执行java -cp hsqldb.jar org.hsqldb.util.DatabaseManager 出现的hsqldb 的manager 登录画面<br />用户名和密码都在相应目录的数据库文件里面，hsqldb的数据库文件是可以用<br />文本编辑器打开的，搜索password就可以找到用户名和密码了<br /><div><div><img src="http://dl.iteye.com/upload/picture/pic/3620/ba6b21ae-edba-4c1f-9a0b-1f107d7b8e54.png"  alt="" /></div></div>sampledata 里面的数据<br /><div><img src="http://dl.iteye.com/upload/picture/pic/3619/25f40c67-dfe7-45d5-b916-f2571f9bd0d1.png"  alt="" /></div>我在安装的时候也碰到了诸多的问题，<br />1 . 一开始编译的时候使用的ant war-pentaho-tomcat 任务，它直接报错，说找不到rdbms目录，后来猜想这个任务应该是留给其他数据库编译的时候扩展的.直接就换了war-pentaho-tomcat-hypersonic 任务重新编译了一次<br />2 . 后来从文档里copy出数据源的那句话出错了，导致tomcat启动不了，因为从pdf文件copy的那段话排版有问题，后来把它粘贴到eclipse(装了WTP插件的）里面，一格式化就看出来了，context 元素和后面的属性path中间的空格没了，还有多出来了几个resource元素.<br />3 . 指定solution-path的时候目录高了一级.<br />4 . 启动tomcat的时候出现了很多不必要的debug信息，修改log4j文件就可以了，它在tomcat/bin 目录下还会生成几个log文件，像是server.log 和ReportEngine_<data time="">.log 文件。<br /><br /><span style="color: red; ">关键还是要掌握学习的方法，学会思考问题 . 安装的时候也遇到了很多问题，但是只要你细细的分析问题的原因，总是可以找出解决的办法的.</span></data></version></version></appender></version></span></div><img src ="http://www.blogjava.net/Steven-bot/aggbug/360141.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/Steven-bot/" target="_blank">Steven_bot</a> 2011-10-07 22:06 <a href="http://www.blogjava.net/Steven-bot/archive/2011/10/07/360141.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>