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.

Bug 164023 - "URL wait timeouted after 60000" error when deploying to JBoss 5
Summary: "URL wait timeouted after 60000" error when deploying to JBoss 5
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker with 1 vote (vote)
Assignee: Petr Hejl
URL:
Keywords:
: 192163 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-29 10:12 UTC by gst
Modified: 2010-12-03 06:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
netbeans stderr (4.83 KB, text/plain)
2009-04-29 12:23 UTC, gst
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gst 2009-04-29 10:12:38 UTC
There seems to be a problem with deployment when creating a new "Java EE Enterprise Application" under Netbeans 6.7m3
and 6.7beta and subsequently deploying this application to a JBoss 5.0.1.GA (or 5.0.0 GA) server (both running under Linux).

While it seems that the deployed software is available on the JBoss server several seconds after choosing the deployment
option, Netbeans hangs around for about a minute, after printing the following messages:

Distributing /home/gst/NetBeansProjects/EnterpriseApplication1/dist/EnterpriseApplication1.ear to
[org.jboss.deployment.spi.LocalhostTarget@1a9266b]
Deploying /home/gst/NetBeansProjects/EnterpriseApplication1/dist/EnterpriseApplication1.ear
Waiting for server to start the module http://localhost:8080/EnterpriseApplication1-war

Furthermore, Netbeans logs the following error on stderr:
INFO [org.netbeans.modules.j2ee.jboss4.JBDeployer]: URL wait timeouted after 60000

It seems that the deployment itself works fine (without such a long delay), as changes to JSP pages are relatively soon
available (after some seconds, instead of a minute). Furthermore, the JBoss output (visible after several seconds), also
indicates that the application has been deployed:

 11:00:17,071 INFO  [Ejb3DependenciesDeployer] Encountered deployment
AbstractVFSDeploymentContext@12814801{vfszip:/mnt/sda1/gst/jboss/jboss-5.0.1.GA/server/default/deploy/EnterpriseApplication1.ear/EnterpriseApplication1-ejb.jar/}
11:00:17,071 INFO  [Ejb3DependenciesDeployer] Encountered deployment
AbstractVFSDeploymentContext@12814801{vfszip:/mnt/sda1/gst/jboss/jboss-5.0.1.GA/server/default/deploy/EnterpriseApplication1.ear/EnterpriseApplication1-ejb.jar/}
11:00:17,071 INFO  [Ejb3DependenciesDeployer] Encountered deployment
AbstractVFSDeploymentContext@12814801{vfszip:/mnt/sda1/gst/jboss/jboss-5.0.1.GA/server/default/deploy/EnterpriseApplication1.ear/EnterpriseApplication1-ejb.jar/}
11:00:17,247 INFO  [TomcatDeployment] deploy, ctxPath=/EnterpriseApplication1-war

So while deployment itself works fine, Netbeans somehow does not detect that the software has been successfully deployed.

I can reproduce this problem after deleting all Netbeans related configuration files (.netbeans/, .netbeans-derby/,
NetBeansProjects) and with the default JBoss configuration.

This problem occurs on two different machines: The first one is running Archlinux 32-bit and using JRE/JDK version 6u13.
The second is running Archlinux 64-bit and using a 64-bit OpenJDK 1.5 (as distributed by Archlinux).

Steps to reproduce the problem:
- Remove custom Netbeans/JBoss configuration files
- Use New Project / Java EE / Enterprise Application
- Add (and assign) the JBoss server during the configuration dialog, use defaults for other settings
- Use context menu to deploy the application to JBoss
Comment 1 gst 2009-04-29 12:23:55 UTC
Created attachment 81190 [details]
netbeans stderr
Comment 2 gst 2009-04-29 12:28:25 UTC
I've now also attached some output of the stderr error log.

One of the log messages starts with:
INFO [org.netbeans.ProxyClassLoader]
java.lang.IllegalStateException: You are trying to access file: log4j.xml from the default package. Please see
http://www.netbeans.org/download/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/classpath.html#default_package

with "at org.netbeans.modules.j2ee.jboss4.JBDeploymentManager.getRMIServer(JBDeploymentManager.java:177)" somewhere in
the stack trace. This error seems like a potential cause for the problem.
Comment 3 Petr Hejl 2010-11-19 15:26:57 UTC
*** Bug 192163 has been marked as a duplicate of this bug. ***
Comment 4 Petr Hejl 2010-12-01 21:04:50 UTC
Hopefully fixed in web-main 9ed27fbfb6d6.
Comment 5 Quality Engineering 2010-12-03 06:17:14 UTC
Integrated into 'main-golden', will be available in build *201012030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/9ed27fbfb6d6
User: Petr Hejl <phejl@netbeans.org>
Log: #164023 "URL wait timeouted after 60000" error when deploying to JBoss 5