facebook

Tomcat – "No enabled and configured servers available&q

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #201266 Reply

    This is on a new installation – my first time to use MyEclipseIDE.

    I started Tomcat from “Run/Stop Servers.”
    I deployed a new project as a WAR file, and it was loaded OK.

    After choosing Remove, and selecting the dialog again, the Redeploy button is grayed out.

    I try Add, but it says “No enabled and configured servers available. Project cannot be deployed at this time. See MyEcipse preferences to enable a server.”

    I try Remove, but it says “Undeployment failure – stop server and manually remove test.war.”

    I stopped Tomcat from the Console, deleted test.war and the test subdirectory, and restarted Tomcat. “Add” and “Remove” still have the same response as above.

    I did it again using exploded form, but got the same result.

    Windows 2003 Enterprise (evaluation)
    Eclipse Version: 2.1.2 Build id: 200311030802 – fresh install
    Tomcat 5.0.16
    Sun JDK 1.4.2 (both Eclipse and Tomcat)
    MyEclipse Application Server Tooling Version: 2.6.100 Build id: 200312091200-2.7-RC1

    #201268 Reply

    support-michael
    Keymaster

    After choosing Remove, and selecting the dialog again, the Redeploy button is grayed out.

    This is the correct behavior since Redeploy only applies to a project that is currently deployed.

    The “Add” complaint is odd since it implies that the Tomcat5 connector thinks it is not correctly configured, e.g., JDK not defined for the Tomcat connector. I would have assumed that you could not have started the Tomcat connector the 1st time with this warning. Can you verify that the Tomcat5 connector is configured correctly in the MyEclipse preferences? Then determine if you are still able to start/stop Tomcat from the servers toolbar menu?

    Also, do you have other 3rd party web-server plugins installed, e.g., Sysdeo? I’m assuming no from your info but this baseline needs to be established.

    Michael
    MyEclipse Support

    #201296 Reply

    The Tomcat5 connector is working. I can start and stop from the servers toolbar menu.

    I have no other web-server plugins.

    It seems to me that the dialog box actions are not in sync with the true state of the connector?

    #201304 Reply

    Scott Anderson
    Participant

    I think what’s going on is that after you tried to redeploy with the server running and it didn’t work, the system remembered that you have a deployment already. So, no “other” servers are configured and available for deployment, hence the “no configured servers message”.

    To get this all cleared up I’d suggest first shutting down Tomcat. Then, if Undeploy is still an option I’d choose it and manually verify that everything got removed from your Tomcat deployed apps directory. If it didn’t, delete the remnants manually.

    At this point, you should be able to deploy your app and restart Tomcat. From then on, if you want to force a reload of your application while Tomcat is running, just ‘touch’ and save your web.xml file within MyEclipse. This should trigger Tomcat to reload properly.

    –Scott
    MyEclipse Support

    #201314 Reply

    I shut down Tomcat.

    “Redeploy” is grayed out.

    “Remove” complains about “Undeployment Failure.”

    There is nothing in the “webapps” directory – no directory, no war file.

    I restart Tomcat.

    The context is still listed as present, but “Remove” still complains about “Undeployment Failure” and “Add” has “No enabled and configured servers.”

    I think there should be an option to remove the context from the list without looking at the state of Tomcat. Then, I could use the Tomcat /manager webapp instead.

    I could also use what another member posted – allow creating the webapp separately from the state of the web container.

    #201317 Reply

    Scott Anderson
    Participant

    This sounds really odd because for a deployment to be listed as valid, a check is done to validate that the deployment directory exists as listed. Could you please double check the deployment by looking at the full path that is listed and ensuring that it is pointed to the webapps directory of your Tomcat installation? Personally, I have multiple versions of Tomcat installed and configured and this sounds like what happens to me when I’m thinking I’m using one installation but really using another. Another way to quickly check the location is to use the Browse button on the deployment manager dialog.

    –Scott
    MyEclipse Support

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Tomcat – "No enabled and configured servers available&q

You must be logged in to post in the forum log in