java jsp jdbc mysql

페이지 정보

작성자 조희승 댓글 0건 조회 11,112회 작성일 14-04-14 20:43

본문

java

http://marksman.wordpress.com/2009/03/01/setting-up-mysqljdbc-driver-on-ubuntu/

sudo apt-get install libmysql-java

export CLASSPATH=$CLASSPATH:/usr/share/java/mysql-connector-java.jar


 

jsp

https://scottlinux.com/2014/02/20/tomcat-on-debian-and-ubuntu-linux-fix-broken-com-mysql-jdbc-driver-connection/

apt-get install tomcat7 tomcat7-admin libmysql-java

edit /etc/tomcat7/catalina.properties.

Add /usr/share/java/*.jar
common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,/var/lib/tomcat7/common/classes,/var/lib/tomcat7/common/*.jar,/usr/share/java/*.jar
server.loader=/var/lib/tomcat7/server/classes,/var/lib/tomcat7/server/*.jar,/usr/share/java/*.jar
shared.loader=/var/lib/tomcat7/shared/classes,/var/lib/tomcat7/shared/*.jar,/usr/share/java/*.jar



root directory 변경

/etc/tomcat7/server.xml 수정. context 추가.

      <Host name="localhost"  appBase="webapps" unpackWARs="true" autoDeploy="true">
          <Context path="" docBase="/XXX/YYY" reloadable="false" > </Context>

댓글목록

등록된 댓글이 없습니다.