用jbuilder自己做一个ear试试看
解决方案 »
- ajax的open方法传参,在struts中如何获得参数
- 在hibernate中遇到查询的数据与数据库中的数据不同步问题
- 关于SessionFactory
- 单元测试 求指教
- Myeclipse在websphere中进行开发过的前辈请进
- 关于如何调用Web Services接口的简单入门级菜鸟级别的问题(急......在线等待)
- java转换xslt问题!急!!!!!!!!!!!!!!!
- 用hibernate的高手们请指点一下,菜鸟问题,很急很急
- weblogic8.1+jb9 运行.jsp程序出错,急急急,在线等
- weblogic pool问题,请大家帮忙?谢谢!!!
- 用editplus写了一个hello world的ejb例子,怎么放到jbuilder中,可视化编辑部署描述符?
- 2000可用分求一份管理方面的J2EE架构的例子。。
例如:我有a.jar,b.war和application.xml要生成c.ear
目录结构:CEAR\a.jar&b.war,CEAR\MEATA-INF\application.xml
然后再CERA目录下执行:jar cvf CEAR.ear就行了。你的目录结构不对,没有MEATA-INF目录,WL怎么会发布?
<!-- Put the ejb into an ear, to be deployed from the ${APPLICATIONS} dir -->
<target name="ear_app" depends="jar_ejb">
<ear earfile="${APPLICATIONS}/ejb11_basic_beanManaged.ear" appxml="${source}/application.xml">
<fileset dir="${dist}" includes="ejb11_basic_beanManaged.jar"/>
</ear>
</target>我一定给分
<target name="ear_app" depends="jar_ejb">
<ear earfile="${APPLICATIONS}/ejb11_basic_beanManaged.ear" appxml="${source}/application.xml">
<fileset dir="${dist}" includes="ejb11_basic_beanManaged.jar"/>
</ear>
</target>
我先帮你分析一下这段内容吧:
1.examples.properties:在build.xml文件的以开始会有一段<property file="../examples.properties"/>,其中,examples.properties(C:\bea\wlserver6.1\samples\examples.properties)就是设置一些文件目录结构和其他的东西,${APPLICATIONS}这个变量就是在其中设置的.
2:target : 属于ant内部的东西,相当于任务的标识。
3:ear:说明你要打一个*.ear的包,就是Enterprise Application的包。
4:earfile:是指要打得ear文件的路径及名字。
5.appxml:为ear包需要的application.xml(application.xml为发布ear包必须包含的文件)
6。fileset:设置文件目录,dir为设置当前的目录
7.includes:为要包含的文件。原因:
jar cvf %APPLICATIONS%/ebj11_basic_beanManaged.ear application.xml dist/ejb11_basic_beanManaged.jar
像你这样写,肯定不行。要注意examples.properties中定义的变量。我先说这么多吧。我不能上QQ,MSN.
我的MAIL:[email protected]