jboss7.x

AsynchronousDispatcher error

谁都会走 提交于 2019-12-18 14:17:02
问题 i am getting the error when i try to upload a file based exactly off the example shown here Sample The error is Allocate exception for servlet com.testapp.rest.JaxRsActivator: java.lang.RuntimeException: Unable to find a public constructor for class org.jboss.resteasy.core.AsynchronousDispatcher What can this mean? 回答1: If deploying to JBoss 7.x you need to change the scope of your resteasy dependencies to provided . This is because those particular libraries are already included in JBoss as

JBoss 7: how to change a WAR context root

空扰寡人 提交于 2019-12-18 13:16:53
问题 I have an application that is to be deployed in a WAR file (app.war). After deployment it is available from http://:8080/app I would like to have it being made available as something like http://:8080/secret/app I searched the documentation and for JBoss'es 5 and 6 this seems to be able to do with a jboss-web.xml file. I have tried it but with no luck. It seems that JBoss 7 just ignores the element inside jboss-web.xml. I don't know if this is relevant but this application has both JSF and

beans.xml file and java.lang.UnsupportedOperationException: JBAS011859: Naming context is read-only

丶灬走出姿态 提交于 2019-12-18 12:08:02
问题 I have very strange exception after starting using beans.xml file in our EJB and jar files. We use JBoss7.1.1 release. Our application is packaged as ear file. It was deployed and works correctly earlier. There is some Module1 EJB component. Now we use @Inject annotation for some beans in Module1 and therefore added META-INF/beans.xml. Another EJB component Module2 uses EJB from Module1 like: @EJB private IOmistajaFinderLocal omistajaFinder; But now application cannot be deployed on JBoss.

jboss 7 AS datasource for sqlserver

百般思念 提交于 2019-12-18 11:48:18
问题 I run jboss in standalone mode and have set my datasource in the standalone.xml to the following: <datasource jndi-name="MyDenaliDS" pool-name="MyDenaliDs_Pool" enabled="true" jta="true" use-java-context="true" use-ccm="true"> <connection-url> jdbc:sqlserver://myip:1433;databaseName=mydb;integratedSecurity=true </connection-url> <driver> sqljdbc </driver> <security> <user-name> username </user-name> <password> password </password> </security> </datasource> <drivers> <driver name="sqljdbc"

JBoss AS 7 not accepting remote connections

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 10:11:54
问题 I am using JBoss AS 7 and trying to connect to my application using the IP (from a computer in the intranet). It is not working. If I test from the computer which has the server I can see the system running if I go through localhost (http://localhost:8080/MySystem....) but not If I try with the IP (http://:8080/MySystem....). Any help? 回答1: The answer is to edit standalone.xml and insert the tag any-address instead of inet-address bound to 127.0.0.1 <interfaces> <interface name="management">

Not able to set options in JAVA_OPTS in JBoss openshift

倾然丶 夕夏残阳落幕 提交于 2019-12-18 09:51:29
问题 I want to change the server running timezone. So I want to add timezone option in JAVA_OPTS. (-Duser.timezone=GMT). I have tried to edit '/var/lib/openshift/548c33cce0b8cd44d3000083/jbossas/bin/standalone.conf' in JBoss cartridge of openshift, but failed because of Permission denied. I have referred one solution mentioned in https://forums.openshift.com/how-to-pass-jvm-options-to-jboss-7as. That is to add "export JAVA_OPTS="$JAVA_OPTS -Duser.timezone=GMT" in 'pre_start_jbossas' file in action

How to connect Jboss-as-7.1.1 with Postgresql [closed]

守給你的承諾、 提交于 2019-12-18 05:23:13
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago . Does anybody know how to connect jboss-as-7.1.1 to PostgreSQL? 回答1: (Note that this was written for JBoss AS 7.1.1; keep that in mind if on a newer version, as things might have changed.) Download PgJDBC. I'm assuming you're using postgresql-9.1-902.jdbc4.jar , the current version at time of

Transactions don't rollback

假如想象 提交于 2019-12-18 04:10:35
问题 I am call two methods, the first one update a table and the next one insert a record in another table. When the second transaction fails the EJB is not doing the rollback of the first transaction. This is my backing bean: @ManagedBean @ViewScoped public class TransactionTestBean implements Serializable { @EJB private TransactionTestService service; public String loadView() { return "/test/transactionTest"; } public void test() { try { service.updateTest(); } catch (Exception e) { } } } The

How to catch and wrap exceptions thrown by JTA when a container-managed-tx EJB commits?

隐身守侯 提交于 2019-12-17 22:09:44
问题 I'm struggling with a problem with an EJB3 class that manages a non-trivial data model. I have constraint validation exceptions being thrown when my container-managed transactional methods commit. I want to prevent them from being wrapped in EJBException , instead throwing a sane application exception that callers can handle. To wrap it in a suitable application exception, I must be able to catch it. Most of the time a simple try/catch does the job because the validation exception is thrown

No EJB receiver available for handling

蹲街弑〆低调 提交于 2019-12-17 15:56:21
问题 I'm using EJB 3.0 with JBoss AS 7.1.1 Final. I am getting this error when I try to connect my client to the server: Aug 15, 2012 12:05:00 PM org.jboss.ejb.client.EJBClient <clinit> INFO: JBoss EJB Client version 1.0.5.Final Exception in thread "main" java.lang.IllegalStateException: No EJB receiver available for handling [appName:GrahamsProjServer,modulename:GrahamsProjServer,distinctname:] combination for invocation context org.jboss.ejb.client.EJBClientInvoc ationContext@6a340101 at org