Page 1 of 1

BLC3.0 with JBoss7

Posted: Thu Aug 29, 2013 9:45 am
by sunily
Hi,
I am trying to configure Broadleaf3.0 to JBoss7, I am able to build process and deploy the project into jboss server directory.
But I am not sure is this the right things maven does.It exploded all the files in the server directory of Jboss server.
Its not working, please suggest me what should I do now,I have attached the jboss server directury screen shot.

Thanks
Sunil Yadav

Re: BLC3.0 with JBoss7

Posted: Wed Oct 09, 2013 4:22 am
by sunily
Now I am getting the following error during the deployment of site module into the Jboss 7.2.0.
If anybody has tried and deployed BLC3.0 on Jboss 7.X.X version then please share the steps :--

14:23:07,842 WARN [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015893: Encountered invalid class name 'or
g.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer' for service type 'org.xmlpull.v1.XmlPullParserFactory'
14:23:07,874 INFO [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011401: Read persistence.xml for blPU
14:23:07,874 INFO [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011401: Read persistence.xml for blSecurePU
14:23:07,874 INFO [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011401: Read persistence.xml for blCMSStorage
14:23:09,014 WARN [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.mycompany.
war" is using a private module ("org.jboss.ironjacamar.jdbcadapters:main") which may be changed or removed in future versio
ns without notice.
14:23:09,014 WARN [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.mycompany.
war" is using a private module ("org.jboss.ironjacamar.jdbcadapters:main") which may be changed or removed in future versio
ns without notice.
14:23:09,045 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [
java:jboss/jdbc/cmsStorage]
14:23:09,045 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) JBAS010400: Bound data source [
java:jboss/jdbc/webSecure]
14:23:09,061 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) JBAS010400: Bound data source [
java:jboss/jdbc/web]
14:23:10,092 WARN [org.jboss.as.ee] (MSC service thread 1-3) JBAS011006: Not installing optional component org.springframe
work.web.context.request.async.StandardServletAsyncWebRequest due to exception: org.jboss.as.server.deployment.DeploymentUn
itProcessingException: JBAS011054: Could not find default constructor for class org.springframework.web.context.request.asy
nc.StandardServletAsyncWebRequest
at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:
607) [jboss-as-ee-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:80
) [jboss-as-ee-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_43]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_43]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_43]

14:23:10,092 WARN [org.jboss.as.ee] (MSC service thread 1-3) JBAS011006: Not installing optional component org.broadleafco
mmerce.core.web.layout.tags.ContentDisplayTag due to exception: java.lang.ClassNotFoundException: org.broadleafcommerce.cor
e.web.layout.tags.ContentDisplayTag from [Module "deployment.mycompany.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.2.0.CR1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules
.jar:1.2.0.CR1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.j
ar:1.2.0.CR1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.j
ar:1.2.0.CR1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.2.
0.CR1]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.2.0.CR1]
at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_43]
at java.lang.Class.forName(Class.java:249) [rt.jar:1.6.0_43]
at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54)
at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:78
) [jboss-as-ee-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_43]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_43]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_43]

14:23:10,092 WARN [org.jboss.as.ee] (MSC service thread 1-3) JBAS011006: Not installing optional component org.broadleafco
mmerce.core.web.layout.tags.ContentSpecifiedTag due to exception: java.lang.ClassNotFoundException: org.broadleafcommerce.c
ore.web.layout.tags.ContentSpecifiedTag from [Module "deployment.mycompany.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.2.0.CR1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules
.jar:1.2.0.CR1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.j
ar:1.2.0.CR1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.j
ar:1.2.0.CR1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.2.
0.CR1]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.2.0.CR1]
at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_43]
at java.lang.Class.forName(Class.java:249) [rt.jar:1.6.0_43]
at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54)
at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:78
) [jboss-as-ee-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_43]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_43]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_43]

14:23:10,107 WARN [org.jboss.as.ee] (MSC service thread 1-3) JBAS011006: Not installing optional component org.broadleafco
mmerce.core.web.layout.tags.RandomContentDisplayTag due to exception: java.lang.ClassNotFoundException: org.broadleafcommer
ce.core.web.layout.tags.RandomContentDisplayTag from [Module "deployment.mycompany.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.2.0.CR1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules
.jar:1.2.0.CR1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.j
ar:1.2.0.CR1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.j
ar:1.2.0.CR1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.2.
0.CR1]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.2.0.CR1]
at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_43]
at java.lang.Class.forName(Class.java:249) [rt.jar:1.6.0_43]
at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54)
at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:78
) [jboss-as-ee-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_43]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_43]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_43]

14:23:10,607 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) JBAS010404: Deploying non-JDBC-complian
t driver class com.mysql.jdbc.Driver (version 5.1)
14:23:10,623 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) JBAS010403: Deploying JDBC-compliant dr
iver class oracle.jdbc.OracleDriver (version 11.1)
14:23:10,638 WARN [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016012: Deployment deployment "mycompany.war" con
tains CDI annotations but beans.xml was not found.
14:23:10,873 INFO [org.jboss.web] (ServerService Thread Pool -- 64) JBAS018210: Register web context:
14:23:11,451 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (ServerService Thread Pool -- 64
) No Spring WebApplicationInitializer types detected on classpath
14:23:11,498 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (ServerService Thread Pool -- 64
) Set web app root system property: 'site.root' = [C:\jboss-eap-6.1\standalone\tmp\vfs\temp5997f69754a0182b\content-2ff1a7f
5c7731b43\]
14:23:11,607 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (ServerService Thread Pool -- 64
) Initializing log4j from [C:\jboss-eap-6.1\standalone\tmp\vfs\temp5997f69754a0182b\content-2ff1a7f5c7731b43\WEB-INF\log4j.
xml]
14:23:11,919 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (ServerService Thread Pool -- 64
) Initializing Spring root WebApplicationContext
14:23:26,619 INFO [stdout] (ServerService Thread Pool -- 64) [ WARN] 14:23:26 RuntimeEnvironmentPropertiesConfigurer - Una
ble to determine runtime environment, using default environment 'development'
14:23:30,867 INFO [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 64) Hibernate Commons Annotatio
ns 3.2.0.Final
14:23:30,883 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 64) Hibernate 3.6.10.Final
14:23:30,883 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 64) hibernate.properties not found
14:23:30,899 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 64) Bytecode provider name : javassist
14:23:30,899 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 64) using JDK 1.4 java.sql.Timestamp handl
ing
14:23:30,977 INFO [org.hibernate.ejb.Version] (ServerService Thread Pool -- 64) Hibernate EntityManager 3.6.10.Final
14:23:30,992 INFO [org.hibernate.ejb.Ejb3Configuration] (ServerService Thread Pool -- 64) Processing PersistenceUnitInfo [

name: blPU
...]
14:23:31,008 ERROR [org.hibernate.ejb.Ejb3Configuration] (ServerService Thread Pool -- 64) Container is providing a null Pe
rsistenceUnitRootUrl: discovery impossible

14:23:32,617 INFO [org.hibernate.cfg.annotations.QueryBinder] (ServerService Thread Pool -- 64) Binding Named query: BC_RE
AD_SANDBOX_BY_NAME => SELECT sandbox FROM org.broadleafcommerce.common.sandbox.domain.SandBox sandbox WHERE sandbox.name =
:name
14:23:32,617 INFO [org.hibernate.cfg.annotations.QueryBinder] (ServerService Thread Pool -- 64) Binding Named query: BC_RE
AD_SANDBOX_BY_TYPE => SELECT sandbox FROM org.broadleafcommerce.common.sandbox.domain.SandBox sandbox WHERE sandbox.sandbox
Type = :sandboxType
14:23:32,617 INFO [org.hibernate.cfg.annotations.QueryBinder] (ServerService Thread Pool -- 64) Binding Named query: BC_RE
AD_SANDBOX_BY_TYPE_AND_NAME => SELECT sandbox FROM org.broadleafcommerce.common.sandbox.domain.SandBox sandbox WHERE sandbo
x.sandboxType = :sandboxType AND sandbox.name = :sandboxName
14:23:32,617 INFO [org.hibernate.cfg.annotations.QueryBinder] (ServerService Thread Pool -- 64) Binding Named query: BC_RE
AD_ALL_SYSTEM_PROPERTIES => SELECT sysProp FROM org.broadleafcommerce.common.config.domain.SystemPropertyImpl sysProp
14:23:32,617 INFO [org.hibernate.cfg.annotations.QueryBinder] (ServerService Thread Pool -- 64) Binding Named query: BC_RE
AD_SYSTEM_PROPERTIES_BY_NAME => SELECT sysProp FROM org.broadleafcommerce.common.config.domain.SystemPropertyImpl sysProp W
HERE sysProp.name = :propertyName
14:23:32,617 INFO [org.hibernate.cfg.annotations.QueryBinder] (ServerService Thread Pool -- 64) Binding Named query: BC_RE
AD_MODULE_CONFIG_BY_TYPE => SELECT config FROM org.broadleafcommerce.common.config.domain.ModuleConfiguration config WHERE
config.configType = :configType ORDER BY config.priority ASC
----------------------------
--------------------------------
--------------------------------------
------------------------------------------

Re: BLC3.0 with JBoss7

Posted: Tue Oct 22, 2013 1:34 am
by sunily
There is no need to worry with Error message "marked in red".While configuration BLC with JBoss7, I thought this might be creating problem, but when I verified in Jetty I got the same message and Application is running fine there.

Re: BLC3.0 with JBoss7

Posted: Mon Feb 17, 2014 6:41 am
by sunily
I have successfully configured BLC3.0 on Jboss 6.1.0 eap server.Please go to my other post with title "BLC 3.0 With JBoss 6.1.0 successfull configuration "

Unable to Deploy the war file on Jboss server

Posted: Fri Feb 21, 2014 11:30 am
by nseenoo@gmail.com
Hi Sunily,

Thanks for mention all the steps in details.
I have followed all the steps what you have mentioned.
till mvn install done successfully.
While deploying on server path(C:\BLCWorkspace3.0\eclipse-workspace\DemoSite\site>mvn jboss-as:deploy)
then getting below Error:

INFO: XNIO NIO Implementation Version 3.0.7.GA
Feb 21, 2014 8:53:30 PM org.jboss.remoting3.EndpointImpl <clinit>
INFO: JBoss Remoting version 3.2.12.GA
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:15.086s
[INFO] Finished at: Fri Feb 21 20:54:22 IST 2014
[INFO] Final Memory: 19M/311M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.3.Final:deploy (default-cli) on project site: Dep
iled and was rolled back. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/disp ... nException
'cmd' is not recognized as an internal or external command,
operable program or batch file.
C:\BroadleafJeeJunoJboss\DemoSite-3.0.8-GA-eclipse-workspace\eclipse-workspace\DemoSite\site>

site/pom.xml :

<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.3.Final</version>

</plugin>

and same files is there on : m2\repository\org\jboss\as\plugins

It is very appreciated, if you help me out regarding this issue

Re: BLC3.0 with JBoss7

Posted: Wed Feb 26, 2014 6:35 am
by sunily
Hi nseenoo,
As per the logs you have shared I can say that its the problem of JBoss. One of my colleague was facing the same problem while configuring the Broadleaf on Jboss7.1[we could not configure BLC on Jboss 7.1 then we moved to Jboss-eap 6.1.0 (Jboss7.2)]. We didn't found any resolution for this issue but what we did is that we again configure Jboss in new directory with fresh copy. This resolves the issue "INFO: XNIO NIO Implementation Version 3.0.7.GA".
Please reconfigure Jboss and try again ?
Which Jboss version you are using ? Its the same one which I have mentioned in my steps i.e. Jboss-eap 6.1.0 ?

Thanks
Sunil Yadav

Re: BLC3.0 with JBoss7

Posted: Wed Mar 05, 2014 6:09 pm
by jefffischer
Fyi - here's some documentation for deploying on JBoss AS 7 with BLC 3.1.1

https://github.com/BroadleafCommerce/do ... utorial.md