404 error Tomcat App - eclipse

I know there is similar questions but this one is strange and has me stuck.
My Java servlet will run in Eclipse interface using the Tomcat server and my SoapUI tests bring back the expected responses. However, when I deploy the servlet and run Tomcat and enter a SoapUI test I receive a 404 error.
Can someone explain why this is please? I have tried specifying the WSDL in both the Eclipse environment and the deployed WAR.
Thanks in advance for assistance
AJF

Related

The Selection Cannot Be Run Any Server Eclipse Websphere

I have been having issues on my project on Eclipse. It keeps on showing me the error message "The selection cannot be run on any server".
I have already checked the project facets and Dynamic Web Module, Java, Javascript, Websphere Web (Coexistence and Extended) are checked.
I have Websphere checked on runtimes as well.
Websphere settings are fine as well.
There are no errors on the project.
It runs on Tomcat without issues, but when I try to run it on WebSphere Application Server I get an error.
When I click on Server > Add & Remove > I am not able to find my project there.
I have already reinstalled Websphere.
I have already researched about the issue and mostly have done the steps in there.
I'm hoping someone could help me and enlighten as to why this is happening. Thank you!

How to launch a Spring webapp from within Eclipse

I've got a poor beginner question about Spring/Eclipse usage.
I'm working on tutorials to learn Spring, coding "Hello World" or other little webapps running few controllers and JSP.
Each time I wanna run the app from within Eclipse, nothing happens. I just get a 404 error.
In order to make the web app works, I have to run my Tomcat outside Eclipse (ie launch Tomcat from Windows with the startup.bat command line) and deploy a War through the manager-gui window of Tomcat.
So it works, but it would be more comfortable directly from within Eclipse on the embedded servers because this way running tests are so loooooooooong...
In Eclipse, I tried :
Run on Server -> 404
Run a Maven conf with Clean-Install goals,
obtained a War, but was unable to use it from within Eclipse (it's
the same War I use in the Tomcat GUI) as I saw it here
So can someone tell me how to run a Spring webapp from with Eclipse to make my work easier ?
Thanx by advance.
You need to enable 'Use Tomcat Installation' option in tomcat server when controlling it inside eclipse.
Please check this link
Tomcat not starting from eclipse, this will solve your issue.

spray-servlet: Issues when war is deployed to tomcat7

I have created a sample application based on akka and spray-servlet. The code and other details can be found at https://github.com/rajvaibhav/spray-tomcat-routing. I am using embedded tomcat for development purpose. The application runs as expected when I deploy it on the embedded tomcat. But when I deploy successfully the same war file to a stand alone tomcat7 server, I am getting 404 after hitting the application's URL. This is very strange. I have checked my tomcat7 server by deploying another Servlet 3.0 application. That works fine, but following the same steps I am not able to hit my application on standalone tomcat7. Any help appreciated.

404 Error Apache Tomcat 7 running JSP file from Eclipse Juno IDE

I am using Tomcat 7 on the Eclipse IDE to run a JSP file.
It was working fine 2 days ago but now when I'm running my file a 404 Error is showing up:
HTTP Status 404 - /
type Status report
message /
description The requested resource is not available.
Apache Tomcat/7.0.34
I figured that the server is working fine as it would not give me the error if it wasn't responding. The port I'm using for Tomcat is 8089. Can the reason be that maybe Eclipse is trying to use another port instead of the one I set for the server?
What can I do to run my file without having this error?
Sometimes, when you're testing a webapp project, eclipse won't adding the full path to the JSP page you want to access and try to connect to http//localhost:8080/YOURPAGE.jsp, this is problematic as the context is missing.
Why are you using port 8089 and not 8080?
It is possible that the context is missing in the tomcat server.xml, do you have a line similar to this?
<Context docBase="WebProject" path="/WebProject" reloadable="true" source="org.eclipse.jst.jee.server:LoginServlet"/></Host>

Deploying WAR File to Glassfish

I'm just getting to grips with the NetBeans 6.9 / Glassfish 3 combo, and have developed a Java EE app consisting of a WAR module and an EJB module. Having played around with the EJB side of things for a while, I went back to run the web code, and started having problems.
When I try to run the WAR file, it fails to deploy, and the error from the server is `WEB0113: virtual server [server] already has a web module [MyApp-war.war] loaded.' But I haven't edited the web side code since I last ran it, and I'm rather puzzled as to what it's trying to do.
I've tried the usual things: restarting the server, undeploying and redeploying the application, but to no avail... so if anyone with any more experience with Glassfish has any hints, they will be gratefully received!
if anyone with any more experience with Glassfish has any hints, they will be gratefully received!
Open GlassFish's Admin Console, see if the application is listed and try to undeploy it from there.
Did you create and deploy an enterprise application (ear) containing the ejb and web module? I don't think you can then deploy only the webapplication since its already deployed inside the ear. You'll have to redeploy the ear instead.
I had the same problem. Restart of glassfish server helped.
What was interesting, the Applications list did not have the application. Apparently some glassfish/netbeans bug.
What I did was , i went to the admin console for my Glassfish server and I undeployed all the unused projects and redeployed the project that i was trying to run. And it worked!