CVEBrowser - a search engine for the Mitre CVE dictionary. | ||
---|---|---|
<<< Previous | Installation | Next >>> |
You will need to install the search engine on a machine that has Jakarta or similar Servlet container installed.
This manual will asume that you are using Tomcat 5.0 or better.
bash# rpm -ihv $RPMDIR/cvebrowser-web-1.0-0.noarch.rpm Preparing... ########################################### [100%] 1:cvebrowser-web ########################################### [100%] |
After installing the RPM, you will have a 'war' file that can be deployed to your servlet container:
[root@localhost root]#ls /opt/cvebrowser/war/ cvebrowser.war [root@localhost root]# |
Then follow the instructions about how to deploy a web app, as they appear here:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager-howto.html
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html
You will also need to prepare a JNDI connection pool for the web app. Please copy the MySQL Jconnect jar file into '$CATALINA_HOME/common/lib' and then add a connection pool definition into the '$CATALINA_HOME/conf/server.xml' file of your Jakarta instalation.
You can get a copy of the MySQL jar file from the tools lib directory (For example, if CATALINA_HOME is '/home/josevnz/tomcat50-jwsdp'):
bash#cp -p /opt/cvebrowser/lib/mysql-connector-java-3.0.6-stable-bin.jar /home/josevnz/tomcat50-jwsdp/common/lib/ |
And the server.xml could look like this:
<Engine defaultHost="localhost" name="Catalina"> <Host appBase="webapps" name="localhost"> <DefaultContext> <Resource name="jdbc/cvebrowser" auth="Cotainer" type="javax.sql.DataSource"/> <ResourceParams name="jdbc/cvebrowser"> <parameter> <name>driverClassName</name> <value>com.mysql.jdbc.Driver</value> </parameter> <parameter> <name>url</name> <value>jdbc:mysql://localhost:3306/cvebrowser?useUnicode=true&characterEncoding=UTF-8</value> </parameter> <parameter> <name>username</name> <value>cvebrowser</value> </parameter> <parameter> <name>password</name> <value>cv3br0ws3r</value> </parameter> <parameter> <name>maxActive</name> <value>20</value> </parameter> <parameter> <name>maxIdle</name> <value>30000</value> </parameter> <parameter> <name>maxWait</name> <value>100</value> </parameter> </ResourceParams> </DefaultContext> <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_log." suffix=".txt" timestamp="true"/> </Host> <Logger className="org.apache.catalina.logger.FileLogger" prefix="jwsdp_log." suffix=".txt" timestamp="true"/> <Realm className="org.apache.catalina.realm.UserDatabaseRealm"/> <Valve className="org.apache.catalina.valves.AccessLogValve" fileDateFormat="yyyy-MM-dd" suffix=".txt"/> </Engine> |
You will need to restart Tomcat after making the changes:
[root@localhost root]# $CATALINA_HOME/bin/shutdown.sh ; $CATALINA_HOME/bin/startup.sh |
<<< Previous | Home | Next >>> |
Installing the download and import tools | Up | How to install the documentation |