How to install Client SDK and Informix server inside one VM? - informix

To be clear... My goal is to install Connection Manager and Informix Server inside one VM.
I installed Informix 14.10 and Informix Client SDK. Informix server is installed in /opt/ibm/infomix and Client SDKin /opt/ibm/csdk. The reason for this is, that when I installed both to /opt/ibm/informix, the Client SDK I installed later, overwrote some files installed by the Informix server which caused some issues with the server.
I found somewhere it is better to install them separately (in different locations).
Now I have a different issue. I set the INFORMIXDIR to /opt/ibm/informix, but then, when I try to start the oncmsm, I see the following error.
[informix#db21 ~]# oncmsm -h
Failed to load error messages, please check your INFORMIXDIR
I found, that this may be cause by the msgfile in the bin directory.
[informix#db21 csdk]$ export PATH=$PATH:/opt/ibm/csdk/bin/
[informix#db21 csdk]$ msgfile
/opt/ibm/informix/msg/en_us/0333/
[informix#db21 csdk]$ oncmsm -h
Failed to load error messages, please check your INFORMIXDIR
[informix#db21 csdk]$ /opt/ibm/csdk/bin/msgfile
[informix#db21 csdk]$ /opt/ibm/informix/bin/msgfile
/opt/ibm/informix/msg/en_us/0333/
[informix#db21 csdk]$ export INFORMIXDIR="/opt/ibm/informix"
[informix#db21 csdk]$ /opt/ibm/informix/bin/msgfile
/opt/ibm/informix/msg/en_us/0333/
[informix#db21 csdk]$ /opt/ibm/csdk/bin/msgfile
[informix#db21 csdk]$ export INFORMIXDIR="/opt/ibm/csdk"
[informix#db21 csdk]$ /opt/ibm/csdk/bin/msgfile
/opt/ibm/csdk/msg/en_us/0333/
[informix#db21 csdk]$ /opt/ibm/informix/bin/msgfile
/usr/informix/msg/english/
[informix#db21 csdk]$
It looks like it should work when I change the $INFORMIXDIR to the csdk folder, but then...
[informix#db21 csdk]$ onstat -
Unable to read $INFORMIXDIR (/usr/informix).
Regarding the documentation here, it should be possible to install both, Client SDK and Server under one user (informix).
Do you please know what is the issue here and how to make it works?

Informix version 14.10 was installed with SDK version 4.10. For v14.10 it is necessary to use Client SDK version 4.50.

Related

CruiseControl.NET Unable to find TF.exe and it was not defined in Executable Parameter

I have a machine with Win Server 2016 on which I have installed CruiseControl.NET 1.8.5.0.
No error during installation.
This is the project configuration I am using:
<project name="Mainbranch_Deploy" description="Mainbranch, deploy the latest version">
<triggers />
<sourcecontrol type="vsts" autoGetSource="true" applyLabel="false">
<server>http://tfs.hac.net:8080/tfs/defaultcollection</server>
<username>builder</username>
<password>XXX</password>
<domain>hac</domain>
<project>$/Hac.Services/Hac.Services.UserDirectory/MainBranch</project>
<workspace>MainBranch_Deploy</workspace>
<workingDirectory>D:\Builds\MainBranch_Deploy</workingDirectory>
<cleanCopy>false</cleanCopy>
<deleteWorkspace>false</deleteWorkspace>
</sourcecontrol>
<state type="state" />
<tasks>
<msbuild>
<workingDirectory>D:\Builds\MainBranch_Deploy\Hac.Services.UserDirectory\CC.NET VUDComplete</workingDirectory>
<executable>C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe</executable>
<projectFile>TFSBuild.proj</projectFile>
<buildArgs>/tv:14.0 /property:BuildType=%CCNetRequestSource% /p:Configuration=Release /v:n</buildArgs>
<targets>DeployVersion</targets>
<timeout>6000</timeout>
<environment>
<variable name="ArtifactsFolder" value = "CI" />
</environment>
</msbuild>
</tasks>
<publishers>
<xmllogger />
<artifactcleanup cleanUpMethod="KeepLastXBuilds" cleanUpValue="50" />
</publishers>
</project>
When I try to load the ccnet.config file in CCValidator.exe, I receive the following error:
CruiseControl.NET Unable to find TF.exe and it was not defined in Executable Parameter
I have added this to PATH C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE, so not sure what am I missing.
When I run the server this is the input I get:
C:\Program Files (x86)\CruiseControl.NET\server>ccnet.exe
CruiseControl.NET Server 1.8.5.0 -- .NET Continuous Integration Server
Copyright c 2003 - 2014 ThoughtWorks Inc. All Rights Reserved.
.NET Runtime Version: 2.0.50727.8745 Image Runtime Version: v2.0.50727
OS Version: Microsoft Windows NT 6.2.9200.0 Server locale: en-US
[1:DEBUG] The trace level is currently set to debug. This will cause CCNet to log at the most verbose level, which is useful for setting up or debugging the server. Once your server is running smoothly, we recommend changing this setting in C:\Program Files (x86)\CruiseControl.NET\server\ccnet.exe.Config to a lower level.
[1:WARN] ! ! Tracing is enabled ! !It allows you to sent the developpers of CCNet very detailed information of the program flow. This setting should only be enabled if you want to report a bug with the extra information. When bug reporting is done, it is advised to set the trace setting off. Adjust the setting in C:\Program Files (x86)\CruiseControl.NET\server\ccnet.exe.Config
[1:DEBUG] [FileChangedWatcher] Add config file 'ccnet.config' to file change watcher collection.
[CCNet Server:INFO] Reading configuration file "C:\Program Files (x86)\CruiseControl.NET\server\ccnet.config"
[CCNet Server:DEBUG] [FileChangedWatcher] Add config file 'C:\Program Files (x86)\CruiseControl.NET\server\ccnet.config' to file change watcher collection.
[CCNet Server:WARN] Configuration does not have any version information - assuming the configuration is for version 1.8
[CCNet Server:INFO] Log cache time set to 5 minutes
[CCNet Server:INFO] Registered channel: tcp
[CCNet Server:INFO] CruiseManager: Listening on url: tcp://10.3.3.136:21234/CruiseManager.rem
[CCNet Server:INFO] Registered channel: tcp
[CCNet Server:INFO] CruiseServerClient: Listening on url: tcp://10.3.3.136:21234/CruiseServerClient.rem
[CCNet Server:INFO] Starting CruiseControl.NET Server
[CCNet Server:INFO] Initialising security
[Mainbranch_Deploy:INFO] Starting integrator for project: Mainbranch_Deploy
[8:INFO] Disconnecting remote server:
[8:INFO] Unregistering channel: tcp
[8:INFO] Aborting CruiseControl.NET Server
[8:INFO] Aborting integrator for project: Mainbranch_Deploy
[8:INFO] WaitForExit requested for non stopping project 'Mainbranch_Deploy' - stopping project
[8:INFO] Stopping integrator for project: Mainbranch_Deploy
[Mainbranch_Deploy:INFO] Integrator for project: Mainbranch_Deploy is now stopped.
Any idea how to fix this?
It does not find it by default, that is true,
but as CCValidator points out, adding the executable element will fix it.
add following element in the source control block :
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\tf.exe
than it will work
It seems that version 1.8.5 does not include support for VS2015.
https://github.com/ccnet/CruiseControl.NET/blob/master/project/core/sourcecontrol/Vsts.cs

Structr - neo4j

I tried to install Structr- Neo4j and after I used these commands:
C:\Users\IEUser>cd structr-ui-2.0-SNAPSHOT-201603301445.5616c
C:\Users\IEUser\structr-ui-2.0-SNAPSHOT-201603301445.5616c>jar xvf structr-ui-2.0-SNAPSHOT-201603301445.5616c.jar structr
java -cp lib/*;structr-ui-2.0-SNAPSHOT-201603301445.5616c.jar org.structr.Server
and I've got this error :
INFO: Running in asynchronous mode
java.lang.NoClassDefFoundError: Could not initialize class org.structr.schema.compiler.NodeExtender
at org.structr.rest.service.StructrHttpServiceConfig.loadClass(StructrHttpServiceConfig.java:152)
at org.structr.rest.service.StructrHttpServiceConfig.initializeFromProperties(StructrHttpServiceConfig.java:87)
at org.structr.rest.service.HttpService.collectServlets(HttpService.java:608)
at org.structr.rest.service.HttpService.initialize(HttpService.java:400)
at org.structr.core.Services.createService(Services.java:552)
at org.structr.core.Services.initialize(Services.java:327)
at org.structr.core.Services.initialize(Services.java:299)
at org.structr.core.Services.getInstance(Services.java:147)
at org.structr.Server.main(Server.java:36)
Feb 14, 2017 4:25:52 PM org.structr.core.Services createService
SEVERE: Vital service HttpService failed to start: Could not initialize class org.structr.schema.compiler.NodeExtender. Aborting
Could someone help me? Thanks.
It looks like you are running Structr using JRE instead of JDK. Structr needs JDK to dynamically compile classes.
Please refer to the documentation for further details on setting up JDK for Structr.

mvn archetype:create SHA-256 MessageDigest not available

This is my first time to try maven. My os in linuxmint.I have install maven successful.
mvn -v
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:47+08:00)
Maven home: /home/gzx/danale/environment/apache-maven-3.3.9
Java version: 1.8.0_111, vendor: Oracle Corporation
Java home: /usr/java/jdk1.8.0_111/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-53-generic", arch: "amd64", family: "unix"
But when I have used mvn archetype:create
mvn archetype:create -DgroupId=org.sonatype.mavenbook.ch03 -DartifactId=simple -DpackageName=org.sonatype.mavenbook
it showed a strange error.
[WARNING] Error injecting: org.sonatype.plexus.components.cipher.DefaultPlexusCipher
com.google.inject.ProvisionException: Unable to provision, see the following errors:Error injecting constructor, org.sonatype.plexus.components.cipher.PlexusCipherException: java.security.NoSuchAlgorithmException: SHA-256 MessageDigest not available
at org.sonatype.plexus.components.cipher.DefaultPlexusCipher.(Unknown Source)
while locating org.sonatype.plexus.components.cipher.DefaultPlexusCipher
It was so strange, how should I do?
I think maybe you have already figured your problem. But I got this bug yesterday and I fixed it today. I should write my solution down. Maybe someone will fall this trap.
Actually this problem is because Java cannot find the class "SHA-256 MessageDigest". But it is provided by JRE default. It should be found automatically.
If you access your JAVA_HOME, you may find a file whose name is jsse.pack in JAVA_HOME/jre/lib, and there is not a file named jsse.jar. That is the problem. Type
unpack200 jsse.pack jsse.jar
(unpack200 will be recognized as soon as you have set your Java path)
and the problem should be soloved.
Note:
Some JDK's have jsse.rar not jsse.pack, therefore, running "unpack200 jsse.rar jsse.jar" command will get the desired result, and will not delete the "jsse.rar" file (in case of *.pack files, they get replaced by the *.jar files).

Getting error in GGTS for create a new project for Grails

When I am trying to create a new Grails project getting the following error:
Grails: 3.0.9
Jdk: 1.8
Command terminated with an exception: java.lang.Exception (see details for partial output)
Command: C:\Program Files\Java\jdk1.8.0_65\bin\javaw.exe (11-Nov-2015 11:43:39 am)
---- System.out ----
---- System.err ----
Error: Could not find or load main class org.codehaus.groovy.grails.cli.support.GrailsStarter
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
------System.out:-----------
------System.err:-----------
Error: Could not find or load main class org.codehaus.groovy.grails.cli.support.GrailsStarter
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Please help me to get the solution for this.
Thanks
It seems you are running the project (or create) as a Java project instead of Grails project, cause it is trying to execute de Main java class

Can't get neo4j to start - conf/log4j.properties

I've just used homebrew to successfully install the latest neo4j (Community Edition 2.1.4) on my MacBook Pro - however, I've been unable to get the server to start.
My question seems similar to this though that question remains unresolved (and the suggestions haven't worked for me).
Just quickly: I have previously successfully installed and booted the trial of the Enterprise Edition (over a year ago) and I've since removed it. Pure speculation but I'm guessing that my issues could be related to this.
When I run neo4j start
I get
Using additional JVM arguments: -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Dneo4j.ext.udc.source=homebrew -Djava.awt.headless=true
Starting Neo4j Server...WARNING: not changing user
process [1368]... waiting for server to be ready.. Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.
Then I inspect with neo4j console and get
WARNING: Max 256 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
Starting Neo4j Server console-mode...
Using additional JVM arguments: -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Dneo4j.ext.udc.source=homebrew -Djava.awt.headless=true
log4j:ERROR Could not read configuration file from URL [file:conf/log4j.properties].
java.io.FileNotFoundException: conf/log4j.properties (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:146)
at java.io.FileInputStream.<init>(FileInputStream.java:101)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
at java.net.URL.openStream(URL.java:1037)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:459)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:125)
at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:243)
at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:156)
at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
at org.apache.commons.configuration.AbstractFileConfiguration.<init>(AbstractFileConfiguration.java:121)
at org.apache.commons.configuration.AbstractFileConfiguration.<init>(AbstractFileConfiguration.java:154)
at org.apache.commons.configuration.PropertiesConfiguration.<init>(PropertiesConfiguration.java:252)
at org.neo4j.server.configuration.PropertyFileConfigurator.loadPropertiesConfig(PropertyFileConfigurator.java:147)
at org.neo4j.server.configuration.PropertyFileConfigurator.<init>(PropertyFileConfigurator.java:67)
at org.neo4j.server.Bootstrapper.createConfigurator(Bootstrapper.java:220)
at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:98)
at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:62)
log4j:ERROR Ignoring configuration file [file:conf/log4j.properties].
Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
at org.apache.commons.logging.impl.SLF4JLocationAwareLog.debug(SLF4JLocationAwareLog.java:133)
at org.apache.commons.configuration.ConfigurationUtils.locate(ConfigurationUtils.java:447)
at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:213)
at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:197)
at org.apache.commons.configuration.AbstractFileConfiguration.<init>(AbstractFileConfiguration.java:162)
at org.apache.commons.configuration.PropertiesConfiguration.<init>(PropertiesConfiguration.java:252)
at org.neo4j.server.configuration.PropertyFileConfigurator.loadPropertiesConfig(PropertyFileConfigurator.java:147)
at org.neo4j.server.configuration.PropertyFileConfigurator.<init>(PropertyFileConfigurator.java:67)
at org.neo4j.server.Bootstrapper.createConfigurator(Bootstrapper.java:220)
at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:98)
at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:62)
It seems conf/log4j.properties isn't created at all. I've then copied the contents of that file from my brothers successful installation which seems to remedy the first error though the second error persists with the same result when I try to start the server again.
I've also tried to install via direct download and get the same result.
Other details:
>> java -version
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
>> sw_vers
ProductName: Mac OS X
ProductVersion: 10.9.4
BuildVersion: 13E28
I'm aware of the Max open files warning though don't believe that to be the issue.
Help would be much appreciated. Thanks in advance.
I've had some success – or, at least, I've got neo4j working now on my machine.
Following the suggestion in this google thread I removed slf4j-api-1.5.8.jar and slf4j-log4j12-1.5.8.jar from /Library/Java/Extensions and the server now boots.
I have no idea if this will have unexpected negative consequences but it definitely seems to solve my problem. Moving on.

Resources