[jboss-user] [Installation, Configuration & Deployment] - Re: Exploded WebModul: Can web-uri point outside of jboss?

rogerdengcn do-not-reply at jboss.com
Tue Mar 20 21:51:08 EDT 2007


Thanks Thomasmarkus 's patch, It works very well for exploded ear. But I want to deploy a exploded war with web-uri point to directory outside of the ear file. I changed the code from 256 line of EARDeployer, it works for me. Hope the later JBoss AS release support this feature, it's very important if application want to support more than one J2EE AS(sicne other J2EE AS have such feature, even it is not J2EE mandatory feature).

  | //                  if( nestedURL == null )
  | //                     throw new DeploymentException("Failed to find module file: "+fileName);
  | //                  sub = new DeploymentInfo(nestedURL, di, getServer());
  | 
  |                   if( nestedURL == null ) {
  | 					  File f = new File(fileName);
  | 					  if (f.exists())
  | 					  {
  | 						sub = new DeploymentInfo(f.toURL(), di, getServer());
  | 					  } else {
  |                          throw new DeploymentException("Failed to find module file: "+fileName);
  | 					  }
  |                   } else {
  |                       sub = new DeploymentInfo(nestedURL, di, getServer());
  | 				  }
  | 
  | 
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030076#4030076

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030076



More information about the jboss-user mailing list