Re: "So I added the contents (all the libs) of $JBOSS_HOME/lib to the $JBOSS_CLASSPATH environment variable which I didn't expect to have to do"
You shouldn't need to do this - it should be able to find these from http://boothost:8080/netboot/nbconfig/lib Re: "The build.xml in the netboot-demo cvs module has a hard reference to a jboss-3.0.0beta version and fails to build out of the box." You can set the environment variable JBOSS_HOME to override this default. Jeremy -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Rehorn Sent: Sunday, April 06, 2003 3:49 PM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] netboot in 3.2 Thanks for the reply Jeremy. I think I resolved my problem-- I made a goofy mistake setting library locations in the environment on my remote system which had me chasing my tail when I should have been chasing jars. More specifically, here is what I wound up doing in case others get stuck on this. The error I was receiving on the remote system was the "class not found: org.jboss.system.server.ServerImpl" exception which I think means it can't make even the first connection from this form of the command (even though this is correct for my config per your note about the web.xml touch): $ bin/run.sh --netboot=http://boothost:8080/netboot/nbconfig/ (this implies -c default, my example didn't have any other configs) So I added the contents (all the libs) of $JBOSS_HOME/lib to the $JBOSS_CLASSPATH environment variable which I didn't expect to have to do, but not a big deal since a remote boot script/package "should" be specific about what it wants and not assume the lib directory is "right there". Brief end-to-end recipe for netboot in 3.2 (please correct any omissions ;^): 1. create a version of the configuration you wish to deploy to a remote booting system like this: nbconfig/server/default/{lib,conf,deploy} (nbconfig is an arbitrary value just for this example). 2. "unexplode" all the archives in deploy into .war, .sar, files. 3. create a netboot.war based on the skeleton netboot.war found in $JBOSS_HOME/docs/examples/netboot (that is, unpack it to a work directory, place your version of the configuration you made in #1 in the top-level dir, modify WEB-INF/web.xml so the filter can look up 'nbconfig/*' instead of the default 'jboss/*' value, then rebuild the .war file.) 4. Deploy your netboot.war file to your boot host's deploy directory. 5. On the remote host, set the JBOSS_CLASSPATH to include all the libraries in $JBOSS_HOME/lib 6. $ cd $JBOSS_HOME; bin/run.sh --netboot=http://boothost:8080/netboot/nbconfig/ Thanks Jeremy - scott r ps: The build.xml in the netboot-demo cvs module has a hard reference to a jboss-3.0.0beta version and fails to build out of the box. ;^) -----Original Message----- From: Jeremy Boynes [mailto:[EMAIL PROTECTED] Sent: Sunday, April 06, 2003 9:34 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] netboot in 3.2 If you are deploying this on Jetty, did you change the url-mapping of the TrivialWebDAVFilter in web.xml from /jboss/* to /nbconfig/* so that it is tied to your config? Or, if your are deploying on Tomcat, did you activate Tomcat's WebDAV servlet (sample config is contained in web.xml) and turn off the filter? The jar on the website just contains a copy of the files needed from the bin directory and IIRC is a 3.0 version. For 3.2 you can simply use the files from normal binary distribution, or can build the new jar from CVS (applications/netboot-demo module, not the jboss-3.2 tree). Cheers Jeremy -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Rehorn Sent: Sunday, April 06, 2003 12:00 AM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] netboot in 3.2 I am trying to set up netboot in 3.2.0 RC4 on win2k, and it isn't working for me. Hopefully someone can set me straight. - I built a netboot.war file based on the skeleton in the example with a directory tree in it like this: nbconfig/server/default/{conf,lib,deploy}. I packed up the various .?ar files into file archives for this. This deploys, and I can browse to these elements at http://host:8080/netboot. - Is it strictly necessary to use the tiny client as displayed on the jboss.org website or can a fully-installed jboss bin/run.sh be run with --netboot=http://host/netboot/nbconfig/ as suggested by the -h option? If the small run.jar is necessary, is the most current version built in the netboot-demo in cvs? - In any case, the client fails since it can't load any libraries, which makes me think I have arranged the "netboot.war" incorrectly. I can sort of beat it into submission by loading the usual libs from local store, but it's failing (apparently) on the initial connection and thus won't load the necessary libraries to start from the remote configuration. Any pointers appreciated! Thank you - scott r > -----Original Message----- > From: Jeremy Boynes [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 02, 2003 11:00 PM > To: [EMAIL PROTECTED] > Subject: RE: [JBoss-user] netboot in 3.2 > > > Netboot in 3.2 changed significantly as documented in change > note 660839 > > The listContent JSP is no longer needed - instead you just > need to make > your config available on a WebDAV enabled server and provide the > location to the client. > > For example, if your installation is located at > http://boothost/netboot/jboss (and so you config would be at > http://boothost/netboot/jboss/server/default for example), then you > would start the client with > > $ run --netboot http://boothost/netboot/jboss > > If you are using Jetty as a boot host, there is a skeleton netboot.war > in the docs/examples/netboot directory that contains a simple Filter > that provides enough WebDAV functionality for the client to work). The > source for this Filter, should you need it, is in the varia module. > > There are a couple of issues documented in the change note: > * archives on the boot host should be packed > * JSP compilation is problematic due to classpath issues with javac - > you should precompile them to avoid this > > Jeremy > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of > > Sonnek, Ryan > > Sent: Wednesday, April 02, 2003 11:49 AM > > To: '[EMAIL PROTECTED]' > > Subject: [JBoss-user] netboot in 3.2 > > > > > > is there a readme for getting the netboot.war provided in 3.2 > > up and running? also, where is this source available through > > cvs? i'd like to dig through what's really happening here. > > > > after deploying it and trying to access it at > > http://localhost/netboot/listConfig.jsp > > i get the following error: > > 13:48:09,569 WARN [jbossweb] WARNING: Exception for > > /netboot/listContent.jsp java.lang.NullPointerException > > at > org.jboss.util.Strings.replaceProperties(Strings.java:322) > > at > > org.apache.jsp.listContent_jsp._jspService(listContent_jsp.java:49) > > at > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) > > at > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > at > > org.apache.jasper.servlet.JspServletWrapper.service(JspServlet > > Wrapper.java:2 > > 04) > > at > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet > > .java:295) > > at > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) > > at > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > at > > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360) > > at > > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebAp > > plicationHandl > > er.java:278) > > at > > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler > > .java:558) > > at > org.mortbay.http.HttpContext.handle(HttpContext.java:1714) > > at > > org.mortbay.jetty.servlet.WebApplicationContext.handle(WebAppl > > icationContext > > .java:548) > > at > org.mortbay.http.HttpContext.handle(HttpContext.java:1664) > > at org.mortbay.http.HttpServer.service(HttpServer.java:863) > > at org.jboss.jetty.Jetty.service(Jetty.java:460) > > at > > org.mortbay.http.HttpConnection.service(HttpConnection.java:775) > > at > > org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939) > > at > > org.mortbay.http.HttpConnection.handle(HttpConnection.java:792) > > at > > org.mortbay.http.SocketListener.handleConnection(SocketListene > > r.java:201) > > at > > org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289) > > at > > org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455) > > > > Ryan Sonnek > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: ValueWeb: > > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > > No other company gives more support or power for your > > dedicated server > > http://click.atdmt.com/AFF/go/sdnxxaff00300020> aff/direct/01/ > > > > > > _______________________________________________ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/j> boss-user > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user