[JBoss JIRA] Commented: (JBAS-7100) Exploding vfsmemory:// contents is empty for web deployments
by Dimitris Andreadis (JIRA)
[ https://jira.jboss.org/jira/browse/JBAS-7100?page=com.atlassian.jira.plug... ]
Dimitris Andreadis commented on JBAS-7100:
------------------------------------------
Andrew, are you going to revert it?
> Exploding vfsmemory:// contents is empty for web deployments
> ------------------------------------------------------------
>
> Key: JBAS-7100
> URL: https://jira.jboss.org/jira/browse/JBAS-7100
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Web (Tomcat) service
> Reporter: Andrew Lee Rubinger
> Assignee: Andrew Lee Rubinger
> Fix For: JBossAS-5.2.0.Beta1, JBossAS-6.0.0.Alpha1
>
>
> The following patch addresses this:
> [alrubinger@localhost Branch_5_x]$ svn di server/
> When using an in-memory archive backed by VFS, we're using an "unjar"; this leaves out any RAM-backed resources. Instead explode the contents, regardless of what's behind the virtual abstraction:
> Index: server/src/main/org/jboss/web/deployers/AbstractWarDeployer.java
> ===================================================================
> --- server/src/main/org/jboss/web/deployers/AbstractWarDeployer.java (revision 91204)
> +++ server/src/main/org/jboss/web/deployers/AbstractWarDeployer.java (working copy)
> -357,7 +357,7 @@
>
> VFSDeploymentUnit vfsUnit = (VFSDeploymentUnit)unit;
> VirtualFile root = vfsUnit.getRoot();
> - VirtualFile unjared = VFSUtils.unjar(root);
> + VirtualFile unjared = VFSUtils.explode(root);
> // file was not unjared yet
> if (root != unjared)
> {
> This was exposed by prototyping in EMB-32.
--
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
14 years, 2 months
[JBoss JIRA] Created: (JBAS-6640) Undeploying and deploying the same WAR in short time fails.
by Ondrej Žižka (JIRA)
Undeploying and deploying the same WAR in short time fails.
-----------------------------------------------------------
Key: JBAS-6640
URL: https://jira.jboss.org/jira/browse/JBAS-6640
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Deployers
Affects Versions: JBossAS-5.1.0.CR1
Environment: AS version: 5.1.0.CR1 (build: SVNTag=JBoss_5_1_0_CR1 date=200903190511)
Reporter: Ondrej Žižka
Assignee: Ales Justin
Undeploying and deploying the same WAR in short time fails with a message:
----------------------------------------------------------------------------------------------------------------
Failed to create Resource hellothere.war - cause: java.lang.RuntimeException:org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
*** DEPLOYMENTS MISSING DEPLOYERS: Name
vfszip:/home/brq/ozizka/JoprEmbedded/jboss-as-5.x/build/output/jboss-5.1.0.CR1/server/default/deploy/jbas5-admin-console.war/
DEPLOYMENTS IN ERROR:
Deployment "vfszip:/home/brq/ozizka/JoprEmbedded/jboss-as-5.x/build/output/jboss-5.1.0.CR1/server/default/deploy/hellothere.war/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: URL file:/home/brq/ozizka/JoprEmbedded/jboss-as-5.x/build/output/jboss-5.1.0.CR1/server/default/tmp/ayw6m-gfnbbm-fsgkx4z8-1-fsguzifz-fnl/hellothere.war/ deployment failed
-> org.jboss.deployers.client.spi.IncompleteDeploymentException:Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
*** DEPLOYMENTS MISSING DEPLOYERS: Name
vfszip:/home/brq/ozizka/JoprEmbedded/jboss-as-5.x/build/output/jboss-5.1.0.CR1/server/default/deploy/jbas5-admin-console.war/
DEPLOYMENTS IN ERROR:
Deployment "vfszip:/home/brq/ozizka/JoprEmbedded/jboss-as-5.x/build/output/jboss-5.1.0.CR1/server/default/deploy/hellothere.war/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: URL file:/home/brq/ozizka/JoprEmbedded/jboss-as-5.x/build/output/jboss-5.1.0.CR1/server/default/tmp/ayw6m-gfnbbm-fsgkx4z8-1-fsguzifz-fnl/hellothere.war/ deployment failed
----------------------------------------------------------------------------------------------------------------
Server log contains this exception:
----------------------------------------------------------------------------------------------------------------
java.lang.IllegalArgumentException: Document base /home/ondra/work/JOPRembedded/embjopr-svn-trunk/jsfunit/target/jboss5x/tmp/3j011-ix4qw3-fshw77sa-1-fshw84bm-lj/hellothere.war does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:148)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4021)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4188)
... (full stack trace attached.)
----------------------------------------------------------------------------------------------------------------
When tried again after a while, the WAR deploys successfully.
--
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
14 years, 2 months