Project Compiler Output and Tomcat
Hi,
I want the compiler output to go directly to my Tomcat webapp. E.g. /opt/tomcat/webapps/myapp/WEB-INF/classes/**
But instead the compiler output goes to /opt/tomcat/webapps/myapp/WEB-INF/classes/production/myapp/**
This is apparently not even configurable (..?)
So then how is the automatic deployment to Tomcat supposed to work? What changes do I need to make to Project Compiler Output (or others).
Note that the other resources and libraries are working well: they do get deployed directly and correctly to /opt/tomcat/webapps/myapp (resources)
and /opt/tomcat/webapps/myapp/WEB-INF/lib (jars)
thanks,
stephen b
Please sign in to leave a comment.
Projectsettings, Select the Module, Select Paths-Tab, Click "Use Module Compile Output Path" and then enter the Path in "Output Path"
A Better approach is to create a Web-Module facet and set it up to maintain your Web-Application
Regards
Hans
HI Hans,
I see the option you mention, and changed the compiler output path for the module. But now after making a change to the java source and making the module again, I can't even find .class compilation anywhere underneath WEB-INF/classes. I double-checked that the path is correct.. That's strange..
On the second point, I already had a web module associated with this.
Edited by: Stephen Boesch on Apr 21, 2008 11:34 AM
Hi again,
It seems that the class files were being overwritten from old copies that I have since removed, so your original post does work.
thanks!
stephen b