[rjb-users] can't create Java VM
Danny Armstrong
detarmstrong at visiontree.com
Mon Nov 19 13:59:29 EST 2007
@Nick
I assume you looked through the old posts on this list but I'll paste
this here just in case. It is in response to a similar problem you are
describing where rjb fails in Rails but works in console.
Oct 22:
I had a similar problem awhile back. I remember I diagnosed the
problem and found it wouldn't work for some reason or another.
I just
can't remember why. I need Google for my brain.
Anyways, I fixed it by adding a shell script that exported those
variables and called mongrel. I also edited the mongrel_cluster
init.d file to do the same. I blogged about it, scroll down to
the
"Caveats" part.
http://www.peabrane.com/2007/3/5/pdf-templates-via-rails
Hope that helps.
On Sat, 2007-11-17 at 13:27 +0100, rjb-users at rubyforge.org wrote:
> Any more ideas what could be wrong? Can somebody explain what happens
> when you call Rjb::load('lib/itext-2.0.6.jar')? Which processes are
> called? What is started? Can it be something with user rights? I'm
> becoming a bit desperate, I really need this to work. All help is
> really appreciated. Thanks.
>
> Kind regards,
>
> Nick
>
>
>
> On Nov 14, 2007 11:25 AM, Nick Snels <nick.snels at gmail.com> wrote:
> > Yes I set the values in the Rails context as indicated by the docs and
> > the help in the Litespeed forum.
> >
> > The output of the code you gave me is:
> > JAVA_HOME=/usr/java/jdk1.5.0_08/
> > LD_LIBRARY_PATH=/usr/java/jdk1.5.0_08/jre/lib/i386/:/usr/java/jdk1.5.0_08/jre/lib/i386/client/:./
> > CurrentDir=/usr/local/lsws/verkoop
> >
> > So it appears as if everything is set correctly.
> >
> > Kind regards,
> >
> > Nick
> >
> >
> >
> > On Nov 14, 2007 10:39 AM, <rjb-users at rubyforge.org> wrote:
> > > Hi,
> > >
> > > Can you add the action method below in your controller ?
> > >
> > > def showenv
> > > render :text => "JAVA_HOME=#{ENV['JAVA_HOME']}<br/>LD_LIBRARY_PATH=#{ENV['LD_LIBRARY_PATH']}<br/>CurrentDir=#{Dir.pwd}"
> > > end
> > >
> > > If you can, please show me the output.
> > >
> > > Regards
> > >
> > > On Wed, 14 Nov 2007 18:27:34 +0900
> > >
> > > rjb-users at rubyforge.orgさん wrote:
> > >
> > > > Hi,
> > > >
> > > > Did you set these values in Rails Contexts ?
> > > >
> > > > On Mon, 12 Nov 2007 20:51:36 +0100
> > > > rjb-users at rubyforge.orgさん wrote:
> > > >
> > > > > Just added JAVA_HOME and LD_LIBRARY_PATH to my environment variables
> > > > > of Litespeed as described in
> > > > > http://www.litespeedtech.com/docs/webserver/config/rails/#env.
> > > > > Restarted the server, executed the script again, but I still get the
> > > > > same error. How can I debug this? Thanks.
> > > > >
> > > > > Kind regards,
> > > > >
> > > > > Nick
> > > > > _______________________________________________
> > > > > rjb-users mailing list
> > > > > rjb-users at rubyforge.org
> > > > > http://rubyforge.org/mailman/listinfo/rjb-users
> > > >
> > > > --
> > > > arton
> > > >
> > >
> > > --
> > > arton
> > >
> > >
> > > _______________________________________________
> > > rjb-users mailing list
> > > rjb-users at rubyforge.org
> > > http://rubyforge.org/mailman/listinfo/rjb-users
> > >
> > >
> >
> _______________________________________________
> rjb-users mailing list
> rjb-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rjb-users
More information about the rjb-users
mailing list