0. 安装条件:JavaSE1.6以上,需设置JAVA_HOME,Path, ClassPath环境变量;
1. 解压:下载vvirgo-tomcat-server-3.0.0.RELEASE .zip,解压至C:\virgo-tomcat-server-3.0.0.RELEASE下;
2. 设置环境变量:SERVER_HOME=C:\virgo-tomcat-server-3.0.0.RELEASE 或
VWS_HOME=C:\virgo-tomcat-server-3.0.0.RELEASE
3. 建立启动脚本virgo.bat :
cd C:\virgo-tomcat-server-3.0.0.RELEASE\bin
startup.bat
4. 浏览器访问:
http://localhost:8080
账户密码:admin/springsource
5. Starting in clean mode:
在启动脚本后加: -clean
在该模式下启动,SERVER_HOME目录下的repository、pickup目录不会变动,work目录(包括所有的日志,垃圾
文件及操作轨迹)将被删除并重新生成;
即重新安装所有的App.
6. Starting in debug mode:
在启动脚本后加:-debug 8001,默认端口是8000,是Eclipse默认远程调试的端口;
若要监听在启动过程中直到出现异常才调试,则在脚本后添加:-suspend;
7. Starting with JMX Access Modifications
先启动vws后,在启动bin目录下的jconsole.bat;
Remote Process的地址:localhost:9875,用户名/密码:admin/springsoure
修改端口:启动时指定端口:startup.bat -jmxport 9090
修改账号密码:修改config/org.eclipse.virgo.kernel.users.properties:
##################
# User definitions
##################
user.springs=virgo
##################
# Role definitions
##################
role.admin=springs
该配置文件中账号密码为:springs/virgo.
8. 停止VTS:
进入bin目录下,执行:
shutdown.bat或shutdown.bat -immediate或shutdown.bat -jmxPort 8090或执行Ctrl+C快捷键。
9. Eclipse下Virgo Tools安装
http://dist.springsource.com/release/TOOLS/update/e3.7/
http://download.eclipse.org/virgo/milestone/IDE
VirIDE Maven仓库下载地址:
http://ftp.jaist.ac.jp/pub/eclipse/virgo/milestone/IDE/
10.Windows下启动VTS异常
WARNING: jmxPermissions.vbs did not update the permissions of
C:\virgo\config\org.eclipse.virgo.kernel.jmxremote.access.properties.
Check the file has the correct permissions.
解决方法:
需要修改config/org.eclipse.virgo.kernel.jmxremote.access.properties文件的访问者及权限。
11.Clean VTS Without Start
prompt> cd %SERVER_HOME%
prompt> bin\startup.bat -clean -noStart
12.OSGi IDE
Spring IDE plug-in:http://springide.org/
Eclipse Knopflerfish plug-in:http://www.Knopflerfish.org/eclipse_install.html
Eclipse ProSyst plug-in:http://dz.prosyst.com/oss/
13.VirgoIDE
该版本的VirgoIDE支持在STS2.7.2-2.9.0上安装,是对VirgoIDE-1.0.0.201106220519-M01进行改装后的插件。
见附件VirgoIDE-1.0.0.201106220519-M01.zip.