1 Reply Latest reply: Feb 12, 2013 7:06 AM by Nitin Khare RSS

    Component Error

    957819
      While trying to create the component using ATG component browser
      having error in error log eclipse, so that i cant able to create the component

      java.lang.LinkageError: loader constraint violation: loader (instance of java/net/URLClassLoader) previously initiated loading for a different type with name "javax/servlet/ServletConfig"_+
      at java.lang.ClassLoader.defineClass1(Native Method)
           at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
           at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
           at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
           at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
           at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
           at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
           at java.lang.Class.getDeclaredMethods0(Native Method)
           at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
           at java.lang.Class.getDeclaredMethods(Class.java:1791)
           at java.beans.Introspector$1.run(Introspector.java:1287)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1285)
           at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1151)
           at java.beans.Introspector.getBeanInfo(Introspector.java:402)
           at java.beans.Introspector.getBeanInfo(Introspector.java:168)
           at atg.core.util.BeanUtils.getBeanInfo(BeanUtils.java:381)
           at atg.nucleus.SimpleComponentState.getComponentClassDescriptor(SimpleComponentState.java:525)
           at atg.nucleus.SimpleComponentState.<init>(SimpleComponentState.java:90)
           at atg.nucleus.SimpleConfigurationState.<init>(SimpleConfigurationState.java:93)
           at atg.nucleus.DefaultedConfigurationState.<init>(DefaultedConfigurationState.java:77)
           at atg.eclipse.component.config.ComponentConfigManager.createDefaultedConfigurationState(ComponentConfigManager.java:465)
           at atg.eclipse.component.wizard.NewComponentWizard.performFinish(NewComponentWizard.java:84)
           at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:811)
           at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:430)
           at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
           at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
           at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
           at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
           at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
           at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
           at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
           at org.eclipse.jface.window.Window.open(Window.java:801)
           at atg.eclipse.component.browser.ComponentTreeView$NewComponentAction.run(ComponentTreeView.java:468)
           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:1053)
           at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
           at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
           at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
           at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
           at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
           at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
           at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
           at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
           at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
           at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
           at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
           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:369)
           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:619)
           at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
           at org.eclipse.equinox.launcher.Main.run(Main.java:1407)


      Thanks in advance
      Pappu
        • 1. Re: Component Error
          Nitin Khare
          Linkage error usually occur if two different classes refer to types with the same symbolic name but with different class objects which sometimes can happen when using OSGi. e.g. an Eclipse plugin might provide a JAR whose classes may have been also loaded by some other JAR. The message suggest that two classes (javax.servlet.ServletConfig) are being loaded inconsistently. It looks like an environment specific issue. You can probably check your build path/classpath and see if you can find more about it.