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 98934 - Imported 5.5.1 javaee project unable to build
Summary: Imported 5.5.1 javaee project unable to build
Status: CLOSED WORKSFORME
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-26 10:28 UTC by srinivaschintalapati
Modified: 2008-10-17 13:13 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ejb project created with NB 5.5.1 uses FileBC (19.25 KB, application/octet-stream)
2007-03-26 10:30 UTC, srinivaschintalapati
Details
fixed sample (17.96 KB, application/octet-stream)
2007-03-27 16:30 UTC, Lukas Jungmann
Details
cannot find symbol (2.70 KB, application/octet-stream)
2007-04-11 13:26 UTC, srinivaschintalapati
Details

Note You need to log in before you can comment on or make changes to this bug.
Description srinivaschintalapati 2007-03-26 10:28:56 UTC
Steps to Reproduce:

Import Attached project(Which contains webapplications and is developed with 
NB 5.5.1) and build.  The following exception is thrown.

java.lang.NoClassDefFoundError: com/sun/tools/ws/WsImport
Exception in thread "main" 
C:\JavaEESamples\FBCINOutEJBModule\nbproject\build-impl.xml:253: wsimport 
failed
BUILD FAILED (total time: 0 seconds)

Build:

NetBeans IDE Dev (Build 200703191900)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
en_US (nb); Cp1252
Comment 1 srinivaschintalapati 2007-03-26 10:30:03 UTC
Created attachment 39931 [details]
ejb project created with NB 5.5.1 uses FileBC
Comment 2 Andrei Badea 2007-03-26 11:02:12 UTC
Looks like a problem in the web services support.
Comment 3 Milan Kuchtiak 2007-03-26 12:02:42 UTC
I tested the project with latest GlassFish (V2 build 40) and with jdk1.5 and I
found no problem.

Please, add more information about the target server.

Thank You.
Comment 4 Milan Kuchtiak 2007-03-26 12:08:08 UTC
Tested even with jdk1.6.
Comment 5 srinivaschintalapati 2007-03-26 12:25:55 UTC
please download netbeans from the following location
http://nephrite.russia.sun.com/nbi/daily-200703201103 . you will be able to 
reproduce the issue.
Comment 6 Milan Kuchtiak 2007-03-26 14:29:36 UTC
The issue was fixed already (issue 97132).
Please, use latest Netbeans build, and don't use GlassFish V2 build 38.
The fix is working from GlassFish V2 build 39.

This is the right wsimport target :

    <target 
 name="wsimport-service-FBCAddressWebService" 
depends="wsimport-init,wsimport-service-check-FBCAddressWebService"
unless="wsimport-service-FBCAddressWebService.notRequired">
        <wsimport
 xendorsed="true"
 sourcedestdir="${build.generated.dir}/wsimport/service"
 extension="true"
 verbose="true"
 destdir="${classes.dir}"
wsdl="${basedir}/${meta.inf}/xml-resources/web-services/FBCAddressWebService/wsdl/FBCAddressWSDL.wsdl"
catalog="catalog.xml"/>
    </target>
Comment 7 Lukas Jungmann 2007-03-27 16:30:14 UTC
Created attachment 40044 [details]
fixed sample
Comment 8 Lukas Jungmann 2007-03-27 16:47:30 UTC
Attached is fixed sample created in/ported to NB 5.5.1 RC1 build - you have to
use GlassFish-v2-b39 or above to be able to run it correctly otherwise it will
always fail with error you described above.

The only diff between original and fixed projects is in nbproject/build-impl.xml
- see issue 97132 for details.

Note: if you need to update build-impl.xml - delete it from the project, go to
project properties and change some option there (eg. check the Report use of
deprecated API checkbox), close the dialog and new build-impl.xml should be in
place ;)
Comment 9 Lukas Jungmann 2007-03-27 16:51:04 UTC
Setting correct TM; anyway it works fine for me in 5.5.1 RC1 and latest dev
build of 6.0 with GlassFish-v2-b41-nightly-26_mar_2007.
Comment 10 srinivaschintalapati 2007-04-11 13:25:27 UTC
I have taken the fixed sample attached in the qai(i.e.[id=40044]).  Even then 
unable to build the Javaee project using 

log is attached.

build#
NetBeans IDE Dev (Build 200704031800)
1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06
Windows XP version 5.1 running on x86
en_US (nb); Cp1252
Comment 11 srinivaschintalapati 2007-04-11 13:26:44 UTC
Created attachment 40745 [details]
cannot find symbol
Comment 12 Lukas Jungmann 2007-04-11 13:53:46 UTC
What is a version/build number of GlassFish you use please?

Anyway Jardo, can you check this on your WinXP, please? It works for me on Linux...
Comment 13 Jaroslav Pospisil 2007-04-11 15:14:53 UTC
It works for me also on WinXP.I used last NB6.0 build and JDK1.6, Glassfish 9.1 b41
Comment 14 Jaroslav Pospisil 2007-04-11 15:15:39 UTC
It works for me also on WinXP.I used last NB6.0 build and JDK1.6, Glassfish 9.1 b41
Comment 15 Milan Kuchtiak 2007-04-12 11:14:28 UTC
Check if build-impl.xml contains the line :
<compilerarg line="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'"/>
(inside <target name="-init-macrodef-javac">)

or if 
jaxws.endorsed.dir property is correctly specified in private.properties

The issue was tested on both Windows and Linux with latest GlassFish builds.
Comment 16 srinivaschintalapati 2007-04-12 12:15:43 UTC
Working fine with latest Hula build.
Build#
App Server details:

  App Server version           = Sun Java System Application Server 9.1 (build 
b41a-beta2)
  App Server build date        = Tue Apr 03 23:47:10 GMT+05:30 2007

JBI details:
_______________________________________________________________________________
________

Running at 12 April 2007 04:32:35 PM on Windows XP 5.1 [x86] using Java 
1.6.0_01-b06 from C:\Progra~1\Java\jdk1.6.0_01\jre

  app server type              = GLASSFISH (sub-type = DEVELOPER version = 91)
  app server domains           = 1 (instances = 0 cluster = )
  java.io.tmpdir               = C:\WINDOWS\TEMP\
  jbi port                     = 17888 (secure = false)
  installed runtime build      = 070410
  installed component build    = 070410
  installed product variant    = Kenai
  installed product kit type   = image


JBI build details:

  JBI Framework     build date = Tue Apr 10 07:24:26 GMT+05:30 2007 [source: 
C:/gf91/jbi/lib/jbi_framework.jar]
  HTTP SOAP Binding build date = Mon Apr 09 21:00:14 GMT+05:30 2007 [source: 
C:/gf91/jbi/components/sun-http-binding/httpsoa
pbc.jar]
  BPEL Engine       build date = Mon Apr 09 21:01:00 GMT+05:30 2007 [source: 
C:/gf91/addons/jbi-components/bpelserviceengine
.jar]


NetBeans build details:

  Netbeans IDE      build      = 070410_37
  Netbeans IDE      version    = 200704101800                 [source: 
C:/netbeans/6.0/build_info]
  Netbeans IDE      build date = Wed Apr 11 02:31:14 GMT+05:30 2007 [source: 
C:/netbeans/6.0/platform7/core/core.jar]
  CAPS Modules      build date = Tue Apr 10 22:20:10 GMT+05:30 2007 [source: 
C:/netbeans/6.0/soa1/modules/org-netbeans-modul
es-compapp-projects-jbi.jar]
Comment 17 srinivaschintalapati 2008-10-17 13:13:02 UTC
Closing the issue.