[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-4257) cannot create top down java bean web service

Lucian Curelaru (JIRA) jira-events at lists.jboss.org
Tue Feb 9 05:17:19 EST 2010


    [ https://jira.jboss.org/jira/browse/JBIDE-4257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12511230#action_12511230 ] 

Lucian Curelaru commented on JBIDE-4257:
----------------------------------------

Hi

No.. I have a only a popup window that says : "Failed to generate implementation class". 
I do the following steps to obtain this:
 -  I click on the wsdl (which is also builded with JBDS ) new - webservice
  - there pops up first configuration window (with webservice type, definition, configuration) 
  - After check if all is set I push Next and I have the second window (packagename ,  Jax-WS specification ..) 
 - Then I push again Next and the "Failed to generate implementation class" popup window occurs

There is one error entry in the log which says that C:\jboss-4.2.1\bin\2.0 can not be found. But I've cheked the JBoss Server original zip and there is no 2.0 file or folder in that location (also re-downloaded the zip from the oficial site and still there is no 2.0 in bin). Also checked in a newer version and also did not found that directory
 
The log file is this:

!ENTRY org.jboss.tools.common.model 4 0 2010-02-09 11:44:45.810
!MESSAGE Resource '/dip-backend-webservice-synchronization/wsdl/dip-backend-webservice-synchronization.wsdl' already exists.
!STACK 1
org.eclipse.core.internal.resources.ResourceException: Resource '/dip-backend-webservice-synchronization/wsdl/dip-backend-webservice-synchronization.wsdl' already exists.
	at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:296)
	at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:283)
	at org.eclipse.core.internal.resources.Folder.assertCreateRequirements(Folder.java:29)
	at org.eclipse.core.internal.resources.Folder.create(Folder.java:88)
	at org.eclipse.core.internal.resources.Folder.create(Folder.java:118)
	at org.jboss.tools.common.model.filesystems.impl.FileSystemImpl.getResource(FileSystemImpl.java:80)
	at org.jboss.tools.common.model.filesystems.impl.FileSystemsImpl.addChild_0(FileSystemsImpl.java:52)
	at org.jboss.tools.common.model.impl.XModelObjectImpl.addChild(XModelObjectImpl.java:254)
	at org.jboss.tools.common.model.util.EclipseResourceUtil.createObjectForResource(EclipseResourceUtil.java:367)
	at org.jboss.tools.jst.web.ui.navigator.XActionProvider.fillContextMenu(XActionProvider.java:85)
	at org.eclipse.ui.navigator.NavigatorActionService.addCommonActionProviderMenu(NavigatorActionService.java:205)
	at org.eclipse.ui.navigator.NavigatorActionService.fillContextMenu(NavigatorActionService.java:172)
	at org.eclipse.ui.internal.navigator.CommonNavigatorManager.fillContextMenu(CommonNavigatorManager.java:258)
	at org.eclipse.ui.internal.navigator.CommonNavigatorManager$4.menuAboutToShow(CommonNavigatorManager.java:273)
	at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuManager.java:335)
	at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:463)
	at org.eclipse.jface.action.MenuManager.access$1(MenuManager.java:459)
	at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:485)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:235)
	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:1008)
	at org.eclipse.swt.widgets.Control.WM_INITMENUPOPUP(Control.java:4111)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:3815)
	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)
	at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1576)
	at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528)
	at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method)
	at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:250)
	at org.eclipse.swt.widgets.Display.runPopups(Display.java:3849)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3416)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
	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:193)
	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:386)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	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:549)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
!SUBENTRY 1 org.eclipse.core.resources 4 374 2010-02-09 11:44:45.810
!MESSAGE Resource '/dip-backend-webservice-synchronization/wsdl/dip-backend-webservice-synchronization.wsdl' already exists.

!ENTRY org.jboss.tools.ws.creation.core 1 0 2010-02-09 11:45:06.998
!MESSAGE failed to parse document at "file:/C:/jboss-4.2.1/bin/2.0": java.io.FileNotFoundException: C:\jboss-4.2.1\bin\2.0 (The system cannot find the file specified)	
	at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:215)	
	at org.jboss.com.sun.tools.ws.processor.config.ModelInfo.buildModel(ModelInfo.java:88)	
	at org.jboss.com.sun.tools.ws.processor.Processor.runModeler(Processor.java:82)	
	at org.jboss.com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:543)	
	at org.jboss.com.sun.tools.ws.util.ToolBase.run(ToolBase.java:57)	
	at org.jboss.ws.tools.jaxws.impl.WSContractConsumerImpl$1.run(WSContractConsumerImpl.java:163)	
	at org.jboss.ws.tools.jaxws.impl.WSContractConsumerImpl.consume(WSContractConsumerImpl.java:166)	
	at org.jboss.ws.tools.jaxws.command.wsconsume.importServices(wsconsume.java:193)	
	at org.jboss.ws.tools.jaxws.command.wsconsume.main(wsconsume.java:76)	
Caused by: failed to parse document at "file:/C:/jboss-4.2.1/bin/2.0": java.io.FileNotFoundException: C:\jboss-4.2.1\bin\2.0 (The system cannot find the file specified)	
	at org.jboss.com.sun.tools.ws.wsdl.parser.WSDLParser.buildDocumentFromWSDL(WSDLParser.java:318)	
	at org.jboss.com.sun.tools.ws.wsdl.parser.WSDLParser.parseDefinitions(WSDLParser.java:222)	
	at org.jboss.com.sun.tools.ws.wsdl.parser.WSDLParser.parse(WSDLParser.java:213)	
	at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:166)	
	... 8 more	
Caused by: java.io.FileNotFoundException: C:\jboss-4.2.1\bin\2.0 (The system cannot find the file specified)	
	at java.io.FileInputStream.open(Native Method)	
	at java.io.FileInputStream.<init>(FileInputStream.java:106)	
	at java.io.FileInputStream.<init>(FileInputStream.java:66)	
	at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)	
	at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)	
	at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)	
	at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)	
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)	
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)	
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)	
	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)	
	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)	
	at org.jboss.com.sun.tools.ws.wsdl.parser.WSDLParser.buildDocumentFromWSDL(WSDLParser.java:276)	
	... 11 more	
error: failed to parse document at "file:/C:/jboss-4.2.1/bin/2.0": java.io.FileNotFoundException: C:\jboss-4.2.1\bin\2.0 (The system cannot find the file specified)	


!ENTRY org.jboss.tools.ws.creation.core 4 0 2010-02-09 11:45:07.044
!MESSAGE Failed to Generate Web Service code, please check the log for more details
!STACK 1
org.eclipse.core.runtime.CoreException: Failed to Generate Web Service code, please check the log for more details
	at org.jboss.tools.ws.creation.core.commands.ImplementationClassCreationCommand.getCompilationUnitForInterface(ImplementationClassCreationCommand.java:438)
	at org.jboss.tools.ws.creation.core.commands.ImplementationClassCreationCommand.generateImplClass(ImplementationClassCreationCommand.java:123)
	at org.jboss.tools.ws.creation.core.commands.ImplementationClassCreationCommand.execute(ImplementationClassCreationCommand.java:98)
	at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:419)
	at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitTop(CommandFragmentEngine.java:359)
	at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(CommandFragmentEngine.java:254)
	at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager$6.run(SimpleCommandEngineManager.java:294)
	at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
	at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
	at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager.runForwardToNextStop(SimpleCommandEngineManager.java:264)
	at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.runForwardToNextStop(WizardPageManager.java:91)
	at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.getNextPage(WizardPageManager.java:154)
	at org.eclipse.wst.command.internal.env.ui.widgets.SimpleWizardPage.getNextPage(SimpleWizardPage.java:136)
	at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:813)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369)
	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
	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:3823)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
	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.handlers.WizardHandler$New.executeHandler(WizardHandler.java:253)
	at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:273)
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:281)
	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
	at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
	at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:247)
	at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
	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:3823)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
	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:193)
	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:386)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	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:549)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
!SUBENTRY 1 id 4 0 2010-02-09 11:45:07.044
!MESSAGE Failed to Generate Web Service code, please check the log for more details


> cannot create top down java bean web service
> --------------------------------------------
>
>                 Key: JBIDE-4257
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-4257
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Webservices
>         Environment: Windows XP, Eclipse 3.4.1, JBoss 4.2.3, JBossWS 3.1.0, JDK 1.5
>            Reporter: Gina Kim
>            Assignee: Denny Xu
>             Fix For: 3.1.0.M4
>
>
> I get this error when I try to create a top down web service using a valid wsdl:
> Error: Could not import. (use --verbose to see full traces) Error: WsImport invocation failed. Try the verbose switch for more information
> To reproduce the error, I navigated to File > New > Other > Web Service. I selected JBossWS for Web service runtime.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list