facebook

Deploy to Tomcat stopped working [Closed]

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #231683 Reply

    far2fish
    Member

    I have Tomcat 5.5.9 + Tomcat 5.5.9 compat to ensure Java 1.4.2 support. I have used Tomcat 5.5.x with MyEclipseIDE for allmost a year now without any problem at all – until today.

    When I try to deploy my webapp from MyEclipseIDE to Tomcat, I recieve the following error: “The selected server is enabled, but is not configured properly. Deployment to it will not be permitted until the problem is corrected. Please navigate to the server preferences pages and verify the field with the prompt: Tomcat JDK name”

    I have not made any changes to Tomcat for weeks, and I can successfully deploy to Tomcat using Tomcat’s manager/html interface, so Tomcat is hardly the problem here. The Tomcat I am using is the unzip version. I also downloaded the .exe install today, and installed it in another directory, and configured MyEclipseIDE to use it…but still same problem.

    Ok, so what have changed since the last time I used MyEclipseIDE ? As far as I can recall there are only two changes:

    1. I installed JDK 1.5.0, but I am not using it for Eclipse or Tomcat
    2. When I use MyEclipseIDE it has started to remind me that my MyEclipseIDE subscription expires in less than 30 days.

    So, naturally, I uninstalled JRE 1.5.0 and JDK 1.5.0, then rebooted my machine..but still same problem. Then I reinstalled MyEclipseIDE …still same problem. So it looks to me like if you get this error once, it’s impossible to get rid of it.

    I can see from a few other posts that this issue can be caused by Tomcat using a JRE instead of a JDK. First of all, I have not changed anything in Tomcat for weeks, secondly, I have JAVA_HOME=C:\java\jdk142, I have C:\java\jdk142\bin first in Windows PATH, and I also have
    SET JAVA_HOME=C:\java\jdk142 in catalina.bat (for the unzip version of Tomcat)

    If you have any other ideas, please help.

    #231685

    far2fish
    Member

    I also have JOnAS and resin installed, and can’t deploy to them either now ! So the problem is definetly in Eclipse/MyEclipseIDE or possibly in Windows.

    I should also mention that I am using Eclipse 3.0.2 with MyEclipseIDE 3.8.4

    #231698

    Scott Anderson
    Participant

    Could the problem be that when you installed JDK 1.5 you uninstalled the JDK that you had configured in Eclipse to launch your severs with? Can you double check that path specified for the JDK you’re using for your servers actually still exists on the file system? The reason I ask as I did *exactly* this one and this was the symptom. I had just gotten rid of an “old” JDK, but it was the one I had configured my servers to launch with.

    #232169

    far2fish
    Member

    Hi
    Yes, that was one of the first things I checked, but unfortunatly it was not the root cause of the problem. I managed to “solve” the issue by deinstall MyEclipseIDE and afterwards delete the eclipse folder, unzip eclipse, then install MyEclipseIDE…….fair enough….I have worked in the support department of one of the worlds largest software vendors, so I am used to dirty workarounds 🙂

    But unfortunatly, this problem has resurfaced. Last night I completly deinstall MyEclipseIDE 3.8.4 and removed the eclipse 3.0.2 folder and it’s workspace. Then I installed Eclipse 3.1 and MyEclipseIDE 4.0 M2, and entered my subscription details. Then I disabled JBoss 3 app server and enabled Tomcat5. Finally I created a project from CVS. I deployed my webapp successfully to Tomcat from MyEclipseIDE and ran the web application. I shut down Tomcat, then exited Eclipse. I also successfully deployed this morning.

    Several hours later I enter Eclipse again, I add a new library to my classpath and want to deploy to Tomcat. Yet again I get the warning that my MyEclipseIDE will expire in a few days – followed by the error: “The selected server is enabled, but is not configured properly. Deployment to it will not be permitted until the problem is corrected. Please navigate to the server preferences pages and verify the field with the prompt: Tomcat JDK name”

    As stated before, when MyEclipseIDE refuses to deploy to one application server it refuses to deploy to them all. When this error comes for Tomcat, I can’t deploy to JBoss, JOnAS or Resin either……

    And nothing has changed between it worked this morning and now. Nothing has been installed on the machine, and the machine has not been rebooted. Seriously, MyEclipseIDE has worked fine for 11 months…I begin to wonder if the subscription alert has something to do with it…..

    #232170

    far2fish
    Member

    Aha, now I suddenly get what the error means. All the time I thought it meant the JDK preference in the application server’s config files, but of course it means the JDK preference in the MyEclipseIDE -> Application Servers -> [app server] -> JDK
    I still don’t know why MyEclipseIDE looses this information regularly, but frankly I don’t care since the workaround is so simple. Case closed 😀

    #234306

    gilinachum
    Member

    Hi avnes!

    I just installed MyEclipseIDE and tried deploying to tomcat 5.0, i got the same error message you got.

    the reference at MyEclipseIDE -> Application Servers -> [app server] -> JDK
    is pointing to a viable JRE (I tryed using more than one) but nothing is working…

    Do you happend to have any insights in the matter?

    #234308

    Scott Anderson
    Participant

    Please have a look at the Application Server Quickstart here:
    http://www.myeclipseide.com/images/tutorials/quickstarts/appservers/

    It covers how to configure the JDK correctly, among many other things.

    #234316

    gilinachum
    Member

    Thanks scott!
    installing J2SE(TM) Development Kit 5.0 Update 4 and specifing a JDK and not a JRE solved it.

    I had enough JRE installations on the sysetm so i was sure to mixup things 🙄

    #235798

    Just change the Installed JREs(Preferences -> Java _> Installed JREs) home directory to JDK directory.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Deploy to Tomcat stopped working [Closed]

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