Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Liferay and JBoss 5.0 Dennis Przybyla September 9, 2008 2:41 PM
RE: Liferay and JBoss 5.0 Dennis Przybyla September 22, 2008 2:08 PM
JBoss 5.0 to be released soon Kjetil Nygaard November 29, 2008 8:25 AM
RE: JBoss 5.0 to be released soon Dennis Przybyla December 3, 2008 3:56 PM
RE: JBoss 5.0 to be released soon Kjetil Nygaard December 7, 2008 4:58 AM
RE: JBoss 5.0 has been released! Dennis Przybyla December 10, 2008 4:11 PM
RE: JBoss 5.0 has been released! Michael Young December 10, 2008 4:49 PM
RE: JBoss 5.0 has been released! Dennis Przybyla December 11, 2008 9:47 AM
RE: JBoss 5.0 has been released! C. Daniel Mojoli-Boggino December 30, 2008 7:16 AM
RE: JBoss 5.0 has been released! Rupendrasingh Butola January 2, 2009 6:55 AM
RE: JBoss 5.0 has been released! C. Daniel Mojoli-Boggino January 2, 2009 7:25 AM
RE: JBoss 5.0 has been released! C. Daniel Mojoli-Boggino January 2, 2009 7:50 AM
RE: JBoss 5.0 has been released! Rupendrasingh Butola January 2, 2009 8:44 AM
RE: JBoss 5.0 has been released! Soleh Abd Wahab January 7, 2009 1:22 AM
RE: JBoss 5.0 has been released! Dennis Przybyla January 12, 2009 10:34 AM
RE: JBoss 5.0 has been released! Dennis Przybyla January 12, 2009 11:50 PM
RE: JBoss 5.0 has been released! Soleh Abd Wahab January 14, 2009 10:12 PM
RE: JBoss 5.0 has been released! Clare Walsh February 16, 2009 2:41 AM
RE: JBoss 5.0 has been released! Denis Kostousov April 18, 2010 10:42 PM
RE: JBoss 5.0 has been released! Krati Gupta July 5, 2010 5:24 AM
RE: JBoss 5.0 has been released! Manish Kumar Gupta July 12, 2010 1:55 AM
RE: JBoss 5.0 has been released! Zeeshan Khan March 20, 2012 2:23 AM
RE: JBoss 5.0 has been released! Dennis Przybyla February 3, 2009 11:59 AM
RE: JBoss 5.0 has been released! Dave Curry March 15, 2009 1:10 PM
RE: Liferay and JBoss 5.0 Dennis Przybyla February 3, 2009 11:58 AM
Dennis Przybyla
Liferay and JBoss 5.0
September 9, 2008 2:41 PM
Answer

Dennis Przybyla

Rank: Junior Member

Posts: 30

Join Date: May 11, 2008

Recent Posts

I was wondering if anyone has attempted to run Liferay on JBoss 5.0? If so what do I have to do to get it installed and running?

Thanks,
Dennis Przybyla
Dennis Przybyla
RE: Liferay and JBoss 5.0
September 22, 2008 2:08 PM
Answer

Dennis Przybyla

Rank: Junior Member

Posts: 30

Join Date: May 11, 2008

Recent Posts

I am guessing no one has tried this as I didn't get any responses. I just want to say that I have tried it without success so far. I kind of followed the directions that where in the manual for jBoss 4.2.2. I was wondering why I have to delete the hibernate.jar and hibernate3.jar. I would like to use EJB 3.0 for my database access for the portlet that I am creating. Has anyone got EJB 3.0 and Liferay to work together either on jBoss 4.2.x or jBoss 5.0?

Thanks,
Dennis Przybyla
Kjetil Nygaard
JBoss 5.0 to be released soon
November 29, 2008 8:25 AM
Answer

Kjetil Nygaard

Rank: New Member

Posts: 12

Join Date: July 4, 2008

Recent Posts

A company I work for is considering using Liferay on top of JBoss for a new project. And we would like to use JBoss 5.0. One of the reasons for this is that JBoss is Java5EE compliant.

Has anyone had any success in configuring liferay to run on JBoss 5.0? Will there be a guide and a bundle on how to do this?
Dennis Przybyla
RE: JBoss 5.0 to be released soon
December 3, 2008 3:56 PM
Answer

Dennis Przybyla

Rank: Junior Member

Posts: 30

Join Date: May 11, 2008

Recent Posts

We are waiting for the same thing, as we want to use JBoss 5.0 also
Kjetil Nygaard
RE: JBoss 5.0 to be released soon
December 7, 2008 4:58 AM
Answer

Kjetil Nygaard

Rank: New Member

Posts: 12

Join Date: July 4, 2008

Recent Posts

I see that JBoss 5.0 is released now. (Not commercial support), and I think would be very nice if Liferay could make a bundle with jboss 5.0.
Dennis Przybyla
RE: JBoss 5.0 has been released!
December 10, 2008 4:11 PM
Answer

Dennis Przybyla

Rank: Junior Member

Posts: 30

Join Date: May 11, 2008

Recent Posts

I was coming here to post the same thing. I hope they support JBoss 5.0 soon.

Thanks,
Dennis Przybyla
Michael Young
RE: JBoss 5.0 has been released!
December 10, 2008 4:49 PM
Answer

Michael Young

LIFERAY STAFF

Rank: Liferay Master

Posts: 847

Join Date: August 4, 2004

Recent Posts

We'll be bundling JBoss 5 for Liferay 5.2. We just got the bundle going today.
Dennis Przybyla
RE: JBoss 5.0 has been released!
December 11, 2008 9:47 AM
Answer

Dennis Przybyla

Rank: Junior Member

Posts: 30

Join Date: May 11, 2008

Recent Posts

Great, that is what I was hoping for. Could you also include on a wiki or something the steps to get liferay deployed on JBoss 5.0

Thanks,
Dennis Przybyla
C. Daniel Mojoli-Boggino
RE: JBoss 5.0 has been released!
December 30, 2008 7:16 AM
Answer

C. Daniel Mojoli-Boggino

Rank: New Member

Posts: 12

Join Date: August 4, 2008

Recent Posts

I have successfully run LR 5.1.2 under JBoss 5.0.0.GA.

In addition to all other LR/JBoss deployment instructions:

1) Erase the following from deploy/liferay-portal-5.1.2.war/WEB-INF/lib

# jaxrpc.jar
# jmx-remote.jar
# jmx-ri.jar
# mx4j.jar
# stax.jar
# xercesImpl.jar
# xml-apis.jar

This list was extracted from changeset 23652.

2) Copy deploy/liferay-portal-5.1.2.war/WEB-INF/lib/portal-impl.jar#portal.properties to deploy/liferay-portal-5.1.2.war/WEB-INF/classes (so its in the same directory as portal-ext.properties)
Rupendrasingh Butola
RE: JBoss 5.0 has been released!
January 2, 2009 6:55 AM
Answer

Rupendrasingh Butola

Rank: New Member

Posts: 5

Join Date: December 22, 2008

Recent Posts

Hi Daniel,

After performing the steps mentioned by you.

Following error was encountered during jboss server startup, I hope I am not missing anything here.

2009-01-02 14:54:46,057 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) injectionContainer enabled and processing beginning
2009-01-02 14:54:46,541 INFO (main) Loading vfszip:/D:/jboss-5.0.0.GA/server/test/deploy/portal.war/WEB-INF/lib/portal-impl.jar/system.properties
2009-01-02 14:54:47,135 INFO [org.apache.catalina.core.ContainerBase.[jboss.web]..] (main) Initializing Spring root WebApplicationContext
2009-01-02 14:54:48,869 INFO (main) Loading file:/D:/jboss-5.0.0.GA/server/test/deploy/portal.war/WEB-INF/classes/portal.properties
2009-01-02 14:54:48,869 INFO (main) Loading vfsfile:/D:/jboss-5.0.0.GA/server/test/deploy/portal.war/WEB-INF/classes/portal-ext.properties
2009-01-02 14:54:48,932 ERROR [com.liferay.portal.spring.context.PortalApplicationContext] (main) org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [META-INF/base-spring.xml]; nested exception is org.springframework.beans.FatalBeanException: Unable to load schema mappings from location [META-INF/spring.schemas]; nested exception is java.io.IOException: Using reverse path on top file handler: FileHandler@1882017, /../deploy/portal.war/WEB-INF/lib/compass.jar/META-INF/spring.schemas/
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [META-INF/base-spring.xml]; nested exception is org.springframework.beans.FatalBeanException: Unable to load schema mappings from location [META-INF/spring.schemas]; nested exception is java.io.IOException: Using reverse path on top file handler: FileHandler@1882017, /../deploy/portal.war/WEB-INF/lib/compass.jar/META-INF/spring.schemas/
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:197)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
at com.liferay.portal.spring.context.PortalApplicationContext.loadBeanDefinitions(PortalApplicationContext.java:72)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)


Best Regards,
Rupendrasingh
C. Daniel Mojoli-Boggino
RE: JBoss 5.0 has been released!
January 2, 2009 7:25 AM
Answer

C. Daniel Mojoli-Boggino

Rank: New Member

Posts: 12

Join Date: August 4, 2008

Recent Posts

JDK Version
Which version of the JDK are you using? I am using 1.6.0_10.

Endorsed libraries
In your JBOSS_HOME/bin/run.conf, add

JAVA_OPTS="-Djava.endorsed.dirs=/opt/jboss-5/lib/endorsed $JAVA_OPTS"

to make sure the endorsed libs are being used via Java Extension Mechanism.

Another equivalent way of achieving this is to copy $JBOSS_HOME/lib/endorsed/*.jar to $JAVA_HOME/jre/lib/endorsed.

Please tell me if any of this makes the difference.

Good luck and Happy New Year.
C. Daniel Mojoli-Boggino
RE: JBoss 5.0 has been released!
January 2, 2009 7:50 AM
Answer

C. Daniel Mojoli-Boggino

Rank: New Member

Posts: 12

Join Date: August 4, 2008

Recent Posts

Looking at the stack trace it seems to be a completely unrelated issue related to the use of relative path segments (..). If this is the case, track down where you are using ".." in your configuration and change your path to avoid using them.

2009-01-02 14:54:48,932 ERROR [com.liferay.portal.spring.context.PortalApplicationContext] (main) org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [META-INF/base-spring.xml]; nested exception is org.springframework.beans.FatalBeanException: Unable to load schema mappings from location [META-INF/spring.schemas]; nested exception is java.io.IOException: Using reverse path on top file handler: FileHandler@1882017, /../deploy/portal.war/WEB-INF/lib/compass.jar/META-INF/spring.schemas/
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [META-INF/base-spring.xml]; nested exception is org.springframework.beans.FatalBeanException: Unable to load schema mappings from location [META-INF/spring.schemas]; nested exception is java.io.IOException: Using reverse path on top file handler: FileHandler@1882017, /../deploy/portal.war/WEB-INF/lib/compass.jar/META-INF/spring.schemas/


Good luck.
Rupendrasingh Butola
RE: JBoss 5.0 has been released!
January 2, 2009 8:44 AM
Answer

Rupendrasingh Butola

Rank: New Member

Posts: 5

Join Date: December 22, 2008

Recent Posts

New Year Luck starts today :-)

Thanks a lot Daniel for all the deployment instructions.

Finally got Liferay working on jboss 5.0.0.

Best Regards,
Rupendrasingh
Soleh Abd Wahab
RE: JBoss 5.0 has been released!
January 7, 2009 1:22 AM
Answer

Soleh Abd Wahab

Rank: New Member

Posts: 2

Join Date: January 7, 2009

Recent Posts

I'm very new with jboss and liferay.

I managed to deploy liferay 5.1.2 on jboss 4.2.3 by following the administration guide. But when I try to deploy it on jboss 5 GA I got an error :

vfsfile:/C:/jboss5/server/default/deploy/liferay-portal.war/ -> org.jboss.deployers.spi.DeploymentException: Web mapping already exists for deployment URL vfsfile:/C:/jboss5/server/default/deploy/liferay-portal.war/

I don't quite understand your instructions on deploying it to jboss 5. I appreciate it very much if you could provide detailed instructions. I've been stuck for 2 days.
Dennis Przybyla
RE: JBoss 5.0 has been released!
January 12, 2009 10:34 AM
Answer

Dennis Przybyla

Rank: Junior Member

Posts: 30

Join Date: May 11, 2008

Recent Posts

I did this using a clean install of LR 5.1.2 and JBoss 5.0.0.GA. I don't have a deploy/liferay-portal-5.1.2.war/WEB-INF/lib/portal-impl.jar#portal.properties file so I was unable to do step 2. I get the following error as the last poster in the thread gets:


2009-01-12 18:18:31,481 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=jboss.web.deployment:war=/ state=Create mode=Manual requiredState=Installed
org.jboss.deployers.spi.DeploymentException: Web mapping already exists for deployment URL vfsfile:/C:/jboss-5.0.0.GA/server/default/deploy/liferay-portal-5.1.2.war/
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:192)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
at $Proxy36.start(Unknown Source)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
at org.jboss.system.ServiceController.start(ServiceController.java:460)
at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Thread.java:619)
2009-01-12 18:18:31,528 DEBUG [org.jboss.system.ServiceCreator] (main) Removing mbean from server: jboss.web.deployment:war=/
2009-01-12 18:18:31,528 DEBUG [org.jboss.system.ServiceController] (main) destroying service: jboss.web.deployment:war=/
2009-01-12 18:18:31,528 DEBUG [org.jboss.system.ServiceController] (main) Ignoring destroy request for service: jboss.web.deployment:war=/ at state FAILED
2009-01-12 18:18:31,528 DEBUG [org.jboss.system.ServiceController] (main) removing service: jboss.web.deployment:war=/
2009-01-12 18:18:31,528 DEBUG [org.jboss.system.deployers.ServiceDeployer] (main) Error during deploy: jboss.web.deployment:war=/
org.jboss.deployers.spi.DeploymentException: Web mapping already exists for deployment URL vfsfile:/C:/jboss-5.0.0.GA/server/default/deploy/liferay-portal-5.1.2.war/
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:192)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
at $Proxy36.start(Unknown Source)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
at org.jboss.system.ServiceController.start(ServiceController.java:460)
at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Thread.java:619)
2009-01-12 18:18:31,528 DEBUG [org.jboss.system.ServiceController] (main) stopping service: jboss.jacc:service=jacc,id="vfsfile:/C:/jboss-5.0.0.GA/server/default/deploy/liferay-portal-5.1.2.war/"
2009-01-12 18:18:31,528 DEBUG [org.jboss.system.ServiceController] (main) destroying service: jboss.jacc:service=jacc,id="vfsfile:/C:/jboss-5.0.0.GA/server/default/deploy/liferay-portal-5.1.2.war/"
2009-01-12 18:18:31,528 DEBUG [org.jboss.system.ServiceController] (main) removing service: jboss.jacc:service=jacc,id="vfsfile:/C:/jboss-5.0.0.GA/server/default/deploy/liferay-portal-5.1.2.war/"
2009-01-12 18:18:31,528 DEBUG [org.jboss.system.ServiceCreator] (main) Removing mbean from server: jboss.jacc:service=jacc,id="vfsfile:/C:/jboss-5.0.0.GA/server/default/deploy/liferay-portal-5.1.2.war/"
2009-01-12 18:18:31,528 DEBUG [org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext] (main) Removed component jboss.jacc:id="vfsfile:/C:/jboss-5.0.0.GA/server/default/deploy/liferay-portal-5.1.2.war/",service=jacc from vfsfile:/C:/jboss-5.0.0.GA/server/default/deploy/liferay-portal-5.1.2.war/
2009-01-12 18:18:31,528 DEBUG [org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext] (main) Removed component jboss.web.deployment:war=/ from vfsfile:/C:/jboss-5.0.0.GA/server/default/deploy/liferay-portal-5.1.2.war/
2009-01-12 18:18:31,528 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Real: name=vfsfile:/C:/jboss-5.0.0.GA/server/default/deploy/liferay-portal-5.1.2.war/ state=PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: Web mapping already exists for deployment URL vfsfile:/C:/jboss-5.0.0.GA/server/default/deploy/liferay-portal-5.1.2.war/
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:192)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
at $Proxy36.start(Unknown Source)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
at org.jboss.system.ServiceController.start(ServiceController.java:460)
at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Thread.java:619)


Any ideas would be helpful.

Thanks,
Dennis Przybyla
Dennis Przybyla
RE: JBoss 5.0 has been released!
January 12, 2009 11:50 PM
Answer

Dennis Przybyla

Rank: Junior Member

Posts: 30

Join Date: May 11, 2008

Recent Posts

Here are the instructions on how I got Liferay 5.1.2 deployed in JBoss AS 5.0.0GA


1) Download and install JBoss AS version 5.0.0GA into your preferred directory. From now on, the directory where you installed JBoss will be referred to as $JBOSS_HOME

2) Download liferay-portal-5.1.x.war

3) Edit $JBOSS_HOME/server/default/deployers/jbossweb.deployer/web.xml
Replace the default servlet (lines 109 - 121)

 1<servlet>
 2    <servlet-name>default</servlet-name>
 3    <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
 4    <init-param>
 5        <param-name>debug</param-name>
 6        <param-value>0</param-value>
 7    </init-param>
 8    <init-param>
 9        <param-name>listings</param-name>
10        <param-value>false</param-value>
11    </init-param>
12    <load-on-startup>1</load-on-startup>
13</servlet>


with:

 1<servlet>
 2    <servlet-name>default</servlet-name>
 3    <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
 4    <init-param>
 5        <param-name>debug</param-name>
 6        <param-value>0</param-value>
 7    </init-param>
 8    <init-param>
 9        <param-name>listings</param-name>
10        <param-value>false</param-value>
11    </init-param>
12    <init-param>
13        <param-name>input</param-name>
14        <param-value>4096</param-value>
15    </init-param>
16    <init-param>
17        <param-name>output</param-name>
18        <param-value>4096</param-value>
19    </init-param>
20    <load-on-startup>1</load-on-startup>
21</servlet>


4) Create $JBOSS_HOME/server/default/deploy/liferay-ds.xml with following content:

 1<datasources>
 2    <local-tx-datasource>
 3        <jndi-name>jdbc/LiferayPool</jndi-name>
 4        <connection-url>jdbc:mysql://localhost/lportal?useUnicode=true&amp;characterEncoding=UTF-8</connection-url>
 5        <driver-class>com.mysql.jdbc.Driver</driver-class>
 6        <user-name></user-name>
 7        <password></password>
 8        <min-pool-size>0</min-pool-size>
 9    </local-tx-datasource>
10</datasources>


5) Go to $JBOSS_HOME/common/lib/, download mysql-connector-java-{$version}-bin.jar and copy to this directory. This is the JDBC driver for MySQL. If you are using a different database, copy the appropriate driver.

6) Download Liferay's Portal Dependencies. Unzip the downloaded archive into
$JBOSS_HOME/server/default/lib.

7) Set mail properties by replacing the contents of
$JBOSS_HOME/server/default/deploy/mail-service.xml with:

 1<?xml version="1.0"?>
 2<server>
 3    <mbean code="org.jboss.mail.MailService" name="jboss:service=MailSession">
 4        <attribute name="JNDIName">mail/MailSession</attribute>
 5        <attribute name="User">nobody</attribute>
 6        <attribute name="Password">password</attribute>
 7        <attribute name="Configuration">
 8        <configuration>
 9            <property name="mail.store.protocol" value="imap" />
10            <property name="mail.transport.protocol" value="smtp" />
11            <property name="mail.imap.host" value="localhost" />
12            <property name="mail.pop3.host" value="localhost" />
13            <property name="mail.smtp.host" value="localhost" />
14        </configuration>
15        </attribute>
16    </mbean>
17</server>


8) Configure JAAS. Edit $JBOSS_HOME/server/default/conf/login-config.xml and comment out the entire XML for policy other in lines 113-129.

 1<!--<application-policy name = "other">-->
 2   <!-- A simple server login module, which can be used when the number
 3   of users is relatively small. It uses two properties files:
 4   users.properties, which holds users (key) and their password (value).
 5   roles.properties, which holds users (key) and a comma-separated list of
 6   their roles (value).
 7   The unauthenticatedIdentity property defines the name of the principal
 8   that will be used when a null username and password are presented as is
 9   the case for an unuathenticated web client or MDB. If you want to
10   allow such users to be authenticated add the property, e.g.,
11   unauthenticatedIdentity="nobody"
12   -->
13   <!--<authentication>
14      <login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule"
15         flag = "required" />
16   </authentication>
17</application-policy>-->


9) Edit $JBOSS_HOME/bin/run.bat. Change the following:

1set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m -XX:MaxPermSize=256m


with:

1set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dfile.encoding=UTF-8 -Duser.timezone=GMT


10) Deploy liferay-portal-5.1.x.war.
- Create new directory $JBOSS_HOME/server/default/deploy/liferay-portal.war.
- Unzip liferay-portal-5.1.x.war to directory.
- Go into $JBOSS_HOME/server/default/deploy/liferay-portal-5.1.x.war/WEB-INF/lib.
- Delete dom4j.jar, jaxen.jar, commons-collections.jar, hibernate3.jar, jaxrpc.jar,
jmx-remote.jar, jmx-ri.jar, mx4j.jar, stax.jar, xercesImpl.jar, xml-apis.jar


11) Create $JBOSS_HOME/server/default/deploy/liferay-portal-5.1.2.war/WEB-INF/classes/portal-ext.properties file containing the following:

1portal.ctx=/liferay


12) Edit $JBOSS_HOME/server/default/deploy/liferay-portal-5.1.2.war/WEB-INF/jboss-web.xml. Change the following:

1<context-root>/</context-root>


with:

1<context-root>/liferay</context-root>


13) Copy deploy/liferay-portal-5.1.2.war/WEB-INF/lib/portal-impl.jar#portal.properties to deploy/liferay-portal-5.1.2.war/WEB-INF/classes (so its in the same directory as portal-ext.properties)

14) Start JBoss. Open your browser to http://localhost:8080/liferay. You should see the
default Liferay home page.
Soleh Abd Wahab
RE: JBoss 5.0 has been released!
January 14, 2009 10:12 PM
Answer

Soleh Abd Wahab

Rank: New Member

Posts: 2

Join Date: January 7, 2009

Recent Posts

thanks for the guide.
previously I've done everything except for the portal-ext.propeties part.
now I already got it working.
Dennis Przybyla
RE: Liferay and JBoss 5.0
February 3, 2009 11:58 AM
Answer

Dennis Przybyla

Rank: Junior Member

Posts: 30

Join Date: May 11, 2008

Recent Posts

Just so everyone knows. I have had problems using jdk 1.6 with Liferay. I went back to jdk 1.5 and it seems to work much better.

Good Luck,
Dennis Przybyla
Dennis Przybyla
RE: JBoss 5.0 has been released!
February 3, 2009 11:59 AM
Answer

Dennis Przybyla

Rank: Junior Member

Posts: 30

Join Date: May 11, 2008

Recent Posts

Where is it at?

Michael Young:
We'll be bundling JBoss 5 for Liferay 5.2. We just got the bundle going today.
Clare Walsh
RE: JBoss 5.0 has been released!
February 16, 2009 2:41 AM
Answer

Clare Walsh

Rank: New Member

Posts: 9

Join Date: January 29, 2009

Recent Posts

Thanks, this guide was very useful, though I didn't need to do the MySQL stuff as I don't really want to use it.

The bundle still isn't available, even though there's a liferay 5.2 bundle with jboss, it's jboss 4.x...

Does anyone know how to deploy an ear file to jboss and have the portlet war inside it register with liferay?
Dave Curry
RE: JBoss 5.0 has been released!
March 15, 2009 1:10 PM
Answer

Dave Curry

Rank: New Member

Posts: 13

Join Date: September 7, 2007

Recent Posts

Almost 3,800 views on this thread (only half of them mine). Obviously, there's some interest in the Liferay 5.2.2/JBoss 5.0 bundle. Does anyone have an idea when it will be released?
Denis Kostousov
RE: JBoss 5.0 has been released!
April 18, 2010 10:42 PM
Answer

Denis Kostousov

Rank: New Member

Posts: 19

Join Date: May 26, 2009

Recent Posts

You should add
1jdbc.default.jndi.name=jdbc/LiferayPool

to your portal-ext.properties file.
Krati Gupta
RE: JBoss 5.0 has been released!
July 5, 2010 5:24 AM
Answer

Krati Gupta

Rank: Regular Member

Posts: 117

Join Date: December 5, 2008

Recent Posts

I am using liferay 5.2.3 + jboss 5.0.0 , as when I am trying to run that bundle on windows 2008 of 64 bit it is not starting , but when I m running the same bundle on windows 2003 of 32 bit it works smoothly .

So please help if I m missing some setting for windows 2008 .
Manish Kumar Gupta
RE: JBoss 5.0 has been released!
July 12, 2010 1:55 AM
Answer

Manish Kumar Gupta

LIFERAY STAFF

Rank: Liferay Master

Posts: 535

Join Date: May 15, 2008

Recent Posts

Can you explain, what problem you are facing? Did you tried vanila JBoss 5.0 on windows 2008? Does it works?

I think, you need to find out whether the issue is with JBoss or with Liferay.
Zeeshan Khan
RE: JBoss 5.0 has been released!
March 20, 2012 2:23 AM
Answer

Zeeshan Khan

Rank: Expert

Posts: 349

Join Date: July 20, 2011

Recent Posts

Dennis Przybyla:
Here are the instructions on how I got Liferay 5.1.2 deployed in JBoss AS 5.0.0GA


1) Download and install JBoss AS version 5.0.0GA into your preferred directory. From now on, the directory where you installed JBoss will be referred to as $JBOSS_HOME

2) Download liferay-portal-5.1.x.war

3) Edit $JBOSS_HOME/server/default/deployers/jbossweb.deployer/web.xml
Replace the default servlet (lines 109 - 121)

 1<servlet>
 2    <servlet-name>default</servlet-name>
 3    <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
 4    <init-param>
 5        <param-name>debug</param-name>
 6        <param-value>0</param-value>
 7    </init-param>
 8    <init-param>
 9        <param-name>listings</param-name>
10        <param-value>false</param-value>
11    </init-param>
12    <load-on-startup>1</load-on-startup>
13</servlet>


with:

 1<servlet>
 2    <servlet-name>default</servlet-name>
 3    <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
 4    <init-param>
 5        <param-name>debug</param-name>
 6        <param-value>0</param-value>
 7    </init-param>
 8    <init-param>
 9        <param-name>listings</param-name>
10        <param-value>false</param-value>
11    </init-param>
12    <init-param>
13        <param-name>input</param-name>
14        <param-value>4096</param-value>
15    </init-param>
16    <init-param>
17        <param-name>output</param-name>
18        <param-value>4096</param-value>
19    </init-param>
20    <load-on-startup>1</load-on-startup>
21</servlet>


4) Create $JBOSS_HOME/server/default/deploy/liferay-ds.xml with following content:

 1<datasources>
 2    <local-tx-datasource>
 3        <jndi-name>jdbc/LiferayPool</jndi-name>
 4        <connection-url>jdbc:mysql://localhost/lportal?useUnicode=true&amp;characterEncoding=UTF-8</connection-url>
 5        <driver-class>com.mysql.jdbc.Driver</driver-class>
 6        <user-name></user-name>
 7        <password></password>
 8        <min-pool-size>0</min-pool-size>
 9    </local-tx-datasource>
10</datasources>


5) Go to $JBOSS_HOME/common/lib/, download mysql-connector-java-{$version}-bin.jar and copy to this directory. This is the JDBC driver for MySQL. If you are using a different database, copy the appropriate driver.

6) Download Liferay's Portal Dependencies. Unzip the downloaded archive into
$JBOSS_HOME/server/default/lib.

7) Set mail properties by replacing the contents of
$JBOSS_HOME/server/default/deploy/mail-service.xml with:

 1<?xml version="1.0"?>
 2<server>
 3    <mbean code="org.jboss.mail.MailService" name="jboss:service=MailSession">
 4        <attribute name="JNDIName">mail/MailSession</attribute>
 5        <attribute name="User">nobody</attribute>
 6        <attribute name="Password">password</attribute>
 7        <attribute name="Configuration">
 8        <configuration>
 9            <property name="mail.store.protocol" value="imap" />
10            <property name="mail.transport.protocol" value="smtp" />
11            <property name="mail.imap.host" value="localhost" />
12            <property name="mail.pop3.host" value="localhost" />
13            <property name="mail.smtp.host" value="localhost" />
14        </configuration>
15        </attribute>
16    </mbean>
17</server>


8) Configure JAAS. Edit $JBOSS_HOME/server/default/conf/login-config.xml and comment out the entire XML for policy other in lines 113-129.

 1<!--<application-policy name = "other">-->
 2   <!-- A simple server login module, which can be used when the number
 3   of users is relatively small. It uses two properties files:
 4   users.properties, which holds users (key) and their password (value).
 5   roles.properties, which holds users (key) and a comma-separated list of
 6   their roles (value).
 7   The unauthenticatedIdentity property defines the name of the principal
 8   that will be used when a null username and password are presented as is
 9   the case for an unuathenticated web client or MDB. If you want to
10   allow such users to be authenticated add the property, e.g.,
11   unauthenticatedIdentity="nobody"
12   -->
13   <!--<authentication>
14      <login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule"
15         flag = "required" />
16   </authentication>
17</application-policy>-->


9) Edit $JBOSS_HOME/bin/run.bat. Change the following:

1set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m -XX:MaxPermSize=256m


with:

1set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dfile.encoding=UTF-8 -Duser.timezone=GMT


10) Deploy liferay-portal-5.1.x.war.
- Create new directory $JBOSS_HOME/server/default/deploy/liferay-portal.war.
- Unzip liferay-portal-5.1.x.war to directory.
- Go into $JBOSS_HOME/server/default/deploy/liferay-portal-5.1.x.war/WEB-INF/lib.
- Delete dom4j.jar, jaxen.jar, commons-collections.jar, hibernate3.jar, jaxrpc.jar,
jmx-remote.jar, jmx-ri.jar, mx4j.jar, stax.jar, xercesImpl.jar, xml-apis.jar


11) Create $JBOSS_HOME/server/default/deploy/liferay-portal-5.1.2.war/WEB-INF/classes/portal-ext.properties file containing the following:

1portal.ctx=/liferay


12) Edit $JBOSS_HOME/server/default/deploy/liferay-portal-5.1.2.war/WEB-INF/jboss-web.xml. Change the following:

1<context-root>/</context-root>


with:

1<context-root>/liferay</context-root>


13) Copy deploy/liferay-portal-5.1.2.war/WEB-INF/lib/portal-impl.jar#portal.properties to deploy/liferay-portal-5.1.2.war/WEB-INF/classes (so its in the same directory as portal-ext.properties)

14) Start JBoss. Open your browser to http://localhost:8080/liferay. You should see the
default Liferay home page.





Hi !

will it work on Lifery 6 .......?????

thanks !!