facebook

Eclipse setup for tomcat

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts
  • #226244 Reply

    patmeth
    Member

    I 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.

    #226249 Reply

    Riyad Kalla
    Member

    Glenn,
    Do you have MyEclipse installed or just straight Eclipse? I’m having a hard time following what you are describing…

    #226316 Reply

    patmeth
    Member

    I 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.

    #226317 Reply

    patmeth
    Member

    Hello,

    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?

    #226319 Reply

    Riyad Kalla
    Member

    Glenn,
    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.html

    I want to first troubleshoot a supported situation (full Tomcat) before troubleshooting an unsupport situation (Tomcat from NetBeans).

    #226335 Reply

    patmeth
    Member

    Ok, I will download the full version of Tomcat 5 and try it.

    #226368 Reply

    patmeth
    Member

    Hello,

    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 ——————————-

    #226369 Reply

    Riyad Kalla
    Member

    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.

    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.

    #226372 Reply

    patmeth
    Member

    The JRun and JBoss servers on my machine don’t have any spaces in their path names. Any other suggestions? .
    Thanks,
    Glenn.

    #226374 Reply

    Riyad Kalla
    Member

    Please 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.

    #226409 Reply

    patmeth
    Member

    Hello 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.

    #226410 Reply

    Riyad Kalla
    Member

    No, 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.

    #226412 Reply

    patmeth
    Member

    Ok, 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.

    #226413 Reply

    Riyad Kalla
    Member

    1.4 and 1.5 should be fine, anything lower than 1.4 won’t work correctly.

    #226531 Reply

    patmeth
    Member

    Riyad,

    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;”

Viewing 15 posts - 1 through 15 (of 23 total)
Reply To: Eclipse setup for tomcat

You must be logged in to post in the forum log in