"adrian(a)jboss.org" wrote :
| wouldn't have the correct classpath, etc.
|
Why wouldn't it have correct classpath?
As you said, every .war file is recognized as a war,
hence getting war-kind of classpath.
This does the trick for me
| public void deploy(DeploymentUnit unit) throws DeploymentException
| {
| if (unit.isAttachmentPresent(JBossWebMetaData.class))
| return;
|
| // only care about true deployments
| if (unit instanceof VFSDeploymentUnit == false)
| return;
|
| if (unit.getSimpleName().endsWith(".war"))
| {
| log.debug("Web archive doesn't contain web.xml: " +
unit.getName());
| unit.getTransientManagedObjects().addAttachment(JBossWebMetaData.class, new
JBossWebMetaData());
| }
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181539#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...