- This topic has 3 replies, 2 voices, and was last updated 16 years, 6 months ago by Loyal Water.
-
AuthorPosts
-
jslate73ParticipantI’m trying out MyEclipse after having used regular old Eclipse for a while. I have a project that I’ve checked out in MyEclipse I’m trying to deploy it to Tomcat 5.5. from MyEclipse. I didn’t anticipate having to change much in the project as it works okay in regular Eclipse….
So I figured out from the manual pages that I need to “Add MyEclipse Web Capabilities.” And I’ve added a server configuration for my existing Tomcat 5.5 install. I can then add the project to the server, but it doesn’t start. The problem seems to be that MyEclipse deleted everything in WebContent/WEB-INF/classes, which is where I have my log4j.propeties files and all my *.ibatis.xml files. I specified WebContent as the web root and the root directory of the project (i.e. /myproject) as the web context root.
Is there a way I can set up my project to allow web capabilities while keeping these files where they are? If not, where should I be putting them?
Also, I’m not sure I get the implications of deploying to MyEclipse Tomcat vs. my own tomcat installation. I think I’d rather use my own, we have some custom configs etc. Is there something I don’t get with that setup?
Thank you,
Jonathan
Loyal WaterMemberThe problem seems to be that MyEclipse deleted everything in WebContent/WEB-INF/classes, which is where I have my log4j.propeties files and all my *.ibatis.xml files.
You can go to Windows > Prefs > Java > Compiler > Building > Output Folder and uncheck “scrub output folders when cleaning projects”.
The properties file needs to go iin the root of your /src directory, it will be built (copied) into the /classes dir for you.
Also, I’m not sure I get the implications of deploying to MyEclipse Tomcat vs. my own tomcat installation. I think I’d rather use my own, we have some custom configs etc. Is there something I don’t get with that setup?
MyEclipse Tomcat has the basic abilities to help you you run/test your projects with MyEclipse without configuring tomcat. You should configure you own server and work against it.
jslate73ParticipantThat helped.
Loyal WaterMemberGlad it helped.
-
AuthorPosts