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.

Similar Messages

  • 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

  • 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!!!

  • Connect to SharePoint web service using the XML / Web Service connector

    Hi experts,
    I am currently trying to display my SharePoint list in Crystal Report. Therefore my plan is to use a SharePoint web service to get the data and paste them to the Crystal Report.
    Is it possible to use the "XML and Web services" connector of the Crystal Reports database expert?
    When I enter the web service URL, for instance:
    https://[url]/_vti_bin/lists.asmx?wsdl
    and click next... I have to enter the web service credentials.
    On the next page I have to enter Service, Port and Method.
    Do I have to enter the service URL again here?
    What If, there is no port? Can I leave that field empty?
    I know the methods, but where can I add the mandatory parameters?
    Thanks for any helps and comments!
    Sebastian

    Hi Ananth,
    thank you, but this document does not help at all.
    We are using Crystal Reports 2008 SP2.
    We want to use the Web Service Connector.
    What I need is more informationen about the Web service connect. For example - the connection in Microsoft InfoPath is much easier - there I don't have to enter a port and can choose the methods from a list.
    Is it possible to use the Crystal web service connector for MS SharePoint Webservices?
    Or must I use the Crystal SDK to carry out a connection?
    Best regards,
    Sebastian

  • Error in ejbCreate using a Test Web Service

    Hi,
    I'm new to the Bea and j2ee worlds and I'm following the steps of "Getting Started: Enterprise JavaBeans" in "Tutorials".
    I've done "Step 4: Test the EJBs" but during the test (with a Test Web Service) these exceptions raised:
    Exception in hello
    javax.transaction.TransactionRolledbackException: Error in ejbCreate:: javax.ejb.EJBException: nested exception is: javax.naming.NameNotFoundException: While trying to look up comp/env/ejb/MyVisitBean in /app/ejb/MyEJBProject.jar#Hello.; remaining name 'comp/env/ejb/MyVisitBean'
    javax.naming.NameNotFoundException: While trying to look up comp/env/ejb/MyVisitBean in /app/ejb/MyEJBProject.jar#Hello.; remaining name 'comp/env/ejb/MyVisitBean'
    javax.ejb.EJBException: nested exception is: javax.naming.NameNotFoundException: While trying to look up comp/env/ejb/MyVisitBean in /app/ejb/MyEJBProject.jar#Hello.; remaining name 'comp/env/ejb/MyVisitBean'
    ; nested exception is:
    javax.ejb.EJBException: nested exception is: javax.naming.NameNotFoundException: While trying to look up comp/env/ejb/MyVisitBean in /app/ejb/MyEJBProject.jar#Hello.; remaining name 'comp/env/ejb/MyVisitBean'
    Caused by: javax.ejb.EJBException: nested exception is: javax.naming.NameNotFoundException: While trying to look up comp/env/ejb/MyVisitBean in /app/ejb/MyEJBProject.jar#Hello.; remaining name 'comp/env/ejb/MyVisitBean'
    ... 46 more
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:897)
    at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:150)
    at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:256)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:359)
    at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper.java:45)
    at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:130)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at hello.HelloBean.ejbCreate(HelloBean.java:27)
    at hello.Hello_oztp1s_Impl.ejbCreate(Hello_oztp1s_Impl.java:135)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:172)
    at weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:110)
    at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:140)
    at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:137)
    at weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java:69)
    at hello.Hello_oztp1s_EOImpl.hello(Hello_oztp1s_EOImpl.java:29)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.control.EJBControlImpl.invoke(EJBControlImpl.jcs:665)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:377)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:396)
    at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:388)
    at helloControl.helloBeanCtrl.hello(helloBeanCtrl.ctrl)
    at helloControl.helloBeanCtrlTest.hello(helloBeanCtrlTest.jws:22)
    Everything has gone well until Step 3. I've done everything tutorial has said (ejb-local-ref, etc..) but it doesn't work.
    Probably it's a stupid error, but I don't know where I have to look for.
    Thank you and sorry, but I've never seen Bea Workshop!
    m

    Hi
    You can use a java web service to publish a Web service from a Java class.
    A wizard creates the WSDL document and deployment files needed to publish your code as a Web service. After you select the class and methods you want to publish, the wizard generates deployment descriptors, a JAX-RPC mapping file, and a WSDL document that can be deployed to an application server.
    You can refer : \bpel\samples\tutorials\102.InvokingProcesses\ws sample to invoke a WS using JAX-RPC Call.
    Hope that helps!
    Cheers
    A

  • How to Specify Metadata When Adding Content Using iTunes U Web Service?

    I've been developing Java applications using iTunes U Web service and uploaded content to iTunes U site using iTunes U Web service without problem. Now I want to add metadata fields (name, artist name, album name, etc.) for the tracks I uploaded. It seems to me that "AddTrack" will do. So I tested it but it neither adds a track under the specified group nor updates metadata fields for an existing track. It turned out "MergeTrack" actually updates metadata fields for an existing track. So is there any way to specify metadata at the time of adding content using iTunes U Web service? And what exactly does AddTrack do? This is all about contents hosted by iTunes U site and no RSS is involved.
    I'm referring to the "AddTrack" method in iTunes U Web service:
    http://deimos.apple.com/rsrc/doc/iTunesUAdministrationGuide/iTunesUWebServices/c hapter18_section_21.html#//appleref/doc/uid/AdminGuide-CH13-SW26

    Thanks for all the replies. My question is whether there is any way to specify metadata WHEN adding content using iTunes U Web service. Specifying metadata AFTER adding content can be achieved by MergeTrack (weird naming) and it does work.
    As for setting track level meta-data in the media file and then upload it, there're several reasons against that, among which are:
    1. Some track metadata are context-dependent. A video about buildings on Michigan Ave in Chicago can be track #2 in a history course and described as "historic view of the Magnificent Mile", but the same media can also be track #5 in a landscape design course and described as something like "contemporary architecture". Setting these metadata in the media file itself is not the preferred way to do it since it implies maintaining a version of the same media for any course/group it gets uploaded to.
    2. Setting metadata in a location separate from the media file helps track the metadata change and search for media without digging into the media itself.
    3. If MergeTrack "updates" metadata, there got to be some other method that "creates" metadata - that's what a well-designed API should look like. And setting metadata in the media file is not an equivalent to a "create metadata" method call. In rickwolf's term, that implicit AddTrack should actually be made explicit so the party uploading content can explicitly specify metadata instead of having iTunes U extract metadata from the media.
    It is still not clear what "AddTrack" does exactly, maybe rickwolf is right - it's only relevant to tracks created through RSS.
    So it seems to me there is no other way to specify metadata WHEN adding content using iTunes U Web service than setting metadata in the media file. To me it is more like a design flaw.
    Message was edited by: Stone Xiang
    Message was edited by: Stone Xiang
    Message was edited by: Stone Xiang

  • 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.

  • Problems with creating model in Email Web Service tutorial

    Hello!
    In the moment, I'm trying to follow the tutorial "Using an Email Web Service in Web Dynpro". I followed all the steps in the chapter "Generating a Model from the WSDL Description", but after typing in the mentioned WSDL description "http://webservices.matlus.com/scripts/emailwebservice.dll/wsdl/IemailService" in the "New Model" wizard, I'm getting the error message, that the WSDL file is not found or not valid and no new model can be created.
    So I'm quite stuck. What am I doing wrong? Did anyone encounter the same problems?
    Greeting
    Bärbel

    Hello Baerbel,
    I could not reproduce this error and never had this before. What you could do in the meantime is taking the wsdl description from the url and copy and paste it into a notepade file. Then please save it under emailwebservice.xml onto your hard disc and select it from "local file system or url" and take it from the path of your local file system.
    Hope that helps!
    Best regards,
    Karin

  • 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.

  • 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

  • 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

  • Web Services - tutorial w/ invalid links

    Has anyone gone thru the
    'Automated invocation of a .NET web service' tutorial?
    The URL listed in the tutorial
    http://hosting001.vs.k2unisys.net/Weather/PDCWebService/WeatherServices.asmx is invalid. Any idea where I find
    similar .net web services to complete the tutorial?
    Thanks.
    Srini

    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.

  • 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

  • Using WebCenter Spaces Web Service API through JDeveloper's Data Control

    Hi,
    I'm trying to access WebCenter Spaces Web Service API (located at http://host:port/webcenter/SpacesWebService)
    using JDeveloper's Web Center Data Control.
    I created a data control in my portal project using JDeveloper's Web Service Data Control wizard.
    I also created and configured key stores (jps-config.xml) at both sides (spaces server and my portal client).
    How I created a data control:
    * First I entered the name and the URL (http://host:port/webcenter/SpacesWebService?WSDL)
    * Then I entered HTTP basic authentication details (user name and password)
    * After that I drag-and-drop the getGroupSpaces() method from the data control to a .jspx page as a ADF read-only table.
    * Then ran my portal project and navigated to this .jspx page and it worked. List of group spaces appeared well on that page.
    The problem is that I got only public group spaces and group spaces created by the user I entered on HTTP basic authentication details.
    I makes no sense to enter some static user details in a web service client (or a data control).
    So the question is; can I use identity propagation to get only group spaces created by the same user which I logged in my portal?
    Edited by: 832886 on Feb 18, 2011 3:09 AM

    Hi,
    You generally get NameError when you are executing the createCred/updateCred from a incorrect location. Are you using the wlst from oracle_common\common\bin?
    Also, In your steps I don't see what you did to populate the walllet at JDeveloper end after your updateCred failed. This is a required step. Use the wlst from the location emntioned above and you should be able to proceed.
    Thanks,
    Vishal

  • 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.

Maybe you are looking for

  • Error while creating Adaptive WS model(SP17) using local WSDL file

    Hi, I am trying to create a model with the wizard for adaptive Web Services, without using logical destinations. I have download the file from PI Server. This WSDL file is not registered in UDDI. But when I try to upload my WSDL from local disc I get

  • Display problems when installing Panther

    I purchased a G3 blue/white from work with 9.2.2 and the panther install disks (3 of them). The monitor was fine in 9.2.2. Upon inserting the panther disks, the display went grayscale and was next to unreadable. However, the install continued through

  • How to know the type of a control

    Hi, Here's a hard one. The column 14 (Document Type) in the Stages of Sales Opportunity.  What kind of control it is. Here's what I tried that doesn't work yet : SAPbouiCOM.EditText DocType = (SAPbouiCOM.EditText)Matrix.Columns.Item(14).Cells.Item(Ma

  • BDC Not working in Background ?

    Hi ,    we are having one RFC in which we have wriiten a BDC for Customer Mater creation. But this BDC is giving some problem with some screen when it has encountered Duplicate Address. We have taken a proper care in BDC with even this duplicate addr

  • ERROR ENDED WHILE DELETING CLIENT

    I am having ended with error during the client delete. error is down to get help 14052 Maximum Run Time Exceeded