Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
- No way to write a working client

- No way to write a working client

2007-07-13       - By GenesisD

 Back
Hi all,

I'm going crazy!!!!!

I'm trying to write a f***ing client for a web service using:
jboss-4 (See http://oss-4.ora-code.com).0.5GA
jbossws-1 (See http://sws-1.ora-code.com).2.1.GA

the service I deployed is the "jax-ws/WebResult" of  jbossws-samples-1 (See http://les-1.ora-code.com).2.1.GA
/jbossws-samples-1 (See http://les-1.ora-code.com).2.1.GA" I downloaded for your site.

The service results correctly deployed.

NOW, instead of using the non-sense client tomas diesler wrote to consume that
damned service, I tryied to write another one, more simple.

The client I wrote is:

 | import java.net.URL Source code of java.net.URL;
 |
 | import javax.xml.namespace.QName Source code of javax.xml.namespace.QName;
 |
 | import org.jboss.test.ws.jaxws.samples.webresult.CustomerRecord;
 | import org.jboss.test.ws.jaxws.samples.webresult.CustomerService;
 | import org.jboss.test.ws.jaxws.samples.webresult.USAddress;
 |
 | public class Client {
 |     public static void main(String[] args) throws Exception {
 |       System.out.println("Start");
 |      
 |       javax.xml.ws.Service factoryTest = javax.xml.ws.Service.create(new URL
("http://sviluppo-013 (See http://ppo-013.ora-code.com):8080/jaxws-samples-webresult?wsdl"),
 |               new QName("http://webresult.samples.jaxws.ws.test.jboss.org/",
"CustomerServiceImplService"));
 |       CustomerService proxyTest  = (CustomerService)factoryTest.getPort
(CustomerService.class);
 |       CustomerRecord ritorno = (CustomerRecord)proxyTest.locateCustomer(
"nome","cognome", new USAddress());
 |       System.out.println("ritorno del secondo servizio "+ritorno
.getFirstName());
 |     }
 | }

is some one able to tell me if it is correct or not?

the error that running this f***ing client shows is:

 | Start
 | Exception in thread "main" javax.xml.ws.WebServiceException: java.lang
.NoSuchMethodError: org.jboss.ws.core.utils.JBossWSEntityResolver.getEntityMap(
)Ljava/util/Map;
 |   at javax.xml.ws.Service.create(Service.java:731)
 |   at uk.co.regdeveloper.webservice.Client.main(Client.java:35)
 | Caused by: java.lang.NoSuchMethodError Source code of java.lang.NoSuchMethodError: org.jboss.ws.core.utils
.JBossWSEntityResolver.getEntityMap()Ljava/util/Map;
 |   at org.jboss.ws.tools.JavaToXSD.resolveNamespaceURI(JavaToXSD.java:211)
 |   at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:172)
 |   at org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:271)
 |   at org.jboss.ws.tools.wsdl.WSDL11Reader.processDefinition(WSDL11Reader
.java:158)
 |   at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse
(WSDLDefinitionsFactory.java:131)
 |   at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions
(ServiceMetaData.java:321)
 |   at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder
.buildMetaData(JAXWSClientMetaDataBuilder.java:83)
 |   at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.<init>
(ServiceDelegateImpl.java:140)
 |   at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate
(ProviderImpl.java:61)
 |   at javax.xml.ws.Service.<init>(Service.java:83)
 |   at org.jboss.ws.core.jaxws.client.ServiceExt.<init>(ServiceExt.java:60)
 |   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 |   at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
 |   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
 |   at java.lang.reflect.Constructor Source code of java.lang.reflect.Constructor(Constructor.java:494)
 |   at javax.xml.ws.Service.create(Service.java:726)
 |   ... 1 more
 |


What the hell does it means??????

I know well that org.jboss.ws.core.utils.JBossWSEntityResolver class has not
that method... so WHY my client tryes to call it?

I read thousands of examples...hundreds of books and documantation, but I was
not able to write a damned client for a very simple web service.

So I'm so sorry for my words, but I'm going crazy!!!!
Plz help me: in name of my mental health!!!!!


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic
&p=4063940#4063940

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode
=reply&p=4063940
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

©2008 junlu.com - Jax Systems, LLC, U.S.A.