Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why the web page keeps saying 'Context Root Not Found'? #1

Open
t2833813 opened this issue Mar 11, 2020 · 4 comments
Open

Why the web page keeps saying 'Context Root Not Found'? #1

t2833813 opened this issue Mar 11, 2020 · 4 comments

Comments

@t2833813
Copy link

I do exactly what the tutorial says but in the final step, when I enter the url, it keeps saying 'Context Root Not Found' on the web page and there is no web application appearing. Why did that happen? When I enter maven clean install, there are several WARNINGs, are those relevant to this issue?
微信截图_20200311152927
92f7c68322e2136bc7e8293e16f663e023fb7550ccec8e062ae44b116e2c9dff

@cleclerc75
Copy link
Collaborator

cleclerc75 commented Mar 19, 2020

Hello,

I just verified the steps on my side and it works fine.
http://localhost:9080/miniloan-webapp/ is accessible

Could you have a look to the Liberty logs under your Liberty installation, please ?
wlp-webProfile8-20.0.0.3\wlp\usr\servers\testGettingStarted\logs\messages.log

You should see these lines if you correctly copy miniloan-webapp.war under wlp-webProfile8-20.0.0.3\wlp\usr\servers\testGettingStarted\apps :
CWWKZ0018I: Starting application miniloan-webapp.
[3/19/20 9:55:43:543 CET] 00000040 bm.ws.app.manager.war.internal.WARDeployedAppInfoFactoryImpl I CWWKZ0133I: The miniloan-webapp application at the C:\Work\BugFests\2019.12\wlp-webProfile8-20.0.0.3\wlp\usr\servers\testGettingStarted\apps\miniloan-webapp.war location is being expanded to the C:\Work\BugFests\2019.12\wlp-webProfile8-20.0.0.3\wlp\usr\servers\testGettingStarted\apps\expanded\miniloan-webapp.war directory.
[3/19/20 9:55:43:555 CET] 0000002f com.ibm.ws.ssl.config.WSKeyStore A CWPKI0820A: The default keystore has been created using the 'keystore_password' environment variable.
[3/19/20 9:55:43:763 CET] 0000002f com.ibm.ws.ssl.config.WSKeyStore I Successfully loaded default keystore: wlp-webProfile8-20.0.0.3/wlp/usr/servers/testGettingStarted/resources/security/key.p12 of type: PKCS12
[3/19/20 9:55:44:182 CET] 00000040 com.ibm.ws.session.WASSessionCore I SESN8501I: The session manager did not find a persistent storage location; HttpSession objects will be stored in the local application server's memory.
[3/19/20 9:55:44:199 CET] 00000040 org.jboss.weld.Version I WELD-000900: 3.1.1 (Final)
[3/19/20 9:55:44:628 CET] 00000040 com.ibm.ws.webcontainer.osgi.webapp.WebGroup I SRVE0169I: Loading Web Module: Sample.
[3/19/20 9:55:44:629 CET] 00000040 com.ibm.ws.webcontainer I SRVE0250I: Web Module Sample has been bound to default_host.
[3/19/20 9:55:44:629 CET] 00000040 com.ibm.ws.http.internal.VirtualHostImpl A CWWKT0016I: Web application available (default_host): http://localhost:9080/miniloan-webapp/
[3/19/20 9:55:44:633 CET] 00000040 com.ibm.ws.app.manager.AppMessageHelper A CWWKZ0001I: Application miniloan-webapp started in 1.091 seconds.

Hope this helps,
Christian

@t2833813
Copy link
Author

Hello,

I just verified the steps on my side and it works fine.
http://localhost:9080/miniloan-webapp/ is accessible

Could you have a look to the Liberty logs under your Liberty installation, please ?
wlp-webProfile8-20.0.0.3\wlp\usr\servers\testGettingStarted\logs\messages.log

You should see these lines if you correctly copy miniloan-webapp.war under wlp-webProfile8-20.0.0.3\wlp\usr\servers\testGettingStarted\apps :
CWWKZ0018I: Starting application miniloan-webapp.
[3/19/20 9:55:43:543 CET] 00000040 bm.ws.app.manager.war.internal.WARDeployedAppInfoFactoryImpl I CWWKZ0133I: The miniloan-webapp application at the C:\Work\BugFests\2019.12\wlp-webProfile8-20.0.0.3\wlp\usr\servers\testGettingStarted\apps\miniloan-webapp.war location is being expanded to the C:\Work\BugFests\2019.12\wlp-webProfile8-20.0.0.3\wlp\usr\servers\testGettingStarted\apps\expanded\miniloan-webapp.war directory.
[3/19/20 9:55:43:555 CET] 0000002f com.ibm.ws.ssl.config.WSKeyStore A CWPKI0820A: The default keystore has been created using the 'keystore_password' environment variable.
[3/19/20 9:55:43:763 CET] 0000002f com.ibm.ws.ssl.config.WSKeyStore I Successfully loaded default keystore: wlp-webProfile8-20.0.0.3/wlp/usr/servers/testGettingStarted/resources/security/key.p12 of type: PKCS12
[3/19/20 9:55:44:182 CET] 00000040 com.ibm.ws.session.WASSessionCore I SESN8501I: The session manager did not find a persistent storage location; HttpSession objects will be stored in the local application server's memory.
[3/19/20 9:55:44:199 CET] 00000040 org.jboss.weld.Version I WELD-000900: 3.1.1 (Final)
[3/19/20 9:55:44:628 CET] 00000040 com.ibm.ws.webcontainer.osgi.webapp.WebGroup I SRVE0169I: Loading Web Module: Sample.
[3/19/20 9:55:44:629 CET] 00000040 com.ibm.ws.webcontainer I SRVE0250I: Web Module Sample has been bound to default_host.
[3/19/20 9:55:44:629 CET] 00000040 com.ibm.ws.http.internal.VirtualHostImpl A CWWKT0016I: Web application available (default_host): http://localhost:9080/miniloan-webapp/
[3/19/20 9:55:44:633 CET] 00000040 com.ibm.ws.app.manager.AppMessageHelper A CWWKZ0001I: Application miniloan-webapp started in 1.091 seconds.

Hope this helps,
Christian

Thank you for your answer! Actually I didn't see the above lines in the log file. So what should I do to fix it? I think I have finished all the steps in the tutorial and don't know which part is wrong.

@cleclerc75
Copy link
Collaborator

cleclerc75 commented Mar 20, 2020

Hello,
If you don't see any trace in your messages.log (especially no trace related to the load of miniload-webapp), I would say that miniloan-webapp.war has not been added to folder :
wlp-webProfile8-20.0.0.3\wlp\usr\servers\testGettingStarted\apps
or you didn't add the following lines to your server.xml located at wlp-webProfile8-20.0.0.3\wlp\usr\servers\testGettingStarted

<!-- Miniloan application -->
 <webApplication id="miniloan-webapp"
 location="miniloan-webapp.war"
 name="miniloan-webapp"/>

Could you have a look, please ?
If the problem persists, could you provide me more information (Java version, Liberty version, logs, ...) ?
Hope this helps,
Christian

@t2833813
Copy link
Author

t2833813 commented Mar 24, 2020

Hello,
If you don't see any trace in your messages.log (especially no trace related to the load of miniload-webapp), I would say that miniloan-webapp.war has not been added to folder :
wlp-webProfile8-20.0.0.3\wlp\usr\servers\testGettingStarted\apps
or you didn't add the following lines to your server.xml located at wlp-webProfile8-20.0.0.3\wlp\usr\servers\testGettingStarted

<!-- Miniloan application -->
 <webApplication id="miniloan-webapp"
 location="miniloan-webapp.war"
 name="miniloan-webapp"/>

Could you have a look, please ?
If the problem persists, could you provide me more information (Java version, Liberty version, logs, ...) ?
Hope this helps,
Christian

Hi, I have checked the miniloan-webapp.war as well as server.xml and all things should be all right. I will give you my java version and logs will be attached.

java version "1.8.0_141"
Java(TM) SE Runtime Environment (build 1.8.0_141-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.141-b15, mixed mode)

As for the Liberty version, I am not sure how to check them. May I have some clues on that one? Thanks a lot!
p.s. As my system runs in Chinese language, the log files are also written in Chinese. You may want to use Google translation to get the English version of those.
console.log
messages.log
messages_20.03.23_17.38.12.0.log

@t2833813 t2833813 reopened this Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants