Frage

Ich versuche, eine vorhandene Webanwendung mit 'WebSphere Application Server Liberty Profile V8.5 Beta' mit den 'IBM WebSphere Liberty Profile Tools für Eclipse' zu erhalten.

Ich habe die Entwickler -Tools für Eclipse sowie die Liberty -Profil -Laufzeit installiert, indem ich hier Anweisungen befolgt:https://www-

Ich erstelle dann den Liberty Profile -Server, indem ich die Anweisungen hier folge:http://publib.boulder.ibm.com/infocenter/wasinfo/beta/index.jsp?topic=%2Fcom.ibm.webphere.w4d.nd.doc%2ftopics%2Frw4d_dirs.html

Ich füge meine Web -App zum Server hinzu und starte sie mit der folgenden Konsolenausgabe:

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.



Wenn ich die Web -App -URL drücke http: // localhost: 9080/mywebapp/ Über einen Browser erhalte ich eine leere Seite und die folgenden Konsoleninformationen:

[ERROR   ] SRVE0015E: Failure to initialize Web application myWebApp



Wenn ich die Seite neu lade, bekomme ich Folgendes:

[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



Ich habe auch die folgenden Servlets/Zuordnungen unter meinem 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>


Irgendwelche Ideen, was hier falsch sein könnte oder wie ich detailliertere Debug -Informationen erhalten könnte?

AKTUALISIEREN

Ich habe dort gerade ein Skelett "Dynamic Web Project" erstellt und eine Index.html -Datei eingefügt. Ich habe es dem Liberty -Server hinzugefügt und es hat sich an Localhost: 9080/SimpleApp/Index.html gearbeitet.

Die existierende dynamische Web -App, die ich hinzufügen möchte, ist sehr groß und komplex. Ich fand Folgendes unter 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)

Das Spring -Setup in der Web -App scheint ein Problem zu verursachen?

Vielen Dank

War es hilfreich?

Lösung

Es stellt sich heraus, dass es ein Problem mit dem Frühling auf bestimmten Plattformen ist (WebSphere Liberty 8.5 in meinem Fall).

Upgrade von Frühling 3.1.0 m2 auf den Frühling 3.1.1 behebt das Problem:https://jira.springource.org/browse/spr-8496

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top