FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Is ModuleInstall still exsting?

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
Michael Holste
Posted via mailing list.





PostPosted: Sat Oct 24, 2009 3:45 pm    Post subject: Is ModuleInstall still exsting? Reply with quote

I just wanted to run my application with a link in some new module now and I
receive this error:
cannot access org.openide.modules.ModuleInstall class file for
org.openide.modules.ModuleInstall not found
Well, of course the new module has a link to ModulInstall and with this to
the Module System API, this dependency is declared and this API is also
shown in the 'Libraries' folder of the module. Further, NB doesn't show an
error in the code view and I think this should mean, that NB finds and sees
the API and the class, too. So, what's going on there if I start the
application? Why is this class not found? Is there anything that I may have
forgotten or that should have been done additionally?
Regs, Michael
--
View this message in context: http://www.nabble.com/Is-ModuleInstall-still-exsting--tp26040250p26040250.html
Sent from the Netbeans RCP/Platform Users (Open API) mailing list archive at Nabble.com.
Back to top
Geertjan Wielenga
Posted via mailing list.





PostPosted: Sat Oct 24, 2009 3:53 pm    Post subject: Is ModuleInstall still exsting? Reply with quote

Michael Holste wrote:
Quote:
I just wanted to run my application with a link in some new module now and I
receive this error:
cannot access org.openide.modules.ModuleInstall class file for
org.openide.modules.ModuleInstall not found
Well, of course the new module has a link to ModulInstall and with this to
the Module System API, this dependency is declared and this API is also
shown in the 'Libraries' folder of the module. Further, NB doesn't show an
error in the code view and I think this should mean, that NB finds and sees
the API and the class, too. So, what's going on there if I start the
application? Why is this class not found? Is there anything that I may have
forgotten or that should have been done additionally?
Regs, Michael

You have a reference to a ModuleInstall class in your manifest file. But
that ModuleInstall class doesn't exist. Look in your manifest file.

Gj
Back to top
Michael Holste
Posted via mailing list.





PostPosted: Sat Oct 24, 2009 4:36 pm    Post subject: Is ModuleInstall still exsting? Reply with quote

Well, thanks at first for your quick answer! I think, the manifest file is
not really the point. I had a look into it and of course, there is a
reference to the ModuleInstall class, but it exists! I double-checked this
in the physical filesystem, too and I find it. Maybe I have to reference
this file in just another way? My manifest looka like this at moment:

Manifest-Version: 1.0
OpenIDE-Module: org.mho.db.derby
OpenIDE-Module-Public-Packages: org.mho.db.derby.*
OpenIDE-Module-Install: org/mho/db/derby/DatabaseManager.class
OpenIDE-Module-Localizing-Bundle: org/mho/db/derby/Bundle.properties
OpenIDE-Module-Specification-Version: 1.0

In my eyes, this should generally be ok?!
Michael


Geertjan Wielenga wrote:
Quote:

Michael Holste wrote:
Quote:
I just wanted to run my application with a link in some new module now
and I
receive this error:
cannot access org.openide.modules.ModuleInstall class file for
org.openide.modules.ModuleInstall not found
Well, of course the new module has a link to ModulInstall and with this
to
the Module System API, this dependency is declared and this API is also
shown in the 'Libraries' folder of the module. Further, NB doesn't show
an
error in the code view and I think this should mean, that NB finds and
sees
the API and the class, too. So, what's going on there if I start the
application? Why is this class not found? Is there anything that I may
have
forgotten or that should have been done additionally?
Regs, Michael

You have a reference to a ModuleInstall class in your manifest file. But
that ModuleInstall class doesn't exist. Look in your manifest file.

Gj



--
View this message in context: http://www.nabble.com/Is-ModuleInstall-still-exsting--tp26040250p26040734.html
Sent from the Netbeans RCP/Platform Users (Open API) mailing list archive at Nabble.com.
Back to top
Tim Boudreau
Posted via mailing list.





PostPosted: Sun Oct 25, 2009 7:16 am    Post subject: Is ModuleInstall still exsting? Reply with quote

Michael Holste wrote:
Quote:

Well, thanks at first for your quick answer! I think, the manifest file is
not really the point. I had a look into it and of course, there is a
reference to the ModuleInstall class, but it exists! I double-checked this
in the physical filesystem, too and I find it. Maybe I have to reference
this file in just another way? My manifest looka like this at moment:

OpenIDE-Module-Install: org/mho/db/derby/DatabaseManager.class


Does DatabaseManager really extend ModuleInstall?

If so, probably the next step is to build an NBM of your module. Then in
the Files tab, expand it and take a look at its contents and make sure there
really is a org/mho/db/derby/DatabaseManager.class file in the JAR file
(under modules/ - NBM is a jar within a jar), and that it really has
*exactly* the same path as in the manifest, including matching character
case.

-Tim

--
View this message in context: http://www.nabble.com/Is-ModuleInstall-still-exsting--tp26040250p26045718.html
Sent from the Netbeans RCP/Platform Users (Open API) mailing list archive at Nabble.com.
Back to top
Michael Holste
Posted via mailing list.





PostPosted: Sun Oct 25, 2009 9:21 am    Post subject: Is ModuleInstall still exsting? Reply with quote

Tim Boudreau wrote:
Quote:

Does DatabaseManager really extend ModuleInstall?

If so, probably the next step is to build an NBM of your module. Then in
the Files tab, expand it and take a look at its contents and make sure
there really is a org/mho/db/derby/DatabaseManager.class file in the JAR
file (under modules/ - NBM is a jar within a jar), and that it really has
*exactly* the same path as in the manifest, including matching character
case.

-Tim



Thank you for that hint! I did exactly what you wrote and the results don't
look good for me: Yes, DatabaseManger extends ModuleInstall and after I
checked that, I built the NBM and checked the contents. It really has the
same path as in the manifest and it is also case-sensitively ok. I wonder if
there may be a thing that may be overlooked or anything else? If not, for me
the only way to continue is to place the funtionality of that module in
another module...
Michael

--
View this message in context: http://www.nabble.com/Is-ModuleInstall-still-exsting--tp26040250p26046296.html
Sent from the Netbeans RCP/Platform Users (Open API) mailing list archive at Nabble.com.
Back to top
Tim Boudreau
Posted via mailing list.





PostPosted: Sun Oct 25, 2009 4:22 pm    Post subject: Is ModuleInstall still exsting? Reply with quote

Michael Holste wrote:
Quote:


Tim Boudreau wrote:
Quote:

Does DatabaseManager really extend ModuleInstall?

If so, probably the next step is to build an NBM of your module. Then in
the Files tab, expand it and take


Thank you for that hint! I did exactly what you wrote and the results
don't look good for me: Yes, DatabaseManger extends ModuleInstall and
after I checked that, I built the NBM and checked the contents. It really
has the same path as in the manifest and it is also case-sensitively ok.


That all sounds like it is correct. One other thing: Is your module marked
to be "autoload" (check the API Versioning tab in the project properties)?
If so, then your module might never be enabled unless another module is
loaded that depends on it. Make sure it is set to "Regular".

If all else fails, I'd suggest you copy the module somewhere else, delete
all code except the ModuleInstall, and add some logging to that and try to
diagnose (also look at the startup log when you run it).

-Tim

--
View this message in context: http://www.nabble.com/Is-ModuleInstall-still-exsting--tp26040250p26049295.html
Sent from the Netbeans RCP/Platform Users (Open API) mailing list archive at Nabble.com.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB