Cannot find port with name 'XXXXX' in wsdl document
iamapony Jan 11, 2005 7:46 PMI am trying to deploy my third web service, I have successfully deployed two services with complexTypes. The third contains simple types only and for some reason I can't get it working. Any assistance would be greatly appreciated. I'm staring at the two that works and comparing it to the two that already work and I don't see any differnece other then the other two beans have complex types.
Environment:
Windows XP
JBoss [Zion] 4.0.0 (build: CVSTag=JBoss_4_0_0 date=200409200418)
Java version: 1.4.2_05,Sun Microsystems Inc.
Eclipse 3.0.1
I am receiving the following error:
java.lang.IllegalArgumentException: Cannot find port with name 'AssetManagerEndPoint' in wsdl document at org.jboss.webservice.metadata.WebserviceDescriptionMetaData.replaceAddressLocations(WebserviceDescriptionMetaData.java:297) at org.jboss.webservice.metadata.WebserviceDescriptionMetaData.updateServiceAddress(WebserviceDescriptionMetaData.java:229) at org.jboss.webservice.ServiceDeployer.startWebservice(ServiceDeployer.java:181) at org.jboss.webservice.ServiceDeployer.handleNotification(ServiceDeployer.java:113) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138) at $Proxy21.handleNotification(Unknown Source) at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:104) at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:87) at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:178) at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:620) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:935) ....more lines suppressed
My webservices.xml contains....
<?xml version="1.0" encoding="UTF-8"?> <webservices xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd" version="1.1"> <webservice-description xmlns:impl="http://interfaces.location.apps.activechain.creeksystems.com"> <icon> </icon> <webservice-description-name>LocationManagerEndPointService</webservice-description-name> <wsdl-file>META-INF/wsdl/LocationManagerEndPointService.wsdl</wsdl-file> <jaxrpc-mapping-file>META-INF/jax-rpc-mapping.xml</jaxrpc-mapping-file> <port-component> <port-component-name>LocationManagerEndPoint</port-component-name> <wsdl-port>impl:LocationManagerEndpoint</wsdl-port> <service-endpoint-interface>com.creeksystems.activechain.apps.location.interfaces.LocationManagerEndPoint</service-endpoint-interface> <service-impl-bean> <ejb-link>LocationManager</ejb-link> </service-impl-bean> </port-component> </webservice-description> <webservice-description xmlns:impl="http://interfaces.notification.apps.activechain.creeksystems.com"> <icon> </icon> <webservice-description-name>NotificationManagerEndPointService</webservice-description-name> <wsdl-file>META-INF/wsdl/NotificationManagerEndPointService.wsdl</wsdl-file> <jaxrpc-mapping-file>META-INF/jax-rpc-mapping.xml</jaxrpc-mapping-file> <port-component> <port-component-name>NotificationManagerEndPoint</port-component-name> <wsdl-port>impl:NotificationManagerEndpoint</wsdl-port> <service-endpoint-interface>com.creeksystems.activechain.apps.notification.interfaces.NotificationManagerEndPoint</service-endpoint-interface> <service-impl-bean> <ejb-link>NotificationManager</ejb-link> </service-impl-bean> </port-component> </webservice-description> <webservice-description xmlns:impl="http://interfaces.asset.apps.activechain.creeksystems.com"> <icon> </icon> <webservice-description-name>AssetManagerEndPointService</webservice-description-name> <wsdl-file>META-INF/wsdl/AssetManagerEndPointService.wsdl</wsdl-file> <jaxrpc-mapping-file>META-INF/jax-rpc-mapping.xml</jaxrpc-mapping-file> <port-component> <port-component-name>AssetManagerEndPoint</port-component-name> <wsdl-port>impl:AssetManagerEndPoint</wsdl-port> <service-endpoint-interface>com.creeksystems.activechain.apps.asset.interfaces.AssetManagerEndPoint</service-endpoint-interface> <service-impl-bean> <ejb-link>AssetManager</ejb-link> </service-impl-bean> </port-component> </webservice-description> </webservices>
My AssetManagerEndPointService.wsdl file contains ...
<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="http://interfaces.asset.apps.activechain.creeksystems.com" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://interfaces.asset.apps.activechain.creeksystems.com" xmlns:intf="http://interfaces.asset.apps.activechain.creeksystems.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <wsdl:message name="createAssetWSRequest"> <wsdl:part name="in0" type="xsd:string" /> <wsdl:part name="in1" type="xsd:string" /> <wsdl:part name="in2" type="xsd:string" /> </wsdl:message> <wsdl:message name="createAssetWSResponse"> <wsdl:part name="createAssetWSReturn" type="xsd:int" /> </wsdl:message> <wsdl:portType name="AssetManagerEndPoint"> <wsdl:operation name="createAssetWS" parameterOrder="in0 in1 in2"> <wsdl:input message="impl:createAssetWSRequest" name="createAssetWSRequest" /> <wsdl:output message="impl:createAssetWSResponse" name="createAssetWSResponse" /> </wsdl:operation> </wsdl:portType> <wsdl:binding name="AssetManagerEndpointSoapBinding" type="impl:AssetManagerEndPoint"> <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation name="createAssetWS"> <wsdlsoap:operation soapAction="" /> <wsdl:input name="createAssetWSRequest"> <wsdlsoap:body namespace="http://interfaces.asset.apps.activechain.creeksystems.com" use="literal" /> </wsdl:input> <wsdl:output name="createAssetWSResponse"> <wsdlsoap:body namespace="http://interfaces.asset.apps.activechain.creeksystems.com" use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="AssetManagerEndPointService"> <wsdl:port binding="impl:AssetManagerEndpointSoapBinding" name="AssetManagerEndpoint"> <wsdlsoap:address location="http://localhost:8080/assetManagerEJB/AssetService?wsdl" /> </wsdl:port> </wsdl:service> </wsdl:definitions>
My jax-rpc-mapping.xml contains the the following entry...
<package-mapping> <package-type>com.creeksystems.activechain.apps.asset.ejb</package-type> <namespaceURI>http://localhost:8080/assetManagerEJB</namespaceURI> </package-mapping>
My jboss.xml contains the following entry ...
<session> <ejb-name>AssetManager</ejb-name> <jndi-name>ejb/activechain/AssetManager</jndi-name> <configuration-name>Standard Stateless SessionBean</configuration-name> <security-proxy>com.creeksystems.activechain.apps.security.ACSecurityProxy</security-proxy> <port-component> <port-component-name>AssetManager</port-component-name> <port-uri>/AssetManagerEndPointService</port-uri> <auth-method>BASIC</auth-method> </port-component> <method-attributes> </method-attributes> </session>