[Design of JBoss Web Services] - Re: JBWS-1093 - normal servlets the web.xml is modified as i
by darran.lofthouse@jboss.com
For Tomcat I see there are two/three different paths that can lead us to rewriting the web.xml
The class TomcatServiceEndpointPublisher starts a scanning thread to periodicaly check the JBossWS deploy folder, if a new archive is found this will cause the archive to be processed and the web.xml to be rewritten.
I cant get JBossWS to deploy to Tomcat at the moment to test this out but as the scanner thread is already running within Tomcat shouldn't it already have a classloader?
The second/third parth is when the deployer is called from the testsuite or when it is called from the command line, in this scenario the only classloader we have is the system classloader. This classloader should still have the JBossWS classes on the classpath.
The only time we really need the classloader is to load the classes of the endpoints to check if the class is annotated with @WebService. What else do you see us needing available on the classpath?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978621#3978621
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978621
19 years, 5 months
[Design of JBoss Web Services] - Re: JBWS-1133 - Exploded JSR-181 POJO Deployment Fails Redep
by darran.lofthouse@jboss.com
Personally I prefer option 2 as well as this means for all deployments we will allways be working with a clean web.xml and it means the user never sees their web.xml modified.
The downside of this approach is that for it to work 3 different products need to change.
Tomcat needs to be changed so that the 'altDDName' attribute is exposed. At the moment I can access this from JBoss as: -
Context ctx = (Context) server.getAttribute(objectName, "managedResource");
| ctx.setAltDDName(metaData.getAltDD());
However this is a bit of a hack and if we are going to use it it should be exposed properly.
Secondly the WebMetaData class will need modifying so include an attribute to hold the name of the new web.xml so that TomcatDeployer can pass it to Tomcat.
The earliest we could get this in would be for JBoss 4.0.6.GA and once in JBossWS would not be compatible with previous JBossAS versions.
Having said that despite the number of projects affected this is probably the simplest to implement, just a few lines of changes in each product.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978616#3978616
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978616
19 years, 5 months