[JBossWS] - Run-time mapping problem (4.0.3)
by orfordi
I'm working on a project that's using JBoss 4.0.3. This version does not come with "wstools". The documentation talks about using JWSDP's "wscompile", but that gave me some exceptions (no public constructors on some of the enum-type classes), so I'm using "wstools" from an installation of the latest JBoss and WS addon.
So, I've got my soap definition xml file and have used wstools to generate my wsdl and my mapping xml files.
I've added the dummy servlet definition to web.xml and have also created the webservices.xml file that refers to my mapping file.
The server now exposes the wsdl under ?wsdl which is good. I've imported this into VS.NET and am trying to call the method. I get a mapping exception. I had to use "document" style SOAP rather than "rpc" because VS2003 could not understand the WSDL when I tried "rpc".
So I'm trying to work out what's happening with my mapping. Note that the file is not called "jaxrpc-mapping.xml", I've prefixed it with something else, but I've checked that it's in WEB-INF and my WEB-INF\webservices.xml file refers to the correctly named mapping file.
Any suggestions? Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994157#3994157
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994157
19 years, 4 months
[JBoss Messaging] - Destination is not an instance of SpyDestination JBossQueue
by chaituu
anyway queue is coming correctly.while sending the messages do to the queue i am getting exception.
|
| Properties env = new Properties();env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming rg.jnp.interfaces"); env.put(Context.PROVIDER_URL, "172.16.7.12:1099"); Context remoteCtx = new InitialContext(env);Queue queue = (Queue)remoteCtx.lookup("queue/testQueue"); QueueConnectionFactory queueFactory =(QueueConnectionFactory)remoteCtx.lookup("ConnectionFactory"); queueConnection = queueFactory.createQueueConnection(); QueueSession queueSession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); QueueSender queueSender = queueSession.createSender(queue); TextMessage message = queueSession.createTextMessage(); message.setText(Long.toString(2));queueSender.send(message);
|
|
this is the log file i am getting;
| 2006-12-15 13:41:55,883 INFO [STDOUT] queue=JBossQueue[testQueue]2006-12-15 13:41:55,883 INFO [STDOUT] queueFactory=org.jboss.mq.SpyConnectionFactory@ee25db2006-12-15 13:41:55,883 INFO [STDOUT] queueSender=SpyMessageProducer@18073655[ dest=JBossQueue[testQueue] delivery=persist priority=4 ttl=0 disableMessageID=false disableTS=false session=SpySession@31137799[tx=false ack=AUTO txid=null RUNNING connection=Connection@29203625[token=ConnectionToken:ID:3/e754023924168169359317b4cb79f038 rcvstate=STOPPED]]]2006-12-15 13:41:55,883 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/sample].[jsp]] Servlet.service() for servlet jsp threw exceptionjavax.jms.InvalidDestinationException: Destination is not an instance of SpyDestination JBossQueue[testQueue] at org.jboss.mq.SpyMessageProducer.send(SpyMessageProducer.java:225) at org.jboss.mq.SpyMessageProducer.send(SpyMessageProducer.java:199) at org.apache.jsp.UploadSessionBean_jsp._jspService(org.apache.jsp.UploadSessionBean_jsp:83) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994148#3994148
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994148
19 years, 4 months