留言板

JNDI Chart-portlet

ildar sl,修改在7 年前。

JNDI Chart-portlet

Regular Member 帖子: 158 加入日期: 11-12-12 最近的帖子
Hi!
I use Liferay 7

I am trying to configure the Chart-portlet.
All the time an error:
org.apache.naming.ResourceLinkRef cannot be cast to javax.sql.DataSourse


Configuration:
portal-ext.properties

jdbc.default.driverClassName=org.mariadb.jdbc.Driver
jdbc.default.url=jdbc:mariadb://localhost:3306/xxx?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=root
jdbc.default.password=123
jdbc.default.jndi.name=jdbc/LiferayPool


\tomcat-8.0.32\conf\server.xml

<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />


<Resource name="jdbc/LiferayPool"
global="jdbc/LiferayPool"
auth="Container"
type="javax.sql.DataSource"
maxActive="100"
maxIdle="30"
maxWait="10000"
username="root"
password="123"
driverClassName="org.mariadb.jdbc.Driver"
url="jdbc:mariadb://localhost:3306/xxx" />

</GlobalNamingResources>

\tomcat-8.0.32\conf\context.xml

<Context>
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
<ResourceLink
name="jdbc/LiferayPool"
global="jdbc/LiferayPool"
auth="Container"
type="javax.sql.DataSource" />

</Context>


And configuration portlet:
java:/comp/env/jdbc/LiferayPool

org.apache.naming.ResourceLinkRef cannot be cast to javax.sql.DataSourse


What could be the problem?
Manish Patil,修改在7 年前。

RE: JNDI Chart-portlet

New Member 发布: 1 加入日期: 16-12-5 最近的帖子
I am also facing this issue. Can someone please help?
Kanwar Yuvraj Singh,修改在7 年前。

RE: JNDI Chart-portlet

New Member 帖子: 10 加入日期: 15-4-1 最近的帖子
Were you able to resolve this issue? If yes, could you please share the solution
sravya rasaputra,修改在5 年前。

RE: JNDI Chart-portlet

New Member 发布: 1 加入日期: 18-2-5 最近的帖子

Im also having the same issue. Were you able to resolve this?