Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apache + Passenger #20

Open
drmwndr opened this issue Apr 16, 2013 · 13 comments
Open

Apache + Passenger #20

drmwndr opened this issue Apr 16, 2013 · 13 comments

Comments

@drmwndr
Copy link

drmwndr commented Apr 16, 2013

The plugin is not working properly with Apacha + Passenger. I always get the error "Cant Create Java VM" from Passenger when i run my App in Production Environment.

Server Setup is:
Debian 6.0
Java JDK 1.7.0
Apache2 + Passenger
Ruby 1.9.2

Java Home and PATH are correctly set.

@Mahaswami
Copy link

I would need to make a pull request at some point. But you can see github/Mahaswami/jasper-rails fork for a solution.

@drmwndr
Copy link
Author

drmwndr commented Apr 19, 2013

Mahaswami, Thank You very much! I appreciate a lot your help and contribution! Please, make the pull request, your contribution is very valid to this plugin.

Just to make things clear, the error "Cant Create Java VM" is related to declare JAVA_HOME on environments.rb.
Once i declared, this error stoped, but i couldnt load the .pdf, and Mahaswami solution solved this issue.

Thanks a lot! :) 👍

@drmwndr drmwndr closed this as completed Apr 19, 2013
@msaraiva msaraiva reopened this Jun 26, 2013
@msaraiva
Copy link
Contributor

There's a new version on master that doesn't import java classes as constants. Can anyone (that runs jasper-rails + Apache2 + Passenger) confirm if this issue is gone?

For more info about new features see #24 or the mailing list.

Thanks!

@drmwndr
Copy link
Author

drmwndr commented Jun 26, 2013

I'm Still using Mahaswami solution.

@drmwndr
Copy link
Author

drmwndr commented Jul 30, 2013

msaraiva, i just tried today in another project install jasper-rails using ' gem 'jasper-rails' ' on my Gemfile, and i founded the same problem with apache + passenger, it says " Can't Create VM ", when i used mahaswami solution ( ' gem 'jasper-rails',:git => 'https://github.com/Mahaswami/jasper-rails.git'
'), everything runs ok, so i think the issue still isn't gonne.

@Mahaswami
Copy link

@francisco, @msaraiva, I am "Mahaswami" and happy to be of any help on
getting this fixed.

On Wed, Jul 31, 2013 at 12:04 AM, Francisco [email protected]:

msaraiva, i just tried today in another project install jasper-rails using
' gem 'jasper-rails' ' on my Gemfile, and i founded the same problem with
apache + passenger, it says " Can't Create VM ", when i used mahaswami
solution ( ' gem 'jasper-rails',:git => '
https://github.com/Mahaswami/jasper-rails.git'
'), everything runs ok, so i think the issue still isn't gonne.


Reply to this email directly or view it on GitHubhttps://github.com//issues/20#issuecomment-21812343
.

@msaraiva
Copy link
Contributor

Hi, Francisco.

Hi you have ' gem 'jasper-rails' ' in your Gemfile, you're not using
the version on master. Try:

gem 'jasper-rails', '>= 2.0.0.beta1'
or
gem 'jasper-rails', :git=> 'https://github.com/fortesinformatica/jasper-rails.git'

If the problem is related to the java classes as constants, then it should
be gone.
Since I don't use Passenger, I need other people to tell me if jasper-rails
works on this environment. So, please, let me know if the problem persists
and many thanks for taking the time to test it.

Cheers!
Marlus

2013/7/31 Mahaswami Software [email protected]

@francisco, @msaraiva, I am "Mahaswami" and happy to be of any help on
getting this fixed.

On Wed, Jul 31, 2013 at 12:04 AM, Francisco [email protected]:

msaraiva, i just tried today in another project install jasper-rails
using
' gem 'jasper-rails' ' on my Gemfile, and i founded the same problem
with
apache + passenger, it says " Can't Create VM ", when i used mahaswami
solution ( ' gem 'jasper-rails',:git => '
https://github.com/Mahaswami/jasper-rails.git'
'), everything runs ok, so i think the issue still isn't gonne.


Reply to this email directly or view it on GitHub<
https://github.com/fortesinformatica/jasper-rails/issues/20#issuecomment-21812343>

.


Reply to this email directly or view it on GitHubhttps://github.com//issues/20#issuecomment-21841084
.

@msaraiva
Copy link
Contributor

Hi, Mahaswami.

Thanks for your help. Have you tried out the version on master? In case the
problem is still there and you have a solution for it, you can post it here
or make a pull request. I'll be glad to accept it!
As I said before, I don't have an environment with Passenger set up and
running, in order to test it. I need to trust you guys on that! ;)

Thanks!
Marlus

2013/7/31 Mahaswami Software [email protected]

@francisco, @msaraiva, I am "Mahaswami" and happy to be of any help on
getting this fixed.

On Wed, Jul 31, 2013 at 12:04 AM, Francisco [email protected]:

msaraiva, i just tried today in another project install jasper-rails
using
' gem 'jasper-rails' ' on my Gemfile, and i founded the same problem
with
apache + passenger, it says " Can't Create VM ", when i used mahaswami
solution ( ' gem 'jasper-rails',:git => '
https://github.com/Mahaswami/jasper-rails.git'
'), everything runs ok, so i think the issue still isn't gonne.


Reply to this email directly or view it on GitHub<
https://github.com/fortesinformatica/jasper-rails/issues/20#issuecomment-21812343>

.


Reply to this email directly or view it on GitHubhttps://github.com//issues/20#issuecomment-21841084
.

@Mahaswami
Copy link

@drmwndr sorry about not responding to your request for pull request 3 months ago. That notification never reached me.

@Mahaswami
Copy link

@msaraiva will do and let you know. Thank you

@drmwndr
Copy link
Author

drmwndr commented Sep 23, 2013

Marlus,
I just tried today your release as you suggested in the post above with apache + passenger, without succeed, i still got the error " Can't Create Java VM ", i was very careful to check all my environment variables to certify that i didnt comitted a mistake. So i believe that your solution still isn't working as it should.

Thanks for considering fix this! ;)

Francisco

@thiagocifani
Copy link

I've got the same problem here, but I realized that my JAVA_HOME was empty somehow. If you are using some zsh config or something similar, instead of setting this path on environment, make sure to set it on zshrc.

@ghost
Copy link

ghost commented May 22, 2014

I can confirm that there is an issue with Passenger (nginx + rbench). The pdf creation times out without an error message. @Mahaswami 's fork does the trick for me. However, there is a bug in his latest commit (no class error, see comments for fix)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants