After Successful completion of deployment status in Openshift through Eclipse, 404 error page is shown - spring

After Successful completion of deployment status of my Java EE application (Spring ) in Openshift through Eclipse, 404 error page is shown on launching "http://closerbyapp-closerbyonline.rhcloud.com/closerbyapp" url.
Any help to Sort out this problem is highly appreciated.

Did you actually deploy an application at the closerbyapp context? the root context (/) of your application is working and showing the default index.html page that comes with the java cartridges. You should double-check how/where you put your code, and that you added it to git, and what url it should show up at. Maybe provide some of the code you used or steps that you took to deploy the code so we can help troubleshoot it? Along with any logs for your application that might be helpful.

Related

Why when I return back from login to I get an ERROR with the sample app?

This is in regards to the sample: msal-web-sample-0.1.0
I am using tomcat 9 and maven to build and run the msal-web-sample code. It is building fine and running, loading spring, etc. I am able to go out and get a username and passowrd login. However, when it tries to return back to my system (https://localhost:8443/msal4jsample/secure/aad) it just has a bit "ERROR PAGE!" heading with Home Page link going back to the main tomcat page.
In the tomcat runtime it has:
2021-06-29 15:28:06.108 ERROR 6360 --- [io-8443-exec-10] o.s.b.w.servlet.support.ErrorPageFilter : Cannot forward to error page for request [/secure/aad] as the response has already been committed. As a result, the response may have the wrong status code. If your application is running on WebSphere Application Server you may be able to resolve this problem by setting com.ibm.ws.webcontainer.invokeFlushAfterService to false
Of course, that doesn't apply to my setup.
I see the get in the logs returning back OK and don't see any errors on startup. I am at a loss as to where to go from here. Any thoughts?
Also, is there a non-spring implementation that can be used with java but still using MSAL?
Thanks
Alan
Please share additional information about the error. Do you have trouble regrading AAD? Check your environmental settings (Tomcat) if this isn't the case.

Getting started with Open Liberty: 404

I'm trying to follow the guide here - https://openliberty.io/guides/getting-started.html. I'm on the Building and running the application step. I ran "mvn liberty:run" and Open Liberty started without any errors but when I go to http://localhost:9080/system/properties I get the error below.
Error 404:
com.ibm.ws.webcontainer.servlet.exception.NoTargetForURIException: No
target servlet configured for uri: /system/properties
Any suggestions?
At the end of each guide in the "Nice Work! Where to next?" section, each guide has link:
Raise an issue to share feedback
which I would recommend for these kind of questions as you're likely going to get a quicker response if you open an issue directly against the code you're using.

How to host Spring boot application on cpanel?

I have a Spring boot application and i want to host it in my VPS server (cpanel).
I'am using the last version of cpanel & WHM with easyapache 4.
I exactly followed the steps on this website : https://dzone.com/articles/deploying-war-file-in-easy-apache-4-tomcat-experim
But, nothing on the result. I got Error 404 when i access to my domain name.
If anyone can help me on this or anyone done this before could give the exact steps to follow.
Thank you.
I had difficulty with that too, use the link in the attachment that you will have an orientation, but it may be that not everything is 100% the same. If you have any questions during the process, you can contact!
change the name of the .war file to ROOT.war , and follow all the procedures described in the link;
In the "application.properties" file, add the "server.port" configuration for the port you found in the link (step 2, part 1).
ex: server.port=10003
Open the file "ea-tomcat85/logs/catalina.out" to see the errors thrown
link: https://suporte.hostgator.com.br/hc/pt-br/articles/360038980913-Como-configurar-o-Tomcat-

Webstorm 11 build-in server returns 404

My default port for build-in server is 63342:
Also I've got JetBrains browser plugin installed
I just added Javascript debug configuration:
But getting this 404 error in borwser:
How to fix that?
p.s
Also I probably should point that I am trying to debug angular2 application it it makes any difference.
Just 1 idea - I can see that your actual project path (ng2-intro-my) differs from the one in URL (ng2intro). This may be the issue

Spring security login error

I just implemented a simple login functionality using spring it how ever worked with the eclipse in built browser but gives the following error in chrome and firefox.
HTTP Status 404 - /SpringLogin/welcome.jsp;jsessionid=8332D4F3D4709DCA37C87F30F1EA03D5
The requested resource (/SpringLogin/welcome.jsp;jsessionid=BEE789093FF79CB6B67F8DA368E8B3E4) is not available.
can you please tell me why it is happening?
PS: I have two projects SpringLogin and both of them had same project names and both had similar packages. Then neither of the projects worked properly and gave the above error. How ever after I created another project with a different name and using different package names, it worked like magic. I am guessing here that it may have been the problem. But what is the logical answer that'll explain what happened there?
you don't have being calling the correct URL
it seems that the context /SpringLogin/ does not exists anymore.
Try /welcome.jsp or if you changed the name of application - try /newappname/welcome.jsp

Resources