3

「IBM WebSphere Liberty Profile Tools for Eclipse」を使用して、「WebSphere Application Server Liberty Profile v8.5 Beta」で動作する既存の Web アプリケーションを取得しようとしています。

https://www.ibm.com/developerworks/mydeveloperworks/blogs/wasdev/entry/download?lang=en#comment-1321558450546の手順に従って、Eclipse 用の開発者ツールと liberty プロファイル ランタイムをインストールしました 。

次に、http://publib.boulder.ibm.com/infocenter/wasinfo/beta/index.jsp?topic=%2Fcom.ibm.websphere.w4d.nd の指示に従って、Liberty Profile Server の作成に進みます 。 doc%2Ftopics%2Frw4d_dirs.html

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-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 サーバーに追加したところ、localhost:9080/simpleApp/index.html にアクセスすることで機能しました。

追加しようとしている既存の動的 Web アプリは、非常に大きく複雑です。was4d/usr/servers/TEST/logs/ffdc/ffdc_12.02.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 アプリのスプリング セットアップが問題を引き起こしているように見えますか?

ありがとう

4

1 に答える 1

0

特定のプラットフォーム (私の場合は WebSphere liberty 8.5) での Spring の問題であることが判明しました。

Spring 3.1.0 M2 から Spring 3.1.1 にアップグレードすると、問題が修正されます: https://jira.springsource.org/browse/SPR-8496

于 2012-02-17T12:13:03.630 に答える