• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

ejb-jar.xml problem

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm using Websphere Application Studio to build a websigning webservice. I made my session bean D2SPDFSigner but the compilation failes.
Websphere Studio says the following (general error):

The content of element type "ejb-jar" must match "(description?,display-name?,small-icon?,large-icon?,enterprise-beans,relationships?,assembly-descriptor?,ejb-client-jar?)".ejb-jar.xmlD2SSignServer/ejbModule/com/dsoft/server/D2S/webservice/META-INFline 19


My ejb-jar.xml looks as follows:
Does someone has any idea why the compilation fails?

<?xml version="1.0" encoding="UTF-8"?>
< !DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">;

<ejb-jar id="ejb-jar_ID">
<description>This is the single point of contact session of the Web signing service</description>
<display-name>D2S WebSigner bean</display-name>
<enterprise-beans>
<session id="D2SPDFSigner">
<description>D2S WebSigning session TOC of webservice</description>
<display-name>D2S WebSigner bean</display-name>
<ejb-name>D2SPDFSigner</ejb-name>
<home>com.dsoft.server.D2S.webservice.D2SPDFSignerHome</home>
<remote>com.dsoft.server.D2S.webservice.D2SPDFSigner</remote>
<ejb-class>com.dsoft.server.D2S.webservice.D2SPDFSignerBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>D2SPDFSigner</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>NotSupported</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>

Many thanks in advance,

Guy
mail: gvaniseghem@yahoo.com
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are getting a validation error because ejb-jar.xml doesn't validate againe the DTD. Since you don't post your ejb-jar.xml I can't tell you where, but it should be easy enough to find if you look at the DTD and double check you haven't added any child elements where they shouldn't be.
 
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
check line 19..there seems to be some problem..
 
Eliminate 95% of the weeds in your lawn by mowing 3 inches or higher. Then plant tiny ads:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic