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.
I created a stock quote client and tried to build. I get build errors. The src pkg has 2 set of src files with varied pkg names. Attaching screenshot. Here is the build errors: parsing WSDL... generating code... org/netbeans/identity/samples/ObjectFactory.java org/netbeans/identity/samples/PriceType.java org/netbeans/identity/samples/QuoteRequestType.java org/netbeans/identity/samples/QuoteResponseType.java org/netbeans/identity/samples/StockQuotePortType.java org/netbeans/identity/samples/StockService.java org/netbeans/identity/samples/package-info.java compiling code... javac -d /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/generated/wsimport/binaries -classpath /opt/SDK/lib/webservices-tools.jar:/opt/SDK/lib/webservices-rt.jar:/opt/SDK/lib/javaee.jar:/opt/SDK/lib/webservices-rt.jar:/opt/SDK/lib/appserv-jstl.jar:/opt/SDK/lib/javaee.jar:/opt/SDK/lib/appserv-ws.jar:/opt/SDK/lib/mail.jar:/opt/SDK/lib/activation.jar:/opt/SDK/lib/activation.jar -Xbootclasspath/p:/opt/SDK/lib/javaee.jar:/opt/SDK/lib/javaee.jar /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/generated/wsimport/client/org/netbeans/identity/samples/ObjectFactory.java /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/generated/wsimport/client/org/netbeans/identity/samples/PriceType.java /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/generated/wsimport/client/org/netbeans/identity/samples/QuoteRequestType.java /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/generated/wsimport/client/org/netbeans/identity/samples/QuoteResponseType.java /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/generated/wsimport/client/org/netbeans/identity/samples/StockQuotePortType.java /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/generated/wsimport/client/org/netbeans/identity/samples/StockService.java /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/generated/wsimport/client/org/netbeans/identity/samples/package-info.java wsimport-client-generate: Created dir: /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/web/WEB-INF/classes Created dir: /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/web/META-INF Copying 1 file to /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/web/META-INF Copying 6 files to /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/web library-inclusion-in-archive: library-inclusion-in-manifest: wsimport-client-compile: Compiling 7 source files to /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/web/WEB-INF/classes Compiling 6 source files to /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/web/WEB-INF/classes /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/src/java/com/samples/GetQuote.java:61: cannot find symbol symbol : class StockService location: package com.samples private com.samples.StockService service; /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/src/java/com/samples/GetQuote.java:66: cannot find symbol symbol : class QuoteResponseType location: class com.samples.GetQuote public QuoteResponseType getStockQuote(String symbol) { /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/src/java/com/samples/GetQuote.java:67: cannot find symbol symbol : class StockQuotePortType location: class com.samples.GetQuote StockQuotePortType port = service.getStockQuotePortTypePort(); /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/src/java/com/samples/GetQuote.java:68: cannot find symbol symbol : class QuoteRequestType location: class com.samples.GetQuote QuoteRequestType body = new QuoteRequestType(); /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/src/java/com/samples/GetQuote.java:68: cannot find symbol symbol : class QuoteRequestType location: class com.samples.GetQuote QuoteRequestType body = new QuoteRequestType(); /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/src/java/com/samples/GetQuote.java:89: cannot find symbol symbol : class QuoteResponseType location: class com.samples.GetQuote QuoteResponseType result = getStockQuote(symbol); /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/src/java/com/samples/GetQuote.java:90: cannot find symbol symbol : class PriceType location: class com.samples.GetQuote PriceType price = result.getPrice(); Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 7 errors /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/nbproject/build-impl.xml:332: The following error occurred while executing this line: /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/nbproject/build-impl.xml:163: Compile failed; see the compiler error output for details. BUILD FAILED (total time: 2 seconds)
Created attachment 52318 [details] stock quote client logical view
Looking at the exceptions, it appears that you have an older version of the client sample. For example, location: package com.samples private com.samples.StockService service; /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/src/java/com/samples/GetQuote.java:66: In the latest version of the client sample, the package name has been changed to org.netbeans.identity.samples instead of com.samples. Please check to make sure the your build doesn't have some old jar file lying around. Make sure when you update, do a cvs update -d -P to prune empty directories.
this is a brand new sample i created. I did the cvs up -dP and built the whole IDE just few hrs back. I created a new userdir and created brand new samples.
also.. look at my screenshot.. I said it creates both the com.samples and org.netbeans.identity.samples. How can I have had a old sample with two pkg names in it?
Please check to make sure that identity/samples directory only has StockQuoteClient and StockQuoteService. Everything else has already been deleted. Also, try manually deleting the zip files in identity/samples/src/org/netbeans/modules/identity/samples/resources to make sure new ones get created. It looks like you might have an older version of the zip file and new things got added to it.
I have double checked on my side. This is indeed an issue. I was able to reproduce the same behavior on Rico's sytem as well. Have you tried it on your end and are you able to get the client project working? Pls try the latest build before you discount this issue.
wrong zip file as u pointed out.