当前位置: 代码迷 >> Java Web开发 >> spring + ejb3.x + jboss7.1 初始化不已本地的Local Bean
  详细解决方案

spring + ejb3.x + jboss7.1 初始化不已本地的Local Bean

热度:1016   发布时间:2016-04-16 22:25:24.0
spring + ejb3.x + jboss7.1 初始化不了本地的Local Bean
一个是ejb程序 jar  一个是war程序。
这两个都封装到ear中。
启动的时候,ejb是正常的。而加载war时候就报错。
下面是日志文件。

17:22:41,472 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-2) JNDI bindings for session bean named testTestBean in deployment unit subdeployment "SecurityTraceability_Core_1.0_Alpha.jar" of deployment "SecurityTraceability_EAR_1.0_Alpha.ear" are as follows:

java:global/SecurityTraceability_EAR_1.0_Alpha/SecurityTraceability_Core_1.0_Alpha/testTestBean!com.ampthon.st.service.TestTestLocal
java:app/SecurityTraceability_Core_1.0_Alpha/testTestBean!com.ampthon.st.service.TestTestLocal
java:module/testTestBean!com.ampthon.st.service.TestTestLocal
java:global/SecurityTraceability_EAR_1.0_Alpha/SecurityTraceability_Core_1.0_Alpha/testTestBean!com.ampthon.st.service.TestTestRemote
java:app/SecurityTraceability_Core_1.0_Alpha/testTestBean!com.ampthon.st.service.TestTestRemote
java:module/testTestBean!com.ampthon.st.service.TestTestRemote
java:jboss/exported/SecurityTraceability_EAR_1.0_Alpha/SecurityTraceability_Core_1.0_Alpha/testTestBean!com.ampthon.st.service.TestTestRemote

17:22:41,553 WARN  [org.jboss.as.ee] (MSC service thread 1-2) JBAS011006: Not installing optional component org.springframework.web.context.request.async.StandardServletAsyncWebRequest due to exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011054: Could not find default constructor for class org.springframework.web.context.request.async.StandardServletAsyncWebRequest
at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:606)
at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:81)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [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_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]

17:22:42,025 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (MSC service thread 1-2) No Spring WebApplicationInitializer types detected on classpath
17:22:42,091 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (MSC service thread 1-2) Initializing Spring root WebApplicationContext
17:22:42,097 INFO  [org.springframework.web.context.ContextLoader] (MSC service thread 1-2) Root WebApplicationContext: initialization started
17:22:42,451 INFO  [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-2) Refreshing Root WebApplicationContext: startup date [Fri May 09 17:22:42 CST 2014]; root of context hierarchy
17:22:42,560 INFO  [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-2) Loading XML bean definitions from class path resource [main/resources/applicationContext.xml]
17:22:42,675 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011402: Starting Persistence Unit Service 'SecurityTraceability_EAR_1.0_Alpha.ear/SecurityTraceability_Core_1.0_Alpha.jar#SecurityTraceability_JPA_1.0_Alpha'
17:22:42,953 INFO  [org.hibernate.annotations.common.Version] (MSC service thread 1-1) HCANN000001: Hibernate Commons Annotations {4.0.1.Final}
17:22:42,979 INFO  [org.hibernate.Version] (MSC service thread 1-1) HHH000412: Hibernate Core {4.0.1.Final}
17:22:42,980 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-1) HHH000206: hibernate.properties not found
17:22:42,994 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-1) HHH000021: Bytecode provider name : javassist
17:22:43,037 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-1) HHH000204: Processing PersistenceUnitInfo [
name: SecurityTraceability_JPA_1.0_Alpha
...]
17:22:43,110 INFO  [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-2) Loading XML bean definitions from class path resource [main/resources/ejb-jndi-JBoss.xml]
17:22:43,449 INFO  [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] (MSC service thread 1-2) JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning
  相关解决方案