jboss7.x

javax.security.sasl.SaslException: Authentic Failed while connecting to Jboss 7 server from remote client

坚强是说给别人听的谎言 提交于 2019-12-29 06:17:27
问题 I have standalone Java client(Running from within eclipse ) that I wish to connect to an external server . If the server is localhost then i see no problems at all . However whenever i try to connect to the external server where I always gets the following exception - JBREM000200: Remote connection failed: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed - Could not register a EJB receiver for connection to remote://10.160.148.61:4447

Start JBoss 7 as a service on Linux

北城余情 提交于 2019-12-29 02:24:26
问题 Previous versions of JBoss included a scripts (like jboss_init_redhat.sh ) that could be copied to /etc/init.d in order to add it as a service - so it would start on boot up. I can't seem to find any similar scripts in JBoss 7. Has anyone already done something like this? P.S. I'm trying to achieve this in Ubuntu 10.04 回答1: After spending a couple of hours of snooping around I ended up creating /etc/init.d/jboss with the following contents #!/bin/sh ### BEGIN INIT INFO # Provides: jboss #

Error deploying Seam 2.2 app on JBoss 7.1

好久不见. 提交于 2019-12-25 17:39:23
问题 I've been trying to deploy my JBoss Seam 2.2 application on JBoss 7.1. I've received some great advice and resources from my previous post, but now I'm encountering some errors. My application is using Hibernate/JPA 1.0 for persistence, along with Hibernate Search. When it gets to deploying the JAR in the EAR that contains my JPA entities, I see the following exception: ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.persistenceunit."MyApp

EJB client context selector may not be changed

情到浓时终转凉″ 提交于 2019-12-25 10:31:08
问题 I am trying to access an ejb that is exposed in jbossAS7.1 from code running in an embedded jetty server: final Properties jndiProperties = new Properties(); jndiProperties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory"); jndiProperties.put(Context.PROVIDER_URL, "remote://127.0.0.1:4447"); jndiProperties.put("jboss.naming.client.ejb.context", true); jndiProperties.put("jboss.naming.client.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT",

Error when trying to create a new JBOSS OpenShift project

我只是一个虾纸丫 提交于 2019-12-25 06:48:06
问题 I am trying to have a play around with openshift, but am running into a config issue at the first hurdle. i have RedHatJBOSS Developer Studio 8.0.0 installed, and have the JBOSS Integration and SOA Development Plugin installed. I also have an openshift user account and can login just fine to their website. Basically, when I select the create openshift project from the JBoss central page, and enter my valid openshift credentials and pres next, it tries to connect and immediately throws an

Change Activation-Config-Property on deployment via JBoss CLI

断了今生、忘了曾经 提交于 2019-12-25 05:12:11
问题 We would like to deploy an EAR containing message driven beans with JBoss CLI. For each environment there are different activation config property values. Our question: is it possible to change the values of the activation config properties after deploying the EAR with JBoss CLI? We know we could use property substitution. However this seems to set the activation properties at server startup. In contrast we would like to change the values at any time (maybe as long as application is disabled)

Jboss 7 migration - ValidationException: Unable to find provider: HibernateValidator

丶灬走出姿态 提交于 2019-12-25 03:28:39
问题 my work place is migrating from Jboss 6 to Jboss 7. We use v 5.1.3 Hibernate Validator, and when we tried to deploy our web application in the Jboss 7 server, and it threw an exception. 09:23:56,031 ERROR [org.jboss.as.controller.management-operation] (External Management Request Threads -- 4) WFLYCTL0013: Operation ("read-attribute") failed - address: ([ ("deployment" => "ROOT.war"), ("subsystem" => "jaxrs"), ("rest-resource" => "org.apache.cxf.rs.security.oauth.services.RequestTokenService"

Jboss 7.x redeploy option

笑着哭i 提交于 2019-12-25 02:50:19
问题 I was looking for hard-deploy option in Jboss &.x but I believe that option is no longer supported in Jboss 7.x what I found was this Jboss link containing latest plugins . I have decided to use Jboss-as:redeploy option.It seems to work perfectly for me- kind of replacement for hard-deploy.But when I check my Jboss/standalone/deployment folder the timestamp of war is not updated.But code changes are reflected in the application.below is the maven plugin code that I am using <plugin> <groupId

different json views for the same entity

偶尔善良 提交于 2019-12-25 01:50:50
问题 i am wondering How would you enable different json views of the same entity (example, public data and authenticated only, list views, full details, etc)? in case if there are Jboss AS 7 + RestEasy or spring + jersey . I am working on application which has to populate different data according to logged in user and its role. Thanks 回答1: This depends how you want to design you application. The basic design for this kind of requirement is to use the session management to produce the data OR json

JBoss Embedded jUnit testing for EJB : NameNotFoundException

佐手、 提交于 2019-12-25 01:48:59
问题 I'm newbie in EJB and jUnit, and I'm trying to do Embedded testing for the simple EJB-project that running by jBoss AS 7.1.1.Final. I've written this test: package com.staff.test.logic; import java.io.File; import javax.ejb.embeddable.EJBContainer; import javax.naming.Context; import javax.naming.NamingException; import org.jboss.as.embedded.EmbeddedServerFactory; import org.jboss.as.embedded.StandaloneServer; import org.junit.Before; import org.junit.Test; import com.staff.main.logic