Mantis - Resin
Viewing Issue Advanced Details
2365 minor always 01-24-08 01:24 02-10-08 18:54
gjvc i386  
ferg Linux  
normal  
closed 3.1.4  
3.1.4 fixed  
none    
none 3.1.5  
0002365: WebAppVersioningController barfs on app dirs with dots in them
Looks like WebAppVersioningController does not like the presence of web-apps with names of the form wombat-web.something (the dot something upsets it)


09:16:04.341 [09:16:04.339] java.lang.StringIndexOutOfBoundsException: String index out of range: 9
09:16:04.341 [09:16:04.339] at java.lang.String.charAt(String.java:687)
09:16:04.341 [09:16:04.339] at com.caucho.server.webapp.WebAppVersioningController$VersionNameComparator.compare(WebAppVersioningController.java:291)
09:16:04.341 [09:16:04.339] at com.caucho.server.webapp.WebAppVersioningController$VersionNameComparator.compare(WebAppVersioningController.java:238)
09:16:04.341 [09:16:04.339] at java.util.Arrays.mergeSort(Arrays.java:1270)
09:16:04.341 [09:16:04.339] at java.util.Arrays.mergeSort(Arrays.java:1282)
09:16:04.341 [09:16:04.339] at java.util.Arrays.mergeSort(Arrays.java:1282)
09:16:04.341 [09:16:04.339] at java.util.Arrays.sort(Arrays.java:1210)
09:16:04.341 [09:16:04.339] at java.util.Collections.sort(Collections.java:159)
09:16:04.341 [09:16:04.339] at com.caucho.server.webapp.WebAppVersioningController.updateVersion(WebAppVersioningController.java:202)
09:16:04.341 [09:16:04.339] at com.caucho.server.webapp.WebAppVersioningController.startImpl(WebAppVersioningController.java:170)
09:16:04.341 [09:16:04.339] at com.caucho.server.webapp.WebAppVersioningController.startImpl(WebAppVersioningController.java:55)
09:16:04.341 [09:16:04.339] at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
09:16:04.341 [09:16:04.339] at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:528)
09:16:04.341 [09:16:04.339] at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:163)
09:16:04.341 [09:16:04.339] at com.caucho.server.webapp.WebAppContainer.start(WebAppContainer.java:675)
09:16:04.341 [09:16:04.339] at com.caucho.server.host.Host.start(Host.java:437)
09:16:04.341 [09:16:04.339] at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:646)
09:16:04.341 [09:16:04.339] at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
09:16:04.341 [09:16:04.339] at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:528)
09:16:04.341 [09:16:04.339] at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:163)
09:16:04.341 [09:16:04.339] at com.caucho.server.host.HostContainer.start(HostContainer.java:479)
09:16:04.341 [09:16:04.339] at com.caucho.server.cluster.Server.start(Server.java:1171)
09:16:04.341 [09:16:04.339] at com.caucho.server.cluster.Cluster.startServer(Cluster.java:708)
09:16:04.341 [09:16:04.339] at com.caucho.server.cluster.ClusterServer.startServer(ClusterServer.java:522)
09:16:04.341 [09:16:04.339] at com.caucho.server.resin.Resin.start(Resin.java:692)
09:16:04.341 [09:16:04.339] at com.caucho.server.resin.Resin.initMain(Resin.java:1113)
09:16:04.341 [09:16:04.339] at com.caucho.server.resin.Resin.main(Resin.java:1314)


1 set war-deploy attribute versioning to true
2 create a web app with a name like wombat-web.cf in the war-deploy directory.
3 start resin

Notes
(0002743)
ferg   
02-10-08 18:54   
server/1h29