activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: [Spam: 5.0] class not found org.apache.activemq.web.MessageServlet
Date Mon, 26 Feb 2007 08:08:31 GMT
The activemq.xml is used to configure ActiveMQ - you use the web.xml
to configure <servlet-name>

On 2/24/07, pandi79 <pandiarajan.jeeva@wipro.com> wrote:
>
> Thanks for the reply. I am using ActiveMQ 4.1.0 . I set the jar file
> activemq-web-4.1.0-incubator.jar in the class path and tried to start the
> broker. I guess the broker is not able to parser the tag <servlet-name>
> which I've given in the activemq.xml. It throws error  <servlet-
>
>
>
> Loading message broker from: xbean:activemq.xml
> ERROR: java.lang.RuntimeException: Failed to execute start task. Reason:
> org.spr
> ingframework.beans.factory.BeanDefinitionStoreException: Error registering
> bean
> with name 'servlet-name' defined in class path resource [activemq.xml]: Bean
> cla
> ss [servlet-name] not found; nested exception is
> java.lang.ClassNotFoundExceptio
> n: servlet-name
> java.lang.RuntimeException: Failed to execute start task. Reason:
> org.springfram
> ework.beans.factory.BeanDefinitionStoreException: Error registering bean
> with na
> me 'servlet-name' defined in class path resource [activemq.xml]: Bean class
> [ser
> vlet-name] not found; nested exception is java.lang.ClassNotFoundException:
> serv
> let-name
>         at
> org.apache.activemq.console.command.StartCommand.runTask(StartCommand
> .java:70)
>         at
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractC
> ommand.java:50)
>         at
> org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand
> .java:65)
>         at
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractC
> ommand.java:50)
>         at
> org.apache.activemq.console.command.ShellCommand.main(ShellCommand.ja
> va:46)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at org.apache.activemq.console.Main.runTaskClass(Main.java:159)
>         at org.apache.activemq.console.Main.main(Main.java:91)
> Caused by: org.springframework.beans.factory.BeanDefinitionStoreException:
> Error
>  registering bean with name 'servlet-name' defined in class path resource
> [activ
> emq.xml]: Bean class [servlet-name] not found; nested exception is
> java.lang.Cla
> ssNotFoundException: servlet-name
>         at
> org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.resolveBean
> Class(XBeanNamespaceHandler.java:234)
>         at
> org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFr
> omExtensionElement(XBeanNamespaceHandler.java:214)
>         at
> org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFr
> omExtensionElement(XBeanNamespaceHandler.java:256)
>         at
> org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parse(XBean
> NamespaceHandler.java:152)
>         at
> org.apache.xbean.spring.context.v2.XBeanNamespaceHandler.parse(XBeanN
> amespaceHandler.java:49)
>         at
> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.pa
> rseCustomElement(BeanDefinitionParserDelegate.java:1147)
>         at
> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.pa
> rseCustomElement(BeanDefinitionParserDelegate.java:1137)
>         at
> org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseChildE
> xtensionBean(XBeanNamespaceHandler.java:663)
>         at
> org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseNested
> PropertyViaIntrospection(XBeanNamespaceHandler.java:579)
>         at
> org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.tryParseNes
> tedPropertyViaIntrospection(XBeanNamespaceHandler.java:548)
>         at
> org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.addNestedPr
> opertyElements(XBeanNamespaceHandler.java:515)
>         at
> org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFr
> omExtensionElement(XBeanNamespaceHandler.java:211)
>         at
> org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFr
> omExtensionElement(XBeanNamespaceHandler.java:256)
>         at
> org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parse(XBean
> NamespaceHandler.java:152)
>         at
> org.apache.xbean.spring.context.v2.XBeanNamespaceHandler.parse(XBeanN
> amespaceHandler.java:49)
>         at
> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.pa
> rseCustomElement(BeanDefinitionParserDelegate.java:1147)
>         at
> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.pa
> rseCustomElement(BeanDefinitionParserDelegate.java:1137)
>         at
> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe
> ader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:145)
>         at
> org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.
> parseBeanDefinitions(XBeanBeanDefinitionDocumentReader.java:63)
>         at
> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe
> ader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:89)
>         at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registe
> rBeanDefinitions(XmlBeanDefinitionReader.java:499)
>         at
> org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.regis
> terBeanDefinitions(XBeanXmlBeanDefinitionReader.java:79)
>         at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB
> eanDefinitions(XmlBeanDefinitionReader.java:407)
>         at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
> nDefinitions(XmlBeanDefinitionReader.java:357)
>         at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
> nDefinitions(XmlBeanDefinitionReader.java:334)
>         at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReade
> r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)
>         at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReade
> r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)
>         at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReade
> r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:168)
>         at
> org.springframework.context.support.AbstractXmlApplicationContext.loa
> dBeanDefinitions(AbstractXmlApplicationContext.java:113)
>         at
> org.apache.xbean.spring.context.ClassPathXmlApplicationContext.loadBe
> anDefinitions(ClassPathXmlApplicationContext.java:180)
>         at
> org.springframework.context.support.AbstractRefreshableApplicationCon
> text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94)
>         at
> org.springframework.context.support.AbstractApplicationContext.refres
> h(AbstractApplicationContext.java:294)
>         at
> org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>
> (ClassPathXmlApplicationContext.java:161)
>         at
> org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>
> (ClassPathXmlApplicationContext.java:51)
>         at
> org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBroker
> Factory.java:41)
>         at
> org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.j
> ava:57)
>         at
> org.apache.activemq.console.command.StartCommand.startBroker(StartCom
> mand.java:82)
>         at
> org.apache.activemq.console.command.StartCommand.runTask(StartCommand
> .java:47)
>         ... 10 more
> Caused by: java.lang.ClassNotFoundException: servlet-name
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>         at org.springframework.util.ClassUtils.forName(ClassUtils.java:177)
>         at
> org.springframework.beans.factory.support.AbstractBeanDefinition.reso
>
>
>
> Can you please steer me in right direction to test some http request? the
> info provided in the url http://activemq.apache.org/web-samples.html seems
> to be applicable for source version , not for binary version. For v4.1.0,
> there is no option available to download source code.
>
>
>
>
>
> pandi79 wrote:
> >
> > Hi,
> >
> > I am doing some POC to use REST HTTP options.
> >
> > I've given servlet mapping entries below :
> >
> > <transportConnectors>
> >        <transportConnector name="openwire" uri="tcp://localhost:61616"
> > discoveryUri="multicast://default"/>
> >        <transportConnector name="ssl"     uri="ssl://localhost:61617"/>
> >        <transportConnector name="stomp"   uri="stomp://localhost:61613"/>
> >       <transportConnector name="http" uri="http://localhost:9090"/>
> >
> >
> >     </transportConnectors>
> >
> >     <networkConnectors>
> >       <!-- by default just auto discover the other brokers -->
> >       <networkConnector name="default-nc" uri="multicast://default"/>
> >       <!--
> >       <networkConnector name="host1 and host2"
> > uri="static://(tcp://host1:61616,tcp://host2:61616)" failover="true"/>
> >       -->
> >     </networkConnectors>
> >     <servlet>
> > <servlet-name>MessageServlet</servlet-name>
> > <servlet-class>org.apache.activemq.web.MessageServlet</servlet-class>
> > <load-on-startup>1</load-on-startup>
> > </servlet>
> > <servlet-mapping>
> > <servlet-name>MessageServlet</servlet-name>
> > <url-pattern>/queue</url-pattern>
> > </servlet-mapping>
> >
> >
> >
> > When I try to start the broker, it throws the error saying that class not
> > found exception for the class org.apache.activemq.web.MessageServlet . Has
> > anyone know where can I download the same?.
> >
> > I am using 4.1.0 version.
> >
> >
> > Also please share your idea about  how to put & get the message using http
> > url . Any entires to be added in activemq.xml for this one?.
> >
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/class-not-found-org.apache.activemq.web.MessageServlet-tf3279389s2354.html#a9131454
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message