facebook

Classloader policy is overwritten during deployment

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #312166 Reply

    thud
    Member

    Hello,

    I need to launch my WAS application to use WAS 6.1’s “parent classloader last” policy.
    Unfortunately I could not spot such setting in MyEclipse Blue and the WAS connector.

    I can change the classloader policy in WAS 6.1’s Admin Console, however
    whenever I redeploy with MyEclipse Blue, these settings are overwritten to “parent classloader first”.

    I am deploying as described in
    http://www.myeclipseide.com/documentation/quickstarts/blueedition/blue_connectors/#web_deploy_traditional
    on a local WAS 6.1 instance, using MyEclipse Blue 8.6.

    I’d appreciate your help!

    #312215

    Brian Fernandes
    Moderator

    thud,

    If you edit the application.xml file in Blue (the WebSphere Application Editor is the default editor), one of the editor tabs will mention “Application Configuration”. On this tab, you can set the classloader policy for your application. The setting is stored in your EAR project and it will be persisted across deployments.

    Hope this helps.

    #312244

    thud
    Member

    Thanks for your reply.

    The “Application Configuraion” editor tab throws an “Unhandled loop exception” when I attempt to open my application.xml in MyEclipse Blue 8.6-Blue-20100723.

    Thanks for your help!

    —————————————————-
    application.xml
    —————————————————-

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <application xmlns=”http://java.sun.com/xml/ns/javaee&#8221;
    xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221;
    xsi:schemaLocation=”http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd&#8221;
    version=”5″><description></description>
    <display-name>My Application</display-name>

    <icon></icon><module>
    <web>
    <web-uri>myapp.war</web-uri>
    <context-root>/myroot</context-root>
    </web>
    </module>
    </application>

    —————————————————-
    MyEclipse exception details
    —————————————————-

    eclipse.buildId=unknown
    java.version=1.6.0_13
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
    Command-line arguments: -os win32 -ws win32 -arch x86

    Error
    Mon Oct 25 14:14:17 CEST 2010
    Unhandled event loop exception

    org.eclipse.core.runtime.AssertionFailedException: null argument:
    at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
    at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
    at org.eclipse.jface.viewers.StructuredViewer.assertElementsNotNull(StructuredViewer.java:595)
    at org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:960)
    at org.eclipse.jface.viewers.ColumnViewer.getRawChildren(ColumnViewer.java:703)
    at org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren(AbstractTreeViewer.java:1330)
    at org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeViewer.java:390)
    at org.eclipse.jface.viewers.AbstractTreeViewer.getFilteredChildren(AbstractTreeViewer.java:636)
    at org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildren(AbstractTreeViewer.java:602)
    at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:799)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:776)
    at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:639)
    at org.eclipse.jface.viewers.AbstractTreeViewer.internalInitializeTree(AbstractTreeViewer.java:1490)
    at org.eclipse.jface.viewers.TreeViewer.internalInitializeTree(TreeViewer.java:828)
    at org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractTreeViewer.java:1474)
    at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1392)
    at org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:402)
    at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1353)
    at org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(AbstractTreeViewer.java:1467)
    at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:274)
    at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1634)
    at com.genuitec.eclipse.blue.websphere.configuration.editors.ConfigurationFormPage.createFormContent(ConfigurationFormPage.java:276)
    at org.eclipse.ui.forms.editor.FormPage$1.run(FormPage.java:152)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.ui.forms.editor.FormPage.createPartControl(FormPage.java:150)
    at org.eclipse.ui.forms.editor.FormEditor.pageChange(FormEditor.java:465)
    at org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected(MultiPageEditorPart.java:291)
    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.Widget.sendEvent(Widget.java:1027)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:770)
    at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3256)
    at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2045)
    at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:323)
    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:3910)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
    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)

    #312274

    thud
    Member

    Hi,

    sorry, without the editor / looking at the xsd schema, I failed to understand how to set the classloader policy in application.xml. However I found posts on how to change the the policy in deployment.xml. Again I am encountering an exception when opening this file in the editor associated in MyEclipse Blue (see below).
    Manual changes in deployment.xml are not reflected in WAS admin console.

    My MyEclipse trial period expires tomorrow and I am not impressed… 🙁
    Input would be appreciated.

    —————————
    Another Exception
    —————————-
    Unable to create editor ID com.genuitec.eclipse.blue.websphere.editors.MultiPageEditor: An unexpected exception was thrown.
    java.lang.NullPointerException
    at com.genuitec.eclipse.blue.websphere.configuration.editors.GeneralFormPage.getIconText(GeneralFormPage.java:413)
    at com.genuitec.eclipse.blue.websphere.configuration.editors.GeneralFormPage.initUI(GeneralFormPage.java:318)
    at com.genuitec.eclipse.blue.websphere.configuration.editors.GeneralFormPage.createFormContent(GeneralFormPage.java:220)
    at org.eclipse.ui.forms.editor.FormPage$1.run(FormPage.java:152)
    (…)

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Classloader policy is overwritten during deployment

You must be logged in to post in the forum log in