|
From: | Syan Tan |
Subject: | [Gnumed-devel] oscar fiddling |
Date: | Fri, 30 Jun 2006 08:43:21 +0800 |
after some fiddling , got the cvs oscar to work on my debian testing system.
used the tomcat5 package in debian, but using the sun jdk .
have to export the JAVA_HOME variable for the sun jdk base directory, as well
as prefix the PATH environment variable as well ( export PATH=$JAVA_HOME/bin:$PATH)
then can go to /usr/shar/tomcat5/bin and run sh catalina.sh debug
this starts catalina in debug mode , so can set breakpoints in java web apps.
copy oscar_mcmaster/build/ant to oscar_mcmaster directory ( this is the subdirectory under the cvs root directory)
and then doing ant here works straight forward,
then need to copy oscar_mcmaster/build/ war files to the /usr/shar/tomcat5/webapps/ directory,
then need to create a oscar_mcmaster mysql database and set the mysql password by doing
as root ( this is easiest), "mysqladmin create oscar_mcmaster" and "mysqladmin password 'rootpassword" "
finally copy oscar_mcmaster.properties as /root/oscar.properties, and make sure the dbname and dbpassword
properties match the database name and root password.
One problem was logging in , because the passwords are stored as StringBuffer.toString() conversions of byte arrays
created from MessageDigest.getInstance("sha") , which converts to some hyphenated number, which is then
stored in the password field of the oscar_mcmaster.security table .
Here's a little java program that reads in a line of text and gives such a conversion, then
you can do "update security set password = '<paste in the converted password> ' in mysql , so you
can login ( but still need to enter the 1117 pin number in the third field).
The WEB-INF/struts-config.xml file of oscar_mcmaster shows that action forwarding is based on the forward name
attribute , but it doesn't forward to a action.Do path, but directly to a jsp page, which
is a little slack, because then you have to go within the jsp page to work out what's happening, instead
of working out the flow from what's in the struts-config.xml file.
Password.java
Description: Binary data
[Prev in Thread] | Current Thread | [Next in Thread] |