-
1. Re: JBAS-7834 XMLs contained by archives are parsed aggressively by deployers, resulting in unexpected errors
marius.bogoevici Mar 23, 2010 1:19 PM (in response to marius.bogoevici)Ales, I am aware of the workarounds, but the main reason why I am pointing this out is that we're talking about perfectly legitimate applications, doing things which are not specifically prohibited under Java EE, yet failing to deploy properly.
All I am saying is, that for bits which are not specifically indicated by Java EE (like for example META-INF/persistence.xml), we could ignore xml files that cannot be parsed correctly, as if they wouldn't be part of the deployment. So if I have a non-Java EE deployer, and I happen to have a legacy application that would happen to match it, that would be a problem.
All the things you suggested are very easy to do, but the simple requirement of tweaking the application or the application server, although fairly easy to do during development, may not fare well within a larger application development environment.
So if we aren't willing to fix this, then we should at least document the list of reserved file names shipped with the JBoss AS.
-
2. Re: JBAS-7834 XMLs contained by archives are parsed aggressively by deployers, resulting in unexpected errors
alesj Mar 23, 2010 3:10 PM (in response to marius.bogoevici)All I am saying is, that for bits which are not specifically indicated by Java EE (like for example META-INF/persistence.xml), we could ignore xml files that cannot be parsed correctly, as if they wouldn't be part of the deployment. So if I have a non-Java EE deployer, and I happen to have a legacy application that would happen to match it, that would be a problem.
All the things you suggested are very easy to do, but the simple requirement of tweaking the application or the application server, although fairly easy to do during development, may not fare well within a larger application development environment.
So if we aren't willing to fix this, then we should at least document the list of reserved file names shipped with the JBoss AS.
OK, I see your point.
I'll add a flag to our parsing deployers, which will indicate that the file we're parsing can fail -- e.g. invalid match.
Otoh, we already have a mechanism for ignoring files at parsing -- see AbstractParsingDeployerWithOutput::ignoreName().
Do you have any preferences on how to enable this for such users?