Error getting reflective information for class - java

I am running dynamic web project in Wildfly 10.1.0. I have richfaces-ui.3.3.3.jar in my WEB-INF\lib folder but I am still getting this error.
I have this library included in my web-inf folder
10:32:09,011 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0028: Stopped deployment RGWeb.war (runtime-name: RGWeb.war) in 110ms
10:32:09,012 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0027: Starting deployment of "RGWeb.war" (runtime-name: "RGWeb.war")
10:32:18,918 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0059: Class Path entry logkit-1.2.jar in /D:/wildfly-10.1.0.Final/standalone/deployments/RGWeb.war/WEB-INF/lib/jacorb.jar does not point to a valid jar for a Class-Path reference.
10:32:18,919 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0059: Class Path entry avalon-framework-4.1.5.jar in /D:/wildfly-10.1.0.Final/standalone/deployments/RGWeb.war/WEB-INF/lib/jacorb.jar does not point to a valid jar for a Class-Path reference.
10:32:18,919 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0059: Class Path entry concurrent-1.3.2.jar in /D:/wildfly-10.1.0.Final/standalone/deployments/RGWeb.war/WEB-INF/lib/jacorb.jar does not point to a valid jar for a Class-Path reference.
10:32:18,919 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0059: Class Path entry antlr-2.7.2.jar in /D:/wildfly-10.1.0.Final/standalone/deployments/RGWeb.war/WEB-INF/lib/jacorb.jar does not point to a valid jar for a Class-Path reference.
10:32:18,936 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0059: Class Path entry activation.jar in /D:/wildfly-10.1.0.Final/standalone/deployments/RGWeb.war/WEB-INF/lib/mail.jar does not point to a valid jar for a Class-Path reference.
10:32:19,679 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."RGWeb.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."RGWeb.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "RGWeb.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:154)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
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: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class com.revguru.crs.web.rm.vo.RevenueRules with ClassLoader ModuleClassLoader for Module "deployment.RGWeb.war:main" from Service Module Loader
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70)
at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:57)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:106)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:91)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:76)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
... 5 more
Caused by: java.lang.NoClassDefFoundError: Lorg/richfaces/component/html/HtmlDataTable;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
at java.lang.Class.getDeclaredFields(Class.java:1916)
at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:72)
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66)
... 10 more
Caused by: java.lang.ClassNotFoundException: org.richfaces.component.html.HtmlDataTable from [Module "deployment.RGWeb.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
... 15 more
10:32:19,680 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) WFLYCTL0013: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {
"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"RGWeb.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"RGWeb.war\".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment \"RGWeb.war\"
Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class com.revguru.crs.web.rm.vo.RevenueRules with ClassLoader ModuleClassLoader for Module \"deployment.RGWeb.war:main\" from Service Module Loader
Caused by: java.lang.NoClassDefFoundError: Lorg/richfaces/component/html/HtmlDataTable;
Caused by: java.lang.ClassNotFoundException: org.richfaces.component.html.HtmlDataTable from [Module \"deployment.RGWeb.war:main\" from Service Module Loader]"},
"WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"RGWeb.war\".POST_MODULE"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
}
10:32:19,710 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) WFLYSRV0016: Replaced deployment "RGWeb.war" with deployment "RGWeb.war"
10:32:19,711 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service jboss.deployment.unit."RGWeb.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."RGWeb.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "RGWeb.war"
service jboss.deployment.unit."RGWeb.war".POST_MODULE

From Wildfly.org webpage:
Java 7 support has been discontinued allowing for deeper
integration with the Java 8 runtime. While Java 9 is still in
development, this release runs on the current development snapshots.
Please make sure, you build your war with Java 1.8

I got this error when I accidently deployed a JAR file instead of a WAR file. Sometimes it's not easy to figure out such simple failures.
Maybe this is your case?
Good luck.

This error comes if your java class is referring for some jar or xml file like persistence.xml and does not exists

In my case when i try to deploy a war file it gave me the error you are pointing.
the thing is there is a line called
java.lang.**NoClassDefFoundError**: Lorg/richfaces/component/html/HtmlDataTable; at java.lang.Class.getDeclaredFields0(Native Method)
that means wildfly is looking for Lorg/richfaces/component/html/HtmlDataTable
and it cannot find that in given location
you can check if the module is really there.if not put the module to correct location and it will work.hope this is helpfull to someone

Related

After WildFly update: signed jars in WEB-INF/libs fail signature check

a strange thing is going on and I need you help to point me into the correct direction.
After the upgrade from WildFly15 to WildFly 24.0.1 some (not all) applications fail during deployment with the following warnings and error(s):
2021-08-12 14:33:59,148 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0003: Could not index class org/osgi/service/device/Match.class at /content/myapplication.war/WEB-INF/lib/org.eclipse.osgi.services-3.3.100.v20130513-1956.jar: java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:317)
at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:259)
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318)
at java.util.jar.JarVerifier.update(JarVerifier.java:230)
at java.util.jar.JarFile.initializeVerifier(JarFile.java:383)
at java.util.jar.JarFile.getInputStream(JarFile.java:455)
at org.jboss.vfs.spi.JavaZipFileSystem.openInputStream(JavaZipFileSystem.java:182)
at org.jboss.vfs.VirtualFile.openStream(VirtualFile.java:318)
at org.jboss.as.server.deployment.annotation.ResourceRootIndexer.indexResourceRoot(ResourceRootIndexer.java:98)
at org.jboss.as.server.deployment.annotation.AnnotationIndexProcessor.deploy(AnnotationIndexProcessor.java:51)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:182)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.lang.Thread.run(Thread.java:748)
2021-08-12 14:34:01,181 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."myapplication.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."myapplication.war".STRUCTURE: WFLYSRV0153: Failed to process phase STRUCTURE of deployment "myapplication.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:189)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:317)
at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:259)
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318)
at java.util.jar.JarVerifier.update(JarVerifier.java:230)
at java.util.jar.JarFile.initializeVerifier(JarFile.java:383)
at java.util.jar.JarFile.getInputStream(JarFile.java:455)
at org.jboss.vfs.spi.JavaZipFileSystem.openInputStream(JavaZipFileSystem.java:182)
at org.jboss.vfs.VirtualFile.openStream(VirtualFile.java:318)
at org.jboss.vfs.VFSUtils.readManifest(VFSUtils.java:241)
at org.jboss.vfs.VFSUtils.getManifest(VFSUtils.java:227)
at org.jboss.as.server.deployment.module.ManifestAttachmentProcessor.getManifest(ManifestAttachmentProcessor.java:76)
at org.jboss.as.server.deployment.module.ManifestAttachmentProcessor.deploy(ManifestAttachmentProcessor.java:65)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:182)
... 8 more
WildFly has the same configuration, its on the same machine and we use the same JVM (1.8.something) to run the server.
The error is caused by one or more invalid signatures in the jars in /WEB-INF/lib
Why does it appear now on the new server (wasnt WF15 validating the
jars already)?
How to solve?
Can we remove signatures from the jars during war assemply using maven or disable signature check on WF24?
Any help/hint is highly appreciated!
Have a nice day!

Why can't JBoss EAP 7.0.0.GA find my EJBs?

The errors that I am seeing:
10:54:25,376 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.deployment.subunit."xxxEAR-1.0.0-SNAPSHOT.ear"."upload-api-talon.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."xxxEAR-1.0.0-SNAPSHOT.ear"."xxx.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment "xxx.war" of deployment "xxxEAR-1.0.0-SNAPSHOT.ear"
More Errors I am seeing:
10:54:25,429 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "xxxEAR-1.0.0-SNAPSHOT.ear")]) - failure description: {
"WFLYCTL0080: Failed services" => {"jboss.deployment.subunit.\"xxxEAR-1.0.0-SNAPSHOT.ear\".\"xxx.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"xxxEAR-1.0.0-SNAPSHOT.ear\".\"xxx.war\".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment \"xxx.war\" of deployment \"xxxEAR-1.0.0-SNAPSHOT.ear\"
Caused by: java.lang.ClassFormatError: Failed to link javax/faces/webapp/FacetTag (Module \"deployment.xxxEAR-1.0.0-SNAPSHOT.ear.xxx.war:main\" from Service Module Loader): Absent Code attribute in method that is not native or abstract in class file javax/faces/webapp/FacetTag"},
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.naming.context.java.comp.\"xxxEAR-1.0.0-SNAPSHOT\".transient-store-data.TransientMetadataStorageImpl.InAppClientContainer is missing [jboss.naming.context.java.comp.\"xxxEAR-1.0.0-SNAPSHOT\".transient-store-data.TransientMetadataStorageImpl]",
"jboss.naming.context.java.comp.\"xxxEAR-1.0.0-SNAPSHOT\".transient-store-logic.StoreTrustedDocumentsInTransient.Validator is missing [jboss.naming.context.java.comp.\"xxxEAR-1.0.0-SNAPSHOT\".transient-store-logic.StoreTrustedDocumentsInTransient]",
It looks like it is saying that it can't find my classes, but it can find my jars. How is that possible?
I see this log as well indicating that it can find the Library:
10:54:25,408 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-1) WFLYEJB0473: JNDI bindings for session bean named 'QuarantineTransientMetadataStorageImpl' in deployment unit 'subdeployment "transient-store-data.jar" of deployment "upload-api-talonEAR-1.0.0-SNAPSHOT.ear"' are as follows:
java:global/upload-api-talonEAR-1.0.0-SNAPSHOT/transient-store-data/QuarantineTransientMetadataStorageImpl!com.usaa.api.enterprise.contentstorage.data.connectors.IQuarantineMetadataStorage
java:app/transient-store-data/QuarantineTransientMetadataStorageImpl!com.usaa.api.enterprise.contentstorage.data.connectors.IQuarantineMetadataStorage
java:module/QuarantineTransientMetadataStorageImpl!com.usaa.api.enterprise.contentstorage.data.connectors.IQuarantineMetadataStorage
java:global/upload-api-talonEAR-1.0.0-SNAPSHOT/transient-store-data/QuarantineTransientMetadataStorageImpl
java:app/transient-store-data/QuarantineTransientMetadataStorageImpl
java:module/QuarantineTransientMetadataStorageImpl
Honestly, the log is all over the place
If you deploying EJBs, it should be packed as JAR and should have ejb-jar.xml as descriptor. I don't think we can pack EJBs along with web appliaction file.
Typical Structure:
EAR
WARs - Web Modules
JARs - EJBs

"Given parent is not an ancestor of this virtual file" error when adding Spring library

I'm implementing some web app that uses numerous libraries (Spring, Log4j, Jackson,...). Until now, everything worked ok, but if I try to add another Spring library (webmvc - I'm implementing REST API that needs DispatcherServlet class), I'm getting the following error when deploying on JBoss AS 7.1.1:
2017-11-28 08:31:26,678 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "Office.war"
2017-11-28 08:31:27,973 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.deployment.subunit."Office.ear"."Office.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."Office.ear"."Office.war".PARSE: Failed to process phase PARSE of subdeployment "Office.war" of deployment "Office.ear"
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$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_45]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45]
Caused by: java.lang.IllegalArgumentException: Given parent is not an ancestor of this virtual file
at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:116) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:122) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:122) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:122) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:122) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:122) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:122) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:122) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:122) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:122) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:122) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:122) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:122) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:110) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.as.web.deployment.TldParsingDeploymentProcessor.processTlds(TldParsingDeploymentProcessor.java:107)
at org.jboss.as.web.deployment.TldParsingDeploymentProcessor.deploy(TldParsingDeploymentProcessor.java:83)
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
2017-11-28 08:31:28,224 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "Office.ear" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"Office.ear\".\"Office.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"Office.ear\".\"Office.war\".PARSE: Failed to process phase PARSE of subdeployment \"Office.war\" of deployment \"Office.ear\""}}
2017-11-28 08:31:28,336 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment Office.war in 113ms
2017-11-28 08:31:28,339 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment Office.ear in 116ms
2017-11-28 08:31:28,341 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.subunit."Office.ear"."Office.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."Office.ear"."Office.war".PARSE: Failed to process phase PARSE of subdeployment "Office.war" of deployment "Office.ear"
2017-11-28 08:31:28,347 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"Office.ear\".\"Office.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"Office.ear\".\"Office.war\".PARSE: Failed to process phase PARSE of subdeployment \"Office.war\" of deployment \"Office.ear\""}}}}
Here's my EAR deployment assembly
and my web module assembly.
I have no idea why that error appears, other libraries cause no trouble. Any suggestions?
EDIT 1:
I noticed another strange thing. In Eclipse "Add and remove" dialog, there are three entries of Spring webmvc jars at available resources section.
Where do those entries come from? Could it be Eclipse issue?
EDIT 2:
I've moved all jars directly into lib folder (instead of subfolders like lib/spring/spring-webmvc-4.0.6.jar) and I deployed my app successfully. Can anyone explain why that error disappeared after moving jars?
Delete the previous deployment from standalone/deployments folder. Clean the server and redeploy the EAR. You might try by changing java version to Java 7, if you are using Java 6.
Jboss AS 7.1.1 has lots of such issues. If possible, change the server to Jboss AS 7.2. This is one of the issues that was fixed in JBoss 7.1.2. You can have a look at this link about this bug and the release it was fixed in.
I have put all jars directly into lib folder (and NOT into subfolders like lib/spring/spring-webmvc.4.0.6.jar) and I succeeded with deployment. Not sure why - It would be great if someone can explain what is the reason.

What is JBOSS- "Empty name segment is not allowed for java" error

I am newbee to JBOSS developement and tring to run a project from eclipse but I am getting "Empty name segment is not allowed for java" error. I know such error comes when our jndi resource name is empty but in such case it specifies as "env" and not "java" which is in my case. Posting my stacktrace below. I am using JBOSS 7.1 version.
14:34:04,440 WARN [org.jboss.as.ee] (MSC service thread 1-5) JBAS011001: Could not resolve resource-env-ref java:/TransactionManager
14:34:04,440 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.deployment.unit."workflow.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."workflow.war".INSTALL: Failed to process phase INSTALL of deployment "workflow.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$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_51]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_51]
at java.lang.Thread.run(Thread.java:743) [rt.jar:1.6.0_51]
Caused by: java.lang.IllegalArgumentException: Empty name segment is not allowed for java
at org.jboss.msc.service.ServiceName.of(ServiceName.java:85) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceName.append(ServiceName.java:112) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.as.naming.deployment.ContextNames.buildServiceName(ContextNames.java:178)
at org.jboss.as.naming.deployment.ContextNames$BindInfo.<init>(ContextNames.java:190)
at org.jboss.as.naming.deployment.ContextNames$BindInfo.<init>(ContextNames.java:181)
at org.jboss.as.naming.deployment.ContextNames.bindInfoFor(ContextNames.java:124)
at org.jboss.as.naming.deployment.ContextNames.bindInfoForEnvEntry(ContextNames.java:165)
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deployPersistenceUnit(PersistenceUnitDeploymentProcessor.java:319)
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.addPuService(PersistenceUnitDeploymentProcessor.java:258)
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.handleWarDeployment(PersistenceUnitDeploymentProcessor.java:194)
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deploy(PersistenceUnitDeploymentProcessor.java:118)
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
14:34:04,471 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "workflow.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"workflow.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"workflow.war\".INSTALL: Failed to process phase INSTALL of deployment \"workflow.war\""}}
14:34:04,471 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."workflow.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."workflow.war".INSTALL: Failed to process phase INSTALL of deployment "workflow.war"
14:34:04,471 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.\"workflow.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"workflow.war\".INSTALL: Failed to process phase INSTALL of deployment \"workflow.war\""}}}}
14:34:04,659 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment workflow.war in 184ms
I see one warning saying that JBAS011001: Could not resolve resource-env-ref java:/TransactionManager but dont think error is caused by it.
Please guide me. Thanks in advance.
Zebronix_777
I need to remove java:/ prefix from the datasources mentioned in standalone.xml. It got solved. Because in persistance.xml it was without that prefix.

Jboss server error : Failed to start service jboss.deployment.unit."jbpm-console.war"

When starting the jboss server, it giving an error Failed to start service jboss.deployment.unit."jbpm-console.war". But when i'm running jbpm6 demo using start.demo its working fine.
23:43:41,042 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."jbpm-console.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."jbpm-console.war".PARSE: Failed to process phase PARSE of deployment "jbpm-console.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(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_09]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_09]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09]
Caused by: org.jboss.msc.service.ServiceNotFoundException: Service service jboss.ejb.default-resource-adapter-name-service not found
at org.jboss.msc.service.ServiceContainerImpl.getRequiredService(ServiceContainerImpl.java:447) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.as.ejb3.deployment.processors.MessageDrivenComponentDescriptionFactory.getDefaultResourceAdapterName(MessageDrivenComponentDescriptionFactory.java:273)
at org.jboss.as.ejb3.deployment.processors.MessageDrivenComponentDescriptionFactory.processMessageDrivenBeanMetaData(MessageDrivenComponentDescriptionFactory.java:244)
at org.jboss.as.ejb3.deployment.processors.MessageDrivenComponentDescriptionFactory.processBeanMetaData(MessageDrivenComponentDescriptionFactory.java:88)
at org.jboss.as.ejb3.deployment.processors.AnnotatedEJBComponentDescriptionDeploymentUnitProcessor.processBeanMetaData(AnnotatedEJBComponentDescriptionDeploymentUnitProcessor.java:65)
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:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
23:43:41,104 INFO [org.jboss.as] (MSC service thread 1-6) JBAS015951: Admin console listening on http://127.0.0.1:9990
23:43:41,104 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "jbpm-console.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"jbpm-console.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"jbpm-console.war\".PARSE: Failed to process phase PARSE of deployment \"jbpm-console.war\""}}
23:43:41,104 ERROR [org.jboss.as] (MSC service thread 1-6) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 49681ms - Started 344 of 423 services (1 services failed or missing dependencies, 76 services are passive or on-demand)
23:43:41,104 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015871: Deploy of deployment "dashboard-builder.war" was rolled back with no failure message
try staring jboss with ./standalone.sh -c standalone-full.xml or any other alternative that allows you to start with the full profile
Best solution: Goto jboss-as-7.1.1.Final\standalone\deployments folder and delete all existing files....
Run again your problem will be solved
I had the exact same problem, found that I was missing
<mdb>
<resource-adapter-ref resource-adapter-name="hornetq-ra"/>
<bean-instance-pool-ref pool-name="mdb-strict-max-pool"/>
</mdb>
under
<subsystem xmlns="urn:jboss:domain:ejb3:1.2">
in standalone/configuration/standalone.xml
delete your project folder under C:\....\wildfly-9.0.1.Final\standalone\deployments\YOUR-PROJEKT-FOLDER
restart your wildfly-server
you should run standlone.bat or .sh with -c standalone-full.xml switch
may be work.
I had a similar issue, my error was:
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: java.lang.ClassNotFoundException:org.glassfish.jersey.servlet.ServletContainer from [Module "deployment.RESTful_Services_CRUD.war:main" from Service Module Loader]
I use jboss and glassfish so I changed the web.xml to the following:
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
Instead of:
<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
Hope this work for you.
If you use Intellij Idea you can click services tab and select artifacts. Then you can click add all and ok.

Categories