Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SAXParseException: The content of element type "enterprise-beans" is incomplete, it m

 
Chirag Jakharia
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is an Exception When XDoclet,Ant,JBoss are used
My Environment Variables are set as follows

SET CLASSPATH=C:\Progr~1\Altova\xmlspy\XMLSpyInterface.jar;C:\PROGRA~1\BEA\JDK141~1\lib\tools.jar;C:\PROGRA~1\BEA\JDK141~1\jre\lib\rt.jar;E:\jboss-3.2.3\server\default\lib\jboss-j2ee.jar;E:\jboss-3.2.3\server\default\lib\jnpserver.jar;E:\jboss-3.2.3\server\default\lib\jboss.jar;E:\jboss-3.2.3\client\jboss-common-client.jar;E:\jboss-3.2.3\client\jnet.jar;E:\jboss-3.2.3\client\jnp-client.jar;E:\jboss-3.2.3\client\jbosssx-client.jar;E:\xdoclet-1.2\lib\log4j.jar;E:\xdoclet-1.2\lib\xdoclet-1.2.jar;E:\xdo clet-1.2\lib\xjavadoc-1.0.2.jar;E:\xdoclet-1.2\lib\commons-collections-2.0.jar;E:\xdoclet-1.2\lib\commons-logging.jar;E:\xdoclet-1.2\lib\xdoclet-web-module-1.2.jar;E:\xdoclet-1.2\lib\xdoclet-ejb-module-1.2.jar;E:\xdoclet-1.2\lib\xdoclet-jmx-module-1.2.jar;E:\xdoclet-1.2\lib\xdoclet-jdo-module-1.2.jar;E:\xdoclet-1.2\lib\xdoclet-hibernate-module-1.2.jar

SET J2EE_HOME=C:\j2sdkee1.3.1
SET ANT_HOME=E:\apache-ant-1.6.1

My ANT Script,build.xml as Follows

My GreetingBean.java as Follows

When we run the Ant Script Following is the output

Can You please help me that where I have to type the Enterprose Beans Tag or any tag which will show to the XDoclet tat this bean is a Session or Entity or MessageDriven

Thanks in advance
[ there's still some long ones, but I just edited this to kill the really long unbroken lines -ds ]
[ March 09, 2004: Message edited by: Dirk Schreckmann ]
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Other Java Products and Servers forum...
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18165
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your ejb-jar.xml file is malformed. If you're creating one manually, look at it. I've not used XDoclet in a couple of months, so I forget if XDoclet's creating one for you or not, but a look at that file may help.
Also check the @ejb and @jboss XDoclet tags and make sure that all the required ones have been supplied and that nothing's been miscoded.
 
Chirag Jakharia
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks you are Right the validation of the ejb-jar.xml file is throwing the error
There is no Session Bean Entry in the ejb-jar.xml
And this is raising the Error
I got the Error But How to solve it
I mean where is the coding mistake committed by me

The ejb-jar.xml file made is as follows

Thanks in advance
Chirag
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic