[
https://issues.redhat.com/browse/WFLY-14348?page=com.atlassian.jira.plugi...
]
Bartosz Baranowski edited comment on WFLY-14348 at 2/11/21 4:02 AM:
--------------------------------------------------------------------
Welp its tad complicated. Does not matter if its deployed directly or as module. Thing is
it IJ silently logs error and carries on when there is no connection URL, thrown from
[
AbstractDsDeployer.java#L312|https://github.com/ironjacamar/ironjacamar/b...]
--> [LocalManagedConnectionFactory.java#L105
|https://github.com/ironjacamar/ironjacamar/blob/1.4/adapters/src/main/java/org/jboss/jca/adapters/jdbc/local/LocalManagedConnectionFactory.java#L105
]and logged at
[
AbstractDsDeployer.java#L328|https://github.com/ironjacamar/ironjacamar/b...]
:
{quote}javax.resource.ResourceException: IJ031081: ConnectionURL is undefined{quote}
Im still trying to figure out why its silently dropped.
EDIT: not dropped, Im just blind:
{quote}09:20:48,625 ERROR
[org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService$AS7DataSourceDeployer]
(MSC service thread 1-6) Error during the deployment of java:jboss/datasources/Postgres:
javax.resource.ResourceException: IJ031081: ConnectionURL is undefined{quote}
was (Author: baranowb):
Welp its tad complicated. Does not matter if its deployed directly or as module. Thing is
it IJ silently logs error and carries on when there is no connection URL, thrown from
[
AbstractDsDeployer.java#L312|https://github.com/ironjacamar/ironjacamar/b...]
--> [LocalManagedConnectionFactory.java#L105
|https://github.com/ironjacamar/ironjacamar/blob/1.4/adapters/src/main/java/org/jboss/jca/adapters/jdbc/local/LocalManagedConnectionFactory.java#L105
]and logged at
[
AbstractDsDeployer.java#L328|https://github.com/ironjacamar/ironjacamar/b...]
:
{quote}javax.resource.ResourceException: IJ031081: ConnectionURL is undefined{quote}
Im still trying to figure out why its silently dropped.
Unhelpful failure message 'WFLYJCA0032: Unable to start the ds
because it generated more than one cf'
-----------------------------------------------------------------------------------------------------
Key: WFLY-14348
URL:
https://issues.redhat.com/browse/WFLY-14348
Project: WildFly
Issue Type: Bug
Components: JCA
Reporter: Brian Stansberry
Assignee: Bartosz Baranowski
Priority: Major
Playing with driver and DS installation I ended up with this in the server log:
{code}
10:54:11,424 ERROR [org.jboss.as.controller.management-operation]
(management-handler-thread - 1) WFLYCTL0013: Operation ("add") failed - address:
([
("subsystem" => "datasources"),
("data-source" => "Postgres")
]) - failure description: {"WFLYCTL0080: Failed services" =>
{"org.wildfly.data-source.Postgres" => "WFLYJCA0033: Error during the
deployment of Postgres
Caused by: org.jboss.msc.service.StartException in anonymous service: WFLYJCA0032:
Unable to start the ds because it generated more than one cf"}}
{code}
That was quite cryptic.
1) The 'ds' and 'cf' abbreviations should be replaced with full words. To
me this is the minimum resolution of this issue.
2) If it is possible to make a reasonably likely guess at what would lead to this
situation and provide that info in the message, that would be nice.
Context:
I tried deploying a JDBC driver and then adding a datasource using a CLI command:
{code}
data-source add --name=Postgres --driver-name=postgresql-42.2.18.jar
--jndi-name=java:jboss/datasources/Postgres
{code}
The 3 params are the required ones. I wasn't surprised that wasn't sufficient and
I understand that what's required beyond that can vary from driver to driver. But
those are the required ones, so users experimenting with WildFly are liable to do what I
did. (If any other params *should be* required, someone please file a separate issue.)
Adding a connection-url param allowed the command to work. If that param shouldn't be
required, but not providing it is a likely cause of this problem, perhaps the WFLYJCA0032
message should note that as a hint?
--
This message was sent by Atlassian Jira
(v8.13.1#813001)