This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Got the following build error due to missing @WebServiceRef annotations missing as part of the drag and drop code creation. Attached WSDL and also the MDB code. Steps to re-produce: -------------------- 1. Create an EJB project 2. Create a Web Service Client on that project for the attached WSDL 3. Create a MDB on that project 4. Newly created MDB's onMessage method code 5. Drag and drop an operation created from Web Service Client in step 2 6. Compile the MDB 7. You will get the following build error. init: deps-jar: Created dir: C:\Temp\EJBModule2\build\jar Created dir: C:\Temp\EJBModule2\build\ear-module Copying 3 files to C:\Temp\EJBModule2\build\jar\META-INF Compiling 1 source file to C:\Temp\EJBModule2\build\jar C:\Temp\EJBModule2\src\java\com\sun\test\mdb\NewMessageBean.java:34: package com.sun.test.iep.client does not exist com.sun.test.iep.client.InputPt port = service.getInputPort(); C:\Temp\EJBModule2\src\java\com\sun\test\mdb\NewMessageBean.java:34: cannot find symbol symbol : variable service location: class com.sun.test.mdb.NewMessageBean com.sun.test.iep.client.InputPt port = service.getInputPort(); C:\Temp\EJBModule2\src\java\com\sun\test\mdb\NewMessageBean.java:36: package com.sun.test.iep.client does not exist com.sun.test.iep.client.NotificationInputMsgObj input = null; 3 errors C:\Temp\EJBModule2\nbproject\build-impl.xml:247: The following error occurred while executing this line: C:\Temp\EJBModule2\nbproject\build-impl.xml:116: Compile failed; see the compiler error output for details. BUILD FAILED (total time: 1 second)
Created attachment 42619 [details] WSDL
Created attachment 42620 [details] Java code without the @WebServiceRef definitions
NetBeans build used: netbeans-trunk-nightly-200705150237-all-in-one.zip
Isn't this a duplicate of issue 104449?
ooops, I meant issue 101395 (or some of its dups)
Regression is caused by switch to Ant extensibility APIs.
Missing service field declaration in a class is a result of issue 101395 and it is there for longer time (since some pre-M9 build). Milane, can you work with folks from java on resolving this for M10, please?
Used workaround recommended in issue 101395 : http://websvc.netbeans.org/source/browse/websvc/core/src/org/netbeans/modules/websvc/core/jaxws/actions/JaxWsCodeGenerator.java?r1=1.15&r2=1.16
*** Issue 105768 has been marked as a duplicate of this issue. ***
seems to be still reproducible, according to comments in issue 105768.
After I applied the recommended workaround I can not reproduce this issue. Issue 105768 is a Java Source problem, which doesn't breaks the functionality. Though the exception is thrown the @WebServiceRef is created.