2018年11月27日火曜日

CentOS7にJasperReports Server Community Edition(v7.1.0)をインストール

【準備】
1)tomcat8.5.35
2) mysql Ver 8.0.13 for Linux on x86_64 (MySQL Community Server - GPL)
3) mysql Ver 5.1.47(mysql-connector-java-5.1.47-bin.jar)
3) mysql Ver 8.0.13(mysql-connector-java-8.0.13.jar)
※最初mysql Ver.8を使ったら、ハマった!!、connectで接続エラー URLの仕様が変わったらしい。

下記をダウンロード
https://community.jaspersoft.com/project/jasperreports-server/releases

# unzip TIB_js-jrs-cp_7.1.0_bin.zip
# cd ./jasperreports-server-cp-7.1.0-bin/buildomatic/sample_conf
# cp  mysql_master.properties ../default_master.properties
# cd ..
# vi default_master.properties
appServerType = tomcat
appServerDir = /opt/tomcat
dbType=mysql
dbPort=3306
js.dbName=jasperserver
dbHost=localhost
dbUsername=root
dbPassword=password
#---------JDBC Driver ---------------
jdbcDriverClass=com.mysql.cj.jdbc.Driver
maven.jdbc.groupId=mysql
maven.jdbc.artifactId=mysql-connector-java
maven.jdbc.version=5.1.47


# systemctl start mysqld

※商用DBの場合は、JDBCドライバのコピーが必要。
mysqlの場合(不要)
# cd ./conf_source/db
# mv mysql mysql.bak
# mkdir mysql mysql/jdbc
# cd mysql
# cp /tmp/mysql-connector-java-5.1.47.tar.gz .
# tar xvzf mysql-connector-java-5.1.47.tar.gz
# cp ./mysql-connector-java-5.1.47/mysql-connector-java-5.1.47-bin.jar jdbc
# cp -p ../mysql.bak/db.properties .
# cp -p ../mysql.bak/db.xml .
# cp -p ../mysql.bak/scripts.properties .
# cp -p ../mysql.bak/db.template.properties .
# vi db.properties
jdbcDriverClass=com.mysql.jdbc.Driver
maven.jdbc.groupId=mysql
maven.jdbc.artifactId=mysql-connector-java
maven.jdbc.version=5.1.47-bin
# cd ../../..
# pwd
~/jasperreports-server-cp-7.1.0-bin/buildomatic
# ./js-install-ce.sh


※????
# cp -p ./conf_source/db/mysql/db.xml .//build_conf/default/maven_settings.xml


【設定シェル】
# ダウンロードしたディレクトリで本shellを実行すると、
# /optにインストールする
#
export DWLDIR=`pwd`
export OPTDIR=/opt
export TOMDIR=/opt/tomcat
export BUIDIR=$OPTDIR/jasperreports-server-cp-7.1.0-bin/buildomatic
export MSQDIR=$BUIDIR/conf_source/db/mysql
export ASQDIR=$BUIDIR/conf_source/db/app-srv-jdbc-driver
cd $DWLDIR;tar xvzf mysql-connector-java-5.1.47.tar.gz
unzip $DWLDIR/TIB_js-jrs-cp_7.1.0_bin.zip -d $OPTDIR
cd $BUIDIR
cp $BUIDIR/sample_conf/mysql_master.properties $BUIDIR/default_master.properties
vi $BUIDIR/default_master.properties <<__EOF__ 2&>/dev/null
Go
########この内容を編集##############
appServerType = tomcat
appServerDir = /opt/tomcat
dbType=mysql
dbPort=3306
# js.dbName=jasperserver
# sugarcrm.dbName=sugarcrm
# foodmart.dbName=foodmart
js.dbName=jasperserver
sugarcrm.dbName=sugarcrm
foodmart.dbName=foodmart
dbHost=localhost
dbUsername=root
dbPassword=IWq%!d)DT5lt
##---------JDBC Driver ---------------
#jdbcDriverClass=com.mysql.cj.jdbc.Driver
jdbcDriverClass=com.mysql.jdbc.Driver
jdbcDataSourceClass=com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
maven.jdbc.groupId=mysql_oracle
maven.jdbc.artifactId=mysql-connector-java
maven.jdbc.version=5.1.47-bin
########この内容を編集##############
  ←ESCコード(cntl+v esc)
ZZ
__EOF__
vi $BUIDIR/default_master.properties
set -xv
cp -rp $MSQDIR $MSQDIR.bak
rm -f $MSQDIR/jdbc/mariadb-java-client-1.6.3.jar
cp -p $DWLDIR/mysql-connector-java-5.1.47/mysql-connector-java-5.1.47-bin.jar $MSQDIR/jdbc
cp -p $DWLDIR/mysql-connector-java-5.1.47/mysql-connector-java-5.1.47-bin.jar $ASQDIR/jdbc
rm -rf $DWLDIR/mysql-connector-java-5.1.47
vi $MSQDIR/db.properties <<__EOF__ 2&>/dev/null
Go
########この内容を編集##############
jdbcDriverClass=com.mysql.jdbc.Driver
# jdbcDataSourceClass=org.mariadb.jdbc.MySQLDataSource
jdbcDataSourceClass=com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
maven.jdbc.groupId=mysql_oracle
maven.jdbc.artifactId=mysql-connector-java
maven.jdbc.version=5.1.47-bin
########この内容を編集##############
  ←ESCコード(cntl+v esc)
ZZ
__EOF__
vi $MSQDIR/db.properties
pwd
cd $BUIDIR
pwd
rm $BUIDIR/conf_source/db/app-srv-jdbc-drivers/mariadb-java-client-1.6.3.jar
rm $BUIDIR/conf_source/ieCe/lib/mariadb-java-client-1.6.3.jar
./js-install-ce.sh
echo ----------------------FINISH-------------------
echo ------------------START TOMCAT -------------------
read
echo ------------------START COPY-------------------

cp -p $BUIDIR/build_conf/default/webapp/META-INF/context.xml $TOMDIR/webapps/jasperserver/META-INF/context.xml
cp -p $BUIDIR/build_conf/default/webapp/WEB-INF/hibernate.properties $TOMDIR/webapps/jasperserver/WEB-INF/hibernate.properties
cp -p $BUIDIR/build_conf/default/webapp/WEB-INF/js.quartz.properties $TOMDIR/webapps/jasperserver/WEB-INF/js.quartz.propertie
cp -p $BUIDIR/conf_source/db/mysql/jdbc/mysql-connector-java-5.1.47-bin.jar $TOMDIR/lib
echo tbeller.usejndi = false>$TOMDIR/webapps/jasperserver/WEB-INF/classes/resfactory.properties

chown tomcat:tomcat $TOMDIR/webapps/jasperserver/META-INF/context.xml $TOMDIR/webapps/jasperserver/WEB-INF/hibernate.properties $TOMDIR/webapps/jasperserver/WEB-INF/js.quartz.propertie $TOMDIR/lib/mysql-connector-java-5.1.47-bin.jar $TOMDIR/webapps/jasperserver/WEB-INF/classes/resfactory.properties
chmod go+rw $TOMDIR/webapps/jasperserver/WEB-INF/logs





2018年11月26日月曜日

CentOS7にJasperStudioインストール & 日本語化

■20210216追記
TIB_js-studiocomm_6.16.0_linux_x86_64.tgz

■コミュニティ版をダウンロード
https://community.jaspersoft.com/download
からJasperStudio 6.6をダウンロード

# tar xvzf TIB_js-studiocomm_6.6.0_linux_x86_64.tgz -C /opt
# cd /opt/TIB_js-studiocomm_6.6.0/dropins/eclipse/features/
# ls
org.eclipse.babel.nls_eclipse_it_4.2.0.v20130724060447

からベースeclipseバージョンを確認。

http://www.eclipse.org/babel/downloads.php

Other downloads
Developer and Nightly Buildscd 
Eclipse Babel Project Archived Downloads
Babel Server weekly mysqldump
Eclipse Platform R-3.5 English .properties files
Eclipse Platform R-3.4 English .properties files
Eclipse Platform R-3.3.1 English .properties files
Babel Language Pack Zips and Update Sites - R0.11.0 (2013/07/24)
Babel Language Pack Zips
Kepler | Juno | Indigo
Babel Language Pack Update Site for Kepler
http://archive.eclipse.org/technology/babel/update-site/R0.11.0/kepler
Ζipped p2 repository for Kepler (110 MB)
Babel Language Pack Update Site for Juno
http://archive.eclipse.org/technology/babel/update-site/R0.11.0/juno
Zipped p2 repository for Juno (144 MB)
Babel Language Pack Update Site for Indigo
http://archive.eclipse.org/technology/babel/update-site/R0.11.0/indigo
Zipped p2 repository for Indigo (138 MB)
Babel Orion Language Packs

言語:日本語
BabelLanguagePack-birt-ja_4.2.0.v20130724060447.zip(89.32%)
BabelLanguagePack-datatools-ja_4.2.0.v20130724060447.zip(91.53%)
BabelLanguagePack-eclipse-ja_4.2.0.v20130724060447.zip(95.65%)
言語パックを展開し、"features","plugins"を"doropins/babel"に配置

# mkdir /opt/BabelLanguagePack-eclipse-ja_4.2.0.v20130724060447
# unzip BabelLanguagePack-eclipse-ja_4.2.0.v20130724060447.zip -d   /opt/BabelLanguagePack-eclipse-ja_4.2.0.v20130724060447
# mkdir /opt/TIB_js-studiocomm_6.6.0/dropins/babel
# cd /opt/TIB_js-studiocomm_6.6.0/dropins/babel
# mv /opt/BabelLanguagePack-eclipse-ja_4.2.0.v20130724060447/eclipse/features .
# mv /opt/BabelLanguagePack-eclipse-ja_4.2.0.v20130724060447/eclipse/plugins .
# cd /opt
# ln -s "/opt/TIB_js-studiocomm_6.6.0/Jaspersoft Studio" jasperstudio
# ln -s /opt/jasperstudio /usr/local/bin/jasperstudio

これで、日本語化OK。

ついでにviプラグインをインストール
help->install new Software
http://vrapper.sourceforge.net/update-site/stable/


■プロジェクト作成&DataAdapter(DB)
1) file->new->project->JasperReports Project->testProject
2) testProject->new->Jasper Report->Blank_A4
3) testProject->new->Data Adaper->Database JDBC Connection
   adapterName
   MYSQL(com.mysql.jdbc.Driver)
   jdbc:mysql://localhost/database name
   root
   password
4) Driver Classpath
   /保存場所/mysql-connector-java-5.1.47-bin.jar
5) testで接続確認
6)outline->Blank_A4->Dataset and Query
   アダプタ名
   データベース/テーブル選択->select * from database.table名 join database.table2 using( field )->Read Fields
7) Blank_A4.jrxml選択->Text Field配置->Fields->field名
8)fx Variables->create Variable
   Name = sum
   Value Class Name = java.lang.Integer
   Calculation = Sum
   Expression = データベースフィールド名(sum対象)

■プロジェクト作成&DataAdapter(JSON)
1) file->new->project->JasperReports Project->Customers
2) Customers->new->Jasper Report->Blank_A4
     Data Adapter Language:jsonql
     Customers->new->Data Adapter->JSON File
     Customer_Rows/URL/Use the report JSON expression when filling the report



■サンプルDB
create database 伝票明細;
use 伝票明細
create table 伝票(
伝票番号 varchar(8) not null comment "伝票番号",
支払合計 int(10) not null comment "支払合計");

create table 商品情報(
伝票番号 varchar(8) not null comment "伝票番号",
商品コード varchar(16) not null comment "商品コード",
数量  varchar(24) not null comment "数量");

create table 支払情報(
伝票番号 varchar(8) not null comment "伝票番号",
金種 int(2) not null comment "金種",
支払金額 int(10) not null comment "支払金額");

create table 商品マスター(
商品コード varchar(16) not null comment "商品コード",
商品名 varchar(24) not null comment "商品名",
単価 int(10) not null comment "単価");

insert into 伝票
(伝票番号, 支払合計) values
(00000001,1000),
(00000002,1200),
(00000003,1600),
(00000004,1000);

insert into 支払情報
(伝票番号, 金種, 支払金額) values
(00000001, 1, 1000),
(00000002, 2, 2000),
(00000003, 3, 3000);

insert into 商品情報
(伝票番号, 商品コード, 数量 ) values
(00000001, 0000000000000200, 3),
(00000001, 0000000000000300, 4),
(00000002, 0000000000000300, 5),
(00000003, 0000000000000400, 6);

insert into 商品マスター
(商品コード,商品名,単価) values
(0000000000000100,"りんご",200),
(0000000000000200,"みかん",300),
(0000000000000300,"バナナ",400),
(0000000000000400,"すいか",500);

create view view_table( 伝票番号, 支払合計, 商品コード, 商品名, 単価, 数量, 定価, 金種, 支払金額, 値引額 )
as  select
       伝票.伝票番号 as 伝票番号,
       伝票.支払合計 as 支払合計,
       商品情報.商品コード as 商品コード,
       商品マスター.商品名 as 商品名,
       商品マスター.単価 as 単価,
       商品情報.数量 as 数量,
       単価 * 数量 as 定価,
       支払情報.金種 as 金種,
       支払情報.支払金額 as 支払金額,
       (単価 * 数量) - 支払情報.支払金額 as 値引額
     from 伝票
     join 商品情報 on (伝票.伝票番号=商品情報.伝票番号 )
left join 支払情報 on (伝票.伝票番号=支払情報.伝票番号 )
left join 商品マスター  on (商品情報.商品コード=商品マスター.商品コード);

select * from view_table;

select 伝票番号 , 支払合計, 商品情報.商品コード as 商品コード, 商品情報.数量 as 数量  from 伝票     join 商品情報 using( 伝票番号 ) where 伝票番号="1";


mysql> select column_name, column_comment from information_schema.columns where table_name='伝票';
+--------------+----------------+
| COLUMN_NAME  | COLUMN_COMMENT |
+--------------+----------------+
| 伝票番号     | 伝票番号       |
| 支払合計     | 支払合計       |
+--------------+----------------+
2 rows in set (0.00 sec)

----------------------------------------------

create database test;
use test
create table test.check(
id varchar(8) not null comment "伝票番号",
total int(10) not null comment "金額");

create table test.item_info(
id varchar(8) not null comment "伝票番号",
code varchar(16) not null comment "商品コード",
qty  varchar(24) not null comment "数量");

create table test.paid_info(
id varchar(8) not null comment "伝票番号",
kind int(2) not null comment "金種",
amt int(10) not null comment "金額");

create table test.plu_mast(
code varchar(16) not null comment "商品コード",
name varchar(24) not null comment "商品名",
price int(10) not null comment "金額");


insert into test.check
(id, total) values
(00000001,1000),
(00000002,1200),
(00000003,1600),
(00000004,1000);

insert into test.paid_info
(id, kind, amt) values
(00000001, 1, 1000),
(00000002, 2, 2000),
(00000003, 3, 3000);

insert into test.item_info
(id, code, qty ) values
(00000001, 0000000000000200, 3),
(00000001, 0000000000000300, 4),
(00000002, 0000000000000300, 5),
(00000003, 0000000000000400, 6);

insert into test.plu_mast
(code,name,price) values
(0000000000000100,"りんご",200),
(0000000000000200,"みかん",300),
(0000000000000300,"バナナ",400),
(0000000000000400,"すいか",500);

select id , total, item_info.code as code, item_info.qty as qty  from test.check     join test.item_info using( id ) where id="1";
             
select check.id as id,
       check.total as total,
       item_info.code as code,
       plu_mast.name as name,
       plu_mast.price as price,
       item_info.qty as qty,
       price * qty as teika,
       paid_info.kind as kind,
       paid_info.amt as shiharai,
       (price * qty) - paid_info.amt as nebiki
     from test.check   
     join test.item_info on (check.id=item_info.id )
left join test.paid_info on (check.id=paid_info.id )
left join test.plu_mast  on (item_info.code=plu_mast.code);

create view view_table( id, total, code, name, price, qty, teika, kind, shiharai, nebiki )
as  select check.id as id,
       check.total as total,
       item_info.code as code,
       plu_mast.name as name,
       plu_mast.price as price,
       item_info.qty as qty,
       price * qty as teika,
       paid_info.kind as kind,
       paid_info.amt as shiharai,
       (price * qty) - paid_info.amt as nebiki
     from test.check 
     join test.item_info on (check.id=item_info.id )
left join test.paid_info on (check.id=paid_info.id )
left join test.plu_mast  on (item_info.code=plu_mast.code);

select * from view_table;

■サンプル(見積書)

 <?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.6.0.final using JasperReports Library version 6.6.0  -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Blank_A4" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="85bb76b2-9fca-429d-9818-4f3c94e4a537">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="DataAdapter.xml"/>
<property name="com.jaspersoft.studio.data.sql.tables" value=""/>
<style name="Row" mode="Transparent">
<conditionalStyle>
<conditionExpression><![CDATA[$V{REPORT_COUNT}%2 == 0]]></conditionExpression>
<style backcolor="#E6DAC3"/>
</conditionalStyle>
</style>
<queryString>
<![CDATA[select * from  plumaster]]>
</queryString>
<field name="id" class="java.lang.Integer">
<property name="com.jaspersoft.studio.field.label" value="id"/>
<property name="com.jaspersoft.studio.field.tree.path" value="plumaster"/>
</field>
<field name="name" class="java.lang.String">
<property name="com.jaspersoft.studio.field.label" value="name"/>
<property name="com.jaspersoft.studio.field.tree.path" value="plumaster"/>
</field>
<field name="price" class="java.lang.Integer">
<property name="com.jaspersoft.studio.field.label" value="price"/>
<property name="com.jaspersoft.studio.field.tree.path" value="plumaster"/>
</field>
<variable name="sum" class="java.lang.Integer" calculation="Sum">
<variableExpression><![CDATA[$F{price}]]></variableExpression>
<initialValueExpression><![CDATA[0]]></initialValueExpression>
</variable>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="230" splitType="Stretch">
<staticText>
<reportElement x="190" y="23" width="180" height="30" uuid="b8f34608-86ab-4e09-9fe8-0579fe524724"/>
<box>
<bottomPen lineWidth="1.0" lineColor="#CC9966"/>
</box>
<textElement textAlignment="Center">
<font size="22"/>
</textElement>
<text><![CDATA[御見積書]]></text>
</staticText>
<staticText>
<reportElement x="407" y="63" width="50" height="16" uuid="47f7a7cc-d80e-4409-ab28-80ea7d131a63"/>
<box>
<pen lineColor="#CC9966"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8"/>
</textElement>
<text><![CDATA[見積書番号]]></text>
</staticText>
<staticText>
<reportElement x="407" y="79" width="50" height="16" uuid="e9c62715-f5b2-46ce-9c21-426dd8832be9"/>
<box>
<pen lineColor="#CC9966"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8"/>
</textElement>
<text><![CDATA[見積書日]]></text>
</staticText>
<staticText>
<reportElement x="457" y="79" width="94" height="16" uuid="249cf104-b7b1-4f3f-b948-e7e0c35b6829"/>
<box>
<pen lineColor="#CC9966"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8"/>
</textElement>
<text><![CDATA[2018年12月6日]]></text>
</staticText>
<staticText>
<reportElement x="457" y="63" width="94" height="16" uuid="b7c76a46-2bcb-4c06-849f-0f509b0905e2"/>
<box>
<pen lineColor="#CC9966"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8"/>
</textElement>
<text><![CDATA[No.1234567890]]></text>
</staticText>
<staticText>
<reportElement x="406" y="140" width="146" height="16" uuid="bf7ce692-b2ce-4457-b099-464bd5cf2fe4"/>
<box>
<pen lineColor="#CC9966"/>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="10"/>
</textElement>
<text><![CDATA[東京都渋谷区初台1ー46ー3]]></text>
</staticText>
<staticText>
<reportElement x="406" y="123" width="50" height="16" uuid="debe3ab5-6415-4bff-885d-b0b685bb8847"/>
<box>
<pen lineColor="#CC9966"/>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Bottom">
<font size="9"/>
</textElement>
<text><![CDATA[〒151-0061]]></text>
</staticText>
<staticText>
<reportElement x="406" y="156" width="146" height="16" uuid="8f8540dd-2b07-47a7-9496-e87b95ff323b"/>
<box>
<pen lineColor="#CC9966"/>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="10"/>
</textElement>
<text><![CDATA[シモモトビル10F]]></text>
</staticText>
<staticText>
<reportElement x="406" y="173" width="146" height="16" uuid="3c8a4b03-9479-494b-82fd-4d0bb4e335a3"/>
<box>
<pen lineColor="#CC9966"/>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="8"/>
</textElement>
<text><![CDATA[TEL 03-5302-3760 FAX 03-5371-1592]]></text>
</staticText>
<staticText>
<reportElement x="406" y="107" width="124" height="16" uuid="f3be2acc-5696-4fa7-b4bb-5ee494928700"/>
<box>
<pen lineColor="#CC9966"/>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="10"/>
</textElement>
<text><![CDATA[株式会社 CXDネクスト]]></text>
</staticText>
<staticText>
<reportElement x="0" y="37" width="70" height="16" uuid="1d54e096-dc80-40b7-9aa1-2df5f1670a08"/>
<box>
<pen lineColor="#CC9966"/>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="12"/>
</textElement>
<text><![CDATA[〒151-0061]]></text>
</staticText>
<staticText>
<reportElement x="0" y="54" width="146" height="16" uuid="fdfc9959-2806-4681-a127-ff116a2a712b"/>
<box>
<pen lineColor="#CC9966"/>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="12"/>
</textElement>
<text><![CDATA[東京都渋谷区初台1ー46ー3]]></text>
</staticText>
<staticText>
<reportElement x="0" y="72" width="146" height="16" uuid="e7fd1187-7f25-43a5-99bc-78ddac2be130"/>
<box>
<pen lineColor="#CC9966"/>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="12"/>
</textElement>
<text><![CDATA[シモモトビル10F]]></text>
</staticText>
<staticText>
<reportElement x="0" y="89" width="145" height="20" uuid="8c481223-65bd-44f7-9861-1157e3047e1f"/>
<box>
<pen lineColor="#CC9966"/>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="14"/>
</textElement>
<text><![CDATA[株式会社 CXDネクスト]]></text>
</staticText>
<staticText>
<reportElement x="148" y="93" width="60" height="16" uuid="89f27720-0b96-4de1-9364-942733838c6c"/>
<box>
<pen lineColor="#CC9966"/>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="12"/>
</textElement>
<text><![CDATA[御中]]></text>
</staticText>
<staticText>
<reportElement x="1" y="132" width="230" height="16" uuid="73642428-67dc-4ddf-9c63-8dc0872356d8"/>
<box>
<pen lineColor="#CC9966"/>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="12"/>
</textElement>
<text><![CDATA[下記のとおり、御見積申し上げます。]]></text>
</staticText>
</band>
</title>
<pageHeader>
<band height="29" splitType="Stretch">
<staticText>
<reportElement x="0" y="-74" width="80" height="18" uuid="badfce99-c78e-4a4b-a6b1-ff3952d8e4eb"/>
<box>
<pen lineColor="#CC9966"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="12"/>
</textElement>
<text><![CDATA[合計金額]]></text>
</staticText>
<textField>
<reportElement x="80" y="-74" width="120" height="18" uuid="ce31f9b6-b555-42e5-988a-2ed7d7e0d993"/>
<box>
<pen lineColor="#CC9966"/>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#CC9966"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#CC9966"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="14"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="-55" width="80" height="18" uuid="c930972f-6756-4e27-ba40-97363aff3113"/>
<box>
<pen lineColor="#CC9966"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="12"/>
</textElement>
<text><![CDATA[支払条件]]></text>
</staticText>
<staticText>
<reportElement x="0" y="-37" width="80" height="18" uuid="fcf2d64d-b38a-4417-bb2f-99c05548055b"/>
<box>
<pen lineColor="#CC9966"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="12"/>
</textElement>
<text><![CDATA[有効期間]]></text>
</staticText>
<staticText>
<reportElement x="80" y="-55" width="120" height="18" uuid="d746403a-7c12-4ad2-b58d-6dda5a167e20"/>
<box>
<pen lineColor="#CC9966"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="12"/>
</textElement>
<text><![CDATA[月末締め翌月末払い]]></text>
</staticText>
<staticText>
<reportElement x="80" y="-37" width="120" height="18" uuid="63894a47-08ef-4793-aa70-e9707ede3606"/>
<box>
<pen lineColor="#CC9966"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="12"/>
</textElement>
<text><![CDATA[見積後一ヶ月]]></text>
</staticText>
</band>
</pageHeader>
<columnHeader>
<band height="16" splitType="Stretch">
<staticText>
<reportElement x="0" y="0" width="100" height="16" uuid="06e096d3-211d-4499-a52d-ac730ed416d0"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<text><![CDATA[番号]]></text>
</staticText>
<staticText>
<reportElement x="100" y="0" width="130" height="16" uuid="8903f234-cbcb-42b8-9d33-9393d44c12bc"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<text><![CDATA[商品コード]]></text>
</staticText>
<staticText>
<reportElement x="231" y="0" width="130" height="16" uuid="712e15fa-ebcc-4ca6-8a7c-3cfa9eb7e10e"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<text><![CDATA[商品名]]></text>
</staticText>
<staticText>
<reportElement x="360" y="0" width="170" height="16" uuid="9e92e40a-5d0b-40a3-b231-b109ad6e22f7"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<text><![CDATA[金額]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="20" splitType="Stretch">
<frame>
<reportElement style="Row" mode="Opaque" x="0" y="0" width="550" height="20" uuid="fa7cec56-4ec1-48e6-a26e-7266a995d174"/>
<box>
<pen lineColor="#CC9966"/>
<topPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
</box>
</frame>
<textField>
<reportElement x="0" y="0" width="100" height="16" uuid="b2ca6b23-5bd6-44b6-b8a1-424e3d9ab122"/>
<box>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$V{REPORT_COUNT}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="100" y="0" width="130" height="16" uuid="5d2b0aee-6d36-4ccb-845c-4da19e2b9a43"/>
<box>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{id}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="230" y="0" width="130" height="16" uuid="b6301163-1d67-423b-bf88-5ff7b521493d"/>
<box>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{name}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="360" y="0" width="170" height="16" uuid="b383cbaa-67f0-40e8-b5e5-d0085700866e"/>
<box>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{price}]]></textFieldExpression>
</textField>
</band>
</detail>
<columnFooter>
<band height="45" splitType="Stretch"/>
</columnFooter>
<pageFooter>
<band height="54" splitType="Stretch">
<textField pattern="#,##0.###円">
<reportElement x="440" y="0" width="90" height="30" uuid="180a0589-e4b1-493c-b7ae-71f4a575fef5"/>
<box>
<pen lineColor="#CC9966"/>
<bottomPen lineWidth="1.0"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="18"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="360" y="1" width="80" height="29" uuid="f5a8dbb2-f468-4ad6-ae60-230936f9780e"/>
<box>
<pen lineColor="#CC9966"/>
<bottomPen lineWidth="1.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="18"/>
</textElement>
<text><![CDATA[累計]]></text>
</staticText>
</band>
</pageFooter>
<summary>
<band height="42" splitType="Stretch"/>
</summary>
</jasperReport>

 

   

2018年11月20日火曜日

VMware動かない。 Could not open /dev/vmmon

Could not open /dev/vmmon: ??????????????????????.
Please make sure that the kernel module `vmmon' is loaded.

# vmware-modconfig --console --build-mod vmmon
# vmware-modconfig --console --build-mod vmnet
# vmware-modconfig --console --build-mod vmci

# modprobe vmmon
# modprobe vmnet
# modprobe vmci
# service vmware restart

# modprobe vmmon
modprobe: ERROR: could not insert 'vmmon': Required key not available
# modprobe vmnet
modprobe: ERROR: could not insert 'vmnet': Required key not available
# modprobe vmci
modprobe: FATAL: Module vmci not found.
#
エラー発生。
Secure Boot keysをclearする。
BIOS
Secure Boot Configuration
Confiure Legacy Support and Secure Boot Legacy Support Enable and Secure Boot Disable
Secure Boot Key Management
□Import Custom sercure Boot keys
■Clear Secure Boot keys
□Reset Secure Boot keys to factory defaults
□Enable MS UEFI CA key









シャットダウン時の後処理 (shutdown)

# vi /etc/systemd/system/drop.service [Unit] Description= stop httpgwd DefaultDependencies=no Before=shutdown.target RefuseManualStart=true ...