1 Reply Latest reply on Jan 8, 2009 1:29 AM by jaikiran pai

    JB 5.0 error deploying short web application

    Mark Lybarger Apprentice

      I'm working on migrating our web applications from 4.2.2 to JB 5.0. the below error shows up.

      It seems that the call to:

      File.createTempFile(prefix, "-exp.war", config.getServerTempDeployDir());

      cannot create a temp file using a prefix that is shorter than 3 characters.

      Not sure if I should create a bug in JBoss for this.

      11:37:15,471 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/C:/tools/jboss-5.0.0.GA/server/default/deploy/ab.war state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Failed to create web module
       at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:472)
       at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:87)
       at org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer.deploy(AbstractSimpleVFSRealDeployer.java:56)
       at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
       at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
       at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
       at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
       at org.jboss.Main.boot(Main.java:209)
       at org.jboss.Main$1.run(Main.java:547)
       at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.IllegalArgumentException: Prefix string too short
       at java.io.File.createTempFile(File.java:1782)
       at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:369)
       ... 23 more