1、属性文件roller-custom.properties:
installation.type=auto
database.configurationType=jdbc
database.jdbc.driverClass=com.mysql.jdbc.Driver
database.jdbc.connectionURL=jdbc:mysql://localhost:3306/rollerdb?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&mysqlEncoding=utf8
database.jdbc.username=roller_user
database.jdbc.password=roller
mail.configurationType=properties
mail.hostName=smtp-server.example.com
mail.username=scott
mail.password=tiger
2、数据库操作
create database rollerdb default charset utf8 collate utf8_general_ci;
grant all on rollerdb.* to roller_user@'%' identified by 'roller';
grant all on rollerdb.* to roller_user@localhost identified by 'roller';
3、发布Roller
从window的MyEclipse里把工程Roller打war包,放到另一台服务器(Linux系统JBoss)
发布成功,进入http://localhost:8080/Roller/如下图:
然后点击Yes-create tables now 跳到下面这个页面:
到现在一切正常,然后点击 上面那个 here 后就出现下面这个页面:
我很是郁闷呢。在window环境下的tomcat发布就好好的。为什么在Linux的JBoss里就不行呢。
我也已经在JBoss的lib下面放了mail.jar和activation.jar两个包了。请高手们指点一下,感激不尽啊!