日期:2014-05-16 浏览次数:20718 次
java.lang.IllegalArgumentException: resin is an unknown user??
??????? at com.caucho.bootjni.JniProcess.exec(Native Method)??
??????? at com.caucho.bootjni.JniProcess.<init>(JniProcess.java:75)??
??????? at com.caucho.bootjni.JniProcess.create(JniProcess.java:105)??
??????? at com.caucho.bootjni.JniProcess.create(JniProcess.java:27)??
??????? at com.caucho.bootjni.JniBoot.exec(JniBoot.java:61)??
??????? at com.caucho.boot.WatchdogProcess.createProcess(WatchdogProcess.java:552)??
??????? at com.caucho.boot.WatchdogProcess.run(WatchdogProcess.java:95)??
??????? at com.caucho.boot.WatchdogTask.run(WatchdogTask.java:106)??
??????? at java.lang.Thread.run(Thread.java:619)?
?
仔细一瞧原来问题在这呢:
conf/resin.xml文件中有这么一段
Java代码
????? <resin:if test="${resin.userName == 'root'}">??
??????? <user-name>resin</user-name>??
??????? <group-name>resin</group-name>??
????? </resin:if>??
?
?
1.? useradd resin??
2.? chown -R resin /var/server/resin-3.2.1??
????? <resin:if test="${resin.userName == 'root'}">
??????? <user-name>resin</user-name>
??????? <group-name>resin</group-name>
????? </resin:if>
1.? useradd resin
2.? chown -R resin /var/server/resin-3.2.1
注: /var/server/resin-3.2.1是系统中的resin目录
重启resin