"Exception class: class CustomAppException cannot be marked as an application exception because it is of type java.rmi.RemoteException" occurred at EJB deployment in EAP 6.0
Issue
The following ERROR occurred at EJB deployment in JBoss EAP 6.0.
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.deployment.subunit."foobar.ear"."hoge.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."foobar.ear"."hoge.jar".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "hoge.jar" of deployment "foobar.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123) [jboss-as-server-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_05]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_05]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_05]
Caused by: java.lang.IllegalArgumentException: JBAS014180: [EJB 3.1 spec, section 14.1.1] Exception class: class com.example.exception.CustomAppException cannot be marked as an application exception because it is of type java.rmi.RemoteException
at org.jboss.as.ejb3.deployment.ApplicationExceptions.addApplicationException(ApplicationExceptions.java:69)
at org.jboss.as.ejb3.deployment.processors.merging.ApplicationExceptionMergingProcessor.deploy(ApplicationExceptionMergingProcessor.java:68)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116) [jboss-as-server-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
... 5 more
Environment
- JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.