- This topic has 3 replies, 2 voices, and was last updated 17 years, 7 months ago by
Loyal Water.
-
AuthorPosts
-
advancestoresMemberI am new to MyEclipse and have encountered the following problem:
Using Eclipse with JST/WST, if I want to add JEE libraries as implemented by a specific App Server, i.e. JBoss, I go to the following menu and add a JBoss server runtime:
Window->Preferences->Server->Installed Runtime
After configuring the runtime, I am able to add JBoss libraries to the build path of my JEE projects.
How can I achieve the same result with MyEclipse?
Thanks.
Loyal WaterMemberThe best way to do this is to setup a User Library with all the appropriate JARs in it by going to Windows > Preferences > Java > Build Path > User Libraries, and just add it to your build path.
advancestoresMemberI was afraid that you were going to say that. :>)
I can still get the functionality by adding the following to my .metadata/.plugins directory:
org.eclipse.wst.server.core/servers.xml file with the following content:
<?xml version=”1.0″ encoding=”UTF-8″?>
<servers>
<server hostname=”localhost” id=”8_3_07_3_42_PM6″ name=”JBOSS 4.2″ runtime-id=”JBoss v4.2″ server-type=”org.eclipse.jst.server.generic.jboss42″ server-type-id=”org.eclipse.jst.server.generic.jboss42″ timestamp=”0″>
<map jndiPort=”1099″ key=”generic_server_instance_properties” port=”8080″ serverAddress=”127.0.0.1″ serverConfig=”default”/>
</server>
</servers>org.eclipse.core.runtime/.settings/org.eclipse.wst.server.core.prefs file with the following content:
#Wed Sep 12 15:08:54 EDT 2007
module-start-timeout=300000
runtimes=<?xml version\=”1.0″ encoding\=”UTF-8″?>\n<runtimes>\n<runtime id\=”JBoss v4.2″ location\=”/usr/local/jee/jboss/bin” name\=”JBoss v4.2″ runtime-type-id\=”org.eclipse.jst.server.generic.runtime.jboss42″ server_definition_id\=”org.eclipse.jst.server.generic.runtime.jboss42″ timestamp\=”0″ vm-install-id\=”1186144736659″ vm-install-type-id\=”org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType”>\n<map key\=”generic_server_instance_properties” serverRootDirectory\=”/usr/local/jee/jboss”/>\n</runtime>\n</runtimes>\n
eclipse.preferences.version=1This allows me to add a single library entry to my project which dynamically finds ands uses the appropriate JBoss libraries. This is a great convenience in that I don’t have to maintain a list of user libraries.
This functionality is available in the “servers” menu of the un-alters WST plugins… I don’t suppose you guys would consider reactivating it in MyEclipse? Especially since the functionality is still there, you have just masked it.
If I need to submit this as a feature request, let me know how to properly do that.
later…
Loyal WaterMemberYou can drop a post in the Feature Request forum with your request. This way, the other users can drop their votes in favour of this feature as well.
-
AuthorPosts