Posts

Showing posts from 2020

wsdl2java - undefined element declaration 's:schema'

  Recently I got a third party generated wsdl, and when I try to use  wsdl2java   cxf-codegen-plugin  in maven eclipse it shows the below error in the wsdl: undefined element declaration 's:schema' After some googling it seems to be a common issue with JAXB and WSDL. Here is the problematic part of the WSDL: <s:element minOccurs="0" maxOccurs="1" name="GetQuoteDataSetResult"> <s:complexType> <s:sequence> <s:element ref="s:schema"/> <s:any/> </s:sequence> </s:complexType> </s:element> The easier solution seems to be to download the WSDL and modify the schema in order to generate the stub. Here is what I did to the WSDL as per the suggestion: <s:element minOccurs="0" maxOccurs="1" name="GetQuoteDataSetResult"> <s:complexType> <s:sequence> <!-- s:element ref="s:schema...
Tomcat server  1.        Set autoDeploy = false.  This will apply to the /conf/server.xml a.        This addresses an issue where if autoDeploy=true, and there is a failed deploy, DS files get deleted, and prevents hot deploys if war file is prestaged. 2.        Add XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath= java options. This will apply to /home/tomcat/<JVM_NAME/bin/setenv.sh a.        Produce heapdumps realtime, instead of manually after the fact. 3.        Remove -verbose:gc java option a.        logs duplicate gc logs in Catalina.out Tomcat server needs to restart to effect the above changes.

Enable/Disable triggers in mysql

Image
Disable Triggers in MySQL 5.0 Information about triggers in MySQL 5.0 you can find here: MySQL 5.0 New Features: Triggers MySQL 5.0 Reference Manual :: 18 Stored Programs and Views :: 18.3 Using Triggers It is not possible to temporary disable triggers in MySQL 5.0. But there are several tricks: drop/create triggers drop triggers do anything you need (import, update, etc) create triggers Use global variable each trigger should check this variable in its code beginning set global variable to 1 (or other NOT NULL value) to disable triggers do anything you need (import, update, etc) set global variable to NULL to enable triggers global variable IS NULL by default see sample below: schema: script: CREATE TABLE `users` ( `id` int (10) unsigned NOT NULL auto_increment, `name` varchar (45) NOT NULL , PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `properties` ( `userid` int (10) unsigned NOT NULL , `updated` ...