无法在tomcat容器中运行redmine 1.1

发布于 2024-10-21 04:42:56 字数 1478 浏览 2 评论 0原文

这绝对是我第一次接触 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 ruby​​tree-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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

感性 2024-10-28 04:42:56

我在 2011 年初对此进行了研究,以建立一个代码存储库感知的 Wiki 来工作(我们是一个 Java 团队,因此访问 Tomcat 很容易,但访问根服务器“则不然”)。

我当时无法让它工作,因此团队从文档的角度决定使用 JamWiki(它无法连接到我们的代码存储库)。无论如何,我想让 Redmine 1.1 运行起来,我在这里发布的内容取得了一定程度的成功,但有一段时间没有使用它,因为我们有 JamWiki。

看看你进展如何,希望这会给你一些帮助:

#/bin/sh

jgem install rack --version "=1.0.1"
jgem install hoe --version ">=2.8.8"
jgem install jruby-jars --version "=1.5.6"
jgem install jruby-openssl activerecord-jdbcmysql-adapter
jgem install warbler --version "=1.2.1"
jgem install -v=0.4.2 i18n

#Rails was  2.3.5
jgem install -v=2.3.11 rails

jruby -S rake db:migrate RAILS_ENV=production
jruby -S rake redmine:load_default_data RAILS_ENV=production

#jruby -S rake generate_session_store
jruby -S rake config/initializers/session_store.rb

jruby -S  warble war

#For safe keeping - hinted on during my investigation
#jruby -S rake db:migrate RAILS_ENV=production
#rake config/initializers/session_store.rb
#rake generate_session_store

此外,这里还有一个配置纯 Java 数据库的指针(对于测试等很有用)。不过,我还没有尝试过:

#../redmine1.1/config/
#├── database.yml

development:
    adapter: jdbch2
    #WHERE REQUIRED.... #
    #database: db/sds_h2_database
    #username: #####
    #password: #####
    #jndi: ####
    #etc, etc

test:
    adapter: jdbch2 
    #WHERE REQUIRED.... #
    #database: db/sds_h2__test_database

production:
    adapter: jdbch2 
    #WHERE REQUIRED.... #
    #database: db/sds_h2_database

另请参阅:
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:

#/bin/sh

jgem install rack --version "=1.0.1"
jgem install hoe --version ">=2.8.8"
jgem install jruby-jars --version "=1.5.6"
jgem install jruby-openssl activerecord-jdbcmysql-adapter
jgem install warbler --version "=1.2.1"
jgem install -v=0.4.2 i18n

#Rails was  2.3.5
jgem install -v=2.3.11 rails

jruby -S rake db:migrate RAILS_ENV=production
jruby -S rake redmine:load_default_data RAILS_ENV=production

#jruby -S rake generate_session_store
jruby -S rake config/initializers/session_store.rb

jruby -S  warble war

#For safe keeping - hinted on during my investigation
#jruby -S rake db:migrate RAILS_ENV=production
#rake config/initializers/session_store.rb
#rake generate_session_store

Also, here is a pointer to configure a pure Java database (useful for testing etc). I haven't tried this, however:

#../redmine1.1/config/
#├── database.yml

development:
    adapter: jdbch2
    #WHERE REQUIRED.... #
    #database: db/sds_h2_database
    #username: #####
    #password: #####
    #jndi: ####
    #etc, etc

test:
    adapter: jdbch2 
    #WHERE REQUIRED.... #
    #database: db/sds_h2__test_database

production:
    adapter: jdbch2 
    #WHERE REQUIRED.... #
    #database: db/sds_h2_database

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文