I have the same issue described by the original post (which doesn't seem to
have garnered any replies)
Here is a complete program which exhibits the error:
| public class EJB30Client {
|
| public static void main(String[] args) throws Exception {
|
|
| InitialContext ctx = getInitialContext();
| WSDLMgrRemote mgr =
(WSDLMgrRemote)ctx.lookup(WSDLMgrRemote.class.getName());
| }
|
| public static InitialContext getInitialContext() throws Exception {
| Hashtable props = getInitialContextProperties();
| return new InitialContext(props);
| }
|
| private static Hashtable getInitialContextProperties() {
| Hashtable<String,String> props = new Hashtable<String,String>();
| props.put("java.naming.factory.initial",
| "org.jnp.interfaces.NamingContextFactory");
| props.put("java.naming.factory.url.pkgs",
| "org.jboss.naming:org.jnp.interfaces");
| props.put("java.naming.provider.url",
| "jnp://localhost:1100");
| return props;
| }
| }
|
The class should be resolvable in the AS; here are some of the startup messages:
| 07:27:45,942 INFO [ProxyDeployer] no declared remote bindings for :
com.kenai.examine.wsdl.WSDLMgr
| 07:27:45,942 INFO [ProxyDeployer] there is remote interfaces for
com.kenai.examine.wsdl.WSDLMgr
| 07:27:45,942 INFO [ProxyDeployer] default remote binding has jndiName of
com.kenai.examine.wsdl.WSDLMgrRemote
|
Also, one of the debugging snippets that was given in the FAQ was to do a
context.listBindings() -- that fails with the same error.
The failure is
| Exception in thread "main" javax.naming.CommunicationException: Could not
obtain connection to any of these urls: localhost:1100 and discovery failed
with error: javax.naming.CommunicationException: Failed to retrieve stub from
server 10.1.1.79:1100 [Root exception is java.io.StreamCorruptedException:
unexpected block data] [Root exception is javax.naming.CommunicationException:
Failed to retrieve stub from server localhost:1100 [Root exception is
java.io.StreamCorruptedException: unexpected block data]]
| at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1399)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:579)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
| at javax.naming.InitialContext.lookup(Unknown Source)
| at com.kenai.examine.wsdl.EJB30Client.main(EJB30Client.java:7)
|
Any pointers appreciated . . .
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3904901#3904901
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904901
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user