jboss7.x

How do I specify which security domain to use for my web application in JBoss AS7?

[亡魂溺海] 提交于 2019-12-22 08:36:35
问题 I'm using JBoss AS7 + JSF 2.1 I'm trying to use a Database login module to authenticate users on a specific resource in my web application. In standalone.xml there are 3 security domains: "other", "jboss-web-policy" and "jboss-ejb-policy". Should I put my database login module in the "other" security domain? Or I should define a new custom security domain and put my database login module in it? Either way, how will I tell JBoss which security-domain/login module it should use for my

Grails 1.3.7 not starting with JBoss 7.1

萝らか妹 提交于 2019-12-22 08:35:09
问题 My company is trying to upgrade from JBoss 4.2.3 to JBoss 7. Currently I've setup a local copy of JBoss 7.1 and am trying to get my grails project to work on JBoss 7.1 The exact same war works just fine in JBoss 4.2.3. The weird thing is that there aren't any errors. Here is the info from the startup: Calling "C:\JBoss\jboss-as-7.1.0\bin\standalone.conf.bat" =============================================================================== JBoss Bootstrap Environment JBOSS_HOME: C:\JBoss\jboss

wildfly or jboss 7.1 standalone.xml dtd

安稳与你 提交于 2019-12-22 07:04:04
问题 I understand that this question is not very specific to programming but I am trying to find the description of each tag in standalone.xml in wildfly or jboss 7.1 so that I can learn about each tag and it will be helpful for configuration. Where can I find a document that describes tags used in standalone.xml? jBoss or Wildfly administration guide does not give all the information. 回答1: James R. Perkins's right. Under $JBOSS_HOME/docs/schema there are several schemas, which describe the tags

JBoss 7.0.1 running without jsessionid in the URL is not working

风流意气都作罢 提交于 2019-12-22 04:05:25
问题 Because of some security reasons I deceided to disable session tracking by jsessionid in URL. Before I changed my web.xml to the one below, I had on the first time I visited the page a jsessionid in the url, after clicking the first link, it never appeared again. My web.xml looks like <session-config> <session-timeout>10</session-timeout> <cookie-config> <secure>true</secure> </cookie-config> <tracking-mode>COOKIE</tracking-mode> </session-config> Now I have the jsessionid in the URL, if I

IntelliJ Artifact has invalid extension

☆樱花仙子☆ 提交于 2019-12-22 01:41:12
问题 I have strange a problem with deploying an artifact on jboss. After generating the default spring-mvc project in IntelliJ, I tried to run it, but IntelliJ showed in "Run/Debug Configuration" a message that my "Artifact XYZ:war exploded has invalid extension". I found advice on stackoverflow "change extension" but I have correct .war extension. What is wrong? 回答1: Simply add .war to your output directory name. Unfortunately changing the pom.xml with Maven will probably result into a

How to lookup ejb on JBoss AS 7.x

*爱你&永不变心* 提交于 2019-12-22 00:17:12
问题 I try ejb lookup for jndi name. That ejb is same jboss server then is success. But ejb is other jboss server then is failed. My source code: Hashtable<String, String> env = new Hashtable<String, String>(); env.put("java.naming.provider.url","jnp://192.168.100.10:8484"); env.put("java.naming.factory.initial", "org.jboss.as.naming.InitialContextFactory"); env.put("java.naming.factory.url.pkgs", "org.jboss.as.naming.interfaces.java"); env.put("java.naming.security.principal", "Admin"); env.put(

Spring web to connect to HornetQ JMS embeded with Jboss server 7.1.1

我是研究僧i 提交于 2019-12-21 21:28:01
问题 I am trying to setup spring-web to connect to remote Jboss-7.1.1 HornetQ JMS by following this site. But I am getting below error, is there anything I need to add the spring-bean configuration. The current spring-web runs on tomcat. spring-bean.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jms="http://www.springframework.org/schema/jms" xmlns:p="http://www.springframework.org

JBoss 7 NOT Java EE6 Certified

此生再无相见时 提交于 2019-12-21 18:39:20
问题 I am really wonder what this actually means? Can I use JBoss 7 in development and also in production with all EE 6 features (I need JMS, EJB 3.1, JSF 2.1, CDI...) or I have to wait for later releases of JBoss 7? If not, what is the option since JBoss 6.x is only Web Profile certified and what is explanation for "only Web Profile certified"? Thanks 回答1: An application server is only Java EE 6 "Full Profile" certified if it implements all aspects of the huge Java EE API. An application server

Login a user programmatically via JAAS

烂漫一生 提交于 2019-12-21 12:39:30
问题 I'm trying to run code within JBoss Container under a different authentication by programatically logging in a user like that (stripped exception handling): LoginContext ctx = ctx = new LoginContext("MyLoginSchema", new UsernamePasswordCallbackHandler("newuser", "") ); ctx.login(); Subject.doAs(ctx.getSubject(), new PrivilegedAction<T>() { @Override public T run() { Subject.getSubject(AccessController.getContext()); InitialContext ic = new InitialContext(); EJBContext sctxLookup = (EJBContext

How to get entity manager or transaction in jpa listener

穿精又带淫゛_ 提交于 2019-12-21 09:13:21
问题 I was using Hibernate event listener like PostDeleteEventListener, PostInsertEventListener, PostUpdateEventListener to do some operations during insert, delete and update. Now I would like to use JPA listener to do this because if I like to move from Hibernate to any other JPA provider my listener should work. Hibernate listener gives me event from which I can get the transaction and check whether its committed or rollback. JPA listeners only provides me the entity object. Now how can I get