网络信息再利用项目的搭建与开发 (搭建)
2013-03-07 22:21
423 查看
从老师那里拿到了她博士期间的研究项目,网络信息再利用,看了一下主要就是网页抓取与数据包装的问题。
现在来讲讲怎么搭建:
文件清单如下:
需要的工具是tomcat + eclipse
1。 将 tomcat目录中lib的 serverlet-api.jar 拷贝到jdk/jre/lib/ext中去。
2。 将HTMLParser-2.0-SNAPSHOT\lib 中的jar 和 htmlunit-2.11\lib中的jar 拷贝到tomcat中的lib中去。
3。 建立好WEB-INF/classes文件 将pathreader(class)中的class拷贝到classes中去。 WEB-INF/web.xml的内容为:
4。配置tomcat的虚拟目录为pathreader然后启动即可。
现在来讲讲怎么搭建:
文件清单如下:
需要的工具是tomcat + eclipse
1。 将 tomcat目录中lib的 serverlet-api.jar 拷贝到jdk/jre/lib/ext中去。
2。 将HTMLParser-2.0-SNAPSHOT\lib 中的jar 和 htmlunit-2.11\lib中的jar 拷贝到tomcat中的lib中去。
3。 建立好WEB-INF/classes文件 将pathreader(class)中的class拷贝到classes中去。 WEB-INF/web.xml的内容为:
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0" metadata-complete="true"> <display-name>Welcome to Tomcat</display-name> <description> Welcome to Tomcat </description> <!-- pathreader mappings start --> <servlet> <servlet-name>PathReaderServlet</servlet-name> <servlet-class>pathreader.PathReaderServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>PathReaderServlet</servlet-name> <url-pattern>/pathreader</url-pattern> </servlet-mapping> <!-- pathreader mappings end --> </web-app>
4。配置tomcat的虚拟目录为pathreader然后启动即可。
相关文章推荐
- Android项目开发全程(三)-- 项目的前期搭建、网络请求封装是怎样实现的
- Linux巩固记录(1) J2EE开发环境搭建及网络配置
- Maven项目搭建及hessian接口开发&发布
- 安卓开发时酷派手机不打印请求网络信息问题的解决
- 1.Hibernate小试牛刀 Hibernate项目环境搭建、Hibernate项目开发示例
- 开发一个好项目:五、创建数据源,创建网络数据Service和网络数据源
- 开发一个企业级信息管理项目,B/S结构,用asp.net 2.0开发。有兴趣联络QQ:313143302。
- Ionic搭建开发环境-创建项目记录
- Android基础之用Eclipse搭建Android开发环境和创建第一个Android项目(Windows平台)
- 自动化测试流程分析(转载自网络:HYHOLINE的《自动化测试项目开发流程说明》一文)
- 【VS开发】使用WinPcap编程(1)——获取网络设备信息
- spring springmvc hibernate(ssh)项目整合开发---总体架构搭建
- Cocos2dx 3.0开发环境搭建--Eclipse上构建一个Android项目
- 项目开发环境搭建手记(5.Jenkins搭建)
- Android基础之 用Eclipse搭建Android开发环境和创建第一个Android项目
- maven项目开发环境搭建之五使用SVN管理代码
- Hadoop项目开发环境搭建(Eclipse\MyEclipse + Maven)
- 网站开发进阶(二十一)Angular项目信息错位显示问题解决
- ★Android开发笔记(1) 总记 开发环境搭建+常见问题+项目结构