Hi,
Do we have any other way for using Java Messaging Service with GWT???
On Wed, Mar 16, 2011 at 6:49 AM, Juan Pablo Gardella <
[email protected]> wrote:
> I think the problem is here:
>
> javax.management.ObjectName is a restricted class. Please see the Google
> App Engine developer's guide for more details.
>
> This class isn't in
> http://code.google.com/appengine/docs/java/jrewhitelist.html
>
> I suppose you can't use that. ActiveMQ use this class.
>
> Juan
>
>
> 2011/3/16 Ramya Jayasankar <[email protected]>
>
>> Hi,
>> I also tried with GWT 1.7.1 .... But there I get other errors:
>>
>> [ERROR] Could not load MBeanServer
>> java.lang.NoClassDefFoundError: javax.management.MBeanServerFactory is a
>> restricted class. Please see the Google App Engine developer's guide for
>> more details.
>> at
>> com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:51)
>> at
>> org.apache.activemq.broker.jmx.ManagementContext.findMBeanServer(ManagementContext.java:337)
>> at
>> org.apache.activemq.broker.jmx.ManagementContext.getMBeanServer(ManagementContext.java:178)
>> at
>> org.apache.activemq.broker.jmx.ManagementContext.start(ManagementContext.java:88)
>> at
>> org.apache.activemq.broker.BrokerService.startManagementContext(BrokerService.java:1941)
>> at org.apache.activemq.broker.BrokerService.start(BrokerService.java:458)
>> at
>> org.apache.activemq.transport.vm.VMTransportFactory.doCompositeConnect(VMTransportFactory.java:123)
>> at
>> org.apache.activemq.transport.vm.VMTransportFactory.doConnect(VMTransportFactory.java:53)
>> at
>> org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.java:51)
>> at
>> org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:80)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:243)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:258)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:230)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:178)
>> at org.apache.activemq.web.WebClient.getConnection(WebClient.java:235)
>> at org.apache.activemq.web.WebClient.createSession(WebClient.java:337)
>> at org.apache.activemq.web.WebClient.getSession(WebClient.java:228)
>> at
>> org.apache.activemq.web.MessageServletSupport.getDestination(MessageServletSupport.java:318)
>> at
>> org.apache.activemq.web.MessageListenerServlet.doPost(MessageListenerServlet.java:144)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
>> at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
>> at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:45)
>> at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>> at
>> com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
>> at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>> at
>> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
>> at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>> at
>> com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
>> at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>> at
>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
>> at
>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>> at
>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
>> at
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
>> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
>> at
>> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
>> at
>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>> at
>> com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:351)
>> at
>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>> at org.mortbay.jetty.Server.handle(Server.java:326)
>> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
>> at
>> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
>> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
>> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>> at
>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
>> at
>> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
>>
>>
>> [ERROR] Failed to start ActiveMQ JMS Message Broker. Reason:
>> java.io.IOException: Invalid JMX broker name: broker1
>> java.io.IOException: Invalid JMX broker name: broker1
>> at
>> org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
>> at
>> org.apache.activemq.broker.BrokerService.createBrokerObjectName(BrokerService.java:1816)
>> at
>> org.apache.activemq.broker.BrokerService.getBrokerObjectName(BrokerService.java:994)
>> at
>> org.apache.activemq.broker.BrokerService.startManagementContext(BrokerService.java:1943)
>> at
>> org.apache.activemq.broker.BrokerService.start(BrokerService.java:458)
>> at
>> org.apache.activemq.transport.vm.VMTransportFactory.doCompositeConnect(VMTransportFactory.java:123)
>> at
>> org.apache.activemq.transport.vm.VMTransportFactory.doConnect(VMTransportFactory.java:53)
>> at
>> org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.java:51)
>> at
>> org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:80)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:243)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:258)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:230)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:178)
>> at org.apache.activemq.web.WebClient.getConnection(WebClient.java:235)
>> at org.apache.activemq.web.WebClient.createSession(WebClient.java:337)
>> at org.apache.activemq.web.WebClient.getSession(WebClient.java:228)
>> at
>> org.apache.activemq.web.MessageServletSupport.getDestination(MessageServletSupport.java:318)
>> at
>> org.apache.activemq.web.MessageListenerServlet.doPost(MessageListenerServlet.java:144)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>> at
>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
>> at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
>> at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:45)
>> at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>> at
>> com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
>> at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>> at
>> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
>> at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>> at
>> com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
>> at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>> at
>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
>> at
>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>> at
>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
>> at
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
>> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
>> at
>> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
>> at
>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>> at
>> com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:351)
>> at
>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>> at org.mortbay.jetty.Server.handle(Server.java:326)
>> at
>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
>> at
>> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
>> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
>> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>> at
>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
>> at
>> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
>> Caused by: java.lang.NoClassDefFoundError: javax.management.ObjectName is
>> a restricted class. Please see the Google App Engine developer's guide for
>> more details.
>> at
>> com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:51)
>> at
>> org.apache.activemq.broker.BrokerService.createBrokerObjectName(BrokerService.java:1813)
>> at
>> org.apache.activemq.broker.BrokerService.getBrokerObjectName(BrokerService.java:994)
>> at
>> org.apache.activemq.broker.BrokerService.startManagementContext(BrokerService.java:1943)
>> at
>> org.apache.activemq.broker.BrokerService.start(BrokerService.java:458)
>> at
>> org.apache.activemq.transport.vm.VMTransportFactory.doCompositeConnect(VMTransportFactory.java:123)
>> at
>> org.apache.activemq.transport.vm.VMTransportFactory.doConnect(VMTransportFactory.java:53)
>> at
>> org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.java:51)
>> at
>> org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:80)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:243)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:258)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:230)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:178)
>> at org.apache.activemq.web.WebClient.getConnection(WebClient.java:235)
>> at org.apache.activemq.web.WebClient.createSession(WebClient.java:337)
>> at org.apache.activemq.web.WebClient.getSession(WebClient.java:228)
>> at
>> org.apache.activemq.web.MessageServletSupport.getDestination(MessageServletSupport.java:318)
>> at
>> org.apache.activemq.web.MessageListenerServlet.doPost(MessageListenerServlet.java:144)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>> at
>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
>> at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
>> at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:45)
>> at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>> at
>> com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
>> at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>> at
>> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
>> at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>> at
>> com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
>> at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>> at
>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
>> at
>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>> at
>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
>> at
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
>> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
>> at
>> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
>> at
>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>> at
>> com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:351)
>> at
>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>> at org.mortbay.jetty.Server.handle(Server.java:326)
>> at
>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
>> at
>> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
>> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
>> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>> at
>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
>> at
>> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
>>
>> Can u please help???
>>
>>
>>
>>
>> On Wed, Mar 16, 2011 at 5:58 AM, Juan Pablo Gardella <
>> [email protected]> wrote:
>>
>>> http://code.google.com/p/gwt-activemq/ is compatible with GWT 2.2? See
>>> http://groups.google.com/group/google-web-toolkit/msg/19f967feee551248.
>>>
>>> Can you paste the complete stacktrace?
>>>
>>> Juan
>>>
>>> 2011/3/16 Ramya Jayasankar <[email protected]>
>>>
>>>> Hi,
>>>> I am actually using google maps in gwt.... I am trying to integrate
>>>> this with activemq-5.3.2 using these links..
>>>> http://code.google.com/p/gwt-activemq/
>>>> <http://code.google.com/p/gwt-activemq/>
>>>> http://activemq.apache.org/ajax.html
>>>>
>>>> <http://activemq.apache.org/ajax.html>this is my html file
>>>>
>>>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>>>> "http://www.w3.org/TR/html4/loose.dtd">
>>>> <html>
>>>> <head>
>>>> <meta http-equiv="content-type" content="text/html; charset=UTF-8">
>>>> <title>HelloMaps, built with GWT</title>
>>>> <style type="text/css"> v\:* { behavior: url("#default#VML"); }
>>>> </style>
>>>> <style>
>>>> .hm-title {
>>>> font-size: 1.5em;
>>>> font-family: sans-serif;
>>>> display: inline;
>>>> }
>>>> </style>
>>>> <script type="text/javascript" src="amq/amq.js"></script>
>>>> <script type="text/javascript">
>>>> amq.uri='amq';
>>>> amq.sendMessage(queue://Madyakailash,"hello");
>>>>
>>>>
>>>> </script>
>>>>
>>>> <link rel="stylesheet" type="text/css" href="HelloMaps.css" />
>>>> </head>
>>>> <body>
>>>> <!-- A blue bar with rounded corners drawn across the top of the
>>>> screen.-->
>>>> <div>
>>>> <img src="logo-small.png" alt="gwt logo">
>>>> <span class="hm-title">Google Maps API Library for GWT Demo</span>
>>>> </div>
>>>>
>>>> <div id="hm-map"></div>
>>>>
>>>>
>>>> <script src="hellomaps/hellomaps.nocache.js"
>>>> type="text/javascript"></script>
>>>> <iframe src="javascript:''" id='__gwt_historyFrame' style='width: 0;
>>>> height: 0; border: 0'></iframe>
>>>> <script src="http://www.google-analytics.com/urchin.js"
>>>> type="text/javascript"></script>
>>>> <script type="text/javascript">_uacct =
>>>> "UA-2494387-1";urchinTracker();</script>
>>>> Hello
>>>> </body>
>>>> </html>
>>>>
>>>> But when I run this code it shows this error:
>>>> java.lang.ClassCastException:
>>>> org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation cannot
>>>> be cast to org.mortbay.util.ajax.Continuation
>>>> at
>>>>
>>>> org.mortbay.util.ajax.ContinuationSupport.getContinuation(ContinuationSupport.java:
>>>> 30)
>>>>
>>>> Please help!!!
>>>> On Wed, Mar 16, 2011 at 5:43 AM, Juan Pablo Gardella <
>>>> [email protected]> wrote:
>>>>
>>>>> What code? Paste here if you want help
>>>>>
>>>>> Juan
>>>>>
>>>>>
>>>>> 2011/3/16 Ramya <[email protected]>
>>>>>
>>>>>> Hi,
>>>>>> I am using GWT 2.2 and trying to integrate it with apache-
>>>>>> activemq......When I run the code I get the following error..
>>>>>>
>>>>>> java.lang.ClassCastException:
>>>>>> org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation cannot
>>>>>> be cast to org.mortbay.util.ajax.Continuation
>>>>>> at
>>>>>>
>>>>>> org.mortbay.util.ajax.ContinuationSupport.getContinuation(ContinuationSupport.java:
>>>>>> 30)
>>>>>>
>>>>>>
>>>>>> Please help!!!
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "Google Web Toolkit" group.
>>>>>> To post to this group, send email to
>>>>>> [email protected].
>>>>>> To unsubscribe from this group, send email to
>>>>>> [email protected].
>>>>>> For more options, visit this group at
>>>>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>>>>
>>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Google Web Toolkit" group.
>>>>> To post to this group, send email to
>>>>> [email protected].
>>>>> To unsubscribe from this group, send email to
>>>>> [email protected].
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Google Web Toolkit" group.
>>>> To post to this group, send email to
>>>> [email protected].
>>>> To unsubscribe from this group, send email to
>>>> [email protected].
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to [email protected]
>>> .
>>> To unsubscribe from this group, send email to
>>> [email protected].
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.