James Netherton created CAMEL-12198:
---------------------------------------
Summary: Make camel-pgevent work in modular class loading
environments
Key: CAMEL-12198
URL: https://issues.apache.org/jira/browse/CAMEL-12198
Project: Camel
Issue Type: Improvement
Reporter: James Netherton
Assignee: James Netherton
Fix For: 2.21.0
There's a small issue with how camel-pgevent attempts to check for the presence
of the PostgreSQL JDBC driver. It does:
{code:java}
getClassResolver().resolveMandatoryClass("com.impossibl.postgres.jdbc.PGDriver");
{code}
On Karaf this results in:
{code:java}
java.lang.ClassNotFoundException: com.impossibl.postgres.jdbc.PGDriver
at
org.apache.camel.impl.DefaultClassResolver.resolveMandatoryClass(DefaultClassResolver.java:80)
~[59:org.apache.camel.camel-core:2.20.2]
at
org.apache.camel.component.pgevent.PgEventEndpoint.initJdbc(PgEventEndpoint.java:93)
~[?:?]
at
org.apache.camel.component.pgevent.PgEventProducer.doStart(PgEventProducer.java:67)
~[?:?]
{code}
I have a similar issue on WildFly. I think it'd be better to do the lookup
using the ClassLoader of the PgEventComponent. This should work fine in most
scenarios.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)