[JBoss JIRA] (WFLY-10156) Java EE 7 REST Service not called
by Marek Kopecký (Jira)
[ https://issues.jboss.org/browse/WFLY-10156?page=com.atlassian.jira.plugin... ]
Marek Kopecký commented on WFLY-10156:
--------------------------------------
[~viggo.navarsete]: Any update?
> Java EE 7 REST Service not called
> ---------------------------------
>
> Key: WFLY-10156
> URL: https://issues.jboss.org/browse/WFLY-10156
> Project: WildFly
> Issue Type: Bug
> Components: REST
> Affects Versions: 12.0.0.Final
> Reporter: Viggo Navarsete
> Assignee: Alessio Soldano
> Priority: Major
>
> Current setup that works:
> Wildfly 10.0.0.Final
> Keycloak 3.4.3.Final
> - Deployed a REST endpoint (/zupplyio-orderservice/orders) to Wildfly 10.0.0.Final
> - Access the endpoint through a React app with a token received from Keycloak.
> - Returns a 200 http response with payload
> - undertow server.log:
> 19:35:33,356 INFO [io.undertow.accesslog] (default task-1) 127.0.0.1 [30/Mar/2018:19:35:33 +0200] "OPTIONS /zupplyio-orderservice/orders HTTP/1.1" 200 "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.75 Mobile Safari/537.36"
> 19:35:33,994 INFO [stdout] (default task-2) *** Calling getOrders ***
> 19:35:34,121 INFO [io.undertow.accesslog] (default task-2) 127.0.0.1 [30/Mar/2018:19:35:34 +0200] "GET /zupplyio-orderservice/orders HTTP/1.1" 200 "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.75 Mobile Safari/537.36"
> Setup that doesn't work:
> Wildfly 12.0.0.Final
> Keycloak 3.4.3.Final
> - Deployed a REST endpoint (/zupplyio-orderservice/orders) to Wildfly 10.0.0.Final
> - Access the endpoint through a React app with a token received from Keycloak.
> - Returns a 200 http response with NO payload
> - undertow server.log:
> 19:25:22,707 INFO [io.undertow.accesslog] (default task-1) 127.0.0.1 [30/Mar/2018:19:25:22 +0200] "OPTIONS /zupplyio-orderservice/orders HTTP/1.1" 200 "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.75 Mobile Safari/537.36"
> 19:25:23,491 INFO [io.undertow.accesslog] (default task-1) 127.0.0.1 [30/Mar/2018:19:25:23 +0200] "GET /zupplyio-orderservice/orders HTTP/1.1" 200 "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.75 Mobile Safari/537.36"
> As you can see from the server.log, my endpoint is probably not called in Wildfly 12.0.0.Final since the log output isn't written to server.log
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 10 months
[JBoss JIRA] (WFLY-11804) Galleon is not provisioning com.h2database.h2 module
by Yeray Borges (Jira)
[ https://issues.jboss.org/browse/WFLY-11804?page=com.atlassian.jira.plugin... ]
Yeray Borges reassigned WFLY-11804:
-----------------------------------
Assignee: Yeray Borges (was: ehsavoie Hugonnet)
> Galleon is not provisioning com.h2database.h2 module
> ----------------------------------------------------
>
> Key: WFLY-11804
> URL: https://issues.jboss.org/browse/WFLY-11804
> Project: WildFly
> Issue Type: Bug
> Reporter: Yeray Borges
> Assignee: Yeray Borges
> Priority: Major
>
> We need to ensure that Galleon provision is correct. By default, we are currently using the following data source feature group:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <feature-group-spec name="datasources" xmlns="urn:jboss:galleon:feature-group:1.0">
> <feature spec="subsystem.datasources">
> <feature spec="subsystem.datasources.jdbc-driver">
> <param name="jdbc-driver" value="h2"/>
> <param name="driver-name" value="h2"/>
> <param name="driver-module-name" value="com.h2database.h2"/>
> <param name="driver-xa-datasource-class-name" value="org.h2.jdbcx.JdbcDataSource"/>
> </feature>
> <feature spec="subsystem.datasources.data-source">
> <param name="data-source" value="ExampleDS"/>
> <param name="enabled" value="true"/>
> <param name="use-java-context" value="true"/>
> <param name="jndi-name" value="java:jboss/datasources/ExampleDS"/>
> <param name="data-source" value="ExampleDS"/>
> <param name="connection-url" value=""jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE""/>
> <param name="driver-name" value="h2"/>
> <param name="user-name" value="sa"/>
> <param name="password" value="sa"/>
> <param name="statistics-enabled" value="${wildfly.datasources.statistics-enabled:${wildfly.statistics-enabled:false}}" />
> </feature>
> </feature>
> <feature spec="subsystem.ee.service.default-bindings">
> <param name="datasource" value="java:jboss/datasources/ExampleDS"/>
> </feature>
> </feature-group-spec>
> {code}
> The default driver-module-name is com.h2database.h2, that means com.h2database.h2 must be provisioned by default.
> However, if we use the following Galleon provision, the provision fails:
> {code:xml}
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
> <script/>
> <modelVersion>4.0.0</modelVersion>
> <groupId>org.jboss.galleon.demo</groupId>
> <artifactId>galleon-demo</artifactId>
> <packaging>pom</packaging>
> <version>1.0.0-SNAPSHOT</version>
> <name>galleon demo</name>
> <properties>
> <!-- Galleon -->
> <galleon.fork.embedded>true</galleon.fork.embedded>
> <version.org.jboss.galleon>3.0.1.Final</version.org.jboss.galleon>
> </properties>
> <dependencies>
> <dependency>
> <groupId>org.jboss.galleon</groupId>
> <artifactId>galleon-core</artifactId>
> <version>${version.org.jboss.galleon}</version>
> </dependency>
> </dependencies>
> <build>
> <pluginManagement>
> <plugins>
> <plugin>
> <groupId>org.jboss.galleon</groupId>
> <artifactId>galleon-maven-plugin</artifactId>
> <version>${version.org.jboss.galleon}</version>
> </plugin>
> </plugins>
> </pluginManagement>
> <plugins>
> <plugin>
> <groupId>org.jboss.galleon</groupId>
> <artifactId>galleon-maven-plugin</artifactId>
> <executions>
> <execution>
> <id>server-provisioning</id>
> <goals>
> <goal>provision</goal>
> </goals>
> <configuration>
> <install-dir>${project.build.directory}/wildfly</install-dir>
> <record-state>false</record-state>
> <log-time>true</log-time>
> <plugin-options>
> <jboss-maven-dist/>
> <jboss-fork-embedded>${galleon.fork.embedded}</jboss-fork-embedded>
> </plugin-options>
> <feature-packs>
> <feature-pack>
> <groupId>org.wildfly</groupId>
> <artifactId>wildfly-galleon-pack</artifactId>
> <version>16.0.0.Beta1</version>
> <inherit-packages>false</inherit-packages>
> <included-packages>
> <name>org.wildfly.openssl</name>
> <!-- <name>com.h2database.h2</name> -->
> </included-packages>
> <inherit-configs>false</inherit-configs>
> <included-configs>
> <config>
> <model>standalone</model>
> <name>standalone.xml</name>
> </config>
> </included-configs>
> </feature-pack>
> </feature-packs>
> </configuration>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
> <repositories>
> <repository>
> <releases>
> <enabled>true</enabled>
> <updatePolicy>never</updatePolicy>
> </releases>
> <snapshots>
> <enabled>true</enabled>
> <updatePolicy>never</updatePolicy>
> </snapshots>
> <id>jboss-public-repository-group</id>
> <name>JBoss Public Repository Group</name>
> <url>
> http://repository.jboss.org/nexus/content/groups/public/
> </url>
> <layout>default</layout>
> </repository>
> </repositories>
> <pluginRepositories>
> <pluginRepository>
> <releases>
> <enabled>true</enabled>
> </releases>
> <snapshots>
> <enabled>true</enabled>
> </snapshots>
> <id>jboss-public-repository-group</id>
> <name>JBoss Public Repository Group</name>
> <url>
> http://repository.jboss.org/nexus/content/groups/public/
> </url>
> </pluginRepository>
> </pluginRepositories>
> </project>
> {code}
> org.wildfly.openssl seems to have also a similar issue. Currently we have to explicitely include them
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 10 months
[JBoss JIRA] (WFLY-11804) Galleon is not provisioning com.h2database.h2 module
by Yeray Borges (Jira)
Yeray Borges created WFLY-11804:
-----------------------------------
Summary: Galleon is not provisioning com.h2database.h2 module
Key: WFLY-11804
URL: https://issues.jboss.org/browse/WFLY-11804
Project: WildFly
Issue Type: Bug
Reporter: Yeray Borges
Assignee: ehsavoie Hugonnet
We need to ensure that Galleon provision is correct. By default, we are currently using the following data source feature group:
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<feature-group-spec name="datasources" xmlns="urn:jboss:galleon:feature-group:1.0">
<feature spec="subsystem.datasources">
<feature spec="subsystem.datasources.jdbc-driver">
<param name="jdbc-driver" value="h2"/>
<param name="driver-name" value="h2"/>
<param name="driver-module-name" value="com.h2database.h2"/>
<param name="driver-xa-datasource-class-name" value="org.h2.jdbcx.JdbcDataSource"/>
</feature>
<feature spec="subsystem.datasources.data-source">
<param name="data-source" value="ExampleDS"/>
<param name="enabled" value="true"/>
<param name="use-java-context" value="true"/>
<param name="jndi-name" value="java:jboss/datasources/ExampleDS"/>
<param name="data-source" value="ExampleDS"/>
<param name="connection-url" value=""jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE""/>
<param name="driver-name" value="h2"/>
<param name="user-name" value="sa"/>
<param name="password" value="sa"/>
<param name="statistics-enabled" value="${wildfly.datasources.statistics-enabled:${wildfly.statistics-enabled:false}}" />
</feature>
</feature>
<feature spec="subsystem.ee.service.default-bindings">
<param name="datasource" value="java:jboss/datasources/ExampleDS"/>
</feature>
</feature-group-spec>
{code}
The default driver-module-name is com.h2database.h2, that means com.h2database.h2 must be provisioned by default.
However, if we use the following Galleon provision, the provision fails:
{code:xml}
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<script/>
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.galleon.demo</groupId>
<artifactId>galleon-demo</artifactId>
<packaging>pom</packaging>
<version>1.0.0-SNAPSHOT</version>
<name>galleon demo</name>
<properties>
<!-- Galleon -->
<galleon.fork.embedded>true</galleon.fork.embedded>
<version.org.jboss.galleon>3.0.1.Final</version.org.jboss.galleon>
</properties>
<dependencies>
<dependency>
<groupId>org.jboss.galleon</groupId>
<artifactId>galleon-core</artifactId>
<version>${version.org.jboss.galleon}</version>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.jboss.galleon</groupId>
<artifactId>galleon-maven-plugin</artifactId>
<version>${version.org.jboss.galleon}</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.jboss.galleon</groupId>
<artifactId>galleon-maven-plugin</artifactId>
<executions>
<execution>
<id>server-provisioning</id>
<goals>
<goal>provision</goal>
</goals>
<configuration>
<install-dir>${project.build.directory}/wildfly</install-dir>
<record-state>false</record-state>
<log-time>true</log-time>
<plugin-options>
<jboss-maven-dist/>
<jboss-fork-embedded>${galleon.fork.embedded}</jboss-fork-embedded>
</plugin-options>
<feature-packs>
<feature-pack>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-galleon-pack</artifactId>
<version>16.0.0.Beta1</version>
<inherit-packages>false</inherit-packages>
<included-packages>
<name>org.wildfly.openssl</name>
<!-- <name>com.h2database.h2</name> -->
</included-packages>
<inherit-configs>false</inherit-configs>
<included-configs>
<config>
<model>standalone</model>
<name>standalone.xml</name>
</config>
</included-configs>
</feature-pack>
</feature-packs>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
<id>jboss-public-repository-group</id>
<name>JBoss Public Repository Group</name>
<url>
http://repository.jboss.org/nexus/content/groups/public/
</url>
<layout>default</layout>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>jboss-public-repository-group</id>
<name>JBoss Public Repository Group</name>
<url>
http://repository.jboss.org/nexus/content/groups/public/
</url>
</pluginRepository>
</pluginRepositories>
</project>
{code}
org.wildfly.openssl seems to have also a similar issue. Currently we have to explicitely include them
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 10 months
[JBoss JIRA] (WFLY-11803) Capabilities registered when the model is being populated are not recorded in the Galleon feature-spec
by Yeray Borges (Jira)
Yeray Borges created WFLY-11803:
-----------------------------------
Summary: Capabilities registered when the model is being populated are not recorded in the Galleon feature-spec
Key: WFLY-11803
URL: https://issues.jboss.org/browse/WFLY-11803
Project: WildFly
Issue Type: Bug
Reporter: Yeray Borges
Assignee: Yeray Borges
Specifically, capabilities registered in recordCapabilitiesAndRequirements are not recorded in the Galleon feature-specs.
The reason is Galleon generates the feature specs using the metamodel instead of the effective model. The metamodel is the resource definitions and the effective model is the current configuration created once the model is populated with all the attribute values.
recordCapabilitiesAndRequirements is executed when the model is populated, then, capabilities defined there are not exposed in the Galleon feature-specs.
The goal here is to identify which capabilities are affected and rework them, for example moving them to the resource definition itself, to allow Galleon to record them in the feature-specs.
Some capabilities could require a different work if they cannot be moved out from recordCapabilitiesAndRequirements.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 10 months