开发者

JBossXBException

开发者 https://www.devze.com 2023-03-02 09:03 出处:网络
I have an ear file that is generated through Maven EAR plugin. The ear file has only one module which is the ejb module. I am able to deploy it to JBoss 4.2.1-GA inside Eclipse but when I tried runnin

I have an ear file that is generated through Maven EAR plugin. The ear file has only one module which is the ejb module. I am able to deploy it to JBoss 4.2.1-GA inside Eclipse but when I tried running it an exception is encountered during startup. I've tried searching for a solution for two days now but unsuccessful.

The exception I encountered was

org.jboss.xb.binding.JBossXBException: Failed to parse source: Premature end of file. @ *开发者_如何学JAVAunknown*[-1,-1]

The stack trace is here: stack trace

It might be worth noting that this is an existing project that I am trying to "mavenize" and was working properly before.


This sounds as if within the jar file you try to deploy, osf-feed-ejbs.jar the deployment descriptor (ejb-jar.xml probably) is missing.

If it is within the META-INF folder and you are on Windows, make sure that META-INF is all caps!

You don't need ejb-jar.xml for EJB3 deployments. But if you have one, it needs to be wellformed at least.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号