[jboss-jira] [JBoss JIRA] Commented: (JBAS-5089) Prefix string too short

mlybarger (JIRA) jira-events at lists.jboss.org
Wed Jan 7 14:41:04 EST 2009


    [ https://jira.jboss.org/jira/browse/JBAS-5089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12445588#action_12445588 ] 

mlybarger commented on JBAS-5089:
---------------------------------

I'm getting this error trying to migrate from 4.2.2.GA to 5.0.0.GA.  The deployed application is gc.war.  Looking at the code, it seems that the jvm cannot create a temp file with a prefix < 3 characters in length.   My work around was to add a <context-root> node to the deployed war, and deploy it as gcc.war.  That seems to work fine, but it's rather cumbersome to have to repackage the application just to get it deployed.

> Prefix string too short
> -----------------------
>
>                 Key: JBAS-5089
>                 URL: https://jira.jboss.org/jira/browse/JBAS-5089
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Deployers
>    Affects Versions: JBossAS-5.0.0.Beta2
>         Environment: MS Windows XP
> JDK1.5.0_10
> JBoss AS 5.0.0.Beta2
> Netbeans 6.0
>            Reporter: Christopher Logan
>            Assignee: Dimitris Andreadis
>
> When trying to deploy a Visual web application from Netbeans i get: java.lang.IllegalArgumentException: Prefix string too short
> 19:43:01,265 ERROR [TomcatDeployer] Error during deployment: vfsfile:/C:/jboss-5.0.0.Beta2/server/default/deploy/JB.war
> org.jboss.deployers.spi.DeploymentException: Failed to create web module
>         at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:405)
>         at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:78)
>         at org.jboss.deployers.plugins.deployers.helpers.AbstractSimpleRealDeployer.deploy(AbstractSimpleRealDeployer.java:56)
>         at org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer.commitDeploy(AbstractSimpleDeployer.java:52)
>         at org.jboss.deployers.plugins.deployer.DeployerWrapper.commitDeploy(DeployerWrapper.java:170)
>         at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:592)
>         at org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:476)
>         at org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:406)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:121)
>         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:110)
>         at org.jboss.profileservice.aop.MainDeployerAspect.process(MainDeployerAspect.java:53)
>         at org.jboss.aop.advice.org.jboss.profileservice.aop.MainDeployerAspect_z_process_31342381.invoke(MainDeployerAspect_z_process_31342381.java)
>         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
>         at AOPContainerProxy$0.process(AOPContainerProxy$0.java)
>         at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:302)
>         at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:234)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
>         at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
>         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.IllegalArgumentException: Prefix string too short
>         at java.io.File.createTempFile(File.java:1423)
>         at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:321)
>         ... 28 more
> 19:43:01,765 WARN  [HDScanner] Failed to process changes
> org.jboss.deployers.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
> *** DEPLOYMENTS IN ERROR: Name -> Error
> vfsfile:/C:/jboss-5.0.0.Beta2/server/default/deploy/JB.war -> java.lang.IllegalArgumentException: Prefix string too short
>         at org.jboss.system.server.profileservice.hotdeploy.HDScanner.checkIncomplete(HDScanner.java:346)
>         at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:303)
>         at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:234)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
>         at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
>         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>         at java.lang.Thread.run(Thread.java:595)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list