- This topic has 4 replies, 2 voices, and was last updated 19 years ago by Riyad Kalla.
-
AuthorPosts
-
kurobtMemberI am trying to use MyEcplise 4.0.3 GA with Tomcat 5.5 and having a problem.
Tomcat 5.5 is supported, by default (w/o compatibility package), only on JDK 5.In Preference menu, under My Eclipse > Application Servers > Tomcat 5, I set the directories.
Then in its sub node JDK, I specified JDK 1.5.0.After selecting the Web Tutorial JSP HelloWorld project, I pressed on the deploy icon in the
tool bar. In the deploy wizard that popped up, I clicked on the Add button, choose the
server name for Tomcat 5.5, and pressed Finish.At this point, I got the “Error Creating Deployment” error dialog box that reads:
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 preference pages and verify the field with prompt: Tomcat JDK name.I checked the server JDK config. What I noticed was, if I specify the JDK root directory,
Ecplise does not recognize it as JDK. I’d have to specify its “jre” subdirectory.
I am suspecting that Sun changed the directory structure of JDK and some part of
Eclipse or MyEclipse is not recognizing the new JDK directory structure.So the bottom line is, how do I make MyEclipse work with Tomcat 5.5 and JDK 5.0?
– System Setup ——————————-
Operating System and version: Win XP Pro
Eclipse version: 3.1.0
Eclipse build id: I20050627-1435
Fresh Eclipse install (y/n): y
If not, was it upgraded to its current version using the update manager?
Other installed external plugins: WTP, P4
Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 8
MyEclipse version: 4.0.3 GA
Eclipse JDK version: 5.0.0
Application Server JDK version: 5.0.0
Are there any exceptions in the Eclipse log file? (Where is it?)If this is a DB related question please answer the following: (no DB)
RDBMS vendor and version:
JDBC driver vendor and version, and access type (thin, type-2, etc):
Connection URL:
Eclipse error logs related to com.genuitec.eclipse.sqlexplorer packages:– Message Body ——————————-
Riyad KallaMemberYou already touched on the problem in your post, you need to edit the JRE or add a new one and point it at the root directory of your JDK installed. I know you said that didn’t work, but I just tried it locally and it still work sfine.
UNder your JDK root directory, do you have a /bin dir? Specifing the top level dir, for example, C:\Program Files\Java\jdk1.5.0_05 should do the trick, eclipse shoulod pickup all the libraries and source if available.
If your install dir doesn’t look like this, you can try re-running the JDK installer and making sure the whole JDK is getting installed and you didn’t accidentally either a) download the JRE or b) when running the JDK install, uncheck the JDK portion and only install the JRE. This sounds like what you might have done, double check your downloaded install file, see if it was the JRE install by accident.
kurobtMemberSo I uninstalled JDK 5.0 and reinstalled it (at C:\opt, to avoid problems associated with path having a space character).
I see the top level bin has javac.exe and jre/bin has java.exe.
At “Add JVM”, if I specify C:\opt\jdk1.5.0_05, I see an error message “Target
is not a JDK root. System library was not found.”, and the OK button is dimmed.
I need to enter C:\opt\jdk1.5.0_05\jre to have this error go away and enable the OK button.
What is it that this “Add JVM” is checking?
Would specifying the jre subdir then add extra jars from top level lib dir manually be a workaround?
kurobtMemberActually, I tried the method of adding the jars in the top level lib manually.
The deploy succeeded but when I tried to start Tomcat 5, I get this
message:
A configuration error occurred during startup. Please verify the preference field with the prompt: Tomcat JDK name.The Tomcat JDK name is correct. Is there a log file or something that tells me exactly what configuration MyEclipse is not satisfied with?
Riyad KallaMemberkurobt,
What is the full name of the installer you are using to install the JDK? (the exe file name). Also what it is looking for is the tools.jar file, try that. -
AuthorPosts