- This topic has 22 replies, 2 voices, and was last updated 19 years, 8 months ago by patmeth.
-
AuthorPosts
-
patmethMemberI have Tomcat 5.0.28 that comes with Netbeans 4 on my PC. I have set the Tomcat part to this Tomcat installation directory. When I create a JSP and then right-click and click Run, another Eclipse IDE comes up instead of running the JSP page. Also, if I type the URL of the page in I get a cannot find the page error. I have no problem running and browsing the same page when I create a web application through Netbeans.
Thanks for the help.
Glenn.
Riyad KallaMemberGlenn,
Do you have MyEclipse installed or just straight Eclipse? I’m having a hard time following what you are describing…
patmethMemberI have the MyEclipseIDE. I also have Eclipse which I have downloaded earlier. I hope I can explain again more clearly. I am using Tomcat 5.0.28 that ships with Netbeans 4.0. This is under the “C:\Program Files\netbeans-4.0\nb4.0\jakarta-tomcat-5.0.28\” directory. I set this path up in Eclipse in the “Windows/Preferences” menu. I then tried to create a simple Web Application to run a JSP page. Before doing so I tried to start the Tomcat server from within the MyEclipseIDE by clicking on the icon. On typing the url to the page I get an error saying the resource does not exist. Is this because the Eclipse web folder is named “Webroot” instead of “web” as normally on the Apache server.
I am new to Eclipse and MyEclipse. I have not problems running the same JSP page in Netbeans.
What do you suggest?Thanks,
Glenn.
patmethMemberHello,
If it might help I have the JDF version 1.5 installed on my computer. I was also having problems starting JRun through the MyEclipseIDE but on checking online seems that I have to use a lower version of the JDK. Is this the same case with Tomcat?
Riyad KallaMemberGlenn,
I would encourage you to download the full Tomcat install from Jakarta, just the ZIP file is fine, then unzip it to a folder of your choice (preferably a location that does not have spaces in the name) see this doc for getting starting with all that: http://myeclipseide.com/enterpriseworkbench/help/index.jsp?topic=/com.genuitec.myeclipse.doc/html/quickstarts/appservers/index.htmlI want to first troubleshoot a supported situation (full Tomcat) before troubleshooting an unsupport situation (Tomcat from NetBeans).
patmethMemberOk, I will download the full version of Tomcat 5 and try it.
patmethMemberHello,
I downloaded JRun, Apache and JBoss. In all cases when I click on the Run Server/Server name icon, the debugger at “throw new NoSuchMethodException” in the method “public Method getMethod”. Do you know what the problem might be. This is my first try at Eclipse and it is frustrating.
Also, how do set up the IDE so that that when I want to create a Servlet the servlet mapping is automatically added to the web.xml file. This is very easy to accomplish in Netbeans. Does Eclipse have this option? How do I reset Eclipse JDK withing the IDE.
Thanks for your help and patience.
Glenn.- System Setup ——————————-
Operating System and version:
Eclipse version: 3.0
Eclipse build id:
Fresh Eclipse install (y/n):
If not, was it upgraded to its current version using the update manager?
Other installed external plugins:
Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*:
MyEclipse version: latest
Eclipse JDK version:
Application Server JDK version:
Are there any exceptions in the Eclipse log file?If this is a DB related question please answer the following:
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 KallaMemberIn all cases when I click on the Run Server/Server name icon, the debugger at “throw new NoSuchMethodException” in the method “public Method getMethod”. Do you know what the problem might be.
It could be because the app servers are installed in locations that have spaces in their path names. Some versions and installs of Windows do not handle the space well, so when MyEclipse goes to execute the main class, the space in the path confuses the JVM and it barfs trying to launch:
C:\Program (Files\Apache Group\Tomcat)where the stuff in parens is not considered.
patmethMemberThe JRun and JBoss servers on my machine don’t have any spaces in their path names. Any other suggestions? .
Thanks,
Glenn.
Riyad KallaMemberPlease tell me all the JBoss fields are set to on your computer so I can try and reproduce your problem locally. Also paste the entire console worth of messages when JBoss attempts to start.
patmethMemberHello Riyad,
I really appreciate you trying to help. The baffling thing is that I installed and ran the JBoss and Tomcat 5 servers at my work computer (Windows 2000) and MyElipse was able to start them. At home I have Windows XP and that is where I have a problem. Do you know of any issues with XP?Thanks,
Glenn.
Riyad KallaMemberNo, if anything XP should likely work better than 2k. but either way, I’d still like that info from you, maybe I can spot something.
patmethMemberOk, I will get you the information when I am back at home. Also, I must mention that I am bit of a newcomer to JSP and usually have worked with .NET.
In addition, do you think it has something to do with the JDK version that you have to select when designating a web server. I have used jdk1.5 and 1.4 and they both start the JBoss and Apacher server on my work desktop.
Thanks.
Riyad KallaMember1.4 and 1.5 should be fine, anything lower than 1.4 won’t work correctly.
patmethMemberRiyad,
Here is the error message. It really is baffling since I can start the Tomcat and Jrun Servers at work but not on my home computer. Is there any way I could send a screen shot through a Word attachment. I have a Dell computer with Windows XP and the 1.4 and 1.5 JDK. I also have the IIS web server on my work and home computers. The port no. for Tomcat is 8084.
” public Method getDeclaredMethod(String name, Class … parameterTypes)
throws NoSuchMethodException, SecurityException {
// be very careful not to change the stack depth of this
// checkMemberAccess call for security reasons
// see java.lang.SecurityManager.checkMemberAccess
checkMemberAccess(Member.DECLARED, ClassLoader.getCallerClassLoader());
Method method = searchMethods(privateGetDeclaredMethods(false), name, parameterTypes);
if (method == null) {
throw new NoSuchMethodException(getName() + “.” + name + argumentTypesToString(parameterTypes));
}
return method;” -
AuthorPosts