[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools] Re: changing project to dynamic web project fails miserbly???

Dean Hiller wrote:
wow! that was my missing link on the web app libs thing!! thanks!!!

Now, I just can't seem to get my EJB3 project that the war project depends on to be in the classpath for some reason. I checked the xcore3 project on the J2EE Module Depend window, but it is still not getting included. Usually this is so automatic on straight java projects...I must be missing one more simple step???

Adding a Java project as a dependency of a Dynamic Web Project will convert the Java project to a WTP type project, i.e. one that contains a "module". The Java project should now contain a "components" file like the Dynamic Web Project. You might check that file to make sure it's pulling from the correct Java source directories. In this case the deploy-path is relative to the implied jar that will contain the project's classes.



Also, very strangely, I don't see the web app in tomcat/webapps like MyEclipse would do.

When creating a new Tomcat server, the default is to create a separate Tomcat instance, i.e. catalina.base != catalina.home. In addition, the default is to deploy to "wtpwebapps" to avoid various auto-deployment issues. For details about the WTP Tomcat support, see the Tomcat FAQ:


http://wiki.eclipse.org/WTP_Tomcat_FAQ

Cheers,
Larry

Where does it put the web app files? That has been a great MyEclipse feature as I could go look and figure stuff out and see what files were missing from the final deployment. Where is the webapp assembled to so I can view it? Sometimes there is a file missing or whatnot and just looking at the structure tells me my bug right away.

thanks much, Dean