jboss6.x

java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy

前提是你 提交于 2019-12-21 17:22:32
问题 I am trying to deploy my project on JBoss 6.0. I am using Netbeans 7.0.1, Spring 3.0.2 and JSF2.0. The project is running fine in Tomcat. But when I trying to deploy on JBoss, I am getting the following error: *** DEPLOYMENTS IN ERROR: Name -> Error vfs:///C:/jboss-6.0.0.Final/server/default/deploy/WebApplication3.war -> org.jboss.deployers.spi.DeploymentException: Error during deploy: vfs:///C:/jboss- 6.0.0.Final/server/default/deploy/WebApplication3.war DEPLOYMENTS IN ERROR: Deployment "vfs

Login issue with DatabaseServerLoginModule in JBoss 6

穿精又带淫゛_ 提交于 2019-12-20 07:06:59
问题 I get a ServeletException: Failed to authenticate a principal when I attempt to login with the DatabaseServerLoginModule. I'm guessing the issue is either how passwords are written to the db or the rolesQuery that is incorrect. I certainly can use suggestions on how to troubleshoot at this point. Here is my setup: login-config.xml <application-policy name = "Avengers"> <authentication> <login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule" flag = "required"> <module

How to propagate a client-side UserTransaction into a stateless session bean using BMT

£可爱£侵袭症+ 提交于 2019-12-20 05:17:05
问题 This scenario using CMT is working: Stateless session bean with CMT, one method annotated with @TransactionAttribute(TransactionAttributeType.MANDATORY) . Within this method, a record is written into a RDBMS using an XA data source and plain JDBC. The stand-alone client (separate JVM, command-line Java application) is getting a UserTransaction from the application server (by JNDI lookup), starts the transaction, and calls the EJB. If the client commits the UserTransaction , the record is

<security-constraint> <url-pattern> and the * character within web.xml

不羁岁月 提交于 2019-12-20 05:10:26
问题 Useing Spring for Security, I can get the program running using the following code. <intercept-url pattern="/web/admin**/**" access="ROLE_ADMIN" requires-channel="https"/> <intercept-url pattern="/web/**/" access="ROLE_USER,ROLE_ADMIN" requires-channel="https"/> I am trying to do this within a web.xml currently. Using JBOSS to deploy a .war file. Below is what I have, The url-pattern is what is causing me the problems in the first security-constraint. The pages are located at, and named /web

Where do you configure log4j settings in jboss6

帅比萌擦擦* 提交于 2019-12-19 21:46:35
问题 jboss-6.0.0.Final doesn't seem to have jboss-log4j.xml which was used to configure log4j settings in jboss5 (i.e. under server/default/conf/jboss-log4j.xml) 回答1: Apparently the name and location changed since release 6: In the releases 4.x and 5.x it's located here:JBoss_HOME\server\default\conf\jboss-log4j.xml Since the release 6.0.0 M1 it's located in the deploy folder: JBOSS_HOME\server\default\deploy\jboss-logging.xml Source: http://www.mastertheboss.com/jboss-application-server/251-jboss

JBoss 6 - Deploy ejb in war packaging

拥有回忆 提交于 2019-12-19 04:09:41
问题 I am trying to use the new EJB3.1 feature where one can deploy an EJB packaged within a .war file. I am using Maven 2.2.1 to package the EJB module and then dropping the ejb jar in a war module (as a dependency). The final war contains a simple web.xml with no content, and the ejb jar library in the lib directory. However, though the application is deployed correctly, the annotated ejb (@Stateless) is not recognized by the container. I have no ejb-jar.xml descriptor (which I believe is

Spring bean not injected into CXF web service, Why?

烂漫一生 提交于 2019-12-18 15:34:17
问题 I am writing a RESTful service (using CXF on JBoss) in which I have inject another class using Spring (Autowired). But the class is not getting injected and is null. Web Service Interface and Class (Where injection needs to happen) package com.company.project.web; @Path("/myws") public interface IMyWebService { @POST @Path("/doSomething") @Consumes("application/json") @Produces("application/json") MyResponse doSomething(MyRequest myRequest) } @Service("myWebService") public class MyWebService

Spring bean not injected into CXF web service, Why?

青春壹個敷衍的年華 提交于 2019-12-18 15:32:59
问题 I am writing a RESTful service (using CXF on JBoss) in which I have inject another class using Spring (Autowired). But the class is not getting injected and is null. Web Service Interface and Class (Where injection needs to happen) package com.company.project.web; @Path("/myws") public interface IMyWebService { @POST @Path("/doSomething") @Consumes("application/json") @Produces("application/json") MyResponse doSomething(MyRequest myRequest) } @Service("myWebService") public class MyWebService

JSF Validation Error: Value is not valid [duplicate]

落花浮王杯 提交于 2019-12-18 04:22:17
问题 This question already has answers here : Validation Error: Value is not valid (3 answers) Closed 3 years ago . I know this seems to be a common one, but I'm lost with it. Occurs on clicking the Add button in assessment.jsf. Anyway, I've attached what I think are the relevant sections. FWIW, AssessmentType.equals() isn't triggered when I debug. Thanks in advance. j_idt38:j_idt47:j_idt48: Validation Error: Value is not valid assessment.xhtml: <h:form> <h:selectOneMenu value="#{assessmentBean

JMS queue with multiple consumers

你离开我真会死。 提交于 2019-12-17 12:15:33
问题 I have a JBoss-6 server with HornetQ and a single queue: <queue name="my.queue"> <entry name="/queue/test"/> </queue> There a different consumers (on different machines) connected to this queue, but only a single consumer is active at a time. If I shut down this consumer, the messages are immediately processed by one of the other consumers. Since my messages have some time consuming processing, I want multiple consumer process their unique messages concurrently. I remember a similar in