Forums de discussion

Liferay DXP EE SP4 with JBOSS EAP 7.0

Bhavik Shah, modifié il y a 6 années.

Liferay DXP EE SP4 with JBOSS EAP 7.0

Junior Member Publications: 64 Date d'inscription: 21/05/15 Publications récentes
Hello Team,

Can we configure Liferay 7 EE SP4 with JBOSS EAP 7.0?
If yes, can anyone provide steps how to install it?

Thanks,
Bhavik
thumbnail
David H Nebinger, modifié il y a 6 années.

RE: Liferay DXP EE SP4 with JBOSS EAP 7.0

Liferay Legend Publications: 14914 Date d'inscription: 02/09/06 Publications récentes
Yes. You can find all of the doco on https://customer.liferay.com.
Bhavik Shah, modifié il y a 6 années.

RE: Liferay DXP EE SP4 with JBOSS EAP 7.0

Junior Member Publications: 64 Date d'inscription: 21/05/15 Publications récentes
Hi David,

I have followed same steps as mentioned in customer portal for JBOSS 7.0 EAP but getting following error while starting JBOSS server

Error Log:

JAVA: "C:\Program Files\Java\jdk1.8.0_112\bin\java"

JAVA_OPTS: "-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=3M -XX:-TraceClassUnloading -Dprogram.name=standalone.bat -Djboss.modules.system.pkgs=org.jboss.byteman -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -Dsecmgr -Djava.security.policy=$JBOSS_HOME/bin/server.policy -Djboss.home.dir=$JBOSS_HOME -Duser.timezone=GMT -Xmx1024m -XX:MaxMetaspaceSize=2g"

===============================================================================

05:30:24,875 INFO [org.jboss.modules] (main) JBoss Modules version 1.5.1.Final-redhat-1
05:30:25,100 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final-redhat-1
05:30:25,181 INFO [org.jboss.as] (MSC service thread 1-7) WFLYSRV0049: JBoss EAP 7.0.0.GA (WildFly Core 2.1.2.Final-redhat-1) starting
05:30:26,865 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration
at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:131)
at org.jboss.as.server.ServerService.boot(ServerService.java:356)
at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:299)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[355,4]
Message: WFLYCTL0377: Unexpected element '{urn:jboss:domain:undertow:3.1}configuration' encountered. Valid elements are: 'server, buffer-cache, handlers, servlet-container, filters'
at org.jboss.as.controller.parsing.ParseUtils.unexpectedElement(ParseUtils.java:98)
at org.jboss.as.controller.PersistentResourceXMLDescription.parseChildren(PersistentResourceXMLDescription.java:264)
at org.jboss.as.controller.PersistentResourceXMLDescription.parse(PersistentResourceXMLDescription.java:136)
at org.jboss.as.controller.PersistentResourceXMLParser.readElement(PersistentResourceXMLParser.java:41)
at org.jboss.as.controller.PersistentResourceXMLParser.readElement(PersistentResourceXMLParser.java:35)
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69)
at org.jboss.as.server.parsing.StandaloneXml_4.parseServerProfile(StandaloneXml_4.java:546)
at org.jboss.as.server.parsing.StandaloneXml_4.readServerElement(StandaloneXml_4.java:242)
at org.jboss.as.server.parsing.StandaloneXml_4.readElement(StandaloneXml_4.java:141)
at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:103)
at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:49)
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:123)
... 3 more

05:30:26,877 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
05:30:26,890 INFO [org.jboss.as.server] (Thread-2) WFLYSRV0220: Server shutdown has been requested.
05:30:26,918 INFO [org.jboss.as] (MSC service thread 1-3) WFLYSRV0050: JBoss EAP 7.0.0.GA (WildFly Core 2.1.2.Final-redhat-1) stopped in 9ms
Press any key to continue . . .

Please guide.

Regards,
Bhavik
thumbnail
ANKIT SRIVASTAVA, modifié il y a 6 années.

RE: Liferay DXP EE SP4 with JBOSS EAP 7.0

Junior Member Publications: 76 Date d'inscription: 02/02/11 Publications récentes
Hi Bhavik,

It seems xml elements are not proper or not supported inside your standalone.xml.
Can you please also attach standalone.xml file?

Thanks,
Ankit
Bhavik Shah, modifié il y a 6 années.

RE: Liferay DXP EE SP4 with JBOSS EAP 7.0

Junior Member Publications: 64 Date d'inscription: 21/05/15 Publications récentes
Hi Ankit,

Please find attached standalone.xml file that I configure.

Thanks,
Bhavik

Pièces jointes:

Bhavik Shah, modifié il y a 6 années.

RE: Liferay DXP EE SP4 with JBOSS EAP 7.0

Junior Member Publications: 64 Date d'inscription: 21/05/15 Publications récentes
Hi Ankit,

I am getting following error while configuring web module in standalone.xml
It seems urn:jboss:domain:web:1.0}subsystem is not allowed in JBOSS EAP 7.0.
Please guide.

Error Log:

17:54:46,729 INFO [org.jboss.modules] (main) JBoss Modules version 1.5.1.Final-redhat-1
17:54:46,991 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final-redhat-1
17:54:47,085 INFO [org.jboss.as] (MSC service thread 1-7) WFLYSRV0049: JBoss EAP 7.0.0.GA (WildFly Core 2.1.2.Final-redhat-1) starting
17:54:48,313 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration
at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:131)
at org.jboss.as.server.ServerService.boot(ServerService.java:356)
at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:299)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[373,3]
Message: Unexpected element '{urn:jboss:domain:web:1.0}subsystem'
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:108)
at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69)
at org.jboss.as.server.parsing.StandaloneXml_4.parseServerProfile(StandaloneXml_4.java:546)
at org.jboss.as.server.parsing.StandaloneXml_4.readServerElement(StandaloneXml_4.java:242)
at org.jboss.as.server.parsing.StandaloneXml_4.readElement(StandaloneXml_4.java:141)
at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:103)
at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:49)
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:123)
... 3 more

17:54:48,315 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
17:54:48,321 INFO [org.jboss.as.server] (Thread-2) WFLYSRV0220: Server shutdown has been requested.
17:54:48,338 INFO [org.jboss.as] (MSC service thread 1-4) WFLYSRV0050: JBoss EAP 7.0.0.GA (WildFly Core 2.1.2.Final-redhat-1) stopped in 12ms
Press any key to continue . . .
Bhavik Shah, modifié il y a 6 années.

RE: Liferay DXP EE SP4 with JBOSS EAP 7.0

Junior Member Publications: 64 Date d'inscription: 21/05/15 Publications récentes
HI David,

I can see Liferay DXP with JBOSS EAP 6.4 in following link.

https://customer.liferay.com/documentation/7.0/deploy/-/official_documentation/deployment/installing-liferay-on-jboss-eap-6-4

I can't see liferay DP with JBOSS EAP 7.0 in our customer portal.

Can you please provide necessary document if any.

Thanks,
Bhavik
thumbnail
ANKIT SRIVASTAVA, modifié il y a 6 années.

RE: Liferay DXP EE SP4 with JBOSS EAP 7.0

Junior Member Publications: 76 Date d'inscription: 02/02/11 Publications récentes
Hi Bhavik,

I was able to deploy Liferay 7 GA5 over JBoss EAP 7 without any issue.
Only difference I can see that I used Liferay CE to test this but standalone.xml parsing issue is specific to JBoss EAP 7.

Can you please validate again xml elements of your version of standalone.xml?
Please find attached module.xml, standalone.xml and log file for JBoss.

Thanks,
Ankit
Bhavik Shah, modifié il y a 6 années.

RE: Liferay DXP EE SP4 with JBOSS EAP 7.0

Junior Member Publications: 64 Date d'inscription: 21/05/15 Publications récentes
Hi Ankit,

I want to change my database from H2 to Postgressql.

What should be my datasource class.
I have done following entry in standalone.xml and accordingly done jndi entry in portal-ext.properties as jdbc.default.jndi.name=java:jboss/LiferayPool

<subsystem xmlns="urn:jboss:domain:datasources:4.0">
<datasources>
<datasource jndi-name="java:jdbc/LiferayPool" pool-name="LiferayPool" enabled="true" use-java-context="true">
<connection-url>jdbc:postgresql://localhost:5432/intranet</connection-url>
<driver>postgres</driver>
<security>
<user-name>postgres</user-name>
<password>root</password>
</security>
</datasource>
<drivers>
<driver name="postgres" module="com.liferay.portal">
<xa-datasource-class>org.postgresql.Driver</xa-datasource-class>
</driver>
</drivers>
</datasources>
</subsystem>

Please suggest if it is correct or not.

Regards,
Bhavik
Bhavik Shah, modifié il y a 6 années.

RE: Liferay DXP EE SP4 with JBOSS EAP 7.0

Junior Member Publications: 64 Date d'inscription: 21/05/15 Publications récentes
Hi Ankit,

I have successfully configure liferay SP4 in JBOSS EAP 7.0. I have just added my datasource entry as follows.

<subsystem xmlns="urn:jboss:domain:datasources:4.0">
<datasources>
<datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
<connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</connection-url>
<driver>h2</driver>
<security>
<user-name>sa</user-name>
<password>sa</password>
</security>
</datasource>
<drivers>
<driver name="h2" module="com.h2database.h2">
<xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
</driver>
</drivers>
<datasource jndi-name="java:jboss/LiferayPool" pool-name="LiferayPool" enabled="true" use-java-context="true">
<connection-url>jdbc:postgresql://localhost:5432/iocl_intranet_new</connection-url>
<driver>postgres</driver>
<security>
<user-name>postgres</user-name>
<password>root</password>
</security>
</datasource>
<drivers>
<driver name="postgres" module="com.liferay.portal">
<xa-datasource-class>org.postgresql.Driver</xa-datasource-class>
</driver>

</drivers>
</datasources>
</subsystem>

Thanks for your help David and Ankit.

Regards,
Bhavik
thumbnail
ANKIT SRIVASTAVA, modifié il y a 6 années.

RE: Liferay DXP EE SP4 with JBOSS EAP 7.0

Junior Member Publications: 76 Date d'inscription: 02/02/11 Publications récentes
Good to hear and thanks for sharing.

Thanks,
Ankit