facebook

[Closed] Error launching jsp with the Tomcat 5 server

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #253238 Reply

    rschira
    Member

    Just created my first Web App, configured the TomCat App server, deployed successfully, started the server but get the following error when attempting to run the .jsp file.

    Server Error
    No launchable artifact could be found in the selection.

    Any ideas???

    #253254 Reply

    Riyad Kalla
    Member

    Open your project and go to project properties, then go to MyEclipse-web, what are the two values in the two text boxes?

    Now tell me the URL you are using to access your JSP page.

    #253256 Reply

    rschira
    Member

    Answers to your questions.

    1. Open your project and go to project properties, then go to MyEclipse-web, what are the two values in the two text boxes?

    Web Root Folder -> WebRoot
    Web Context Root -> /Struts3Web

    2. Now tell me the URL you are using to access your JSP page.
    I am just using a right-click on the jsp page and selecting “run on server”. I am not explicitly typing in a URL. I never get far enough to see the URL that is being used.

    #253257 Reply

    rschira
    Member

    In addition, the “properties/server” indicates that I need to set the default server for this project and that “this project cannot be deployed to a server”

    #253259 Reply

    Riyad Kalla
    Member

    The problem sounds like you have both WTP and MyEclipse installed. Both of them offer competing menu entries, editors and other resources for the same files. There is even a possibility you aren’t using MyEclipse (unless you are certain you are) in which case your question might be a WTP one.

    If you go to Window > Preferences, do you see a “MyEclipse” entry?

    #253260 Reply

    rschira
    Member

    Yes I see a MyEclipse entry.

    #253261 Reply

    rschira
    Member

    I can get the pages to run in the browser by typing in the following URL:
    http://localhost:6999/Struts3Web/MyHtml.html

    However, I can’t seem to get it to run using the right clicking on the file and using the “run at server” menu item.
    Web Root Folder -> /WebRoot
    Web Context Root -> /Struts3Web

    The file is located in the WebRoot directory

    #253262 Reply

    Riyad Kalla
    Member

    As I mentioned, this functionality is not provided by MyEclipse, so you most likely have WTP installed and this option is being provided by it.

    #254844 Reply

    John Dunning
    Member

    OK, I have the same problem. So how do I get this project deployed to the tomcat server?

    #254845 Reply

    John Dunning
    Member

    Solved it. Here’s what I did:

    Window -> Show View -> Other -> MyEclipse Enterprise Workbench -> Servers

    In the MyEclipse Servers view (as opposed to the eclipse Servers view) click on the configure icon and set up tomcat5 with your installed tomcat directory, expand the tomcat 5 options in the left preferences pane and click on JDK and add the jdk you are using (you cannot used the one you previously defined in eclipse).

    Apply the changes and return to the MyEclipse Servers view, now click on the Manage Deployments icon and add your myeclipse project

    Now start your server and manually enter the project address into the web address bar:

    http://localhost:8080/<project name>/<page>

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: [Closed] Error launching jsp with the Tomcat 5 server

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