facebook

Terraserver example problem

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #281635 Reply

    I have tried to deploy the Trerrserver WS Client example and when I try to access it I get error when I hit ‘submit’ If I use the same data city=Dallas state=TX country = United States inthe Web Service Explorer it works. I tried deploying on Tomcat server that comes with MyEclipse (Tomcat 6) and with an external (Tomcat 5) server and get essentially the same error (see below please) Any suggestions?

    Any help greatly appreciated.

    –Chris

    HTTP Status 500 –

    ——————————————————————————–

    type Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    org.apache.jasper.JasperException: org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Server returned error code = 301 for URI : http://terraserver.microsoft.com/TerraService2.asmx. Check server logs for details
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:435)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

    root cause

    org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Server returned error code = 301 for URI : http://terraserver.microsoft.com/TerraService2.asmx. Check server logs for details
    org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:92)
    org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
    $Proxy13.convertPlaceToLonLatPt(Unknown Source)
    org.apache.jsp.TerraServer_jsp._jspService(TerraServer_jsp.java:161)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

    root cause

    org.codehaus.xfire.fault.XFireFault: Server returned error code = 301 for URI : http://terraserver.microsoft.com/TerraService2.asmx. Check server logs for details
    org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
    org.codehaus.xfire.client.Invocation.invoke(Invocation.java:83)
    org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
    org.codehaus.xfire.client.Client.invoke(Client.java:336)
    org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
    org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
    $Proxy13.convertPlaceToLonLatPt(Unknown Source)
    org.apache.jsp.TerraServer_jsp._jspService(TerraServer_jsp.java:161)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

    root cause

    org.codehaus.xfire.XFireRuntimeException: Server returned error code = 301 for URI : http://terraserver.microsoft.com/TerraService2.asmx. Check server logs for details
    org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:130)
    org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
    org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
    org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
    org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
    org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
    org.codehaus.xfire.client.Client.invoke(Client.java:336)
    org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
    org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
    $Proxy13.convertPlaceToLonLatPt(Unknown Source)
    org.apache.jsp.TerraServer_jsp._jspService(TerraServer_jsp.java:161)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.

    #281655 Reply

    Loyal Water
    Member

    Can you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.

    #281656 Reply

    Here you go!

    Thanks for your help,

    *** Date:
    Monday, February 11, 2008 2:01:55 PM PST

    ** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.6.0_02

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 6.0.1 GA
    Build id: 6.0.1-GA-200710

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 6.0.1 GA
    Build id: 6.0.1-GA-200710

    Eclipse Graphical Editing Framework

    Version: 3.3.1.v20070814
    Build id: 20070814-1555

    Eclipse Project SDK

    Version: 3.3.2.R33x_r20071022-7M7J7C_Mu2gop0b_GAwplOBhyuKO
    Build id: M20071023-1652

    Eclipse Platform

    Version: 3.3.2.R33x_v20071022-_19UEksF-G8Yc6bUv3Dz
    Build id: M20071023-1652

    Eclipse RCP

    Version: 3.3.2.R33x_r20071022-8y8eE9CEV3FspP8HJrY1M2dS
    Build id: I20070625-1500

    Eclipse Plug-in Development Environment

    Version: 3.3.2.R33x_r20071022-7N7M4CYWLBCz-yHkMIuHN
    Build id: M20071023-1652

    Eclipse Java Development Tools

    Version: 3.3.1.r331_v20070629-7o7jE72EDlXAbqAcnbmyg1rf8RIL
    Build id: I20070625-1500

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\eclipse\eclipse.exe
    -name
    Eclipse
    –launcher.library
    C:\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.2.R331_v20071019\eclipse_1021.dll
    -startup
    C:\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
    -product
    com.genuitec.myeclipse.product.ide
    -vm
    c:\java6\bin\..\jre\bin\client\jvm.dll

    #281657 Reply

    I’m not quite sure why but I tried running it again against the plugin Tomcat server and got a somewhat different error. Not sure why or if it is related to the problem see below if it might help:
    Sorry, wish I knew why.

    HTTP Status 500 –

    ——————————————————————————–

    type Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    org.apache.jasper.JasperException: An exception occurred processing JSP page /TerraServer.jsp at line 106

    103: place.setCountry(“USA”);
    104:
    105: //Process result
    106: result = service.convertPlaceToLonLatPt(place);
    107: longtitude = String.valueOf(result.getLon());
    108: latitude = String.valueOf(result.getLat());
    109: } else {

    Stacktrace:
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:524)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:435)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

    root cause

    org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Server returned error code = 301 for URI : http://terraserver.microsoft.com/TerraService2.asmx. Check server logs for details
    org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:92)
    org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
    $Proxy13.convertPlaceToLonLatPt(Unknown Source)
    org.apache.jsp.TerraServer_jsp._jspService(TerraServer_jsp.java:161)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

    root cause

    org.codehaus.xfire.fault.XFireFault: Server returned error code = 301 for URI : http://terraserver.microsoft.com/TerraService2.asmx. Check server logs for details
    org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
    org.codehaus.xfire.client.Invocation.invoke(Invocation.java:83)
    org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
    org.codehaus.xfire.client.Client.invoke(Client.java:336)
    org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
    org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
    $Proxy13.convertPlaceToLonLatPt(Unknown Source)
    org.apache.jsp.TerraServer_jsp._jspService(TerraServer_jsp.java:161)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

    root cause

    org.codehaus.xfire.XFireRuntimeException: Server returned error code = 301 for URI : http://terraserver.microsoft.com/TerraService2.asmx. Check server logs for details
    org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:130)
    org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
    org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
    org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
    org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
    org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
    org.codehaus.xfire.client.Client.invoke(Client.java:336)
    org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
    org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
    $Proxy13.convertPlaceToLonLatPt(Unknown Source)
    org.apache.jsp.TerraServer_jsp._jspService(TerraServer_jsp.java:161)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.

    ——————————————————————————–

    Apache Tomcat/6.0.13

    #281670 Reply

    Loyal Water
    Member

    I was able to reproduce this error at my end as well. I guess this is related to the web service URL. I’ll get this checked and get back to you with an update.

    #281671 Reply

    Thank you Nipun! I look forward to seeing your advice.

    #281770 Reply

    Riyad Kalla
    Member

    kyburg,
    Thanks for the heads up on this. It looks like Microsoft changed the web service definition. I regenerated the client classes and updated the project. Please reinstall it and rerun, it should work.

    #281792 Reply

    Thanks folks, Perfect!

    I really appreciate the help.

    –Chris

    #306362 Reply

    where are the files to recompile and run with the new URL?? (msrmaps.com??) I’m having an issue folowing the project

    #306363 Reply

    Ton Huisman
    Member

    Is that terraserver still up?

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Terraserver example problem

You must be logged in to post in the forum log in