Running Apache Tomcat 7 in Eclipse - java

I am trying to run Apache Tomcat 7 on the Eclipse. But I am facing some problems. I configured the tomcat libraries. Then I also imported the war files in the existing workspace. Then I tried running the index jsp page. But I am getting error
"Unable to load page". Cannot resolve proxy hostname. I am not sure why the tomcat is starting now.
Can someone tell me what is this error ?

To run Tomcat, you need to either add a server using Eclipse's tomcat plugin or modify the run/debug configurations to point to your application's server.xml.
The error you're getting suggests that tomcat is not running or that it's not configured properly.
What exactly are you trying to do?

if you are using windows then go to run type services.msc a window will open up from there stop the apache tomcat service and then try to run it from eclipse.
or just change the port numbers it might be used by some other application

Related

tomcat eclipse error Could not load the Tomcat server configuration at ...The configuration may be corrupt or incomplete

Can anyone give me some advice on this error?
Whenever I try to define a new server on eclipse by using tomcat, I get this error:
Could not load the Tomcat server configuration at C:\gwl\web\apache\conf. The configuration may be corrupt or incomplete.
My Tomcat version is 8.5
Don't use an installed copy of Tomcat. Your user does not have full ownership over its file tree, and the installation layout might have other unanticipated differences. Get a tar/zip file from Apache, or on more recent versions, let the wizard download Tomcat for you.

Connect Weblogic server to Eclipse Error: "does not contain a valid WebLogic Server install or the installed version is not supported"

I'm trying to connect a weblogic server to my eclipse (photon) and I keep getting this error message:
Error
"does not contain a valid WebLogic Server install or the installed version is not supported"
I've tried installing 3 different types of eclipse (Photon, Eclipse IDE for Java Developers - 2021-09 and Eclipse IDE for Enterprise Java and Web Developers - 2021-09) but I have the same error on all of them.
I know that I have configured the weblogic server correctly because I can access it as shown:
Weblogic Server
Shouldn't it be looking for the startWebLogic file or something? Because that's where I'm pointing it at.
I have tried doing what other threads do but they don't work for me.
Basically I have 2 questions:
How do I fix this error?
What file does this pop-up is looking for?
The WebLogc Home Folder must set to point to your WebLogic installation and not to a domain folder (as you did). Locate the wlserver folder under your WebLogic installation and set it up in Eclipse.
You have to look to the "wlserver" folder, I just got it fixed, also with Oracle 12c.
The Server I linked was: C:\WL\wls12213\wlserver
And then you can continue, also the configuration guide will ask you for the domain, that you have to had already configured.
In my case: C:\WL\weblogic_server_12.2.1
I'm using Spring Tools Studio 4.6.1

Can glassfish on 8089 port somehow block tomcat on 8088 port?

i worked with Tomcat 8.0 without any problem. Then i installed glassfish 4 and set its port on 8089 (works fine), but now i am unable to work with my tomcat server (8088 port).
Weird is that i can start Tomcat without any problem in eclipse (Started state) but in spite of it, i cannot display tomcat site in browser either some projects on tomcat. It throws 404 error.
Where could be a mistake, does anybody please have some idea?
I attached screen of some tomcat settings and how issues looks like.
You are using eclipse WTP to manage Tomcat which allows you to choose the following options for server locations:
Use workspace metadata (does not modify Tomcat installation)
Use tomcat installation (take control of Tomcat installation)
(1) means to create a new tomcat instance to deploy the web app by setting the $CATALINE_BASE. This new tomcat instance will not have any default applications. So nothing will be shown if you access the root URL.
(2) means to use the tomcat original instance which is shipped with a number of default web application (root web , example app , manager app etc.). So if you choose this option , you will see the tomcat welcome page (root web).
Reference :
WTP Tomcat FAQ this
CATALINA_HOME vs CATALINE_BASE
Yes because the tomcat use others ports. Try open glassfish with out tomcat . If work, change default ports of the server into server.XML file and try again with both servers

How to run an OpenShift JBoss AS 7 app on localhost through Eclipse(Kepler)?

I tried to run an OpenShift JBoss AS 7 app through Eclipse as a normal JBoss AS 7 App but it doesn't seem to work. I have the OpenShift JBoss Tools installed in eclipse.
However when I try to run it through Run As --> Run on Server and then selecting the "jboss-as-7.0.1.Final Runtime Server" listed in the "Servers" view, I get the error
"the selection does not contain any resources that can run on a server".
To solve this I changed the project facet to Dynamic Web Module, then I again tried running it on JBoss server, but the application doesn't deploy and I get a 404 error on accessing its localhost url.
I also noticed that the JBoss Server's status in my eclipse "Servers" view is always shown as "Starting"(doesn't change to "Started"), although the Console shows something like "JBoss AS 7.0.1.Final "Zap" started in 2236ms"
Take a look at https://www.openshift.com/blogs/day-28-openshift-eclipse-integration-for-java-developers. That should point you in the right direction.
I am doing right now, what you want to do. I have a Project which is deployable on OpenShift and on my local installation of the jboss 7.1.
It is very strange that eclipse shows your jboss as always starting. I would recommend to delete the server in eclipse and try to add it again. Also you can add the project in the servers view. For that you right click your server and choose "Add and Remove...". You can choose the Project, add it to the server and eclipse is deploying it.
Which version of JBoss Tools are you running ? There have been some issues with detection of the server running in past where you can workaround this issue of the server not launching by changing the "Startup poller" to "web poller" or "timeout poller".
btw. if you needed to change your project to be a dynamic web project that indicates to me you have not actually imported the project as a maven project and had all of JBoss Tools installed (or at least M2e-wtp) which would normtally automatically make the import of the default openshift apps into a dynamic web project.

404 error on running the project on Mac OSX

On Mac.
I was trying to run a spring project but could not run because of the following reasons:
Tomcat server has been started but myproject is not getting deployed on the tomcat server.
The default localhost:8080 is accessible and opens up the default apache page but myproject is not deployed on tomcat.
I tried several ways but could not arrive at the solution. could some one please help me out.I did switch location and changed in serverlocations to the second option that is "use tomcat installation"
Just to make sure I even tried to run a default dynamic webproject, the hello world application.But this was also not deployed on the tomcat server and was throwing 404 error.
The same project I was able to run on windows with out any problem.
Thanks!
After selecting your project
Double click on the server tab from bottom and select “Use Tomcat installation (take control of Tomcat installation)”
It should now work perfectly.

Categories

Resources