以前的项目是基于ejb2.x做的,ejb的配置文件为ejb-jar.xml和jboss.xml,现在把这个项目移到新版本服务器中的时候,报解析ejb-jar错误。 查阅许多资料才找到解决办法,原来jboss7以上的版本都不支持jboss.xml文件了,需要将其换成jboss-ejb3.xml才行,如有需要参考配置文件,请去我的资源中下载。 20:17:05,047 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named ServiceInovker in deployment unit subdeployment "TopDeskEJB.jar" of deployment "tsm-5topdesk.ear" are as follows:java:global/tsm-5topdesk/TopDeskEJB/ServiceInovker!com.topsec.topdesk.ejb.interfaces.ServiceInovkerjava:app/TopDeskEJB/ServiceInovker!com.topsec.topdesk.ejb.interfaces.ServiceInovkerjava:module/ServiceInovker!com.topsec.topdesk.ejb.interfaces.ServiceInovkerjava:jboss/exported/tsm-5topdesk/TopDeskEJB/ServiceInovker!com.topsec.topdesk.ejb.interfaces.ServiceInovkerjava:global/tsm-5topdesk/TopDeskEJB/ServiceInovker!com.topsec.topdesk.ejb.interfaces.ServiceInovkerLocalHomejava:app/TopDeskEJB/ServiceInovker!com.topsec.topdesk.ejb.interfaces.ServiceInovkerLocalHomejava:module/ServiceInovker!com.topsec.topdesk.ejb.interfaces.ServiceInovkerLocalHomejava:global/tsm-5topdesk/TopDeskEJB/ServiceInovker!com.topsec.topdesk.ejb.interfaces.ServiceInovkerLocaljava:app/TopDeskEJB/ServiceInovker!com.topsec.topdesk.ejb.interfaces.ServiceInovkerLocaljava:module/ServiceInovker!com.topsec.topdesk.ejb.interfaces.ServiceInovkerLocaljava:global/tsm-5topdesk/TopDeskEJB/ServiceInovker!com.topsec.topdesk.ejb.interfaces.ServiceInovkerHomejava:app/TopDeskEJB/ServiceInovker!com.topsec.topdesk.ejb.interfaces.ServiceInovkerHomejava:module/ServiceInovker!com.topsec.topdesk.ejb.interfaces.ServiceInovkerHomejava:jboss/exported/tsm-5topdesk/TopDeskEJB/ServiceInovker!com.topsec.topdesk.ejb.interfaces.ServiceInovkerHome 20:17:05,047 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named UsbEjb in deployment unit subdeployment "TopDeskEJB.jar" of deployment "tsm-5topdesk.ear" are as follows:java:global/tsm-5topdesk/TopDeskEJB/UsbEjb!com.topsec.topdesk.ejb.usb.UsbEjbLocalHomejava:app/TopDeskEJB/UsbEjb!com.topsec.topdesk.ejb.usb.UsbEjbLocalHomejava:module/UsbEjb!com.topsec.topdesk.ejb.usb.UsbEjbLocalHomejava:global/tsm-5topdesk/TopDeskEJB/UsbEjb!com.topsec.topdesk.ejb.usb.UsbEjbHomejava:app/TopDeskEJB/UsbEjb!com.topsec.topdesk.ejb.usb.UsbEjbHomejava:module/UsbEjb!com.topsec.topdesk.ejb.usb.UsbEjbHomejava:jboss/exported/tsm-5topdesk/TopDeskEJB/UsbEjb!com.topsec.topdesk.ejb.usb.UsbEjbHomejava:global/tsm-5topdesk/TopDeskEJB/UsbEjb!com.topsec.topdesk.ejb.usb.UsbEjbLocaljava:app/TopDeskEJB/UsbEjb!com.topsec.topdesk.ejb.usb.UsbEjbLocaljava:module/UsbEjb!com.topsec.topdesk.ejb.usb.UsbEjbLocaljava:global/tsm-5topdesk/TopDeskEJB/UsbEjb!com.topsec.topdesk.ejb.usb.UsbEjbjava:app/TopDeskEJB/UsbEjb!com.topsec.topdesk.ejb.usb.UsbEjbjava:module/UsbEjb!com.topsec.topdesk.ejb.usb.UsbEjbjava:jboss/exported/tsm-5topdesk/TopDeskEJB/UsbEjb!com.topsec.topdesk.ejb.usb.UsbEjb
--------------------- 作者:zhanglu5116 来源:CSDN 原文:https://blog.csdn.net/zhanglu5116/article/details/16870001?utm_source=copy 版权声明:本文为博主原创文章,转载请附上博文链接!