无法在tomcat容器中运行redmine 1.1
这绝对是我第一次接触 Ruby & Ruby。 Co...所以也许我完全错了..提前请原谅:-)
无论如何我的问题是:我已经安装了 redmine 1.1 并按照此处的说明进行操作: http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_Apache_Tomcat
一切看起来都很好(所有步骤都正常,包括运行 . /scripts/server -e production ),但是当我将 redmine-1.1.war 放入 Tomcat webapps 文件夹中并尝试从浏览器访问时(即: http://localhost:8080/redmine-1.1 我刚刚看到:
内部错误
您尝试访问的页面上发生错误。 如果您仍然遇到问题,请联系您的 redMine 管理员寻求帮助。
但是如果我查看我的catalina.out,我只能看到很少的警告;
所以,也许这是一个微不足道的问题,但我不知道如何使日志更详细。
这是我的 catalina.out 转储:
信息:服务器启动时间为 27337 毫秒 config.gem:在vendor/gems中解压的gem rubytree-0.5.2没有规范文件。运行“rake gems:refresh_specs”来修复此问题。 config.gem:在vendor/gems中解压的gem coderay-0.9.7没有规范文件。运行“rake gems:refresh_specs”来修复此问题。 /usr/share/tomcatProduzione/webapps/redmine-1.1/WEB-INF/gems/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements 已弃用并将被弃用2010 年 8 月或之后删除。使用 #requirement
这是我的配置:
Tomcat 6.0.29
Ruby 1.8.7.302,ruby-gems 是 1.3.5:
这是我安装的 gems 列表:
actionmailer (2.3.5) 动作包 (2.3.5) 活动记录 (2.3.5) 活动资源 (2.3.5) 主动支持 (2.3.5) 弹力城堡-java (1.5.0145.2) 国际化 (0.4.2) jruby-jars (1.5.6) jruby-openssl (0.7.3) jruby 机架 (1.0.7) PG (0.10.1) 机架(1.0.1) 导轨 (2.3.5) 耙子 (0.8.7) rubyzip (0.9.4) 莺 (1.2.1)
this is my absolutely first time I get involved with Ruby & Co... so maybe I'm totally wrong.. excuse me in advance :-)
Anyway my problem is: I've installed redmine 1.1 and have followed the instructions here: http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_Apache_Tomcat
Everything seems fine (all steps are OK, included running ./scripts/server -e production ), but when I put the redmine-1.1.war into the Tomcat webapps folder and I try to access from the browser (ie: http://localhost:8080/redmine-1.1 I just see:
Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your redMine administrator for assistance.
BUT If I give a look to my catalina.out, I can see only few warnings;
So, maybe it's a trivial problem, but I don't know how to make the log more verbose..
This is my catalina.out dump:
INFO: Server startup in 27337 ms
config.gem: Unpacked gem rubytree-0.5.2 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem coderay-0.9.7 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
/usr/share/tomcatProduzione/webapps/redmine-1.1/WEB-INF/gems/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
This is my configuration:
Tomcat 6.0.29
Ruby 1.8.7.302, ruby-gems is 1.3.5:
This is my list of installed gems:
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
bouncy-castle-java (1.5.0145.2)
i18n (0.4.2)
jruby-jars (1.5.6)
jruby-openssl (0.7.3)
jruby-rack (1.0.7)
pg (0.10.1)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
rubyzip (0.9.4)
warbler (1.2.1)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 2011 年初对此进行了研究,以建立一个代码存储库感知的 Wiki 来工作(我们是一个 Java 团队,因此访问 Tomcat 很容易,但访问根服务器“则不然”)。
我当时无法让它工作,因此团队从文档的角度决定使用 JamWiki(它无法连接到我们的代码存储库)。无论如何,我想让 Redmine 1.1 运行起来,我在这里发布的内容取得了一定程度的成功,但有一段时间没有使用它,因为我们有 JamWiki。
看看你进展如何,希望这会给你一些帮助:
此外,这里还有一个配置纯 Java 数据库的指针(对于测试等很有用)。不过,我还没有尝试过:
另请参阅:
http://kenai.com/projects/jruby/pages/ActiveRecord-JDBC
https://github.com/jruby/activerecord-jdbc-adapter
请告诉我们您如何使用
Cheers
Rich
I was looking into this earlier in 2011, to set up a code-repository-aware Wiki for work (We're a Java team, so getting access to Tomcat was easy, root server access 'not so').
I couldn't get it working at the time, so the team settled on JamWiki from a documentation point of view (it can't connect to our code repositories). Anyway, I wanted to get Redmine 1.1 running, I had some measure of success with the stuff I'm posting here, not used it for a while though, being that we've got JamWiki.
See how you get on, hopefully, this will get you some mileage:
Also, here is a pointer to configure a pure Java database (useful for testing etc). I haven't tried this, however:
See also:
http://kenai.com/projects/jruby/pages/ActiveRecord-JDBC
https://github.com/jruby/activerecord-jdbc-adapter
Please let us know how you get on
Cheers
Rich