jboss

EntityManager throws TransactionRequiredException on merge() in JBoss JSF bean

孤者浪人 提交于 2020-01-03 08:53:58
问题 I've set up a JSF application on JBoss 5.0.1GA to present a list of Users in a table and allow deleting of individual users via a button next to each user. When deleteUser is called, the call is passed to a UserDAOBean which gets an EntityManager injected from JBoss. I'm using the code public void delete(E entity) { em.remove(em.merge(entity)); } to delete the user (code was c&p from a JPA tutorial). Just calling em.remove(entity) has no effect and still causes the same exception. When this

where to get hibernate jars from?

半世苍凉 提交于 2020-01-03 05:46:31
问题 i dont know how many of you noticed http://repository.jboss.org/maven2 is down. where are you getting your jars from now? for example if you want hibernate 3.5.6-Final, where do you get it from? thanks in advance 回答1: From Hibernate's download page, the JBoss Maven Repository is at https://repository.jboss.org/nexus/content/groups/public/ Your question is tagged with Maven-2, but if you're not using Maven to manage dependencies, you should be downloading the Hibernate Bundle from SourceForge.

Jboss undeploy for deploying null

烂漫一生 提交于 2020-01-03 04:56:04
问题 My jboss server starts without errors and deploys my ear but after some seconds it undeploys it: 16:03:34,762 DEBUG [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) Deployment scan of [U:\JBOSS_CFG\deployments] found update action 16:28:46,919 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "myear.ear" (runtime-name : "my-ear.ear") [{ "operation" => "composite", "address" => [], "steps" => [ { "operation" => "undeploy", "address" => [(

Security exceptions when injecting an EJB in wildfly

心已入冬 提交于 2020-01-03 04:36:08
问题 I try to migrate from JBoss AS 7 to Wildfly 8.2. and from Java 1.6 to Java 1.7. and I get some security exceptions when injecting an ejb bean to my batch job. Here is my scheduler: (runs every minute) @Startup @Singleton public class MyBatchScheduler { @Inject MyBatch myBatch; @Schedule(second = "30", minute = "*/1", hour = "*", persistent = false) public void runBackgroundTasks() { myBatch.runBackgroundTasksAsync(); } } Here is my batch: (called by scheduler every minute) @Stateless public

Integrating Drool 6 work bench with Java Application

两盒软妹~` 提交于 2020-01-03 04:32:15
问题 I have a drool 6 work bench. I am trying to read the rules from work bench and execute them in stand alone java application. Is there any way to download the drl file using URL from the workbench. Please write the code as well as I am new to drools 回答1: First create Java application, include all drools 6 based binary dependencies. For that you can create Maven driven java application. include following dependencies in POM.xml file.. it will download all dependencies in your local maven

mixing user session data in jboss

不打扰是莪最后的温柔 提交于 2020-01-03 02:23:09
问题 if someone can help with JBoss returning data from wrong user. Our setup is JBOSS 7.1.1 with Vaadin 7.1.6 and Shiro. Our current problem is when multiple users use our Vaadin application it frequently returning data from other users to another curently loged user,. ie it is mixing users data. We have tried reinstaling the PC, changing browsers, disabling caching..., nothing helped. We aded CDI UI addon from Vaadin but it doesnt help. Our previous issue with similar problem Shiro returning

How to setup a JMX Notification Listener?

北慕城南 提交于 2020-01-02 21:59:07
问题 This is a follow-up of How to stop message processing before undeploying? I want to configure a JMX Notification Listener for undeployment events, but I don't know how to set the mbean name correctly. We are currently using JBoss 4.2.3. The following attempt won't trigger any notification. <mbean code="jboss.example.NotificationListener" name="jboss.example:name=NotificationListener"> <attribute name="SubscriptionList"> <subscription-list> <mbean name="jboss.j2ee:service=EjbModule,type=jmx

How to deploy a EAR app as zipped from Eclipse into Wildfly using JBoss Tools plugin?

给你一囗甜甜゛ 提交于 2020-01-02 19:26:18
问题 My operating system is Windows 7 64-bit. I am using Eclipse Luna. I have JBoss Tools 4.2.3.Final plugin. I am using Wildfly 8.2.1.Final in Standalone mode. I have a EAR app named TestApp . To publish it to Wildfly from Eclipse, in the Servers view, I right click on the Wildfly server to open the pop-up menu and click on Publish option. When I publish it to Wildfly from Eclipse, it is deployed as exploded in standalone\deployments directory i.e. a sub-directory named TestApp.ear is created in

How do I set up Jetty 6 & Jboss 4.0.5 virtual hosting?

允我心安 提交于 2020-01-02 10:19:31
问题 I have 2 webapps deployed in the same JBoss/Jetty server. In Jetty 5.1.14 I had the following jetty-web.xml which configured one of the apps to run as a virtual host (on the same port): <Configure class="org.jboss.jetty.JBossWebApplicationContext"> <Call name="addVirtualHost"><Arg>app2.localhost.com</Arg></Call> </Configure> This worked perfectly fine. Unfortunately, it doesn't work with Jetty 6.1.17 at all. First of all, "JBossWebApplicationContext" seems to now be called "JBossWebAppContext

Jboss as 7 took very long to get started

有些话、适合烂在心里 提交于 2020-01-02 09:56:48
问题 When I want to start my jboss AS 7 server, it took very long to get started. I am using netbeans 7.4 and how actually this jboss AS 7 functioning? should I start the server from the standalone.bat file? or from the netbeans? 10:34:15,303 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA 10:34:15,422 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA 10:34:15,456 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting it will come up like the above, whenever i start my Jboss