DPL5041:Unknown port-component-name AdapterComponentMpi port, all sub elements will be ignored

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

DPL5041:Unknown port-component-name AdapterComponentMpi port, all sub elements will be ignored

Daniel Kaplan
I'm deploying my adapters as a web service in their own ear and when I deploy the Patient Discovery adapter I get this error:

[#|2013-10-29T21:26:46.055+0000|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=16;_ThreadName=Thread-34;AdapterComponentMpi;_RequestID=2df5d6e4-6e3f-4ba4-b8bd-cbcec89258c3;|DPL5041:Unknown port-component-name AdapterComponentMpi port, all sub elements will be ignored"|#]

[#|2013-10-29T21:26:46.055+0000|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=16;_ThreadName=Thread-34;endpoint-address-uri;/MirthAdapter/AdapterComponentMpiService;_RequestID=2df5d6e4-6e3f-4ba4-b8bd-cbcec89258c3;|"DPL8007: Invalid Deployment Descriptors element endpoint-address-uri value /MirthAdapter/AdapterComponentMpiService"|#]

Here's my sun-ejb-jar.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 EJB 3.0//EN"
        "http://www.sun.com/software/appserver/dtds/sun-ejb-jar_3_0-0.dtd">
<sun-ejb-jar>
    <enterprise-beans>        
        <ejb>
            <ejb-name>AdapterComponentMpi</ejb-name>
            <webservice-endpoint>
                <port-component-name>AdapterComponentMpi</port-component-name>
                <endpoint-address-uri>/MirthAdapter/AdapterComponentMpiService</endpoint-address-uri>
            </webservice-endpoint>
        </ejb>
...

And here's my code:

package com.mirth.results.nhinc.adaptercomponentmpi;

import com.mirth.nhin.adapterutils.PatientDiscovery;
import com.mirth.nhin.adapterutils.TimeLogger;
import com.mirth.results.nhinc.MirthPatientDiscoveryHandler;
import gov.hhs.fha.nhinc.adaptercomponentmpi.AdapterComponentMpiPortType;
import org.hl7.v3.PRPAIN201306UV02;
import org.hl7.v3.RespondingGatewayPRPAIN201305UV02RequestType;

import javax.annotation.Resource;
import javax.ejb.Stateless;
import javax.xml.ws.BindingType;
import javax.xml.ws.WebServiceContext;
import java.util.logging.Logger;

//@WebService(serviceName = "AdapterComponentMpiService", portName = "AdapterComponentMpiPort", endpointInterface = "gov.hhs.fha.nhinc.adaptercomponentmpi.AdapterComponentMpiPortType", targetNamespace = "urn:gov:hhs:fha:nhinc:adaptercomponentmpi", wsdlLocation = "META-INF/wsdl/AdapterComponentMpi.wsdl")
@BindingType(value = javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING)
@Stateless
public class AdapterComponentMpi implements AdapterComponentMpiPortType {

    private static final Logger log = Logger.getLogger(AdapterComponentMpi.class.getName());

    @Resource
    private WebServiceContext context;

    @Override
    public PRPAIN201306UV02 findCandidates(RespondingGatewayPRPAIN201305UV02RequestType respondingGatewayPRPAIN201305UV02RequestType) {
        TimeLogger timeLogger = TimeLogger.start();
        PRPAIN201306UV02 prpain201306UV02 = new PatientDiscovery().execute(context, respondingGatewayPRPAIN201305UV02RequestType.getPRPAIN201305UV02(), new MirthPatientDiscoveryHandler());
        log.info("Patient discovery took " + timeLogger.timeSinceStartMillis() + "ms");
        return prpain201306UV02;
    }
}


That commented line is what I used to have that worked on earlier versions of CONNECT and Aurion.  I didn't see it on the new reference implementations of the adapters so I commented it out.  I'm sure this is a fundamental jaxws mistake I'm making, but I don't find any useful info when I search for those error codes so I am hoping to get some help here.  

I'm using Glassfish 2 to deploy my adapters to (I'm running CONNECT 4.2 on a different glassfish instance using GF v3.)
Reply | Threaded
Open this post in threaded view
|

Re: DPL5041:Unknown port-component-name AdapterComponentMpi port, all sub elements will be ignored

alameluchidambaram
Daniel,

Can you change this port-component-name to AdapterComponentMpiPort in sun-ejb-jar.xml?

<port-component-name>AdapterComponentMpi</port-component-name>
<port-component-name>AdapterComponentMpiPort</port-component-name>

Thanks,
Alamelu.