Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > I have problem eclipse wtp's ejb-jar.xml and session bean

Reply
Thread Tools

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

 
 
jore
Guest
Posts: n/a
 
      07-22-2006
I downloaded an new eclipse wtp and made tutorial: WTP Tutorials -
Building a CMP Based School Schedule Web Application.

http://www.eclipse.org/webtools/comm...uleWebApp.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"
xmlnssi="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"
xmlnssi="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?

 
Reply With Quote
 
 
 
 
IchBin
Guest
Posts: n/a
 
      07-22-2006
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/comm...uleWebApp.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"
> xmlnssi="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"
> xmlnssi="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-)
 
Reply With Quote
 
 
 
 
jore
Guest
Posts: n/a
 
      07-28-2006
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/comm...uleWebApp.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"
> > xmlnssi="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"
> > xmlnssi="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-)


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving request scope bean reference to session scone bean gallas.robert@gmail.com Java 1 03-19-2008 01:09 PM
Modelling an object as Session Bean or Entity Bean ? Francesco Java 3 12-07-2006 04:22 PM
EJB Transaction (Session Bean - Entitiy Bean) X3 Java 0 10-01-2004 07:41 AM
Differnce between Java Bean and Enterprise Java Bean Markku Salminen Java 3 01-21-2004 09:25 AM
can a session bean return a local entity bean object? David Thielen Java 2 09-12-2003 07:45 AM



Advertisments