ok, so it turns out the problem was not just jar files, but any large files. I had to mess
around with the max_allowed_packet variable in mysql, plus increase the size of uploads in
xwiki, which at first I didn’t realize is given in BYTES. so now I can upload large
files.
I wanted a local plantuml server because I’m trying to embed links in the diagrams, and I
thought you needed a local server for that.
It still doesn’t work, but I thing it’s a XWiki issue.
Dan
From: Thomas Mortagne [via XWiki]
Sent: Tuesday, April 12, 2016 6:54 AM
To: dullfig
Subject: Re: Uploading .jar as attachment to page fails
Note that a cleaner solution would be to refactor PlantUML Macro
extension to depend on net.sourceforge.plantuml:plantuml extension
instead of embedding it. Extension will simply put the plantuml jar in
the classloader and it would be automatically available to the
PlantUML Macro (no need to load the attachment anymore).
On Tue, Apr 12, 2016 at 9:23 AM, Vincent Massol <[hidden email]> wrote:
Hi,
On 11 Apr 2016, at 23:47, dullfig <[hidden
email]> wrote:
Hello:
I want to upload the latest PlantUML.jar server as an attachment to the
PlantUMLMacroGClass page. The current PlantUML.jar is outdated, and is
already an attachment to this page.
I press the "chose file"button, search for the .jar file, and invariably it
stops at about 2MB with an error message that says "an error occured while
uploading plantuml.jar". What could be the problem? the file is about 5MB
Maybe you should check this out:
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Attachments
And also
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationMySQL if you’re
using mysql:
" • By default MySQL only accepts packets that are smaller than 1MB. If you
get the "Packet for query is too large (max_allowed_packet)" error then see the
Packet too large error page. For example to increase the packet size to 32M you could
start the MySQL server with mysqld --console --max_allowed_packet=32M or you can modify
directly the my.cnf configuration file to set this value permanently.”
You should also check the logs to see the details of "an error occured while
uploading plantuml.jar” (that doesn’t give enough info to help you more).
Thanks
-Vincent
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
--------------------------------------------------------------------------------
If you reply to this email, your message will be added to the discussion below:
http://xwiki.475771.n2.nabble.com/Uploading-jar-as-attachment-to-page-fails…
To unsubscribe from Uploading .jar as attachment to page fails, click here.
NAML
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Uploading-jar-as-attachment-to-page-fails…
Sent from the XWiki- Users mailing list archive at
Nabble.com.