- This topic has 14 replies, 4 voices, and was last updated 15 years, 5 months ago by
support-shalini.
-
AuthorPosts
-
trantParticipantI have been using the deploy icon “Deploy MyEclipse J2EE project to server…” to deploy my web projects effectively but it seems to only work going against one domain
I now require that I can deploy and run/start/stop separate domains for separate projects.
How would I accomplish doing this? I cannot figure it out myself…
Using MyEclipse v6.0.1 GA – 200710
support-shaliniMembertrant
You can do this using Custom Launch Configurations. Create Launch Configuration from Windows >Preferences > MyEclipse > Application Servers > Weblogic > Weblogic X.X > Launch. Now click on “Create Launch Configuration”. These configurations are available from run/debug menus.
trantParticipant@support-shalini wrote:
trant
You can do this using Custom Launch Configurations. Create Launch Configuration from Windows >Preferences > MyEclipse > Application Servers > Weblogic > Weblogic X.X > Launch. Now click on “Create Launch Configuration”. These configurations are available from run/debug menus.Hello,
Thank you for your prompt response.
Unfortunately these instructions do not seem to help me.
I created that Custom Launch Configuration and I modified the program arguments to reflect the different WebLogic domain I intend to use. However when I click the “Deploy MyEclipse J2EE project to server…” button to deploy my web application to this new domain, I do not see anywhere in the “Server:” dropdown a listing for my custom configuration. I only see the general “WebLogic 8.x” configuration.
If I click that WebLogic 8.x server I get all the defaults specific to my other domain.
I even tried to click “Edit Server connectors” on this screen and did the same thing as you described with creating a custom launch configuration here, but once I clicked OK and return to the New Deployment window I see the “Deploy Location” field still points to my original domain and it is not editable.
So is it safe to say then that MyEclipse does not in fact support multiple WebLogic domains?
support-shaliniMembertrant,
The custom configurations are not available in the “Server” menu. They are available from the run/debug menu options.
Can you clarify if you are able to view the configurations from the run/debug menu of the toolbar?
trantParticipantNo, I cannot find that custom configuration I made in the steps you outlined. How would I find it exactly?
But if I cannot deploy my applications to separate domains then the ability to run/debug separate domains is moot.
See let me explain in more detail about my situation so you can see why this feature would be important to me.
I am responsible for multiple web applications at my job. For each one I have a separate project in MyEclipse. They all are designed to be deployed on WebLogic so during developing and testing I use a local instance of WebLogic.
Now, with the way MyEclipse works I can only have one Weblogic 8.x configuration across the entire IDE – all projects. So for every one of my web applications I must deploy them to the same domain. These web applications are not small. So each time I start WebLogic since I have to have all my apps deployed to the same domain they all have to start together.
The only workaround I may have is to undeploy apps I am not using and then only deploy the one I am currently working on. But as I am constantly switching around this understandable becomes tedious.
Ideally, each app would have it’s own domain in WebLogic. And each project would be able to deploy and run a separate domain. This way I can essentially have all my apps deployed and all I have to do is switch projects in MyEclipse and everything is ready and waiting.
One way this could have been done is if those Custom Configurations you mentioned were persistent entities which existed as sub nodes under the server they were created for. So I can go back into Preferences and find the custom configuration and edit it again or remove it or add another. Then when I use the deployment wizard, the dropdown for Server would have my custom configuration in there. And finally when running the app it would be a choice there as well. It seems like you guys made the IDE SO CLOSE to being able to accomplish this but just fell short.
Another possibility would be to allow project specific configurations for application servers. Currently you can only configure a server across the entire IDE. But if you allowed project specific settings for them then I would be able to configure one WebLogic 8.x instance in a project for one specific domain, another project’s WebLogic 8.x instance to another domain, etc…
support-shaliniMembertrant,
These are available in the run/debug menu and not in the servers view. I have attached a screen shot showing the menu items.
Optionally you can right click on the project and from the context menu select Run As > Run Configurations > Select your custom configuration and click on “Run”. Let me know if this helps.Attachments:
You must be logged in to view attached files.
trantParticipantApparently my version of MyEclipse does not save those custom runtime configurations. I follow the steps and click Apply but no new node is created under the services tree for that custom configuration. Nor does it ever show up in the Run/Debug menu.
So I may have to upgrade MyEclipse but one question:
Would I be able to deploy separate projects to these separate custom runtime configurations or are they solely for the purpose of starting/stopping servers?
I ask because if it will not allow me to deploy to these separate domains outlined in these separate custom configurations then there is no point for me to be able to start/stop these separate domains.
Thansk for all your help.
Loyal WaterMembertrant,
In MyEclipse 8.0M1 we have added the functionality where the MyEclipse deployment tool now notices those custom configs that you configure under preferences. I believe that is what you are looking for.
John O’GradyMemberI just lost two days trying to get the launch configuration functionality to work right. It actually did work in 8.0M1 – I could go into prefs->myeclipse->servers, pick weblogic, pick “create launch configuration”, and as long as I checked the “add as server” box (which is new in 8.0), it would show up in the servers tree as a separate copy of a weblogic server that I could add deployments too.
After I updated to 8.0 final release, it all broke. I thought maybe it was some configuration from the M versions, so I started with “-clean”. No joy. I deleted the log and several server-related directories in the workspace. No joy. I started with a clean copy of MyEclipse – no other plugins used. Just by hitting the “Create Launch Configuration” button, I get this error:
java.lang.NullPointerException at com.genuitec.eclipse.easie.core.AppServerRegistry.registerServer(Unknown Source) at com.genuitec.eclipse.easie.core.AppServerRegistry.refreshLaunchConfigServer(Unknown Source) at com.genuitec.eclipse.easie.core.EASIECore$1.launchConfigurationAdded(Unknown Source) at org.eclipse.debug.internal.core.LaunchManager$ConfigurationNotifier.run(LaunchManager.java:212) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.debug.internal.core.LaunchManager$ConfigurationNotifier.notify(LaunchManager.java:199) at org.eclipse.debug.internal.core.LaunchManager.launchConfigurationAdded(LaunchManager.java:2071) at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.writeNewFile(LaunchConfigurationWorkingCopy.java:321) at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.doSave0(LaunchConfigurationWorkingCopy.java:248) at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.doSave(LaunchConfigurationWorkingCopy.java:219) at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.doSave(LaunchConfigurationWorkingCopy.java:173) at com.genuitec.eclipse.core.JavaVMUtility.createLaunchConfiguration(JavaVMUtility.java:320) at com.genuitec.eclipse.easie.weblogic.WeblogicManager.createLaunchConfiguration(WeblogicManager.java:157) at com.genuitec.eclipse.easie.weblogic.WeblogicServer.createLaunchConfiguration(WeblogicServer.java:398) at com.genuitec.eclipse.easie.core.ui.action.ServerPreferencesUtils.openCustomLaunchConfigurationDialog(Unknown Source) at com.genuitec.eclipse.easie.weblogic.preference.WeblogicLauncherModesPreferencePage.createLaunchConfiguration(WeblogicLauncherModesPreferencePage.java:90) at com.genuitec.eclipse.easie.weblogic.preference.WeblogicLauncherModesPreferencePage$1.widgetSelected(WeblogicLauncherModesPreferencePage.java:82) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473) at org.eclipse.jface.window.Window.runEventLoop(Window.java:825) at org.eclipse.jface.window.Window.open(Window.java:801) at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:211) at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:65) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514) at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
So any launch configurations I create do not show up in the “servers” view, and if I should try to run a launch configuration I made from the debug or run configurations lists, I get the error: “Launching WebLogic 9.x’ has encountered a problem. No server associated with launch configuration. Aborting launch”
Again, this is from a fresh install, no other plugins, nothing done except trying to create a new launch configuration. Why do you hate developers?
support-shaliniMemberastrien,
I could not replicate this issue. Can you give some more information?
1. Can you copy paste your installation details from MyEclipse > Installation Summary > Installation Details.
2. Can you list out the steps in detail to replicate the above issue.
3. Can you send some screen shots showing the above issue? You can use the PM button at the end of the post.
John O’GradyMemberThis message has not been recovered.
support-shaliniMemberThis message has not been recovered.
John O’GradyMemberThis message has not been recovered.
John O’GradyMemberThis message has not been recovered.
support-shaliniMemberThis message has not been recovered.
-
AuthorPosts