when i had deployed an entity bean [which had worked in jboss7.1.1] it is showing
2014-07-19 17:13:51,920 INFO [org.jboss.as.jacorb] (MSC service thread 1-2) JBAS016330: CORBA ORB Service started
2014-07-19 17:13:52,246 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.deployment.unit."simpCmp.jar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."simpCmp.jar".PARSE: JBAS018733: Failed to process phase PARSE of deployment "simpCmp.jar"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.8.0_11]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.8.0_11]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.8.0_11]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS014588: CMP Entity Beans are not supported
at org.jboss.as.ejb3.deployment.processors.entity.EntityBeanComponentDescriptionFactory.processEntityBeanMetaData(EntityBeanComponentDescriptionFactory.java:65)
at org.jboss.as.ejb3.deployment.processors.entity.EntityBeanComponentDescriptionFactory.processBeanMetaData(EntityBeanComponentDescriptionFactory.java:57)
at org.jboss.as.ejb3.deployment.processors.AbstractDeploymentUnitProcessor.processDeploymentDescriptor(AbstractDeploymentUnitProcessor.java:143)
at org.jboss.as.ejb3.deployment.processors.AbstractDeploymentUnitProcessor.deploy(AbstractDeploymentUnitProcessor.java:84)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
... 5 more
Related
Following the documentation:
https://docs.jboss.org/hibernate/stable/ogm/reference/en-US/html_single/?v=5.3#ogm-gettingstarted
I am trying to use JPA OGM with MongoDB.
I have added the latest version of Hibernate ORM (5.2.14.Final) to the WildFly 11 module folder:
/usr/local/Cellar/wildfly-as/11.0.0.Final/libexec/modules/system/layers/base/org/hibernate/5.2.14.Final
and downloaded and installed:
hibernate-ogm-modules-5.3.0.Final-wildfly-11-dist.zip
However when I build and deploy the EAR I get:
18:34:16,467 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0027: Starting deployment of "NOTiFYwell.ear" (runtime-name: "NOTiFYwell.ear")
18:34:18,044 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0207: Starting subdeployment (runtime-name: "NOTiFYwellWAR.war")
18:34:18,044 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0207: Starting subdeployment (runtime-name: "NOTiFYwellJAR.jar")
18:34:18,515 INFO [org.jboss.as.jpa] (MSC service thread 1-4) WFLYJPA0002: Read persistence.xml for NOTiFYwellPersistenceUnit
18:34:18,516 INFO [org.jboss.as.jpa] (MSC service thread 1-4) WFLYJPA0002: Read persistence.xml for NOTiFYwellMongoDBPersistenceUnit
18:34:18,776 WARN [org.jboss.modules] (MSC service thread 1-7) Failed to define class org.hibernate.jpa.HibernatePersistenceProvider in Module "org.hibernate:5.2.14.Final" from local module loader #6fffcba5 (finder: local module finder #34340fab (roots: /usr/local/Cellar/wildfly-as/11.0.0.Final/libexec/modules,/usr/local/Cellar/wildfly-as/11.0.0.Final/libexec/modules/system/layers/base/.overlays/layer-base-wildfly-11-weld-2.4,/usr/local/Cellar/wildfly-as/11.0.0.Final/libexec/modules/system/layers/base)): org.jboss.modules.ModuleLoadError: org.hibernate.jipijapa-hibernate5:5.2.14.Final
at org.jboss.modules.ModuleLoadException.toError(ModuleLoadException.java:74)
at org.jboss.modules.Module.getPathsUnchecked(Module.java:1559)
at org.jboss.modules.Module.loadModuleClass(Module.java:708)
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:358)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:437)
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:77)
at org.jboss.modules.Module.loadModuleClass(Module.java:713)
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
at org.hibernate.ogm.jpa.HibernateOgmPersistence.<init>(HibernateOgmPersistence.java:37)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at org.jboss.as.jpa.processor.PersistenceProviderHandler.deploy(PersistenceProviderHandler.java:74)
at org.jboss.as.jpa.processor.PersistenceBeginInstallProcessor.deploy(PersistenceBeginInstallProcessor.java:49)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:165)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
18:34:18,777 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.deployment.unit."NOTiFYwell.ear".FIRST_MODULE_USE: org.jboss.msc.service.StartException in service jboss.deployment.unit."NOTiFYwell.ear".FIRST_MODULE_USE: WFLYSRV0153: Failed to process phase FIRST_MODULE_USE of deployment "NOTiFYwell.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:172)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYJPA0019: Could not deploy application packaged persistence provider 'org.hibernate.ogm.jpa.HibernateOgmPersistence'
at org.jboss.as.jpa.processor.PersistenceProviderHandler.deploy(PersistenceProviderHandler.java:79)
at org.jboss.as.jpa.processor.PersistenceBeginInstallProcessor.deploy(PersistenceBeginInstallProcessor.java:49)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:165)
... 5 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at org.jboss.as.jpa.processor.PersistenceProviderHandler.deploy(PersistenceProviderHandler.java:74)
... 7 more
Caused by: org.jboss.modules.ModuleLoadError: org.hibernate.jipijapa-hibernate5:5.2.14.Final
at org.jboss.modules.ModuleLoadException.toError(ModuleLoadException.java:74)
at org.jboss.modules.Module.getPathsUnchecked(Module.java:1559)
at org.jboss.modules.Module.loadModuleClass(Module.java:708)
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:358)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:437)
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:77)
at org.jboss.modules.Module.loadModuleClass(Module.java:713)
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
at org.hibernate.ogm.jpa.HibernateOgmPersistence.<init>(HibernateOgmPersistence.java:37)
... 12 more
18:34:18,781 ERROR [org.jboss.as.controller.management-operation] (External Management Request Threads -- 1) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "NOTiFYwell.ear")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"NOTiFYwell.ear\".FIRST_MODULE_USE" => "WFLYSRV0153: Failed to process phase FIRST_MODULE_USE of deployment \"NOTiFYwell.ear\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYJPA0019: Could not deploy application packaged persistence provider 'org.hibernate.ogm.jpa.HibernateOgmPersistence'
Caused by: java.lang.reflect.InvocationTargetException
Caused by: org.jboss.modules.ModuleLoadError: org.hibernate.jipijapa-hibernate5:5.2.14.Final"}}
18:34:18,783 ERROR [org.jboss.as.server] (External Management Request Threads -- 1) WFLYSRV0021: Deploy of deployment "NOTiFYwell.ear" was rolled back with the following failure message:
{"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"NOTiFYwell.ear\".FIRST_MODULE_USE" => "WFLYSRV0153: Failed to process phase FIRST_MODULE_USE of deployment \"NOTiFYwell.ear\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYJPA0019: Could not deploy application packaged persistence provider 'org.hibernate.ogm.jpa.HibernateOgmPersistence'
Caused by: java.lang.reflect.InvocationTargetException
Caused by: org.jboss.modules.ModuleLoadError: org.hibernate.jipijapa-hibernate5:5.2.14.Final"}}
18:34:18,794 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0208: Stopped subdeployment (runtime-name: NOTiFYwellJAR.jar) in 11ms
18:34:18,798 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0208: Stopped subdeployment (runtime-name: NOTiFYwellWAR.war) in 14ms
18:34:18,812 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0028: Stopped deployment NOTiFYwell.ear (runtime-name: NOTiFYwell.ear) in 29ms
18:43:58,465 INFO [org.jboss.as.repository] (ServerService Thread Pool -- 1) WFLYDR0009: Content /usr/local/Cellar/wildfly-as/11.0.0.Final/libexec/standalone/data/content/b4/f50292c0e75f0a407d46c7649f8f03c7c1b6a2 is obsolete and will be removed
18:43:58,471 INFO [org.jboss.as.repository] (ServerService Thread Pool -- 1) WFLYDR0002: Content removed from location /usr/local/Cellar/wildfly-as/11.0.0.Final/libexec/standalone/data/content/b4/f50292c0e75f0a407d46c7649f8f03c7c1b6a2/content
18:43:58,471 INFO [org.jboss.as.repository] (ServerService Thread Pool -- 1) WFLYDR0009: Content /usr/local/Cellar/wildfly-as/11.0.0.Final/libexec/standalone/data/content/06/38d1a6bf571ddafcba91ee07ca7051924973f7 is obsolete and will be removed
18:43:58,474 INFO [org.jboss.as.repository] (ServerService Thread Pool -- 1) WFLYDR0002: Content removed from location /usr/local/Cellar/wildfly-as/11.0.0.Final/libexec/standalone/data/content/06/38d1a6bf571ddafcba91ee07ca7051924973f7/content
It appears to unable to load:
Caused by: org.jboss.modules.ModuleLoadError:
org.hibernate.jipijapa-hibernate5:5.2.14.Final"}}
TIA.
Did you update Hibernate ORM using the modules zip? https://search.maven.org/remotecontent?filepath=org/hibernate/hibernate-orm-modules/5.2.14.Final/hibernate-orm-modules-5.2.14.Final-wildfly-11-dist.zip
That's where the missing module is.
I have an application containing ejb2.x and ejb3.0 it is running on jboss5.1 .When we migrate with few changes in configuration and jndi it gives the following error at the time of deployment
11:42:16,884 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."intlwmiejb_.txt.jar".INSTALL: org.j boss.msc.service.StartException in service jboss.deployment.unit."intlwmiejb_.txt.jar".INSTALL: Failed to process phase INSTALL of deployment "intlwmiejb_.txt.jar"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_40]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_40]
at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40] Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011030: Could not configure component AdminDomainManager
at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:92)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS014522: Could not find method public abstract boolean javax.ejb.EJBObject.isIdentica l(javax.ejb.EJBObject) throws java.rmi.RemoteException from view com.intertel.wmi.ejb.auth.AdminDomainManager on EJB class AdminDomainManager
at org.jboss.as.ejb3.component.session.SessionBeanObjectViewConfigurator.configure(SessionBeanObjectViewConfigurator.java:108)
at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:921)
at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:81)
... 6 more jndi shown on server.log is 14:42:23,647 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named AdminDomainManager in deployment unit subdeployment "intlwmiejb.jar" of deployment "wmi.ear" are as follows: java:global/wmi/intlwmiejb/AdminDomainManager!com.intertel.wmi.ejb.auth.AdminDomainManagerLocalHome java:app/intlwmiejb/AdminDomainManager!com.intertel.wmi.ejb.auth.AdminDomainManagerLocalHome java:module/AdminDomainManager!com.intertel.wmi.ejb.auth.AdminDomainManagerLocalHome java:global/wmi/intlwmiejb/AdminDomainManager!com.intertel.wmi.ejb.auth.AdminDomainManager java:app/intlwmiejb/AdminDomainManager!com.intertel.wmi.ejb.auth.AdminDomainManager java:module/AdminDomainManager!com.intertel.wmi.ejb.auth.AdminDomainManager java:jboss/exported/wmi/intlwmiejb/AdminDomainManager!com.intertel.wmi.ejb.auth.AdminDomainManager java:global/wmi/intlwmiejb/AdminDomainManager!com.intertel.wmi.ejb.auth.AdminDomainManagerHome java:app/intlwmiejb/AdminDomainManager!com.intertel.wmi.ejb.auth.AdminDomainManagerHome java:module/AdminDomainManager!com.intertel.wmi.ejb.auth.AdminDomainManagerHome java:jboss/exported/wmi/intlwmiejb/AdminDomainManager!com.intertel.wmi.ejb.auth.AdminDomainManagerHome java:global/wmi/intlwmiejb/AdminDomainManager!com.intertel.wmi.ejb.auth.AdminDomainManagerLocal java:app/intlwmiejb/AdminDomainManager!com.intertel.wmi.ejb.auth.AdminDomainManagerLocal java:module/AdminDomainManager!com.intertel.wmi.ejb.auth.AdminDomainManagerLocal
I'm doing some CDI tests in Eclipse Mars and WildFly 8.2.
I have a Dynamic Web Project (as module of an EAR) ItsProjectWEB hosting a simple session scoped bean
#SessionScoped
public class Cart implements Serializable {
private static final long serialVersionUID = 1L;
public Cart() {}
List<String> list = new ArrayList<>();
public List<String> addAndGet(String item){
list.add(item);
return list;
}
}
and a servlet where the bean is injected and invoked
#WebServlet("/ItsServlet")
public class ItsServlet extends HttpServlet {
#Inject Cart cart;
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
StringBuilder text=new StringBuilder();
text.append("Cart = "+cart.addAndGet("Item #"+LocalTime.now().getSecond()));
text.append("\nServed at: "+request.getContextPath());
response.getWriter().append(text);
}
//irrelevant code
}
and everything works fine, this is the structure of the project:
My idea is to make a separate Dynamic Web Project where putting the CDI beans, add this project to my EAR and being able to reference it from inside the other modules. This is what I did:
built a separate project ItsProjectCDI by copying the structure of the first one
Added this project to the Java Build Path of ItsProjectWEB (rightclick -> Java Build Path -> Projects -> Add...)
Tried to inject the bean inside the servlet via #Inject ItsCart cart;
but then I get this errors in the server log
13:22:46,089 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "ItsProjectEAR.ear" (runtime-name: "ItsProjectEAR.ear")
13:22:46,095 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015973: Starting subdeployment (runtime-name: "ItsProjectCDI.war")
13:22:46,096 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015973: Starting subdeployment (runtime-name: "ItsProjectWEB.war")
13:22:46,184 INFO [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016002: Processing weld deployment ItsProjectEAR.ear
13:22:46,197 INFO [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016002: Processing weld deployment ItsProjectCDI.war
13:22:46,223 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.subunit."ItsProjectEAR.ear"."ItsProjectWEB.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."ItsProjectEAR.ear"."ItsProjectWEB.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "ItsProjectWEB.war" of deployment "ItsProjectEAR.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.2.1.Final.jar:8.2.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.8.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.8.0_45]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.8.0_45]
Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class com.mui.servlet.ItsServlet with ClassLoader ModuleClassLoader for Module "deployment.ItsProjectEAR.ear.ItsProjectWEB.war:main" from Service Module Loader
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:72) [wildfly-server-8.2.1.Final.jar:8.2.1.Final]
at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:107)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:92)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:77)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.2.1.Final.jar:8.2.1.Final]
... 5 more
Caused by: java.lang.NoClassDefFoundError: Lcom/mui/cdi/ItsCart;
at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.8.0_45]
at java.lang.Class.privateGetDeclaredFields(Unknown Source) [rt.jar:1.8.0_45]
at java.lang.Class.getDeclaredFields(Unknown Source) [rt.jar:1.8.0_45]
at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [wildfly-server-8.2.1.Final.jar:8.2.1.Final]
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:68) [wildfly-server-8.2.1.Final.jar:8.2.1.Final]
... 10 more
Caused by: java.lang.ClassNotFoundException: com.mui.cdi.ItsCart from [Module "deployment.ItsProjectEAR.ear.ItsProjectWEB.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
... 15 more
13:22:46,232 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) JBAS014613: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {
"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"ItsProjectEAR.ear\".\"ItsProjectWEB.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"ItsProjectEAR.ear\".\"ItsProjectWEB.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment \"ItsProjectWEB.war\" of deployment \"ItsProjectEAR.ear\"
Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class com.mui.servlet.ItsServlet with ClassLoader ModuleClassLoader for Module \"deployment.ItsProjectEAR.ear.ItsProjectWEB.war:main\" from Service Module Loader
Caused by: java.lang.NoClassDefFoundError: Lcom/mui/cdi/ItsCart;
Caused by: java.lang.ClassNotFoundException: com.mui.cdi.ItsCart from [Module \"deployment.ItsProjectEAR.ear.ItsProjectWEB.war:main\" from Service Module Loader]"},
"JBAS014771: Services with missing/unavailable dependencies" => [
"jboss.deployment.unit.\"ItsProjectEAR.ear\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"ItsProjectEAR.ear\".beanmanager]",
"jboss.deployment.subunit.\"ItsProjectEAR.ear\".\"ItsProjectCDI.war\".weld.weldClassIntrospector is missing [jboss.deployment.subunit.\"ItsProjectEAR.ear\".\"ItsProjectCDI.war\".beanmanager]"
]
}
13:22:46,312 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018565: Replaced deployment "ItsProjectEAR.ear" with deployment "ItsProjectEAR.ear"
13:22:46,315 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.subunit."ItsProjectEAR.ear"."ItsProjectWEB.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."ItsProjectEAR.ear"."ItsProjectWEB.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "ItsProjectWEB.war" of deployment "ItsProjectEAR.ear"
service jboss.deployment.subunit."ItsProjectEAR.ear"."ItsProjectWEB.war".POST_MODULE
I'm not being able to understand what's happening here, the new project is identical to the old one, but injection won't succeed. What am I doing wrong?
I am getting a weird error while deploying my application in Wildfly 8.1 Final
11:06:02,660 INFO [org.hibernate.Version] (ServerService Thread Pool -- 53) HHH000412: Hibernate Core {4.3.5.Final}
11:06:02,661 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 53) HHH000206: hibernate.properties not found
11:06:02,664 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 53) HHH000021: Bytecode provider name : javassist
11:06:02,673 INFO [org.hibernate.validator.internal.util.Version] (MSC service thread 1-14) HV000001: Hibernate Validator 4.3.1.Final
11:06:02,686 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-14) MSC000001: Failed to start service jboss.deployment.unit."bpcDAS-PERF.ear".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."bpcDAS-PERF.ear".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "bpcDAS-PERF.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.8.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.8.0_25]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.8.0_25]
Caused by: java.lang.AbstractMethodError: org.hibernate.validator.internal.engine.ConfigurationImpl.getBootstrapConfiguration()Ljavax/validation/BootstrapConfiguration;
at org.hibernate.validator.internal.cdi.ValidationExtension.<init>(ValidationExtension.java:121)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.8.0_25]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) [rt.jar:1.8.0_25]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) [rt.jar:1.8.0_25]
at java.lang.reflect.Constructor.newInstance(Unknown Source) [rt.jar:1.8.0_25]
at java.lang.Class.newInstance(Unknown Source) [rt.jar:1.8.0_25]
at org.jboss.as.weld.deployment.WeldPortableExtensions.tryRegisterExtension(WeldPortableExtensions.java:54)
at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.loadAttachments(WeldPortableExtensionProcessor.java:121)
at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.deploy(WeldPortableExtensionProcessor.java:81)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
... 5 more
11:06:22,292 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015960: Class Path entry jaxb-api.jar in /C:/wildfly-8.1.0/bin/content/bpcWebServices.war/WEB-INF/lib/jaxb-core-2.2.7.jar does not point to a valid jar for a Class-Path reference.
11:06:22,292 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015960: Class Path entry jaxb-api.jar in /C:/wildfly-8.1.0/bin/content/bpcWebServices.war/WEB-INF/lib/jaxb-impl-2.2.7.jar does not point to a valid jar for a Class-Path reference.
11:06:22,293 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015960: Class Path entry jaxb-core.jar in /C:/wildfly-8.1.0/bin/content/bpcWebServices.war/WEB-INF/lib/jaxb-impl-2.2.7.jar does not point to a valid jar for a Class-Path reference.
11:06:22,631 INFO [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016002: Processing weld deployment bpcWebServices.war
11:06:22,650 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."bpcWebServices.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."bpcWebServices.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "bpcWebServices.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.8.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.8.0_25]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.8.0_25]
Caused by: java.lang.AbstractMethodError: org.hibernate.validator.internal.engine.ConfigurationImpl.getBootstrapConfiguration()Ljavax/validation/BootstrapConfiguration;
at org.hibernate.validator.internal.cdi.ValidationExtension.<init>(ValidationExtension.java:121)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.8.0_25]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) [rt.jar:1.8.0_25]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) [rt.jar:1.8.0_25]
at java.lang.reflect.Constructor.newInstance(Unknown Source) [rt.jar:1.8.0_25]
at java.lang.Class.newInstance(Unknown Source) [rt.jar:1.8.0_25]
at org.jboss.as.weld.deployment.WeldPortableExtensions.tryRegisterExtension(WeldPortableExtensions.java:54)
at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.loadAttachments(WeldPortableExtensionProcessor.java:121)
at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.deploy(WeldPortableExtensionProcessor.java:81)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
... 5 more
Previously I was working on an application which is running on Tomcat 7 server but now I wan to run it on JBoss7.1 Server . But when I am trying to run it. It is showing me this kind of error. I am not getting what is it and how to resolve it. I searched on internet but could not find valuable response.
My log on JBoss is:
09:52:08,117 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "WEB-ERP.war"
09:52:12,994 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."WEB-ERP.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."WEB-ERP.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "WEB-ERP.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_12-ea]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_12-ea]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_12-ea]
Caused by: java.lang.RuntimeException: Error getting reflective information for class org.apache.struts.taglib.logic.ConditionalTagBase with ClassLoader ModuleClassLoader for Module "deployment.WEB-ERP.war:main" from Service Module Loader
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:85)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:70)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:55)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: java.lang.NoClassDefFoundError: Lorg/apache/struts/util/MessageResources;
at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_12-ea]
at java.lang.Class.privateGetDeclaredFields(Unknown Source) [rt.jar:1.7.0_12-ea]
at java.lang.Class.getDeclaredFields(Unknown Source) [rt.jar:1.7.0_12-ea]
at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 10 more
Caused by: java.lang.ClassNotFoundException: org.apache.struts.util.MessageResources from [Module "deployment.WEB-ERP.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
... 15 more
09:52:13,053 INFO [org.jboss.as] (MSC service thread 1-2) JBAS015951: Admin console listening on http://127.0.0.1:9990
09:52:13,055 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "WEB-ERP.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"WEB-ERP.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"WEB-ERP.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"WEB-ERP.war\""}}
09:52:13,056 ERROR [org.jboss.as] (MSC service thread 1-2) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 10052ms - Started 140 of 218 services (1 services failed or missing dependencies, 76 services are passive or on-demand)
09:52:13,107 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment WEB-ERP.war in 51ms
09:52:13,110 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."WEB-ERP.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."WEB-ERP.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "WEB-ERP.war"
09:52:13,116 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"WEB-ERP.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"WEB-ERP.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"WEB-ERP.war\""}}}}
And the error message I am getting is The requested resource (/StrutsHelloWorld/) is not available. And I am working on Struts 2 & Hibernate 4 Integration application which is working fine on Tomcat.
You are missing the Struts classes: they were probably in the Tomcat class path. You should make sure the Struts libraries are added to your WAR file.
The project has classpath dependency to the Struts1 libraries. You should either include Struts1 libraries or exclude dependencies that reference to org.apache.struts.util.MessageResources. This class is found in the following jar:
struts-core-1.3.10.jar