Jboss 7 war deployment failed

Well I tried deleting the log file, it helped at the beginning but then I got the error again. The proper solution is as following: Go to Jboss_installation_dir\standalone\configuration and find the file standalone.xml. Change the following line: <subsystem xmlns=”urn:jboss:domain:deployment-scanner:1.0″> <deployment-scanner scan-interval=”5000″ relative-to=”jboss.server.base.dir” path=”deployments” /> </subsystem> into: <subsystem xmlns=”urn:jboss:domain:deployment-scanner:1.0″> <deployment-scanner scan-interval=”5000″ relative-to=”jboss.server.base.dir” path=”deployments” deployment-timeout=”1000″ /> </subsystem> … Read more

How do I include variables in my VagrantFile?

I use the approach of https://puphpet.com, I create a file config.yaml in the same directory of the Vagrantfile and… In my Vagrantfile: # encoding: utf-8 # -*- mode: ruby -*- # vi: set ft=ruby : require ‘yaml’ current_dir = File.dirname(File.expand_path(__FILE__)) configs = YAML.load_file(“#{current_dir}/config.yaml”) vagrant_config = configs[‘configs’][configs[‘configs’][‘use’]] Vagrant.configure(‘2’) do |config| config.vm.network ‘public_network’, ip: vagrant_config[‘public_ip’] … In … Read more

when to use fabric or ansible?

Does it make sense using both fabric and ansible tools somehow? Yes. All your logic should live in Ansible and you can use Fabric as a lightweight wrapper around it. fab deploy is easier to remember than, e.g. ansible-playbook -v –inventory=production –tags=app site.yml Is it possible to use ansible from my windows development environment to … Read more

How can I use git-archive to include submodules from a bare repository?

Based on answers and comments here. You can create non-bare repo and run: git ls-files –recurse-submodules | tar caf ../prog.tar.gz -T- To handle files starting with hypen, use –verbatim-files-from To put files in folder inside the archive, use –xform s:^:prog/: Full version: git ls-files –recurse-submodules | tar caf ../prog.tar.gz –xform s:^:prog/: –verbatim-files-from -T-

MSBuildExtensionsPath32 not set correctly?

MSBuildExtensionsPath32 is set internally by MSBuild. (BuildEngine.BuildPropertyGroup.SetExtensionsPathProperties) But you could override it by setting an environment variable. SET MSBuildExtensionsPath=”C:\Program Files\MSBuild” Or you could override the value in your project file : <PropertyGroup> <MSBuildExtensionsPath>C:\Users\madgnome\Desktop\msbuild</MSBuildExtensionsPath> <!– It works too with relative path –> <!–<MSBuildExtensionsPath>..\msbuild</MSBuildExtensionsPath>–> </PropertyGroup> <Import Project=”$(MSBuildBinPath)\Microsoft.CSharp.targets” /> <Import Project=”$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets” />

Can Nexus or Artifactory store simple tar.gz artifacts?

Both Artifactory and Nexus can handle any type of file, as they both are “Binary Repository Managers”. Albeit that, Nexus can technically store any file, but lacks support for binaries that do not adhere to the Maven repository layout. For example, such files will not be indexed and cannot be retrieved in searches; Also, if … Read more

Configure Tomcat to use properties file to load DB connection information

We often distribute webapps by providing a WAR, and a Context XML file, which gets placed into your tomcat/conf/Catalina/localhost directory, and can load the webapp from any path. There is a reference document here. This provides the following advantages: Context parameters can be configured here and read by the webapp DataSources can be defined and … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)