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 develop a web service project use another project as library. All the projects' folder name has SPACE. The service does not work and the error is: javax.ejb.EJBException ...... Caused by: java.lang.ExceptionInInitializerError at test.NewWebServiceFromWSDL.isbnInsert(NewWebServiceFromWSDL.java:30) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke (Method.java:597) at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1067) at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176) at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2884) at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3975) at com.sun.ejb.containers.WebServiceInvocationHandler.invoke (WebServiceInvocationHandler.java:189) ... 62 more Caused by: Exception [TOPLINK-30005] (Oracle TopLink Essentials - 2.0 (Build b53-rc (06/27/2007))): oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: EJBClassLoader : urlSet = [URLEntry : file:/C:/Documents%20and%20Settings/Liang%20ZHANG/My%20Documents/GoldenPig_v2_Caesar/CAESAR_NB_PRJ_NB6M10/CAESAR_Service_Test/build/jar/, URLEntry : file:/C:/Program%20Files/glassfish-v2-b53/domains/domain1/generated/ejb/j2ee-modules/CAESAR_Service_Test/, ........ file:/C:/Documents%20and%20Settings/Liang%20ZHANG/My%20Documents/GoldenPig_v2_Caesar/CAESAR_NB_PRJ_NB6M10/CAESAR_Service_Test/build/jar/toplink- essentials-agent.jar, URLEntry : file:/C:/Documents%20and%20Settings/Liang%20ZHANG/My%20Documents/GoldenPig_v2_Caesar/CAESAR_NB_PRJ_NB6M10/CAESAR_Service_Test/build/jar/toplink-essentials.jar] doneCalled = false Parent -> EJBClassLoader : urlSet = [] doneCalled = false Parent -> java.net.URLClassLoader@578dfb Internal Exception: java.io.FileNotFoundException: C:\Documents%20and%20Settings\Liang%20ZHANG\My%20Documents\GoldenPig_v2_Caesar\CAESAR_NB_PRJ_NB6M10\CAESAR_Service_Test\build\jar\CAESAR_Entity_JPA.jar (???????????) at oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(PersistenceUnitLoadingException.java:143) at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.findPersistenceArchives (PersistenceUnitProcessor.java:252) at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.findPersistenceArchives(PersistenceUnitProcessor.java:231) at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initialize (JavaSECMPInitializer.java:250) at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:140) at javax.persistence.Persistence.createEntityManagerFactory (Persistence.java:96) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:73) at com.ginp.gp.caesar.content.ContentMedia.<clinit>(ContentMedia.java:186) ... 72 more ...... The ?????? is the Chinese characters means "System can not find the path.". When I move all the projects to the folder whose name do not has the SPACE, the service works.
From the error description I see no relation to web services support in Netbeans. Perhaps the server issue. Please, atach the zipped project(s) to see what's the problem. Also append the server type (SJSAS or Tomcat) and server version.
I use NB6M10. So the server is Sun server. I attach my projects. You can put these projects into the folder whose name does not have "SPACE" and test the service "ISBN_ServiceService" in project CAESAR_Service_Test. It works. Then put these projects into the folder whose name has "SPACE" and test the service "ISBN_ServiceService" in project CAESAR_Service_Test. You can see the exceptions.
Created attachment 45276 [details] Two projects for the issue
From the exception thrown by GlassFish looks like some GlassFish Java Persistant API problem. I already reported a GlassFish issue ; https://glassfish.dev.java.net/issues/show_bug.cgi?id=3712 Passing also to JPA experts to evaluate.
A web service is doing nothing more then trying to instantiate the following class from java library module. See tha attachment : ISBNBook
Created attachment 49902 [details] ISBNBook.java
Created attachment 51998 [details] FileNotFoundException from toplink
This is not NetBeans problem. It is Toplink problem which was filed as https://glassfish.dev.java.net/issues/show_bug.cgi?id=3712 Keeping this issue open for tracking purpose. mkuchtiak, the issue you filed for glassfish - could you add comment there please (because I cannot edit your report) to change persistence.xml in JPA_109948 project to any local available database (in NB6b2 eg. sample) plus change Table Generation Strategy to Drop and Create and then the issue is easily reproducible with provided projects. I also attached log file with the same exception.
low priority bug. Fix as time permits.
NetBeans.org Migration: changing resolution from LATER to WONTFIX