Updating Apache httpd configuration from JON fails with message Configuration of the virtual host contains conditional blocks
Issue
- Updating Apache httpd configuration from JON fails with message
Configuration of the virtual host contains conditional blocksand following error shown in agent.log file :
WARN [ConfigurationManager.threadpool-1] (rhq.core.pc.configuration.ConfigurationCheckExecutor)- An error occurred while checking for an updated Resource configuration for Resource[id=11751, uuid=5729d8e1-e81c-4af5-889f-ddd5009104c5, type={Apache}Apache Virtual Host, key=first.example.com|*:8000, name=first.example.com:8000, parent=192.168.122.192:8000].
java.lang.IllegalStateException: Configuration of the virtual host [first.example.com|*:8000] contains conditional blocks. This is not supported by this plugin.
at org.rhq.plugins.apache.ApacheVirtualHostServiceComponent.getNode(ApacheVirtualHostServiceComponent.java:482)
at org.rhq.plugins.apache.ApacheVirtualHostServiceComponent.loadResourceConfiguration(ApacheVirtualHostServiceComponent.java:208)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocation.call(ResourceContainer.java:654)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Environment
- Red Hat JBoss Operations Network (ON)
- 3.2.x
- Apache httpd server
- 2.2.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
