I've spent several days settings up eclipse and tomcat and synching them up with sysdeo. I can create and run html, JSPs, and even make queries to mysql in my jsps. The problem is when I attempt to create a servlet in eclipse (new..other..servlet) I am unable to select a project, nor do any of the "browse" icons work. I cannot create the servlet without being able to select a project. Is this the only way to create a servlet or is there something I cam doing wrong. Also as a side note, in JVM settings in eclipse the only option showing in teh dropdown is JRE, however I do have JDK installed. When selecting the appropriate JAR's in the JVM setting sections I am able to choose the appropriate JDK JAR's. Any thoughts on what is going on?
First, let me say that I don't use sysdeo (or at least, I have not used it for around 5 years because the Java EE tools build into Eclipse seem to provide everything I need, including sync'ing with Tomcat). I noticed then creating a servlet that only those projects that I created as "Dynamic Web Project"s were listed in the projects drop-down list.
Regarding the JRE vs JDK conundrum. Yes the Windows | Preferences label is "Java | Installed JRE's", but you can configure Eclipse to recognize JDKs - I have both a version 5 and a version 6 JDK registered, on top of the JRE 5 that Eclipse found on first run. After that, any place where I can select a JRE it shows my two JDKs and the JRE.
When I create a dynamic web proejct i am able to create a servlet. However I am trying to do this in a Tomcat Project. Do I need to select a library before I am able to create servlets? SHOULD I be able to create a servlet in Tomcat Project, I know the answer is Yes, so what is different between tomcat project and dynamic web project that eclipse is bugging out when I try to create a servlet?
I don't see "Tomcat Project" in my list of projects that I can create in Eclipse, so I suspect that it is a sysdeo thing. My guess is that whatever flag that the Create Servlet wizard is looking for is not being set by the sysdeo code that creates a Tomcat Project.
I guess a workaround would be to simply create a class and let the class extend HTTPServlet.
Or perhaps someone out there who has the sysdeo plugin could chime in with suggestions.
Joined: Apr 01, 2009
I noticed the same thing when creating a tomcat project with the sysdeo plugin. Can't use the Servlet wizard. I hope somebody has found a way to make it work because other than that, the plugin is excellent.