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 117581 - Problem loading files from module wrapper library (NB 6.0 Beta1)
Summary: Problem loading files from module wrapper library (NB 6.0 Beta1)
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: Other Linux
: P3 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-03 10:03 UTC by cvieira
Modified: 2008-04-11 11:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cvieira 2007-10-03 10:03:07 UTC
I have an external authentication library (foo API) - it is a jar file ( foo.jar). This .jar file has also inside, .jars
for oracle connection, springframework, etc... and the respective configuration files (properties and xml files).

Well, i made a module library wrapper from this module. Till here, everything right.

I have in my application a method that initializes authentication and another for authenticate.

I build and run the application, and it's all Ok. My foo API is called, and do it's job (loads it's xml files and
connects to database to see users and makes authentication).

The problem, is when i try to run the application for the 2nd time and so on. What happened is that the foo API can't
find anymore, a .xml file that is in the foo.jar file.

1 [AWT-EventQueue-1] INFO xml.XmlBeanDefinitionReader  - Loading XML bean definitions from class path resource
[spring-msaapi.xml]
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path
resource [ spring-msaapi.xml]; nested exception is java.io.FileNotFoundException: class path resource
[spring-msaapi.xml] cannot be opened because it does not exist
Caused by: java.io.FileNotFoundException: class path resource [spring-msaapi.xml ] cannot be opened because it does not
exist

->>> It's weird because the file is inside foo.jar, and it was loaded by foo API for the first run time.

I discovered that if i delete the ${USERDIR}/.{APPNAME}/dev/var/cache/all-manifests.dat before run the application, all
goes right.
Comment 1 cvieira 2007-10-11 09:39:02 UTC
I see that this behaviou is not happening in latest builds... so, it might already been discovered and solved.
Comment 2 Petr Chytil 2008-04-11 11:36:47 UTC
Hi cvieira,
closing as worksforme if you have no objections.
Fell free to reopen if you encounter this behavior again.