Forum: JRuby glassfish gem error

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1cb5d53d5bbf3e3afa7960ef55c240e4?d=identicon&s=25 Steven Shingler (sshingler)
on 2009-02-06 17:33
(Received via mailing list)
hi all,
am using:
ubuntu hardy
jruby 1.1.6RC1 (ruby 1.8.6 patchlevel 114) (2008-12-03 rev 8263)
[i386-java]
glassfish (0.9.2)
rails (2.2.2)
activerecord-jdbcmysql-adapter (0.9)
jdbc-mysql (5.0.4)
when running:
jruby -S glassfish_rails
i get:
Feb 6, 2009 3:22:05 AM
com.sun.enterprise.glassfish.bootstrap.ASMainStatic
findDerbyClient
INFO: Cannot find javadb client jar file, jdbc driver not available
Exception in thread "Static Framework Launcher"
java.lang.TypeNotPresentException: Type javax.xml.stream.XMLInputFactory
not
present

full stack trace here: http://pastie.org/381726

any ideas very gratefully received,
thanks,
steve
31d59ec0afd8f177101eeb6a1e1bdb5a?d=identicon&s=25 Juan Pablo Tarquino (Guest)
on 2009-02-06 18:01
(Received via mailing list)
For some reason glassfish gem needs derby's jdbc driver. Try installing
the
activerecord-derby-jdbc gem. If that does not work, try manually
downloading
derby jdbc driver from
http://db.apache.org/derby/papers/DerbyTut/install... *and
putting the jar file in the lib folder of the jruby home directory.*

*Best regards,
Juan Pablo Tarquino
1cb5d53d5bbf3e3afa7960ef55c240e4?d=identicon&s=25 Steven Shingler (sshingler)
on 2009-02-06 18:13
(Received via mailing list)
Hi Juan,
Thanks for your reply.
I can't find a gem called activerecord-derby-jdbc, do you mean the
activerecord-jdbcderby-adapter?
I have that one installed already, and have put the derbyclient jar in
$JRUBY_HOME/lib - but still getting that error :(
Any ideas gratefully received,
Thanks,
Steve
08264fc914cfb45adfea6c2f36f70b21?d=identicon&s=25 Jacob Kessler (Guest)
on 2009-02-06 18:31
(Received via mailing list)
It doesn't look like your error is related to the javadb message, since
that shouldn't prevent startup. What it does look like is that you
aren't finding javax.xml.stream.XMLInputFactory in your classapath. I'd
check your classpath and java_home environment variables, and (I
believe) make sure that java_home is pointing to a JDK rather than a
JRE.

steven shingler wrote:
> On Fri, Feb 6, 2009 at 5:00 PM, Juan Pablo Tarquino <jptarqu@gmail.com
>     Juan Pablo Tarquino
>         glassfish (0.9.2)
>         INFO: Cannot find javadb client jar file, jdbc driver not
>
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
1cb5d53d5bbf3e3afa7960ef55c240e4?d=identicon&s=25 Steven Shingler (sshingler)
on 2009-02-09 09:24
(Received via mailing list)
Hi Jacob, Thanks for your message.
You were right about the javadb error being a red herring. JAVA_HOME was
set
correctly, but I needed to have
jsr173_1.0_api.jar and stax-1.2.0.jar on the classpath.
So - it is working now, but I'm curious as to why I needed to have those
jars - is that mentioned in the documentation?
08264fc914cfb45adfea6c2f36f70b21?d=identicon&s=25 Jacob Kessler (Guest)
on 2009-02-09 18:23
(Received via mailing list)
I'm not entirely sure, but I suspect that those are used when we parse
the domain.xml that lives at the bottom of gem. We're actually working
to remove that dependency, but for now we have to have it because some
of the code from Glassfish expects to have a domain.xml that it can
read.


steven shingler wrote:
>     It doesn't look like your error is related to the javadb message,
>         I can't find a gem called activerecord-derby-jdbc, do you mean
>         <mailto:jptarqu@gmail.com <mailto:jptarqu@gmail.com>>> wrote:
>            *Best regards,
>                jruby 1.1.6RC1 (ruby 1.8.6 patchlevel 114) (2008-12-03 rev
>                findDerbyClient
>                thanks,
>
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
C525435d460373e31aed692ceb499b40?d=identicon&s=25 Vivek Pandey (Guest)
on 2009-02-10 08:03
(Received via mailing list)
You need JDK 1.6 for glassfish gem ver 0.9.2[1]  and beyond. JDK 1.6
bundles
JSR 173 apis.

-vivek.
[1]http://glassfishgem.rubyforge.org/
This topic is locked and can not be replied to.