users@glassfish.java.net

[gf-users] Re: Glassfish with docker

From: Reza Rahman <reza.rahman_at_oracle.com>
Date: Fri, 25 Sep 2015 15:45:21 +0100

I suggest simply building your own Docker image from GlassFish 4.1
stable. The nightly is sure to be unstable.

On 9/25/2015 9:45 AM, Betina.Hientz_at_gmx.de wrote:
> Hello there!
> I am trying to use Glassfish nightly from the docker hub.
> I am using it with netbeans and with a postgres image from docker.
> All seems to works until I generate a Restful web services from
> database and test it.
> If I try GET(application/xml) it works fine. But if I try
> GET(application/json) than I get a HTTP Status 500 - Internal Server
> Error...
> the first time trying I get also the following description:
>
> *type* Exception report
>
> *message*Internal Server Error
>
> *description*The server encountered an internal error that prevented
> it from fulfilling this request.
>
> *exception*
>
> javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: org/xml/sax/helpers/DefaultHandler
>
> *root cause*
>
> org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: org/xml/sax/helpers/DefaultHandler
>
> *root cause*
>
> java.lang.NoClassDefFoundError: org/xml/sax/helpers/DefaultHandler
>
> *root cause*
>
> java.lang.ClassNotFoundException: org.xml.sax.helpers.DefaultHandler not found by org.eclipse.persistence.moxy [148]
> If I try it a second or more time I get this:
>
> *exception*
>
> javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.persistence.jaxb.BeanValidationHelper
>
> *root cause*
>
> org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.persistence.jaxb.BeanValidationHelper
>
> *root cause*
>
> java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.persistence.jaxb.BeanValidationHelper
> Please help me, what's going wrong? I already tried to use the normal
> Glassfish 4.1 with netbeans and still the docker postgres and than it
> works fine. But if I'm trying it with glassfish 4.1 from docker
> (nightly) I always get the error.
> best regards,
> Betina