Error “java.lang.NoSuchMethodError: org.jboss.logging.Logger.getMessageLogger”
I solved it by removing jboss-common-client-3.2.3.jar.
I solved it by removing jboss-common-client-3.2.3.jar.
Basically you have two options – either create a cluster using JBoss own domain mode or extend you standalone configuration to contain required elements for session replication and sso. In domain mode, most of the configurations are already present in EAP7 – just extend domain-full-ha profile. Required changes include enabling distributable flag in your web … Read more
JSF 2.0 depends heavily on EL 2.1 which is part of Servlet 2.5 and is a major change as opposed to EL 2.0 which is part of Servlet 2.4, but it does not depend on any particular Servlet 2.5 specific API. Servlet 2.4 should work as good. So in theory, you could get JSF 2.0 … Read more
As of EJB 3.1, singleton beans can be notified of module start and stop: @Singleton @Startup public class StartupBean { @PostConstruct private void postConstruct() { /* … */ } @PreDestroy private void preDestroy() { /* … */ } } Prior to EJB 3.1, there is no standard, EJB-only solution. I’d suggest adding a WAR to … Read more
Install the most recent JBoss Tools. Go to Help > Install New Software. Set Work with to the following URL depending on Eclipse version: 4.8+ (Photon): https://download.jboss.org/jbosstools/photon/stable/updates/ 4.7 (Oxygen): http://download.jboss.org/jbosstools/oxygen/stable/updates/ 4.6 (Neon): https://download.jboss.org/jbosstools/neon/stable/updates/ 4.5 (Mars): http://download.jboss.org/jbosstools/mars/stable/updates/ 4.4 (Luna): http://download.jboss.org/jbosstools/updates/stable/luna/ 4.3 (Kepler): http://download.jboss.org/jbosstools/updates/stable/kepler/ 4.2 (Juno): http://download.jboss.org/jbosstools/updates/stable/juno/ 3.7 (Indigo): http://download.jboss.org/jbosstools/updates/stable/indigo/ 3.6 (Helios): http://download.jboss.org/jbosstools/updates/stable/helios/ Press Enter In the … Read more
To add custom attributes you need to do three things: Add attributes to admin console Add claim mapping Access claims The first one is explained pretty good here: https://www.keycloak.org/docs/latest/server_admin/index.html#user-attributes Add claim mapping: Open the admin console of your realm. Go to Clients and open your client This only works for Settings > Access Type confidential … Read more
This can’t be done in an appserver agnostic way. Context root isn’t part of the standard web.xml file. It’s either specified when you deploy the app or in an appserver specific descriptor. Glassfish: sun-web.xml; JBoss: jboss-web.xml; Weblogic: weblogic.xml; Tomcat: context.xml; WebSphere: ibm-web-ext.xml. Note: the above applies to deploying WAR files. EAR files are a different … Read more
There are many suggestions but I found two of them most common. Re. JAVA_OPTS I first tried export JAVA_OPTS=”-Dhttps.protocols=SSLv3,TLSv1,TLSv1.1,TLSv1.2″ on command line before startup of program but it didn’t work for me. Re. constructor Then I added the following code in the startup class constructor and it worked for me. try { SSLContext ctx = … Read more
You mean remote debug JBoss from Eclipse ? From Configuring Eclipse for Remote Debugging: Set the JAVA_OPTS variable as follows: set JAVA_OPTS= -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %JAVA_OPTS% or: JAVA_OPTS=”-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n $JAVA_OPTS” In the Debug frame, select the Remote Java Application node. In the Connection Properties, specify localhost as the Host and specify the Port as … Read more
An entity manager can only be injected in classes running inside a transaction. In other words, it can only be injected in a EJB. Other classe must use an EntityManagerFactory to create and destroy an EntityManager. Since your TestService is not an EJB, the annotation @PersistenceContext is simply ignored. Not only that, in JavaEE 5, … Read more