Trouble With Web Services Tutorial Examples

I am having trouble getting the Web Services Tutorial examples to run.
For example, when I compiled the hello1 example, and tried to run it, I got a directory listing. All the directory listing contained was the dukewaving.gif file.
When I tried to run hello2, I got something similar. This time though, there were two jsp files in the listing. By clicking on the first one, I was able to run the application.
Now I can't run the bookstore1 example. I went back a second time, to be sure that I was following the instructions exactly as written. I am gettng an HTTP Status 404 - Servlet BookStoreServlet is not available.
I don't know why this is happening. There were no errors when I ran the Ant targets, and the WAR file did get copied to the webapps directory.
I would be very grateful for any help. I am very new to Java and am finding this very frustrating.
Thank You,
Chrissy

This is what's in my log file. Why is the servlet being marked as unavailable?
2004-03-13 21:11:37 Manager: deploy: Deploying web application at '/bookstore1'
2004-03-13 21:11:37 Manager: Uploading WAR file to C:\jwsdp-1.3\webapps\bookstore1.war
2004-03-13 21:11:37 Manager: Extracting XML file to C:\jwsdp-1.3\conf\Catalina\localhost\bookstore1.xml
2004-03-13 21:11:37 Manager: install: Installing context configuration at 'file:/C:/jwsdp-1.3/conf/Catalina/localhost/bookstore1.xml' from 'jar:file:/C:/jwsdp-1.3/webapps/bookstore1.war!/'
2004-03-13 21:13:47 Marking servlet BookStoreServlet as unavailable

Similar Messages

  • Unsupported Version error when trying to run Web Services Tutorial example

    Hi there,
    I'm trying to run the first example from the Java Web Services Tutorial and get the following error when I type 'asant build' in my Command Window.
    Buildfile: build.xml
    BUILD FAILED
    java.lang.UnsupportedClassVersionError: com/sun/tools/ws/ant/WsImport (Unsupport
    ed major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at org.apache.tools.ant.loader.AntClassLoader2.defineClassFromData(AntCl
    assLoader2.java:76)
    When I do a java -version I see my version is Java 1.5, and I'm not sure why the build is still trying to use Java 1.4. I do not want to delete the 1.4 from my machine as it is used for something else.
    C:\jwstutorial20\examples\jaxws\helloservice>java -version
    java version "1.5.0_09"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
    Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode, sharing)
    Could you please help me with this problem?
    Thanks in advance.
    Azeem.

    Hi Azeem.
    Check out values specified for JAVA_HOME, PATH and CLASSPATH under environment variable. Was facing the same problem. Changed the values to point to jdk1.5 and it is working now.
    BTW.
    You don't have to uninstall jdk1.4.
    Cheers!!!

  • Having trouble with Web Services setup

    I'm trying to get the claim code and the email address for my printer but everytime I go to Enable in the web services page it goes and says "Connecting" but stays looped. I have an Laserjet PRO m127fn.

    Hello Falafelforlyfe,
    Welcome to the HP Support Forums!
    The LaserJet Pro M127fn may need a firmware update, do you have a USB cable and a Windows Operating System? If so, run this updater: HP LaserJet Pro MFP M125/M126 Series Firmware Update.
    Hope this helps with the loop.
    Cheers,
    JERENDS
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • Example code download for "The JavaTM Web Services Tutorial "

    Web page at http://java.sun.com/webservices/docs/1.0/tutorial/doc/Preface.html#63740 describes the follwoing way to get code example
    ==========================================
    If you are viewing this online, you need to download The Java Web Services Tutorial from:
    http://java.sun.com/webservices/downloads/webservicestutorial.html
    Once you have installed the tutorial bundle, the example source code is in the <JWSDP_HOME>/docs/tutorial/examples directory, with subdirectories for each of the technologies included in the pack.
    ==========================================
    However, following the link, I download file jwsdp-1_5_01-tutorial.zip. But this zip does not contain a docs/tutorial/.. directory.
    Any hint? Thanks in advance.

    Did you set up the database as described in
    http://java.sun.com/webservices/docs/1.0/tutorial/doc/WebApp13.html#69868

  • Could not run the bookstore1 example from the Java Web Services Tutorial

    The bookstore1 servlets example from the Java Web Services Tutorial (issue Aug 1, 2002) was built and deployed successfully by using the deploytool (following the steps described on pages 498ff of the tutorial).
    After deploying the application the Tomcat Web Application Manager shows the entry:
    /bookstore1:stopped:0:D:\Programme\Java\tomcat\jakarta-tomcat-4.1.8\work\Standalone\localhost\manager\bookstore1.war
    when entering the command: http://localhost:8080/manager/list.
    After entering the command: http://localhost:8080/manager/start?path=/bookstore1, the (uncomplete) message appears:
    FAIL - Application at context path /bookstore1 could not
    It should be noted that I was able to build and deploy the application GSApp (chapter 3 of the tutorial) successfully.

    Did you set up the database as described in
    http://java.sun.com/webservices/docs/1.0/tutorial/doc/WebApp13.html#69868

  • Cannot complie the example at Java Web Services Tutorial 1.3,Ch3

    Hi all,
    At the Java Web Services Tutorial 1.3 Chapter 3, there has an example but I cannot compile!
    The is the output of ant:
    C:\jwsdp-1.3\jwstutorial13\examples\gs>ant build
    Buildfile: build.xml
    BUILD FAILED
    file:C:/jwsdp-1.3/jwstutorial13/examples/common/targets.xml:1: taskdef class org.apache.catalina.ant.ListTask cannot be found
    Total time: 5 seconds
    Would you please give me an idea to solve this problem?
    Thanks
    Chris

    Ok...this is driving me nuts!!!
    I am getting the same error (blah blah blah...ListTask cannot be found) and I have looked over the forum and copied over the catalina-ant.jar file into the apache-ant/lib dir. I have also included every path I can think of in the PATH env var and CLASSPATH env var...
    PATH = C:\jwsdp-1.3\jwsdp-shared\bin;D:\pipeline\products\cygwin\bin;D:\Ant\apache-ant-1.5.4\bin;C:\jwsdp-1.3\apache-ant\bin;D:/pipeline/products/jdk;D:/lcms/products/jdk
    pipeline is where my jdk (I have two different versions because two different apps) is and the ref to D:\Ant...is for another app.
    CLASSPATH = C:\Program Files\Altova\xmlspy\XMLSpyInterface.jar;C:\jwsdp-1.3\server\lib\catalina-ant.jar;C:\jwsdp-1.3\common\lib
    ignore the XMLSpy stuff
    please help...thanks ahead of time.
    skye

  • Error while running 10g web services tutorial

    I am trying to learn and evaluate JDev 10g. I followed the web services tutorial for 10g. In the end when I tried to run the example I get the following error. Any help will be appreciated. Thanks.
    PS: I am also seeing this error in the message pane for the embedded server "Source Files\JDeveloper\j2ee\home\oc4j.jar;C:\Program does not exist."
    C:\Program Files\JDeveloper\jdk\bin\javaw.exe -ojvm -classpath C:\JavaWebService\Model\classes;C:\Program Files\JDeveloper\jdev\lib\jdev-rt.jar;C:\Program Files\JDeveloper\jdev\lib\jdev-rt.jar;C:\Program Files\JDeveloper\soap\lib\soap.jar;C:\Program Files\JDeveloper\lib\xmlparserv2.jar;C:\Program Files\JDeveloper\jlib\javax-ssl-1_2.jar;C:\Program Files\JDeveloper\jlib\jssl-1_2.jar;C:\Program Files\JDeveloper\j2ee\home\lib\activation.jar;C:\Program Files\JDeveloper\j2ee\home\lib\mail.jar;C:\Program Files\JDeveloper\j2ee\home\lib\http_client.jar webservtest.EmbeddedMyPersonWSStub
    [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type &quot;text/html&quot;, must be: &quot;text/xml&quot;. Response was:
    &lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;500 Internal Server Error&lt;/TITLE&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1&gt;500 Internal Server Error&lt;/H1&gt;&lt;PRE&gt;Servlet error: Cannot generate Class: &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
         at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:209)
         at org.apache.soap.rpc.Call.invoke(Call.java:268)
         at webservtest.EmbeddedMyPersonWSStub.sayHello(EmbeddedMyPersonWSStub.java:175) at webservtest.EmbeddedMyPersonWSStub.main(EmbeddedMyPersonWSStub.java:40)
    Process exited with exit code 0.

    Hi,
    Unfortunately, your web service is failing at runtime because JDeveloper (and more specifically, the embedded OC4J) is installed in a directory whose path contains a space character. If you move JDeveloper from "Program Files" to another directory, perhaps "Program_Files", then it'll all go smoothly.
    Apologies if this causes you inconvenience.
    Regards,
    Alan.

  • Deployment failure in web services tutorial

    In http://java.sun.com/webservices/docs/1.2/tutorial/doc/index.html I have got as far as Chapter 3: Getting Started with Tomcat and attempted to build and run the /gs example. I have HTTP error 404, apparently for neither of the possible reasons given in the FAQ; the error has persisted although the system is quiescent and all of the required example files are present as expected.
    I am running Windows 2000.
    I have installed the web services tutorial at C:\oracle-xml\jwstutorial12.
    I have installed the web services development pack at C:\jwsdp-1.2.
    I have installed the Java SDK at C:\j2sdk1.4.2_01.
    My path is:
    C:\jwsdp-1.2\apache-ant\bin;C:\Python22\.;C:\oracle\ora81\bin;C:\Program Files\Oracle\jre\1.1.7\bin;C:\Perl\bin\;C:\Program Files\Tcl\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\ActiveState Komodo 2.3\;C:\j2sdk1~1\jre\bin\clientMy C:\jwsdp-1.2\conf\tomcat-users.xml is:
    <?xml version='1.0' encoding='utf-8'?>
    <tomcat-users>
      <role rolename="manager"/>
      <role rolename="admin"/>
      <user username="MarshalJ" password="metro" roles="admin,manager"/>
    </tomcat-users>My C:\oracle-xml\jwstutorial12\examples\common\build.properties is:
    tutorial.home=C:\oracle-xml
    tutorial.install=${tutorial.home}/jwstutorial12
    username=MarshalJ
    password=metro
    host=localhost
    port=8080
    secure.port=8443
    url=http://${host}:${port}/managerI have run this command-line session:
    Microsoft Windows 2000 [Version 5.00.2195]
    (C) Copyright 1985-2000 Microsoft Corp.
    C:\>cd \oracle-xml\jwstutorial12\examples\gs
    C:\oracle-xml\jwstutorial12\examples\gs>ant build
    Buildfile: build.xml
    init:
    prepare:
        [mkdir] Created dir: C:\oracle-xml\jwstutorial12\examples\gs\build
        [mkdir] Created dir: C:\oracle-xml\jwstutorial12\examples\gs\dist
        [mkdir] Created dir: C:\oracle-xml\jwstutorial12\examples\gs\build\WEB-INF
        [mkdir] Created dir: C:\oracle-xml\jwstutorial12\examples\gs\build\WEB-INF\c
    lasses
        [mkdir] Created dir: C:\oracle-xml\jwstutorial12\examples\gs\build\WEB-INF\l
    ib
        [mkdir] Created dir: C:\oracle-xml\jwstutorial12\examples\gs\build\WEB-INF\t
    ags
    copy:
         [copy] Copying 1 file to C:\oracle-xml\jwstutorial12\examples\gs\build
         [copy] Copying 1 file to C:\oracle-xml\jwstutorial12\examples\gs\build\WEB-
    INF
    build:
        [javac] Compiling 1 source file to C:\oracle-xml\jwstutorial12\examples\gs\b
    uild\WEB-INF\classes
    BUILD SUCCESSFUL
    Total time: 29 seconds
    C:\oracle-xml\jwstutorial12\examples\gs>ant install
    Buildfile: build.xml
    init:
    prepare:
    copy:
    build:
    install:
      [install] OK - Installed application at context path /gs
    BUILD SUCCESSFUL
    Total time: 1 minute 32 seconds
    C:\oracle-xml\jwstutorial12\examples\gs>With Tomcat active and the system quiescent I have this output from Mozilla:
    HTTP Status 404 - /gs
    type Status report
    message /gs
    description The requested resource (/gs) is not available.
    Java Web Services Developer Pack/1.2I would be grateful if someone would point out what I have missed.

    Thank you for the reply.
    I have jwsdp-1.2 (not 1.3) and the version of Tomcat that was packaged with that is the only one I have.
    The complete file structure for the gs application has been built at C:\oracle-xml\jwstutorial12\examples\gs. The directory C:\jwsdp-1.2\work\Catalina\localhost\gs exists but it is empty.
    When you mention ant scripts, does that mean build.xml? Is the operation you describe performed in a <target> element? How do I set it up? I could not spot anything in the Ant manual.
    I notice that C:\oracle-xml\jwstutorial12\examples\common\targets.xml is not well-formed. It consists of a lot of <taskdef> and <target> elements all at document root level.
    Thanks for your help.

  • How can I authenticate and authorize with Web Service on ESB ?

    Hello,
    I want to authenticate and authorize client with Web Service published
    by HTTP/SOAP BC.
    Simply if it is an Web Service as J2EE application, I will use
    Basic Authentication with JAX-RPC and Realm.
    But I think that Web Service published by HTTP/SOAP BC is not belong
    to J2EE Application. Threre is no place to describe security role mapping
    (like web.xml).
    JBI 1.0 the section "5.5.1.1.3 Normalized Message Properties" comments
    JAAS Subject is given in the NM Properties. Really in this package
    com.sun.jbi.internal.security.*
    implements JAAS autentication and authorization (at JaasAuthenticator).
    But I can't see how to configure my Service to use this.
    How can I authenticate and authorize with Web Service on ESB ?
    I referred to the resources.
    Mutual Authentication for Web Services: A Live Example
    http://developers.sun.com/prodtech/appserver/reference/techart/mutual_auth.html
    XML and Web Services Security
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Security7.html
    JAAS Authentication Tutorial
    http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/tutorials/GeneralAcnOnly.html
    Thanks,
    Takurou
    - environment ---------------------------------------------
    OpenESB : Project Open ESB Starter Kit
    AppServer : Sun Java Systems Application Server 9.0 PE
    OS : Windows XP
    I don't assume to use SSL (if It's necessary I will try).
    User information is stored in a LDAP Server.
    -----------------------------------------------------------

    Hello,
    I read this resource.
    SecurityDesign
    http://www.glassfishwiki.org/jbiwiki/Wiki.jsp?page=SecurityDesign
    Then I think [non-ssl and ssl/tls and so on] securing by basic authentication is ongoing feature at this time.
    But I can't see well why this page comments 'HTTP over SSL, TLS'.
    HTTP/SOAP Binding Component Overview
    http://download.java.net/general/open-esb/docs/jbi-components/httpsoap-bc.html
    Does BC support only "SSL server authentication" ?
    Doesn't BC support "SSL client authentication" by username/password ?
    Thanks,
    Takurou

  • Error in using email  Web Service tutorial

    Hi ,
    I downloaded the email web service tutorial from
    sdn and tried to executeit.
    But it is throwing error,.
    I also  tried to bypass proxy settimg but still the same error is coming
    Can anyone guide me as what i should do?
    The error stack trace -
    The initial exception that caused the request to fail, was:
       java.io.IOException: Cannot connect to http://www.abysal.com/soap/AbysalEmail.wsdl: www.abysal.com
        at com.sap.engine.services.webservices.tools.WSDLDownloadResolver.resolveEntity(WSDLDownloadResolver.java:161)
        at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1018)
        at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadWSDLDocument(WSDLDOMLoader.java:1125)
        at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:178)
        at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.generateProxyFiles(DGenericServiceImpl.java:146)
    Detailed Error -
    com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for WSDL URL 'http://www.abysal.com/soap/AbysalEmail.wsdl' and service factory configuration 'null'
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:421)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.readOperationsFromWSDL(WSModelInfo.java:371)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadataInternal(WSModelInfo.java:341)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadata(WSModelInfo.java:325)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo$Cache.getModelInfo(WSModelInfo.java:198)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getModelInfoFromCacheOrCreate(WSModelInfo.java:1029)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getModelInfoFromCacheOrCreate(WSModelInfo.java:247)
         at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModel.<init>(WSTypedModel.java:41)
         at emailadwsmodel.EmailAdWSModel.<init>(EmailAdWSModel.java:45)
         at com.sap.tc.wd.adws.comp.app.EmaiFormView.wdDoInit(EmaiFormView.java:107)
         at com.sap.tc.wd.adws.comp.app.wdp.InternalEmaiFormView.wdDoInit(InternalEmaiFormView.java:156)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:445)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:295)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.show(ApplicationWindow.java:183)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:178)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:364)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:700)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:269)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:752)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:705)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.WebserviceClientException: GenericServiceFactory initialization problem. Could not load web service model. See nested exception for details.
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.generateProxyFiles(DGenericServiceImpl.java:149)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.<init>(DGenericServiceImpl.java:49)
         at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:71)
         at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:91)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:419)
         ... 45 more
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.ProxyGeneratorException: Proxy Generator Error. Problem with WSDL file parsing. See nested message.
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:182)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.generateProxyFiles(DGenericServiceImpl.java:146)
         ... 49 more
    Caused by: com.sap.engine.lib.xml.util.NestedException: IO Exception occurred while parsing file:Cannot connect to http://www.abysal.com/soap/AbysalEmail.wsdl: www.abysal.com -> java.io.IOException: Cannot connect to http://www.abysal.com/soap/AbysalEmail.wsdl: www.abysal.com
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1038)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadWSDLDocument(WSDLDOMLoader.java:1125)
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:178)
         ... 50 more
    Caused by: java.io.IOException: Cannot connect to http://www.abysal.com/soap/AbysalEmail.wsdl: www.abysal.com
         at com.sap.engine.services.webservices.tools.WSDLDownloadResolver.resolveEntity(WSDLDownloadResolver.java:161)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1018)
         ... 52 more

    Hi Vivek,
    This problem occurs when Web Service provider is not reachable , it means the server which provides services to the WSDL is temporally down or not reachable . To check whether the services is reachable , you could paste the WSDL URL in your internet browser , if it opens then problem is with NWDS configuration of proxy else sever is not reachable .
    In your case problem is not with NWDS but with server as it looks that it is temprorarly down. To avoid such problem in future you could also store the WSDL file locally on your system and then can import ( obvioulsy you requires at least once to get the WSDL ) . This will help only while modelling the application to run you will require the service provider to be up and runnning
    You could use other tutorials to try AWS Model in Web Dynpro .
    regards
    Dhawal

  • Attachment with web service

    Hello friends
    I have little problem I create project with web service and now I need to add attachment to email
    email I create step by step with tutorial !!!
    so if anybody know HOWTO please send me any tip!!!

    Hello Anilkumar Vippagunta
    Thank you very much for your help!!!
    but I have little problem with your code
    Properties properties = new Properties();
    properties.put("mail.smtp.host", "comp.smtp.com");
    MimeMessage msg =new MimeMessage(Session.getInstance(properties,  null));
    I can't define Session correctly if you can give me any tip or direction
    Maybe its stupid questuion but how can I know this two properties (mail.smtp.host,comp.smtp.com)
                 thank you.

  • About Using Ant in Web Services Tutorial 1.0.1

    I downloaded the latest version of the Java Web Services Tutorial 1.0.1 and trying to run the
    sa,ple applications from ConvertedApp.java. When I type in "ant build"(ant version is 1.4.1), I
    am gettigng the error saying
    " Usage is java [options] class ........"
    as if implying that the classname is missing somewhere!!
    Can anyone please give any clue what might go wrong here?
    (I am on Windows 2000).
    Thanks

    Hello.
    For example, build.xml is in the folder:
    d:\jwsdp_tutorial\docs\tutorial\examples\gs\build.xml
    Then write a bat-file in the same folder that looks like this:
    -------------------- BEGIN --------------------
    set JAVA_HOME=d:/j2sdk1.4.1
    set ANT_HOME=d:/jakarta-ant-1.5.1
    set CATALINA_HOME=d:/jakarta-tomcat-4.1.18
    %JAVA_HOME%/bin/java -cp %JAVA_HOME%/lib/tools.jar;%JAVA_HOME%/jre/lib/rt.jar;%JAVA_HOME%/jre/lib/jaws.jar;%ANT_HOME%/lib/ant.jar;%ANT_HOME%/lib/optional.jar;%ANT_HOME%/lib/xercesImpl.jar;%ANT_HOME%/lib/xml-apis.jar;%CATALINA_HOME%/server/lib/catalina-ant.jar -Djwsdp.home=d:/jwsdp_tutorial org.apache.tools.ant.Main -logfile build.log -buildfile build.xml
    -------------------- END --------------------
    Additionally you have to install j2sdk1.4.1, jakarta-ant-1.5.1 and jakarta-tomcat-4.1.18.

  • Web Services tutorial - problems executing

    I've recently installed jdeveloper onto winXP pro from the jdev9i_902.zip download and installed to D:\jdeveloper. Following the instructions I also installed JDK1.3 to D:\jdk1.3.1_04. I ran the setup for oc4j.
    The problem I have is that when I followed the "Publish a stateless Java class as a Web service" tutorial, everything goes well until I run it. The errors produces are (taken from the tcptunnel output):
    ===========
    HTTP/1.1 100 Continue
    Server: Oracle9iAS (9.0.2.0.0) Containers for J2EE
    Date: Sat, 20 Jul 2002 18:35:21 GMT
    HTTP/1.1 500 Internal Server Error
    Date: Sat, 20 Jul 2002 18:35:22 GMT
    Server: Oracle9iAS (9.0.2.0.0) Containers for J2EE
    Content-Length: 853
    Set-Cookie: JSESSIONID=72fa269c5c2f46889c1fe8e2b69b981d; Path=/
    Cache-Control: private
    Connection: Close
    Content-Type: text/html
    <HTML><HEAD><TITLE>500 Internal Server Error</TITLE></HEAD><BODY><H1>500 Internal Server Error</H1><PRE>Servlet error: Cannot generate Class: error: Invalid class file format in E:\Program Files\Java\j2re1.4.0\lib\rt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand.
    D:\jdeveloper\j2ee\home\application-deployments\WorkspaceStatelessJava-ProjectStatelessJava-WS\WebServices\temp\__java_stateless_rpc\__HelloImplStatelessWrapper.java:0: Class java.lang.Object not found in class oracle.j2ee.ws.InvocationWrapper.
    ^
    D:\jdeveloper\j2ee\home\application-deployments\WorkspaceStatelessJava-ProjectStatelessJava-WS\WebServices\temp\__java_stateless_rpc\__HelloImplStatelessWrapper.java:8: Class java.lang.Object not found in import.
    import java.lang.Object;
    ^
    3 errors
    </PRE></BODY></HTML>
    =======
    The main section that concerns me is "Invalid class file format in E:\Program Files\Java\j2re1.4.0\lib\rt.jar(java/lang/Object.class). ", why is using this?
    Any feedback on this is appreciated.
    Dave

    Dave, given the messages returned indicate your configuration is looking at a j2se1.4 directory, I think that is the problem. Neither OC4J or JDeveloper are certified with JDK 1.4. I realize that you have installed 1.3 so my guess is that in following step 8 and 10 of the "Installing and Running Oracle9iAS Containers for J2EE" where it says:
    8. Install the J2EE container using the following command: java jar oc4j.jar install
    10. Start the J2EE container by issuing the following command: java jar oc4j.jar Show me.
    the problem is that the commands were not prefixed with the location of your JDK 1.3 installation and by default picked up the later JDK 1.4. I think you will be able to get around it by running the commands as follows (replacing directory names by your locations):
    <jdk1.3_home>\bin\java -jar oc4j.jar -install
    <jdk1.3_home>\bin\java -jar oc4j.jar
    Your JDeveloper should be fine unless you changed its JDK to also be 1.4; by default it uses its own built-in 1.3 JDK.
    Hope this points in the right direction.
    Mike.

  • Axis and Mime to send Images with Web Services

    Hi, I have been reading a lot of information about MIME and how I have to send images or attachaments with Web Services, and I am a little lost. I would to find a simple example to use MIME with AXIS 1.4 . Do anybody know where I can find some example to use attachements with AXIS???
    Thank you very much in advance

    Hi,
    When you are using JAX-WS, there is a tool wsimport, with which you are going to generate the artifacts required to implement the web service.
    When you pass the WSDL as a parameter to the wsimport tool, it will be create the required beans also(JAXB Objects).
    So need of any other external implementation of JAXB when you are working with JAXWS
    Thanks,

  • Adobe forms with Web Service - nothing happens when clicking button.

    Hi,
    I am trying to develop adobe forms with web service. The web service
    WSDL location is :- [http://www.webservicex.net/uklocation.asmx?wsdl]
    I have created a new dataconnection with the above URL, drag & drop fields & button onto the form & save the form.
    when I open the PDF on my local machine, enter the post code and push button, nothing happens. no error/warning message.
    I also downloaded a web service example PDF from [http://partners.adobe.com/public/developer/tips/index.html]
    This form also has button to execute a web service but again nothing happens?
    Any clues why this is happening? I turned off my firewall thinking it might be blocking but no joy
    I am using Adobe Life cycle Designer 8 & Adobe reader 8.
    Thanks,
    Pankaj
    Edited by: PANKAJ ARORA on Jan 15, 2009 5:28 AM

    Hi Pankaj,
    While you are creating Webservice from Java file, select the Aunthenticationtype as SimpleSOAP instead of Basic SOAP (Bydefault BasicSOAP is selected, Change it to SimpleSOAP).
    There are some steps after you create a Webservice.
    First Download WSDL on your Local Machine from WAS.
    After that when you open the zip file you get 3 WSDL's.
    There we need to combine the 3 wsdl's and make it into one wsdl after you do this process.
    Incorporate the WSDL in your interactive form and drag and drop the button onto the form.
    Please don't try to edit any of the method because it will not work if you try to change any feature.
    If you want to write Javascript for that method write it in "enter" method, script type:Javascript.
    If you have any queries you can ping.
    (The below link helps for you i guess)
    [Interactive Forms and Web Service Integration|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/148ec26e-0c01-0010-e488-decaafae3b26]

Maybe you are looking for

  • Problem with analysis authorization- 0BI_ALL always needed

    Dear all: we have a serious issue on so-called "analysis authorization" now. We have auth-restricted user who only have authorization to access data on one company code. We also create a BI-authorization in analysis authorization and assign the follo

  • Is It Possible To Obscure or Mosaic Something in a Video Clip in iMovie?

    Here's what I'm trying to do... I have a clip of me on the local news that I would like to upload to MySpace or YouTube but it has my full name shown below me. I want to obscure at least my last name. Is this possible in iMovie? If not, any other ide

  • Location case for laptops in Digital Photography

    Hello everyone I am a professional photographer often using a laptop on location to store and process my images. I've been looking for and not finding a case I can have the laptop in as well as have it open with a dark viewing cover. And ofcorse I wo

  • Cycle of pca with trading partner

    Dear experts, Is it possible to create a pca cycle of some pcas with a specific trading partner?.....i couldn´t find this field on the senderside.... what i need is to create a cycle with specific pcas and also a specifc trading partner........any ti

  • Pdf cannot be exported

    i keep getting this error when in safari when it does not appear that the pdf is protected in any way. it happens when i run a save as. for instance this page http://workgroups.clemson.edu/AAH0503_ANIMATED_ARCH/linked%20docs/Bio-logic%20of %20Archite