MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
mlarkin2005
Post subject: Deployment/packaging fails to include all dependencies?  PostPosted: Oct 30, 2004 - 10:14 PM
Veteran Member
Veteran Member


Joined: Oct 30, 2004
Posts: 2

I have two projects, call them 'A' and 'B', in my workspace. Project 'A' is a regular Java project that contains some utility classes and common classes used by project 'B' (and other projects that are unrelated to the problem).

In Eclipse, it's easy to get this working by including a reference in the build path for project 'B' so that it includes project 'A'. No problems here.

However, project 'B' happens to be a web application built using MyEclipse - when I deploy to the app server, the generated WAR does not contain the classes and/or JAR from project 'A', leading to NoClassDefFound errors when running the application.

Is there a way to tell MyEclipseIDE's packager that it should bundle the external resources from other projects?

PS - I've already tried to export project 'A' to a JAR and include this JAR as an external JAR in project 'B's build path - Deployment still fails to include the JAR file I've specified, leading to the same problems.

PPS - Is there a simple way to just generate a WAR file from a web project and just place it in the FS somewhere? When I try to export JARs or ZIPs, it includes all of the workspace structure (eg folders named 'WebRoot' etc) and thus results in an unusable WAR. It seems as if the deployer is doing this, but is there a way to generate it separately via File->Export or something similar?

Any thoughts?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
mlarkin2005
Post subject:   PostPosted: Oct 30, 2004 - 10:15 PM
Veteran Member
Veteran Member


Joined: Oct 30, 2004
Posts: 2

One more thing - I've tried with JBOSS 3.2.6 and 4.0.0, and Tomcat 5.0.28. All have the same problem.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-scott
Post subject:   PostPosted: Nov 01, 2004 - 12:28 AM
Moderator
Moderator


Joined: May 06, 2003
Posts: 6760

Can you have a look at our Web Development tutorial in the Documentation section? The direct link is here:
http://www.myeclipseide.com/images/tutorials/quickstarts/webprojects/

I think Section 10 will answer your questions.

_________________
--Scott
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits