[Deployers on JBoss (Deployers/JBoss)] - Re: Is META-INF in the classpath?
by adrian@jboss.org
This looks like a problem with the new SARDeployer.
| protected ServiceDeployment parse(VFSDeploymentUnit unit, VirtualFile file, Document document) throws Exception
| {
| ServiceDeploymentParser parser = new ServiceDeploymentParser(document);
| ServiceDeployment parsed = parser.parse();
|
The location of the xml document (file.toURL())
is not being passed to the JAXP parser used
by ServiceDeploymentParser, so it wil resolve it relative to the current directory
(which is the bin folder normally with JBoss).
But I think this will be true of a lot of the other parsing deployers that now use JBossXB.
In general we are passing streams instead of URLs, e.g.
JBossXBDeployerHelper
| InputStream is = openStreamAndValidate(file);
| Object parsed = null;
| try
| {
| // HERE Doesn't know the file url
| parsed = unmarshaller.unmarshal(is, resolver);
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154425#4154425
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4154425
16 years, 8 months
[Design of POJO Server] - Re: Integrating aop-mc-int bean metadata with AS5
by adrian@jboss.org
"kabir.khan(a)jboss.com" wrote : Because the beans that push the things into the aspectmanager are not deployed until the BeanMetaDataDeployer picks them up in the REAL stage.
|
| Are you suggesting that as part of my POST_CLASSLOADER deployer rip out the aop beanmetadatafactories from the deployment, and deploy them myself there? That could work, they are easily identifiable, but I didn't want to mess around with the deployment too much.
You at least need to push the point-cut definitions into the AspectManager
during POST_CLASSLOADER so you know which classes need weaving and where.
The aspects themselves won't become usable until the dependencies are
satisifed (i.e. dependencies get injected onto them during the REAL stage)
but then nobody should be trying to use the objects until this is done
(they should just be analysing the classes).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154420#4154420
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4154420
16 years, 8 months
[Deployers on JBoss (Deployers/JBoss)] - Re: Is META-INF in the classpath?
by scott.stark@jboss.org
No, not generally. If its needed you would have to use a META-INF/jboss-structure.xml to instruct the structure deployers to add it. You then have to specify the complete classpath though. Don't know if the latest classloading deployers have a simpler syntax for this.
| <structure>
| <context>
| <path name=""/>
| <metaDataPath>
| <path name="META-INF"/>
| </metaDataPath>
| <classpath>
| <path name=""/>
| <path name="lib" suffixes=".jar"/>
| </classpath>
| </context>
| <context>
| <path name="jbosstest-web.war" />
| <metaDataPath>
| <path name="WEB-INF"/>
| </metaDataPath>
| <classpath>
| <path name="jbosstest-web.war/WEB-INF/classes"/>
| <path name="jbosstest-web.war/WEB-INF/lib" suffixes=".jar"/>
| </classpath>
| </context>
| <context>
| <path name="wars/notjbosstest-web.war" />
| <metaDataPath>
| <path name="WEB-INF"/>
| </metaDataPath>
| <classpath>
| <path name="wars/notjbosstest-web.war/WEB-INF/classes"/>
| </classpath>
| </context>
| <context>
| <path name="jbosstest-web-ejbs.jar" />
| <metaDataPath>
| <path name="META-INF"/>
| </metaDataPath>
| <classpath>
| <path name="jbosstest-web-ejbs.jar"/>
| </classpath>
| </context>
| <context>
| <path name="cts.jar" />
| <metaDataPath>
| <path name="META-INF"/>
| </metaDataPath>
| <classpath>
| <path name="cts.jar"/>
| </classpath>
| </context>
| <context>
| <path name="websubdir/relative.jar" />
| <metaDataPath>
| <path name="META-INF"/>
| </metaDataPath>
| <classpath>
| <path name="websubdir/relative.jar"/>
| </classpath>
| </context>
| <context>
| <path name="scripts/security-config-service.xml" />
| </context>
| </structure>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154418#4154418
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4154418
16 years, 8 months