JasperReports won't work on Amazon EC2 linux ami - amazon-ec2

I have a web application on Amazon EC2 and JasperReports doesn't work like on my Windows PC... it comes out with
java.lang.Error: Probable fatal error:No fonts found.
I installed liberation-fonts as suggested by many on google, then I'm trying to set up this option for tomcat:
-Djava.awt.headless=true
I added it to JAVA_OPTS (as CATALINA_OPTS was missing) in etc/tomcat6/tomcat6.conf, with no effect. Do you have any clues on this?

I ran into this problem with Fedora on EC2 once. In that case we solved it with yum install deja*. Give that a try.
It seems that the default DejaVu fonts were referenced somewhere, so the above was a simple solution.

Related

mod_was_ap22_http.so is not available on Websphere 9?

I'm trying to integrate IBM Http Server to WAS on windows server. Webspher, IHS, Plugins, all installed on same server by installation manager, all of them are version 9 and 64bit.
Then I follow the steps on this(https://geekflare.com/integrate-http-server-with-websphere-8-5/) to start my integration, but something when wrong: I cannot find mod_was_ap22_http.so in my plugin folder. I when to check the folder X:\IBM\WebSphere\Plugins\bin\64bits and D:\IBM\WebSphere\Plugins\bin\32bits, I see mod_was_ap24_http.dll and mod_was_ap22_http.dll but not the .so that I need. I also tried to use mod_was_ap24_http.dll in my httpd.conf file but it's not working, then I got the following error
The IBMHTTPServer9 service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
httpd: Syntax error on line 116 of X:/IBM/HTTPServer/conf/httpd.conf: Cannot loa
d X:/IBM/WebSphere/Plugins/bin/64bits/mod_was_ap24_http.dll into server: %1 \xa4
\xa3\xacO\xa6\xb3\xae\xc4\xaa\xba Win32 \xc0\xb3\xa5\xce\xb5{\xa6\xa1\xa1C
Is there something that I'm not doing right?
The guide is written for Linux and you're on Windows. Further, the guide has typos in configuration files. I'd suggest following the official docs and running PCT/WCT instead of manually configuring all of this.
Just add mentioned module:
[root#172 bin]# locate mod_was_ap22_http.so
Go to location:
/opt/IBM/HTTPServer/conf
vim http.conf
(add mentioned below module)
LoadModule was_ap22_module /opt/IBM/WebSphere/Plugins/bin/64bits/mod_was_ap22_http.so
./apachectl -k start

Unable to use fabric8 with docker for windows

Seems like there might be something i dont understand.
I configured my pom.xml with <dockerHost>tcp://localhost:2375</dockerHost>
Everything is ok for build / deploy.
But it seems fabric8 plugin (v3.5.31) is not configurable with docker for windows : https://store.docker.com/editions/community/docker-ce-desktop-windows
so impossible to use fabric8:start
Tryed DOCKER_HOST env, no go.
Am i missing something? Do i really need to install with gofabric8? (wich does not work anyway)
The docker engine is all there, i am unable to find any documentation on this sadly. There should be a way to configure it to use the parameter!
Thanks.
The dockerHost in the case for windows is not http://localhost:2375. You need to find the IP of the VM were docker is running. This can be found by running the command docker-machine env <machine-name>. This will give you the correct DOCKER_HOST that needs to be used.
Alternatively, there is a feature for windows in this plugin that allows you to not specify a dockerHost and rather locate a docker-machine or create a new one, and use the docker server running on that machine. Take a look at this pull request for more info

Adding environment variable for erlang shows error in windows server 2016

I installed erlang 19 for rabbitmq in Azure VM with windows 2016 OS.
but it shows 'ERLANG HOME not set properly' while enabling rabbitMQ management plugin.
I added environment variable in both system variable and user variable like 'ERLANG_HOME' with path 'C:\Program Files\erl8.2\
When I install the same in windows servfer 2012 R2. It works fine.
Is there any error in the way in which I set environment variable in windows server 2016. Please suggest
Thanks in advance
I had a similar issue was able to resolve it with the solutions on this thread
Windows x64 RabbitMQ install error with Erlang environment var (ERLANG_HOME)
For me the issue was windows didn't pick up the environment variable until restart.
I am adding an answer to this thread since it still does not have an accepted answer. When encountering the "ERLANG HOME not set properly" error, it is worth a shot to see if you opened CMD on Windows as an Adminsitrator when enabling the RabbitMQ management plugin. Hope this helps. :D

cannot use the box created with packer post-processor vagrant

I followed the tutorial on packer.io to create a vagrant box from an amazon-ebs backed instance : https://www.packer.io/intro.
Only issue, the created .box file only contains a Vagrantfile and metadata.json, but I cannot find out how to use this in vagrant with virtualbox since all other boxes I have seen (among them hashcorp/precise32) have a .vmdk and .ovf file and mine doesn't !! Anyone has followed the tutorial and can advise me ? Thanks,
I think I found out : the vagrant box created for post-processing is meant to be used with the vagrant-aws plugin, not with virtualbox.
The provider is then "aws" and not "virtualbox", hence why I do not get the .vmdk and .ovf files. The aws-plugin is only to boot and provision EC2 instances, where as what I wanted to do was to "capture" the Amazon minimal linux interface in order to test it locally (cannot find a bloody iso file for it).
I must then surrender, packer.io was my last hope : I cannot find a way to set-up a VM with the minimal amazon linux image running...

RabbitMQ fails to start

The RabbitMQ windows service will not start:
C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.0.4\sbin>rabbitmq-service.bat start
C:\Program Files (x86)\erl5.10.1\erts-5.10.1\bin\erlsrv: Failed to start service RabbitMQ.
Error: The process terminated unexpectedly.
I can run rabbitmq-server.bat without any problems.
No log entries are made to %appdata%\RabbitMQ\log\ directory when trying to start the service.
Any suggestions to how I make it work? Please...
I faced the same problem and was able to solve the problem following the steps mentioned below.
Run the command prompt as Administrator
Navigate to the sbin directory and uninstall the service. rabbitmq-service remove
Reinstall the service rabbitmq-service install
Enable the plugins. rabbitmq-plugins enable rabbitmq_management
Start the service rabbitmq-service start
Go to "http://localhost:15672/"
Problem solved!
My IT department has mapped %appdata% to a network share and it seems that the RabbitMQ scripts can’t work with that.
I solved the problem this way: Set the environment variable “RABBITMQ_BASE” to “c:\rabbitmq”, uninstall the service (rabbitmq-service.bat remove) and install the service again (rabbitmq-service.bat install).
Deleting "AppData\Roaming\RabbitMQ" solved this problem for me
In my case helped running console as an administrator
- check Erlang compatability with RabbitMQ
** Installtion
Install Erlang
Install Rabbit_MQ
Set system variables
Set Environment variable-
RABBITMQ_BASE c:\RabbitMQ Server
ERLANG_HOME C:\Program Files\erl10.7
Config MQ Server
stop RabbitMq : rabbitmq-service.bat stop
Enable management : rabbitmq-plugins.bat enable rabbitmq_management
Reinstall server : rabbitmq-service.bat install
Start Server : rabbitmq-service.bat start
Start App : rabbitmqctl.bat start_app
Open Brower : http://localhost:15672 user guest / guest
Add new User
List users : rabbitmqctl.bat list_users
Add new user : rabbitmqctl.bat add_user user1 pass1
Give administrator privileges : rabbitmqctl.bat set_user_tags user1
I restarted my computer after install and things are running a lot smoother
Deleting HKEY_LOCAL_MACHINE\SOFTWARE\Ericsson\Erlang\ErlSrv\1.1\RabbitMQ folder from Registry has solved the problem for me. I have to reinstall (uninstall and install) the RabbitMQ after deleting the registry.
Moreover, I have deleted C:\Users\<USERNAME>\AppData\Roaming\RabbitMQ earlier.
I have found the solution from a post of a google group.
My situation was caused by wrong Erlang version. I solved it by the following steps:
Uninstall the older version Erlang
Install the newly version Erlang accordding to https://www.rabbitmq.com/which-erlang.html
Reinstall RabbitMQ
Install RabbitMQ plugin by opening the Windows's cmd and switch to the sbin directory eg.Your-Path\rabbitmq_server-3.7.13\sbin and execute the command rabbitmq-plugins.bat enable rabbitmq_management
Start RabbitMQ and visit http://localhost:15672/
How I solved the same issue... Reinstalled Erlang from x86 to x64. Also checked the option to install Microsoft distributed dlls. I don't know which one of two helped me but it helped at least.
run the following command after installation rabbitmq-plugins enable rabbitmq_management on rabbit mq pathRabbitMQ Server\rabbitmq_server-3.6.9\sbin>rabbitmq-plugins enable rabbitmq_management
I have also come across similar problem, but found that the problem due to folder named "Program" in the OS drive.
Reference.
I renamed my computer and restart. Then everything works fine. I guess Chinese characters effect the rabbit service.
old name: 孙
new name: adam
I faced the same issue of 1067 error in Windows 10. It turns out the rabbitmq config file in location C:\Users\IPS\AppData\Roaming\RabbitMQ\advanced.config was having some syntax error. It was changed from the default configuration. Also, the rabbitmq.conf file at the same location also had a syntax error. I removed the rabbitmq.conf file and removed the changes from the advanced.config file. After that ranbbitmq service started without any issues.

Resources