• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Error while setting avatar

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys!!!

When I was upload my avatar at my JForum 2.1.7, the following message appeared:

Error while setting your avatar. It may be related to the absence of graphical libraries in the server. Please contact the site administrator.

OK! I'm the site administrator! And there isn't any error message to help me!

Could anybody give some help or orientation?

[ ]'s
[originally posted on jforum.net by leandro_salvador]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Linux?

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Linux Red Hat Advanced Server 4.0 compatible with Fedora R3 and 4 :roll:

Hosted at LocaWeb... which after some days of technical burocracy, made JForum works... less the Avatar ;)
[originally posted on jforum.net by leandro_salvador]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They don't have Xlibs there. Ask them for the -Djava.awt.headless=true, or any other way you can create graphis from a Java application there.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I asked them about it, so their answer was:

"The directive Djava.awt.headless=true is configured on server, follows an example"

So, he gaves a link which has a servlet using this library...

What do you think about it?

[ ]'s

PS: There is a FAQ with the source code of this file: http://site.locaweb.com.br/suporte/Faq/faq.asp?faq=763 (pt_BR)

[originally posted on jforum.net by leandro_salvador]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know - I don't like Locaweb, as their infra estructure is a pain in the ass to use.

What I want to say is that I think the problem is there with Locaweb and not in JForum - it works everywhere, only there we have problems.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Rafael Steil wrote:Don't know - I don't like Locaweb, as their infra estructure is a pain in the ass to use.

What I want to say is that I think the problem is there with Locaweb and not in JForum - it works everywhere, only there we have problems.

Rafael



Provider suggestions at low price (as LocaWeb... +- R$30/month = +- US$15/month) would be welcome.

The provider used by JForum.net is a few expensive in my opinion... ops:

[ ]'s
[originally posted on jforum.net by leandro_salvador]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For US$ 30,00, you can have your own virtual server, with full root access and your own virtual machine

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pessoal,

Estou com o mesmo problema na locaweb tamb�m. Acho pode ser o diret�rio tempor�rio que o Jforum utiliza para carregar a foto!

Como podemos verificar esse diret�rio tempor�rio? Eu utilizo por exemplo o commons-file-upload e tive que setar o diret�rio tempor�rio onde tenho permiss�o full.

Rafael, qual empresa voc� recomenda para eu hospedar meu site? um lugar onde eu tenho bastate autonomia sobre meu ambiente.

Abra�os,
Z�
[originally posted on jforum.net by JoseVicenteCruz]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Achei o problema. Na verdade � a velha permiss�o na locaweb.
S� que dessa vez n�o depende do suporte e n�s mesmos podemos contornar o problema!

1. Alterar no arquivo SystemGlobals.properties a propriedade tmp.dir = teste/WEB-INF/logs (diret�rio com permiss�o full)

2. existe a pasta images/avatar
--> toda essa estrutura de diret�rio tamb�m precisa ter permiss�o full
No caso
chmod 777 images
chmod 777 avatar

Pronto, funcionar o upload do avatar

Abra�o,
Z�
[originally posted on jforum.net by JoseVicenteCruz]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!