Technology

Error Testing ADF Webservice [MDS-00013: no metadata found for metadata object]


This post is for you if you are trying to test an ADF Web-service and getting the following error (see stack trace below).  I am testing by deploying the application EAR to a standalone Weblogic Server Instance (in this case I am deploying it to a SOA managed server instance to co-locate my web-services with my SOA Services) .

## Detail 0 ##
oracle.mds.core.MetadataNotFoundException: MDS-00013: no metadata found for metadata object "/rating2/core/model/RatingModelII.jpx"
 at oracle.mds.core.MetadataObject.getBaseMO(MetadataObject.java:1048)
 at oracle.mds.core.MDSSession.getBaseMO(MDSSession.java:2769)
 at oracle.mds.core.MDSSession.getMetadataObject(MDSSession.java:1188)
 at oracle.mds.core.MDSSession.getMetadataObject(MDSSession.java:1139)
 at oracle.jbo.mom.MOMParserMDS.parse(MOMParserMDS.java:191)
 at oracle.jbo.mom.MOMParserNonMDS.readAndParse(MOMParserNonMDS.java:71)
 at oracle.jbo.mom.DefinitionContextStandard.readAndParse(DefinitionContextStandard.java:237)
 at oracle.jbo.mom.DefinitionManager.loadProjectDefinition(DefinitionManager.java:1447)
 at oracle.jbo.server.SessionImpl.init(SessionImpl.java:160)
 at oracle.jbo.server.ApplicationModuleHomeImpl.createSession(ApplicationModuleHomeImpl.java:106)
 at oracle.jbo.server.ApplicationModuleHomeImpl.<init>(ApplicationModuleHomeImpl.java:43)

then it is probably because you have not deployed your MDS Configuration.

This is probably because you don’t have the “Application Assembly” for your ADF EAR done quite right. In my case, I had not checked the “common” and “middle tier” folders as a part of the application. Once I did that then JDeveloper prompted me to enter the MDS information as shown here [see http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/deployment_topics.htm#CHDJJDDG ]

Here’s a couple of screen shots indicating where to make the changes in JDev.

Advertisements

3 thoughts on “Error Testing ADF Webservice [MDS-00013: no metadata found for metadata object]

  1. Hello There,

    I am getting this error while deployment in Jdeveloper 11.1.1.3 version. Any help/pointer would be highly appreciated.

    I am exposing one of the method of Application Module as Web Service.

    [03:15:15 PM] java.lang.NullPointerException
    [03:15:15 PM] at oracle.j2ee.ws.tools.wsa.jaxws.AssemblerProcessor.getClassNamesFromEjb(AssemblerProcessor.java:180)
    [03:15:15 PM] at oracle.j2ee.ws.tools.wsa.jaxws.AssemblerProcessor.processEjb(AssemblerProcessor.java:149)
    [03:15:15 PM] at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsEjbAssembler.processEjb(JaxwsEjbAssembler.java:182)
    [03:15:15 PM] at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsEjbAssembler.ejbAssemble(JaxwsEjbAssembler.java:152)
    [03:15:15 PM] at oracle.j2ee.ws.tools.wsa.cli.Processor.jaxwsEjbAssemble(Processor.java:630)
    [03:15:15 PM] at oracle.j2ee.ws.tools.wsa.cli.Processor.execute(Processor.java:327)
    [03:15:15 PM] at oracle.j2ee.ws.tools.wsa.cli.Processor.execute(Processor.java:230)
    [03:15:15 PM] at oracle.j2ee.ws.tools.wsa.Main.mainNoSystemExit(Main.java:84)
    [03:15:15 PM] at oracle.j2ee.ws.tools.wsa.Main.main(Main.java:49)
    [03:15:15 PM] WARNING: Error while processing ejb-jar.xml for ejb module at “C:\Documents and Settings\sacggupt\Application Data\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\MicroApplications\VendorEJB.jar”.
    [03:15:15 PM] INFO: Unable to load annotation javax.interceptor.Interceptors for parsing. The annotation is ignored.
    [03:15:15 PM] INFO: Unable to load annotation javax.interceptor.Interceptors for parsing. The annotation is ignored.

    1. Hello,
      I would be glad to help. I have not seen the stack trace before, but if you can walk me through how you created the web service – I can try and replicate your steps and find the issue.

      If you can give me your email we can communicate there.

      Thanks

      Alok

  2. Thanks Alok for your help. My email ID is sachingupta290376@yahoo.com

    I am working on Jdeveloper 11.1.1.3.0 version and tried to expose one method of application module as web service. To do this, i used “Service Interface” tab of Application module within Jdeveloper and Jdeveloper had generated all interfaces, stubs, code for the Session bean required for web service. I am now trying to “Test Web Service” from the implementation class generated then i am getting this error in Weblogic deployment. Any help/pointers would be highly appreciated.

    I used another installation of Jdeveloper same version at my collegues desktop but getting the same error. Not sure, if this version of Jdeveloper is having issue in exposing application module as web service. I think that database related exception can be ignored as no database call is being made by the application.

    Many Thanks for helping me.

    [Running application SalaryControlService on Server Instance IntegratedWebLogicServer…]
    [10:04:53 AM] —- Deployment started. —-
    [10:04:53 AM] Target platform is (Weblogic 10.3).
    [10:04:53 AM] Retrieving existing application information
    [10:04:54 AM] Running dependency analysis…
    [10:04:54 AM] Deploying 2 profiles…
    [10:04:54 AM] Wrote EJB Module to C:\Documents and Settings\sacggupt\Application Data\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\SalaryControlService\ModelEJB.jar
    [10:04:55 AM] Wrote Enterprise Application Module to C:\Documents and Settings\sacggupt\Application Data\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\SalaryControlService
    [10:04:57 AM] java.lang.NullPointerException
    [10:04:57 AM] at oracle.j2ee.ws.tools.wsa.jaxws.AssemblerProcessor.getClassNamesFromEjb(AssemblerProcessor.java:180)
    [10:04:57 AM] at oracle.j2ee.ws.tools.wsa.jaxws.AssemblerProcessor.processEjb(AssemblerProcessor.java:149)
    [10:04:57 AM] at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsEjbAssembler.processEjb(JaxwsEjbAssembler.java:182)
    [10:04:57 AM] at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsEjbAssembler.ejbAssemble(JaxwsEjbAssembler.java:152)
    [10:04:57 AM] at oracle.j2ee.ws.tools.wsa.cli.Processor.jaxwsEjbAssemble(Processor.java:630)
    [10:04:57 AM] at oracle.j2ee.ws.tools.wsa.cli.Processor.execute(Processor.java:327)
    [10:04:57 AM] at oracle.j2ee.ws.tools.wsa.cli.Processor.execute(Processor.java:230)
    [10:04:57 AM] at oracle.j2ee.ws.tools.wsa.Main.mainNoSystemExit(Main.java:84)
    [10:04:57 AM] at oracle.j2ee.ws.tools.wsa.Main.main(Main.java:49)
    [10:04:57 AM] WARNING: Error while processing ejb-jar.xml for ejb module at “C:\Documents and Settings\sacggupt\Application Data\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\SalaryControlService\ModelEJB.jar”.
    [10:04:57 AM] INFO: Unable to load annotation weblogic.javaee.CallByReference for parsing. The annotation is ignored.
    [10:04:57 AM] INFO: Unable to load annotation weblogic.javaee.CallByReference for parsing. The annotation is ignored.
    [10:04:57 AM] INFO: GenericWSWarAnnotationListener.parseAnnotatedClass Adding Servlet Mapping with URL pattern /HrModuleService for annotated WebService class lt.andrejusb.model.server.serviceinterface.HrModuleServiceImpl
    [10:04:58 AM] WSA process exited with code 0
    [10:04:58 AM] Deploying Application…

    #### Cannot run application SalaryControlService due to error deploying to IntegratedWebLogicServer.
    [10:05:21 AM] #### Deployment incomplete. ####
    [10:05:21 AM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
    [Application SalaryControlService stopped and undeployed from Server Instance IntegratedWebLogicServer]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s