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.

Bug 104449 - Build error due to missing service definition while using Web serivce client
Summary: Build error due to missing service definition while using Web serivce client
Status: RESOLVED WORKSFORME
Alias: None
Product: webservices
Classification: Unclassified
Component: Client (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
: 105768 (view as bug list)
Depends on: 101395
Blocks:
  Show dependency tree
 
Reported: 2007-05-21 23:00 UTC by Venu V
Modified: 2007-06-13 14:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
WSDL (7.94 KB, application/octet-stream)
2007-05-21 23:01 UTC, Venu V
Details
Java code without the @WebServiceRef definitions (1.21 KB, application/octet-stream)
2007-05-21 23:01 UTC, Venu V
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Venu V 2007-05-21 23:00:51 UTC
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)
Comment 1 Venu V 2007-05-21 23:01:13 UTC
Created attachment 42619 [details]
WSDL
Comment 2 Venu V 2007-05-21 23:01:47 UTC
Created attachment 42620 [details]
Java code without the @WebServiceRef definitions
Comment 3 Venu V 2007-05-21 23:03:35 UTC
NetBeans build used:  netbeans-trunk-nightly-200705150237-all-in-one.zip
Comment 4 Lukas Jungmann 2007-05-21 23:11:01 UTC
Isn't this a duplicate of issue 104449?
Comment 5 Lukas Jungmann 2007-05-21 23:12:48 UTC
ooops, I meant issue 101395 (or some of its dups)
Comment 6 Roderico Cruz 2007-05-28 02:24:59 UTC
Regression is caused by switch to Ant extensibility APIs.
Comment 7 Lukas Jungmann 2007-05-30 23:21:14 UTC
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?
Comment 9 Lukas Jungmann 2007-06-05 16:51:50 UTC
*** Issue 105768 has been marked as a duplicate of this issue. ***
Comment 10 Lukas Jungmann 2007-06-05 19:12:17 UTC
*** Issue 105768 has been marked as a duplicate of this issue. ***
Comment 11 Lukas Jungmann 2007-06-05 19:13:19 UTC
seems to be still reproducible, according to comments in issue 105768.
Comment 12 Milan Kuchtiak 2007-06-13 14:06:19 UTC
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.