[ 
https://issues.apache.org/activemq/browse/AMQ-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39502
 ] 

Tom Samplonius commented on AMQ-1281:
-------------------------------------

This fix wouldn't happen to all fix the queue browser problem in the Web 
Console?

Even when using the Web Console within ActiveMQ, if all of the destinations are 
password protected, the Web Console will crash horribly if you try to browse a 
queue, with the following error.  I think your patch won't help, because it 
seems that the queue browser is using JMS, not JMX.

org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'queueBrowser' defined in ServletContext resource 
[/WEB-INF/webconsole-embedded.xml]: Instantiation of bean failed; nested 
exception is org.springframework.beans.BeanInstantiationException: Could not 
instantiate bean class [org.apache.activemq.web.QueueBrowseQuery]: Constructor 
threw exception; nested exception is javax.jms.JMSException: User name or 
password is invalid.
Caused by: org.springframework.beans.BeanInstantiationException: Could not 
instantiate bean class [org.apache.activemq.web.QueueBrowseQuery]: Constructor 
threw exception; nested exception is javax.jms.JMSException: User name or 
password is invalid.
Caused by: javax.jms.JMSException: User name or password is invalid.
        at 
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:46)
        at 
org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1211)
        at 
org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1293)
        at 
org.apache.activemq.ActiveMQConnection.createSession(ActiveMQConnection.java:294)
        at 
org.apache.activemq.web.SessionPool.createSession(SessionPool.java:97)
        at 
org.apache.activemq.web.SessionPool.borrowSession(SessionPool.java:80)
        at org.apache.activemq.web.QueueBrowseQuery.(QueueBrowseQuery.java:41)
...

> Better WAR building for the WebConsole
> --------------------------------------
>
>                 Key: AMQ-1281
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1281
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>         Environment: any
>            Reporter: Mario Siegenthaler
>         Attachments: webconsole-patch.txt
>
>
> The webconsole can be deployed in any webcontainer and is also started by 
> default within the broker. However the building and configuration process is 
> unclear.
> * To resolve that issue I added some documentation about how to run the war 
> in an external servlet container and changed some default setting. Also I 
> changed the version that is started within the broker to the invm version 
> instead of the 'custom' configuration that was previously included in the 
> assembly/src/release/webapp/WEB-INF.
> * The maven jetty:run on the web-console project will still start up the 
> embedded version, but I fixed the bug that caused it to leak sessions 
> (switched to the spring-2.0 syntax for the configuration file).
> * I removed some JARs from the WEB-INF/lib of the war because they should be 
> provided by the servlet container. This affects some specifications (JMX, 
> JMS), the activation-jar and, most important, the activemq-core jar.
> I hope this does the job and makes the deployment experience for the users 
> easier.
> Note: I had some problems putting together the patch as my subversion (or my 
> inability to communicate with it) insisted on leaving out some files I 
> created :) I think they're all in now, but I'm not sure. So if anything is 
> missing... :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to