Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

DeploymentDescriptor parse error

 
Tony Evans
Ranch Hand
Posts: 598
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When parsing my DeploymentDescriptor ejb-jar.xml I get the following error.
org.xml.sax.SAXParseException:
Element type "local-home" is not declared in the dtd or schema.
within the ejb-jar.xml
I have the following code
<local-home>
request.RequestDataManagerLocalHome
</local-home>
Is it complaining because it cant find it, or can find it and does not recognise it.
Thanks for any help.
 
Peter Reinhardt
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure you are using a DTD for EJB 2.0 ?
Peter
 
Tony Evans
Ranch Hand
Posts: 598
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Pete, I was indeed using the wrong DD it was set to i.i instead of 2.
I was using an old DD Header.
Cheers TE
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!