When I tried to setup a HTTP listener, I got this error:
Full log:
https://justpaste.it/1kvxi
This is my java_home:
I tried to change port to 808x, but it still shows the same error.
That's not a problem of the application itself but something is not working when Studio is trying to execute Mule. Maybe the workspace is corrupted. Try creating a new workspace for your application.
Related
I wanted to deploy a built spring boot jar to Azure AppService, but the chosen mode with Linux did responded only 404 "Not found" (that looked like Tomcat error page) after deploy although I could see in logs the app had been deployed correctly.
During troubleshooting I changed the mode of AppService to the one with container image. But it did not help.
Then I found the 404 is caused by enabling the App Insights which causes adding a -javaagent:/agent/java/applicationinsights-agent-codeless.jar to JAVA_TOOL_OPTS env var.
The codeless variant is not available anywhere online so with some struggle I downloaded the jar to my local machine, set Insights connection string env variable and reproduced the error. With the applicationinsights-agent downloaded from github releases I got different error, but did not investigate further.
When enabled, App Insights worked as I could see it send traces etc. But it the HTTP routing in the app is broken therefore the App Insights is useless.
I don's see how I could fix this, so any advice is appreciated.
There can be multiple scenarios which is causing the issue:
In your case you are getting 404 error, because your jar file might not deploy properly in App Services which is causing this issue.
Check if the below steps help to resolve your issue:
Try restarting your App service.
You may be trying to manually push the jar file through FTP in App Service which basically causes the problem during deployment, because it basically a step of copying the jar file into Tomcat webapps directory.
So, you can deploy your jar file using maven plugin.
Below are the commands to configure and deploy the jar file in App Service of your spring boot application.
Command to configure the App Service:
mvn com.microsoft.azure:azure-webapp-maven-plugin:2.5.0:config
Command to package and deploy the jar file to App Service:
mvn package azure-webapp:deploy
I have tried in my environment and got expected results:
I have used the above-mentioned commands to configure and deploy the jar file to App Service.
I have enabled Application Insights and my application is working fine as expected.
I have also tried with Docker Container:
Enabled Application Insights:
Enabled Port 8080 by adding WEBSITES_PORT :8080 as a setting in Web App> Configuration>Application settings.
Output:
I am making a project in Java which is a online web application. I am facing issues with Tomcat 8 and jsp, if I try to run my jsp files on server it gives an error that 404:requested resource now found.
I tried every way given on you channel but nothing helped. Now I'm at an stage I have configured the server 100 times and nothing helps. I created a new project on other workspace and copied everything there and then run those jsp files it executed well for once and then after that when I stopped the server it again started giving the same error.
Whenever I restart the server the server does not start and gives error Tomcat failed to start and then when I remove my project below the server name it starts. If I configure new server same happens.
I can't figure out where the problem lies as earlier I was able to run my project using same Eclipse Luna IDE.
Based on your question, it seems you need to configure eclipse to take control from Tomcat.
Maybe this can help as well: HTTP Status 404 - The requested resource (/) is not available
I used a merge tool to merge my code with the upstream branch which created a .orig file for one of my java classes. After verifying that everything was working fine I saw not need to keep the .java.orig file around so I deleted it.
Now whenever I try to deploy to tomcat from eclipse I get the following error:
'Publishing to Tomcat v8.0 Server at localhost..' has encountered a problem.
Resource '.../MyClass.java.orig' does not exist.
I've tried removing all applications off the server and removing the server from eclipse and then recreating it but to no avail.
I'm running out of things to try and I'm not sure what dependency tomcat thinks my project has on the .orig file. Any help is appreciated.
Ok so rebooting my machine seemed to have fixed the issue I was able to start tomcat normally after that using the same eclipse workspace. I'm not sure what the underlying issue actually was but the restart seemed to fix it.
I have been trying google cloud Debugger, i was able to get debugger hooked up in my source code, but whenever i put a breakpoint it throws as error "File was not found in the executable". I have also attached the screenshot for the same.
Screenshot for Cloud Debug in Action
For testing i am using Dropwizard Example, i am running below command to deploy my jar file on Google compute instance.
java $( sudo ./format_env_gce.sh --app_class_path=path/to/jarfile --version=1.0.0 ) -jar -Done-jar.silent=true path/to/jarfile server config.yml
For above command i have been following link https://cloud.google.com/tools/cloud-debugger/setting-up-on-compute-engine
Please help me understand what am i missing here.
Thanks.
This problem was more specific to my jar which i built using gradle, i have tried another way by using maven to create the jar and it works now.
In netbeans IDE 7.3,I create Java web application.I didn't add anything.Just a simple project.
I am using glassfish server.Then I cleaned and built it.When I click on Run,
I get output as "Host Required In Request
Description: Your browser did not send a hostname as part of the requested url. The configuration of this proxy requires a hostname to be sent as part of the url" in chrome browser.
I also get this output while running same project : Cycle Detected
Description: Your request is prohibited because it would cause a cycle.
I am not getting why this errors are coming.Because earlier when I used to create any new fresh project, I can see contents of index.jsp page in browser.
Try to open it in Firefox and see if it works. If you have redirects, Chrome complains.