Hello I'm facing strange problem while trying to run the Dynamic web project on eclipse. I have attached the screenshot of the error message.
If I open localhost:8080/, I can see Apache Tomcat home page. But when I use localhost:8080/projectName, it gives 404 error, resource not found. I believe it is because of the error I'm getting while trying to run the project.
You can try manually deployment of your web project.
Create a war file of the dynamic web project and put that war file under webapps folder of your tomcat installation directory.
Then restart the server and test in browser by entering localhost:8080/your_projectName
If it runs then there is problem in eclipse.You can reconfigure server in your eclipse.
Related
Im not use to program with java (maven, jetty and IntelliJ). But im stuck on a problem wich is make an angularJS app debug works.
When I execute de "package" phase of maven, I get an .war file and put it at webapps tomcat8 folder, it works perfectly. But when I try to debug it on the IntelliJ with Jetty, i get an 500 Http error with a null pointer exception when the browser tries to get two files: the app.js and the app.css. Is there some config on jetty to make a angularJS app work?
EDIT:
The null poiter exception is because the java app tries to get the app.js and app.css files from the context path, and they do not exists in there. The maven build process creates another folder and put the build files result overthere.
Hi I already develop my application using Netbeans IDE.
Now I want to run my application in Tomcat server for actual use. I already copy my project to tomcat/webapps.
But when I tried to run my application:
http://localhost:8081/myAppFolder/
it gives me an error message :The requested resource (/Opportunities-Registration/) is not available.
I should change the url to make it work:
http://localhost:8081/Opportunities-Registration/web/index.jsp
How can I open my application using http://localhost:8081/myAppFolder/ insteand of http://localhost:8081/Opportunities-Registration/web/index.jsp ?
Update:
All my servlet is also become 404 not found
Thank you
SOLVED
Solution:
1. copy .war file which is contained in dist folder of your netbeans project
2. Place your .war file to tomcat/webapps
3. Start your tomcat
4. You are good to go
I'm trying to deploy my java app as a web service using Tomcat Apache. I put the .war file under the /webapps directory, run Apache, and when I try to access the url I get a 404 error.
I've created my app on Eclipse, and if I try to deploy it from Eclipse using a Tomcat server, it works, I can correctly access all my servlets.
What might I be missing / doing wrong?
Thank you,
You either have the wrong URL when you run outside Eclipse or the WAR file that you deploy is incorrect.
You should look at the Tomcat logs and console to see what messages it gives to explain what you did wrong.
Eclipse is just an IDE. Your code won't have access to it in production. Put aside that it works there and figure out what you did wrong with the package.
Problem:
I am relatively new to tomcat, i deployed a war file from the new project i am working on and it deploys fine without any problems, but when i try to run the app it gives 404.
I tried :
tried to find the appropriate error messages but,no errors seen in eclipse console nor in logs folder in tomcat installation directory. How do i troubleshoot this problem? any help is appreciated.
1. Please check this file: ( sometimes the console won't give any tips)
${tomcat-root-directory}/logs/localhost.yyyy-MM-dd.log
2. My case:
I depolyed war file successfully logging from the console's output.
But when I access the url in browser, I get 404 error.
I checked the log, found that java source files are missing. and there was a java.io.FileNotFoundException.
Then I remembered that I use the maven clean command, before packaging the war file. It deleted them! Without those resource files, my war project doesn't start up properly. and I checked http://127.0.0.1:8080/manager/html tomcat webapps management page, my war project running status is false.
I am currently using the cloudfoundry eclipse plugin to deploy my JSP/Servlet web application. My application is now using a Db (Sqlite). However I am having problem deploying the sqlitejdbc.rar to cloudfoundry (all i do to update the application is right click on my application under VMware Cloud-foundry server and select update. But that doesn't seem to work and i get an exception saying that it cant find the rar file.
In my local system i simply paste the sqlitejdb.rar to the lib directory of Tomcat and when i run the webapp locally it works
If you place the sqlitejdbc.rar file into your lib directory (inside your WEB-INF directory) that should get deployed as part of your application into cloudfoundry and become accessible.
You can also try to deploy your app using vmc push to see what errors you get from vmc.
I also recommend looking at the log files on cloudfoundry.com