[jboss-user] [JBossWS] - Re: Newlines/spaces in SOAPMessage
Hi Alessio Thanks for the reply. No I create the SOAP message by getting an instance of the SOAP MessageFactory and then adding elements to the body. When i use the SoapMessage writeTo method to a file, it contains no CRLF pairs, but when I intercept the message using WireShark, I see the CRLF's. So it seems as if the SOAPConnection call method or underlying transport is adding the CRLF's Using the exact same code in GlassFish, the CRLF's are never added and it works fine, but I do not want to use GlassFish Regards Alfred View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243955#4243955 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243955 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Using SUN's SAAJ implementation
Hi I have been struggling to get a JAX-RPC client to work on JBoss. The reason seems to be due to the CRLF characters inserted between the elements of the SOAP request. This does not happen when running outside of JBoss using SUN's SAAJ. Also when I deploy my EAR file on Glassfish, it works properly, but not on JBoss 5.1.0. And I really do not want to use Glassfish as we use JBoss for everything else. Can I force my application to use SUN's SAAJ instead of JBoss' ? Regards Alfred View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4242100#4242100 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4242100 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Newlines/spaces in SOAPMessage
Using WireShark to intercept the transmission, I found that the JBoss SOAPElement.setvalue implementation seems to add a carriage return linefeed combination to my text which causes the Web Service to crash: 37 32 0d 0a 3c 65 6e 76 3a 45 6e 76 65 6c 6f 70 72..env:Envelop | 0010 65 20 78 6d 6c 6e 73 3a 65 6e 76 3d 27 68 74 74 e xmlns:env='htt | 0020 70 3a 2f 2f 73 63 68 65 6d 61 73 2e 78 6d 6c 73 p://schemas.xmls | 0030 6f 61 70 2e 6f 72 67 2f 73 6f 61 70 2f 65 6e 76 oap.org/soap/env | 0040 65 6c 6f 70 65 2f 27 3e 3c 65 6e 76 3a 42 6f 64 elope/'env:Bod | 0050 79 3e 3c 73 65 61 72 63 68 44 6f 63 44 61 74 61 ysearchDocData | 0060 52 65 71 75 65 73 74 3e 3c 66 5f 6e 72 3e 74 65 Requestf_nrte | 0070 73 74 5f 66 6e 6f 0d 0a st_fno.. When I use Sun's SAAJ this doesnot happen Any ideas? Regards Alfred View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4241399#4241399 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4241399 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Newlines/spaces in SOAPMessage
Hi guys I have code that works when I call it from a stand-alone application, but when I call it from within JBoss, I get a NPE from the Web service I am calling. The problem seems to be newline or space characters between the XML tags of the SOAP message. When I use the stand-alone code I get the following output from SOAPMessage().writeTo(System.out) SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;SOAP-ENV:BodysearchDocDataRequestf_nrtest_fno/f_nruseridcnt_usr/useriditemscheque format=tiffaccount_nr62001869538/account_nr/cheque/items/searchDocDataRequest/SOAP-ENV:Body/SOAP-ENV:Envelope | From within JBoss I get: | 13:41:03,491 INFO [STDOUT] env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'env:BodysearchDocDataRequestf_nrtest_fno | 13:41:03,491 INFO [STDOUT] /f_nr | 13:41:03,491 INFO [STDOUT] useridcnt_usr | 13:41:03,491 INFO [STDOUT] /userid | 13:41:03,507 INFO [STDOUT] itemscheque format='tiff'account_nr62001869538 | 13:41:03,507 INFO [STDOUT] /account_nr | 13:41:03,507 INFO [STDOUT] /cheque | 13:41:03,507 INFO [STDOUT] /items | 13:41:03,523 INFO [STDOUT] /searchDocDataRequest | 13:41:03,523 INFO [STDOUT] /env:Body/env:Envelope The only difference being the prefix and the newline/space. Does anybody have any idea on how I can remove this? Reards Alfred View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4241183#4241183 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4241183 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Notification when Topic is destoyed
Hi We are using JBM 1.4 SP3 and our applications uses a topic to send messages. We look up the connection factory, create a connection and set an ExceptionListener on the connection. My problem is that an exception is only fired when JBM is shut down and not when the Topic is destroyed. If the Topic is destroyed and recreated, the clients never knows about this and never resubscribes. Is there any way we could also get the exception to fire when the Topic is destroyed? Regards Alfred View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4212897#4212897 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4212897 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - JBM behind a firewall
Hi guys We are running JBM behind a firewall and need to know which ports to open. We currently have the following open: - 1099 - 1098 - 3517 - 4457 - 4460 Are these ok and will JBM always use these. We did a netstat on a test machine to look at the incoming connections to find these. And secondly, can we specify a range of ports for JBM to use? Regards Alfred View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4144450#4144450 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4144450 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBoss Messaging via .Net
Thanks Tim I'm looking forward to the first release of JBM 2 Regards Alfred View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4126437#4126437 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4126437 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - JBoss Messaging via .Net
Hi We have client running .Net applications that need to connect to our queues on JBoss Messaging. Is this at all possible, and if so how do they go about doing this? Regards Alfred View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4124742#4124742 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4124742 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: XMBean and SubscriptionList
Sorry, this is my xml subscription-list /subscription-list View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4102806#4102806 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4102806 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: XMBean and SubscriptionList
Last try... attribute name=SubscriptionList | subscription-list | mbean name=FNB.Commercial.BFLo:service=FileEventListenerService/ | /subscription-list | /attribute View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4102808#4102808 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4102808 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: XMBean and SubscriptionList
Hi Dimitris Here is the rest of my config - I only showed the notifications. I am using XMBeans because it seemed to be the most convenient way of adding method/parameter names and descriptions in the JMX console. I tried normal MBeans, dynamic and model mbeans as well. I like XMBeans the best. Should I not use them? ?xml version='1.0' encoding='UTF-8' ? | !DOCTYPE server PUBLIC -//JBoss//DTD MBean Service 4.2//EN http://www.jboss.org/j2ee/dtd/jboss-service_4_2.dtd; | | server | mbean code=za.co.fnb.bflo.eventlistener.FileEventListenerService name=FNB.Commercial.BFLo:service=FileEventListenerService xmbean-dd=META-INF/FileEventListenerService.xml | dependsjboss.ejb3:service=EJB3Deployer/depends | attribute name=ConfigurationFilenameFileEventListenerService.xml/attribute | /mbean | mbean code=za.co.fnb.bflo.dispatcher.JMSEventDispatcherService name=FNB.Commercial.BFLo:service=JMSEventDispatcherService xmbean-dd=META-INF/JMSEventDispatcherService.xml | dependsjboss.ejb3:service=EJB3Deployer/depends | dependsFNB.Commercial.BFLo:service=FileEventListenerService/depends | attribute name=ConfigurationFilenameJMSEventDispatcherService.xml/attribute | attribute name=SubscriptionList | subscription-list | mbean name=FNB.Commercial.BFLo:service=FileEventListenerService/ | /subscription-list | /attribute | /mbean | /server | | and | | ?xml version=1.0 encoding=UTF-8? | | !DOCTYPE mbean PUBLIC -//JBoss//DTD JBOSS XMBEAN 1.2//EN http://www.jboss.org/j2ee/dtd/jboss_xmbean_1_2.dtd; | | mbean | descriptionFile listener event service/description | classza.co.fnb.bflo.dispatcher.JMSEventDispatcherService/class | | constructor | descriptionDefault constructor/description | nameJMSEventDispatcherService/name | /constructor | | attribute access='read-write' getMethod='getConfigurationFilename' setMethod='setConfigurationFilename' | descriptionMBean Attribute./description | nameConfigurationFilename/name | typejava.lang.String/type | /attribute | | operation | namestart/name | /operation | | operation | namestop/name | /operation | | /mbean View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4103021#4103021 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4103021 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: XMBean and SubscriptionList
I found my mistake, thanks for your patience. The code should be attribute access='read-write' getMethod='getSubscriptionList' setMethod='setSubscriptionList' | descriptionMBean Attribute./description | nameSubscriptionList/name | typeorg.w3c.dom.Element/type | /attribute View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4103084#4103084 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4103084 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: XMBean and SubscriptionList
Thanks - I did try that but I couldn't find an example of it, this is what I tried and it didn't work attribute access='read-write' getMethod='getSubscriptionList' setMethod='setSubscriptionList' | descriptionMBean Attribute./description | nameSubscriptionList/name | typejava.util.List/type | /attribute | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4103076#4103076 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4103076 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - XMBean and SubscriptionList
Hi I have changed my mbeans to xmbeans by having the class extend xmbean. But now my in my *-service.xml the SubscriptionList attribute fails with the following: DeploymentException: No Attribute found with name: SubscriptionList this is my xml subscription-list /subscription-list Is this even the right way to add subscriptions for XMBeans? I would actually like the XMBean to subscribe to global jmx events and filter them rather than subscribing to specific MBeans Regards Alfred View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4102793#4102793 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4102793 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Initializing parameters in a webservice
Hi guys I want to be able to add init-params or something similar to my deployment descriptor and access it from my webservice (through injection if possible) If I add the following to my web.xml: init-param param-namedispatcherName/param-name param-valueFNB.Commercial.BFLo:service=JMSDataDispatcherService/param-value /init-param How can I access them ein my web service? I use annotated webservices. Regards Alfred View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4101674#4101674 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101674 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: NoSuchMethodError exception on webservice invocation
Hi guys I took the exact same web service and deployed it in my web module and now it works. What could be the reason that it does not work when deploying in the ejb module? Regards Alfred View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4101234#4101234 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101234 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: NoSuchMethodError exception on webservice invocation
This is my request POST http://10.204.72.87:8080/BFlo-BFlo-ejb/DownloadRequest HTTP/1.1 SOAPAction: Accept: text/xml, multipart/related, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Content-Type: text/xml;charset=utf-8 User-Agent: hudson-jaxws-2.1.2-nightly-push-32 Host: 10.204.72.87:8080 Proxy-Connection: keep-alive Content-Length: 222 Proxy-authorization: NTLM TlRMTVNzGjD4XNGB3alJXgaQ== ?xml version=1.0 ? S:Envelope xmlns:S=http://schemas.xmlsoap.org/soap/envelope/; S:Body ns2:requestDataQueue xmlns:ns2=http://webservice.fnb.co.za/; File123 /ns2:requestDataQueue /S:Body /S:Envelope View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4101181#4101181 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101181 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: NoSuchMethodError exception on webservice invocation
Hi Rukus My WebService is: @WebService() @Stateless() public class DownloadRequest { @WebMethod(operationName = requestDataQueue) public String requestDataQueue(@WebParam(name = fileID) String fileID) { return Test; } } I have no web.xml as the webservice is in my ejb module. The client is generated by Netbeans from my WSDL so I am not sure exactly what to send you but this is the calling code: try { testwebservice.DownloadRequestService service = new testwebservice.DownloadRequestService(); testwebservice.DownloadRequest port = service.getDownloadRequestPort(); java.lang.String fileID = File123; java.lang.String result = port.requestDataQueue(fileID); System.out.println(Result = +result); } catch (Exception ex) { ex.printStackTrace(); } This is the most basic web service I am testing to see if I could get it to run View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4101175#4101175 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101175 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: JMX notifications
Hi Dimitris I removed the @Service and @Management annotations and this solved the problem. Regards Alfred View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4101149#4101149 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101149 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - NoSuchMethodError exception on webservice invocation
Hi guys Im using JBoss 4.2.2GA and JBossWS 2.0.1GA I exposed a simple method as a web service but when I call it from the client I get the following exception: java.lang.NoSuchMethodError: org.jboss.ejb3.stateless.StatelessBeanContext.getWebServiceContextProperty()Lorg/jboss/injection/lang/reflect/BeanProperty; at org.jboss.wsf.container.jboss42.InvocationHandlerEJB3$CallbackImpl.attached(InvocationHandlerEJB3.java:129) at org.jboss.ejb3.EJBContainerInvocation.setBeanContext(EJBContainerInvocation.java:77) at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:56) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77) at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.wsf.container.jboss42.InvocationHandlerEJB3.invoke(InvocationHandlerEJB3.java:103) at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:220) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122) at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) at java.lang.Thread.run(Thread.java:619) Does anyone have any ideas? Regards Alfred View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4101155#4101155 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101155 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - JMX notifications
I am having difficulty in getting notifications to work I have 2 MBeans and one must dispatch and the other receive notifications. The dispatcher extends ServiceMBeanSupport (and also uses the @Service annotation). It send by creating a notification and sending it with: Notification notification = new Notification(BFLO_EVENT, this, getNextNotificationSequenceNumber(), TEST MESSAGE); sendNotification(notification); The receiver extends ListenerServiceMBeanSupport and overrides handleNotification2. Now in the startService method I try to subscribe to notifications by using various versions of subscribe(), but the handleNotification2 method is never called. (I am trying to subscribe dynamically without config files) Can someone please show me where im going wrong? Regards Alfred View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4099963#4099963 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099963 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - JBM 1.4.0GA freezes when reading queue
Hi guys I am using JBM 1.4.0GA on JBoss AS 4.2.1GA. I have Siebel clients connecting to one of the default queues (A) remotely. They are able to send data to the queue, but when they try to read it they don't get any messages and on my side I get the following exception: 10:30:56,051 WARN [BisocketClientInvoker] Unable to send ping: shutting down PingTimerTask java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:115) at org.jboss.remoting.transport.bisocket.BisocketClientInvoker$PingTimerTask.run(BisocketClientInvoker.java:512) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) 10:31:20,424 WARN [SimpleConnectionManager] ConnectionManager[149494e] cannot look up remoting session ID a5i8o-szggtk-f7x0akbg-1-f7x0aktp-4 10:31:20,424 WARN [SimpleConnectionManager] A problem has been detected with the connection to remote client a5i8o-szggtk-f7x0akbg-1-f7x0aktp-4, jmsClientID=null. It is possible the client has exited without closing its connection(s) or there is a network problem. All connection resources corresponding to that client process will now be removed. Any ideas what might be causing this? Regards Alfred View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4096445#4096445 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4096445 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBM 1.4.0GA freezes when reading queue
Hi Tim I did distribute the patched jar to the client and it is first in the classpath. BUT in a late-night cut-and-paste accident I copied the jar to the default instance and not the messaging instance. After doing that the problem was solved. Thanks for your help Alfred View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4096515#4096515 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4096515 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - 2.0.1 Installation issue
Hi guys The ws 2.0.1GA install fails when using the deploy-jboss42-endorsed target as it does not contain stacklibs=${lib.dir} Regards Alfred View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4077178#4077178 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4077178 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Connecting to Secured WebService
Hi I have a piece of code that connects to secured web service using certificates. The problem is that when I use it within an application in JBoss it doesn't work anymore. Do I have to add the certificates in a different way? My code is as follows: System.setProperty(javax.net.debug,all); System.setProperty(java.security.debug,all); System.setProperty(javax.net.ssl.keyStore, keystoreFilePath); System.setProperty(javax.net.ssl.keyStorePassword, xxx); System.setProperty(javax.net.ssl.keyStoreType, JKS); System.setProperty(javax.net.ssl.trustStore, truststoreFilePath); System.setProperty(javax.net.ssl.trustStorePassword, xxx); System.setProperty(javax.net.ssl.trustStoreType, JKS); System.setProperty(java.protocol.handler.pkgs,com.sun.net.ssl.internal.www.protocol); Security.addProvider( new com.sun.net.ssl.internal.ssl.Provider() ); SOAPConnection soapConnection = SOAPConnectionFactory.newInstance().createConnection(); SOAPMessage responseMessage = soapConnection.call(requestMessage, url); Regards Alfred View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4047683#4047683 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4047683 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Exception when getting connection from ConnectionPool
Hi guys. I am using JBoss 4.0.5 GA, and DB2 JDBC driver com.ibm.db2.jcc.Driver to persist data ia a DB (DB2 ver 8.1). Unfortunately the legacy code gets a connection (and closes it in a finally block) for each record that is persisted. This works for a few thousand records, but when I start persisting tens of thousands of records I get the following exception. Changing the application to use fewer connections is not really an option at this stage but I feel it shouldn't be necessary as the ConnectionPool should be able to handle this gracefully. [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (com.ibm.db2.jcc.a.DisconnectException: A communication error has been detected. Commun ication protocol being used: {0}. Communication API being used: {1}. Location where the error was detected: {2}. Communication function detecting the error: {3}. Protocol specificerror codes(s) {4}, {5}, {6}. TCP/IP SOCKETS Reply.fill() InputStream.read() insufficient data * 0) Regards Alfred View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4019178#4019178 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4019178 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Messaging works in stand-alone client but not in Enterpr
Hi Tim Thanks for the advice. I actually did try http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossMessagingUser_Enabling_access_to_remote_JBoss_Messaging_instance but I couldn't get it to work. Just one thing though, if replacing the jars is not recommended why is it listed as the work-around for JBMESSAGING-682? Am I right in thinking that JBoss 4.2 will not have the same issues with this? Regards Alfred View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4012073#4012073 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4012073 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Messaging works in stand-alone client but not in Enterpr
Tim Thanks for your help. I will have a look at scoping the ear again now I have more info. Regards Alfred View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4012095#4012095 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4012095 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Messaging works in stand-alone client but not in Enterprise
Hi guys I use JBoss 4.0.5GA and Messaging 1.0.1.SP2. I have eventually got a stand-alone app to work with the JMS server. All the JMS stuff was put in a JAR file. The problem is now when I include my JMS JAR into an enterpise application it fails again with Failed to config client side AOP. My enterprise app is deployed on the same JBoss instance that Messaging is running on. I have now read quite a few conflicting stuff, so can someone please make the following clear to me: 1) Do I need to include jboss-messaging-client.jar or not. 2) Do I need to include the Messaging jars e.g. jboss-aop.jar or not. 3) Do I need to create a scoped EAR file for my enterprise app. Thanks for all your help. Regards Alfred View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4011271#4011271 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4011271 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Messaging works in stand-alone client but not in Enterpr
Hi all I found the bug. It is related to a bug in Messaging 1.0.1SP2, JBMESSAGING-682: The cause is version of jboss-remoting.jar in server/messaging/lib and server/messaging/deploy are different. The ant script that comes with JBoss Messaging does not overwrite jboss-remoting.jar in server/messaging/lib. After manually replacing the file, everything worked. Regards Alfred View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4011732#4011732 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4011732 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - How to get the number of subscribers to a queue
Hi Can anyone please tell me how to get the number of subscribers subscribed to a queue. With MQ I used to interrogate the SubscribersCount property. Regards Alfred Thomas View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4003796#4003796 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4003796 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: How to get the number of subscribers to a queue
Thanks Tim That is very bad news for me. Any idea why it was left out? Regards Alfred View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4004144#4004144 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4004144 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Messaging 1.0.1SP2 problems
Hi Ovidiu Thanks for the response. Ok I started from scratch and this is what I did. - Uninstalled JBoss and deleted the JBoss directory. - Made sure that there isn't any jboss-messaging-client.jar lying around. - Installed JBoss 4.0.5 GA. - Installed JBM 1.0.1 SP2 and successfully ran the queue example. - Included the jboss-messaging-client.jar that is in the JBM 1.0.1 directory (After unpacking the JBM zip) in my application. When I run my application I still get Failed to config client side AOP on my client side and Can not read data for version 6. Supported versions: 1,2 on the server side. I am stuck with this, any ideas where I'm going wrong? Regards Alfred View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4003680#4003680 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4003680 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user