For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 10 replies, 2 voices, and was last updated 22 years, 1 month ago by
Riyad Kalla.
-
AuthorPosts
-
jprareMemberI’m trying to ge this product working, I think I might really like it. However, I think I may have encountered a bug.
I’ve configured all necessary Tomcat 5 locations, as well as JDK locations. When I click the project deployment button and select my project, then click “add” and then select Tomcat 5 for my deployment server I get the following error: “The selected server is enabled but not configured properly. Deployment will not be permitted until the error is corrected. Please navigate to the server preferences page and verify the field with the prompt Tomcat JDK name”
What gives? Like I said Tomcat 5 has everything filled in. The field “Tomcat JDK” has my currently selected JDK. I even created a new JDK profile, but it didn’t work. I assume this is a bug? Any ideas, I would really like to demo this thing before my trial runs out.
Thanks,
JP
July 12, 2004 at 10:06 pm #209744
jprareMemberI should mention that I’m running this on Fedora Core 2 with Sun’s JDK 1.42_05
July 12, 2004 at 10:08 pm #209745
Riyad KallaMemberJP,
I promise we will improve this error message in the future 😉The problem is that you are telling Tomcat to use a JRE and not a JDK. For example, you’ve pointed it at C:\Program Files\Java\blahblah instead of something like C:\j2sdk1.4.2_04. The application servers (all of them AFAIK) require a JDK to run, not a JRE. By default Eclipse finds and configures your default system JRE. So you can either (a) edit your Installed JRE (Window > Preferences > Java > Installed JREs) and point it to a local JDK, or you can go to the connector settings for Tomcat, under JDK and click “Add” and add a new entry specifically for a JDK.
July 12, 2004 at 10:10 pm #209746
Riyad KallaMemberAhh linux, ok then tell me where you are pointing your JDK config to, what is the path? What happens when you run navigate to that directory and look in the /lib dir? Is there a tools.jar file?
July 13, 2004 at 8:58 am #209785
jprareMemberThe path is:
/usr/java/j2sdk1.4.2_05/I changed that from
/usr/java/j2sdk1.4.2_05/jreneither work. Yes there is a tools.jar in /usr/java/j2sdk1.4.2_05/lib
However I’m still having the same problem after removing the “jre” part of the path.
Thanks
July 13, 2004 at 12:21 pm #209830
Riyad KallaMemberWhat are you changing? Are you changing en entry in “Installed JREs”? If so, are you then navigating back to the connector to select THAT one to be used?
July 13, 2004 at 4:14 pm #209856
jprareMemberYes, that’s correct. I have changed the entry under “Installed JDKS” for the regular eclipse settings. I then went to the tomcat configuration part, and then verified it was the same JDK Name.
July 13, 2004 at 4:55 pm #209861
Riyad KallaMemberI think you meant “Installed JREs”… besides that, how many JRE/JDKs do you have listed in that view?
I wonder if this could be a permission issue… does your normal user have r+x permissions on that install of Java?
July 13, 2004 at 9:36 pm #209894
jprareMemberI had three installed because of different configurations. I changed it to one. I also added the tools.jar to the JRE system librarires config part.
Permisisions when I run:
ls -l /usr/java/j2sdk1.4.2_05/total 11372
drwxr-xr-x 2 root bin 4096 Jul 10 18:24 bin
-r–r–r– 1 root bin 4431 Jun 3 23:56 COPYRIGHT
drwxr-xr-x 6 root bin 4096 Jul 10 18:24 demo
drwxr-xr-x 3 root bin 4096 Jul 10 18:24 include
drwxr-xr-x 6 root bin 4096 Jul 10 18:24 jre
drwxr-xr-x 2 root bin 4096 Jul 10 18:25 lib
-r–r–r– 1 root bin 14708 Jun 3 23:56 LICENSE
drwxr-xr-x 4 root bin 4096 Jul 10 18:24 man
-r–r–r– 1 root bin 8986 Jun 3 23:56 README
-r–r–r– 1 root bin 16251 Jun 3 23:56 README.html
-rw-r–r– 1 root bin 11537912 Jun 3 23:56 src.zip
-r–r–r– 1 root bin 10129 Jun 3 23:56 THIRDPARTYLICENSEREADME.txtI know that it works, my user has access to java, javac, etc.
If this matters my JSP file in the “Problems” pane at the bottom of eclipse has this error message:
JSP file (/opt/eclipse/workspace/test/src/MyJsp.jsp) not in base path (/opt/eclipse/workspace/test/WebRoot/)Which is in reference to MyJSP.jsp … I just figured that wouldn’t matter since my current directory is in CLASSPATH, or I thought MyEclipse would copy it over to the Tomcat Directory.
Any more ideas on what might be wrong?
July 13, 2004 at 11:42 pm #209901
Riyad KallaMember/opt/eclipse? Did you emerge Eclipse? Did you install MyEclipse under your user account, or as root? Who owns Eclipse install and who owns MyEclipse? How are you running Eclipse? As user or root?
July 13, 2004 at 11:44 pm #209902
Riyad KallaMemberFor the absolute in sanity testing I’d say download Eclipse 3.0 SDK and MyEclipse 3.8 Beta 2 (yes please redownload) then unzip them on yoru desktop of your user account (don’t su to any other account) then install MyEclipse in your user account (I guess on your desktop) and point it at Eclipse on your desktop, then run it and see if setting up Tomcat there works.
We’ve run down some funky issues in the past on Linux and Mac and they’ve usually turned out to be permission problems and people not wanting to have a per-user install, which is fine, but lets do a sanity check first. If the sanity check runs fine, then I’d say you need to tweak your permissions, if it doesn’t, then we can keep debugging.
-
AuthorPosts
