activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tryma <trym.asser...@creuna.no>
Subject ActiveMQ with Spring-embedded broker on Glassfish
Date Fri, 29 Sep 2006 07:20:00 GMT

Hi,

We're experiencing a strange exception in our application deployed on
Glassfish. We've got some JSPs configured using Sitemesh and are attempting
to configure an embedded broker in Spring.

We manage to create the AMQConnectionFactory bean without problems, but if
we try to configure an embedded broker, all our JSPs fail compilation at
run-time with what I think is an obscure HashTable exception... could there
be a conflict with the XBean library? The WAR deploys fine in either
instance (with or without the embedded broker bean).

    <!-- this one works fine -->
    <bean id="queueConnectionFactory"
class="org.apache.activemq.spring.ActiveMQConnectionFactory">
        <property name="brokerURL" value="tcp://localhost:61616"/>
    </bean>

    <!-- uncommenting this one in our applicationContext.xml causes the
strange HashTable NPE seen below on all JSPs, even on separate WARs which
only contain a really plain JSP which only contains HTML -->
<!--
    <bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean">
        <property name="config" value="classpath:broker.xml"/>
    </bean>
-->

I'm not sure what other info to include other than that our application uses
the Spring2.0-RC1 library, and for ActiveMQ we're using the following libs
(i.e. we've tried both ActiveMQ 4.0.1 and ActiveMQ 4.1 SNAPSHOT):

activeio-core-3.0-SNAPSHOT.jar, activemq-core-4.1-SNAPSHOT.jar,
activemq-web-4.1-SNAPSHOT.jar, backport-util-concurrent-2.1.jar,
xbean-spring-2.5.jar.

Here's the HashTable exception from our server log:

[#|2006-09-27T13:28:43.859+0200|SEVERE|sun-appserver-ee9.1|javax.enterprise.system.container.web|_ThreadID=12;_ThreadName=httpWorkerThread-8080-0;_RequestID=fe045101-1f8f-4115-82b1-656ce9bd4c88;|ApplicationDispatcher[/elkjop]
PWC1231: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
	at java.util.Hashtable.put(Hashtable.java:396)
	at org.apache.tools.ant.PropertyHelper.setProperty(PropertyHelper.java:335)
	at org.apache.tools.ant.Project.setPropertyInternal(Project.java:460)
	at org.apache.tools.ant.Project.setSystemProperties(Project.java:800)
	at org.apache.tools.ant.Project.init(Project.java:261)
	at
org.apache.jasper.compiler.AntJavaCompiler.getProject(AntJavaCompiler.java:100)
	at
org.apache.jasper.compiler.AntJavaCompiler.init(AntJavaCompiler.java:132)
	at org.apache.jasper.compiler.Compiler.initJavaCompiler(Compiler.java:600)
	at org.apache.jasper.compiler.Compiler.<init>(Compiler.java:88)
	at
org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:242)
	at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:573)
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:440)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:335)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
	at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
	at
org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:848)
	at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:697)
	at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:532)
	at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:465)
	at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:353)
	at
org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:115)
	at
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:252)
	at
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1053)
	at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:818)
	at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:727)
	at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)
	at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:350)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
	at
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
	at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)
	at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
	at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:246)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
	at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
	at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
	at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
	at
com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
	at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
	at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:619)
	at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.processNonBlocked(DefaultProcessorTask.java:550)
	at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:780)
	at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
	at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:251)
	at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:205)
	at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
	at
com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:103)
|#]

Does anyone have any ideas of what could be wrong, we would ideally like to
run an embedded broker instead of stand-alone. Let me know if any more info
is required.

Regards,
Trym A
-- 
View this message in context: http://www.nabble.com/ActiveMQ-with-Spring-embedded-broker-on-Glassfish-tf2355398.html#a6560420
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message