Author Topic: Deploy failed on LifeRay 6.0.6 on JBoss  (Read 2390 times)

andrea.chiarentin

  • Jr. Member
  • **
  • Posts: 11
    • View Profile
Deploy failed on LifeRay 6.0.6 on JBoss
« on: May 25, 2011, 04:31:03 AM »
Hi all,
i tried to deploy the konakart.war file on my LR installation but i failed with these errors.

Code: [Select]
2011-05-25 08:26:25,933 INFO  [com.liferay.portal.deploy.auto.PortletAutoDeployListener] (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Portlets for C:\liferay-portal-6.0.6\deploy\konakart.war copied successfully. Deployment will start in a few seconds.
2011-05-25 08:26:27,726 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (HDScanner) deploy, ctxPath=/konakart
2011-05-25 08:26:27,931 ERROR [org.jboss.web.tomcat.service.deployers.JBossContextConfig] (HDScanner) XML error parsing: context.xml

2011-05-25 08:26:27,962 ERROR [org.jboss.web.tomcat.service.deployers.JBossContextConfig] (HDScanner) XML error parsing: jboss.web/localhost/context.xml.default
org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser

what does they mean?
How can i repeair they?

Thanks

Andrea

kate

  • Administrator
  • Sr. Member
  • *****
  • Posts: 227
    • View Profile
    • KonaKart Website
Re: Deploy failed on LifeRay 6.0.6 on JBoss
« Reply #1 on: May 25, 2011, 04:33:00 AM »
What ANT command did you use to create the WAR ?

andrea.chiarentin

  • Jr. Member
  • **
  • Posts: 11
    • View Profile
Re: Deploy failed on LifeRay 6.0.6 on JBoss
« Reply #2 on: May 25, 2011, 05:36:29 AM »
when i'm in custom directory i type .\bin\ant make_liferay_portlet_war -Djbossliferay=true


kate

  • Administrator
  • Sr. Member
  • *****
  • Posts: 227
    • View Profile
    • KonaKart Website
Re: Deploy failed on LifeRay 6.0.6 on JBoss
« Reply #3 on: May 25, 2011, 06:51:05 AM »
Bad luck  :)   That was indeed the right command for earlier versions of Liferay.

I've just tried the LR606/JBoss bundle.

It seems that it has the same kind of jar incompatibilities as with the LR605/tomcat bundle.

Hence, I used this to get it to work:

Code: [Select]
ant make_liferay_portlet_war -Djbossliferay=true -DLR605=true -DnoAXIS=true
(Yes I did mean LR605 and not LR606 - because I don't think that option will be available in your version.   They have the same effect so use LR605)

This worked for me.

andrea.chiarentin

  • Jr. Member
  • **
  • Posts: 11
    • View Profile
Re: Deploy failed on LifeRay 6.0.6 on JBoss
« Reply #4 on: May 25, 2011, 07:18:17 AM »
i tried this command with LR606 but unfortunately the war file wasn't uploaded.

u suggest to download LR605+tomcat and try again?

there is a big difference between LR606 and LR605?

thanks

kate

  • Administrator
  • Sr. Member
  • *****
  • Posts: 227
    • View Profile
    • KonaKart Website
Re: Deploy failed on LifeRay 6.0.6 on JBoss
« Reply #5 on: May 25, 2011, 07:44:10 AM »
No, LR606 will be fine.  (tomcat or JBoss).

Try again.   Maybe you could install your LR606 again and with a clean start the konakart.war will load OK?

I have certainly seen many times where a portlet deployment (no portlet in particular) breaks down you end up in a somewhat unstable state and it can be time-consuming to recover from that.

Easier to reinstall LR606 if you can then try again.

andrea.chiarentin

  • Jr. Member
  • **
  • Posts: 11
    • View Profile
Re: Deploy failed on LifeRay 6.0.6 on JBoss
« Reply #6 on: May 25, 2011, 07:55:20 AM »
i have a question about LR installation, just to know if i made right step
  • downloaded LR606 bounded with Jboss
  • extracted it in a folder
  • launched run.bat in jboss/bin
it's right?

now i delete all files and try again from start


kate

  • Administrator
  • Sr. Member
  • *****
  • Posts: 227
    • View Profile
    • KonaKart Website
Re: Deploy failed on LifeRay 6.0.6 on JBoss
« Reply #7 on: May 25, 2011, 07:57:35 AM »
Yes, that's precisely what I did 2 hours ago  :)

andrea.chiarentin

  • Jr. Member
  • **
  • Posts: 11
    • View Profile
Re: Deploy failed on LifeRay 6.0.6 on JBoss
« Reply #8 on: May 25, 2011, 08:20:28 AM »
OMG success!
i've been deploied Konakart user portles! and it looks good :)

but, i have another question what does this message means?

2011-05-25 13:15:38,032 ERROR [com.liferay.portal.kernel.servlet.SerializableSessionAttributeListener] (http-127.0.0.1-8080-1) com.konakart.al.KKAppEng is not serializable and will prevent this session from being replicated

THANKS!!

kate

  • Administrator
  • Sr. Member
  • *****
  • Posts: 227
    • View Profile
    • KonaKart Website
Re: Deploy failed on LifeRay 6.0.6 on JBoss
« Reply #9 on: May 25, 2011, 08:47:12 AM »
OMG ?

Don't sound so surprised  :)


You can ignore that "ERROR".   The application engine object (KKAppEng) is not serializable but we don't want it to be serialized anyway (or the session replicated) for performance reasons.

andrea.chiarentin

  • Jr. Member
  • **
  • Posts: 11
    • View Profile
Re: Deploy failed on LifeRay 6.0.6 on JBoss
« Reply #10 on: May 26, 2011, 06:03:52 AM »
Thanks for your help!

What do you think about this error?

kate

  • Administrator
  • Sr. Member
  • *****
  • Posts: 227
    • View Profile
    • KonaKart Website
Re: Deploy failed on LifeRay 6.0.6 on JBoss
« Reply #11 on: May 27, 2011, 01:44:39 PM »
Read the integration docs for the Admin App and Liferay.   You need to set up some role mappings.

In v5.2.0.0 this document is can be found here:

custom\konakartadmin_portlet\liferay\doc\Installation.pdf

From v5.4.0.0 it can be found at:

doc\LiferayPortletInstallation.pdf

andrea.chiarentin

  • Jr. Member
  • **
  • Posts: 11
    • View Profile
Re: Deploy failed on LifeRay 6.0.6 on JBoss
« Reply #12 on: May 28, 2011, 04:13:43 AM »
I read this document and i try to set up the mapping but it doesn't work!
Admin portlet works fine only whit Liferay Admin login.

kate

  • Administrator
  • Sr. Member
  • *****
  • Posts: 227
    • View Profile
    • KonaKart Website
Re: Deploy failed on LifeRay 6.0.6 on JBoss
« Reply #13 on: May 28, 2011, 04:22:18 AM »
My guess is that you haven't set it all up correctly...  have you given your other user KonaKart roles like the admin@konakart.com user has?

To diagnose, try enabling some DEBUG logging on "com.konakartadmin.portlet".. this should tell you what's happening.

I assume you've checked the logs for any exceptions that would also help.


andrea.chiarentin

  • Jr. Member
  • **
  • Posts: 11
    • View Profile
Re: Deploy failed on LifeRay 6.0.6 on JBoss
« Reply #14 on: May 28, 2011, 04:33:23 AM »
sorry, have u got a google mail so we can speak by gTalk?
Thanks