jboss7.x

How to use Infinispan query with JBoss7.1

喜夏-厌秋 提交于 2019-12-12 04:49:57
问题 I have an Infinispan cache that I created through JBoss7.1 web interface. It is configured as an indexed, distributed cache. In my jboss-deployment-structure.xml file I have added dependencies on org.infinispan and org.hibernate so I have access to my cache. I have also added a maven dependency on the following: <dependency> <groupId>org.infinispan</groupId> <artifactId>infinispan-core</artifactId> <version>5.1.7.Final</version> <scope>provided</scope> </dependency> <dependency> <groupId>org

SPRING, JPA(EclipseLink) with JTA Transaction Manager(JBoss 7) - NOT Committing to Database

淺唱寂寞╮ 提交于 2019-12-12 04:37:59
问题 I have created an example - SPRING, JPA(EclipseLink persistence provider) with JTA Transaction Manager(JBoss 7). I have observed that all the data in database is being shown in UI properly for the read operations. But when it comes to save/update or delete operation the services layer is not committing the work to database. No exception is caught(I have checked the console/log too and also debugged the code where I can see entityManager.persist/remove is being invoked without any exception).

JBoss7.1.3: @EJB works while @Inject fails

回眸只為那壹抹淺笑 提交于 2019-12-12 04:37:22
问题 I've recently developed an app with Glassfish and the development goes very smoothly, now with JBoss I'm trying to do the same but is being slow down by various problems such as: @EJB works but @Inject fails. I don't have a fancy class yet, I just have a Singleton Startup class and a simple Stateless class that I inject, and to my surprise injection doesn't work. Here's my class: package com.czetsuya.dropship; import javax.annotation.PostConstruct; import javax.ejb.EJB; import javax.ejb

Context root path not working in Jboss 7 ear

我是研究僧i 提交于 2019-12-12 04:19:15
问题 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.abc</groupId> <artifactId>MyProjectEar</artifactId><version>0.0.1-SNAPSHOT</version> </parent> <properties> <build.plugin.maven.ear.version>2.10.1</build.plugin.maven.ear.version> </properties> <artifactId>MyProjectEarModule<

Primefaces 3.4 p:panelMenu: unable to control the state of p:submenu and p:menuitem

前提是你 提交于 2019-12-12 03:35:28
问题 Given the following collapsing Menu (p:panelMenu): <p:panelMenu style="width:200px"> <p:submenu label="#{uimsg.clm_title}" styleClass="pageFont"> <!-- <p:menuitem value="Delete" actionListener="#{buttonBean.delete}" ajax="true" icon="ui-icon-close"/> --> </p:submenu> <p:separator /> <!-- Sub-menu master Data --> <p:submenu label="#{uimsg.trsf_title}" styleClass="pageFont"> <p:menuitem value="#{uimsg.trsf_create}" ajax="true" icon="ui-icon-arrow-1-e" url="/transfers/editTransfer.xhtml" /> </p

404 Error while deploying simple web-app in JBoss AS 6 and JBoss AS 7?

谁都会走 提交于 2019-12-12 03:14:02
问题 I followed this blog for injecting EJB in REST layer. Here is the code that I tried deploying in JBOSS AS 6 and 7 using Eclipse: REST: package com.example.rest; import javax.ejb.EJB; import javax.ejb.Stateless; import javax.ws.rs.GET; import javax.ws.rs.Path; @Stateless @Path("current") public class ServiceFacade { @EJB ServiceImpl service; @GET public String getDate(){ return service.getCurrentDate().toString(); } } EJB: import java.util.Date; import javax.ejb.Stateless; @Stateless public

Failed to parse WSDL during deploying app on jboss - maybe Woodstox

橙三吉。 提交于 2019-12-12 03:01:30
问题 I've a problem during deploying application on jboss. I found some information that changing version of woodstox might help, but it wasn't... Log: 16:58:09,079 INFO [stdout] (MSC service thread 1-2) [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] Failed to parse WSDL 16:58:09,080 INFO [stdout] (MSC service thread 1-2) javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: java.lang.RuntimeException: Cannot create a secure XMLInputFactory 16:58:09,080 INFO [stdout] (MSC

JBAS015810: failed to resolve interface unsecure in jboss 7.1.1.Final

一个人想着一个人 提交于 2019-12-12 02:49:21
问题 When i try to deploy my application (JSF, Primefaces and EJB) in JBoss7.1.1.Final, the deployment failed and showing the following error messages. 15:07:54,373 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.network.unsecure: org.jboss.msc.service.StartException in service jboss.network.unsecure: JBAS015810: failed to resolve interface unsecure at org.jboss.as.server.services.net.NetworkInterfaceService.start(NetworkInterfaceService.java:97)

Deploy JAR as a module on JBoss 7.1.1

ε祈祈猫儿з 提交于 2019-12-12 02:05:41
问题 I have a problem using deployed jars on jboss as modules. I know that I should create a global module by: creating a subfolder of JBOSS_HOME/modules, copy the jar and create the module.xml file, but here http://blog.tier2consulting.com/2013/04/02/understanding-modules-in-jboss-enterprise-application-platform-6/ and, more officially, here https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6/html/Development_Guide/chap-Class_Loading_and_Modules.html, I read,

Exclude dependency from Application Server auto deployment

ⅰ亾dé卋堺 提交于 2019-12-12 01:37:49
问题 I've got EJB object which requires some interfaces from dependency (maven - jar). When I deploy it in .ejb in .ear everything works. I really don't need ear so I wanted to use .war with this EJB object. However during deployment it appeared that my dependency has some classes annotated with @Webservice. This classes also requires other dependencies which I don't want to use in my project, so during deployment I get no class def found exception. Is there any way to stop this auto-deployment of