我正在尝试使用“ Eclipse的IBM WebSphere Liberty Profile工具”来获得现有的Web应用程序使用“ WebSphere Application Server Liberty Profile v8.5 Beta”。

我已经通过以下说明安装了Eclipse的开发人员工具以及Liberty配置文件运行时:https://www.ibm.com/developererworks/mydeveloperworks/blogs/wasdev/entry/entry/download?lang = en#comment-1321558450546

然后,我继续按照此处的说明来创建Liberty Profile Server:http://publib.boulder.ibm.com/infocenter/wasinfo/beta/index.jsp?

我将我的Web应用程序添加到服务器,并以以下控制台输出启动:

Launching TEST (was4d-1.0.0.20111202-0614/websphere-kernel_1.0.0) on Java HotSpot(TM) 64-Bit Server VM, version 1.6.0_26-b03
    Boot properties: file:/home/tbuckley/work/WAS/was4d/usr/servers/TEST/bootstrap.properties
    Config document: file:/home/tbuckley/work/WAS/was4d/usr/servers/TEST/server.xml
[AUDIT   ] CWWKE0001I: The kernel was launched.
[AUDIT   ] CWWKE0002I: The kernel started after 0.91
[AUDIT   ] CWWKF0007I: A feature update is starting after 0.92 seconds.
[AUDIT   ] CWWKZ0058I: Application monitor started after 1.218 seconds.
[AUDIT   ] CWWKO0219I: TCP Channel http-default has been started and is now listening for requests on host localhost  (IPv4: 127.0.0.1) port 9080.
[AUDIT   ] SRVE9998A: Application myWebApp added to web container.
[AUDIT   ] CWWKZ0001I: The application myWebApp has started successfully.
[AUDIT   ] CWWKF0008I: The feature update is complete after 2.141 seconds.



当我点击Web应用程序URL时 http:// localhost:9080/mywebapp/ 通过浏览器,我获得了一个空白页面和以下控制台信息:

[ERROR   ] SRVE0015E: Failure to initialize Web application myWebApp



如果我重新加载页面,我会得到以下内容:

[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/login/*, wrapper-->ServletWrapper[Application Servlet:[/login/*]], application-->myWebApp.
[ERROR   ] SRVE0015E: Failure to initialize Web application myWebApp



我的web.xml也有以下servlet/映射:

<servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
    <servlet-name>Application Servlet</servlet-name>
    <url-pattern>/login/*</url-pattern>
</servlet-mapping>

<servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
</servlet-mapping>

<servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.xhtml</url-pattern>
</servlet-mapping>


有什么想法在这里有什么问题,或者我如何获得更详细的调试信息?

更新

我刚刚在其中创建了一个骨架“动态Web项目”,并在其中放了一个index.html文件。我将其添加到Liberty Server中,并通过转到Localhost:9080/SimpleApp/index.html来工作。

我要添加的Exisisting Dynamic Web应用程序非常大且复杂。我在WAS4D/USR/Servers/test/logs/ffdc/ffdc_12.02.16_16_16.40.33.0.log下找到以下内容。

------Start of DE processing------ = 16/02/12 16:36:06:170 GMT, key = java.lang.NullPointerException com.ibm.ws.webcontainer.osgi.WebContainer 131
Exception = java.lang.NullPointerException
Source = com.ibm.ws.webcontainer.osgi.WebContainer
probeid = 131
S    tack Dump = java.lang.NullPointerException
at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:142)
at com.ibm.ws.webcontainer.webapp.WebApp.initializeServletContainerInitializers(WebApp.java:1860)
at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:499)
at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:5437)
at com.ibm.ws.webcontainer.osgi.WebContainer.discriminate(WebContainer.java:1095)
at com.ibm.ws.webcontainer.osgi.WebContainer.discriminate(WebContainer.java:1009)
at com.ibm.ws.dispatcher.http.internal.channel.HttpDispatcherLink.ready(HttpDispatcherLink.java:143)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:444)
a    t com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleNewRequest(HttpInboundLink.java:378)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.processRequest(HttpInboundLink.java:278)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.ready(HttpInboundLink.java:249)
at com.ibm.ws.tcpchannel.internal.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:174)
at com.ibm.ws.tcpchannel.internal.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:83)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager.requestComplete(WorkQueueManager.java:502)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager.attemptIO(WorkQueueManager.java:550)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager.workerRun(WorkQueueManager.java:899)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager$Worker.run(WorkQueueManager.java:981)
at com.ibm.ws.threading.internal.Worker.executeWork(Worker.java:398)
at com.ibm.ws.threading.internal.Worker.run(Worker.java:380)
at java.lang.Thread.run(Thread.java:662)

Web应用程序中的弹簧设置似乎正在引起一些问题?

谢谢

有帮助吗?

解决方案

事实证明,这是某些平台上Spring的问题(在我看来,WebSphere Liberty 8.5)。

从春季3.1.0 m2升级到弹簧3.1.1解决了问题:https://jira.springsource.org/browse/spr-8496

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top