[jboss-user] [JNDI/Naming/Network] - Re: jndi connecting problem
sorry, I compiled jboss-5.0.0-Beta2 and used it as server, but at client side, I just installed jboss-5.0.0-Beta3. So that caused the problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133180#4133180 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133180 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: jndi connecting problem
I tried to use several different method to access JNDI from remote machine, and always get problem on server. The following one is what I get with JNDI over Http. The InitialContext can be obtained, but look up failed. if I put jbossall-client.jar on classpath the first stack trace is obtained, and if I put jbosssx-client.jar, jnp-client.jar, jboss-sercurity-spi.jar, jboss-client.jar on classpath the second stack trace is otained. Both from server side. So this must be an classpath problem. //=== 2008-02-28 21:18:13,952 DEBUG [org.jboss.invocation.http.servlet.InvokerServlet] Invoke threw exception java.io.InvalidClassException: org.jboss.security.plugins.JBossSecurityContext; class invalid for deserialization at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:571) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) at org.jboss.invocation.MarshalledInvocation.readExternal(MarshalledInvocation.java:590) at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1755) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1717) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) at org.jboss.invocation.http.servlet.InvokerServlet.processRequest(InvokerServlet.java:137) at org.jboss.invocation.http.servlet.InvokerServlet.doPost(InvokerServlet.java:224) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) 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:231) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:86) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:624) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:595) //== 2008-02-28 21:38:12,884 DEBUG [org.jboss.invocation.http.servlet.InvokerServlet] Invoke threw exception java.lang.ArrayIndexOutOfBoundsException: 20 at org.jboss.invocation.InvocationKey.readResolve(InvocationKey.java:170) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1033) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1728) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) at org.jboss.invocation.MarshalledInvocation.readExternal(MarshalledInvocation.java:589) at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1755) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1717) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) at java.io.ObjectInputStream.re
[jboss-user] [JNDI/Naming/Network] - Re: jndi connecting problem
I opened server firewall port 8083,1099,1098 and some more. I used ethereal to capture the socket syn packets. but I find my client freezed! I've no idea. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129895#4129895 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129895 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: jndi connecting problem
The first one is RMI codebase problem, but I haven't solved it. second one is OK now, I combined the two XPath into one, with "or". View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129885#4129885 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129885 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Illegal XPath expression?
after checking source code, org.jboss.ws.extensions.eventing.mgmt.SubscriptionManager supports one single expression. so I combined them into one using "or". filter.getContent().add("/ns3:ticketsOperationResponse/ns2:ticketsOut/totalPrice>0 or string-length(/ns3:orderOperationResponse/ns2:orderOut/clientID/text())>0"); View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129881#4129881 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129881 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Illegal XPath expression?
when suppling XPath expressions to subscription filter, following org.jboss.test.ws.jaxws.wseventing.EventingSupport sample code, some legal expressions are not allowed? I don't understand. FilterType filter = new FilterType(); filter.setDialect(EventingConstants.getDialectXPath().toString()); filter.getContent().add("/ns3:ticketsOperationResponse/ns2:ticketsOut/totalPrice>0"); filter.getContent().add("string-length(/ns3:orderOperationResponse/ns2:orderOut/clientID)>0"); return filter; View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129863#4129863 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129863 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: jndi connecting problem
No, client doesn't have org.jnp.server.* package. this class should be downloaded from server dynamically during invocation. I bind jboss to 0.0.0.0 interface, the servlet problem seems solved. but I get another XPath problem. I can evaluate xpath standalone, but can't in the container enviroment. some syntax is not allowed. this one is illegal. string-length(/ns3:orderOperationResponse/ns2:orderOut/clientID)>0 this one is legal. /ns3:ticketsOperationResponse/ns2:ticketsOut/totalPrice>0 strange. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129862#4129862 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129862 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - jndi connecting problem
I bind jboss to one network interface with ./run.sh -b x.x.x.x command. When run on the local machine, client using jndi connects correctly to the configured address, and finishes successfully. but on remote machine, exception is thrown. more over, if the code is wrapped inside servlet, though jndi context is correct, the code always connect to localhost. first one of the following stack trace is shown on remote machine, the second one is inside container. // {java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.provider.url=192.168.1.101, java.naming.factory.url.pkgs=org.jnp.interfaces:org.jboss.naming} javax.naming.CommunicationException: Could not obtain connection to any of these urls: 192.168.1.101 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server 192.168.1.101:1099 [Root exception is java.lang.ClassNotFoundException: org.jnp.server.NamingServer_Stub]] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1601) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:636) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629) at javax.naming.InitialContext.lookup(Unknown Source) at sunspider.jaxws20.tutorial.service.impl.eventing.AnnoucementEntity.(AnnoucementEntity.java:52) at sunspider.jaxws20.tutorial.service.impl.eventing.AnnoucementEntity.main(AnnoucementEntity.java:121) Caused by: javax.naming.CommunicationException: Failed to connect to server 192.168.1.101:1099 [Root exception is java.lang.ClassNotFoundException: org.jnp.server.NamingServer_Stub] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:276) at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1572) ... 5 more Caused by: java.lang.ClassNotFoundException: org.jnp.server.NamingServer_Stub at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at sun.rmi.server.LoaderHandler.loadClass(Unknown Source) at sun.rmi.server.LoaderHandler.loadClass(Unknown Source) at java.rmi.server.RMIClassLoader$2.loadClass(Unknown Source) at java.rmi.server.RMIClassLoader.loadClass(Unknown Source) at sun.rmi.server.MarshalInputStream.resolveClass(Unknown Source) at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.rmi.MarshalledObject.get(Unknown Source) at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:259) ... 6 more //=== 2008-02-16 19:45:09,834 INFO [STDOUT] thread start 2008-02-16 19:45:09,850 INFO [STDOUT] {java.naming.provider.url=192.168.1.101, java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces:org.jboss.naming:org.jnp.interfaces:org.jnp.interfaces:org.jboss.naming:org.jnp.interfaces:org.jboss.naming} 2008-02-16 19:45:15,020 DEBUG [org.jnp.interfaces.NamingContext] Failed to connect to localhost:1099 javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:272) at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1423) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:597) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:590) at javax.naming.InitialContext.lookup(InitialContext.java:351) at org.jboss.ws.extensions.eventing.mgmt.DispatcherDelegate.getServer(DispatcherDelegate.java:84) at org.jboss.ws.extensions.eventing.mgmt.DispatcherDelegate.getSubscriptionManager(DispatcherDelegate.java:65) at org.jboss.ws.extensions.eventing.mgmt.DispatcherDelegate.dispatch(DispatcherDelegate.java:44) at sunspider.jaxws20.tutorial.service.impl.eventing.AnnoucementEntity.run(AnnoucementEntity.java:132) Caused by: javax.naming.Servi
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Steps for building JBoss from source inside eclipse
You also need to pull out build and tools module, they are needed for compilation View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095008#4095008 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095008 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Steps for building JBoss from source inside eclipse
Assumptions: Target is JBossAS05_Beta2 Prerequisite: a) Download jboss-5.0.0.Beta2-src.tar.gz, since you need third party libs. b) Have JBossIDE 2.0 installed. Now start: 1.From Eclipse menu choose New>Project>Java Project>Create Project From Existing Source. Here you have to use ?thirdparty? as project name, case sensitive. Browse to thirdparty directory under the unpacked jboss-5.0.0.Beta2 parent directory and choose it for the existing source. Finish it, and you will get a project named thirdparty. 2.Create an new workspace for eclipse. Then ln -s ?path to jboss-5.0.0.Beta2 thirdparty directory?. Then you' ll get an link named ?thirdparty?to the directory where all dependencies lived. 3.Add a new SVN repository ?http://anonsvn.jboss.org/repos/jbossas/tags/JBoss_5_0_0_Beta2/? to eclipse. (SVN plugin for eclipse can be found through the old ?HowToBuildJBoss? topic on jboss wiki). Pull out all sub-modules you need to examine. Check the project module dependencies, and pull out all those depended modules too. 4.Change to those newly pulled out projects under the workspace. And build them using command line ant separately. Pay attention to project dependencies showed inside eclipse Project>Properties>Java Build Path>Project page. Depended project should be build first. Finally refresh projects inside eclipse, and create a new project set, including all your pulled out project. Then build the project set. 5.Now you can play with your source code, and enjoys eclipse's short cut key! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095007#4095007 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095007 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Steps for building JBoss from source inside eclipse
It took me rather a while to build jboss's source. since the eclipse.psf in build directory are the same for all tags under svn repository. I have to do it in a manual way. And the orignal JBoss wiki for how to setup jboss source for eclipse doesn't make all things clear, so I wrote a HOW TO for begginers. May be I'm not getting it perfect, so this document need reviewing. Thanks to everybody. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095006#4095006 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095006 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: WSTools Is Generating Invalid Java Source
I can use wstools to generate jaxrpc-mapping and webservices.xml, but the inverse is not true. I can't use the wstool to generate java stubs from wsdl, even if the wsdl is produced by wstools itself. I used following instead. This tool even generated cactus testcase for me. It comes with axis. and The last line of WSDL,soap:address location=' ' should be changed to actual endpoint address. I am also a new learner, may be so sorry for misleading. | | | | | | http://vondart.org/webService/rpcstyle"; package="webService.generated"/> | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967431#3967431 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967431 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user