留言板
JNDI Chart-portlet
Hi!
I use Liferay 7
I am trying to configure the Chart-portlet.
All the time an error:
Configuration:
portal-ext.properties
\tomcat-8.0.32\conf\server.xml
\tomcat-8.0.32\conf\context.xml
And configuration portlet:
What could be the problem?
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?