[Tomcat, HTTPD, Servlets & JSP] - Re: Explicit document source root using context/docbase
by gburcher
Sorry, I didn't mean to say that your help was not appreciated. The wiki entry that you cited was a useful suggestion. It's just that, at this point, I have read through that entry and all other config documentation that seems to be available, tried all the suggested techniques and none of it seems to work for what I want to do.
I tried putting the Context entry under the Host entry of the server.xml file and that did not work either. If I have no MyWebApp.war in the JBoss install path and provide Context entry inside server.xml setting docBase to MyWebApp.war directory located outside of the JBoss install path, I get a series of errors on JBoss startup. Root error seems to be:
anonymous wrote : org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.
I can spend some more time researching this error but, before doing that, I was hoping for some confirmation that putting the Context definition inside the server.xml was definitely the correct approach.
Like you, I had seen JBoss config docs that suggest not to put Context entries inside of server.xml anymore.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964644#3964644
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964644
19 years, 9 months
[Management, JMX/JBoss] - How do I receive JMS Message from the MBEAN .
by niranjanc
How do I receive JMS Message from the MBEAN .
Following code is throwing this Exception when I try to register with messageConsumer
javax.jms.IllegalStateException: This method is not applicable inside the application server. See the J2EE spec, e.g. J2EE1.4 Section 6.6
| at org.jboss.resource.adapter.jms.JmsSession.checkStrict(JmsSession.java:542)
| at org.jboss.resource.adapter.jms.JmsMessageConsumer.setMessageListener(JmsMessageConsumer.java:136)
Context context = new InitialContext();
| ConnectionFactory connectionFactory_ = (ConnectionFactory) context
| .lookup("TopicConnectionFactory");
| Topic topic_ = (Topic) context.lookup(UM_MESSAGEING_TOPIC);
| Connection conection_ = connectionFactory_.createConnection();
| Session session_ = conection_.createSession(false
| Session.AUTO_ACKNOWLEDGE);
| MessageConsumer messageConsumer_ = session_.createConsumer (topic_);
| messageConsumer_.setMessageListener(callback);
| conection_.start();
Thanks in advance,
Niranjan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964639#3964639
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964639
19 years, 9 months
[JBossCache] - JBoss Cache run from within an application WAR file...
by astrien
This may belie me not understanding something basic about how Cache works with JBossAS, but here goes..
I'd like to run JBoss Cache on JBossAS, but package it within our application's WAR file. What I haven't been able to find in the wiki/docs/faqs is how to do this, and if you do, whether or not the MBean interface can be accessed from JBoss's console.
If this is a matter of Cache needing to be loaded from the JBoss instance's lib directory in order for the console to recognise Cache as manageable, then so be it, but it would be nice to see a Wiki page or an entry in the docs detailing the different ways to install Cache and the comparative benefits of each way.
What we are looking to do is to run a cluster of Caches on a cluster of JBoss servers, but we'd like the ability to simply deploy a war to another AS instance and bring up another Cache instance, instead of having to put the Cache jar in the server's lib directory, the cache config xml in the server deploy directory, etc... - and yet still be able to utilise the MBean managablity.
This is all assuming JBossAS v4.04 and JBoss Cache 1.4
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964638#3964638
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964638
19 years, 9 months