我尝试使用IBM提供的迁移工具将旧的Tomcat应用程序迁移到Liberty。
该应用使用Java 6,jsf-1.2,Faceless 1.8.2。 Tomcat 6.0.24。
我将Tomcat配置迁移到Liberty(18.0.0.1),并更改为Java 7,jsf 2.2,servlet 3.1(Liberty不支持JSF 1.2。)
从我的server.xml:
<featureManager>
<feature>jndi-1.0</feature>
<feature>jsf-2.2</feature>
<feature>servlet-3.1</feature>
<feature>adminCenter-1.0</feature>
<feature>websocket-1.1</feature>
</featureManager>
我的web.xml保持不变 (例如,对于downloadFile
<servlet-mapping>
<servlet-name>FileDownloadServlet</servlet-name>
<url-pattern>/downloadFile</url-pattern>
</servlet-mapping>
)
当我尝试启动我的应用程序“找不到上下文根”时,收到以下错误。在server.xml中已定义。.
日志也显示
警告] SRVE0274W:在为路径-> / downloadFile,包装器-> ServletWrapper [FileDownloadServlet:[/ downloadFile]],应用程序-> MYAPP添加Servlet映射时出错。 [警告] SRVE0274W:为路径-> / xmlhttp / ,包装器-> ServletWrapper添加servlet映射时出错[Persistent Faces Servlet:[ .xhtml, .iface,/ xmlhttp / < / em>]],应用程序-> MYAPP。 [警告] SRVE0274W:为路径-> / block / ,包装器-> ServletWrapper [阻止Servlet:[/ block / ]],应用程序-> MYAPP添加Servlet映射时出错。 等。
有人知道问题出在哪里吗?