Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.0.3 -> 4.1.0 #290

Open
Hugolarson opened this issue Aug 10, 2023 · 1 comment
Open

4.0.3 -> 4.1.0 #290

Hugolarson opened this issue Aug 10, 2023 · 1 comment

Comments

@Hugolarson
Copy link

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
Copy link

Same here!

I fixed replacing this:

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

With this:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants