&引用;GWT模块可能需要(重新)编译;当部署到Tomcat中时,使用maven生成war
我在访问url时遇到问题(“GWT模块‘SmartWPS’可能需要(重新)编译”)。我已经通过运行maven clean install生成了war文件。我在/webapp文件夹中放置了相同的war文件 我已经使用GWT开发了应用程序,客户端GIN作为依赖项注入,服务器端作为Spring依赖项注入。当我运行maven clean安装时,war文件正在成功生成。将war文件放入/webapp文件夹后,我在tomcat日志文件夹中看到以下错误, 2012年7月18日晚上8:43:02 org.apache.catalina.core.ApplicationContext 日志严重:StandardWrapper。可丢弃 org.springframework.beans.factory.BeanCreationException:错误 正在创建在ServletContext中定义了名称为“urlMapping”的bean 资源[/WEB-INF/spring/springservlet.xml]:bean的初始化 失败;嵌套异常是 org.springframework.beans.factory.BeanCreationException:错误 正在创建中定义了名为“empDetailsController”的bean ServletContext资源[/WEB-INF/spring/spring servlet.xml]:无法 创建内部bean 'com.infor.ion.boddesk.ui.sample.server.EmployeeDetailsServiceImpl#ca56214' 类型 [com.infor.ion.boddesk.ui.sample.server.EmployeeDetailsServiceImpl] 设置bean属性“remoteService”时;嵌套异常是 org.springframework.beans.factory.BeanCreationException:错误 创建名为的bean 'com.infor.ion.boddesk.ui.sample.server.EmployeeDetailsServiceImpl#ca56214' 在ServletContext资源中定义 [/WEB-INF/spring/springservlet.xml]:bean实例化失败; 嵌套异常是 org.springframework.beans.BeanInstantiationException:无法 实例化bean类 [com.infor.ion.boddesk.ui.sample.server.EmployeeDetailsServiceImpl]: 构造函数抛出异常;嵌套异常是 com.sun.jersey.api.client.clienthandler例外: java.net.ConnectException:连接超时:连接在 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527) 在 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) 在 org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) 在 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) 在 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) 在 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) 在 org.springframework.beans.factory.support.DefaultListableBeanFactory.PreInstanceSingleton(DefaultListableBeanFactory.java:580) 在 org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) 在 org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) 在 org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:442) 在 org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458) 在 org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339) 在 org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306) 在 org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127) 我的spring-servlet.xml文件如下所示, http://www.springframework.org/schema/beans/spring-beans-2.5.xsd“>&引用;GWT模块可能需要(重新)编译;当部署到Tomcat中时,使用maven生成war,gwt,spring-mvc,mojo,gwt-2.4,gwt-maven-plugin,Gwt,Spring Mvc,Mojo,Gwt 2.4,Gwt Maven Plugin,我在访问url时遇到问题(“GWT模块‘SmartWPS’可能需要(重新)编译”)。我已经通过运行maven clean install生成了war文件。我在/webapp文件夹中放置了相同的war文件 我已经使用GWT开发了应用程序,客户端GIN作为依赖项注入,服务器端作为Spring依赖项注入。当我运行maven clean安装时,war文件正在成功生成。将war文件放入/webapp文件夹后,我在tomcat日志文件夹中看到以下错误, 2012年7月18日晚上8:43:02 org.apa
/**/rpc=empDetailsController
当maven iam面临所有这些问题时,使用build.xml启用它是成功的,甚至在jetty服务器中也成功运行
谢谢,
Saritha清理临时文件(运行>%temp%)
清理项目(在IDE中)
清理浏览器的缓存。(使用CCleaner)
再次编译项目。可能重复的
<!-- 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"