List Info

Thread: Re: Problem while installing opencms_6.2.2 on Linux




Re: Problem while installing opencms_6.2.2 on Linux
country flaguser name
Netherlands
2007-03-05 14:24:58
You normally set the headless=true option when you are using
(direct or 
indirect) graphical classes (E.g. from the AWT-library) and
you don't 
have a windowing system installed on your OS.

You either know it from documentation of libraries that you
use, or you 
see a stacktrace in your logfiles, indicating that some
graphical 
classes or something could not be loaded.

If your programs are running fine, you probably do not have
to set the 
headless-option.

Best regards,

Dave


-- 
Visit http://www.redstarde
velopment.nl for articles on OpenCms


sachinwarang wrote:
> Thanks Dave ,Fabian's solution works fine .
> And Dave how do we know for which machine On Linux
systems, Tomcat's JVM has
> to be started with the command line argument
-Djava.awt.headless=true ?
> As i don't have any problem with my machine , for which
Linux machine it has
> to specify ?
> 
> Regards,
> Sachin Warang.
> 
> maillistscyber-d.com wrote:
>> Your problem has nothing to do with the
java.awt.headless option. For
>> your problem, see Fabian's reply to your question.
>>
>> But as a sidenote:
>> Tomcat is a Java application which starts a JVM.
When starting Tomcat's
>> JVM, you can pass options to the JVM. One of these
options is
>> -Djava.awt.headless=true. However, you tried to run
the option from the
>> shell, but you must add the option to Tomcat's
startup file. This can be
>> done in several ways. One of them is (from memory)
to edit the 
>> catalina.sh scriptfile which is present in your
tomcat bin directory and 
>> add the line in the top of the file:
>> JAVA_OPTS="-Djava.awt.headless=true"
>>
>> Best regards,
>>
>> Dave
>>
>>
>>
>> Sachin Warang wrote:
>>> Please note: On Linux systems, Tomcat's JVM has
to be started with the 
>>> command line argument -Djava.awt.headless=true.
The
>>> reason for this is that OpenCms uses Swing
classes for parsing RTF 
>>> documents. Using these classes initializes the
GUI system.
>>> This leads to an exception as the server
process doesn't have access to 
>>> the GUI system when not using the described
argument.
>>>
>>> I've tried this on the linux system command
prompt , but it gives me an 
>>> Error as
>>> -bash: -Djava.awt.headless=true: command not
found
>>>
>>> How could i manage to do this ?
>>> As i've problem while accessing the http://localhost:8080 after
starting 
>>> the tomcat which i've mention earlier in this
forum.
>>>
>>> Regards,
>>> Sachin Warang.
>>>
>>>
>>>
>> -- 
>> Visit http://www.redstarde
velopment.nl for articles on Open Source
>> Projects
>>
>>
>>
>>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev
mailing list
>> To change your list options, or to unsubscribe from
the list, please visit
>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>
>>
> 


_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the
list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )