jboss-tools

How to “hot” deploy war dependency in Jboss using Jboss Tools Eclipse plugin?

陌路散爱 提交于 2019-12-09 20:08:25
问题 I'm using Jboss tools (3.0.0 alpha, on Eclipse 3.4) to hot deploy my war on Jboss 4.2.3. My war depends on another project (packed inside a jar) I 'm working on. But, when I save a file in this project(the jar project), Jboss Tools republish the compiled classes of the war project, but does not re deploy the classes changed in the jar project.(actually the war project is deployed "exploded" in the deploy directory, but the jar project is deployed, as a jar, in the WEB-INF/libs directory) I

Keycloak create a custom identity provider mapper

此生再无相见时 提交于 2019-12-08 07:04:21
问题 i have an open id provider and i use this provider as identity broker of keycloak. I want to map roles (claims) which sent from broker to keycloak (and keycloak will sent mapped roles in its jwt). I want to know how to implement and add a custom mapper to keycloak (like hardcodedmapper, attributemapper in keycloak). Can i do this? Thanks 回答1: Create your new provider class, I extended the existing org.keycloak.broker.saml.mappers.AttributeToRoleMapper class. When building your jar ensure you

How to run 2 (or more) Wildfly instances on the same machine?

∥☆過路亽.° 提交于 2019-12-08 00:22:52
问题 I want to simulate 2 servers by running 2 independent instances of Wildfly. This is useful when you don't want to deploy all WARs on the same instance and then only be able to shut them down and start them together. I'm using Eclipse with the JBoss plugin where in the Servers view I want to have 2 Wildfly servers that I can stop and run separately and simultaneously. How do I do that? 回答1: It's possible to duplicate your Wildfly installation folder, but that takes up more space and you would

Eclipse WTP deployment of build path dependencies

半世苍凉 提交于 2019-12-07 21:24:10
问题 I have an Eclipse project that is dependent on other projects (Project Properties/Java Build Path/Projects), and these other projects export their own libraries (Project Properties/Java Build Path/Order and Export). Is there a way to get Eclipse WTP and/or JBoss Tools to include the dependent project's exported files in a deployment? I can add the jars individually via the Deployment Assembly but I don't want to duplicate the configuration. We currently use MyEclipse for this but we're trying

How to run 2 (or more) Wildfly instances on the same machine?

穿精又带淫゛_ 提交于 2019-12-06 13:06:27
I want to simulate 2 servers by running 2 independent instances of Wildfly. This is useful when you don't want to deploy all WARs on the same instance and then only be able to shut them down and start them together. I'm using Eclipse with the JBoss plugin where in the Servers view I want to have 2 Wildfly servers that I can stop and run separately and simultaneously. How do I do that? It's possible to duplicate your Wildfly installation folder, but that takes up more space and you would need to update both for every change. Instead it's possible to share the root folder and just create 2

Eclipse WTP deployment of build path dependencies

天大地大妈咪最大 提交于 2019-12-06 10:48:51
I have an Eclipse project that is dependent on other projects (Project Properties/Java Build Path/Projects), and these other projects export their own libraries (Project Properties/Java Build Path/Order and Export). Is there a way to get Eclipse WTP and/or JBoss Tools to include the dependent project's exported files in a deployment? I can add the jars individually via the Deployment Assembly but I don't want to duplicate the configuration. We currently use MyEclipse for this but we're trying to get away from it for other reasons. Craig Let's say your projects are called "util" for the one

How to reactivate code assist in my xhtml page (eclipse 3.5, jboss tools 3.1, jsf 1.2)

这一生的挚爱 提交于 2019-12-06 03:32:13
问题 I develop jsf xhtml pages with facelets, and I always had code assist for all the taglibs i declared i my xhtml root element (h, f etc..) But, since, like 30 minutes, when i ctrl+space i only have regular html and ui:* proposals. I didn't change anything. It just broke, no error message, nothing. I searched the web, but nothing either, or i am not searching right. Please help me :) ps : here's an example of one of my xhtml page's header : <?xml version="1.0" encoding="ISO-8859-1"?> <ui

Can Hibernate tool generate JPA POJO?

こ雲淡風輕ζ 提交于 2019-12-06 01:34:12
问题 May I know can the Eclipse plugin Hibernate tool use to generate JPA entity @entity? The Java files that generated look like below and not JPA: package com.test.only.model; // Generated Jul 19, 2011 12:13:40 PM by Hibernate Tools 3.2.0.CR1 import java.math.BigDecimal; import java.util.Date; /** * Account generated by hbm2java */ public class Account implements java.io.Serializable { 回答1: You just need to choose EJB3 + Java5 as configuration options when generating. Learn more: http://docs

Must every Entity Bean be registered in persistence.xml?

点点圈 提交于 2019-12-05 15:36:36
问题 I'm using Eclipse Facets for JPA 2.0 and Hibernate 4.2 implementation. I think I recall that in previous project I would not have to register an Entity Bean in the persistence.xml. Am I mistaken? Annotating a POJO (in this case Pub.java) with @Entity will throw the following error in the Eclipse marker/problem view: Class "com.jacky.webapp.model.Pub" is managed, but is not listed in the persistence.xml file Pub.java /webapp/src/main/java/com/jacky/webapp/model Any clue? thanks. 回答1: As

How to “hot” deploy war dependency in Jboss using Jboss Tools Eclipse plugin?

老子叫甜甜 提交于 2019-12-04 17:14:40
I'm using Jboss tools (3.0.0 alpha, on Eclipse 3.4) to hot deploy my war on Jboss 4.2.3. My war depends on another project (packed inside a jar) I 'm working on. But, when I save a file in this project(the jar project), Jboss Tools republish the compiled classes of the war project, but does not re deploy the classes changed in the jar project.(actually the war project is deployed "exploded" in the deploy directory, but the jar project is deployed, as a jar, in the WEB-INF/libs directory) I would like eclipse and JBoss tools to republish the classes from the jar project, like they do for the