Article:
  Using SOAP with Tomcat
Subject:   BadTargetObjectURI error solution
Date:   2003-06-29 17:04:52
From:   anonymous2
For those who are seeing the following messages:


Fault Code = SOAP-ENV:Server.BadTargetObjectURI
Fault String = Unable to resolve target object: CalcService


It seems that the $TOMCAT_HOME/webapps/soap/WEB_INF/classes subdirectory must be in your CLASSPATH _before_ TOMCAT is started in order for the app to work.


Hope this helps.

Full Threads Oldest First

Showing messages 1 through 4 of 4.

  • BadTargetObjectURI error solution
    2004-03-22 20:19:00  hector_durante [View]

    I fix it when i put the server program CalcService.class into the directory TOMCAT_HOME\shared\classes\onjava instead of TOMCAT_HOME\webapps\soap\WEB-INF\classes\onjava\
    and execute java CalcClient 90 98 into the directory TOMCAT_HOME\webapps\soap\WEB-INF\classes\
    note.- the CalcClient.class must be in TOMCAT_HOME\webapps\soap\WEB-INF\classes\onjava\
    • BadTargetObjectURI error solution
      2006-02-17 08:32:05  karthindia [View]

      your reply helped and works
      thanks
  • BadTargetObjectURI error solution
    2003-12-13 00:00:33  anonymous2 [View]

    This may be a bit outdated, but I just went through the same fight. You can't always follow the tutorial classpaths because it all depends on how you installed tomcat and apache in the first place and some of the directories can be misleading.

    The easiest thing to do is to start Tomcat and click on Server Administration. Then select Environmental Entries and look and see where your home is.

    Place your service classes in the webapps folder under that directory and you should be golden. For me, it was C:/JWSDP1.3/webapps

    Scott
  • BadTargetObjectURI error solution
    2003-12-12 23:59:59  anonymous2 [View]

    This may be a bit outdated, but I just went through the same fight. You can't always follow the tutorial classpaths because it all depends on how you installed tomcat and apache in the first place and some of the directories can be misleading.

    The easiest thing to do is to start Tomcat and click on Server Administration. Then select Environmental Entries and look and see where your home is.

    Place your service classes in the webapps folder under that directory and you should be golden. For me, it was C:/JWSDP1.3/webapps

    Scott