| Author |
Message |
|
|
Post subject: Configuring which jars get deployed
Posted: Jan 04, 2010 - 06:21 PM
|
|

Joined: Jan 04, 2010
Posts: 51
|
|
Is there a way to exclude certain jar files in your build path from being deployed to the server? |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Configuring which jars get deployed
Posted: Jan 04, 2010 - 06:45 PM
|
|

Joined: Jan 04, 2010
Posts: 51
|
|
Here is some more information - I accidentally submitted without including this information.
I am using MyEclipse 8.0. I have created a MyEclipse web project by selecting New -> Project -> MyEclipse -> Java Enterprise Projects -> Web Project. I added some jars to the build path, some that I only need to compile at design time, but I don't want them to be deployed to the WEB-INF/lib folder when I deploy the application. Is there a way to accomplish this?
I am able to do it with a standard eclipse jst web project (using the Java EE Module Dependencies property sheet) but I have not found a way to do this with a MyEclipse web project. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Configuring which jars get deployed
Posted: Jan 05, 2010 - 05:17 PM
|
|
Moderator


Joined: Aug 21, 2004
Posts: 2339
|
|
Jay,
We have some preferences to control what JARs are deployed in the Window > Preferences > MyEclipse > Java Enterprise Project > Web Project page - see the Deployment tab. Other than this we don't have further control over deployment - we will be adding deployment filtering to a future release. |
_________________ Brian
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: RE: Configuring which jars get deployed
Posted: Mar 05, 2010 - 10:04 PM
|
|
Veteran Member


Joined: Jul 01, 2006
Posts: 126
|
|
I agree that this is a very useful and necessary feature.
I have a couple of projects which need app server jars to compile some classes during development, but which cannot be packaged and deployed with the war.
My workaround for now is to create another project holding just these jars and mark them as exported to dependent projects.
In my main project I make this "jar project" a dependent project.
This works, but is rather unmanageable and confusing to maintain.
-- Frank |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Configuring which jars get deployed
Posted: Mar 08, 2010 - 06:15 AM
|
|
Registered Member


Joined: Feb 03, 2009
Posts: 3364
|
|
Frank,
Thank you for sharing your findings with us.
Best. |
_________________ Joy
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: ClassCastException between EJB and WEB module
Posted: Mar 22, 2010 - 03:41 PM
|
|

Joined: Mar 06, 2007
Posts: 3
|
|
I try to share a library between WEB module and EJB module in the EAR/lib directory.
I use deployment feature in MyEclipse and the library is in 2 classloaders and we get a ClassCastException. Ww wan't use the deployment feature with MyEclipse but without solution, we will move the another one. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: ClassCastException between EJB and WEB module
Posted: Mar 23, 2010 - 06:53 AM
|
|
Registered Member


Joined: Feb 03, 2009
Posts: 3364
|
|
boima1,
I am not sure what is the issue you are facing. If you want to share a lib between web and ejb module, create a user library and add this library. Next add the user library to both web and ejb module. I don't have visibility of your system. Can you answer few queries?
1. Copy and paste your installation details here. Open MyEclipse IDE, from menu options click on MyEclipse > Installation Summary > Installation Details.
2. Open .log file located at [your workspace dir]/.metadata/.log. Next clear the log file. Press [Ctrl+A] and [Delete] and save the file. Next reproduce the error. Copy and paste the contents of log file here
3. Can you attach screenshot of the issue you are facing? This will help me get a visual |
_________________ Joy
MyEclipse Support
|
| |
|
|
|
 |
|
|