Friday, March 13, 2009

Set Up the Sun Java Server GlassFish

  J2EE的服务器装好了很久了,没用过,又安装了Tomcat, 之前跟着教程试过了好几个servlet,但是还不知道jsp是什么工作的。今天想一用一下吧。就回归到这个问题上了。想用netbean,看了一下自带的quick start结果发现很多文件夹都对应不上,东西都找不到,quickstart不了。于是想去sun网站找个新的quickstart 吧,结果找到一个旧的,倒是对应上了。就start了一个,于是我的第一个jsp helloworld就出现在我的屏幕上了,然后呢,又不知道干什么了。不过先总结一下吧。

quick start: http://docs.sun.com/source/819-1004/QuickStart.htm
(1) 服务器网址: http://localhost:8080/
(2) www server root 在 install_dir/domains/domain1
(3) 例子在 install_dir/samples , helloworld也在这
(4) 在domain1里面有个autodeploy的文件夹,把war文件放进去就会自动deploy了。
(5) 管理地址: http://localhost:4848/asadmin
  不过好像 http://localhost:4848/ 就可以了。我没用过。

No comments:

Post a Comment