Deployment fails to call Web Service in the same JBoss instance at deployment time in JBoss EAP 6
Issue
- Deployment fails to call Web Service in the same JBoss instance at deployment time in JBoss EAP 6. We have a deployment which calls our SettingsWS (JAXWS Web Service) to get configuration at startup. It is is getting a 404 trying to access the URL, yet we can use SOAPUI or wget and are able to connect to the SettingsWS. Why is our application running in the same JBoss instance unable to connect yet SOAPUI and other tools are? Also, we see the issue on a production server but are not seeing it on a development server.
11:37:13,345 INFO [com.jboss.examples.ejb3.RequiresSettingsWSSingleton] (ServerService Thread Pool -- 56) Trying to get: http://localhost:8080/SettingsWS/SettingsWS?wsdl
11:37:13,418 SEVERE [com.jboss.examples.ejb3.RequiresSettingsWSSingleton] (ServerService Thread Pool -- 56) Failed to connect to: http://localhost:8080/SettingsWS/SettingsWS?wsdl
11:37:13,418 ERROR [stderr] (ServerService Thread Pool -- 56) java.io.FileNotFoundException: http://localhost:8080/SettingsWS/SettingsWS?wsdl
11:37:13,419 ERROR [stderr] (ServerService Thread Pool -- 56) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1457)
11:37:13,419 ERROR [stderr] (ServerService Thread Pool -- 56) at java.net.URL.openStream(URL.java:1010)
11:37:13,419 ERROR [stderr] (ServerService Thread Pool -- 56) at com.jboss.examples.ejb3.RequiresSettingsWSSingleton.init(RequiresSettingsWSSingleton.java:24)
...
11:37:13,429 INFO [org.jboss.web] (ServerService Thread Pool -- 56) JBAS018210: Register web context: /RequiresSettingsWS
11:37:13,468 INFO [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 56) Initializing Mojarra 2.1.28-jbossorg-6 for context '/RequiresSettingsWS'
11:37:13,524 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-5) Creating Service {http://ejb3.examples.jboss.com/}SettingsWSService from class com.jboss.examples.ejb3.SettingsWS
11:37:13,856 INFO [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-5) Setting the server's publish address to be http://localhost:8080/SettingsWS/SettingsWS
11:37:13,873 INFO [org.hibernate.validator.internal.util.Version] (ServerService Thread Pool -- 56) HV000001: Hibernate Validator 4.3.2.Final-redhat-2
11:37:13,902 INFO [org.jboss.ws.cxf.deployment] (MSC service thread 1-5) JBWS024074: WSDL published to: file:/tmp/jboss-eap-6.4/standalone/data/wsdl/SettingsWS.jar/SettingsWSService.wsdl
11:37:13,905 INFO [org.jboss.as.webservices] (MSC service thread 1-11) JBAS015539: Starting service jboss.ws.port-component-link
11:37:13,907 INFO [org.jboss.as.webservices] (MSC service thread 1-13) JBAS015539: Starting service jboss.ws.endpoint."SettingsWS.jar".SettingsWS
11:37:13,911 INFO [com.jboss.examples.ejb3.ConfigSingleton] (ServerService Thread Pool -- 55) Sleeping 10 sec to stall
11:37:23,913 INFO [org.jboss.web] (ServerService Thread Pool -- 55) JBAS018210: Register web context: /SettingsWS
11:37:23,974 INFO [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS015859: Deployed "RequiresSettingsWS.war" (runtime-name : "RequiresSettingsWS.war")
11:37:23,974 INFO [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS015859: Deployed "SettingsWS.jar" (runtime-name : "SettingsWS.jar")
11:37:23,981 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
11:37:23,981 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
11:37:23,982 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss EAP 6.4.1.GA (AS 7.5.1.Final-redhat-3) started in 12560ms - Started 295 of 332 services (63 services are lazy, passive or on-demand)
Environment
Red Hat JBoss Enterprise Application Platform (EAP) 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
