[JBossWS] - Re: jbossws / problem in generating client. NoSuchMethod
by MmarcoM
nope.. i aml ost!
even using onlyneeded jar files, plus the updated wsdlj4 from this link
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3968854
doesnot work
and that sounds more strange... i have done a javap on the missing class's method, and the method shows just fine
| Compiled from "WSDLReaderImpl.java"
| public class com.ibm.wsdl.xml.WSDLReaderImpl extends java.lang.Object implements javax.wsdl.xml.WSDLReader{
| protected boolean verbose;
| protected boolean importDocuments;
| protected javax.wsdl.extensions.ExtensionRegistry extReg;
| protected java.lang.String factoryImplName;
| protected javax.wsdl.xml.WSDLLocator loc;
| protected javax.wsdl.factory.WSDLFactory factory;
| protected org.xml.sax.EntityResolver entityResolver;
| protected java.util.Map allSchemas;
| static java.lang.Class class$javax$wsdl$Definition;
| static java.lang.Class class$javax$wsdl$Types;
| static java.lang.Class class$javax$wsdl$Import;
| static java.lang.Class class$javax$wsdl$Binding;
| static java.lang.Class class$javax$wsdl$BindingOperation;
| static java.lang.Class class$javax$wsdl$BindingInput;
| static java.lang.Class class$javax$wsdl$BindingOutput;
| static java.lang.Class class$javax$wsdl$BindingFault;
| static java.lang.Class class$javax$wsdl$Message;
| static java.lang.Class class$javax$wsdl$Part;
| static java.lang.Class class$javax$wsdl$PortType;
| static java.lang.Class class$javax$wsdl$Operation;
| static java.lang.Class class$javax$wsdl$Service;
| static java.lang.Class class$javax$wsdl$Port;
| static java.lang.Class class$javax$wsdl$Input;
| static java.lang.Class class$javax$wsdl$Output;
| static java.lang.Class class$javax$wsdl$Fault;
| public com.ibm.wsdl.xml.WSDLReaderImpl();
| public void setFeature(java.lang.String, boolean) throws java.lang.IllegalArgumentException;
| public boolean getFeature(java.lang.String) throws java.lang.IllegalArgumentException;
| public void setExtensionRegistry(javax.wsdl.extensions.ExtensionRegistry);
| public javax.wsdl.extensions.ExtensionRegistry getExtensionRegistry();
| protected javax.wsdl.factory.WSDLFactory getWSDLFactory() throws javax.wsdl.WSDLException;
| public void setFactoryImplName(java.lang.String) throws java.lang.UnsupportedOperationException;
| public java.lang.String getFactoryImplName();
| protected javax.wsdl.Definition parseDefinitions(java.lang.String, org.w3c.dom.Element, java.util.Map) throws javax.wsdl.WSDLException;
| protected javax.wsdl.Import parseImport(org.w3c.dom.Element, javax.wsdl.Definition, java.util.Map) throws javax.wsdl.WSDLException;
| protected javax.wsdl.Types parseTypes(org.w3c.dom.Element, javax.wsdl.Definition) throws javax.wsdl.WSDLException;
| protected javax.wsdl.extensions.ExtensibilityElement parseSchema(java.lang.Class, org.w3c.dom.Element, javax.wsdl.Definition) throws javax.wsdl.WSDLException;
| protected javax.wsdl.extensions.ExtensibilityElement parseSchema(java.lang.Class, org.w3c.dom.Element, javax.wsdl.Definition, javax.wsdl.extensions.ExtensionRegistry) throws javax.wsdl.WSDLException;
| protected javax.wsdl.Binding parseBinding(org.w3c.dom.Element, javax.wsdl.Definition) throws javax.wsdl.WSDLException;
| protected javax.wsdl.BindingOperation parseBindingOperation(org.w3c.dom.Element, javax.wsdl.PortType, javax.wsdl.Definition) throws javax.wsdl.WSDLException;
| protected javax.wsdl.BindingInput parseBindingInput(org.w3c.dom.Element, javax.wsdl.Definition) throws javax.wsdl.WSDLException;
| protected javax.wsdl.BindingOutput parseBindingOutput(org.w3c.dom.Element, javax.wsdl.Definition) throws javax.wsdl.WSDLException;
| protected javax.wsdl.BindingFault parseBindingFault(org.w3c.dom.Element, javax.wsdl.Definition) throws javax.wsdl.WSDLException;
| protected javax.wsdl.Message parseMessage(org.w3c.dom.Element, javax.wsdl.Definition) throws javax.wsdl.WSDLException;
| protected javax.wsdl.Part parsePart(org.w3c.dom.Element, javax.wsdl.Definition) throws javax.wsdl.WSDLException;
| protected void parseExtensibilityAttributes(org.w3c.dom.Element, java.lang.Class, javax.wsdl.extensions.AttributeExtensible, javax.wsdl.Definition) throws javax.wsdl.WSDLException;
| protected java.lang.Object parseExtensibilityAttribute(org.w3c.dom.Element, int, java.lang.String, javax.wsdl.Definition) throws javax.wsdl.WSDLException;
| protected javax.wsdl.PortType parsePortType(org.w3c.dom.Element, javax.wsdl.Definition) throws javax.wsdl.WSDLException;
| protected javax.wsdl.Operation parseOperation(org.w3c.dom.Element, javax.wsdl.PortType, javax.wsdl.Definition) throws javax.wsdl.WSDLException;
| protected javax.wsdl.Service parseService(org.w3c.dom.Element, javax.wsdl.Definition) throws javax.wsdl.WSDLException;
| protected javax.wsdl.Port parsePort(org.w3c.dom.Element, javax.wsdl.Definition) throws javax.wsdl.WSDLException;
| protected javax.wsdl.extensions.ExtensibilityElement parseExtensibilityElement(java.lang.Class, org.w3c.dom.Element, javax.wsdl.Definition) throws javax.wsdl.WSDLException;
| protected javax.wsdl.Input parseInput(org.w3c.dom.Element, javax.wsdl.Definition) throws javax.wsdl.WSDLException;
| protected javax.wsdl.Output parseOutput(org.w3c.dom.Element, javax.wsdl.Definition) throws javax.wsdl.WSDLException;
| protected javax.wsdl.Fault parseFault(org.w3c.dom.Element, javax.wsdl.Definition) throws javax.wsdl.WSDLException;
| public javax.wsdl.Definition readWSDL(java.lang.String) throws javax.wsdl.WSDLException;
| public javax.wsdl.Definition readWSDL(java.lang.String, java.lang.String) throws javax.wsdl.WSDLException;
| public javax.wsdl.Definition readWSDL(java.lang.String, org.w3c.dom.Element) throws javax.wsdl.WSDLException;
| protected javax.wsdl.Definition readWSDL(java.lang.String, org.w3c.dom.Element, java.util.Map) throws javax.wsdl.WSDLException;
| public javax.wsdl.Definition readWSDL(java.lang.String, org.w3c.dom.Document) throws javax.wsdl.WSDLException;
| public javax.wsdl.Definition readWSDL(java.lang.String, org.xml.sax.InputSource) throws javax.wsdl.WSDLException;
| public javax.wsdl.Definition readWSDL(javax.wsdl.xml.WSDLLocator) throws javax.wsdl.WSDLException;
| public org.xml.sax.EntityResolver getEntityResolver();
| public void setEntityResolver(org.xml.sax.EntityResolver);
| static java.lang.Class class$(java.lang.String);
| static {};
| }
|
|
what am i still doing wrong?
regards
marco
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970161#3970161
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970161
19 years, 7 months
[JNDI/Naming/Network] - Re: Getting JNDI context fails
by SchlauFuchs
Ok, here comes the stack trace:
07.09.2006 19:55:19 de.hackemesser.frieshouse.client.Manager getContext
| INFO: Creating jndi context
| javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.2; nested exception is:
| java.net.ConnectException: Connection refused: connect]
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
| at javax.naming.InitialContext.lookup(Unknown Source)
| at de.hackemesser.frieshouse.client.Manager.getCore(Manager.java:41)
| at de.hackemesser.frieshouse.client.ManagerView.getStocklevel(ManagerView.java:420)
| at de.hackemesser.frieshouse.client.ManagerView.getStockLevelDisplay(ManagerView.java:154)
| at de.hackemesser.frieshouse.client.ManagerView.getMenu(ManagerView.java:144)
| at de.hackemesser.frieshouse.client.ManagerView.initialize(ManagerView.java:117)
| at de.hackemesser.frieshouse.client.ManagerView.<init>(ManagerView.java:106)
| at de.hackemesser.frieshouse.client.Manager.main(Manager.java:20)
| Caused by: java.rmi.ConnectException: Connection refused to host: 127.0.0.2; nested exception is:
| java.net.ConnectException: Connection refused: connect
| at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
| at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
| at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
| at sun.rmi.server.UnicastRef.invoke(Unknown Source)
| at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
| ... 9 more
| Caused by: java.net.ConnectException: Connection refused: connect
| at java.net.PlainSocketImpl.socketConnect(Native Method)
| at java.net.PlainSocketImpl.doConnect(Unknown Source)
| at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
| at java.net.PlainSocketImpl.connect(Unknown Source)
| at java.net.SocksSocketImpl.connect(Unknown Source)
| at java.net.Socket.connect(Unknown Source)
| at java.net.Socket.connect(Unknown Source)
| at java.net.Socket.<init>(Unknown Source)
| at java.net.Socket.<init>(Unknown Source)
| at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)
| at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)
| ... 15 more
Here comes the jndi.properties (client side)
# jndi.properties
|
| java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
| # java.naming.provider.url=localhost
| java.naming.provider.url=jnp\://192.168.0.2\:1099
| java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
|
this is how I create my context in Manager.class:
if (ctx == null) {
| log.info("Creating jndi context");
| ctx = new InitialContext();
| }
and this is my first lookup which fails:
core = (CoreServiceRemote) getContext().lookup(
| "CoreService/remote");
Any idea?
Thanks,
Kai
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970156#3970156
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970156
19 years, 7 months