- This topic has 3 replies, 2 voices, and was last updated 13 years ago by cusdx.
-
AuthorPosts
-
cusdxMemberI have just upgraded from MyEclipse 8.5 to MyEclipse for Spring 10. My tomcat config files are no longer being found in ~tomcat/conf – these are a <project>.properties file and log4j.xml. I have put them in ~tomcat/shared/classes and ~tomcat/common/classes respectively and tomcat is now finding them – but I’m not keen on that configuration because it’s a bit obscure and doesn’t reflect the live environment.
Any idea why this has changed and how I can fix?
cconwayMemberHi cusdx,
Are you using the Tomcat server connector that appears by default in the servers view or are you using an external Tomcat that you’ve configured?
cconwayMemberHi cusdx,
I wanted to post something back to you before the holiday so I’ll assume you’re using the server connectors that are pre-configured in MyEclipse and MyEclipse for Spring.
I’m not sure of any changes on our end that would have caused the change but with your new installation you got a new Server connector that is back to the default settings. If you have configuration files that you want picked up, you’ll need to add the conf directory back to the server classpath using these steps:
1. In the Servers view right-click on the “MyEclipse Tomcat” server connector.
2. Select “Configure Server Connector”
3. In the tree on the left, expand the “MyEclipse Tomcat 6” node and select the “Paths” sub-node.
4. On the panel that loads on the right side of the screen, select the “Add DIR” button of the desired classpath option. (I chose the “Prepend to classpath” section).
5. Browse and find your tomcat conf directory.Beware that when you scaffold using MyEclipse for Spring, you’ll get a log4j.properties file added to your project’s resources directory that you’ll need to delete to avoid overriding your global settings in the Tomcat conf directory.
Please post back if this helps.
cusdxMemberThat worked, thanks 🙂
-
AuthorPosts