[Solved] Java: DeploymentException

The Application Programming Interface and the OASIS Open Document Format

[Solved] Java: DeploymentException

Postby bcris » Wed Aug 17, 2011 5:02 pm

I use Open Office 3.3 on Windows XP SP3 and Java 1.6.0_26.

On this configuration I have a problem with an OOo plugin written in Java and built and deployed with Ant. The extension file: OPM.oxt is successfully built but at deployment I get the following error:

In Console:

Code: Select all   Expand viewCollapse view
ERROR: Fehler beim Aktivieren von: CalcListener.jar
Cause: (com.sun.star.registry.CannotRegisterImplementationException)  { { Message = "", Context = (com.sun.star.uno.XInterface) @ 0 } }
unopkg failed.
Result 1.


"Fehler beim Aktivieren von..." => "Error when activating ..."


in Log.txt:

Code: Select all   Expand viewCollapse view
###### Progress log entry 2011-08-17 15:48:30 ######
ERROR: (com.sun.star.lang.IllegalArgumentException) { { Message = "Extension ist nicht bekannt: OPM.oxt", Context = (com.sun.star.uno.XInterface) @2b7d6c0 }, ArgumentPosition = (short) -1 }
###### Progress log entry 2011-08-17 15:48:40 ######
ERROR: (com.sun.star.lang.IllegalArgumentException) { { Message = "Extension ist nicht bekannt: de.agentes.opm.calc.addin", Context = (com.sun.star.uno.XInterface) @2b7d730 }, ArgumentPosition = (short) -1 }
ERROR: (com.sun.star.lang.IllegalArgumentException) { { Message = "Extension ist nicht bekannt: de.agentes.opm.calc.addin", Context = (com.sun.star.uno.XInterface) @2b7d730 }, ArgumentPosition = (short) -1 }
ERROR: (com.sun.star.lang.IllegalArgumentException) { { Message = "Extension ist nicht bekannt: de.agentes.opm.calc.addin", Context = (com.sun.star.uno.XInterface) @2b7d730 }, ArgumentPosition = (short) -1 }


"Extension ist nicht bekannt" => "Extension is unknown".

The exact same file (OPM.oxt) can be installed without any problem on a colleague's computer with the same characteristics (Open Office 3.3 on Windows XP SP3 and Java 1.6.0_26). But on my computer and on those of 2 other colleagues the above mentioned error message appears.

This issue is very similar with the following one:

http://user.services.openoffice.org/en/forum/viewtopic.php?f=25&t=35159

but I have already checked the parts that were problematic there (classpath in MANIFEST.MF and the methods __writeRegistryServiceInfo and __getComponentFactory are correct in this case).

Is there a way to debug the deployment process ? Or to be able to find out more detailed information about what exactly happens there ? Does anyone have an ideea what the problem could be ?

Thanks in advance !
Last edited by Hagar Delest on Sun Oct 02, 2011 8:56 pm, edited 1 time in total.
Reason: tagged [Solved].
OpenOffice 3.3 on Windows XP SP3
bcris
 
Posts: 21
Joined: Wed Aug 17, 2011 3:51 pm

Re: Java: DeploymentException

Postby bcris » Thu Sep 08, 2011 4:19 pm

The problem was packing several jars needed by the extension into one big "utility" jar to avoid having to specify them all into the manifest file: the classes in the inner jars are somehow not "seen" in this case. Not clear yet why that is not working, but a workaround is to use the needed jars directly (not pack them into a bigger jar) and specify each of them in the manifest.xml and manifest.MF files.
OpenOffice 3.3 on Windows XP SP3
bcris
 
Posts: 21
Joined: Wed Aug 17, 2011 3:51 pm

[Solved] Re: Java: DeploymentException

Postby bcris » Sun Oct 02, 2011 6:56 pm

Solved
OpenOffice 3.3 on Windows XP SP3
bcris
 
Posts: 21
Joined: Wed Aug 17, 2011 3:51 pm

Re: [Solved] Java: DeploymentException

Postby Mission » Thu Jan 17, 2013 7:51 pm

bcris wrote:
"Extension ist nicht bekannt" => "Extension is unknown".

The exact same file (OPM.oxt) can be installed without any problem on a colleague's computer with the same characteristics (Open Office 3.3 on Windows XP SP3 and Java 1.6.0_26). But on my computer and on those of 2 other colleagues the above mentioned error message appears.

This issue is very similar with the following one:

http://user.services.openoffice.org/en/forum/viewtopic.php?f=25&t=35159

but I have already checked the parts that were problematic there (classpath in MANIFEST.MF and the methods __writeRegistryServiceInfo and __getComponentFactory are correct in this case).

Is there a way to debug the deployment process ? Or to be able to find out more detailed information about what exactly happens there ? Does anyone have an ideea what the problem could be ?

Thanks in advance !


How did you solve it? A big jar may not contain further smaller jars and then it will work? Have to try it at home. Thanks!
OpenOffice 3.1 on Windows Vista
Mission
 
Posts: 2
Joined: Thu Jan 17, 2013 7:48 pm


Return to UNO API and ODF

Who is online

Users browsing this forum: No registered users and 1 guest