- This topic has 9 replies, 3 voices, and was last updated 18 years, 10 months ago by
John Dunning.
-
AuthorPosts
-
rschiraMemberJust 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???
Riyad KallaMemberOpen 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.
rschiraMemberAnswers 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 -> /Struts3Web2. 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.
rschiraMemberIn 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”
Riyad KallaMemberThe 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?
rschiraMemberYes I see a MyEclipse entry.
rschiraMemberI can get the pages to run in the browser by typing in the following URL:
http://localhost:6999/Struts3Web/MyHtml.htmlHowever, 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 -> /Struts3WebThe file is located in the WebRoot directory
Riyad KallaMemberAs I mentioned, this functionality is not provided by MyEclipse, so you most likely have WTP installed and this option is being provided by it.
John DunningMemberOK, I have the same problem. So how do I get this project deployed to the tomcat server?
John DunningMemberSolved 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>
-
AuthorPosts