darkpoon 发表于 2015-5-20 07:25:31

win7 下配置resin的一些tip

  一、如何查看jdk安装目录;
  通过不同方法搜索javac看看, javac.exe 是java的编译器;
  可用的搜索方法:
  1、cmd 控制台:where javac
  2、开始菜单的搜索: 一直到“计算机”中的搜索结果中寻找。

  一般会安装在后面目录下: C:\Program Files\Java
  
  二、下载安装Resin
  版本选择:
  resin 普通版本和pro版本主要区别是 pro支持缓存和负载均衡。pro因为有强大的cache功能,独立作为web服务器处理静态页面性能都可以和apache有一比。但普通版本独立作为web服务器性能就要差一些。当然可以使用apache+resin的方案借助apache的缓存功能提高性能。 但负载均衡就是普通版不能比的了。
  http://www.caucho.com/download/
  我们下载免费版应该下载下图红框的这个版本:

  
  三、启动Resin,访问首页: http://localhost:8080/报下面错误的解决方案:
  500 Servlet Exception
  Resin can't load com.sun.tools.javac.Main.Usually this means that the   
JDK tools.jar is missing from the classpath, possibly because of using   
a JRE instead of the JDK.You can either add tools.jar to the classpath   
or change the compiler to an external one with      
or jikes.
  java.lang.ClassNotFoundException: com.sun.tools.javac.Main in DynamicClassLoader]
  原因及解决方法:
  没有设置java的环境变量,请把 JAVA_HOME 、 PATH、CLASSPATH 这三个环境变量进行设置;
  设置方法参考: http://blog.iyunv.com/ghj1976/article/details/5543428
  
  http://zhidao.baidu.com/question/43115302.html
  
  四、新建和修改项目地址
  修改resin的conf目录下的resin.conf文件即可完成设置。
  这个配置文件的每个配置节说明可以看下面几篇文章:
  resin3.1下resin.conf配置文件说明   
http://blog.iyunv.com/bobshute/article/details/4058298
页: [1]
查看完整版本: win7 下配置resin的一些tip