Hi!

I have been stuck with the following problem for a while and I really hope that 
someone could give me some clue on how to solve it.

I am trying to consume Amazon web services with servlet deployed to a JBoss 
4.0.1sp1. Following instructions in the ?WSClientWEB? tutorial I have managed 
to consume Google?s web services but, with the some principles and steps, I 
still fail with the Amazon.

The problem is following error that I receive when contacting the client 
servlet (copied from server.log):


  | 2005-11-23 20:45:45,919 DEBUG 
[org.jboss.webservice.client.ServiceObjectFactory] Create jaxrpc service for 
wsdl: 
file:/C:/jboss-4.0.1sp1/server/default/tmp/deploy/tmp26520aecs-exp.war/WEB-INF/wsdl/AWSECommerceService.wsdl
  | 2005-11-23 20:45:45,919 DEBUG [org.jboss.webservice.WSDLDefinitionFactory] 
getBaseInputSource 
[wsdlUrl=file:/C:/jboss-4.0.1sp1/server/default/tmp/deploy/tmp26520aecs-exp.war/WEB-INF/wsdl/AWSECommerceService.wsdl]
  | 2005-11-23 20:45:45,929 DEBUG [com.ibm.wsdl.xml.WSDLReaderImpl] Retrieving 
document at 
'file:/C:/jboss-4.0.1sp1/server/default/tmp/deploy/tmp26520aecs-exp.war/WEB-INF/wsdl/AWSECommerceService.wsdl'.
  | 2005-11-23 20:45:46,139 DEBUG 
[org.jboss.webservice.EngineConfigurationFinder] Found config at: 
file:/C:/jboss-4.0.1sp1/server/default/deploy/jboss-ws4ee.sar/META-INF/axis-client-config.xml
  | 2005-11-23 20:46:34,829 ERROR [org.apache.axis.client.Service] WSDL2Java 
emitter timed out (this often means the WSDL at the specified URL is 
inaccessible)!
  | java.io.IOException: WSDL2Java emitter timed out (this often means the WSDL 
at the specified URL is inaccessible)!
  |     at org.apache.axis.wsdl.gen.Parser.run(Parser.java:248)
  |     at org.apache.axis.client.Service.initService(Service.java:277)
  |     at org.apache.axis.client.Service.<init>(Service.java:189)
  |     at org.jboss.webservice.client.ServiceImpl.<init>(ServiceImpl.java:106)
  |     at 
org.jboss.webservice.client.ServiceObjectFactory.getObjectInstance(ServiceObjectFactory.java:155)
  |     at 
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
  |     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:636)
  |     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:658)
  |     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520)
  |     at javax.naming.InitialContext.lookup(InitialContext.java:347)
  |     at com.aecs.client.AecsServlet.service(AecsServlet.java:34)
  | 

Has anybody encountered the same problem? Any help is much appreciated. Thank 
you in advance.


My web.xml?s service-ref:

  | <service-ref>
  |       <service-ref-name>service/AWSECommerceService</service-ref-name>
  |       <service-interface>javax.xml.rpc.Service</service-interface>
  |       <wsdl-file>WEB-INF/wsdl/AWSECommerceService.wsdl</wsdl-file>
  |       <jaxrpc-mapping-file>WEB-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
  | </service-ref>
  | 

My Servlet (AecsServlet.java):

  | InitialContext iniCtx = new InitialContext();
  | Service service = (Service) 
iniCtx.lookup("java:comp/env/service/AWSECommerceService");
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3908877


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to