That did the trick, thanks Massi.

The wars now launch sucessfully in glassfish.
Have you got an ETA on the non-workaround fix by any chance ;-)

rgds,
Nik
On 28/05/2013 16:03, Nik wrote:
On 05/28/2013 03:42 PM, Francesco Chicchiriccò wrote:
On 28/05/2013 15:38, Nik wrote:
[...]
When I deploy and access the console

glassfish (GlassFish Server Open Source Edition 3.1.2 (build 23))throws : 2013-05-27 16:05:04.073+0000 (68) StandardWrapperValve[default]: PWC1406: Servlet.service() for servlet default threw exception java.lang.IllegalArgumentException: PWC2788: setAttribute: Non-serializable attribute with name restTemplate

This was recently fixed: I guess that by manually downloading you probably did not get latest ones.

It's still there unfortunately after I remake from scratch and deploy on glassfish. BTW: this doesn't happen when I deploy and launch the same warson tomcat.

Thanks for reporting: this worths further Glassfish-specific analysis. Besides this exception, is the admin console working fine or not?

Unfortunately it doesn't launch.

I just see the following in the browser.


  HTTP Status 500 -

------------------------------------------------------------------------

*type*Exception report

*message*

*description*The server encountered an internal error () that prevented it from fulfilling this request.

*exception*

java.lang.IllegalArgumentException: PWC2788: setAttribute: Non-serializable 
attribute with name restTemplate

*note*_The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 3.1.2 logs._


Hi Nik,
I found the cause, and this is the good news! But the solution, for the moment, is only a workaround because it could be inefficent, and this is a bad news :)

So, if you want, you have to modify this file under your project: console/src/main/resources/applicationContext.xml (line 122)
From
<bean id="restTemplate" class="org.springframework.web.client.RestTemplate" scope="session">
To
<bean id="restTemplate" class="org.springframework.web.client.RestTemplate" scope="prototype">

after this operation you have to redeploy syncope-console application.

Tomorrow we will investigate on the better solution.

Good evening.

Massi

------------------------------------------------------------------------


      GlassFish Server Open Source Edition 3.1.2

Just let me know if you want to see any particular logs etc.

rgds,
Nik

Regards.
--
Francesco Chicchiriccò

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/



--
Massimiliano Perrone
Tel +39 393 9121310

Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 0859111173
http://www.tirasa.net

Apache Syncope PMC Member
http://people.apache.org/~massi/

"L'apprendere molte cose non insegna l'intelligenza"
(Eraclito)

Reply via email to