I recently had sort of the same problem. Searched the forums and had to look hard to find the answer. So, I'll post the answer here, hopefully, people will find this easier.
If you change the port or (as in my case) the bind address (via the -b option at startup) that will change the bind address of the server. But be careful - if you have clients running in your server, the jndi.properties file will take effect in your InitialContext. So, make sure that 1) Your jndi.properties file matches what you set your server (or don't specify a provider URL in jndi.properties and set it in your InitialContext programatically) or 2) that you don't have a jndi.properties file somewhere in your classpath My problem was #2 - unbeknowst to me, I had shutdown.jar in my classpath and it has a jndi.properties that defines provider URL of localhost:1099. If you change the port or bind address, this obviously won't match and you will get this exception that you mention. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864225#3864225 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3864225 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
