cannot resolve symbol class HttpSession
环境配置没配置好
环境配置没配置好
解决方案 »
- 高手指Initialization of bean failed; nested exception is java.lang.OutOfMemoryError
- ordinal parameter mismatch异常问题?
- Application Server PE 9 的用法
- 关于JSP+Javabean的调试
- 请问一个关于sqlserver2000的问题,请各们达人进!
- 求教:封装N列的交叉表(单表)的算法?
- Java基础问题(三):请用自己的理解详细解释一下rmi机制,贴用例者多给分
- weblogic+ejb开发实际问题?请教各位都是怎么做的?
- CMP2.0+WebLogic6.1环境下可以实现EJB-QL的动态创建吗?
- Springboot表格下载--服务器历史文件不翼而飞
- velocity参数的传递
- #Struts标签,select下拉列表只读问题
例子如下,在我的例子中j2ee.jar包含了servlet包在内
<!--
Author:simon.wang
create:2005-05-27
--><project name="sign" default="war" basedir="."><property name="sign.lib" value="WEB-INF\lib"/>
<property name="classes.dir" value="WEB-INF\classes"/><path id="compile.classpath">
<pathelement location="${sign.lib}\j2ee.jar"/>
<pathelement location="${sign.lib}\mail.jar"/>
<pathelement location="${sign.lib}\struts.jar"/>
<pathelement location="${sign.lib}\activation.jar"/>
<pathelement location="${sign.lib}\displaytag-1.0.jar"/>
<pathelement location="${sign.lib}\mysql-connector-java-3.0.16-ga-bin.jar"/>
<pathelement location="D:\apache-ant-1.6.1\lib\ant-jakarta-bcel.jar"/>
</path><target name="init">
<delete dir="deploy"/>
<delete dir="${classes.dir}"/> <mkdir dir="deploy"/>
<mkdir dir="${classes.dir}"/>
<echo message="Compile ..."/>
<javac srcdir="WEB-INF/src"
destdir="${classes.dir}"
debug="true"
optimize="true"
deprecation="true">
<classpath refid="compile.classpath"/>
</javac>
</target>
<!--Create sign.war file into "deploy" folder-->
<target name="war" depends="init" description="Create web application archive file">
<echo message="Processing webapp sign"/>
<war destfile="deploy/sign.war"
webxml="./WEB-INF/web.xml">
<fileset dir="."
includes="**/*.*,
**/cerberian_certs"
excludes="WEB-INF/web.xml,
deploy/*.*,
WEB-INF/src/**/*.*"/>
<classes dir="${classes.dir}"
includes="com/*.class"
excludes=".jsps/*.class"/> </war></target>
</project>