1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/share/jaxws_classes/com/sun/xml/internal/ws/resources/ServerMessages.java Tue Mar 06 16:09:35 2012 -0800 1.3 @@ -0,0 +1,732 @@ 1.4 +/* 1.5 + * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.7 + * 1.8 + * This code is free software; you can redistribute it and/or modify it 1.9 + * under the terms of the GNU General Public License version 2 only, as 1.10 + * published by the Free Software Foundation. Oracle designates this 1.11 + * particular file as subject to the "Classpath" exception as provided 1.12 + * by Oracle in the LICENSE file that accompanied this code. 1.13 + * 1.14 + * This code is distributed in the hope that it will be useful, but WITHOUT 1.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1.16 + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1.17 + * version 2 for more details (a copy is included in the LICENSE file that 1.18 + * accompanied this code). 1.19 + * 1.20 + * You should have received a copy of the GNU General Public License version 1.21 + * 2 along with this work; if not, write to the Free Software Foundation, 1.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1.23 + * 1.24 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 1.25 + * or visit www.oracle.com if you need additional information or have any 1.26 + * questions. 1.27 + */ 1.28 + 1.29 + 1.30 +package com.sun.xml.internal.ws.resources; 1.31 + 1.32 +import com.sun.xml.internal.ws.util.localization.Localizable; 1.33 +import com.sun.xml.internal.ws.util.localization.LocalizableMessageFactory; 1.34 +import com.sun.xml.internal.ws.util.localization.Localizer; 1.35 + 1.36 + 1.37 +/** 1.38 + * Defines string formatting method for each constant in the resource file 1.39 + * 1.40 + */ 1.41 +public final class ServerMessages { 1.42 + 1.43 + private final static LocalizableMessageFactory messageFactory = new LocalizableMessageFactory("com.sun.xml.internal.ws.resources.server"); 1.44 + private final static Localizer localizer = new Localizer(); 1.45 + 1.46 + public static Localizable localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICE(Object arg0, Object arg1) { 1.47 + return messageFactory.getMessage("runtime.parser.wsdl.incorrectservice", arg0, arg1); 1.48 + } 1.49 + 1.50 + /** 1.51 + * could not get binding from WSDL! service: {0} not found in the WSDL {1}. 1.52 + * It could be because service name does not match WSDL''s wsdl:service name: 1.53 + * 1. service name is not there in deployment descriptor OR 1.54 + * 2. Either there is a typo in deployment descriptor''s service name OR 1.55 + * 3. The computed names from @WebService do not match wsdl:service name 1.56 + * OR 1.57 + * 1. There is an error while parsing the wsdl and Service with name {0} is not found in the WSDLModel. 1.58 + * Suggest doing the following: 1.59 + * 1. Add/Correct entries for service name in deployment descriptor OR 1.60 + * 2. Specify targetNamespace, serviceName in @WebService on the endpoint class 1.61 + * 1.62 + */ 1.63 + public static String RUNTIME_PARSER_WSDL_INCORRECTSERVICE(Object arg0, Object arg1) { 1.64 + return localizer.localize(localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICE(arg0, arg1)); 1.65 + } 1.66 + 1.67 + public static Localizable localizableRUNTIME_PARSER_MISSING_ATTRIBUTE_NO_LINE() { 1.68 + return messageFactory.getMessage("runtime.parser.missing.attribute.no.line"); 1.69 + } 1.70 + 1.71 + /** 1.72 + * missing attribute "{2}" in element "{1}" of runtime descriptor 1.73 + * 1.74 + */ 1.75 + public static String RUNTIME_PARSER_MISSING_ATTRIBUTE_NO_LINE() { 1.76 + return localizer.localize(localizableRUNTIME_PARSER_MISSING_ATTRIBUTE_NO_LINE()); 1.77 + } 1.78 + 1.79 + public static Localizable localizableSTATEFUL_COOKIE_HEADER_INCORRECT(Object arg0, Object arg1) { 1.80 + return messageFactory.getMessage("stateful.cookie.header.incorrect", arg0, arg1); 1.81 + } 1.82 + 1.83 + /** 1.84 + * Invalid/expired {0} header value: {1} 1.85 + * 1.86 + */ 1.87 + public static String STATEFUL_COOKIE_HEADER_INCORRECT(Object arg0, Object arg1) { 1.88 + return localizer.localize(localizableSTATEFUL_COOKIE_HEADER_INCORRECT(arg0, arg1)); 1.89 + } 1.90 + 1.91 + public static Localizable localizableNOT_IMPLEMENT_PROVIDER(Object arg0) { 1.92 + return messageFactory.getMessage("not.implement.provider", arg0); 1.93 + } 1.94 + 1.95 + /** 1.96 + * "{0}" doesn't implement Provider 1.97 + * 1.98 + */ 1.99 + public static String NOT_IMPLEMENT_PROVIDER(Object arg0) { 1.100 + return localizer.localize(localizableNOT_IMPLEMENT_PROVIDER(arg0)); 1.101 + } 1.102 + 1.103 + public static Localizable localizableSTATEFUL_REQURES_ADDRESSING(Object arg0) { 1.104 + return messageFactory.getMessage("stateful.requres.addressing", arg0); 1.105 + } 1.106 + 1.107 + /** 1.108 + * Stateful web service {0} requires the WS-Addressing support to be enabled. Perhaps you are missing @Addressing 1.109 + * 1.110 + */ 1.111 + public static String STATEFUL_REQURES_ADDRESSING(Object arg0) { 1.112 + return localizer.localize(localizableSTATEFUL_REQURES_ADDRESSING(arg0)); 1.113 + } 1.114 + 1.115 + public static Localizable localizableSOAPDECODER_ERR() { 1.116 + return messageFactory.getMessage("soapdecoder.err"); 1.117 + } 1.118 + 1.119 + /** 1.120 + * Error in decoding SOAP Message 1.121 + * 1.122 + */ 1.123 + public static String SOAPDECODER_ERR() { 1.124 + return localizer.localize(localizableSOAPDECODER_ERR()); 1.125 + } 1.126 + 1.127 + public static Localizable localizableGENERATE_NON_STANDARD_WSDL() { 1.128 + return messageFactory.getMessage("generate.non.standard.wsdl"); 1.129 + } 1.130 + 1.131 + /** 1.132 + * Generating non-standard WSDL for the specified binding 1.133 + * 1.134 + */ 1.135 + public static String GENERATE_NON_STANDARD_WSDL() { 1.136 + return localizer.localize(localizableGENERATE_NON_STANDARD_WSDL()); 1.137 + } 1.138 + 1.139 + public static Localizable localizableDISPATCH_CANNOT_FIND_METHOD(Object arg0) { 1.140 + return messageFactory.getMessage("dispatch.cannotFindMethod", arg0); 1.141 + } 1.142 + 1.143 + /** 1.144 + * Cannot find dispatch method for {0} 1.145 + * 1.146 + */ 1.147 + public static String DISPATCH_CANNOT_FIND_METHOD(Object arg0) { 1.148 + return localizer.localize(localizableDISPATCH_CANNOT_FIND_METHOD(arg0)); 1.149 + } 1.150 + 1.151 + public static Localizable localizableNO_CONTENT_TYPE() { 1.152 + return messageFactory.getMessage("no.contentType"); 1.153 + } 1.154 + 1.155 + /** 1.156 + * Request doesn't have a Content-Type 1.157 + * 1.158 + */ 1.159 + public static String NO_CONTENT_TYPE() { 1.160 + return localizer.localize(localizableNO_CONTENT_TYPE()); 1.161 + } 1.162 + 1.163 + public static Localizable localizableRUNTIME_PARSER_INVALID_VERSION_NUMBER() { 1.164 + return messageFactory.getMessage("runtime.parser.invalidVersionNumber"); 1.165 + } 1.166 + 1.167 + /** 1.168 + * unsupported runtime descriptor version: {2} 1.169 + * 1.170 + */ 1.171 + public static String RUNTIME_PARSER_INVALID_VERSION_NUMBER() { 1.172 + return localizer.localize(localizableRUNTIME_PARSER_INVALID_VERSION_NUMBER()); 1.173 + } 1.174 + 1.175 + public static Localizable localizablePROVIDER_INVALID_PARAMETER_TYPE(Object arg0, Object arg1) { 1.176 + return messageFactory.getMessage("provider.invalid.parameterType", arg0, arg1); 1.177 + } 1.178 + 1.179 + /** 1.180 + * "{0}" implements Provider but its type parameter {1} is incorrect 1.181 + * 1.182 + */ 1.183 + public static String PROVIDER_INVALID_PARAMETER_TYPE(Object arg0, Object arg1) { 1.184 + return localizer.localize(localizablePROVIDER_INVALID_PARAMETER_TYPE(arg0, arg1)); 1.185 + } 1.186 + 1.187 + public static Localizable localizableWRONG_NO_PARAMETERS(Object arg0) { 1.188 + return messageFactory.getMessage("wrong.no.parameters", arg0); 1.189 + } 1.190 + 1.191 + /** 1.192 + * Incorrect no of arguments for method "{0}" 1.193 + * 1.194 + */ 1.195 + public static String WRONG_NO_PARAMETERS(Object arg0) { 1.196 + return localizer.localize(localizableWRONG_NO_PARAMETERS(arg0)); 1.197 + } 1.198 + 1.199 + public static Localizable localizableANNOTATION_ONLY_ONCE(Object arg0) { 1.200 + return messageFactory.getMessage("annotation.only.once", arg0); 1.201 + } 1.202 + 1.203 + /** 1.204 + * Only one method should have the annotation "{0}" 1.205 + * 1.206 + */ 1.207 + public static String ANNOTATION_ONLY_ONCE(Object arg0) { 1.208 + return localizer.localize(localizableANNOTATION_ONLY_ONCE(arg0)); 1.209 + } 1.210 + 1.211 + public static Localizable localizableALREADY_HTTPS_SERVER(Object arg0) { 1.212 + return messageFactory.getMessage("already.https.server", arg0); 1.213 + } 1.214 + 1.215 + /** 1.216 + * There is already a HTTPS server at : {0} 1.217 + * 1.218 + */ 1.219 + public static String ALREADY_HTTPS_SERVER(Object arg0) { 1.220 + return localizer.localize(localizableALREADY_HTTPS_SERVER(arg0)); 1.221 + } 1.222 + 1.223 + public static Localizable localizableRUNTIME_PARSER_XML_READER(Object arg0) { 1.224 + return messageFactory.getMessage("runtime.parser.xmlReader", arg0); 1.225 + } 1.226 + 1.227 + /** 1.228 + * error parsing runtime descriptor: {0} 1.229 + * 1.230 + */ 1.231 + public static String RUNTIME_PARSER_XML_READER(Object arg0) { 1.232 + return localizer.localize(localizableRUNTIME_PARSER_XML_READER(arg0)); 1.233 + } 1.234 + 1.235 + public static Localizable localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICEPORT(Object arg0, Object arg1, Object arg2) { 1.236 + return messageFactory.getMessage("runtime.parser.wsdl.incorrectserviceport", arg0, arg1, arg2); 1.237 + } 1.238 + 1.239 + /** 1.240 + * could not get binding from WSDL! service: {0} or port {1} not found in the WSDL {2}. 1.241 + * It could be because service and port names do not match WSDL''s wsdl:service and wsdl:port names: 1.242 + * 1. service and port names are not there in deployment descriptor OR 1.243 + * 2. Either there is a typo in deployment descriptor''s service and port names OR 1.244 + * 3. The computed names from @WebService do not match wsdl:service and wsdl:port names 1.245 + * Suggest doing the following: 1.246 + * 1. Add/Correct entries for service and port names in deployment descriptor OR 1.247 + * 2. Specify targetNamespace, serviceName, portName in @WebService on the endpoint class 1.248 + * 1.249 + */ 1.250 + public static String RUNTIME_PARSER_WSDL_INCORRECTSERVICEPORT(Object arg0, Object arg1, Object arg2) { 1.251 + return localizer.localize(localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICEPORT(arg0, arg1, arg2)); 1.252 + } 1.253 + 1.254 + public static Localizable localizableSERVER_RT_ERR(Object arg0) { 1.255 + return messageFactory.getMessage("server.rt.err", arg0); 1.256 + } 1.257 + 1.258 + /** 1.259 + * Server Runtime Error: {0} 1.260 + * 1.261 + */ 1.262 + public static String SERVER_RT_ERR(Object arg0) { 1.263 + return localizer.localize(localizableSERVER_RT_ERR(arg0)); 1.264 + } 1.265 + 1.266 + public static Localizable localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1, Object arg2) { 1.267 + return messageFactory.getMessage("runtime.parser.invalidAttributeValue", arg0, arg1, arg2); 1.268 + } 1.269 + 1.270 + /** 1.271 + * invalid value for attribute "{2}" of element "{1}" in runtime descriptor (line {0}) 1.272 + * 1.273 + */ 1.274 + public static String RUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1, Object arg2) { 1.275 + return localizer.localize(localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(arg0, arg1, arg2)); 1.276 + } 1.277 + 1.278 + public static Localizable localizableNO_CURRENT_PACKET() { 1.279 + return messageFactory.getMessage("no.current.packet"); 1.280 + } 1.281 + 1.282 + /** 1.283 + * This thread is not currently processing any web service request. 1.284 + * 1.285 + */ 1.286 + public static String NO_CURRENT_PACKET() { 1.287 + return localizer.localize(localizableNO_CURRENT_PACKET()); 1.288 + } 1.289 + 1.290 + public static Localizable localizableRUNTIME_PARSER_UNEXPECTED_CONTENT(Object arg0) { 1.291 + return messageFactory.getMessage("runtime.parser.unexpectedContent", arg0); 1.292 + } 1.293 + 1.294 + /** 1.295 + * unexpected content in runtime descriptor (line {0}) 1.296 + * 1.297 + */ 1.298 + public static String RUNTIME_PARSER_UNEXPECTED_CONTENT(Object arg0) { 1.299 + return localizer.localize(localizableRUNTIME_PARSER_UNEXPECTED_CONTENT(arg0)); 1.300 + } 1.301 + 1.302 + public static Localizable localizableSTATEFUL_COOKIE_HEADER_REQUIRED(Object arg0) { 1.303 + return messageFactory.getMessage("stateful.cookie.header.required", arg0); 1.304 + } 1.305 + 1.306 + /** 1.307 + * This is a stateful web service and {0} header is required. 1.308 + * 1.309 + */ 1.310 + public static String STATEFUL_COOKIE_HEADER_REQUIRED(Object arg0) { 1.311 + return localizer.localize(localizableSTATEFUL_COOKIE_HEADER_REQUIRED(arg0)); 1.312 + } 1.313 + 1.314 + public static Localizable localizableNULL_IMPLEMENTOR() { 1.315 + return messageFactory.getMessage("null.implementor"); 1.316 + } 1.317 + 1.318 + /** 1.319 + * Implementor cannot be null 1.320 + * 1.321 + */ 1.322 + public static String NULL_IMPLEMENTOR() { 1.323 + return localizer.localize(localizableNULL_IMPLEMENTOR()); 1.324 + } 1.325 + 1.326 + public static Localizable localizableRUNTIME_PARSER_WSDL(Object arg0) { 1.327 + return messageFactory.getMessage("runtime.parser.wsdl", arg0); 1.328 + } 1.329 + 1.330 + /** 1.331 + * exception during WSDL parsing: {0} 1.332 + * 1.333 + */ 1.334 + public static String RUNTIME_PARSER_WSDL(Object arg0) { 1.335 + return localizer.localize(localizableRUNTIME_PARSER_WSDL(arg0)); 1.336 + } 1.337 + 1.338 + public static Localizable localizableSOAPENCODER_ERR() { 1.339 + return messageFactory.getMessage("soapencoder.err"); 1.340 + } 1.341 + 1.342 + /** 1.343 + * Error in encoding SOAP Message 1.344 + * 1.345 + */ 1.346 + public static String SOAPENCODER_ERR() { 1.347 + return localizer.localize(localizableSOAPENCODER_ERR()); 1.348 + } 1.349 + 1.350 + public static Localizable localizableWSDL_REQUIRED() { 1.351 + return messageFactory.getMessage("wsdl.required"); 1.352 + } 1.353 + 1.354 + /** 1.355 + * wsdl is required 1.356 + * 1.357 + */ 1.358 + public static String WSDL_REQUIRED() { 1.359 + return localizer.localize(localizableWSDL_REQUIRED()); 1.360 + } 1.361 + 1.362 + public static Localizable localizableRUNTIME_PARSER_WSDL_NOSERVICE_IN_WSDLMODEL(Object arg0) { 1.363 + return messageFactory.getMessage("runtime.parser.wsdl.noservice.in.wsdlmodel", arg0); 1.364 + } 1.365 + 1.366 + /** 1.367 + * There is an error in processing the WSDL {0} and no valid services are found. 1.368 + * 1.369 + */ 1.370 + public static String RUNTIME_PARSER_WSDL_NOSERVICE_IN_WSDLMODEL(Object arg0) { 1.371 + return localizer.localize(localizableRUNTIME_PARSER_WSDL_NOSERVICE_IN_WSDLMODEL(arg0)); 1.372 + } 1.373 + 1.374 + public static Localizable localizablePORT_NAME_REQUIRED() { 1.375 + return messageFactory.getMessage("port.name.required"); 1.376 + } 1.377 + 1.378 + /** 1.379 + * Port QName is not found 1.380 + * 1.381 + */ 1.382 + public static String PORT_NAME_REQUIRED() { 1.383 + return localizer.localize(localizablePORT_NAME_REQUIRED()); 1.384 + } 1.385 + 1.386 + public static Localizable localizableWRONG_TNS_FOR_PORT(Object arg0) { 1.387 + return messageFactory.getMessage("wrong.tns.for.port", arg0); 1.388 + } 1.389 + 1.390 + /** 1.391 + * Port namespace {0} doesn't match Service namespace {1} 1.392 + * 1.393 + */ 1.394 + public static String WRONG_TNS_FOR_PORT(Object arg0) { 1.395 + return localizer.localize(localizableWRONG_TNS_FOR_PORT(arg0)); 1.396 + } 1.397 + 1.398 + public static Localizable localizableRUNTIME_PARSER_WSDL_MULTIPLEBINDING(Object arg0, Object arg1, Object arg2) { 1.399 + return messageFactory.getMessage("runtime.parser.wsdl.multiplebinding", arg0, arg1, arg2); 1.400 + } 1.401 + 1.402 + /** 1.403 + * multiple bindings found for binding ID {0} for service {1} in WSDL {2} 1.404 + * 1.405 + */ 1.406 + public static String RUNTIME_PARSER_WSDL_MULTIPLEBINDING(Object arg0, Object arg1, Object arg2) { 1.407 + return localizer.localize(localizableRUNTIME_PARSER_WSDL_MULTIPLEBINDING(arg0, arg1, arg2)); 1.408 + } 1.409 + 1.410 + public static Localizable localizableNOT_KNOW_HTTP_CONTEXT_TYPE(Object arg0, Object arg1, Object arg2) { 1.411 + return messageFactory.getMessage("not.know.HttpContext.type", arg0, arg1, arg2); 1.412 + } 1.413 + 1.414 + /** 1.415 + * Doesn''t support Endpoint.publish({0}). Known context types are {1}, and {2} 1.416 + * 1.417 + */ 1.418 + public static String NOT_KNOW_HTTP_CONTEXT_TYPE(Object arg0, Object arg1, Object arg2) { 1.419 + return localizer.localize(localizableNOT_KNOW_HTTP_CONTEXT_TYPE(arg0, arg1, arg2)); 1.420 + } 1.421 + 1.422 + public static Localizable localizableNON_UNIQUE_DISPATCH_QNAME(Object arg0, Object arg1) { 1.423 + return messageFactory.getMessage("non.unique.dispatch.qname", arg0, arg1); 1.424 + } 1.425 + 1.426 + /** 1.427 + * Non unique body parts! In a port, as per BP 1.1 R2710 operations must have unique operation signature on the wire for successful dispatch. Methods {0} have the same request body block {1}. Method dispatching may fail, runtime will try to dispatch using SOAPAction. Another option is to enable AddressingFeature to enabled runtime to uniquely identify WSDL operation using wsa:Action header. 1.428 + * 1.429 + */ 1.430 + public static String NON_UNIQUE_DISPATCH_QNAME(Object arg0, Object arg1) { 1.431 + return localizer.localize(localizableNON_UNIQUE_DISPATCH_QNAME(arg0, arg1)); 1.432 + } 1.433 + 1.434 + public static Localizable localizableALREADY_HTTP_SERVER(Object arg0) { 1.435 + return messageFactory.getMessage("already.http.server", arg0); 1.436 + } 1.437 + 1.438 + /** 1.439 + * There is already a HTTP server at : {0}# {0} - probably URL/port of a server 1.440 + * 1.441 + */ 1.442 + public static String ALREADY_HTTP_SERVER(Object arg0) { 1.443 + return localizer.localize(localizableALREADY_HTTP_SERVER(arg0)); 1.444 + } 1.445 + 1.446 + public static Localizable localizableCAN_NOT_GENERATE_WSDL(Object arg0) { 1.447 + return messageFactory.getMessage("can.not.generate.wsdl", arg0); 1.448 + } 1.449 + 1.450 + /** 1.451 + * Cannot generate WSDL for binding "{0}" 1.452 + * 1.453 + */ 1.454 + public static String CAN_NOT_GENERATE_WSDL(Object arg0) { 1.455 + return localizer.localize(localizableCAN_NOT_GENERATE_WSDL(arg0)); 1.456 + } 1.457 + 1.458 + public static Localizable localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1) { 1.459 + return messageFactory.getMessage("runtime.parser.invalid.attribute.value", arg0, arg1); 1.460 + } 1.461 + 1.462 + /** 1.463 + * invalid attribute value "{1}" in runtime descriptor (line {0}) 1.464 + * 1.465 + */ 1.466 + public static String RUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1) { 1.467 + return localizer.localize(localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(arg0, arg1)); 1.468 + } 1.469 + 1.470 + public static Localizable localizableRUNTIME_PARSER_WRONG_ELEMENT(Object arg0, Object arg1, Object arg2) { 1.471 + return messageFactory.getMessage("runtime.parser.wrong.element", arg0, arg1, arg2); 1.472 + } 1.473 + 1.474 + /** 1.475 + * found element "{1}", expected "{2}" in runtime descriptor (line {0}) 1.476 + * 1.477 + */ 1.478 + public static String RUNTIME_PARSER_WRONG_ELEMENT(Object arg0, Object arg1, Object arg2) { 1.479 + return localizer.localize(localizableRUNTIME_PARSER_WRONG_ELEMENT(arg0, arg1, arg2)); 1.480 + } 1.481 + 1.482 + public static Localizable localizableRUNTIMEMODELER_INVALIDANNOTATION_ON_IMPL(Object arg0, Object arg1, Object arg2) { 1.483 + return messageFactory.getMessage("runtimemodeler.invalidannotationOnImpl", arg0, arg1, arg2); 1.484 + } 1.485 + 1.486 + /** 1.487 + * Invalid annotation: {0} on endpoint implementation class "{1}" - will be ignored. "{1}" is annotated with @WebService(endpointInterface="{2}"}, it must not be annotated with {0}, to fix it - put this annotation on the SEI {2}. 1.488 + * 1.489 + */ 1.490 + public static String RUNTIMEMODELER_INVALIDANNOTATION_ON_IMPL(Object arg0, Object arg1, Object arg2) { 1.491 + return localizer.localize(localizableRUNTIMEMODELER_INVALIDANNOTATION_ON_IMPL(arg0, arg1, arg2)); 1.492 + } 1.493 + 1.494 + public static Localizable localizableSERVICE_NAME_REQUIRED() { 1.495 + return messageFactory.getMessage("service.name.required"); 1.496 + } 1.497 + 1.498 + /** 1.499 + * Service QName is not found 1.500 + * 1.501 + */ 1.502 + public static String SERVICE_NAME_REQUIRED() { 1.503 + return localizer.localize(localizableSERVICE_NAME_REQUIRED()); 1.504 + } 1.505 + 1.506 + public static Localizable localizablePROVIDER_NOT_PARAMETERIZED(Object arg0) { 1.507 + return messageFactory.getMessage("provider.not.parameterized", arg0); 1.508 + } 1.509 + 1.510 + /** 1.511 + * "{0}" implements Provider but doesn't specify the type parameter 1.512 + * 1.513 + */ 1.514 + public static String PROVIDER_NOT_PARAMETERIZED(Object arg0) { 1.515 + return localizer.localize(localizablePROVIDER_NOT_PARAMETERIZED(arg0)); 1.516 + } 1.517 + 1.518 + public static Localizable localizableRUNTIME_WSDL_PATCHER() { 1.519 + return messageFactory.getMessage("runtime.wsdl.patcher"); 1.520 + } 1.521 + 1.522 + /** 1.523 + * error while patching WSDL related document 1.524 + * 1.525 + */ 1.526 + public static String RUNTIME_WSDL_PATCHER() { 1.527 + return localizer.localize(localizableRUNTIME_WSDL_PATCHER()); 1.528 + } 1.529 + 1.530 + public static Localizable localizableRUNTIME_SAXPARSER_EXCEPTION(Object arg0, Object arg1) { 1.531 + return messageFactory.getMessage("runtime.saxparser.exception", arg0, arg1); 1.532 + } 1.533 + 1.534 + /** 1.535 + * {0} 1.536 + * {1} 1.537 + * 1.538 + */ 1.539 + public static String RUNTIME_SAXPARSER_EXCEPTION(Object arg0, Object arg1) { 1.540 + return localizer.localize(localizableRUNTIME_SAXPARSER_EXCEPTION(arg0, arg1)); 1.541 + } 1.542 + 1.543 + public static Localizable localizableWRONG_PARAMETER_TYPE(Object arg0) { 1.544 + return messageFactory.getMessage("wrong.parameter.type", arg0); 1.545 + } 1.546 + 1.547 + /** 1.548 + * Incorrect argument types for method "{0}" 1.549 + * 1.550 + */ 1.551 + public static String WRONG_PARAMETER_TYPE(Object arg0) { 1.552 + return localizer.localize(localizableWRONG_PARAMETER_TYPE(arg0)); 1.553 + } 1.554 + 1.555 + public static Localizable localizableRUNTIME_PARSER_WSDL_NOT_FOUND(Object arg0) { 1.556 + return messageFactory.getMessage("runtime.parser.wsdl.not.found", arg0); 1.557 + } 1.558 + 1.559 + /** 1.560 + * {0} is not found in the WAR file. Package it in the WAR file or correct it in sun-jaxws.xml. 1.561 + * 1.562 + */ 1.563 + public static String RUNTIME_PARSER_WSDL_NOT_FOUND(Object arg0) { 1.564 + return localizer.localize(localizableRUNTIME_PARSER_WSDL_NOT_FOUND(arg0)); 1.565 + } 1.566 + 1.567 + public static Localizable localizableRUNTIME_PARSER_CLASS_NOT_FOUND(Object arg0) { 1.568 + return messageFactory.getMessage("runtime.parser.classNotFound", arg0); 1.569 + } 1.570 + 1.571 + /** 1.572 + * class not found in runtime descriptor: {0} 1.573 + * 1.574 + */ 1.575 + public static String RUNTIME_PARSER_CLASS_NOT_FOUND(Object arg0) { 1.576 + return localizer.localize(localizableRUNTIME_PARSER_CLASS_NOT_FOUND(arg0)); 1.577 + } 1.578 + 1.579 + public static Localizable localizableUNSUPPORTED_CHARSET(Object arg0) { 1.580 + return messageFactory.getMessage("unsupported.charset", arg0); 1.581 + } 1.582 + 1.583 + /** 1.584 + * Unsupported charset "{0}" in the received message''s Content-Type 1.585 + * 1.586 + */ 1.587 + public static String UNSUPPORTED_CHARSET(Object arg0) { 1.588 + return localizer.localize(localizableUNSUPPORTED_CHARSET(arg0)); 1.589 + } 1.590 + 1.591 + public static Localizable localizableSTATIC_RESOURCE_INJECTION_ONLY(Object arg0, Object arg1) { 1.592 + return messageFactory.getMessage("static.resource.injection.only", arg0, arg1); 1.593 + } 1.594 + 1.595 + /** 1.596 + * Static resource {0} cannot be injected to non-static "{1}" 1.597 + * 1.598 + */ 1.599 + public static String STATIC_RESOURCE_INJECTION_ONLY(Object arg0, Object arg1) { 1.600 + return localizer.localize(localizableSTATIC_RESOURCE_INJECTION_ONLY(arg0, arg1)); 1.601 + } 1.602 + 1.603 + public static Localizable localizableNOT_ZERO_PARAMETERS(Object arg0) { 1.604 + return messageFactory.getMessage("not.zero.parameters", arg0); 1.605 + } 1.606 + 1.607 + /** 1.608 + * Method "{0}" shouldn''t have any arguments 1.609 + * 1.610 + */ 1.611 + public static String NOT_ZERO_PARAMETERS(Object arg0) { 1.612 + return localizer.localize(localizableNOT_ZERO_PARAMETERS(arg0)); 1.613 + } 1.614 + 1.615 + public static Localizable localizableDUPLICATE_PRIMARY_WSDL(Object arg0) { 1.616 + return messageFactory.getMessage("duplicate.primary.wsdl", arg0); 1.617 + } 1.618 + 1.619 + /** 1.620 + * Metadata has more than one WSDL that has Service definition for the endpoint. WSDL={0} is one such WSDL. 1.621 + * 1.622 + */ 1.623 + public static String DUPLICATE_PRIMARY_WSDL(Object arg0) { 1.624 + return localizer.localize(localizableDUPLICATE_PRIMARY_WSDL(arg0)); 1.625 + } 1.626 + 1.627 + public static Localizable localizableDUPLICATE_ABSTRACT_WSDL(Object arg0) { 1.628 + return messageFactory.getMessage("duplicate.abstract.wsdl", arg0); 1.629 + } 1.630 + 1.631 + /** 1.632 + * Metadata has more than one WSDL that has PortType definition for the endpoint. WSDL={0} is one such WSDL. 1.633 + * 1.634 + */ 1.635 + public static String DUPLICATE_ABSTRACT_WSDL(Object arg0) { 1.636 + return localizer.localize(localizableDUPLICATE_ABSTRACT_WSDL(arg0)); 1.637 + } 1.638 + 1.639 + public static Localizable localizableSTATEFUL_INVALID_WEBSERVICE_CONTEXT(Object arg0) { 1.640 + return messageFactory.getMessage("stateful.invalid.webservice.context", arg0); 1.641 + } 1.642 + 1.643 + /** 1.644 + * Not a WebServiceContext from JAX-WS RI: {0} 1.645 + * 1.646 + */ 1.647 + public static String STATEFUL_INVALID_WEBSERVICE_CONTEXT(Object arg0) { 1.648 + return localizer.localize(localizableSTATEFUL_INVALID_WEBSERVICE_CONTEXT(arg0)); 1.649 + } 1.650 + 1.651 + public static Localizable localizableRUNTIME_PARSER_INVALID_ELEMENT(Object arg0, Object arg1) { 1.652 + return messageFactory.getMessage("runtime.parser.invalidElement", arg0, arg1); 1.653 + } 1.654 + 1.655 + /** 1.656 + * invalid element "{1}" in runtime descriptor (line {0}) 1.657 + * 1.658 + */ 1.659 + public static String RUNTIME_PARSER_INVALID_ELEMENT(Object arg0, Object arg1) { 1.660 + return localizer.localize(localizableRUNTIME_PARSER_INVALID_ELEMENT(arg0, arg1)); 1.661 + } 1.662 + 1.663 + public static Localizable localizableRUNTIME_PARSER_MISSING_ATTRIBUTE(Object arg0, Object arg1, Object arg2) { 1.664 + return messageFactory.getMessage("runtime.parser.missing.attribute", arg0, arg1, arg2); 1.665 + } 1.666 + 1.667 + /** 1.668 + * missing attribute "{2}" in element "{1}" of runtime descriptor (line {0}) 1.669 + * 1.670 + */ 1.671 + public static String RUNTIME_PARSER_MISSING_ATTRIBUTE(Object arg0, Object arg1, Object arg2) { 1.672 + return localizer.localize(localizableRUNTIME_PARSER_MISSING_ATTRIBUTE(arg0, arg1, arg2)); 1.673 + } 1.674 + 1.675 + public static Localizable localizableWRONG_FIELD_TYPE(Object arg0) { 1.676 + return messageFactory.getMessage("wrong.field.type", arg0); 1.677 + } 1.678 + 1.679 + /** 1.680 + * Incorrect type for field "{0}" 1.681 + * 1.682 + */ 1.683 + public static String WRONG_FIELD_TYPE(Object arg0) { 1.684 + return localizer.localize(localizableWRONG_FIELD_TYPE(arg0)); 1.685 + } 1.686 + 1.687 + public static Localizable localizableDUPLICATE_PORT_KNOWN_HEADER(Object arg0) { 1.688 + return messageFactory.getMessage("duplicate.portKnownHeader", arg0); 1.689 + } 1.690 + 1.691 + /** 1.692 + * Received SOAP message contains duplicate header: {0} for a bound parameter 1.693 + * 1.694 + */ 1.695 + public static String DUPLICATE_PORT_KNOWN_HEADER(Object arg0) { 1.696 + return localizer.localize(localizableDUPLICATE_PORT_KNOWN_HEADER(arg0)); 1.697 + } 1.698 + 1.699 + public static Localizable localizableUNSUPPORTED_CONTENT_TYPE(Object arg0, Object arg1) { 1.700 + return messageFactory.getMessage("unsupported.contentType", arg0, arg1); 1.701 + } 1.702 + 1.703 + /** 1.704 + * Unsupported Content-Type: {0} Supported ones are: {1} 1.705 + * 1.706 + */ 1.707 + public static String UNSUPPORTED_CONTENT_TYPE(Object arg0, Object arg1) { 1.708 + return localizer.localize(localizableUNSUPPORTED_CONTENT_TYPE(arg0, arg1)); 1.709 + } 1.710 + 1.711 + public static Localizable localizableFAILED_TO_INSTANTIATE_INSTANCE_RESOLVER(Object arg0, Object arg1, Object arg2) { 1.712 + return messageFactory.getMessage("failed.to.instantiate.instanceResolver", arg0, arg1, arg2); 1.713 + } 1.714 + 1.715 + /** 1.716 + * Unable to instantiate {0} (which is specified in {1} on {2}) 1.717 + * 1.718 + */ 1.719 + public static String FAILED_TO_INSTANTIATE_INSTANCE_RESOLVER(Object arg0, Object arg1, Object arg2) { 1.720 + return localizer.localize(localizableFAILED_TO_INSTANTIATE_INSTANCE_RESOLVER(arg0, arg1, arg2)); 1.721 + } 1.722 + 1.723 + public static Localizable localizableDD_MTOM_CONFLICT(Object arg0, Object arg1) { 1.724 + return messageFactory.getMessage("dd.mtom.conflict", arg0, arg1); 1.725 + } 1.726 + 1.727 + /** 1.728 + * Error in Deployment Descriptor : MTOM Configuration in binding {0} conflicts with enable-mtom attribute value {1} 1.729 + * 1.730 + */ 1.731 + public static String DD_MTOM_CONFLICT(Object arg0, Object arg1) { 1.732 + return localizer.localize(localizableDD_MTOM_CONFLICT(arg0, arg1)); 1.733 + } 1.734 + 1.735 +}