Can't convert docx to pdf in oracle weblogic - documents4j

I try to convert docx to pdf using documents4j. At first, I try it on my local pc and it works perfectly. But when I upload it in weblogic, it says this error
com.documents4j.conversion.msoffice.MicrosoftWordBridge : Unable to run script: /tmp/1485771859333-0/word_start103185801.vbs java.io.IOException: Could not execute [cmd, /S, /C, ""/tmp/1485771859333-0/word_start103185801.vbs""] in /tmp/1485771859333-0.

This can mean different things:
The .NET runtime is not installed on the Weblogic server.
You do not have rights to execute scripts via .NET on this server.
documents4j is a Java library but binds .NET commands and needs an MS Word installation. Also, make sure that you completed any MS Word Wizard that can appear right after installation of a new copy.

Related

PHP 5.2 (win.server) can't connect to Oracle 12c db

I have difficult question.
On win.server i have PHP 5.2 version. I must connect on Oracle 12c db. Procedure that i do is:
download oracle client 12.2
enable php_oci8.dll
insert PATH to
C:\Windows\SysWOW64\instantclient_12_2
restart server
also i tried to insert php_oci8_12c.dll extension and put oci8_12c.dll file in php/ext directory.
When i true to run .bat file i see errors:
"Missing MSVCR120.ddl" - i resolve this with put this file in /php/ext dir.
"The procedure entry point gc_remove_zval_from_buffer could not be located in the dynamic link library php5ts.dll"
On my local pc i have php 5.6 and they work with 12c oracle.
On internet see that 5.2 version can work with 12c.
What is the potencial problem? What I can try?
OCI 12c requires PHP 5.5, see http://www.oracle.com/technetwork/articles/dsl/technote-php-instant-12c-2088811.html
You can try tho to install the Visual C++ Redistributable Package.
Because the MSVCR120.dll error can't be fixed by putting it in the ext folder.
When you use Apache and/or Console client, make sure you have enabled in both php.ini files, because they are different configurations.
You can also try the PECL OCI package from https://pecl.php.net/package/oci8
Make sure to pick the correct version, the most recent only works for PHP 7.
I finally managed to install it, with some miracle because i do like this much time...
Steps what i do is:
download instaclient12.2 (32bit)
install visual c++ redistributable 2013
put instaclient_12_2 in C:\Windows\SysWOW64\
insert PATH C:\Windows\SysWOW64\instantclient_12_2
download oci8_2.0.12 X64 TS and put php_oci8_12c.dll in php/ext
put oci.dll (from instantclient_12_2 (32bit)) in C:\Apache24\bin, C:\php\ext and C:\php
enable extension php_oci8_12c.dll ini php.ini
On servers was Windows server 2008 R1 and PHP 5.6.2 TS

TFS 2017 silent installation using Powershell

I am trying to install TSF 2017 by using silent installation powershell script. I am able to install it but its not installing properly. And its not creating any folders in program files. But its showing in control panel.
Below is the script which I am using now,
$Installer="D:\TeamFoundationServer2017_Update2\TfsServer2017.2.exe"
$Params=#("D:\TeamFoundationServer2017_Update2\ISO\tfsserver2017.2_enu.iso","/Q","/Full","/NoRestart","/NoWeb","/Passive","/ProductKey","/Layout=C:\Users\ul\Desktop\Test","/NoRefresh","/Log=Desktop\Logfile.txt")
& $Installer $Params
Is there anything I am missing out in $Params. Its calling exe file and executing it. In contorl panel I can able to see. But in program files its not coming. And its not installing also.
Please help me in this.
TfsServer2017.2.exe is a web installer, it will download TFS from VisualStudio.com and kick off the installation. However, the installation process itself simply gets TFS bits onto your machine. At the end of this process, the installer will launch the TFS Configuration Center.
Even select Basic scenario(This scenario is optimized for simplicity, using default options for most inputs), you will still need to choose and enter many configuration.
More details please refer: How to set up TFS on a single server
Besides, this is only suitable for a single server scenario, you could also install TFS under Dual server/ Multiple server configuration . Highly doubt this could be done through a single powershell script.
You could also have a look at this tutorial -- Team Foundation Server 2017 Installation Guide
If you just want to want to use PowerShell DSC resources to install configure a TFS build agent, please refer this code source in GitHub.

Cant install java 8 on window server by chef-solo

I use cookbooks from https://supermarket.chef.io/cookbooks/java
The code runs on Centos 6, but it doesn't run on windows server.
I get this ERROR
No download url set for java installer
URI::invalidURIError
bad URI(is not URI)
For Windows, you have to provide the Java installation file yourself, i.e. download the installer and put it somewhere locally. Then set node['java']['windows']['url'] to point to the file.
The documentation explains why this is necessary - basically there's no simple way to download the java msi programmatically from Oracle's website.

How can I use Microsoft installer (msi) to group JBoss and Postgres database and make an .exe file?

I'm completely new to Microsoft installer and have installed advinst.msi, and I'm wondering how to use it.
I have to group Jboss where my Java application is deployed and postgres database and want to create an .exe file and deploy it to clients windows system.
Where the client can run the .exe file and start the application.
The Jboss package you can add a as a prerequisite. This will make Advanced Installer to install it when you install your application, see the link from above.
To deploy a database you have two options. Either you execute an SQL script that creates and populates it, as in this SQL scripts execution tutorial, or you deploy directly the binary files of your database, by placing them in the target folder from Files and Folders page, as you do with a normal file. The second option will make your installer to copy the files into the desired folder upon installation, so you database manager/explorer can access it.
To have all this bundled into a single executable you need to go to Media page and set the package output type to "Single setup EXE". From there you can also customize the EXE name, icon and output folder.

Correct deployment tool to copy files & run SQL Script

What would be the best way to deploy upgrades to a piece of software with the following requirements:
The upgrade:
Must be run from a client machine, not a server.
Must Show a dialog to select a network location and copy files to a share.
Must show a dialog to enter SQL Server connection information and the upgrade must connect to SQL Server to run an upgrade script.
Must not change anything on the client machine from which the upgrade is run. (Nothing in Add/Remove programs, registry, etc. I.e. no Windows Installer.)
Must not rely on any additional dlls or frameworks. The user must be able to download a single file and run it from Windows XP SP2 without having to install anything else.
Some things I have looked into:
Batch files (can’t show a dialog to allow the user to enter connection information)
OSQL (can’t show a dialog and can’t copy files)
WiX (runs on top of Windows Installer so it puts things on the client machine from which it is run)
Custom C#/VB app (requires .NET framework)
Winzip/WinRAR (can't show a dialog, can’t run SQL Scripts)
If you don't want to rely on any dlls and frameworks, you should make a native app, this can be, for example, custom winrar sfx (you can run additional scripts after extraction, this can be a batch that executes sqlcmd).