Re: At wits end with jboss-struts new build system!
Michael Nash <[email protected]> Mon, 02 Aug 2004 08:33:53 -0400
| Newsgroups | gmane.comp.java.keel.user |
|---|---|
| Organization | JGlobal Limited |
| Message-ID | <[email protected]> |
Max: On Sun, 2004-08-01 at 12:25, maxxam-cuDQgYkrLFxfAa1EqD/[email protected] wrote: > Hi Mike, > > Thanks for the response. I have indeed tried to build and manually deploy > a war file, however the war file only seems to contain the client side of > keel and also the web.xml file throws an exception when loaded by jboss. Ah - Ok, I didn't realize you were deploying a "two-part" application, where the Keel server is separate from the client & webapp. It's possible to deploy a single war, just use the "non-jboss" configuration, such as the example-projects/default/ant.properties. This deployment would do everything in a single war, if that's what you wanted to do. > I have looked at the configuration options for jboss and can't find a > place to direct it to a webapps expanded directory. Jboss has the > following startup configuration options: I think there is a mechanism to do this, but I don't recall immediately how to go about it. It has to do with placing a configuration file in the deploy directory that points to the webapp. > > help - shows the help message, example below > version - shows the JBoss version > D - defines a system property, e.g. -Djava.rmi.hostname=localhost > patchdir - a directory containing jars to be used instead of the default > kernel jars > netboot - the url containing the jboss image that will be loaded > configuration - the name of the server configuration, e.g. minimal, > default, all > jaxp - the JAXP implementation to use (a short cut instead of using -D > options) currently xerces and crimson are supported > library - add additional jars from the /lib folder to the bootstrap > classloader > classpath - add an extra url to the classpath (by default run.jar and > tools.jar) > properties - a url containing a properties file to set as system properties > host - the host or ip address used by jboss services as the binding > address (equivalent to -Djboss.bind.address=host), e.g. -b localhost > > Perhaps there is a system property that can be defined? > > Anyway, I would offer my help in looking at the build scripts but it is > something that I understand very little about. I'll see if I can get the example updated again. What rev of JBoss are you working with? Mike > > Thanks again, > Max > > > > Max: > > > > My apologies for not chiming in on this earlier... Have you tried the > > "ant war" command to crank out the war file? With the new build system, > > no war file is generated until/unless you request one - only the webapp > > dir, which is "expanded". > > > > jboss-start simply starts up Jboss, just as a convenience, like > > tomcat-start. It doesn't necessarily deploy your app > > > > I think the problem is that most of the Keel developers use Tomcat > > initially, and the config to point Tomcat to the webapp directory is > > done. I know JBoss can do the same thing, but in the meantime if you > > generate your war with "ant war", then just copy it to the deploy > > directory in Jboss, that should get you started at least. I'll see if I > > can have a look at the deploy scripts to make this more straightforward, > > but time is tight for the next couple of weeks... > > > > HTH! > > > > Mike > > > > On Sat, 2004-07-31 at 08:56, maxxam-cuDQgYkrLFxfAa1EqD/[email protected] wrote: > >> Can someone please, *please* point me in the right direction with > >> deploying jboss-struts using the new build system. > >> > >> I cannot for the life of me deploy the example jboss-struts. It builds > >> just fine but when running "ant jboss-start" *nothing* is deployed!?! > >> Nothing is copied to the jboss deploy directory! No war file is created! > >> > >> Must I: > >> > >> 1) Somehow create linked directories from the jboss deploy directory to > >> the webapps and/or server directories that gets created during the build > >> process? > >> 2) Somehow configure jboss that the deployment is in a different > >> directory? > >> 3) Create a war file and deploy that manually every time? I did this and > >> the war file a) doesn't work and b) doesn't appear to have the keel > >> server > >> in it. > >> 4) Post this question on the developer mailing list? > >> 5) Quit using keel as I'm too stupid? > >> > >> Is *anyone* out there successfully using jboss-struts using the new > >> build > >> system and keel cvs? Is it just me doing something wrong or is the > >> jboss-struts broekn in cvs? > >> > >> I've tried two previous posts to try to illicit some kind of help from > >> this mailing list without any response. I searched the wiki, the > >> quickstart manual, google, the jboss deployment manual, the mailing list > >> and just cannot find any information on this. > >> > >> I have a functioning wireless/struts application under keel-2.0. Should > >> I > >> just forget the wiki advice to only use the CVS version of keel and stay > >> with 2.0? > >> > >> Thank you anyone for *any* pointers to get past this problem. > >> > >> Struggling, > >> Max > >> _______________________________________________ > >> User mailing list > >> [email protected] > >> http://lists.keelframework.org/listinfo.cgi/user-keelframework.org > > > > _______________________________________________ > > User mailing list > > [email protected] > > http://lists.keelframework.org/listinfo.cgi/user-keelframework.org > > > > _______________________________________________ > User mailing list > [email protected] > http://lists.keelframework.org/listinfo.cgi/user-keelframework.org