Converting a java resultset into a Railo CF query
It's pretty easy:
And that's it!
It's pretty easy:
And that's it!
If you're running Railo with Jetty, and are wondering how to bind Jetty to a specific port, look no further!
Well, guess you should look further than that, as hell, how would you actually find out if you had stopped up there, around the exclamation mark.
Anyways, nothing super hard -- edit the server.xml file (in the root folder of your install, probably) and add this line:
Right.
Zat's it.
If you've done it with CF, all you need to do is copy a couple of files and make a couple of edits, but basically it goes like this:
Download the railo.war archive.
Create a sub-directory under the jboss server's deploy directory called railo.ear.
In the railo.ear directory, create a sub-directory called META-INF
Create a file called application.xml within the META-INF directory. Here is an example application.xml:
Move the railo.war file to the railo.ear directory, and rename it to railo.war.zip, and unzip it there.
You should now have a sub-directory called railo.war in the railo.ear directory.
Delete railo.war.zip.
Fix the nested zip errors [link to fix] by adding a file in WEB-INF/jboss-classloading.xml that contains:
Edit: Better way of fixing the classloading errors (credit to http://nagpals.com/blog/post.cfm/classloader-conflicts-in-railo-on-jboss for the solve, and other good stuff):
The correct way to fix this issue is to make JBoss isloate classes loaded for different applications, thereby removing the possibiiity of conflicts. On JBoss 5 you can do this if you add a file in WEB-INF/jboss-classloading.xml that contains:
FWIW, I like to keep everything in an EAR, and use an application.xml file to define the context, etc..
Eventually I'll post an entry on creating an EAR deployment with CF/Railo, as it's pretty easy.