Open source logistics system library openboxes first play

Due to the needs of a project, a medical logistics system was developed, and an open source one was found on it, so I tried to deploy it.

The original
https://openboxes.com/configuration
document
http://docs.openboxes.com/en/latest/installation/ubuntu/language

groovy
framework grails spring hibernate
development required java sdkman grails groovy eclipse mysql tomcat

database scripts are all in In the code, and then reversely generated in the DB

My environment
OS: mac pro os10.9
JVM: jdk1.6 1.7 1.8 (1.7 is recommended, 1.8 will report a getat() nullpointer error)
DB: mysql 5.6
server: tomcat7. x


configuration JAVA_HOME These are not to say. Let’s talk about some pitfalls in deployment.

1 getat() nullpointer
  switch to 1.7, add a setenv.sh to the bin folder of your tomcat and add the following:
  JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk /Contents/Home
   The path is to make sure to go to the level above the level where you see the bin folder, for example mine is /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin


2 can not connect smtp server, not running on port 25
http://ycljf86.iteye.com/admin/blogs/2313834
Start your mac's smtp service, see my article

3 openboxes-config.properties I can't find
  this most pitiful, the official document is copied to tomcat/.grails/openboxes-config.properties, but when it started, he went to the classpath and var/root/.grails to find it, and he couldn't find it. Then I tried to add it in var/root, but it didn't give I added a file, and suddenly had an idea, and added this file under the lib of tomcat, because lib is a classpath with a higher priority of tomcat, so he can find the configuration file through the classpath

4 outofmemory
is in the bin folder of your tomcat , add a setenv.sh and add the following, then restart
CATALINA_OPTS="-Xms512m -Xmx512m -XX:MaxPermSize=256m" After the

above four tossing, the deployment is almost complete.

Next, I plan to start configuring the development environment




Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326508577&siteId=291194637