[ http://jira.jboss.com/jira/browse/JBAS-1480?page=comments#action_12316515 ] Dimitris Andreadis commented on JBAS-1480: ------------------------------------------
This is actually king-of a race condition: The console DeploymentFileRepository generates a xxx-service.xml.tmp descriptor, then immediately renames that to xxx-service.xml. Obviously the DeploymentScanner picked up the .tmp file, which is gone immediately afterwards. We should really have the ".tmp" suffix excluded by the DeploymentFilter and the default configuration in conf/jboss-service.xml (DeploymentScanner). Actually, I was surprised we don't do that already. If Scott doesn't have a problem with that, I'll add this. > Web Console: Monitors: Errors in the log > ---------------------------------------- > > Key: JBAS-1480 > URL: http://jira.jboss.com/jira/browse/JBAS-1480 > Project: JBoss Application Server > Type: Bug > Components: JMX > Versions: JBossAS-4.0.2 Final > Environment: JBoss 4.0.1 > Reporter: Anil Saldhana > Assignee: Dimitris Andreadis > Priority: Minor > Fix For: JBossAS-4.0.2 Final > Attachments: FreeMemoryMonitor-service.xml > > > I see an error in the server log when using web console which is shown below. > Step 1: Create a monitor on Free Memory and call it "FreeMemoryMonitor". > Step 2: You will have a file called "FreeMemoryMonitor-service.xml" in > deploy/management/monitors. [Attached to the case]. > See error in the server log as follows: > 16:35:10,364 ERROR [MainDeployer] Could not make local copy for > file:/Users/anil/jboss-4.0.1/server/default/deploy/management/monitors/FreeMemoryMonitor-service.xml.tmp > java.io.FileNotFoundException: > /Users/anil/jboss-4.0.1/server/default/deploy/management/monitors/FreeMemoryMonitor-service.xml.tmp > at > org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:71) > at > org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:80) > at java.net.URL.openStream(URL.java:913) > at org.jboss.deployment.MainDeployer.copy(MainDeployer.java:1174) > at > org.jboss.deployment.MainDeployer.makeLocalCopy(MainDeployer.java:112 > No big deal. The error should not be thrown in a production environment with > multiple monitors. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-Development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
