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.
Build 20070603,JDK 1.6.0_02,Windows Vista and XP also 1)Start IDE with clean userdir 2)Add Tomcat server (same result with 5.5 and 6.0) 3)Create web module on Tomcat,uncheck Set source level to 1.4 4)Add web service and operation 5)ERROR - build script for web service isn't created, so its deploy fails even if JAVA_ENDORSED_DIRS system property is properly set.
Same linkage error java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/C:/Users/jp154641/Documents/NetBeansProjects/WebApplication15/build/web/WEB-INF/lib/jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/) appears also in browser, when I run web module on tomcat with web service client on external web service, so I think the same problem is also in client area.
Works for me on Linux Platform. Seems to be specific for Windows. For me it looks like Tomcat JVM is not aware of endorsed dir specified in JAVA_ENDORSED_DIR environment property.
Specific for Tomcat/JDK1.6 - Sources/JDK1.5 case . If JDK's match,scenario works.
My investigation : The build targets for wsgen or for wsimport are correctly generated. The build process finishes correctly. Seems that the problem is on Tomcat side. Now I can reproduce the isue even on Linux. Deployment works fine for "bundled" Tomcat(I tested Tomcat 5.5.17 bundled with Netbeans 5.5). When I tested the standalone instalation (the same version), I got the LinkageError described here.
F. Checking in src/org/netbeans/modules/tomcat5/util/Bundle.properties; /cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/util/Bundle.properties,v <-- Bundle.properties new revision: 1.10; previous revision: 1.9 done Checking in src/org/netbeans/modules/tomcat5/util/LogManager.java; /cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/util/LogManager.java,v <-- LogManager.java new revision: 1.10; previous revision: 1.9 done Checking in src/org/netbeans/modules/tomcat5/util/ServerLog.java; /cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/util/ServerLog.java,v <-- ServerLog.java new revision: 1.10; previous revision: 1.9 done Checking in src/org/netbeans/modules/tomcat5/util/TomcatProperties.java; /cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/util/TomcatProperties.java,v <-- TomcatProperties.java new revision: 1.19; previous revision: 1.18 done
VERIFIED
Recently installed NB6 M10 and encountered this same error whilst attempting to deploy a JAX-WS Web Service to the bundled Tomcat (6.0.13) instance. I followed the instructions provided in the Tomcat log (see below), but this does not fix the problem. I'm unable to set source level to anything higher than 1.5 from within a projects 'properties' and have tried all techniques for resolving this problem i could find from a quick trawl on Google. Setting java endorsed directories every which way, creating 'endorsed' folders in the right places for its contents to be picked up and loaded before older JAXB/JAXWS libs, also doesn't work. This needs to be fixed, many people cannot or will not use SUN SJSAS for deployment and not being able to deploy something as simple as a web service is a real pain. <log> SEVERE: Exception sending context initialized event to listener instance of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener **************************************WARNING*************************************** To use JAX-WS 2.1 with JDK 6, newer versions of API jars need to be in bootclasspath before rt.jar. To do this you can use Java endorsed mechanism to override what is in Java platform. The easiest way to do so is to copy all jars from the C:\Program Files\NetBeans 6.0M10\java1\modules\ext\jaxws21\api folder to C:\Program Files\netbeans_profiles\.netbeans\6.0m10\apache-tomcat-6.0.13_base\endorsed. <END/ log> Hope someone can resolve this quickly. Thanks
I think your problem could be caused by something else. I've experienced this before,it was caused by mistake. I think you're using external Tomcat 6.0.13, but not the one from NB6 Full installation,aren't you? When you add this server in Runtime tab,you are warned by Netbeans,that catalina.bat and setclasspath.bat of this server are missing and you have to copy it manually into [tomcat_home]\bin folder. If you copy this two files from some other Tomcat installation and this installation is of TC5.5, it causes problem you described,because NB6.0 identifies server as TC6, but setclasspath.bat from TC5.5 points to different location with endorsed dirs than setclasspath.bat from TC6 (tomcat-6.0.13_base\endorsed vs Tomcat 5.5\common\endorsed).You can either fix this in your setclasspath.bat or copy files from another TC6 installation.Also you can use full installation of NB6.0 and add default TC6.0.13 by Customize button in installer. Please let us know if this solved your issue.
Looks like a duplication of issue 109286. The pointer to the Java endorsed folder was incorrect. Jardo, please verify whether the new pointer is correct. Thanks *** This issue has been marked as a duplicate of 109286 ***
Hi All, I explored the suggestions from jpospisil a bit more and agree with Sherold, the Netbeans suggested location of the Java 'endorsed' containing more recent versions of JAX* libs (e.g. 2.1) is wrong. The suggestion is to create an endorsed folder at, for example; <path_to_nb_profile_folder>\apache-tomcat-6.0.13_base\endorsed The correct instruction that should be suggested in any error log hints is to create the 'endorsed' folder directly the the root dir (CATALINA_HOME) of the Tomcat instance Netbeans is trying to deploy to/start/stop etc... e.g. C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0\endorsed This works for me at least. Many thanks.