gretty-gradle-plugin / gretty

Advanced gradle plugin for running web-apps on jetty and tomcat.
MIT License
129 stars 36 forks source link

4.0.3 -> 4.1.0 #290

Open Hugolarson opened 1 year ago

Hugolarson commented 1 year ago

Hi, Using the new version we get the following exception. It works fine with old.

Aug 10, 2023 9:35:28 AM org.apache.catalina.core.NamingContextListener addResource
WARNING: Failed to register in JMX: [javax.naming.NamingException: Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: org.apache.tomcat.jdbc.pool.DataSourceFactory]] Aug 10, 2023 9:35:28 AM org.apache.catalina.users.MemoryUserDatabase open
SEVERE: The specified user database [conf/tomcat-users.xml] could not be found Aug 10, 2023 9:35:28 AM org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans SEVERE: Exception processing global JNDI Resources javax.naming.NamingException: Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: org.apache.tomcat.jdbc.pool.DataSourceFactory] at org.apache.naming.factory.FactoryBase.getObjectInstance(FactoryBase.java:70)

------------------------------------------------GRADLE------------------------------------------------------------------------------------ gretty { contextPath = "/order" servletContainer = 'tomcat10' enableNaming = true dependencies { gretty "org.apache.tomcat:tomcat-dbcp:${project.tomcat10Version}" gretty "org.apache.tomcat:tomcat-jdbc:${project.tomcat10Version}"

    gretty 'org.firebirdsql.jdbc:jaybird:4.0.9.java11'
    gretty 'com.mysql:mysql-connector-j:8.0.32'
}

}

wldomiciano commented 1 year ago

Same here!

I fixed replacing this:

gretty "org.apache.tomcat:tomcat-dbcp:$tomcat10Version"

With this:

grettyRunnerTomcat10 "org.apache.tomcat:tomcat-dbcp:$tomcat10Version"