Jboss 例子 interest 怎么部署不成功?

04-05-21 heming
Jboss 例子 interest 怎么部署不成功?

10:33:33,048 INFO [EARDeployer] Init J2EE application: file:/E:/JBoss4/server/d

efault/deploy/interest.ear

10:33:33,289 ERROR [MainDeployer] could not create deployment: file:/E:/JBoss4/s

erver/default/tmp/deploy/tmp204interest.ear-contents/interest.jar

org.jboss.deployment.DeploymentException: ejb-jar.xml must either obey the right

xml schema or define a valid DOCTYPE!

at org.jboss.metadata.ApplicationMetaData.importEjbJarXml(ApplicationMet

难道 ejb-jar.xml 有问题?

事实上E:/JBoss4/server/default/tmp/deploy/tmp204interest.ear这个文件已经存在了。

yangzheng
2004-05-21 11:30
提示很清楚。是E:/JBoss4/s

erver/default/tmp/deploy/tmp204interest.ear里面的interest.jar中的ejb-jar.xml有问题。

heming
2004-05-21 11:35
这个 http://www.jdon.com/idea/ejb/examples.rar 解开的examples.ear 部署却没有问题 .

另外 http://www.jdon.com/download/Yazd.tar.gz 解开之后 执行 ant 之后出现以下问题 :

C:\Downloads\Yazd.tar\build>ant ubbexport

Buildfile: build.xml

compilecore:

[echo] Compiling C:\Downloads\Yazd.tar/source

[javac] Compiling 127 source files to C:\Downloads\Yazd.tar\classes

[javac] C:\Downloads\Yazd.tar\source\com\Yasna\forum\database\DbConnectionDe

faultPool.java:904: com.Yasna.forum.database.DbConnectionDefaultPool.ConnectionW

rapper should be declared abstract; it does not define setHoldability(int) in co

m.Yasna.forum.database.DbConnectionDefaultPool.ConnectionWrapper

[javac] public class ConnectionWrapper implements Connection {

[javac] ^

[javac] Note: C:\Downloads\Yazd.tar\source\com\Yasna\forum\util\SkinUtils.ja

va uses or overrides a deprecated API.

[javac] Note: Recompile with -deprecation for details.

[javac] 1 error

BUILD FAILED

C:\Downloads\Yazd.tar\build\build.xml:126: Compile failed; see the compiler erro

r output for details.

继承类Connection是不是需要 重载setHoldability(int) 、getHoldability() 等方法

heming
2004-05-21 11:38
您说有ejb-jar.xml问题, 是什么问题呢 ? 您能否给我一个interest.ear 我的邮件 heming@bjtth.com ,我就是从 http://www.jboss.org/docs/manual/files/documentation-example.zip 下载下来的, 解开之后执行 ant intro-interest-ear ,提示编译成功, 之后把interest.ear拷贝过去部署就出错了。

yangzheng
2004-05-21 12:00
我去http://www.jboss.org/docs/manual/files/documentation-example.zip下载了一个.

你看看examples\org\jboss\docs\interest目录下的ejb-jar.xml文件,如下:

<?xml version="1.0" encoding="UTF-8"?>

后面少了

<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">

猜你喜欢
2Go 1 2 下一页