[JNDI/Naming/Network] - Re: UnknownHostException after successful connection to port
by kahzoo
Which OS do you use?
The ejb3 connector component of JBoss seems to have a bug of ignoring the '-b 0.0.0.0' option. Instead of '0.0.0.0', it tries to choose one (maybe the primary one?) from the IP addresses bound to the machine's network interfaces. And if it cannot find any valid IP address, it uses 127.0.0.1 (and its default port 3873).
That said, if you are running the JBoss server on Windows, you need to make sure that the machine is connected to the network and has an IP address BEFORE you start JBoss server (As far as I know, Windows by default remove IP address from the network interface when it is not connected to the network).
Otherwise, you are likely to get the error in the following scenario.
1) You start JBoss server with '-b 0.0.0.0' option when the Windows machine is not connected to the network and does not have an IP address other than 127.0.0.1.
2) The EJB3 connector component chooses '127.0.0.1' and listens at '127.0.0.1:3873'.
3) Then you connect the Windows machine to the network to test EJB3 remote client. Now the machine gets an IP address, which is too late for the JBoss EJB3 component.
4) Your EJB3 remote client receives from the server '127.0.0.1:3873' as an entry point, to which it tries to connect. But, since there is no JBoss server running at 127.0.0.1 (the localhost for the client), you get the error which you described in your post.
Hope this helps.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146208#4146208
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146208
18 years
[Tomcat, HTTPD, Servlets & JSP] - Re: Web pages are not running on mozilla
by PeterJ
I am not saying that every user has to install this plugin. In fact, installing the plugin will not fix the problem, it will only help in debugging the problem.
The other option is if you can reproduce the problem using a minimum number of files (for example, one servlet, one jsp, web.xml, and an html file to secure), and then post the contents of the files. If you do this, make sure that you bracket the file contents with [ code ] ... [ /code ] brackets (select the text and click the Code button).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146201#4146201
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146201
18 years
[JBossWS] - Cannot obtain wsdl service
by schmil
Hi all,
since i upgraded my JBoss from 4.0.5 GA to 4.2.2 GA i have the following issue within my webservice.
| 2008-04-23 13:59:43,171 ERROR [OrderServiceClient] Exception during Webservice call:
| java.lang.IllegalArgumentException: Cannot obtain wsdl service: {http://localhost:8080/ina}DitaServiceHandlerService
| at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaDataInternal(JAXRPCClientMetaDataBuilder.java:172)
| at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:134)
| at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:86)
| at org.jboss.ws.core.jaxrpc.client.ServiceImpl.<init>(ServiceImpl.java:111)
| at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157)
| at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:142)
| at OrderServiceClient.sendOrders(OrderServiceClient.java:160)
|
Are there any changes i forgot ?
Here is my code:
OrderServiceClient.java
| import javax.xml.namespace.QName;
| import javax.xml.rpc.Service;
| import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
| ...
| ServiceFactoryImpl factory = new ServiceFactoryImpl();
| URL wsdlURL = Thread.currentThread().getContextClassLoader().getResource("META-INF/service/DitaServiceHandler.xml");
| URL mappingURL = Thread.currentThread().getContextClassLoader().getResource("META-INF/service/jaxrpc-mapping.xml");
| QName qname = new QName("http://localhost:8080/ina", "DitaServiceHandlerService");
| Service service = factory.createService(wsdlURL, qname, mappingURL);
|
DitaServiceHandler.xml
| <wsdl:definitions targetNamespace="urn:ina:ws:dita:de"
| xmlns:impl="urn:ina:ws:dita:de"
| xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
| xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
| xmlns:xsd="http://www.w3.org/2001/XMLSchema">
| ...
|
jaxrpc-mapping.xml
| <package-mapping>
| <package-type>ws.client</package-type>
| <namespaceURI>urn:ina:ws:dita:de</namespaceURI>
| </package-mapping>
| ...
|
Thanks in advance.
Lars
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146188#4146188
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146188
18 years