[aerogear-dev] Aerogear - The UnifiedPush Server on Glassfish

Matthias Wessendorf matzew at apache.org
Thu Jun 26 07:37:06 EDT 2014


Hello Giuseppe!

thanks for reporting the issue. In the 0.10.x series we are using
Picketlink for security (mainly auth of the user), but it looks like the
version we are using has an issue w/ EclipseLink that is used as
Glassfish's JPA Provider. I will report that issue to the Picketlink team.
Perhaps there is a way to get a patched version of the 0.10x series. We
will keep you posted.


On the master branch (0.11.x) series we are no longer using Picketlink, we
are using Keycloak, but I don't see a Glassfish adapter for Keycloak at the
moment.


Besides these issues, there is still an option to use the UnifiedPush
Server:
* On the cloud, via OpenShift (it's free to get an OpenShift account)
* Via JBoss AS / EAP

Hope that helps for now

-Matthias





On Thu, Jun 26, 2014 at 3:54 AM, Giuseppe Sciacca <g.sciacca at glauco.it>
wrote:

>  Hi Matthias,
>
>
>
>
>
>    thank’s for all.
>
>
>
> this is a part of my log :(
>
>
>
>
>
>
>
>
>
> [#|2014-06-26T09:39:19.315+0200|SEVERE|glassfish3.1.2|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=45;_ThreadName=Thread-2;|Exception
> while visiting org/jboss/aerogear/security/auth/AuthenticationManager.class
> of size 335
>
> java.lang.NullPointerException
>
>             at
> org.glassfish.hk2.classmodel.reflect.impl.TypesImpl.getType(TypesImpl.java:78)
>
>             at
> org.glassfish.hk2.classmodel.reflect.impl.ModelClassVisitor.visit(ModelClassVisitor.java:119)
>
>             at org.objectweb.asm.ClassReader.accept(Unknown Source)
>
>             at org.objectweb.asm.ClassReader.accept(Unknown Source)
>
>             at
> org.glassfish.hk2.classmodel.reflect.Parser$5.on(Parser.java:363)
>
>             at
> com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.handleEntry(ReadableArchiveScannerAdapter.java:171)
>
>             at
> com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.onSelectedEntries(ReadableArchiveScannerAdapter.java:133)
>
>             at
> org.glassfish.hk2.classmodel.reflect.Parser.doJob(Parser.java:348)
>
>             at
> org.glassfish.hk2.classmodel.reflect.Parser.access$300(Parser.java:70)
>
>             at
> org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:307)
>
>             at
> org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:296)
>
>             at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>
>             at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>
>             at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>
>             at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>
>             at java.lang.Thread.run(Thread.java:722)
>
>
>
> ......
>
>
>
>
>
> [#|2014-06-26T09:39:22.564+0200|SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=44;_ThreadName=Thread-2;|Exception
> [EclipseLink-28018] (Eclipse Persistence Services -
> 2.3.2.v20111125-r10461):
> org.eclipse.persistence.exceptions.EntityManagerSetupException
>
> Exception Description: Predeployment of PersistenceUnit
> [picketlink-default] failed.
>
> Internal Exception: Exception [EclipseLink-7212] (Eclipse Persistence
> Services - 2.3.2.v20111125-r10461):
> org.eclipse.persistence.exceptions.ValidationException
>
> Exception Description: The attribute [expiryDate] from the entity class
> [class
> org.picketlink.idm.jpa.model.sample.simple.AbstractCredentialTypeEntity]
> does not specify a temporal type. A temporal type must be specified for
> persistent fields or properties of type java.util.Date and
> java.util.Calendar.
>
> javax.persistence.PersistenceException: Exception [EclipseLink-28018]
> (Eclipse Persistence Services - 2.3.2.v20111125-r10461):
> org.eclipse.persistence.exceptions.EntityManagerSetupException
>
> Exception Description: Predeployment of PersistenceUnit
> [picketlink-default] failed.
>
> Internal Exception: Exception [EclipseLink-7212] (Eclipse Persistence
> Services - 2.3.2.v20111125-r10461):
> org.eclipse.persistence.exceptions.ValidationException
>
> Exception Description: The attribute [expiryDate] from the entity class
> [class
> org.picketlink.idm.jpa.model.sample.simple.AbstractCredentialTypeEntity]
> does not specify a temporal type. A temporal type must be specified for
> persistent fields or properties of type java.util.Date and
> java.util.Calendar.
>
>             at
> org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:1402)
>
>             at
> org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(PersistenceProvider.java:208)
>
>             at
> org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:206)
>
>             at
> org.glassfish.persistence.jpa.PersistenceUnitLoader.<init>(PersistenceUnitLoader.java:120)
>
> ....
>
>
>
>
>
>
>
> Greetings,
>
> Giuseppe
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> hello Giuseppe!
>
>
>
> thanks for the interest in the UnifiedPush Server. Since it is standard
> JavaEE, it should be working in Glassfish.
>
> However you need to configure a datasource (e.g. MySQL) inside of
> Glassfish. Here is the details about our DS name:
>
>
> https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/model/jpa/src/main/resources/META-INF/persistence.xml#L23
>
>
>
>
>
> Did you give it a try? If there are any issues, please report them here,
> so that we can help :)
>
>
>
> Greetings,
>
> Matthias
>
>
>
>
>
> On Wed, Jun 25, 2014 at 10:24 AM, Giuseppe Sciacca <g.sciacca at glauco.it
> > wrote:
>
> Hi,
>
>    sorry for my english :P
>
>
>
> “The UnifiedPush Server on Glassfish”
>
>
>
> it’s possible ?
>
> is there some tutorial?
>
>
>
>
>
> thank’s a lot
>
>
>
> GiuScia
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
>
>
>
> --
> Matthias Wessendorf
>
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> twitter: http://twitter.com/mwessendorf
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20140626/9bc7f30c/attachment-0001.html 


More information about the aerogear-dev mailing list