Hi David,
RIFE expects very little as a directory structure since everything is
looked up through the classpath by default. The structure you see in the
examples and the jumpstart is just one that we found convenient to work
with. As you can see in the Ant run target, a proper classpath argument
is all that's needed:
http://rifers.org:8088/viewrep/rifers/rife-jumpstart/trunk/build.xml?r=2745#l64
Something that you have to realize is that RIFE/Jumpstart is setup to
run in-place. You thus don't have a deployment phase anymore, you can
just start up the servlet container, modify your files and reload the page.
RIFE however has to know which classes are to be considered part of the
web application. By default it detects this when there's 'WEB-INF' in
the resource URL of a class. However, since the RIFE/Jumpstart structure
is located outside the servlet container, you need to specify this in
with the rife.webapp.path JVM property:
http://rifers.org:8088/viewrep/rifers/rife-jumpstart/trunk/build.xml?r=2745#l263
The fact that you tried modifying your classes in WEB-INF/classes/rep
means that you deployed it someone (or tried to). If you wish, you can
do away with the entire src dir and lib dir and place them as
WEB-INF/classes and WEB-INF/lib respectively. I do not recommend to
deploy your application after every change though since you'll lose much
of the nice interative coding experience. However if you really want to
do so, you can though, look at the war task in the ant build file:
http://rifers.org:8088/viewrep/rifers/rife-jumpstart/trunk/build.xml?r=2745#l236
I run some RIFE apps in NetBeans occasionally and it works fine, so
don't think that you'll be forced to switch to another IDE. RIFE is
designed to make its development model possible in any IDE, as long as
you can setup the classpath and hotswap somehow.
I hope this help you a bit further. Don't hesitate to ask more questions
if something isn't clear.
Best regards,
Geert
David Herbert wrote:
I am new to RIFE, and find it a potentially very useful framework for
developing applications. I have spent a day or so working through the user's
guide and trying out some of the examples. They run successfully, but I am
very confused by the directory structure which is very different from that of
other apps I have developed and used within the Netbeans environment. The
major difficulty for me is the duplication of files, and the difficulty of
knowing which copy to edit! For example, it took me a while to work out how
to get the friends example running - I edited the datasources.xml file to set
up my postgresql connection and wondered why when the application ran it was
still looking for a database called rife which didn't exist. The answer was
that I had to edit the copy under WEB-INF/classes/rep, not the one under
src/rep which seemed to perform no useful function!
I have been experimenting with trying to create the examples such as
01_helloworld from scratch within a more familiar directory structure, but
this hasn't been successful. I just get Tomcat errors about the resource
being unavailable. I suspect this is because RIFE is expecting a certain
directory structure and I haven't created it.
My questions are:
(1) is anyone else using the Netbeans IDE successfully (I note that Eclipse
and one other commercial IDE have plugins, but I don't really understand what
these do)? Or do I just have to abandon Netbeans altogether?
(2) What directory structure does RIFE expect for a Java project? Is it as
rigid as wanting a WEB-INF/classes directory under the project root, or can I
organise files differently?
I hope someone can help me with these newbie issues!
With thanks,
David Herbert.
_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users
--
Geert Bevin Uwyn bvba
"Use what you need" Avenue de Scailmont 34
http://www.uwyn.com 7170 Manage, Belgium
gbevin[remove] at uwyn dot com Tel +32 64 84 80 03
PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net
_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users