【求助】玩过Apache Roller的进-->Roller在JBoss服务器上发布起来后出错。

本文记录了在Linux环境下使用JBoss部署Roller应用的过程及遇到的问题。详细介绍了配置属性文件、创建数据库、授权用户等步骤,并描述了在部署过程中遇到的异常情况。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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两个包了。请高手们指点一下,感激不尽啊!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值