[jbosstools-issues] [JBoss JIRA] (JBIDE-17668) JBoss 4.2.3 Hot Deployment does not work (worked with 4.1.x)

Nero M (JIRA) issues at jboss.org
Thu Jun 26 03:26:24 EDT 2014


    [ https://issues.jboss.org/browse/JBIDE-17668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12979560#comment-12979560 ] 

Nero M edited comment on JBIDE-17668 at 6/26/14 3:26 AM:
---------------------------------------------------------

I have added a workaround for now into the addURL method of URLDeploymentScanner of JBoss 4.2.3 

   if(url.getFile().endsWith("/")){
    	  urlList.add(url);
     }

This definetly is the error, so if you guys know where the URL is added you can maybe check if the URL is already contained.

Note: IF you add the same URL (even with the "/" two times) the error will still happen, as the Jboss code doesnt check if an URL is already inserted

Addition: This doesnt solve the whole problem - changing a file still results in a complete redeployment (You can even see the worker counting from 1% - 100% ) the whole EAR is redeployed and not only one file


was (Author: nerom):
I have added a workaround for now into the addURL method of URLDeploymentScanner of JBoss 4.2.3 

   if(url.getFile().endsWith("/")){
    	  urlList.add(url);
     }

This definetly is the error, so if you guys know where the URL is added you can maybe check if the URL is already contained.

Note: IF you add the same URL (even with the "/" two times) the error will still happen, as the Jboss code doesnt check if an URL is already inserted

> JBoss 4.2.3 Hot Deployment does not work (worked with 4.1.x)
> ------------------------------------------------------------
>
>                 Key: JBIDE-17668
>                 URL: https://issues.jboss.org/browse/JBIDE-17668
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 4.2.0.Beta2
>         Environment: Win7 x64, Eclipse Luna 4.4 RC3, JBoss 4.2.3GA
>            Reporter: Nero M
>            Priority: Blocker
>         Attachments: duplicate-scanner.png
>
>
> When i start JBoss 4.2.3GA i get this:
> org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3
> 	at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)
> Then when i change any file (just an xhtml for instance) The Server shuts down. Instead it should just hot-deploy that file like it did with Kepler + AS Tools 4.1. But here it seems a full deployment is being done (Not just the file) resulting in a Server reboot 
> 12:09:29,452 INFO  [EARDeployer] Undeploying J2EE application, destroy step: file:/C:/server/jboss/............ear
> 12:09:29,452 INFO  [EARDeployer] Undeployed J2EE application: file:/C:/server/jboss/..........................ear
> Thanks for any help :( If this is not fixed, we cannot move to Luna. unfortunately i cant move to a different application server



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the jbosstools-issues mailing list