[jbosstools-dev] Re: [JBoss JIRA] Closed: (JBIDE-1261) Exception occurs during ds.xml deployment

Max Rydahl Andersen max.andersen at redhat.com
Sun Nov 4 14:07:57 EST 2007


Denis Golovin wrote:
> Thanks
> 
> I've done some digging and commented it also.
> Looks like we have some errors in application.xml, but I think there is 
> a reason, why all jars without descriptors in application deployment 
> descriptor. We should ask seam team, I think.

old discussion - they used application.xml in a jboss specific way to 
put everything on the classpath by default instead of having it listed 
in the relevant jars' manifest.

We just need to fix that. see issue.

> 
> Denis
> 
> Max Rydahl Andersen wrote:
>>
>> I commented the issue.
>>
>>> Max,
>>>
>>> I'm just curious,  where it is reported 'here' and where in 
>>> 'eclipse'? Could you link it to jboss jira issue and add reference to 
>>> bugzilla record in comment?
>>>
>>> Thanks
>>> Denis
>>>
>>> Max Andersen (JIRA) wrote:
>>>>      [ http://jira.jboss.com/jira/browse/JBIDE-1261?page=all ]
>>>>
>>>> Max Andersen closed JBIDE-1261.
>>>> -------------------------------
>>>>
>>>>     Resolution: Duplicate Issue
>>>>
>>>> WST/WTP is logging alot of these when you do -debug. its a duplicate 
>>>> and reported both here and in eclipse.
>>>>
>>>>  
>>>>> Exception occurs during ds.xml deployment
>>>>> -----------------------------------------
>>>>>
>>>>>                 Key: JBIDE-1261
>>>>>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1261
>>>>>             Project: JBoss Tools
>>>>>          Issue Type: Bug
>>>>>          Components: JBossAS
>>>>>    Affects Versions: 2.0.0.Beta4
>>>>>         Environment: Windows XP
>>>>> RHDS 200711012051
>>>>>            Reporter: Denis Golovin
>>>>>             Fix For: 2.0.0.CR1
>>>>>
>>>>>
>>>>> Testcase1:
>>>>> ---------------
>>>>> 1. Start eclipse with -debug option
>>>>> 2. Create seam web project in EAR deployment
>>>>> 3. Wait while all processes are finished 4. Look at console output 
>>>>> there is exception 1
>>>>> Testcase2:
>>>>> ---------------
>>>>> 1. Find in created EAR file resources/<<projectName>>-ds.xml
>>>>> 2. deploy it to server by Deploy to Server popup menu on file 
>>>>> resources/<<projectName>>-ds.xml
>>>>> 3. Look at console output there isa exception 2
>>>>> Exception 1:
>>>>> *** ERROR ***: Fri Nov 02 13:35:31 PDT 2007    
>>>>> java.lang.ClassCastException: 
>>>>> org.eclipse.jst.j2ee.internal.componentcore.UtilityBinaryComponentHelper$ReferenceCountedArchiveImpl 
>>>>>
>>>>>         at 
>>>>> org.eclipse.jst.j2ee.internal.componentcore.AppClientBinaryComponentHelper.getPrimaryRootObject(AppClientBinaryComponentHelper.java:110) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.wst.common.componentcore.ArtifactEdit.getContentModelRoot(ArtifactEdit.java:540) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.jst.jee.internal.deployables.JEEDeployableFactory.createBinaryModules(JEEDeployableFactory.java:159) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.jst.jee.internal.deployables.JEEDeployableFactory.createModuleDelegates(JEEDeployableFactory.java:99) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.jst.jee.internal.deployables.JEEDeployableFactory.createModules(JEEDeployableFactory.java:73) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.jst.jee.internal.deployables.JEEDeployableFactory.createModules(JEEDeployableFactory.java:62) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.wst.server.core.util.ProjectModuleFactoryDelegate.cacheModules(ProjectModuleFactoryDelegate.java:60) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.wst.server.core.util.ProjectModuleFactoryDelegate.getModules(ProjectModuleFactoryDelegate.java:257) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.wst.server.core.internal.ModuleFactory.getModules(ModuleFactory.java:131) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.wst.server.core.ServerUtil.getModules(ServerUtil.java:97)
>>>>>         at 
>>>>> org.eclipse.wst.server.core.internal.ResourceManager.publishHandleProjectChange(ResourceManager.java:980) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.wst.server.core.internal.ResourceManager$1.visit(ResourceManager.java:122) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:67) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:76) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:48) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.wst.server.core.internal.ResourceManager$ServerResourceChangeListener.resourceChanged(ResourceManager.java:116) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:282) 
>>>>>
>>>>>         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>>>>         at 
>>>>> org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:276) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:148) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.core.internal.resources.Workspace.broadcastBuildEvent(Workspace.java:295) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235) 
>>>>>
>>>>>         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>> Exception 2:
>>>>> *** ERROR ***: Fri Nov 02 13:35:37 PDT 2007    
>>>>> java.lang.ClassCastException: 
>>>>> org.eclipse.jst.j2ee.internal.componentcore.UtilityBinaryComponentHelper$ReferenceCountedArchiveImpl 
>>>>>
>>>>>         at 
>>>>> org.eclipse.jst.j2ee.internal.componentcore.AppClientBinaryComponentHelper.getPrimaryRootObject(AppClientBinaryComponentHelper.java:110) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.wst.common.componentcore.ArtifactEdit.getContentModelRoot(ArtifactEdit.java:540) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.jst.jee.internal.deployables.JEEDeployableFactory.createBinaryModules(JEEDeployableFactory.java:159) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.jst.jee.internal.deployables.JEEDeployableFactory.createModuleDelegates(JEEDeployableFactory.java:99) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.jst.jee.internal.deployables.JEEDeployableFactory.createModules(JEEDeployableFactory.java:73) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.jst.jee.internal.deployables.JEEDeployableFactory.createModules(JEEDeployableFactory.java:62) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.wst.server.core.util.ProjectModuleFactoryDelegate.cacheModules(ProjectModuleFactoryDelegate.java:91) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.wst.server.core.util.ProjectModuleFactoryDelegate.getModules(ProjectModuleFactoryDelegate.java:118) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.wst.server.core.internal.ModuleFactory.getModules(ModuleFactory.java:116) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.wst.server.core.ServerUtil.getModules(ServerUtil.java:196)
>>>>>         at 
>>>>> org.jboss.ide.eclipse.as.core.server.internal.JBossServer.doGetParentModules(JBossServer.java:131) 
>>>>>
>>>>>         at 
>>>>> org.jboss.ide.eclipse.as.core.server.internal.JBossServer.getRootModules(JBossServer.java:123) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.wst.server.core.internal.Server.getRootModules(Server.java:2306) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.wst.server.core.ServerUtil.modifyModules(ServerUtil.java:345) 
>>>>>
>>>>>         at 
>>>>> org.jboss.ide.eclipse.as.core.server.internal.DeployableServerBehavior.addAndRemoveModules(DeployableServerBehavior.java:278) 
>>>>>
>>>>>         at 
>>>>> org.jboss.ide.eclipse.as.core.server.internal.DeployableServerBehavior.publishOneModule(DeployableServerBehavior.java:207) 
>>>>>
>>>>>         at 
>>>>> org.jboss.ide.eclipse.as.ui.actions.DeployAction.run(DeployAction.java:89) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:256) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
>>>>>         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
>>>>>         at 
>>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
>>>>>         at 
>>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
>>>>>         at 
>>>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
>>>>>         at 
>>>>> org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
>>>>>         at 
>>>>> org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
>>>>>         at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
>>>>>         at 
>>>>> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>>>>>         at 
>>>>> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363) 
>>>>>
>>>>>         at 
>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176) 
>>>>>
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown 
>>>>> Source)
>>>>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>>>>         at 
>>>>> org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
>>>>>         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
>>>>>         at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
>>>>>         at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>>>>>     
>>>>
>>>>   
>>>
>>
> 




More information about the jbosstools-dev mailing list