[JBoss JIRA] (WFLY-8461) Improve feedback after invalid request for creating a datasource
by Brian Stansberry (Jira)
[ https://issues.jboss.org/browse/WFLY-8461?page=com.atlassian.jira.plugin.... ]
Brian Stansberry resolved WFLY-8461.
------------------------------------
Resolution: Duplicate Issue
> Improve feedback after invalid request for creating a datasource
> ----------------------------------------------------------------
>
> Key: WFLY-8461
> URL: https://issues.jboss.org/browse/WFLY-8461
> Project: WildFly
> Issue Type: Enhancement
> Affects Versions: 10.1.0.Final
> Reporter: Karl-Philipp Richter
> Assignee: Jason Greene
> Priority: Major
>
> After creating a Non-XA datasource in the web frontend and pressing finish on the last dialog page, I get the message "Unknown error" and the data entered into the form is lost. Clicking on "Unknown error" a dialog is displayed with the content
> ```
> Unexpected HTTP response: 500
> Request
> {
> "name" => "jdbc/linuxtracker2",
> "jta" => true,
> "enabled" => true,
> "user-name" => "APP",
> "password" => "APP",
> "jndi-name" => "java:/jdbc/linuxtracker2",
> "use-ccm" => true,
> "pool-name" => "jdbc/linuxtracker2_Pool",
> "connection-url" => "jdbc:derby://localhost:1527/derby-pool",
> "driver-class" => "org.apache.derby.jdbc.ClientDriver",
> "driver-name" => "jdbc/linuxtracker2",
> "operation" => "add",
> "address" => [
> ("subsystem" => "datasources"),
> ("data-source" => "jdbc/linuxtracker2")
> ]
> }
> Response
> Internal Server Error
> {
> "outcome" => "failed",
> "failure-description" => {
> "WFLYCTL0412: Required services that are not installed:" => ["jboss.jdbc-driver.jdbc/linuxtracker2"],
> "WFLYCTL0180: Services with missing/unavailable dependencies" => [
> "org.wildfly.data-source.jdbc/linuxtracker2 is missing [jboss.jdbc-driver.jdbc/linuxtracker2]",
> "jboss.driver-demander.java:/jdbc/linuxtracker2 is missing [jboss.jdbc-driver.jdbc/linuxtracker2]"
> ]
> },
> "rolled-back" => true
> }
> ```
> which is extremely unhelpful given the fact that an error message listing and explaining the cause for the failure could be displayed (e.g. "the datasource xy couldn't be created because the name doesn't match the requirement yz").
> It's hard to guess that clicking on the "Unknown error" popup opens a dialog.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 3 months
[JBoss JIRA] (WFLY-8460) Improve feedback after invalid request for creating a datasource
by Brian Stansberry (Jira)
[ https://issues.jboss.org/browse/WFLY-8460?page=com.atlassian.jira.plugin.... ]
Brian Stansberry resolved WFLY-8460.
------------------------------------
Resolution: Duplicate Issue
> Improve feedback after invalid request for creating a datasource
> ----------------------------------------------------------------
>
> Key: WFLY-8460
> URL: https://issues.jboss.org/browse/WFLY-8460
> Project: WildFly
> Issue Type: Enhancement
> Affects Versions: 10.1.0.Final
> Environment: Ubuntu 16.10 amd64 with OpenJDK 8
> Reporter: Karl-Philipp Richter
> Assignee: Jason Greene
> Priority: Major
>
> After creating a Non-XA datasource in the web frontend and pressing finish on the last dialog page, I get the message "Unknown error" and the data entered into the form is lost. Clicking on "Unknown error" a dialog is displayed with the content
> ```
> Unexpected HTTP response: 500
> Request
> {
> "name" => "jdbc/linuxtracker2",
> "jta" => true,
> "enabled" => true,
> "user-name" => "APP",
> "password" => "APP",
> "jndi-name" => "java:/jdbc/linuxtracker2",
> "use-ccm" => true,
> "pool-name" => "jdbc/linuxtracker2_Pool",
> "connection-url" => "jdbc:derby://localhost:1527/derby-pool",
> "driver-class" => "org.apache.derby.jdbc.ClientDriver",
> "driver-name" => "jdbc/linuxtracker2",
> "operation" => "add",
> "address" => [
> ("subsystem" => "datasources"),
> ("data-source" => "jdbc/linuxtracker2")
> ]
> }
> Response
> Internal Server Error
> {
> "outcome" => "failed",
> "failure-description" => {
> "WFLYCTL0412: Required services that are not installed:" => ["jboss.jdbc-driver.jdbc/linuxtracker2"],
> "WFLYCTL0180: Services with missing/unavailable dependencies" => [
> "org.wildfly.data-source.jdbc/linuxtracker2 is missing [jboss.jdbc-driver.jdbc/linuxtracker2]",
> "jboss.driver-demander.java:/jdbc/linuxtracker2 is missing [jboss.jdbc-driver.jdbc/linuxtracker2]"
> ]
> },
> "rolled-back" => true
> }
> ```
> which is extremely unhelpful given the fact that an error message listing and explaining the cause for the failure could be displayed (e.g. "the datasource xy couldn't be created because the name doesn't match the requirement yz").
> It's hard to guess that clicking on the "Unknown error" popup opens a dialog.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 3 months
[JBoss JIRA] (WFLY-8462) Improve feedback after invalid request for creating a datasource
by Brian Stansberry (Jira)
[ https://issues.jboss.org/browse/WFLY-8462?page=com.atlassian.jira.plugin.... ]
Brian Stansberry commented on WFLY-8462:
----------------------------------------
[~hpehl] I don't know if anything can be done about.
The error message isn't going to be like what's requested. The validation is generic, is done asynchronously and is too far removed the original input to make that kind of message feasible. If the datasource subsystem had a capability/requirement link between the datasource resource and the driver the message would be a bit better but still not that kind of tailored input. I also suspect using a requirement wouldn't work because I believe the value of the driver can be the name of a deployment or a name of a resource, and the former won't register a capability.
[~maeste] FYI.
> Improve feedback after invalid request for creating a datasource
> ----------------------------------------------------------------
>
> Key: WFLY-8462
> URL: https://issues.jboss.org/browse/WFLY-8462
> Project: WildFly
> Issue Type: Enhancement
> Components: JCA, Web Console
> Affects Versions: 10.1.0.Final
> Reporter: Karl-Philipp Richter
> Assignee: Harald Pehl
> Priority: Major
>
> After creating a Non-XA datasource in the web frontend and pressing finish on the last dialog page, I get the message "Unknown error" and the data entered into the form is lost. Clicking on "Unknown error" a dialog is displayed with the content
> ```
> Unexpected HTTP response: 500
> Request
> {
> "name" => "jdbc/linuxtracker2",
> "jta" => true,
> "enabled" => true,
> "user-name" => "APP",
> "password" => "APP",
> "jndi-name" => "java:/jdbc/linuxtracker2",
> "use-ccm" => true,
> "pool-name" => "jdbc/linuxtracker2_Pool",
> "connection-url" => "jdbc:derby://localhost:1527/derby-pool",
> "driver-class" => "org.apache.derby.jdbc.ClientDriver",
> "driver-name" => "jdbc/linuxtracker2",
> "operation" => "add",
> "address" => [
> ("subsystem" => "datasources"),
> ("data-source" => "jdbc/linuxtracker2")
> ]
> }
> Response
> Internal Server Error
> {
> "outcome" => "failed",
> "failure-description" => {
> "WFLYCTL0412: Required services that are not installed:" => ["jboss.jdbc-driver.jdbc/linuxtracker2"],
> "WFLYCTL0180: Services with missing/unavailable dependencies" => [
> "org.wildfly.data-source.jdbc/linuxtracker2 is missing [jboss.jdbc-driver.jdbc/linuxtracker2]",
> "jboss.driver-demander.java:/jdbc/linuxtracker2 is missing [jboss.jdbc-driver.jdbc/linuxtracker2]"
> ]
> },
> "rolled-back" => true
> }
> ```
> which is extremely unhelpful given the fact that an error message listing and explaining the cause for the failure could be displayed (e.g. "the datasource xy couldn't be created because the name doesn't match the requirement yz").
> It's hard to guess that clicking on the "Unknown error" popup opens a dialog.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 3 months
[JBoss JIRA] (WFLY-8462) Improve feedback after invalid request for creating a datasource
by Brian Stansberry (Jira)
[ https://issues.jboss.org/browse/WFLY-8462?page=com.atlassian.jira.plugin.... ]
Brian Stansberry updated WFLY-8462:
-----------------------------------
Component/s: JCA
Web Console
> Improve feedback after invalid request for creating a datasource
> ----------------------------------------------------------------
>
> Key: WFLY-8462
> URL: https://issues.jboss.org/browse/WFLY-8462
> Project: WildFly
> Issue Type: Enhancement
> Components: JCA, Web Console
> Affects Versions: 10.1.0.Final
> Reporter: Karl-Philipp Richter
> Assignee: Jason Greene
> Priority: Major
>
> After creating a Non-XA datasource in the web frontend and pressing finish on the last dialog page, I get the message "Unknown error" and the data entered into the form is lost. Clicking on "Unknown error" a dialog is displayed with the content
> ```
> Unexpected HTTP response: 500
> Request
> {
> "name" => "jdbc/linuxtracker2",
> "jta" => true,
> "enabled" => true,
> "user-name" => "APP",
> "password" => "APP",
> "jndi-name" => "java:/jdbc/linuxtracker2",
> "use-ccm" => true,
> "pool-name" => "jdbc/linuxtracker2_Pool",
> "connection-url" => "jdbc:derby://localhost:1527/derby-pool",
> "driver-class" => "org.apache.derby.jdbc.ClientDriver",
> "driver-name" => "jdbc/linuxtracker2",
> "operation" => "add",
> "address" => [
> ("subsystem" => "datasources"),
> ("data-source" => "jdbc/linuxtracker2")
> ]
> }
> Response
> Internal Server Error
> {
> "outcome" => "failed",
> "failure-description" => {
> "WFLYCTL0412: Required services that are not installed:" => ["jboss.jdbc-driver.jdbc/linuxtracker2"],
> "WFLYCTL0180: Services with missing/unavailable dependencies" => [
> "org.wildfly.data-source.jdbc/linuxtracker2 is missing [jboss.jdbc-driver.jdbc/linuxtracker2]",
> "jboss.driver-demander.java:/jdbc/linuxtracker2 is missing [jboss.jdbc-driver.jdbc/linuxtracker2]"
> ]
> },
> "rolled-back" => true
> }
> ```
> which is extremely unhelpful given the fact that an error message listing and explaining the cause for the failure could be displayed (e.g. "the datasource xy couldn't be created because the name doesn't match the requirement yz").
> It's hard to guess that clicking on the "Unknown error" popup opens a dialog.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 3 months
[JBoss JIRA] (WFLY-8462) Improve feedback after invalid request for creating a datasource
by Brian Stansberry (Jira)
[ https://issues.jboss.org/browse/WFLY-8462?page=com.atlassian.jira.plugin.... ]
Brian Stansberry reassigned WFLY-8462:
--------------------------------------
Assignee: Harald Pehl (was: Jason Greene)
> Improve feedback after invalid request for creating a datasource
> ----------------------------------------------------------------
>
> Key: WFLY-8462
> URL: https://issues.jboss.org/browse/WFLY-8462
> Project: WildFly
> Issue Type: Enhancement
> Components: JCA, Web Console
> Affects Versions: 10.1.0.Final
> Reporter: Karl-Philipp Richter
> Assignee: Harald Pehl
> Priority: Major
>
> After creating a Non-XA datasource in the web frontend and pressing finish on the last dialog page, I get the message "Unknown error" and the data entered into the form is lost. Clicking on "Unknown error" a dialog is displayed with the content
> ```
> Unexpected HTTP response: 500
> Request
> {
> "name" => "jdbc/linuxtracker2",
> "jta" => true,
> "enabled" => true,
> "user-name" => "APP",
> "password" => "APP",
> "jndi-name" => "java:/jdbc/linuxtracker2",
> "use-ccm" => true,
> "pool-name" => "jdbc/linuxtracker2_Pool",
> "connection-url" => "jdbc:derby://localhost:1527/derby-pool",
> "driver-class" => "org.apache.derby.jdbc.ClientDriver",
> "driver-name" => "jdbc/linuxtracker2",
> "operation" => "add",
> "address" => [
> ("subsystem" => "datasources"),
> ("data-source" => "jdbc/linuxtracker2")
> ]
> }
> Response
> Internal Server Error
> {
> "outcome" => "failed",
> "failure-description" => {
> "WFLYCTL0412: Required services that are not installed:" => ["jboss.jdbc-driver.jdbc/linuxtracker2"],
> "WFLYCTL0180: Services with missing/unavailable dependencies" => [
> "org.wildfly.data-source.jdbc/linuxtracker2 is missing [jboss.jdbc-driver.jdbc/linuxtracker2]",
> "jboss.driver-demander.java:/jdbc/linuxtracker2 is missing [jboss.jdbc-driver.jdbc/linuxtracker2]"
> ]
> },
> "rolled-back" => true
> }
> ```
> which is extremely unhelpful given the fact that an error message listing and explaining the cause for the failure could be displayed (e.g. "the datasource xy couldn't be created because the name doesn't match the requirement yz").
> It's hard to guess that clicking on the "Unknown error" popup opens a dialog.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 3 months
[JBoss JIRA] (WFLY-9747) wildfly-arquillian-container-managed: java.lang.ClassNotFoundException: org.wildfly.security.permission.AbstractNameSetOnlyPermission
by James Perkins (Jira)
[ https://issues.jboss.org/browse/WFLY-9747?page=com.atlassian.jira.plugin.... ]
James Perkins commented on WFLY-9747:
-------------------------------------
That’s a newer version of wildly-arquillian. I’ll have to double check it.
> wildfly-arquillian-container-managed: java.lang.ClassNotFoundException: org.wildfly.security.permission.AbstractNameSetOnlyPermission
> -------------------------------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-9747
> URL: https://issues.jboss.org/browse/WFLY-9747
> Project: WildFly
> Issue Type: Bug
> Reporter: Geoffrey De Smet
> Assignee: James Perkins
> Priority: Major
>
> On a pretty vanilla war file with a bit JAX-RS and arquillian, I get this error when trying to run an arquillian test (that worked before we upgraded the wildfly version):
> {code}
> [INFO] Running org.optaplanner.openshift.employeerostering.webapp.skill.SkillRestServiceTest
> Jan 31, 2018 7:52:20 PM org.jboss.as.arquillian.container.managed.ManagedDeployableContainer startInternal
> WARNING: Bundles path is deprecated and no longer used.
> Jan 31, 2018 7:52:20 PM org.jboss.as.arquillian.container.managed.ManagedDeployableContainer startInternal
> INFO: Starting container with: [/usr/lib/jvm/java-openjdk/bin/java, -D[Standalone], -Djboss.socket.binding.port-offset=10000, -Xms512m, -Xmx1024m, -XX:MaxPermSize=512m, -ea, -Djboss.home.dir=/home/ge0ffrey/projects/jboss/optashift/optashift-employee-rostering/local/appserver/wildfly-10.1.0.Final, -Dorg.jboss.boot.log.file=/home/ge0ffrey/projects/jboss/optashift/optashift-employee-rostering/local/appserver/wildfly-10.1.0.Final/standalone/log/server.log, -Dlogging.configuration=file:/home/ge0ffrey/projects/jboss/optashift/optashift-employee-rostering/local/appserver/wildfly-10.1.0.Final/standalone/configuration/logging.properties, -jar, /home/ge0ffrey/projects/jboss/optashift/optashift-employee-rostering/local/appserver/wildfly-10.1.0.Final/jboss-modules.jar, -mp, /home/ge0ffrey/projects/jboss/optashift/optashift-employee-rostering/local/appserver/wildfly-10.1.0.Final/modules, org.jboss.as.standalone, -Djboss.home.dir=/home/ge0ffrey/projects/jboss/optashift/optashift-employee-rostering/local/appserver/wildfly-10.1.0.Final, -Djboss.server.base.dir=/home/ge0ffrey/projects/jboss/optashift/optashift-employee-rostering/local/appserver/wildfly-10.1.0.Final/standalone, -Djboss.server.log.dir=/home/ge0ffrey/projects/jboss/optashift/optashift-employee-rostering/local/appserver/wildfly-10.1.0.Final/standalone/log, -Djboss.server.config.dir=/home/ge0ffrey/projects/jboss/optashift/optashift-employee-rostering/local/appserver/wildfly-10.1.0.Final/standalone/configuration]
> OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
> [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.449 s <<< FAILURE! - in org.optaplanner.openshift.employeerostering.webapp.skill.SkillRestServiceTest
> [ERROR] org.optaplanner.openshift.employeerostering.webapp.skill.SkillRestServiceTest Time elapsed: 0.448 s <<< ERROR!
> java.lang.NoClassDefFoundError: org/wildfly/security/permission/AbstractNameSetOnlyPermission
> at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272)
> at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:236)
> at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> Caused by: java.lang.ClassNotFoundException: org.wildfly.security.permission.AbstractNameSetOnlyPermission
> at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272)
> at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:236)
> at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> {code}
> With this parent pom:
> {code}
> <properties>
> <version.org.jboss.arquillian>1.2.1.Final</version.org.jboss.arquillian>
> <version.org.wildfly.arquillian>2.1.0.Final</version.org.wildfly.arquillian>
> <version.org.jboss.resteasy>3.1.4.Final</version.org.jboss.resteasy>
> </properties>
> <dependencyManagement>
> <dependencies>
> <dependency>
> <groupId>org.jboss.arquillian</groupId>
> <artifactId>arquillian-bom</artifactId>
> <version>${version.org.jboss.arquillian}</version>
> <type>pom</type>
> <scope>import</scope>
> </dependency>
> <dependency>
> <groupId>org.wildfly.arquillian</groupId>
> <artifactId>wildfly-arquillian-container-managed</artifactId>
> <version>${version.org.wildfly.arquillian}</version>
> </dependency>
> <dependency>
> <groupId>org.jboss.resteasy</groupId>
> <artifactId>resteasy-client</artifactId>
> <version>${version.org.jboss.resteasy}</version>
> </dependency>
> ...
> {code}
> and this child pom:
> {code}
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.jboss.arquillian.junit</groupId>
> <artifactId>arquillian-junit-container</artifactId>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.jboss.shrinkwrap.resolver</groupId>
> <artifactId>shrinkwrap-resolver-depchain</artifactId>
> <type>pom</type>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.wildfly.arquillian</groupId>
> <artifactId>wildfly-arquillian-container-managed</artifactId>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.jboss.resteasy</groupId>
> <artifactId>resteasy-client</artifactId>
> <scope>test</scope>
> </dependency>
> {code}
> I am probably not using a correct version combination of arquillian and wildfly, but for mere mortals such as myself it takes days to find a working versions combination of arquillian and wildfly - everytime I need to upgrade wildfly. (The arquillian guides and arquillian-showcase-jaxrs are all hopelessly outdated in this aspect, they still mention jboss-as (= wildfly 7)).
> Solution proposal A)
> wildfly-arquillian-managed should automatically detect that it's a wrong version combination and give an error message like "I am not build to work with version x, but it seems like you're combining me with version y."
> Solution proposal B)
> Use the same version numbers for wildfly-arquillian-container-managed (currently 2.1.0.Final) as for wildfly.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 3 months
[JBoss JIRA] (WFLY-9228) CXF Fediz library cannot be included into the application
by Brian Stansberry (Jira)
[ https://issues.jboss.org/browse/WFLY-9228?page=com.atlassian.jira.plugin.... ]
Brian Stansberry updated WFLY-9228:
-----------------------------------
Component/s: Web Services
> CXF Fediz library cannot be included into the application
> ---------------------------------------------------------
>
> Key: WFLY-9228
> URL: https://issues.jboss.org/browse/WFLY-9228
> Project: WildFly
> Issue Type: Bug
> Components: Web Services
> Affects Versions: 10.0.0.Final
> Reporter: Zoltán Takács
> Assignee: Jason Greene
> Priority: Major
>
> We use Apache CXF Fediz (http://cxf.apache.org/fediz.html) libraries in our application. It is a subproject of Apache CXF, but independent of it. We cannot create a wildfly module from this, because the library has a lot of dependecies and these dependencies could cause other class loading problems. So we need to add it into our war file.
> In *org.jboss.as.webservices.deployers.WSLibraryFilterProcessor* class wildfly deployer filter all classes from org.apache.cxf package, including classes in org.apache.cxf.fediz.
> We suggest to modify this filter to allow us to use CXF subproject (primarily Fediz).
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 3 months