geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lin sun <linsun_...@yahoo.com>
Subject define JMS resources in web.xml (TOMCAT)
Date Tue, 11 Oct 2005 01:49:33 GMT
Anyone tried to define JMS resources in web.xml when your default web server is tomcat?  
I got a version running with Jetty but after I changed the default web server to tomcat,
I got the following error:

09:56:16,438 ERROR [ContextConfig] Parse error in application web.xml
java.lang.NullPointerException
   at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java(Inlined
Compiled Code))
   at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java(Inlined
Compiled Code))
   at org.apache.tomcat.util.digester.Digester.endElement(Digester.java(Compiled Code))
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
   at
org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:339)
   at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1031)
   at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:255)
   at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4053)
   at
org.apache.geronimo.tomcat.GeronimoStandardContext.start(GeronimoStandardContext.java:163)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at org.apache.geronimo.tomcat.TomcatContainer.addContext(TomcatContainer.java:267)
   at
org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.invoke(<generated>)
   at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
   at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
   at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
   at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:760)
   at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
   at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)
   at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
   at
org.apache.geronimo.tomcat.TomcatContainer$$EnhancerByCGLIB$$45c0d2a2.addContext(<generated>)
   at
org.apache.geronimo.tomcat.TomcatWebAppContext.doStart(TomcatWebAppContext.java:373)
   at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java(Compiled
Code))
   at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:325)
   at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:110)
   at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:480)
   at
org.apache.geronimo.gbean.runtime.GBeanSingleReference.attemptFullStart(GBeanSingleReference.java:154)
   at
org.apache.geronimo.gbean.runtime.GBeanSingleReference.targetAdded(GBeanSingleReference.java:127)
   at
org.apache.geronimo.gbean.runtime.AbstractGBeanReference.addTarget(AbstractGBeanReference.java:242)
   at
org.apache.geronimo.gbean.runtime.GBeanSingleReference$1.running(GBeanSingleReference.java:163)
   at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:155)
   at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:38)
   at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:231)
   at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:350)
   at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:110)
   at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:132)
   at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:497)
   at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:210)
   at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:140)
   at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:497)
   at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:210)
   at org.apache.geronimo.kernel.KernelGBean.startRecursiveGBean(KernelGBean.java:73)
   at
org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.invoke(<generated>)
   at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
   at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
   at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
   at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:795)
   at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:180)
   at
org.apache.geronimo.kernel.jmx.MBeanServerDelegate.invoke(MBeanServerDelegate.java:117)
   at mx4j.remote.rmi.RMIConnectionInvoker.invoke(RMIConnectionInvoker.java:219)
   at sun.reflect.GeneratedMethodAccessor110.invoke(Unknown Source)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled
Code))
   at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
   at mx4j.remote.rmi.RMIConnectionProxy.invoke(RMIConnectionProxy.java:34)
   at
mx4j.remote.rmi.RMIConnectionSubjectInvoker.chain(RMIConnectionSubjectInvoker.java:99)
   at
mx4j.remote.rmi.RMIConnectionSubjectInvoker.access$000(RMIConnectionSubjectInvoker.java:31)
   at
mx4j.remote.rmi.RMIConnectionSubjectInvoker$1.run(RMIConnectionSubjectInvoker.java:90)
   at java.security.AccessController.doPrivileged1(Native Method)
   at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
   at javax.security.auth.Subject.doAsPrivileged(Subject.java:709)
   at mx4j.remote.MX4JRemoteUtils.subjectInvoke(MX4JRemoteUtils.java:163)
   at
mx4j.remote.rmi.RMIConnectionSubjectInvoker.subjectInvoke(RMIConnectionSubjectInvoker.java:86)
   at
mx4j.remote.rmi.RMIConnectionSubjectInvoker.invoke(RMIConnectionSubjectInvoker.java:80)
   at $Proxy0.invoke(Unknown Source)
   at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:221)
   at sun.reflect.GeneratedMethodAccessor110.invoke(Unknown Source)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled
Code))
   at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
   at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:279)
   at sun.rmi.transport.Transport$1.run(Transport.java:164)
   at java.security.AccessController.doPrivileged1(Native Method)
   at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
   at sun.rmi.transport.Transport.serviceCall(Transport.java:160)
   at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:505)
   at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.handleRequest(TCPTransport.java:837)
   at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:911)
   at java.lang.Thread.run(Thread.java:568)
09:56:16,608 ERROR [ContextConfig] Occurred at line 370 column 33
09:56:16,608 DEBUG [ContextConfig] Pipline Configuration:
09:56:16,608 DEBUG [ContextConfig]   org.apache.catalina.core.ValveBase/1.0
09:56:16,608 DEBUG [ContextConfig]   org.apache.catalina.core.ValveBase/1.0
09:56:16,608 DEBUG [ContextConfig]   org.apache.catalina.core.ValveBase/1.0
09:56:16,608 DEBUG [ContextConfig]   org.apache.catalina.core.StandardContextValve/1.0
09:56:16,608 DEBUG [ContextConfig] ======================
09:56:16,608 ERROR [ContextConfig] Marking this application unavailable due to previous
error(s)

And line 370 column 33 refers to the following in the web.xml:

    <message-destination-ref id="MessageDestinationRef_1">
        
<message-destination-ref-name>jms/TradeBrokerQueue</message-destination-ref-name>
         <message-destination-type>javax.jms.Queue</message-destination-type>
         <message-destination-usage>Produces</message-destination-usage>
         <message-destination-link>TradeBrokerQueue</message-destination-link>
      </message-destination-ref>   //this is line 370
      <message-destination-ref id="MessageDestinationRef_2">                       
     
              
      
<message-destination-ref-name>jms/TradeStreamerTopic</message-destination-ref-name>
         <message-destination-type>javax.jms.Topic</message-destination-type>
         <message-destination-usage>Produces</message-destination-usage>
         <message-destination-link>TradeStreamerTopic</message-destination-link>
      </message-destination-ref> 
 




thanks, 

Lin


	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

Mime
View raw message