Web Services Tutorial (9.0.3)

Hi,
I'm new at Web Services using Oracle9iAS (9.0.3.0.0)and am having a problem running the tutorial at http://www.oracle.com/technology/tech/webservices/htdocs/series/statelessjava/index.html.
I manage to get to the point of deploying the Web Service and everything is fine. I then create the Web Service Stub and that seems to be created OK, but when I come to run it I get the error:
C:\OC4J\jdk\bin\javaw.exe -client -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=1328 -classpath C:\WorkArea\JDeveloper\Project\classes;C:\jdev\lib\jdev-rt.jar;C:\jdev\lib\jdev-rt.jar;C:\soap\lib\soap.jar;C:\lib\xmlparserv2.jar;C:\jlib\javax-ssl-1_2.jar;C:\jlib\jssl-1_2.jar;C:\j2ee\home\lib\activation.jar;C:\j2ee\home\lib\mail.jar;C:\j2ee\home\lib\http_client.jar HelloImplStub
Debugger connected to local process.
[SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type "text/html", must be: "text/xml". Response was:
<HTML><HEAD><TITLE>500 Internal Server Error</TITLE></HEAD><BODY><H1>500 Internal Server Error</H1><PRE>Servlet error: Cannot generate Class: C:\OC4J\j2ee\home\application-deployments\WorkspaceStatelessJava-ProjectStatelessJava-WS\WebServices\temp\__java_stateless_rpc\__HelloImplStatelessWrapper.java:9: '.' expected
import IHelloImpl;
                 ^
1 error
</PRE></BODY></HTML>
     at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:209)
     at org.apache.soap.rpc.Call.invoke(Call.java:268)
     at HelloImplStub.sayHello(HelloImplStub.java:73)
     at HelloImplStub.main(HelloImplStub.java:34)
Debugger disconnected from local process.
Process exited with exit code 0.
I have even tried creating the client using Axis but receive the same error message, so the problem is withthe Web Service.
Does anyone have any ideas?
Nigel

Hi,
I'm new at Web Services using Oracle9iAS (9.0.3.0.0)and am having a problem running the tutorial at http://www.oracle.com/technology/tech/webservices/htdocs/series/statelessjava/index.html.
I manage to get to the point of deploying the Web Service and everything is fine. I then create the Web Service Stub and that seems to be created OK, but when I come to run it I get the error:
C:\OC4J\jdk\bin\javaw.exe -client -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=1328 -classpath C:\WorkArea\JDeveloper\Project\classes;C:\jdev\lib\jdev-rt.jar;C:\jdev\lib\jdev-rt.jar;C:\soap\lib\soap.jar;C:\lib\xmlparserv2.jar;C:\jlib\javax-ssl-1_2.jar;C:\jlib\jssl-1_2.jar;C:\j2ee\home\lib\activation.jar;C:\j2ee\home\lib\mail.jar;C:\j2ee\home\lib\http_client.jar HelloImplStub
Debugger connected to local process.
[SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type "text/html", must be: "text/xml". Response was:
<HTML><HEAD><TITLE>500 Internal Server Error</TITLE></HEAD><BODY><H1>500 Internal Server Error</H1><PRE>Servlet error: Cannot generate Class: C:\OC4J\j2ee\home\application-deployments\WorkspaceStatelessJava-ProjectStatelessJava-WS\WebServices\temp\__java_stateless_rpc\__HelloImplStatelessWrapper.java:9: '.' expected
import IHelloImpl;
                 ^
1 error
</PRE></BODY></HTML>
     at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:209)
     at org.apache.soap.rpc.Call.invoke(Call.java:268)
     at HelloImplStub.sayHello(HelloImplStub.java:73)
     at HelloImplStub.main(HelloImplStub.java:34)
Debugger disconnected from local process.
Process exited with exit code 0.
I have even tried creating the client using Axis but receive the same error message, so the problem is withthe Web Service.
Does anyone have any ideas?
Nigel

Similar Messages

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

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

  • 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

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

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

  • Google Web Service Tutorial

    Hi,
    Anybody try the Google Web Service Tutorial available on the portal. I am getting the following error :
    May 3, 2005 10:41:03 AM Warning Client_Thread_16 Call failed
    javax.xml.soap.SOAPException: SOAP Response Message was not well formed (java.net.ConnectException: Connection refused).
         at com.sapportals.portal.prt.service.soap.SOAPService.call(SOAPService.java:165)
         at com.sapportals.portal.prt.service.soap.PRTSOAPCall.invokeMethod(PRTSOAPCall.java:217)
         at com.tutorial.wsdl2service.MyGoogleService.doGoogleSearch(MyGoogleService.java:192)
         at com.tutorial.wsdl2service.MyGooglePage$GoogleDynPage.onSearchButtonClicked(MyGooglePage.java:98)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:172)
         at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:101)
         at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:135)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:301)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:191)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:217)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:580)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:301)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:191)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:670)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:229)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:555)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:149)
         at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:833)
         at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:672)
         at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:314)
         at com.inqmy.services.httpserver.server.Response.handle(Response.java:173)
         at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1288)
         at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
         at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)
         at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:148)
    com.sapportals.portal.prt.service.soap.SOAPService@41ab0 #

    > Hi Gregor,
    >
    > Was away travelling. Thanx for your timely reply.
    > I was able to solve my issue on my return. thanx.
    > Please accept points for your help,
    >
    > thanx,
    > rajesh.
    Hi Rajesh,
    So when all was said and done, did you get the Google Web Service to work and display correctly?  The documentation (tutorial) is ok until it gets to the end (for Displaying results) then it's all but non-existent.  I tried going through the tutorial but didn't get this to work.

  • 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

  • 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

  • Can't find java source to web services tutorial

    When I down load the Java Web Services Tutorial zip file, all that is in there are html files. I've read all sorts of references to the source, even a directory structure, but I cannot find the files.
    I have gone to:
    http://java.sun.com/webservices/downloads/webservicespack.html
    And clicked on the Java WebServices Tutorial, v1.5_01 Download.
    The java source files to the tutorial are NOT in that zip file.

    Hmm, the URL for the tutorial you gave isn't working for me.
    I've checked a bit more through the tutorial and JWSDP examples, and they all match for me. I'm looking at JWSDP version 1.5, and the tutorial here:
    http://java.sun.com/webservices/docs/1.5/tutorial/doc/index.html
    I can't find a 'HelloService' in this tutorial (I also have the tutorial downloaded, grep gave no results). The tutorial refers to, for example, to an example in <JWSDP_HOME>/xmldsig/samples/validate, which I have in my JWSDP. (The page that refers to this example is http://java.sun.com/webservices/docs/1.5/tutorial/doc/XMLDigitalSignatureAPI8.html#wp511406)
    If you're really looking at the tutorial version 1.3 (as the URL looks) that could explain it. So, my hunch is a version mismatch, but I could be way off the mark.
    -Tim

  • 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

  • Java web services tutorial.

    Hi i have seen and tried the Java web services JAX-RPC tutorial.
    And i have a question here.
    If i want to invoke lets say a web service on a .NET platform, can i still use JAX-RPC to invoke it?
    Must the server implement JAX-RPC if i want to use it on the client side?
    sorry i still not clear about it.

    once you are done creating .war files having WSDL and all, deploy it on Tomcat or any other web container.
    create .vb (or which ever language) stub for the JAX-RPC service using WSDL.exe for the .NET enviornment.
    In your .NET enviornment, import this stub in your project. In your code, you can define a local varible as a "JavaService" object and assign the instance of your jax-rpc service and use the local variable methods as any other object method calls.

Maybe you are looking for