Multiple web services on single server causing object undefined errors

Hi,
I've currently got a bit of a strange problem within a web service that is proving difficult to debug.
There are the web service urls :
     api.domain.com                -> /var/www/html/api.domain.com/            -> CF mapping to MYSERVICE
     testapi.domain.com          -> /var/www/html/testapi.domain.com/     -> CF mapping to MYSERVICE_test
In both instances the cfcs that contain the code to be translated into a WSDL reside in /api/..., in the case of this example, /api/common.cfc.  wsargs constists simply of refreshwsdl true.
If I call the following 2 lines ...
     obj_myservice = CreateObject('webservice','http://api.domain.com/api/common.cfc?wsdl',wsargs);
     obj_myservice_test = CreateObject('webservice','http://testapi.domain.com/api/common.cfc?wsdl',wsargs);
I then call the same method in both, and they are successful.  When checking the "Data & Services" -> "Web Services" panel within the CF control panel, only the web service "http://api.domain.com/api/common.cfc?wsdl" is listed, and not testapi.domain.com......
If I reverse the order in which the WSDL's are loaded then this switches, and testapi.domain.com..... gets listed under "Web Services" but api.domain.com..... does not.  In essence it appears as though for some reason the CF server overwrites one with the other.  The exact "object undefined" error is proving difficult to reproduce reliably.
This appears to happen no matter which server is accessing the web service, be it the same server or a remote server.  All servers involved are running CF8.  Accessing the 2 WSDL files in a browser results in the 2 WSDLs being rendered correctly with different namespace values.
On the same server are 2 more services
     MYSERVICE2
     MYSERVICE2_test
These reside in the /api2 directories on the same 2 subdomains, api. and testapi.   MYSERVICE2 and MYSERVICE2_test appear to conflict with each other.  MYSERVICE and MYSERVICE_test appear to conflict with each other.  MYSERVICE and MYSERVICE2 do not appear to conflict with each other.
Is there a configuration change or anything like that which I should be aware of that would prevent me doing the above?  The 2 /api/ directories are nearly identical with the exception that the namespace and complex type names have been set to http://api.domain.com & MYSERVICE in the first, and http://testapi.domain.com & MYSERVICE_test in the second url.
I have also tried mapping /MYSERVICE and /MYSERVICE_test within /opt/coldfusion8/WEB-INF/jrun-web.xml to no avail.
Any help would be appreciated.  If there is any useful information that I have missed off please let me know and I'll dig it out.
- Simon H

Hi,
As an extension to the above
Server                Test service         "Live" service
1 ("dev")                devtest                   devlive               http://dev(test/live).domain.com
2 ("test")                testtest                   testlive               http://test(test/live).domain.com
I currently have a test script (TEST1) that performs the following :
CreateObject + call method from devlive
CreateObject + call method from devtest
CreateObject + call method from testtest
The script errors on the third, when it attempts to call a method from devtest.  On the server on which this test script is running, by the end of this, there are the following 2 web services in the Coldfusion control panel :
http://devlive.domain.com/api/common.cfc?wsdl
http://testtest.domain.com/api/common.cfc?wsdl
I have a second test script (TEST2) on a second server distinctfrom the first test script server, on which the following is performed :
CreateObject + call method from testlive
If I execute TEST2, then it executes fine.  If I execute TEST1 straight after, then I receive the following error on TEST1
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Deserializing parameter 'objectFetchReturn':  could not find deserializer for type {http://common.types.WEBSERVICE_test}details
Where WEBSERVICE.types.common.details is a complex type (/api/types/common/details.cfc). If I then run the TEST2 script again straight after, the same error appears (with WEBSERVICE in place of WEBSERVICE_test).  If I execute TEST2 twice in a row, or TEST1 twice in a row, then the error disappears"test" server has got jrun-web.xml  edited to include the following, which "dev" does not.
  <virtual-mapping>
    <resource-path>/WEBSERVICE_test</resource-path>
    <system-path>/var/www/html/testapi.domain.com/api</system-path>
  </virtual-mapping>
  <virtual-mapping>
    <resource-path>/WEBSERVICE</resource-path>
    <system-path>/var/www/html/api.domain.com/api</system-path>
  </virtual-mapping>
I hope that this extended explaination helps.
Simon H

Similar Messages

  • Invoke multiple web services in single client

    hi everyone,
    Can we invoke multiple web services in a single client?.
    --web service                                                                                                                                                                           

    We can invoke..any number of services in a client.

  • Certificate error while connecting to multiple web service

    I am having a web service test client through which I can connects and get reports from multiple web services.
    In Development unix box, we are using "self-signed certificate" using keystore type JKS. In Production server, we are using certificate from CA.
    The web service is running in Development and in Production.
    Now I have developed single test client with a drop down selection for different web services. For example, if we select "Development", the request will go the development web service and if we select "Production", the request will go to Production web service.
    Now while connecting to Develpment service, we are settings the below certificates details Because we are using the self signed certificate.
    System.setProperty("javax.net.ssl.keyStore",keyStoreFileLocation);
    System.setProperty("javax.net.ssl.keyStorePassword",keyStorePassword);
    System.setProperty("javax.net.ssl.keyStoreType", keyStoreType);
    System.setProperty("javax.net.ssl.trustStoreType",trustStoreType);
    System.setProperty("javax.net.ssl.trustStore",trustStoreFileLocation);
    System.setProperty("javax.net.ssl.trustStorePassword",trustStorePassword);
    I am clearing the System properties using the System.clearProperty() while pointing to Production service. because in Production we are using the CA certificate from Thawte so these details are not required at all and our JRE (java 5) is pre configured to support that CA certificate.
    I am using Resin-2.1.12, axis1.2 and java5.
    Now the problem is
    (1) for the first time, when I send the request to Production Service URL, the report gets generated. For the next time when we are running against Development, it's giving below certificate error.
    sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    (2) Now restart resin and run the test client against Developemnt service URL, here report gets generated and for the next time, run the test client against Production, it's giving the certificate error.
    So for the 2nd request, it always gives the error irrespective of the web service instance selected.
    Please suggest ....thanks in advance.

    Hi  ,
    No, due to the issue is happening only on one computer.
    The error "(401) Unauthorized" usually indicates that the connection has been established but the permission check fails.  InfoPath Form Services uses the application pool identity of the web
    application to connect to resources.
    Does the account  which login the computer have permission to connect to User Profile Service Application?
    For a workaround, you can go to IIS Manager , set the User Profile Application Pool to Anonymous Access and try again.
    Also you can have a look at the blog:
    http://sharepointconnoisseur.blogspot.in/2011/04/how-to-resolve-401-unauthorized-error.html
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Failure to deploy Multiple Web Services per EAR deployment

    Hi,
    I am developing web services using EJB 3.0 beans using annotations. The deployment of EAR fails when I have more than ONE Web services in a single EAR file. The exception I get is as below. Can anybody tell me if it is not possible to package more than one service in a single EAR and each web service and its supporting classes have to go in separate EAR file.
    When I deploy One Service per EAR, the deployment works fine.
    Regards,
    Vikrant.
    ##0#0#Error##Plain###com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Exception occured during web services deployment. Unable to extract web services deployment data for archive Pem1101EJB.jar, application sap.com/Pem1101EAR.
         at com.sap.engine.services.webservices.server.deploy.ws.WSDeployProcess.extractWebServicesJ2EEEngineDescriptors(WSDeployProcess.java:304)
         at com.sap.engine.services.webservices.server.deploy.ws.WSDeployProcess.extractWebServicesJ2EEEngineDescriptors(WSDeployProcess.java:272)
         at com.sap.engine.services.webservices.server.deploy.ws.WSDeployProcess.init(WSDeployProcess.java:166)
         at com.sap.engine.services.webservices.server.deploy.WSBaseAbstractDProcess.makeProcess(WSBaseAbstractDProcess.java:307)
         at com.sap.engine.services.webservices.server.deploy.WebServicesDeployManager.deployWebServices(WebServicesDeployManager.java:1051)
         at com.sap.engine.services.webservices.server.deploy.WebServicesDeployManager.deploy(WebServicesDeployManager.java:248)
         at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:506)
         at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:249)
         at com.sap.engine.services.deploy.server.application.DeploymentTransaction.begin(DeploymentTransaction.java:215)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:384)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:418)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:2194)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:318)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:275)
         at com.sap.engine.services.dc.gd.impl.ApplicationDeployer.deploy(ApplicationDeployer.java:109)
         at com.sap.engine.services.dc.gd.impl.InitialApplicationDeployer.performDeployment(InitialApplicationDeployer.java:113)
         at com.sap.engine.services.dc.gd.impl.InitialGenericDeliveryImpl.deploy(InitialGenericDeliveryImpl.java:55)
         at com.sap.engine.services.dc.cm.deploy.impl.OnlineDeployProcessor.performDelivery(OnlineDeployProcessor.java:160)
         at com.sap.engine.services.dc.cm.deploy.impl.BulkOnlineDeployProcessor.deploy(BulkOnlineDeployProcessor.java:48)
         at com.sap.engine.services.dc.cm.deploy.impl.AbstractDeployProcessor$DeployProcessorHelper.visit(AbstractDeployProcessor.java:178)
         at com.sap.engine.services.dc.cm.deploy.impl.DeploymentItemImpl.accept(DeploymentItemImpl.java:83)
         at com.sap.engine.services.dc.cm.deploy.impl.AbstractDeployProcessor.deploy(AbstractDeployProcessor.java:77)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.performDeploy(DeployerImpl.java:631)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.doDeploy(DeployerImpl.java:488)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.deploy(DeployerImpl.java:209)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.deploy(DeployerImpl.java:154)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImplp4_Skel.dispatch(DeployerImplp4_Skel.java:875)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:351)
         at com.sap.engine.services.rmi_p4.server.ServerDispatchImpl.run(ServerDispatchImpl.java:70)
         at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:61)
         at com.sap.engine.services.rmi_p4.P4Message.execute(P4Message.java:36)
         at com.sap.engine.services.cross.fca.FCAConnectorImpl.executeRequest(FCAConnectorImpl.java:882)
         at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:52)
         at com.sap.engine.services.cross.fca.MessageReader.run(MessageReader.java:59)
         at com.sap.engine.core.thread.execution.Executable.run(Executable.java:108)
         at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:287)
    Caused by: java.lang.NullPointerException
         at com.sap.engine.services.webservices.server.deploy.j2ee.ws.J2EE14Convertor.convert(J2EE14Convertor.java:650)
         at com.sap.engine.services.webservices.server.deploy.j2ee.ws.J2EE14Convertor.convert(J2EE14Convertor.java:460)
         at com.sap.engine.services.webservices.server.deploy.j2ee.ws.J2EE14Convertor.convertJ2EEModule(J2EE14Convertor.java:297)
         at com.sap.engine.services.webservices.server.deploy.j2ee.ws.J2EE14Convertor.convertJ2EEModule(J2EE14Convertor.java:219)
         at com.sap.engine.services.webservices.server.deploy.ws.WSDeployProcess.extractWebServicesJ2EEEngineDescriptors(WSDeployProcess.java:289)
         ... 35 more

    Hi,
    Is the problem solved?
    I am also facing a similar issues and getting the following error
    "Unable to extract web services deployment data for archive ".
    Further, its a Java EE application and it doesn't contain any web service. Why am i getting this error while deploying?
    Any body can help me out in this?
    Thanks in advance,
    Venkat.

  • Multiple Web Services in one Jdeveloper project

    Hi all,
    I'm currently trying to implement a series of web services, all relating to one application. I'm using the top-down approach, where I generate the web service from a WSDL file, and add my implementation to the generated classes. The WSDL file imports all sorts of XML Schemas (xsd-files) and Jdeveloper correctly generates all the necessary java-classes for me. Lets call the first web service I create WS-1.
    This all works fine and I'm a happy panda. I can call the web service, it works, I can modif the wsdl and regenerate the web service to e.g. change the input etc. All this works.
    Just until the point where I want to create a second web service (lets call this WS-2). This new web service doesn't use all the XML Schemas that the first web service does, it is more simple with regards to in-/output. The problem arises when I modify WS-2 and Jdeveloper regenerates the Web service files (.java and the files in the WEB-INF/wsdl-directory). When I do this, it deletes the imported xsd-files that WS-1 uses (removes them from WEB-INF/wsdl).
    And when I regenerate WS-1 to get my xsd-files in again, then when I regenerate WS-2 it imports all the unnecessary xsd-files into the wsdl for WS-2.
    Something tells me, that there is a connection or shared library between all web services in one Jdeveloper project. That they all imports and uses the xsd-files in WEB-INF/wsdl.
    Is this true? Can't I have multiple web services (and wsdl-files) using different types (schema definitions) in the the same Jdeveloper project?
    One solution I can think of, is to have all my web services in different projects under the same application. But is this really necessary?
    I'm using Jdeveloper 10.1.3.3.0.

    Hi,
    pure from a coder instinct I think I would prefer them to be in separate projects for better reuse and clean separation. If I need project 1 to access aclass from Project 2, I can check the dependency check box in the project properties. Is there any business requirement that makes you think having all of these in a single project will help ?
    Frank
    Btw.: I agree that JDeveloper shouldn't constraint developers from doing what they want and if this is a limitation the feel free to file a bug

  • Can't have multiple Web Service connections in SP1

    Hello,
    I'm currently interested in adding more than 1 Web Service connection to a particular xcelsius file, but after adding the first connection, the option is disabled in the Data Manager screen. Is there a workaround for this, since before service pack 1 you could have any amount of connections and as off upgrading this was changed.
    Regards

    Yeah I totally agree, It's like someone giving you a bunch of new appliances for your home but then telling you that your not going to have any electricity.  This product is pretty much usless to me now.
    Just the thought of having to partially develop in one version of xcelsius and then port over to a version that has SP1 installed makes me ill.  From what I can tell Xcelsius Engage Server still has multiple web service connection functionality enabled (http://www.businessobjects.com/product/catalog/xcelsius_engage/comparison.asp), I'm interested to see what the cost will be to upgrade to Server.

  • Can I deploy web service on APEX server

    I have APEX 3.1.2 on 11g database.
    I need to pull data from other oracle 9i databases into APEX application. I have created web service on my pl/sql package to pull data from 9i databases and deployed service on my local oc4j instance (within jdeveloper). My APEX app pull data from multiple oracle 9i database. Now I need to move my web service to my dev/test environment.
    Can I deploy web service on APEX server? or do I need to deploy on another web server?
    I know I can easily pull the data from other oracle 9i databases using DB link. I want to explore Web services option to just to see is it possible to pull data from multiple sources into APEX app using web service running from APEX server?.
    Any help on this will be appreciated.
    RK Shah
    Edited by: RK Shah on Apr 7, 2009 7:27 PM

    I am in the same situation. Consuming a web service is easy with APEX. But publishing one needs a web server that is more complex than the one that comes with APEX for free.
    I am exploring the possibility of building the web service in Jdeveloper as you have. Then I will make a WAR file that I will publish to an apache tomcat J2EE server that another department runs. I believe it will work since all the components required should be in the WAR file.
    I am new at this. I will let you know how it works out.
    The other possibility is to upgrade the appserver to the full Oracle Fusion server (maybe). This may be expensive and be too much for just a simple web service. But then the publish to application server from jdeveloper is super easy.

  • Getting error System.Web.Services.Protocols.SoapException: Server did not r

    I am trying to acces my web service using this code
    Call call = new Call ();
    SOAPMappingRegistry soap = new SOAPMappingRegistry();
    call.setTargetObjectURI ("http://tempuri.org/");
    call.setMethodName ("EarnNValue");
    Vector params = new Vector ();
    params.addElement (new Parameter("customer_id", String.class, "gauravbehl",Constants.NS_URI_SOAP_ENC));
    params.addElement (new Parameter("channel_id", String.class, "C0002",Constants.NS_URI_SOAP_ENC));
    call.setParams (params);
    Response resp = call.invoke(new URL("http://203.199.76.2/api/earnnvalue.asmx"), "http://tempuri.org//EarnNValue") ;
    if (resp.generatedFault ())
    Fault fault = resp.getFault ();
    System.out.println (" Fault Code = " + fault.getFaultCode ());
    System.out.println (" Fault String = " + fault.getFaultString ());
    else
    Parameter result = resp.getReturnValue ();
    System.out.println (result.getValue ());
    out.println (result.getValue ());
    and i am getting the the following error
    Fault Code = soap:Client
    Fault String = System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://tempuri.org//EarnNValue.
    at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
    at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
    at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
    Please help.
    Thanx
    GB

    <%@ page language="java" import="java.util.*, java.io.*, javax.mail.*, java.net.*, org.apache.soap.util.xml.*, org.apache.soap.encoding.soapenc.BeanSerializer, org.apache.soap.encoding.*,org.apache.soap.*, org.apache.soap.rpc.*"%>
    <%
    try
    out.println ("Starting");
    System.out.println("heree");
    Call call = new Call ();
    System.out.println("here");
    SOAPMappingRegistry soap = new SOAPMappingRegistry();
    call.setTargetObjectURI ("http://tempuri.org/");
    call.setMethodName ("EarnNValue");
    call.setEncodingStyleURI("http://schemas.xmlsoap.org/soap/encoding/");
    Vector params = new Vector ();
    params.addElement (new Parameter("customer_id", String.class, "gauravbehl",Constants.NS_URI_SOAP_ENC));
    params.addElement (new Parameter("channel_id", String.class, "C0002",Constants.NS_URI_SOAP_ENC));
    params.addElement (new Parameter("category_id", String.class, "club",Constants.NS_URI_SOAP_ENC));
    params.addElement (new Parameter("transaction_date", String.class, "16/07/04 14:41:20",Constants.NS_URI_SOAP_ENC));
    params.addElement (new Parameter("parameter_id", String.class, "login",Constants.NS_URI_SOAP_ENC));
    params.addElement (new Parameter("parameter_value", String.class, "1",Constants.NS_URI_SOAP_ENC));
    call.setParams (params);
    Response resp = call.invoke(new URL("http://203.199.76.2/api/earnnvalue.asmx"), "http://tempuri.org//EarnNValue") ;
    if (resp.generatedFault ())
    Fault fault = resp.getFault ();
    System.out.println ("Something is wrong");
    System.out.println (" Fault Code = " + fault.getFaultCode ());
    System.out.println (" Fault String = " + fault.getFaultString ());
    else
    Parameter result = resp.getReturnValue ();
    System.out.println (result.getValue ());
    out.println (result.getValue ());
    catch (Exception e)
    System.out.println ("********Exception*******");
    System.out.println (e);
    out.println ("Ending");
    %>

  • OWSM and Webservices -Define policies once for multiple web services

    I thought that through using OWSM we had the possibility to use the same Policy Lines for multiple web services.
    Mostly when web services are used/integrated within an application, the same rules need to be defined and I thought this requirement could be met when using OWSM.
    But you need to define the policy requirements on each web service that's passing through a gateway or agent, why isn't it supported to define policy lines one level higher to be able to use the same requirements for multiple web services?

    Nathalie,
    For this purpose OWSM allows you to use Template Policy Pipelines.
    For individual services, you can than replace the pipeline with the Template.
    But I have to agree with you here: the templating functions are rough on the edges, e.g. limited editing capabilities.
    Hope this helps.
    Best regards, Sjoerd

  • Regarding multiple web service

    Hi,
    I am working on web services in EJB.
    for securing the web service, we use jboss-wsse security.
    Can i have multiple web services with few web services being secured and the others in-secured?
    Thanks in advance.

    Friends,
    Can you please help me out with this logic? Thanks!

  • Change/Configure Host and Port for the Web Service Proxy with Server

    Hi,
    Is there a way to configure Host and Port in generated proxy for Web service depending upon server. (ADF 11g)
    Scenario:
    We are consuming Credit Card web service from a service provider and have different Host and Port details for development, QA and Prod.
    So we created proxy classes using wsdl for development and things work fine, but when deploying code to QA or Prod we need to change the Host
    and Port details.
    Is their a way we could user variable's for Host and Port which looks to some configuration file to evaluate their values
    based on server.
    I am a bit new to this web service .. will appreciate if someone could provide an example.
    Thanks.

    Are you using Web Service Proxy or Web Service Data Control?
    If you are using Web Service Proxy. Right click on your Proxy --> Properties --> Port Endpoints. Here you can change the IP & Port details for each port.
    Venkat

  • Is it possible to define multiple web services in one project?

    I'd like to publish multiple components within one project as web services. but when I try to create it using the project New menu, it only prompts me and allows me to select one component . So does this mean only one web service can exist in one project?

    Sunil
    Thanks for the prompt reply.
    I think I should have worded my question more clearly.
    I have a project with multiple Java classes. I'd like to convert two of them into web services.
    There are two ways to co this.
    1. I right click on each class and select the Generate J2EE Web Service option. This will work correctly and allow multiple web services to be generated.
    but this is not what I want to do .
    What we are trying to do is to generate web services at the project level. I am following instructions in OTN web services tutorial :
    http://www.oracle.com/technology/obe/obe1013jdev/ws/wsandascontrol.htm
    So , this is what I do :
    1. Right-click on my project and select New from the context menu.
    2. In the New Gallery, expand Business Tier in the Categories list and select Web Services, then select Java Web Service from the Items list. Click OK.
    3. In the Select J2EE Web Service Version dialog, select J2EE 1.4 (JAX-RPC) Web Service, then click OK.
    4. Click past the welcome page
    5. This brings me to the page where I can select the web service and class.
    This is where I am stuck - it seems I can only select one web service here . Unless I am missing something.
    Or should I just repeat the process multiple times - running the wizard once for each class ?
    Thanks for the help.

  • Multiple web services sharing same session?

    I was wondering if anyone has ever implemented multiple web services for an application that allowed the web services to share the same session?
    Furthermore, I was wondering if support might be included/buried in the WSDL spec. somewhere?

    There are a number of standards emerging to support long-running conversations among Web services as well as Web service composition. Can you expand on what you're trying to achieve?
    Doron.
    Collaxa, Inc.

  • After i installed updates for my mac mini server, the web services for the server app wont start, it gives an error massage: "Error Reading Settings"

    After i installed updates for my mac mini server, the web services for the server app wont start, it gives an error massage: "Error Reading Settings"
    The system logs reads:
    Mar 29 22:06:25 server servermgrd[82]: servermgr_web:  Error Domain=XSServerFoundationErrorDomain Code=4 "Failed to read settings: Exception:
              undefined method `downcase' for nil:NilClass
              ." UserInfo=0x7fc547901080 {NSLocalizedDescription=Failed to read settings: Exception:
              undefined method `downcase' for nil:NilClass

    To check the local network for some of the common configuration problems, launch Terminal.app and issue the following diagnostic command:
    sudo changeip -checkhostname
    That'll report some local configuration information and then either no errors detected and no changes required, or it'll point to whatever configuration errors or issues it might detect.  That doesn't catch everything, but it catches the common errors.
    FWIW, 192.168.0.0/24 and 192.168.1.0/24 are poor choices for the local network, as VPNs are based on IP routing and IP routing gets tangled when the same subnet is used on both ends of the VPN. 192.168.0.0/24 and 192.168.1.0/24 are near ubiquitous in home networks and coffee shops.

  • Testing web service results in no response, but HTTP Error 500

    Hi All,
    I've already solved my problem, but I wanted to share my results. It took two days of pain, so you could imagine how wonderful I felt when it was solved. :)
    Problem: I am exposing PL/SQL procedures as web services, using JDeveloper 10.1.3. I noticed that when I expose procedures that return complex types (like records), it caused all of the web service calls to die silently. I couldn't see any other errors except Apache's HTTP 500 error. But when I ran the web service locally using JDeveloper's OC4J engine, I didn't receive any errors. Everything worked. I looked at the opmn/logs/* dir, and still no signs of the real error. So I set out to learn where I could view more logs, and I eventually found the error inside $ORACLE_HOME/j2ee/MyConatiner/log/MyContainer*/oc4j/log.xml, after I increased the verbosity.
    Solution: I found the "NoClassFound" error after I fiddled with j2ee-logging.xml. The funny part is, the error did not show up in the ERROR or INTERNAL_ERROR module types. Some of the wrapper Java classes that were generated to deal with complex types (records) and even arrays, were not being included in the EAR/WAR file for deployment! That's why when I ran the web service locally using JDeveloper, there were no errors (since the classes were present). Now, before I deploy I always check what is being deployed... :)
    Here's what I learned through the process. Hope it's helpful!
    keywords: http 500 error empty test response reply web service deploy complex data types arrays logs pl/sql procedures functions
    Debugging
    There are several places where logging occurs on Oracle Application Server 10.1.3.
    This is not a complete list, but it covers the main areas. Let's assume our OC4J
    container is called MyContainer:
    OPMN
        * tail -f $ORACLE_HOME/opmn/logs/*MyContainer*
        * To adjust the verbosity, use the Enterprise Manager web interface: click on
          the container, then on the Administration -> Logger Configuration. Now you can
          set the logging level for different components.
    Apache
        * tail -f $ORACLE_HOME/Apache/Apache/logs/*log
        * The file names depend on the ErrorLog? and CustomLog? directives in
           httpd.conf. You can adjust the verbosity by changing the LogLevel
           Apache directive.
    J2EE
        * tail -f $ORACLE_HOME/j2ee/MyContainer/log/MyContainer*/oc4j/log.xml
        * You can adjust the verbosity by editing
           $ORACLE_HOME/j2ee/MyContainer/config/j2ee-logging.xml. Look for the
           <logger> element, and set its 'level' attribute to 'TRACE:32' for the most
           information.
        * From experience, these logs are the best. :-)
    Oracle
        * tail -f $ORACLE_HOME/Apache/Apache/logs/oracle/log.xml
        * To enable and configure this logging system, add the following to your httpd.conf:
          OraLogMode oracle
          OraLogSeverity TRACE:32
          OraLogDir ORACLE_HOME/Apache/Apache/logs/oracle
        * More info: http://download-east.oracle.com/docs/cd/B25221_04/web.1013/b25211/servlog.htm

    Thanks for sharing your tips on this forum, as it will be useful for other users, that run into this issue.
    Feedback like this will also help us improve error reporting in the next release, as missing class files in the packaged application is a common issue when developers are moving from the embeded oc4j instance packaged with JDewveloper to standalone instances.
    -Eric

Maybe you are looking for

  • ITunes:How do I set my registry back to normal? (reverse it)

    I installed itunes last year and had a major problem with it conflicting with my cd burner so I had to sacrifice one or the other. I ended up takin off a key in my registry to let the itunes pass through, but for some reason I can locate it. Is there

  • Problem with iOS 6 new app banner

    In IOS 6, new download apps will have a banner saying new. I have this blue banner too, its just that I do not have the new button. Is this a bug or something?

  • Date Format Conversion from MM.DD.YYYY to YYYYMMDD

    Hi All, I am trying to load data from r/3, and i have date format as MM.DD.YYYY in source system.how can i convert this into YYYYMMDD format in transfer rules(I know that we have to write a routine in transfer rules).Could anybody help me out pl?..pl

  • Script to load documents in KM Repository DB mode

    Is there any good documentation on writing a script to load documents into a KM repository that is set up in DB mode?  In the past we had this repository as an FSDB and we could create scripts to upload to the file system.  Now in DB mode we need to

  • Adobe PDF 8 will not "print". It pauses instead.

    I upgraded to Leopard. Now when I attempt to create a PDF file by printing using the Adobe PDF 8 printer, the file will process into the printer job list, and then the printer will PAUSE. No amount of Resuming or restarting the print queue will get t