jboss

Deploying WAR-Application in JBoss Wildfly with unavailable DataSource?

最后都变了- 提交于 2020-01-01 15:06:34
问题 I´ve a webapplication wich uses JPA persistence unter wildfly 8.2. The persistence.xml is connected to <jta-data-source>java:/jdbc/myDS</jta-data-source> wich generally works fine. BUT if I start the JBoss-Server before the Database-Server is ready, the web application doen´t get deployed with the following error: BAS011411: Unexpected problem gathering statistics: java.lang.IllegalStateException: JBAS011477: Persistence unit 'my.war#myPU' is not available My wish is that the application DOES

How to kill db transaction that timed out from jboss

二次信任 提交于 2020-01-01 14:29:26
问题 I use jboss 4.2.3. It has setting "TransactionTimeout" (in jboss-service.xml), that specifies how long Transaction is allowed to execute. Unfortunately, when the timeout passes, the execution isn't aborted right now, if the transaction is doing something, only it is marked to be rolled back later. The effect is - when I have long lasting transaction and thread is wainting on preparedStatement.execute for example, and when the TransactionTimeout passes, nothing happend, client still hang, only

JBoss AS 7 migration - java.lang.ClassNotFoundException: org.hibernate.validator.ClassValidator

房东的猫 提交于 2020-01-01 09:29:10
问题 I have an application running on JBoss AS 4.2.3 and am trying to migrate this to JBoss AS 7.0.2. I am also upgrading seam from 2.1.1 to 2.2.2. I have resolved a few of the class not found exceptions, but I am stuck on java.lang.ClassNotFoundException: org.hibernate.validator.ClassValidator My full stack trace is below. I'm not very clear on the new class loader in AS 7. Does Hibernate 4 work with seam 2.2.2? I have tried specifying the exports in jboss-deployment-structure.xml to use org

Java JBoss 401 Error on SharePoint 2010 Web Service

﹥>﹥吖頭↗ 提交于 2020-01-01 09:22:43
问题 My code runs successfully when tested within the Eclipse IDE. I'm connecting to MS SharePoint 2010 via Web Services using the generated Copy.wsdl When I deploy my code on the JBoss server (Running Adobe LifeCycle) my code receives a 401 Error. Error: Caused by: org.jboss.ws.WSException: Invalid HTTP server response [401] - Unauthorized at org.jboss.ws.core.soap.SOAPMessageUnMarshallerHTTP.read(SOAPMessageUnMarshallerHTTP.java:75) at org.jboss.remoting.transport.http.HTTPClientInvoker

JBoss AS 7 disable hot deployment

*爱你&永不变心* 提交于 2020-01-01 09:18:16
问题 In previous versions you just disable the ScanEnabled attribute in conf/jboss-service.xml. I am wondering how do you disable this on JBoss 7 Thanks 回答1: You could just remove the deployment scanner subsystem. Remove <extension module="org.jboss.as.deployment-scanner"/> and then remove the: <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1"> <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000" auto-deploy-zipped="false" auto-deploy-exploded=

How to have a HashMap as @WebParam with JBossWS 3.1.2

旧街凉风 提交于 2020-01-01 07:00:07
问题 I am trying to develop a web service with JBossWS 3.1.2 that has a HashMap as one of its arguments. I am using this version of JBossWS because that is what is distributed with the version of JBoss that I am using. I am using wsprovide to generate the WSDL and wsconsume to create WS client stubs. A simplified version of my WebService is: @WebService(targetNamespace = "http://localhost/ping", serviceName = "Ping") @SOAPBinding(style = SOAPBinding.Style.RPC) public class Ping { @WebMethod

Deploy vaadin to JBoss 7.0 gives me a ClassNotFoundException

喜欢而已 提交于 2020-01-01 05:39:16
问题 I've created a new Vaadin (6.6.5) project in eclipse and I've tried to deploy it on JBoss 7.0 but it gives me a GWT ClassNotFoundException Caused by: java.lang.ClassNotFoundException: com.google.gwt.user.client.ui.HasWidgets from [Module "deployment.test.war:main" from Service Module Loader] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191) at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358) at org.jboss.modules

Jersey 2.1 + JBoss 7.1 NoSuchMethodError: getProperties

旧时模样 提交于 2020-01-01 05:19:09
问题 I am trying to run Jersey 2.1 REST service on JBoss 7.1 AS. I am getting the NoSuchMethodError: javax.ws.rs.core.Application.getProperties error during deployment: ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/RESTService]] (MSC service thread 1-9) StandardWrapper.Throwable: java.lang.NoSuchMethodError: javax.ws.rs.core.Application.getProperties()Ljava/util/Map; at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:271) [jersey-server-2

Create junit automatically [closed]

﹥>﹥吖頭↗ 提交于 2020-01-01 05:17:04
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Is there any way that i need not write junit test cases and it gets generated automatically. Actually i have an application which is fully tested but has no junit written for it. So i am sure that it is complete and has not much error. But my client wants a code coverage report for the same. Is there any tool

How to maintain the same session id across multiple web applications in Java

不羁的心 提交于 2020-01-01 05:16:13
问题 How do I maintain the same session ID for multiple web applications in a Jboss server? 回答1: Take a look at this post, for similar question. Access session of another web application What this is saying is "Not directly. Most containers put each WAR in a separate classloader with the EAR classloader as their parent. Each app's sessions are separate. You can put something provided by the parent EAR in each session. If you need them to share something, make it a EAR function." So, due to the