I have problem eclipse wtp's ejb-jar.xml and session bean

Discussion in 'Java' started by jore, Jul 22, 2006.

  1. jore

    jore Guest

    I downloaded an new eclipse wtp and made tutorial: WTP Tutorials -
    Building a CMP Based School Schedule Web Application.

    http://www.eclipse.org/webtools/community/tutorials/cmptutorial/CMPScheduleWebApp.html

    I made tutorials CMP EJB-project and build a session bean and I have
    problem in ejb-jar.xml file:

    2 cvc-complex-type.2.4.b: The content of element 'ejb-jar' is not
    complete.
    One of '{"http://java.sun.com/xml/ns/j2ee":display-name,
    "http://java.sun.com/xml/ns/j2ee":icon,
    "http://java.sun.com/xml/ns/j2ee":enterprise-beans}' is expected.
    ejb-jar.xml ScheduleEJB/ejbModule/META-INF line 5

    This is my ejb-jar.xml-file

    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar id="ejb-jar_ID" version="2.1"
    xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">

    <display-name>ScheduleEJB</display-name>

    </ejb-jar>

    This version of ejb-jar.xml file is valid:

    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar id="ejb-jar_ID" version="2.1"
    xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
    <display-name>ScheduleEJB</display-name>
    <enterprise-beans>
    <session>
    <ejb-name>ScheduleSessionBean</ejb-name>
    <ejb-class>ScheduleSessionBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>

    </ejb-jar>

    Now in this new ejb-jar.xml file I have a new problem: CHKJ2802E:
    <ejb-class> class ScheduleSessionBean, or one of its supertypes, cannot
    be reflected. Check the
    classpath. ejb-jar.xml ScheduleEJB/ejbModule/META-INF

    How I make a right version of ejb-jar.xml file?
     
    jore, Jul 22, 2006
    #1
    1. Advertising

  2. jore

    IchBin Guest

    jore wrote:
    > I downloaded an new eclipse wtp and made tutorial: WTP Tutorials -
    > Building a CMP Based School Schedule Web Application.
    >
    > http://www.eclipse.org/webtools/community/tutorials/cmptutorial/CMPScheduleWebApp.html
    >
    > I made tutorials CMP EJB-project and build a session bean and I have
    > problem in ejb-jar.xml file:
    >
    > 2 cvc-complex-type.2.4.b: The content of element 'ejb-jar' is not
    > complete.
    > One of '{"http://java.sun.com/xml/ns/j2ee":display-name,
    > "http://java.sun.com/xml/ns/j2ee":icon,
    > "http://java.sun.com/xml/ns/j2ee":enterprise-beans}' is expected.
    > ejb-jar.xml ScheduleEJB/ejbModule/META-INF line 5
    >
    > This is my ejb-jar.xml-file
    >
    > <?xml version="1.0" encoding="UTF-8"?>
    > <ejb-jar id="ejb-jar_ID" version="2.1"
    > xmlns="http://java.sun.com/xml/ns/j2ee"
    > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    > http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
    >
    > <display-name>ScheduleEJB</display-name>
    >
    > </ejb-jar>
    >
    > This version of ejb-jar.xml file is valid:
    >
    > <?xml version="1.0" encoding="UTF-8"?>
    > <ejb-jar id="ejb-jar_ID" version="2.1"
    > xmlns="http://java.sun.com/xml/ns/j2ee"
    > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    > http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
    > <display-name>ScheduleEJB</display-name>
    > <enterprise-beans>
    > <session>
    > <ejb-name>ScheduleSessionBean</ejb-name>
    > <ejb-class>ScheduleSessionBean</ejb-class>
    > <session-type>Stateless</session-type>
    > <transaction-type>Container</transaction-type>
    > </session>
    > </enterprise-beans>
    >
    > </ejb-jar>
    >
    > Now in this new ejb-jar.xml file I have a new problem: CHKJ2802E:
    > <ejb-class> class ScheduleSessionBean, or one of its supertypes, cannot
    > be reflected. Check the
    > classpath. ejb-jar.xml ScheduleEJB/ejbModule/META-INF
    >
    > How I make a right version of ejb-jar.xml file?
    >


    You may get an answer from this newsgroup but it would make sense to ask
    at the Eclipse NNTP. Their address is:

    news.eclipse.org

    Try their newsgroup: eclipse.webtools

    You will need a free password to post to their server. You can get that
    here: http://www.eclipse.org/newsgroups

    Thanks in Advance...
    IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
    __________________________________________________________________________

    'If there is one, Knowledge is the "Fountain of Youth"'
    -William E. Taylor, Regular Guy (1952-)
     
    IchBin, Jul 22, 2006
    #2
    1. Advertising

  3. jore

    jore Guest

    Thanks!




    IchBin kirjoitti:

    > jore wrote:
    > > I downloaded an new eclipse wtp and made tutorial: WTP Tutorials -
    > > Building a CMP Based School Schedule Web Application.
    > >
    > > http://www.eclipse.org/webtools/community/tutorials/cmptutorial/CMPScheduleWebApp.html
    > >
    > > I made tutorials CMP EJB-project and build a session bean and I have
    > > problem in ejb-jar.xml file:
    > >
    > > 2 cvc-complex-type.2.4.b: The content of element 'ejb-jar' is not
    > > complete.
    > > One of '{"http://java.sun.com/xml/ns/j2ee":display-name,
    > > "http://java.sun.com/xml/ns/j2ee":icon,
    > > "http://java.sun.com/xml/ns/j2ee":enterprise-beans}' is expected.
    > > ejb-jar.xml ScheduleEJB/ejbModule/META-INF line 5
    > >
    > > This is my ejb-jar.xml-file
    > >
    > > <?xml version="1.0" encoding="UTF-8"?>
    > > <ejb-jar id="ejb-jar_ID" version="2.1"
    > > xmlns="http://java.sun.com/xml/ns/j2ee"
    > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    > > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    > > http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
    > >
    > > <display-name>ScheduleEJB</display-name>
    > >
    > > </ejb-jar>
    > >
    > > This version of ejb-jar.xml file is valid:
    > >
    > > <?xml version="1.0" encoding="UTF-8"?>
    > > <ejb-jar id="ejb-jar_ID" version="2.1"
    > > xmlns="http://java.sun.com/xml/ns/j2ee"
    > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    > > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    > > http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
    > > <display-name>ScheduleEJB</display-name>
    > > <enterprise-beans>
    > > <session>
    > > <ejb-name>ScheduleSessionBean</ejb-name>
    > > <ejb-class>ScheduleSessionBean</ejb-class>
    > > <session-type>Stateless</session-type>
    > > <transaction-type>Container</transaction-type>
    > > </session>
    > > </enterprise-beans>
    > >
    > > </ejb-jar>
    > >
    > > Now in this new ejb-jar.xml file I have a new problem: CHKJ2802E:
    > > <ejb-class> class ScheduleSessionBean, or one of its supertypes, cannot
    > > be reflected. Check the
    > > classpath. ejb-jar.xml ScheduleEJB/ejbModule/META-INF
    > >
    > > How I make a right version of ejb-jar.xml file?
    > >

    >
    > You may get an answer from this newsgroup but it would make sense to ask
    > at the Eclipse NNTP. Their address is:
    >
    > news.eclipse.org
    >
    > Try their newsgroup: eclipse.webtools
    >
    > You will need a free password to post to their server. You can get that
    > here: http://www.eclipse.org/newsgroups
    >
    > Thanks in Advance...
    > IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
    > __________________________________________________________________________
    >
    > 'If there is one, Knowledge is the "Fountain of Youth"'
    > -William E. Taylor, Regular Guy (1952-)
     
    jore, Jul 28, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. X3
    Replies:
    0
    Views:
    427
  2. JScoobyCed

    Eclipse and the WTP 1.0

    JScoobyCed, Jan 6, 2006, in forum: Java
    Replies:
    1
    Views:
    664
    Neill
    Jan 9, 2006
  3. Replies:
    1
    Views:
    415
    Manish Pandit
    Sep 13, 2006
  4. gk
    Replies:
    2
    Views:
    976
  5. Raymond Schanks
    Replies:
    0
    Views:
    685
    Raymond Schanks
    Aug 3, 2010
Loading...

Share This Page