For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 8 replies, 4 voices, and was last updated 21 years ago by
stonefountain.
-
AuthorPosts
-
far2fishMemberI 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.
June 24, 2005 at 11:37 am #231685
far2fishMemberI 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
June 24, 2005 at 3:44 pm #231698
Scott AndersonParticipantCould 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.
July 1, 2005 at 2:06 pm #232169
far2fishMemberHi
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…..
July 1, 2005 at 2:20 pm #232170
far2fishMemberAha, 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 😀August 5, 2005 at 6:52 pm #234306
gilinachumMemberHi 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?
August 5, 2005 at 6:56 pm #234308
Scott AndersonParticipantPlease 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.
August 6, 2005 at 7:50 am #234316
gilinachumMemberThanks 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 🙄
August 26, 2005 at 11:29 am #235798
stonefountainMemberJust change the Installed JREs(Preferences -> Java _> Installed JREs) home directory to JDK directory.
-
AuthorPosts
