Drop it in the deploy directory like everything else and add the java.rmi.server.codebase=http://localhost:8080/class-loader/ system property in the server.
xxxxxxxxxxxxxxxxxxxxxxxx Scott Stark Chief Technology Officer JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx ----- Original Message ----- From: "James Cooley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 12, 2003 8:58 AM Subject: Re: [JBoss-dev] Remote class loading servlet > On further testing the ExportException went away but I'd still like to > know how to plugin the servlet. > > James > > James Cooley wrote: > > Hi Dain, Scott, > > > > I wrote a servlet that accepts a request from a java.net.URLClassLoader > > and returns the class. AFAIK I need only support requests of the kind > > org/jboss/util/stream/Streams.class > > but the exising WebServer class also supports > > > > "SomeClassName[some/object/id]/some/file/path" > > > > I can't find where this protocol is defined elsewhere - please point me > > at the spec if we need to support it - I'm a bit blind as to what we > > need as you can see from the next question ... > > > > I created a class-loader.war and I tried running the JRMP tests with > > > > ./testsuite/build.sh > > -Djava.rmi.server.codebase=http://localhost:8080/class-loader/ > > -Dtest=jrmp test > > > > but it doesn't work and I get > > > > ERROR [JRMPInvoker] Starting failed: java.rmi.server.ExportException: > > Port already in use: 4447; > > > > What am I doing wrong? How can I test this. > > > > James > > > > Dain Sundstrom wrote: > > > >> We have a small project open for a volunteer. In Jboss 2 and 3 we > >> have a custom lightweight web server (port 8083) that returns java > >> class files from the classLoader.getResouceAsStream to RMI clients > >> (this is how remote class loading happens). I talked to Scott at > >> JBoss Boot Camp and we think it is a good idea to replace this with a > >> plain old Servlet for JBoss 4.0 so it can work with regular security, > >> pooling and such. This is a fairly simple piece of code and shouldn't > >> take longer then a day or two. If you are interested the code can be > >> found in jboss-head/server/src/main/org/jboss/web/WebServer.java > >> > >> -dain > >> > >> > >> > >> ------------------------------------------------------- > >> This SF.NET email is sponsored by: > >> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > >> http://www.vasoftware.com > >> _______________________________________________ > >> Jboss-development mailing list > >> [EMAIL PROTECTED] > >> https://lists.sourceforge.net/lists/listinfo/jboss-development > >> > >> > > > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Jboss-development mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-development > > > > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development