我配置的ant,build.xml文件用于导入到EJB
来源:互联网 发布:四旋翼控制算法stm32 编辑:程序博客网 时间:2024/06/06 10:59
当我配置了Spring 以后,这些配置就不起作用了,deploy时报错:
There is no default persistence unit in this deployment
实际上注释使用persistenceContext注入entityManager时,使用Spring不需要指定其属性unitName的值,已经在配置文件中指定了。
<?xml version="1.0" encoding="UTF-8"?>
<project name="Ejb3.0Test" basedir=".">
<property name="src.dir" value="${basedir}/src" />
<property environment="env" />
<property name="jboss.home" value="${env.JBOSS_HOME}" />
<property name="jboss.server.config" value="${jboss.home}/server/default" />
<property name="jboss.server.deploy" value="${jboss.server.config}/deploy" />
<property name="build.dir" value="${basedir}/build" />
<path id="build.classpath">
<fileset dir="${jboss.home}/client">
<include name="*.jar" />
</fileset>
<pathelement location="${build.dir}" />
</path>
<target name="prepare">
<delete dir="${build.dir}" />
<mkdir dir="${build.dir}" />
</target>
<target name="compile" depends="prepare" description="编译">
<javac srcdir="${src.dir}" destdir="${build.dir}">
<classpath refid="build.classpath" />
</javac>
</target>
<target name="ejbjar" depends="compile" description="创建Ejb发布包">
<jar jarfile="${basedir}/${ant.project.name}.jar">
<fileset dir="${build.dir}">
<include name="**/*.class" />
</fileset>
</jar>
</target>
<target name="deploy" depends="ejbjar" description="发布Ejb">
<copy file="${basedir}/${ant.project.name}.jar" todir="${jboss.server.deploy}" />
</target>
<target name="undeploy" description="卸载Ejb">
<delete file="${jboss.home}/server/${jboss.server.config}/deploy" />
</target>
</project>
- 我配置的ant,build.xml文件用于导入到EJB
- ant创建 发布 EJB build.xml 文件的编写
- ANT部署EJB应用的build.xml
- ANT 发布项目中 build.xml 文件的详细配置
- ANT 发布项目中 build.xml 文件的详细配置
- ANT 发布项目中 build.xml 文件的详细配置
- ant build.xml 配置
- ant build.xml配置
- Ant文件build.xml
- ant文件 Build.xml
- ant打包jar的build.xml配置
- ANT编译文件build.xml的书写
- [转]Ant的build.xml文件说明
- ant的build.xml文件详解
- Ant的build.xml文件解释
- ant的build.xml文件分析
- ant的build.xml文件详解
- ant的Build.xml文件解析
- sqlite字符串拼接
- 二级指针与二级数组汇总
- web.xml加入taglib报错
- VC 图像控件 图像显示
- repaint window caption
- 我配置的ant,build.xml文件用于导入到EJB
- 【动态规划】最大连续序列和最大子矩阵
- Nested Class
- 高维数组的理解
- 鲁迅名言——警醒自己
- .net 4.0 中对多线程新特性(一)
- 在VMware下通过安装VMware Tools配置Linux显卡
- 病理特征:Caused by: org.hibernate.HibernateException: cannot simultaneously fetch multiple bags,
- 被称为世上最经典的25句话