dev@glassfish.java.net

[gf-dev] Re: FW: Glassfish deployment of movieplex example has some problems....

From: JJ Snyder <j.j.snyder_at_oracle.com>
Date: Tue, 02 Feb 2016 08:46:50 -0500

Tob,
It appears that CDI is issuing the exception:

CDI deployment failure:WELD-000072: Bean declaring a passivating s...


Can you provide more from the logs? There should be an exception trace
in the logs showing more details on this exception and it should tell us
exactly which bean is causing this error. In general beans with
@SessionScoped must be passivation-capable. The easiest way to do this
is to have them implement java.io.Serializable.

Also, please cc me directly just to make sure I see your reply.

JJ

On 02/02/2016 12:51 AM, John Tobin wrote:
> Dear glassfish developers.
>
> I apologize if you have already seen this, tell me that and I will not duplicate this message again.
> The message below reflects some problems I have had in implementing the glassfish sample programs you have put out.
>
> I want to congratulate you on the ease of this implementation.
> Most of the time it takes me 2 to 3 months to get this far on an implementation.
> The Geronimo implementation took well over 3 months before I got most of the details straightened out: the sample compiles and installs working etc.
>
> If you can shed any enlightenment on the problems I list below I would appreciate your suggestions or remarks.
> I was traditionally a Sys admin, so all of this work is done logged in as root. Should I be changing id to glassfish for these implementations?
>
> I don’t understand the credentials problems.
>
> Sincerely,
> tob
>
> From: John Tobin <jtobin_at_po-box.esu.edu<mailto:jtobin_at_po-box.esu.edu>>
> Date: Monday, February 1, 2016 at 8:50 PM
> To: John Tobin <jtobin_at_po-box.esu.edu<mailto:jtobin_at_po-box.esu.edu>>
> Subject: Glassfish deployment of movieplex example has some problems....
>
> Dear Aquarium.
>
> Actually this deployment of glassfish 4.1.1 is stunning.
> Really, you have a great setup. Usually it takes me more than a month to get close to this far with similar stuff [like geronimo!].
>
> I have the server deployed. I have almost all of the sample applications complied and have most of them deployed also. I will begin testing short term. This is great stuff.
>
> I ran into trouble with the movieplex:
>
> it did “package”, which is to say that:
> man package [ in the javaee7/platform/movieplex7 application dir]
> worked, at least I got a message “successful”
>
> After the command completed I have a javaee7/platform/movieplex7/target
> Which includes:
>
> movieplex7-4.0-SNAPSHOT
> movieplex7-4.0-SNAPSHOT.war
>
> ok.
>
> I now issue:
> asadmin deploy —force target/movieplex7-4.0-SNAPSHOT.war
> $$$$
> [see below: under $$$1$$$]
>
> So that didn’t work.
>
> As an alternative I go to the admin console and deploy that war file.
> Output is listed in a log format see under $$$2$$$]
>
> That didn’t work either.
>
> If you are unaware read the log from the bottom up
> And the errors at the bottom are from the command line deploy.
>
>
> I am open to suggestions.
> I would really like to get this to work.
>
> At the same time I am trying to get a copy of jfxrt.jar installed for the tictactoe example.
> I am running opensuse tumbleweed.
> Suggestions there are also welcome.
>
> Great project, at the moment I am catching up with you, but with any luck I maybe able to contribute.
>
> Sincerely,
> Tob
>
>
> $$$1$$$
> nightair:/opt/glass-samples/javaee7/platform/movieplex7 # asadmin deploy --force target/movieplex7-4.0-SNAPSHOT.war
> Traceback (most recent call last):
> File "/usr/bin/asadmin", line 260, in <module>
> autoscale = boto.connect_autoscale()
> File "/usr/lib/python2.7/site-packages/boto/__init__.py", line 208, in connect_autoscale
> **kwargs)
> File "/usr/lib/python2.7/site-packages/boto/ec2/autoscale/__init__.py", line 115, in __init__
> profile_name=profile_name)
> File "/usr/lib/python2.7/site-packages/boto/connection.py", line 1100, in __init__
> provider=provider)
> File "/usr/lib/python2.7/site-packages/boto/connection.py", line 569, in __init__
> host, config, self.provider, self._required_auth_capability())
> File "/usr/lib/python2.7/site-packages/boto/auth.py", line 987, in get_auth_handler
> 'Check your credentials' % (len(names), str(names)))
> boto.exception.NoAuthHandlerFound: No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV4Handler'] Check your credentials
>
> $$$2$$$
> $$$$$$$$
> Record Number
> Button to sort column Record Number as the primary sort column.
> Log Level
> Button to sort column Log Level as the primary sort column.
> Message
> Button to sort column Message as the primary sort column.
> Logger
> Button to sort column Logger as the primary sort column.
> Timestamp
> Button to sort column Timestamp as the primary sort column.
> Name-Value Pairs
> Button to sort column Name-Value Pairs as the primary sort column.
> 327 INFO Exception Occurred :Error occurred during deployment: Exception while loading the app : CDI deployme... (details) org.glassfish.admingui Feb 1, 2016 19:51:00.435 {levelValue=800, timeMillis=1454374260435}
> 326 SEVERE Exception while loading the app : CDI deployment failure:WELD-000072: Bean declaring a passivating s... (details) javax.enterprise.system.core Feb 1, 2016 19:51:00.381 {levelValue=1000, timeMillis=1454374260381}
> 325 INFO /file:/opt/glassfish/glassfish4/glassfish/domains/cargo-domain/applications/movieplex7-4.0-SNAPSHOT/... (details) org.eclipse.persistence.session./file:/opt/glassfish/glassfish4/glassfish/domains/cargo-domain/applications/movieplex7-4.0-SNAPSHOT/WEB-INF/classes/_movieplex7PU.connection Feb 1, 2016 19:51:00.381 {levelValue=800, timeMillis=1454374260381}
> 324 SEVERE Undeployment failed for context /movieplex7-4.0-SNAPSHOT(details) javax.enterprise.web Feb 1, 2016 19:51:00.332 {levelValue=1000, timeMillis=1454374260332}
> 323 SEVERE Exception while loading the app(details) javax.enterprise.system.core Feb 1, 2016 19:51:00.264 {levelValue=1000, timeMillis=1454374260264}
> 322 SEVERE Exception during lifecycle processing org.glassfish.deployment.common.DeploymentException: CDI deplo... (details) javax.enterprise.system.core Feb 1, 2016 19:51:00.259 {levelValue=1000, timeMillis=1454374260259}
> 321 WARN WELD-000411: Observer method [BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtens... (details) org.jboss.weld.Event Feb 1, 2016 19:50:59.372 {levelValue=900, timeMillis=1454374259372}
> 320 WARN WELD-000411: Observer method [BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtens... (details) org.jboss.weld.Event Feb 1, 2016 19:50:59.356 {levelValue=900, timeMillis=1454374259356}
> 319 WARN WELD-000411: Observer method [BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal... (details) org.jboss.weld.Event Feb 1, 2016 19:50:59.350 {levelValue=900, timeMillis=1454374259350}
> 318 INFO Portable JNDI names for EJB SalesFacadeREST: [java:global/movieplex7-4.0-SNAPSHOT/SalesFacadeREST!or... (details) javax.enterprise.ejb.container Feb 1, 2016 19:50:59.170 {levelValue=800, timeMillis=1454374259170}
> 317 INFO Portable JNDI names for EJB TheaterFacadeREST: [java:global/movieplex7-4.0-SNAPSHOT/TheaterFacadeRES... (details) javax.enterprise.ejb.container Feb 1, 2016 19:50:59.136 {levelValue=800, timeMillis=1454374259136}
> 316 INFO Portable JNDI names for EJB SalesBean: [java:global/movieplex7-4.0-SNAPSHOT/SalesBean!org.glassfish.... (details) javax.enterprise.ejb.container Feb 1, 2016 19:50:59.086 {levelValue=800, timeMillis=1454374259086}
> 315 INFO Portable JNDI names for EJB ShowTimingFacadeREST: [java:global/movieplex7-4.0-SNAPSHOT/ShowTimingFac... (details) javax.enterprise.ejb.container Feb 1, 2016 19:50:59.039 {levelValue=800, timeMillis=1454374259039}
> 314 INFO Portable JNDI names for EJB MovieFacadeREST: [java:global/movieplex7-4.0-SNAPSHOT/MovieFacadeREST, j... (details) javax.enterprise.ejb.container Feb 1, 2016 19:50:58.987 {levelValue=800, timeMillis=1454374258987}
> 313 INFO Portable JNDI names for EJB TimeslotFacadeREST: [java:global/movieplex7-4.0-SNAPSHOT/TimeslotFacadeR... (details) javax.enterprise.ejb.container Feb 1, 2016 19:50:58.921 {levelValue=800, timeMillis=1454374258921}
> 312 WARNING Local Exception Stack: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.1.v20150605... (details) org.eclipse.persistence.session./file:/opt/glassfish/glassfish4/glassfish/domains/cargo-domain/applications/movieplex7-4.0-SNAPSHOT/WEB-INF/classes/_movieplex7PU Feb 1, 2016 19:50:56.584 {levelValue=900, timeMillis=1454374256584}
> 311 INFO /file:/opt/glassfish/glassfish4/glassfish/domains/cargo-domain/applications/movieplex7-4.0-SNAPSHOT/... (details) org.eclipse.persistence.session./file:/opt/glassfish/glassfish4/glassfish/domains/cargo-domain/applications/movieplex7-4.0-SNAPSHOT/WEB-INF/classes/_movieplex7PU.connection Feb 1, 2016 19:50:53.948 {levelValue=800, timeMillis=1454374253948}
> 310 INFO EclipseLink, version: Eclipse Persistence Services - 2.6.1.v20150605-31e8258(details) org.eclipse.persistence.session./file:/opt/glassfish/glassfish4/glassfish/domains/cargo-domain/applications/movieplex7-4.0-SNAPSHOT/WEB-INF/classes/_movieplex7PU Feb 1, 2016 19:50:53.875 {levelValue=800, timeMillis=1454374253875}
> 309 SEVERE enterprise.deployment.util.application.lookup(details) javax.enterprise.system.tools.deployment.dol Feb 1, 2016 19:50:53.454 {levelValue=1000, timeMillis=1454374253454}
> 308 INFO visiting unvisited references(details) javax.enterprise.system.tools.deployment.common Feb 1, 2016 19:50:53.407 {levelValue=800, timeMillis=1454374253407}
> 307 INFO visiting unvisited references(details) javax.enterprise.system.tools.deployment.common Feb 1, 2016 19:50:53.376 {levelValue=800, timeMillis=1454374253376}
> 306 INFO visiting unvisited references(details) javax.enterprise.system.tools.deployment.common Feb 1, 2016 19:50:53.267 {levelValue=800, timeMillis=1454374253267}
> 305 INFO visiting unvisited references(details) javax.enterprise.system.tools.deployment.common Feb 1, 2016 19:50:52.795 {levelValue=800, timeMillis=1454374252795}
>
>