Spring 多模块maven项目模块作为soap web服务公开

Spring 多模块maven项目模块作为soap web服务公开,spring,web-services,maven,soap,module,Spring,Web Services,Maven,Soap,Module,我有一个多模块maven spring项目。结构如下- ParentService ---ChildService-service ---ChildService-core ---ChildService-web ---ChildService-wsClient ---ChildService-mongo 我已经创建了一个名为ChildService wsService的新模块,我将在其中编写方法并公开为Axis2 SOAP web服务。我已经能够在这个模块项目的类中编写独立的方法并公开为服务

我有一个多模块maven spring项目。结构如下-

ParentService
---ChildService-service
---ChildService-core
---ChildService-web
---ChildService-wsClient
---ChildService-mongo
我已经创建了一个名为ChildService wsService的新模块,我将在其中编写方法并公开为Axis2 SOAP web服务。我已经能够在这个模块项目的类中编写独立的方法并公开为服务,但我想调用ChildService模块的方法

当我尝试调用ChildService服务模块的方法时,它会给我诸如NoClassDefFoundError之类的错误

下面是示例代码--

我得到如下错误--

若我在课堂上包括下面这一行,那个么我也得到了classnotfound错误

extends SpringBeanAutowiringSupport

您需要将需要作为依赖项的其他项目包括在pom.xml中:


${project.groupId}
儿童服务处
${project.version}
编写
...

然后,您需要在本地存储库中安装这些依赖项(
mvn clean install
即可),或者在Eclipse中,您需要激活
Workspace resolution
(右键单击您的模块,Maven>启用Workspace resolution)。

谢谢!我已经补充了这一点。以下是我的pom--
com.sahaj.portal ChildService核心0.0.1-SNAPSHOT com.sahaj.portal ChildService 0.0.1-SNAPSHOT
在本地存储库中安装后,还需要在Eclipse中进行Maven更新(右键单击,Maven>Update Project;检查字段
Force Update of snapshot/Releases
)。是否有效?获取以下错误Servlet AxisAdminServlet抛出load()异常:java.lang.ClassNotFoundException:org.springframework.web.context.support.SpringBeanAutowiringSupport from[模块]“deployment.ChildService wsServiceEAR.ear.ChildService wsService.war:main”来自服务模块加载器]未能在模块“deployment.ChildService wsServiceEAR.ear.ChildService wsService.war:main”来自服务模块加载器:java.lang.LinkageError:链接com/test/HelloWorld(模块)失败”deployment.ChildService wsServiceEAR.ear.ChildService wsService.war:main“来自服务模块加载器)嗯,它们是使用
ServiceLoader
机制自动加载的服务吗?
Error: java.lang.NoClassDefFoundError: com/service/test/business/ITestService at java.lang.Class.forName0
extends SpringBeanAutowiringSupport