0

我在访问 url 时遇到了问题(“GWT 模块 'SmartWPS' 可能需要(重新)编译”)。我通过运行 maven-clean-install 生成了 war 文件。我将相同的战争文件放在 /webapp 文件夹中。

我使用 GWT 开发了应用程序,客户端 GIN 作为依赖注入,服务器端作为 Spring 依赖注入。当我运行 maven-clean-install 时,war 文件正在成功生成。将war文件放入/webapp文件夹后,我在tomcat日志文件夹中看到以下错误,

2012 年 7 月 18 日下午 8:43:02 org.apache.catalina.core.ApplicationContext 日志严重:StandardWrapper.Throwable org.springframework.beans.factory.BeanCreationException:创建 ServletContext 资源中定义的名称为“urlMapping”的 bean 时出错 [/WEB -INF/spring/spring-servlet.xml]:bean初始化失败;嵌套异常是 org.springframework.beans.factory.BeanCreationException:在 ServletContext 资源 [/WEB-INF/spring/spring-servlet.xml] 中定义名称为“empDetailsController”的 bean 创建错误:无法创建内部 bean 'com.infor.ion .boddesk.ui.sample.server.EmployeeDetailsS​​erviceImpl#ca56214' 类型为 [com.infor.ion.boddesk.ui.sample.server.EmployeeDetailsS​​erviceImpl],同时设置 bean 属性“remoteService”;嵌套异常是 org.springframework.beans.factory。BeanCreationException:在 ServletContext 资源 [/WEB-INF/spring/spring-servlet.xml] 中定义的名称为“com.infor.ion.boddesk.ui.sample.server.EmployeeDetailsS​​erviceImpl#ca56214”的 bean 创建错误:bean 的实例化失败;嵌套异常是 org.springframework.beans.BeanInstantiationException:无法实例化 bean 类 [com.infor.ion.boddesk.ui.sample.server.EmployeeDetailsS​​erviceImpl]:构造函数抛出异常;嵌套异常是 com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection timed out: connect at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527) at org. springframework.beans.factory.support.AbstractAutowireCapableBeanFactory。

我的 spring-servlet.xml 文件如下所示,

http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

<!-- The application context definition for the DispatcherServlet -->

<!-- Maps the request through to a concrete controller instance -->
<bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
    <property name="mappings">
        <value>
        <!-- /**/SampleApp.rpc=sampleAppController -->
        /**/empDetails.rpc=empDetailsController
        </value>
    </property>
</bean>

<!-- GwtRpcController wraps our service in order to decode the incoming -->
<!-- request then delegates processing of the call to the POJO service -->
<!-- and then encodes the return value forwarding the response. -->    <!--<bean id="sampleAppController" class="com.infor.ion.boddesk.server.GwtRpcController">
    <property name="remoteService">
        <bean class="com.infor.ion.boddesk.server.sampleapp.SampleAppService" />
    </property>
</bean>  -->      <bean id="empDetailsController" class="com.infor.ion.boddesk.ui.sample.server.GwtRpcController">
    <property name="remoteService">
        <bean class="com.infor.ion.boddesk.ui.sample.server.EmployeeDetailsServiceImpl"

/>

当使用面临所有这些问题的 maven iam 启用时,使用 build.xml,它刚刚成功,甚至在码头服务器中也成功运行。

谢谢,萨丽莎

4

1 回答 1

0

清理临时文件(运行 > %temp%)清理你的项目(在你的 IDE 中)清理浏览器的缓存。(使用 CCleaner)再次编译项目。

于 2012-07-19T16:53:22.327 回答