开发者

How to upload the JSF Project into web

How do I upload the JavaServerFace Project, that I created in eclipse, to the internet?

It's a dynamic web page project; Is there a special progra开发者_如何转开发m or is it uploaded just as a normal website would be? Do I have to put the files in a jar file, war file?

Everything works fine when I launch it from eclipse with tomcat. Do I need to somehow put tomcat in the web server? (I'm just guessing here). I have tried uploading it just as I would a normal website, but turns out I can't see the content of my main login page.

When I tried viewing it with InternetExplorer, after uploading the project using WS_FTP, IE prompted my to download the file? When I go to the view page source, under view, I see the actual syntax, but the form doesn't show up in the browser window. The file extension is .xhtml, because eclipse wouldn't show me anything when I set the file extension to .html (When I tried to run with the server).

I also couldn't use .jsp because eclipse gave me a:

NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config error

(Is .xhtml mandatory?). I am using Tomcat 7, eclipse, the newest version of eclipse that I downloaded a month ago, and JSF2.0 (Mojarra 2.0).

I first tried downloading every individual file from every folder, the ones that I could that is. When that didn't work I downloaded the individual folders, after that the whole JSFProject folder, needless to say it failed every time.

I hope I have provided enough information. I'm not worried about how to make java server faces work, I know I can figure it out, but how do I upload it? I have searched this for days (literally- I'm a college student, so research is what I'm accustomed to, but I couldn't find any leads regarding this subject at all. This may be basic, but I just need a push in the right direction.)


Of course you need to install tomcat on the web server! follow the steps:

  1. Download tomcat as a windows service Tomcat 7 download and double click to run it and install it.
  2. In Eclipse, stand on your project and right click: export->war and choose your location (desktop).
  3. copy the are to %tomcat_home% (on your web server) -> webapp.

  4. open your computer's services console (if you have windows7 just type it in the search command. Otherwise it should be under accessories)

  5. look for apache tomcat and restart the server.

  6. point to the same URL that you used in your pc.


you can just go get a tomcat-server and put it there

reading your question and some answers, i think youre better off with that and save a lot of time.

http://www.java-hoster.com/en/index.php id go there, they seem to have just what u need

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜