[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re[2]: [equinox-dev] J2SE in OSGi

Hi Christian,

I suggest to put add in config.ini the required packages. For example:
org.osgi.framework.system.packages=javax.net; specification-version="1.0.3", javax.net.ssl; specification-version="1.0.3", javax.crypto; specification-version="1.2.2", javax.crypto.interfaces; specification-version="1.2.2", javax.crypto.spec; specification-version="1.2.2", javax.security.cert; specification-version="1.0.3", javax.xml.parsers, javax.xml.transform, javax.xml.transform.stream, org.xml.sax;version=2.0, org.xml.sax.helpers;version=2.0, org.w3c.dom;version=2.0, org.xml.sax.ext;version=1.0.0,  javax.swing, javax.swing.border, javax.swing.text


-Pavlin
-----------------------------------------------------
Pavlin Dobrev, Research and Development Manager 
ProSyst Labs EOOD, 
48 Vladaiska Str., Sofia, Bulgaria, 
Tel. (+359 2) 954 91 62 . Fax. (+359 2) 953 26 17 
p.dobrev@xxxxxxxxxxx , http://www.prosyst.com 
----------------------------------------------------- 
stay in touch with your product. 
-----------------------------------------------------

CV> Hi Thomas

CV> I am using the latest mBedded Server Equinox Edition from ProSyst with
CV> the administration tool mConsole 1.1 from the same distributor.
CV> The error message I talked about was generated from the mConsole after
CV> trying to import a ServiceBundle written on my one. I am using the JDK
CV> 1.5.0_06.
CV> I fixed the problem temporary by adding the java rt.jar into the OSGi 
CV> Framework and declared the javax.swing and the javax.xml as exported 
CV> packages in the
CV> manifest file of the rt.jar Package. I guess that will be not the right
CV> and usual way !?

CV> Greetings

CV> Christian Voigtmann


CV> Thomas Watson wrote:
>>
>> What version of Equinox are you using?  What version/vendor of the VM 
>> are you using?  Equinox should detect the J2SE version you are using 
>> and the system.bundle should export the proper set of packages 
>> available from the execution environment.  The error message "the 
>> packages could not be found in the framework" does not look familiar 
>> for Equinox.  
>>
>> If a package import constraint can not be satisified the bundle should 
>> install successfully but it will not be able to enter the RESOLVED 
>> state.  This will prevent it from starting.  You should be getting a 
>> BundleException when attempting to start the bundle.  The error 
>> message should look something like this ...
>>
>> _org.osgi.framework.BundleException_: The bundle could not be 
>> resolved. Reason: Missing Constraint: Import-Package: 
>> javax.xml.parsers; version="0.0.0"
>>
>> Is this what you are seeing?
>>
>> Tom
>>
>>
>>
>> *Christian Voigtmann <voigtmann@xxxxxxxxxxxxxxxx>*
>> Sent by: equinox-dev-bounces@xxxxxxxxxxx
>>
>> 05/03/2007 08:06 AM
>> Please respond to
>> Equinox development mailing list <equinox-dev@xxxxxxxxxxx>
>>
>>
>>       
>> To
>>       Equinox development mailing list <equinox-dev@xxxxxxxxxxx>
>> cc
>>       
>> Subject
>>       Re: [equinox-dev] J2SE in OSGi
>>
>>
>>
>>       
>>
>>
>>
>>
>>
>> Thx for answering,
>>
>> yes i did import the javax.xml.parses package in the imported packages
>> sections of the manifest file.
>> At the moment I try to install the bundle which is using the package,
>> the OSGi framework says
>> "the packages could not be found in the framework" its the same for
>> javax.swing !
>> Do i have to import these packages first ? And if yes, how ?
>>
>> Christian
>>
>>
>> BJ Hargrave schrieb:
>> > Did you import that javax.xml.parsers package that contains the
>> > DocumentBuilderFactory class? In OSGi you must import all packages 
>> other
>> > than java.* package in your bundle's manifest.
>> >
>> > BJ Hargrave
>> > Senior Technical Staff Member, IBM
>> > OSGi Fellow and CTO of the OSGi Alliance
>> > hargrave@xxxxxxxxxx
>> >
>> > office: +1 386 848 1781
>> > mobile: +1 386 848 3788
>> >
>> >
>> >
>> >
>> > Christian Voigtmann <voigtmann@xxxxxxxxxxxxxxxx>
>> > Sent by: equinox-dev-bounces@xxxxxxxxxxx
>> > 2007-05-03 06:59
>> > Please respond to
>> > Equinox development mailing list <equinox-dev@xxxxxxxxxxx>
>> >
>> >
>> > To
>> > equinox-dev@xxxxxxxxxxx
>> > cc
>> >
>> > Subject
>> > [equinox-dev] J2SE in OSGi
>> >
>> >
>> >
>> >
>> >
>> >
>> > Hi i`am very new to OSGi !
>> >
>> > So I have several questions to ask ;)
>> >
>> > Here is one of it: It is possible to use all J2SE classes in OSGi, for
>> > example the DocumentBuilderFactory class from the package javax.xml !
>> > So is there any restriction of using J2SE functionalities in OSGi. If
>> > not, how can I use the DocumentBuilderFactory class for example, I tried
>> > it but i didn`t work.
>> >
>> > Greetings
>> >
>> > Christian
>> >
>> > _______________________________________________
>> > equinox-dev mailing list
>> > equinox-dev@xxxxxxxxxxx
>> > https://dev.eclipse.org/mailman/listinfo/equinox-dev
>> >
>> >
>> > _______________________________________________
>> > equinox-dev mailing list
>> > equinox-dev@xxxxxxxxxxx
>> > https://dev.eclipse.org/mailman/listinfo/equinox-dev
>> >
>> >  
>>
>>
>> _______________________________________________
>> equinox-dev mailing list
>> equinox-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> equinox-dev mailing list
>> equinox-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>>   


CV> _______________________________________________
CV> equinox-dev mailing list
CV> equinox-dev@xxxxxxxxxxx
CV> https://dev.eclipse.org/mailman/listinfo/equinox-dev


CV> __________ NOD32 2238 (20070503) Information __________

CV> This message was checked by NOD32 antivirus system.
CV> http://www.eset.com