PDA

View Full Version : Get resin to compile my java file


carlsum1986
01-12-2011, 03:36 AM
Hi
I want to get resin to compile my java file and produce the class file.
the java file location is /usr/local/resin-pro-3.1.10/webapps/ociss/WEB-INF/src/com/xchange/ociss/bean

and I need the class file at /usr/local/resin-pro-3.1.10/webapps/ociss/WEB-INF/classes/com/xchange/ociss/bean


how do I get it to do this....currently I am getting class not found error.....

alex
01-17-2011, 09:35 PM
Please take a look at the compiling-loader in Resin's compiling-loader

http://caucho.com/resin-3.1/doc/env-tags.xtp#compiling-loader

WEB-INF/resin-web.xml

<web-app xmlns="http://caucho.com/ns/resin">

<class-loader>
<compiling-loader source="/pathto/src"
path="/pathto/WEB-INF/classes"/>
</class-loader>


</web-app>