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
support-piotr
Post subject: Configuring WebSphere Runtime for a project in ME 10.x  PostPosted: Jun 15, 2012 - 09:28 AM



Joined: Feb 10, 2011
Posts: 84

Some projects require WebSphere runtime jars present in the build path during compilation. If you want to configure a WebSphere runtime for your project, do as follows:

1. Create User Library for WebSphere Runtime. Go to: Window -> Preferences -> Java -> Build Path -> User Libraries and add jars you need from WebSphere installation.

2. Go to Deployment Settings of Web Projects (Window > Preferences > MyEclipse > Java Enterprise Projects > Web Project -> Deployment) and uncheck "Jars from users libraries" and "User library jars exported from dependent java projects" making sure, that the others two are checked.

3. Add runtime to projects path (Project -> Properties > Java build path -> Libraries -> Add library -> Select User library).

_________________
Piotrek
MyEclipse Support


Last edited by support-piotr on Aug 14, 2013 - 10:19 AM; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
ad9c14
Post subject: Exporting WAR  PostPosted: Oct 18, 2012 - 03:40 PM



Joined: Oct 15, 2012
Posts: 4

I added the JAX-RS support to my WAR project and it automatically added following two User Libraries to Java Build Path. This project also use WAS 7 as target server.

JAX-RS Core Libraries
JAX-RS JAXB Libraries

Unchecking "Jars from users libraries" and "User library jars exported from dependent java projects" prevent JAX-RS Jar files including from exported WAR file. It makes sense to not to include WAS 7 runtime jar files into WAR while exporting it. but I do want to include JAX-RS jar files into exported WAR file.

How do I this ?
 
 View user's profile Send private message  
Reply with quote Back to top
support-piotr
Post subject:   PostPosted: Oct 19, 2012 - 08:57 AM



Joined: Feb 10, 2011
Posts: 84

ad9c14,

This tip applies to ME 10.5 and below. In ME10.6 we have added possibility to select target WebSphere server (Project properties -> MyEclipse -> Target WebSphere Server), which would automatically add the runtime to the classpath. However, in case of Web projects, those libraries would get deployed. We are going to release MyEclipse 10.7 with a fix for that and several other issues in the end of the next week (26.10.2012). This issue affects only Web projects. For now, one can do the following workaround:

1. Open .mymetadata file from the root folder of Web project
2. Paste following code inside <project-module> element:

<packaging-strategy>com.genuitec.eclipse.blue</packaging-strategy>

3. Restart/open MyEclipse
4. The workaround should be removed when updated to ME10.7

_________________
Piotrek
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
ad9c14
Post subject:   PostPosted: Oct 22, 2012 - 02:27 PM



Joined: Oct 15, 2012
Posts: 4

Thank you so much for your response. It worked great using workaround.
 
 View user's profile Send private message  
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