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.
Summary: | Tens of useless classes loaded by JaxWS & co. | ||
---|---|---|---|
Product: | webservices | Reporter: | Jaroslav Tulach <jtulach> |
Component: | Code | Assignee: | Milan Kuchtiak <mkuchtiak> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | issues, ovk, pjiricka |
Priority: | P2 | Keywords: | PERFORMANCE |
Version: | 6.x | ||
Hardware: | Other | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jaroslav Tulach
2009-11-25 21:04:55 UTC
I've added the jaxws classes into whitelist for now: http://hg.netbeans.org/ergonomics/rev/de3ebd84625e However I can also see that the grep for "jax" in lime6.zip project is not empty. Maybe Oleg can a look at it and explain why the lime6.zip file contains nbproject/private/private.properties? Project with such private references is not transferable without broken references. Another question is why the build-impl.xml is extended with jaxws at all. The build-impl.xml does something with endorsed dirs and links to nbproject/jaxws-build.xml, but nbproject/jaxws-build.xml does not exists. What kind of trick is that? Anyway it seems to me that there are no JaxWS in the lime6 project and thus it would be desirable for JaxWS support to remain almost deactivated. Btw. Here is the output of the grep: $ ide.kit/test/whitelist/temp/lime6$ grep -r jax -i * nbproject/private/private.properties:jaxws.endorsed.dir=C:\\Program Files\\NetBeans 6.7\\java2\\modules\\ext\\jaxws21\\api:C:\\Program Files\\NetBeans 6.7\\ide11\\modules\\ext\\jaxb\\api nbproject/build-impl.xml:<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="lime6-impl"> nbproject/build-impl.xml: <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'"> nbproject/build-impl.xml: <isset property="jaxws.endorsed.dir"/> nbproject/build-impl.xml: <available file="nbproject/jaxws-build.xml"/> nbproject/build-impl.xml: <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/> jaxws stuff was removed from build-impl.xml already, nothing from the output above is created in private.properties now: http://hg.netbeans.org/main/rev/3c7035d6d025 I agree the number of items in "white list" is quite a long. Is there any alternative to @ProjectServiceProvider to register classes in project lookup ? Added Whiteboard. @ProjectServiceProvider is good registration. @LookupRegistration (also used in other places of JaxWs is actually the bad one that needs to be eliminated). If you need some special "conditional" @ProjectServicesProvider - one that would be activated only if some well-known relative file under the project exists, feel free to specify your needs. I can improve the @ProjectServicesProvider API to support such usecase. Integrated into 'main-golden', will be available in build *200912020200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/de3ebd84625e User: Jaroslav Tulach <jtulach@netbeans.org> Log: Reporting #177644 to track the number of jaxws related classes being loaded in Fixed partially : Classes from the following packages are eliminated (J2SEProject): org.netbeans.modules.schema2beans org.netbeans.modules.websvc.api.jaxws.project.config org.netbeans.modules.websvc.jaxwsmodel.project_config1_0 See: http://hg.netbeans.org/main/rev/b6257bb98ec5 Still, some other improvements are achievable. Working on that. Another improvements: org.netbeans.modules.websvc.core.jaxws.projects.J2SEProjectJAXWSClientSupport org.netbeans.modules.websvc.core.jaxws.projects.J2SEProjectJaxRpcClientSupport See: http://hg.netbeans.org/main/rev/9afb97b16a76 Integrated into 'main-golden', will be available in build *201004020200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/b6257bb98ec5 User: mkuchtiak@netbeans.org Log: #177644: dropping down number of classes loaded during project open (J2SE Project) Improving Application Client: http://hg.netbeans.org/main/rev/d5b9baea1b1f Fixing EJB project: http://hg.netbeans.org/main/rev/07961bb88bc9 Fixing Web project: http://hg.netbeans.org/main/rev/5563e092d5d8 Dropping down number of classes loaded during project creation/project open, especially those related to schema2beans model. Also I implemented @ProjectServiceProvider instead of @LookupProvider.Registration wherever it was possible. Integrated into 'main-golden', will be available in build *201004090201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/07961bb88bc9 User: mkuchtiak@netbeans.org Log: #177644: dropping down number of classes loaded during project open (Ejb Project) v. |