掲示板

JNDI Chart-portlet

7年前 に ildar sl によって更新されました。

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?
7年前 に Manish Patil によって更新されました。

RE: JNDI Chart-portlet

New Member 投稿: 1 参加年月日: 16/12/05 最新の投稿
I am also facing this issue. Can someone please help?
7年前 に Kanwar Yuvraj Singh によって更新されました。

RE: JNDI Chart-portlet

New Member 投稿: 10 参加年月日: 15/04/01 最新の投稿
Were you able to resolve this issue? If yes, could you please share the solution
5年前 に sravya rasaputra によって更新されました。

RE: JNDI Chart-portlet

New Member 投稿: 1 参加年月日: 18/02/05 最新の投稿

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