SOAP:ENV Error: Resource..not found on this server

I created a simple java class with a method that returns org.w3c.dom.Element type.
Created web service for this class and method in Jdeveloper.
Deployed this web service in OC4J locally (as explained by other web services examples).
Then I created a Client Stub for this web service (.wsdl file).
When testing this client stub ( I followed the same steps as mentioned in OTN DEPT/EMP Web Service), I get the following exception:
D:\JDEVELOPER\jdk\bin\javaw.exe -ojvm -classpath D:\JDEVELOPER\jdev\mywork\MyWorkspace\MyProject2\classes;D:\JDEVELOPER\jdev\lib\jdev-rt.jar;D:\JDEVELOPER\jdbc\lib\classes12.jar;D:\JDEVELOPER\jdbc\lib\nls_charset12.jar;D:\JDEVELOPER\jdev\lib\jdev-rt.jar;D:\JDEVELOPER\soap\lib\soap.jar;D:\JDEVELOPER\lib\xmlparserv2.jar;D:\JDEVELOPER\jlib\javax-ssl-1_2.jar;D:\JDEVELOPER\jlib\jssl-1_2.jar;D:\JDEVELOPER\j2ee\home\lib\activation.jar;D:\JDEVELOPER\j2ee\home\lib\mail.jar;D:\JDEVELOPER\j2ee\home\lib\http_client.jar;D:\JDEVELOPER\lib\xmlparserv2.jar;D:\JDEVELOPER\lib\xmlcomp.jar;D:\JDEVELOPER\rdbms\jlib\xsu12.jar GetProductsClient
[SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type "text/html", must be: "text/xml". Response was:
<HTML><HEAD><TITLE>404 Not Found</TITLE></HEAD><BODY><H1>404 Not Found</H1>Resource /MyWorkspace-MyProject2-context-root/GetProducts not found on this server</BODY></HTML>
The SOAP response is as bellow:
HTTP/1.1 404 Not Found
Date: Wed, 27 Nov 2002 15:36:27 GMT
Server: Oracle9iAS (9.0.3.0.0) Containers for J2EE
Content-Length: 171
Connection: Close
Content-Type: text/html
<HTML><HEAD><TITLE>404 Not Found</TITLE></HEAD><BODY><H1>404 Not Found</H1>Resource /MyWorkspace-MyProject2-context-root/GetProducts not found on this server</BODY></HTML>
The Debug shows, the Method getProductsXM() in the client stub is failing at
Response response = call.invoke(endpointURL, "");
This appears to be generating fault and the code is throughing exception which is not casted in to a Element type.
Not sure what is causing this to fail. And I have not toucjed/ changed the URI for this webservice myself at all. Whatever URIs or Name spaces are there, they are all generarted by JDeveloper.
I was trying to create a web service that display/return Resultset.
Any feedback/suggestions ? I would appreciate if you can point me to some sample code that does this ( returning Resultset as XML -<ROWSET> Element)
Thanks,
Madhu

Does this do the trick?
Server side class:
import org.w3c.dom.*;
import oracle.xml.parser.v2.*;
public class Employee
public Employee ()
public Element getEmployeeElement(){
Document doc = new XMLDocument();
Element elAdd = doc.createElement( "employee");
Element elA = doc.createElement( "name");
elA.appendChild(doc.createTextNode("Mike"));
elAdd.appendChild(elA);
doc.appendChild(elAdd);
return doc.getDocumentElement();
Generated Interface from JDev:
* Generated by the Oracle9i JDeveloper Web Services Interface Generator
* Date Created: Wed Nov 27 11:42:37 PST 2002
* This interface lists the subset of public methods that you
* selected for inclusion in your web service's public interface.
* It is referenced in the web.xml deployment descriptor for this service.
* This file should not be edited.
public interface IEmployee
public org.w3c.dom.Element getEmployeeElement();
Generated client with a print method to output the result (using WSDL generated by JDeveloper):
import oracle.soap.transport.http.OracleSOAPHTTPConnection;
import org.apache.soap.encoding.soapenc.BeanSerializer;
import org.apache.soap.encoding.SOAPMappingRegistry;
import org.apache.soap.util.xml.QName;
import java.net.URL;
import org.apache.soap.Constants;
import org.apache.soap.Fault;
import org.apache.soap.SOAPException;
import org.apache.soap.rpc.Call;
import org.apache.soap.rpc.Parameter;
import org.apache.soap.rpc.Response;
import org.w3c.dom.Element;
import java.util.Vector;
import java.util.Properties;
import oracle.xml.parser.v2.*;
* Generated by the Oracle9i JDeveloper Web Services Stub/Skeleton Generator.
* Date Created: Wed Nov 27 11:39:29 PST 2002
* WSDL URL: file:/D:/demo/Workspace5/Project1/src/Employee.wsdl
public class EmployeeStub
public EmployeeStub()
m_httpConnection = new OracleSOAPHTTPConnection();
m_smr = new SOAPMappingRegistry();
public static void main(String[] args)
try
EmployeeStub stub = new EmployeeStub();
// Add your own code here.
Element e = stub.getEmployeeElement();
((XMLElement)e).print(System.out);
catch(Exception ex)
ex.printStackTrace();
public String endpoint = "http://127.0.0.1:8888/Workspace5-Project1-context-root/Employee";
private OracleSOAPHTTPConnection m_httpConnection = null;
private SOAPMappingRegistry m_smr = null;
public Element getEmployeeElement() throws Exception
Element returnVal = null;
URL endpointURL = new URL(endpoint);
Call call = new Call();
call.setSOAPTransport(m_httpConnection);
call.setTargetObjectURI("Employee");
call.setMethodName("getEmployeeElement");
call.setEncodingStyleURI(Constants.NS_URI_LITERAL_XML);
Vector params = new Vector();
call.setParams(params);
call.setSOAPMappingRegistry(m_smr);
Response response = call.invoke(endpointURL, "");
if (!response.generatedFault())
Parameter result = response.getReturnValue();
returnVal = (Element)result.getValue();
else
Fault fault = response.getFault();
throw new SOAPException(fault.getFaultCode(), fault.getFaultString());
return returnVal;
public void setMaintainSession(boolean maintainSession)
m_httpConnection.setMaintainSession(maintainSession);
public boolean getMaintainSession()
return m_httpConnection.getMaintainSession();
public void setTransportProperties(Properties props)
m_httpConnection.setProperties(props);
public Properties getTransportProperties()
return m_httpConnection.getProperties();
Mike.

Similar Messages

  • ISE Guest Portal - Error Resource not found

    Hello,
    When I create a guest user through the sponsor portal, then try to login with this guest user through the Guest Portal, after I press login button, the following error message occurs and do not know what to do to solve.
    Error: Resource not found.
    Resource: /guestportal/
    None of the messages on the forum about it helped me to solve the problem.
    I am using ISE 1.1.3.124 and this is a new re-image appliance.
    Can anyone help?                  

    Hello,
    As you are not able to  get the guest portal, then you need to assure the following things:-
    1) Ensure that the  two  Cisco av-pairs that are configured on the authorization profile should  exactly match the example below. (Note: Do not replace the "IP" with the  actual Cisco ISE IP address.)
    –url-redirect=https://ip:8443/guestportal/gateway?...lue&action=cpp
    –url-redirect-acl=ACL-WEBAUTH-REDIRECT (ensure that this ACL is also  defined on the access switch)
    2) Ensure that the URL redirection portion of the ACL have been applied  to the session by entering the show epm session ip   command on the switch. (Where the session IP is the IP address that is  passed to the client machine by the DHCP server.)
    Admission feature : DOT1X
    AAA Policies : #ACSACL#-IP-Limitedaccess-4cb2976e
    URL Redirect ACL : ACL-WEBAUTH-REDIRECT
    URL Redirect :
    https://node250.cisco.com:8443/guestportal/gateway?sessionId=0A000A72
    0000A45A2444BFC2&action=cpp
    3) Ensure that the preposture assessment DACL that is enforced from the  Cisco ISE authorization profile contains the following command lines:
    remark Allow DHCP
    permit udp any eq bootpc any eq bootps
    remark Allow DNS
    permit udp any any eq domain
    remark ping
    permit icmp any any
    permit tcp any host 80.0.80.2 eq 443 --> This is for URL redirect
    permit tcp any host 80.0.80.2 eq www --> Provides access to internet
    permit tcp any host 80.0.80.2 eq 8443 --> This is for guest portal
    port
    permit tcp any host 80.0.80.2 eq 8905 --> This is for posture
    communication between NAC agent and ISE (Swiss ports)
    permit udp any host 80.0.80.2 eq 8905 --> This is for posture
    communication between NAC agent and ISE (Swiss ports)
    permit udp any host 80.0.80.2 eq 8906 --> This is for posture
    communication between NAC agent and ISE (Swiss ports)
    deny ip any any
    Note:- Ensure that the above URL Redirect has the proper Cisco ISE FQDN.
    4) Ensure that the ACL with the name "ACL-WEBAUTH_REDIRECT" exists on  the switch as follows:
    ip access-list extended ACL-WEBAUTH-REDIRECT
    deny ip any host 80.0.80.2
    permit ip any any
    5) Ensure that the http and https servers are running on the switch:
    ip http server
    ip http secure-server
    6) Ensure that, if the client machine employs any kind of personal  firewall, it is disabled.
    7) Ensure that the client machine browser is not configured to use any  proxies.
    8) Verify connectivity between the client machine and the Cisco ISE IP  address.
    9) If Cisco ISE is deployed in a distributed environment, make sure that  the client machines are aware of the Policy Service ISE node FQDN.
    10) Ensure that the Cisco ISE FQDN is resolved and reachable from the  client machine.
    11) Or you need to do re-image again.

  • Resource /analytics not found on this server

    I've tried a lot of different things to overcome this issue, but I'll try and keep this brief. Hopefully someone else has encountered a similar problem :-)
    I'm getting the following error with I try to access http://localhost:9704/analytics:
    "Resource /analytics not found on this server"
    My setup:
    Windows 7
    Oracle DB 11g Release 2 installed locally
    OBIEE 10g v10.1.3.2
    I installed 11g Release 2 prior to installing OBIEE.
    I can connect to databases through both 11g and OBIEE. I have successfully imported database metadata into OBIEE and built a basic repository. When I try to access analytics I get the error.
    I also have tried logging into Application Server Control (http://localhost:9704/em/) as oc4jadmin. I get the following error:
    "This OC4J is configured to make JMX connections via RMIS and fall back to RMI if the RMIS port is not configured. The RMIS connection on the OC4J local instance is configured but a connection could not be established. The JMX protocol is specified by the oracle.oc4j.jmx.internal.connection.protocol property in opmn.xml"
    The only opmn.xml file I find on my system is at C:\OracleBI\oc4j_bi\j2ee\home\applications\ascontrol\ascontrol\WEB-INF\config\registration, and it doesn't have the oracle.oc4j.jmx.internal.connection.protocol in it.
    I've tried the usual stop/start services, restart the computer, making sure ORACLE_HOME and JAVA_HOME are set. Any suggestions on what else to try?

    Thanks again Rachit. I had found those instructions, but since I can't get into Application Server Control, I can't redeploy the war in that way.
    Last night I was able to fix my problem. Here is what I ended up doing:
    1) Uninstall OBIEE
    2) Restart computer
    3) Delete any OBIEE files that uninstall left (there was still on OracleBI directory structure)
    4) Restart computer again
    5) Install the latest *32-bit* JDK. I had the latest *64-bit* version, and had a suspicion that I might need the 32-bit
    6) Restart computer
    7) Reinstall OBIEE, pointing to the 32-bit JDK install
    8) Restart computer
    After that I am able to launch presentation services and get into Answers.
    I still have one problem to overcome, but that is for another thread if I can't figure it out.

  • Error: Resource not found: ${SCRATCH_COMMAND_ICON}.

    Hello ,
    I have just installed  SQL Devloper Version 4.0.0.12 [Build MAIN-12.27] on on windows7-64Bit machine.
    I just observed following error on Extensions log window.
    -oracle.sqldeveloper.migration.application
    Error: Resource not found: ${SCRATCH_COMMAND_ICON}
    Note: I already had delppoyed Oracle SQL Developer 3.2 Release
    when i double click the error its taking me to extension.xml line : <property name="SmallIcon">res:${SCRATCH_COMMAND_ICON}</property>
    and i see "java.io.PrintWriter@57fff4da" line in Messages-Log window.
    Hope this error  doesn't create any problem. Any Idea ?

    Getting the same error, and I am trying to use the database migration tool.
    Under the Extensions Tab:
         oracle.sqldeveloper.migration.application
              Warning: Can't find bundle for base name oracle.dbtools.migration.gui.AppScanarb, locale en US
              Warning: Can't find bundle for base name oracle.dbtools.migration.gui.AppScanarb, locale en US
              Warning: Can't find bundle for base name oracle.dbtools.migration.gui.AppScanarb, locale en US
              Error: Resource not found: ${SCRATCH_COMMAND_ICON}.
    Message was edited by: dbcapoeira

  • ACS: Resource not found or internal server error ErrorCode: 500 has occured. Click here to get back to the server

    i have installed cisco acs server 5.3 and applied an eval license. when i am going to define an authorization rule in access policy, i can find and predefined rules and i can not create any rule of my own. if i do any thing i get this error message.
    ACS: Resource not found or internal server error
    ErrorCode: 500 has occured.      Click here to get back to the server
    can any one please help me on this.

    Anyone know of what could be causing this problem, when using a supported browser?
    We are running ACS version 5.3.0.40.9 (appliance).
    We are using IE 8.  When using ACS, everything works fine for a period of time, and then at (seemingly) random times, we will suddenly get the "ACS: Resource not found or internal server error".  The only way to get working again is to log out of ACS and log back in. 
    Also, we seem to get logged out at random times, even while active and in the middle of updating something.  Sometimes we receive the message that our session has timed out and other times we are simply dropped back to the login screen, with no error or timeout message.  Either way, it happens while we are definitely active and working...not a logout due to inactivity.
    This is all with IE8.  Any ideas?
    TIA

  • I have downloaded a movie from ITunes.  It shows up in my video app.  When I go to play it I get an error message: "The requested URL was not found on this server". When I checked back on iTunes, where you click to rent or buy a movie it says "Downloaded"

    I have downloaded a movie from ITunes.  It shows up in my video app.  When I go to play it I get an error message: "The requested URL was not found on this server". When I checked back on iTunes, where you click to rent or buy a movie it says "Downloaded".  Any advice on what I can do in order to watch this movie that I rented a couple of weeks ago?

    Select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History on your computer.

  • Problem with Home Sharing.  Getting the error "The Requested URL was not Found on this Server"

    I recently purchased an iPhone 5.  As I do with all of my AppleTVs, iPads, iPods and an iPhone 4 in my home, I connected the 5 to my home network and accessed the shared video library using home sharing.  My iTunes library is roughly 85% iTunes purchases, a handful of videos taken with iOS devices, and some video ripped with Handbrake.  All of these videos work fine on all devices in my home except my new iPhone 5.  When I access the shared video library on my iPhone 5, all of the textual data for all of the videos appears, however, I can only get the iPhone to play 1 video of the dozens in my iTunes library. When I try to play any other, I get the error, "The Requested URL was not Found on this Server."
    Interestingly, only one video in my entire shared library displays the artwork associated with it in my iTunes library on my iPhone 5, and that's the one I can stream without a problem. Even more interestingly, that video I am able to stream was ripped using Handbrake (there are a number in my library ripped using Handbrake, but just this one will stream to my iPhone 5 for some reason).
    I'm using the latest version of iTunes (10.7) on my home (iMac) computer (running OSX 10.8.2- Mountain Lion)and of course iOS 6 on the iPhone 5. I've tried resetting my iPhone several times as well as restarting my iMac which holds my iTunes library.
    Does anyone have any ideas as to what's going on?

    Can you see if you can view index page from a browser on iPhone.
    Have you seen live streams working from a different computer...
    if not then check if a proper crossdomain.xml file in its place(webroot folder).

  • After uprading to iOS 5.1 I can no longer play videos in my camera roll. I just get the following error "The  requested URL was not found on this server"

    After uprading to iOS 5.1 I can no longer play videos in my camera roll. I just get the following error "The  requested URL was not found on this server".
    Anyone have any ideas?

    You have two choices to try & fix this: 1. Backup your phone, then restore as a new device, then restore from the backup you first created, or 2. Follow the advise from this poster:
    I had the same problem with the black blocks after upgrading to iOS4 on my iPhone. The reason for the black blocks is that the thumbnail images for those particular images have not been created when the Photo Library has been updated to iOS4. I followed the advice on a couple of blogs and fixed the problem.
    1. I downloaded iPhone Explorer free software (http://www.macroplant.com/iphoneexplorer/) so I could view the photo data folders on my phone. I could see that the thumbnail images were missing.
    2. I followed a slight variation on the instructions on this blog. (http://blog.mbentley.net/2010/06/iphone-ios-4-upgrade-restore-lost-pictures-in-c amera-roll/)
    3. First I copied the Photo Data folder by dragging it from the iPhone Explorer window to my Mac desktop.
    4. Through iPhone Explorer I deleted the info.plist file in the Media/PhotoData/MISC folder.
    5. I also deleted the Photos.sqlite and PhotosAux.sqlite files in Media/PhotoData.
    6. I then rebooted the phone and launched the Photo Library.
    7. The Library rebuilt it's self again and recreated the thumbnails.
    8. The problem was fixed!!! Thank you M Bentley!
    I hope this helps - this has been bugging me for 2 weeks.
    Regards
    Alijm23

  • While accessing my iTunes an error message comes up saying; The requested URL was not found on this server

    While trying to access my library in iTunes, I receive an error message; The requested URL was not found on this server. This only happens with my older songs, but not with the ones I have most recently added? Any thoughts?

    Select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History on your computer.

  • Error: Resource not found in FilterOptionCollection. Please help

    Hi Experts,
    I'm currently implementing Approve Requests at a customer.
    I've got the service TASKPROCESSING pointing to ERP_WF. I can see the catalog SAP_FND_TC_TX1 and I've created a tile, pointing to my scenario as defined in the netweaver gateway.
    When I go to launchpad the reference error message is displayed.
    Details on the word file.
    Error Resource not found Filter Option Collection - Approve Requests.docx - Google Drive
    Thanks in advance!

    Thank you Andre,
    We finally solved it. I post the correction for future reference.
    The problem was solved by changing the configuration on the assignment of the data provider to the data model.
    ZTM_TGW_SVC_MODEL_0001_BE software version was DEFAULT, when it should've been /IWPGW/BWF.
    The route in SPRO is: SAP Netweaver->Gateway>OData Channel>Administration>General Settings> Assign Data Provider to Data Model.

  • Resource not found or internal server error when trying to edit location

    Hi all,
    ACS is appliance and version 5.2.0.26.7
    The problem is after creating location under all locations.
    When trying to click on the location name to edit location profile, there is an error page that shows
    "ACS:Resource not found or internal server error"
    But if click on the radio button and press the edit button at the bottom of page.
    There is no problem.
    Any on has the same problem?
    Detail step and screen capture in attached file.

    I can't find any CDETS that exactly match what you describe but up to patch 10 of 5.2 the follwoing CDETS related to NDGs are included:
    CSCtx83260
    NDG locations not showing up on GUI
    CSCtu02752
    ACS 5.2 patch 8 cannot display long lists of NDGs
    CSCtu04594
    ACS 5.2.0.26.7 - only 50 NDGs shown on GUI with more than 100 configured

  • Can't do online banking. Get error message. "The requested URL /Summary.cgi was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    I can't do online banking. When I try to open the page I get error "The requested URL /Summary.cgi was not found on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    Hi,
    These blog posts might help debug problem
    Oracle APEX: Got a 404 Not Found? | Inside Oracle APEX by Patrick Wolf
    daust_de :: Oracle XE / APEX: Troubleshooting the 404-not found error on XE
    Regards,
    Jari

  • "The requested URL /apex/f was not found on this server" error

    Hi there
    I'm getting the following error message when trying to access our apex app:
    http://theHost:8080/apex
    The requested URL /apex/f was not found on this server
    It just happened out the blue so i've no idea what happened. Can someone help me to find a solution asap?
    Many thanks, Jon

    How did you fix this, please? I'm getting the same error, and none of the solutions on this forum apply.
    Edited by: Jean-Marc, UK on Mar 16, 2010 2:34 PM

  • Outlook for mac, message HTTP error resource not found 18596

    outlook for mac, message HTTP error resource not found 18596 really strange and outlook is connected and as soon as you send a mail you suddenly get the message, really annoying actually, seems to be an old problem!!!
    Help appreciated!!!!!!!!

    Same probelm any suggestions ????

  • My bookmarks suddenly are not accessible. Each time I try to use a bookmark, the following message comes up on the error page: The requested URL /exec/obidos/subst/home/home.html/103-3592028-6560639 was not found on this server. The page error is ident

    My bookmarks suddenly are not accessible. Each time I try to use a bookmark, the following message comes up on the error page: The requested URL /exec/obidos/subst/home/home.html/103-3592028-6560639 was not found on this server. The page error is identified as "ERROR 404" I tried a clean install of the latest version; no luck. looked at plug-ins & add-ons; no luck
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

    Hi Mac Attack,
    My computer will not disconnect from the internet.  It seems to find a clone router and continues even when I shut down and unplug my my own home iy
    Your main question was 'chopped' in the title. Please reply in the body of a reply box with the full question and anything you have tried. And no, the long report was not helpful .
    If the same website is opening each time you launch a browser (Safari?) hold down the shift key as you launch to prevent previous pages from opening.
    Have a look at your settings in Safari > Preferences. Especially General and Privacy.
    Reset Safari to remove cookies and other stored data.
    System Preferences > General
    Have a look at your settings in System Preferences >  Security & Privacy.
    Call back with more questions.
    Regards,
    Ian

Maybe you are looking for

  • My IPad keeps using my old Apple ID to try to access iCloud.

    Hey My Ipad shows the correct ID in the ITunes Store Settings but when I try to access iCloud my old email pops up as my Apple ID. I can't delete it and type in the correct one, and I can't sign in undet that email bexause it no longer exists, I don'

  • Cannot install Windows Live ID Sign-in Assistant.

    Well, I am having some issues installing "Windows Live Essentials" update and "Games for Windows Marketplace". I have found that the cause of this is from "Windows Live ID Sign-in Assistant", (wllogin_64.msi) which I am unable to install. Things I ha

  • At&t to T-Mobile on unlocked Bold - Why does everything work? Will it keep on working?

    Due to at&t's lack of coverage at my house, I changed to T-Mobile.  I unlocked my Bold and simply put the T-Mobile sim card in. To my surprise, EVERYTHING works perfectly.   I am on the BES Data plan. The one thing that I don't understand is why my B

  • XY Graph & Move Axes to middle

    Is there a way to format an XYGraph so that the X and Y Axes are not at the left and bottom as default, but located at x=0 and y=0 (similar to a crosshair section)?  I've been unsuccessful finding a property to control this. Thanks, Paul Attachments:

  • Create a custom form

    Hi All, I am trying to create a Webcenter Portal application that would allow users to create a new page and add some Input Box and a button which would call the Email API to send emails. First, I have added Input Box and Command Button components to