Glassfish gem error

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

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
Step 1: Install Software* and
putting the jar file in the lib folder of the jruby home directory.

*Best regards,
Juan P. Tarquino

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 :frowning:
Any ideas gratefully received,
Thanks,
Steve

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 P. Tarquino <[email protected]
Juan P. 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

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?

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:[email protected] <mailto:[email protected]>>> 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

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/