xml « JBoss « Java Enterprise Q&A

1. Modify an xml files in a jar file with Java    stackoverflow.com

I currently am tasked with updating an XML file (persistance.xml) within a jar at a customers site. I can of course unjar the file, update the xml, then rejar the ...

2. How do you configure JBOSS to use the xml lib in the web app?    stackoverflow.com

JBOSS is throwing a:

java.lang.NoSuchMethodError: org.w3c.dom.Document.getDocumentURI()Ljava/lang/String;
Error when loading a wsdl. Can I configure it to prefer the library in my WAR instead of the system or app server lib?

3. Is it possible to override settings in a jboss-web.xml file?    stackoverflow.com

Is it possible to override the settings in war file's WEB-INF/jboss-web.xml? I have a war file from a vendor, and I'd like to change the datasource which it uses without ...

4. ColdFusion 8 as WAR on JBoss 4.2.3 WEB-INF/flex-config.xml error    stackoverflow.com

I have done this by the book multiple times and have also tried using someone else's WAR to deploy, but I keep getting the same error. I am running JBoss 4.2.3 ...

5. Where to put a local xsd file in Jboss 4.05    stackoverflow.com

I am working on Jboss 4.05 , I have an xsd file that was on jboss.com and want to have it locally on my system, I can not find the right ...

6. Is there a way to read the jvmRoute value from the JBoss server.xml at runtime?    stackoverflow.com

Our JBoss server.xml file has this line:

 <Engine name="jboss.web" defaultHost="localhost" jvmRoute="app_server_01">
Is there any way to get the jvmroute value (in this case app_server_01) at runtime using Java?


We've got session affinity (sticky ...

7. JBoss Error in ejb-jar.xml for Message Driven Bean TextMDB: expected one res-ref-name tag    stackoverflow.com

I've copied and pasted the example ejb-jar.xml and jboss.xml file from http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch6.chapt.html#ch6.mdbejbjar.ex and I'm receiving the following error when JBoss attempts to deploy it:

ERROR [ScannerThread] deployment.MainDeployer (MainDeployer.java:943) - Could ...

8. bounce multiple servers using ant    stackoverflow.com

This is restart target code which is defined in build.xml

target name="restart" propertycopy name="remote.host" from="deploy.${target.env}.host.${remote.id}" propertycopy name="remote.port" from="deploy.${target.env}.port.${remote.id}"
sshexec trust="true"
  command="sudo /usr/local/bin/bounce_jboss"
server information is defined in ...

9. JBOSS DROOLS using XmlDumper with .dslr    stackoverflow.com

I am able to parse a .DRL file into the XmlDumper and get the correct output. How I can I pass a .DSLR file through the XmlDumper to achieve the same ...

10. Extract DRL from DSLR    stackoverflow.com

How can I access the DRL generated within a DSLR file in Drools?

11. jboss-web.xml context path name is different from war file's name    stackoverflow.com

The context-path name in jboss-web.xml is different from the application which we deploy in jboss-5.0 GA. My application creates some files with in the applications sub-folders. but when it goes to create ...

12. Adding custom login-config.xml errors saying mbean already installed    stackoverflow.com

  Deployment "vfszip:/opt/jboss-5.1.0.GA/server/default/deploy/fizio.ear/" is in error due to the following reason(s): java.lang.IllegalStateException: jboss:service=DynamicLoginConfig is already installed.
My war's META-INF contains the following jboss-service.xml:
    <mbean code="org.jboss.security.auth.login.DynamicLoginConfig"

13. SNMP monitoring of MBeans (attributes.xml in snmp-adaptor.sar) (JBoss)    stackoverflow.com

I want to monitor (via SNMP) some attributes of several JBoss MBeans that are running on my system: I have configured my attributes.xml unders snmp-adaptor.sar to include:

<mbean name="jboss.ha:service=HASingletonDeployer">    

14. jboss-web.xml validation error    stackoverflow.com

Why do i have a validation error on the element "resource-ref" in this very simple jboss-web.xml file?

<?xml version="1.0" encoding="UTF-8"?>
<jboss-web xmlns="http://www.jboss.com/xml/ns/javaee"
    xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-web_6_0.xsd"

15. Jboss application-policy ignored in mutual/client-cert auth with PBESecurityDomain    stackoverflow.com

With the following, mutual client cert, SSL (TLS) handshake works for a rest endpoint (yay!) - validated via testing and debugging: javax.net logging & wireshark. But... 1st observation: HTTPServletRequest and JAX-RS annotated ...

16. How to change/update login-config.xml without a need to restart jboss server    stackoverflow.com

I have a jee application running on jboss 4.2.3GA. Login-config.xml is including the following piece of code;


17. Using properties/variables in jboss-web.xml    stackoverflow.com

I have a WAR that is configured to use a scoped classloader under JBoss. This all works fine and dandy. The configuration for it in jboss-web.xml looks something like this:

<?xml version="1.0" ...

18. What could be the problem of a queue that does not have a jndi-name in jboss.xml?    stackoverflow.com

I'm trying to migrate from jboss 4 to jboss 6 with an application i have running on jboss 4. But when i try to run the application i get the following exception:


19. A way to redefine default path to seraph-config.xml    stackoverflow.com

I'm trying to implement 'Single Sign On' over several systems on JBoss using Atlassian Seraph. According to the docs the default place for the seraph-config.xml file is ../WEB-INF/classes. Does anyone know ...

20. How can I improve performance for an MQ based batch application?    stackoverflow.com

I have an application where messages keep coming at a rate of 70K XMLs per hour. We consume these XML messages and store it into an intermediate queue. The intermediate queue ...

21. System property reference in jboss-web.xml not resolved on server startup    stackoverflow.com

I am using JBoss 5 and the system properties service to set some system properties my app (ear with war) needs. One of these is the name of the virtual host ...

22. modifying properties-service.xml    stackoverflow.com

I have a question related to the properties-service.xml. There is a value inside this file that needs to be updated every once in a while programmatically. So I have the following ...

23. Evaluating XPath expressions in JBoss Drools    stackoverflow.com

I am working within a enterprise architecture that is processing a large amount of XML messages. We have recently been given the requirement to perform some calculations on data contained ...

24. write a file in jboss directory    stackoverflow.com

I want to write in an xml file located under the conf directory of jboss. I open it like this:

public void initialiserXml() {
        sxb = ...

25. jboss-service.xml could not be opened, does it exist?    stackoverflow.com

When I am going to launch jBoss I see this erorr , so jBoss could not be started, what should I do?

26. xslt add text into jboss properties-service.xml    stackoverflow.com

I would like to add property in system-properties.xml by using XSLT. Current XML file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server>
     <mbean code="org.jboss.varia.property.PropertyEditorManagerService"

27. How can we use .xml file to truncate a table when server(JBOSS) started?    stackoverflow.com

How can I truncate table when jboss server started ? Can we use mysql-ds.xml ? HOw can we use xml to truncate a table ? HINT :- I saw jboss creates timer table automatically ...

28. How can I decrypt a password that is in the jboss login-config.xml    stackoverflow.com

Is there an API provided by jboss that I can use to access login-config.xml and decrypt the encrypted passwords.

29. How do I override web.xml context-param values at runtime in JBoss 5    stackoverflow.com

Tomcat has support for deploying a WebApp using just a context descriptor that, when dropped into the correct directory, can override context-params and point to the actual WAR file to run. ...

31. How to publish XML document on JBoss    forums.oracle.com

Hiii All, I hv created a cube designer, it generate a XML file. The XML file contains SQL Cube description, like Cube Name, Dimensions, Hierarchy, Levels etc. I want to publish this document on JBoss server. for getting table recoreds on Internet Explorer. Can anybody help me, how to do so........... Thanks in Advance.