Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
jore - 22 Jul 2006 12:31 GMT
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/CMPScheduleWebAp
p.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?
IchBin - 22 Jul 2006 20:38 GMT
> I downloaded an new eclipse wtp and made tutorial: WTP Tutorials -
> Building a CMP Based School Schedule Web Application.
[quoted text clipped - 50 lines]
>
> 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 - 28 Jul 2006 11:22 GMT
Thanks!

IchBin kirjoitti:

> > I downloaded an new eclipse wtp and made tutorial: WTP Tutorials -
> > Building a CMP Based School Schedule Web Application.
[quoted text clipped - 67 lines]
> 'If there is one, Knowledge is the "Fountain of Youth"'
> -William E. Taylor,  Regular Guy (1952-)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.