我正在尝试在使用Java 8的本地Websphere Application Server(版本“ 8.5.5.9”)上部署应用程序
我总是会收到此错误:
[1/16/19 14:40:21:530 GMT] 000000c3 webapp I com.ibm.ws.webcontainer.webapp.WebApp log SRVE0292I: Servlet Message - [adminART_war#adminART.war]:.Initializing Spring FrameworkServlet 'adr'
[1/16/19 14:40:21:783 GMT] 000000c3 SystemOut O INFO SecurityNamespaceHandler -- -- --Spring Security 'config' module version is 4.0.1.RELEASE
[1/16/19 14:40:30:424 GMT] 000000c3 SystemOut O INFO GlobalMethodSecurityBeanDefinitionParser -- -- --Expressions were enabled for method security but no SecurityExpressionHandler was configured. All hasPermision() expressions will evaluate to false.
[1/16/19 14:41:42:690 GMT] 000000c3 ServletWrappe I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [adminART_war] [/ArtOSAdmin] [adr]: Initialization successful.
[1/16/19 14:41:42:691 GMT] 000000c3 webapp W com.ibm.ws.webcontainer.webapp.WebApp initializeStaticFileHandler SRVE0278E: Error while adding servlet mapping --> /*.
[1/16/19 14:41:42:697 GMT] 000000c3 webapp I com.ibm.ws.webcontainer.webapp.WebApp log SRVE0292I: Servlet Message - [adminART_war#adminART.war]:.Destroying Spring FrameworkServlet 'adr'
[1/16/19 14:41:42:721 GMT] 000000c3 ServletWrappe I com.ibm.ws.webcontainer.servlet.ServletWrapper doDestroy SRVE0253I: [adminART_war] [/ArtOSAdmin] [adr]: Destroy successful.
[1/16/19 14:41:42:724 GMT] 000000c3 webapp I com.ibm.ws.webcontainer.webapp.WebApp log SRVE0292I: Servlet Message - [adminART_war#adminART.war]:.Closing Spring root WebApplicationContext
[1/16/19 14:42:02:997 GMT] 000000c3 SystemOut O INFO EhCacheManagerFactoryBean -- -- --Shutting down EhCache CacheManager
[1/16/19 14:42:03:060 GMT] 000000c3 SystemOut O INFO LocalContainerEntityManagerFactoryBean -- -- --Closing JPA EntityManagerFactory for persistence unit 'default'
[1/16/19 14:42:03:066 GMT] 000000c3 webapp E com.ibm.ws.webcontainer.webapp.WebGroupImpl WebGroup SRVE0015E: Failure to initialize Web application adr Banque
[1/16/19 14:42:03:071 GMT] 000000c3 DeployedAppli W WSVR0206E: Module, adminART.war, of application, adminART_war.ear/deployments/adminART_war, failed to start
我已经在WEB-INF下配置了文件ibm-web-ext.xml,如以下一些支持所述:
<!-- language: lang-xml -->
<web-ext
xmlns="http://websphere.ibm.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-web-ext_1_0.xsd"
version="1.0">
<default-error-page uri="error.jsp"/>
<jsp-attribute name="useThreadTagPool" value="true" />
<jsp-attribute name="verbose" value="false" />
<jsp-attribute name="deprecation" value="false" />
<jsp-attribute name="reloadEnabled" value="true" />
<jsp-attribute name="reloadInterval" value="5" />
<jsp-attribute name="keepgenerated" value="true" />
<jsp-attribute name="trackDependencies" value="true" />
<reload-interval value="9"/>
<auto-encode-requests value="true"/>
<auto-encode-responses value="false"/>
<enable-directory-browsing value="false"/>
<enable-file-serving value="false"/>
<pre-compile-jsps value="false"/>
<enable-reloading value="true"/>
<enable-serving-servlets-by-class-name value="true"/>
</web-ext>
这是我的web.xml上的映射:
<!-- language: lang-xml -->
<!-- Spring MVC -->
<servlet>
<servlet-name>adr</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>adr</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
我们非常感谢您的帮助。
答案 0 :(得分:0)
看看此错误以及WebApp中的相应代码,您是否可以查看是否与此警告同时生成了FFDC日志?如果我找到了正确的代码,则应该还会生成一个FFDC,该代码将提供有关发生的确切错误的更多详细信息。
[1/16/19 14:41:42:691 GMT] 000000c3 webapp W com.ibm.ws.webcontainer.webapp.WebApp initializeStaticFileHandler
SRVE0278E:添加servlet映射-> / *时出错。
答案 1 :(得分:0)
缺省情况下,WebSphere将安装将使用/上下文根的DefaultApplication EAR。如果要使用此上下文根,则接下来要从服务器中删除DefaultApplication或将此应用程序的上下文根更改为其他名称。