This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 133527 [details] IDE log. I downloaded JBoss 7.2.0 from http://olex.openlogic.com/packages/jboss and after deployment IDE throws some exceptions. To reproduce: - register JBoss 7.2.0 server - create Java EE 6 web project - run project but it fails with exceptions (see below and attached files) java.lang.ClassCastException: org.netbeans.modules.j2ee.jboss4.JBTargetModuleID cannot be cast to org.jboss.as.ee.deployment.spi.TargetModuleIDImpl at org.jboss.as.ee.deployment.spi.DeploymentManagerTarget.start(DeploymentManagerTarget.java:106) [catch] at org.jboss.as.ee.deployment.spi.DeploymentWorker.run(DeploymentWorker.java:67)
Created attachment 133528 [details] JBoss server log.
> Could not connect to remote://10.163.21.96:9999. The connection timed out Are you sure your JBoss is listening to this address ? (AS7 default is to only listen to localhost) (If this is the case, still, a better error should be thrown of course)
Jirko I saw this on my machine as well. Although it does not look like that the problem was with hostname and /etc/hosts settings. It looks like they changed something in JBoss and make it more fragile to this kind of errors. Also check the last comment here: https://community.jboss.org/message/796586
> Also check the last comment here: https://community.jboss.org/message/796586 In this post, they added the hostname to the 127.0.0.1. Same thing. If yours points to the ethernet card address, connection will fail, as AS7 by default only listens to 127.0.0.1. (AS7 is meant to be "secured by default", i.e. unlike previous versions, you don't have to spend hours disabling all dangerous things, but now you need to enable those you want&need&understand...)
Although I'm sending URI with "localhost" to the getDeploymentManager (the one in JBoss) it is actually querying a uri parameter for serverHost. If it is null it does InetAddress.getLocalHost().getHostAddress(). InetAddress.getLocalHost() is based on hostname so if the hostname is mapped only to physical address one can easily get this. I'll try to use the parameter. Things might be better with it I guess.
Fixed in web-main default 65ec9db20085 and javaee7 b69087d68f07. I would think this is bug in jboss as mechanism to determine where to listen by default is different from mechanism where to connect by default.
Integrated into 'main-golden', will be available in build *201304172301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/65ec9db20085 User: Petr Hejl <phejl@netbeans.org> Log: #228619 - Error deploying to JBoss 7.2.0
Still the same with build web-main-javaee7-244-on-20130419.
Created attachment 133590 [details] Stack trace.
This looks like IP misconfiguration. What is your /etc/hosts, hostname and interfaces?
Ok, I've found the cause. The root cause is still the same as described in comment #5. We just need to pass proper URI to underlying JB factory - in certain cases the URI was wrong. Fixed in web-main ff0111acd7c5 and javaee7 f22c798c7f43. Please verify.
Integrated into 'releases', will be available in build *201304222201* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/b69087d68f07 User: Petr Hejl <phejl@netbeans.org> Log: #228619 - Error deploying to JBoss 7.2.0
Integrated into 'main-golden', will be available in build *201304222301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/b69087d68f07 User: Petr Hejl <phejl@netbeans.org> Log: #228619 - Error deploying to JBoss 7.2.0
Integrated into 'releases', will be available in build *201304242201* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/f22c798c7f43 User: Petr Hejl <phejl@netbeans.org> Log: #228619 - Error deploying to JBoss 7.2.0
Integrated into 'main-golden', will be available in build *201304252301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/f22c798c7f43 User: Petr Hejl <phejl@netbeans.org> Log: #228619 - Error deploying to JBoss 7.2.0