Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » WTP 1.5: problems when creating a new project
WTP 1.5: problems when creating a new project [message #164465] Tue, 21 March 2006 03:56 Go to next message
Eclipse UserFriend
Originally posted by: news-1.labouisse.org

I'm trying to reproduce the EJB tutorial on a fresh installation of
Eclipse 3.2M5 + WTP 1.5M5. I'm using JBoss 4.0.3SP1, JRE 1.5.0 and
XDoclets 1.2.3.

First of all, I create a new project using JBoss, selection the "create
EAR project" and then selecting EJBDoclets on the penultimate page.
Three projects are created (ZooBeansProject, ZBPClient and ZBPEAR) *but*
there is an error in the ejb-jar.xml file:

cvc-complex-type.2.4.a: Invalid content was found starting with element
'ejb-client-jar'. 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.

I worked around this problem by replacing
xmlns="http://java.sun.com/xml/ns/j2ee" by
xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" in the ejb-jar element and
prefixing the display tag by j2ee:.

Next, I'm creating the TigerBean by creating a new XDoclet Entreprise
JavaBean, renaming the foo method to roar. Everything is OK with JBoss
but I happen to also have Jonas 4.6.6 and the jonas-ejb-jar.xml file has
an error after changing the foo method:

The content of element type "jonas-ejb-jar" is incomplete, it must match
"(jonas-session|jonas-entity|jonas-message-driven)+".

Christophe
Re: WTP 1.5: problems when creating a new project [message #164515 is a reply to message #164465] Tue, 21 March 2006 11:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: david.schneider.unisys.com

I think this error goes away after you create the first EJB AND then clean
your project.


"Christophe Labouisse" <news-1@labouisse.org> wrote in message
news:dvof34$cnm$1@utils.eclipse.org...
> I'm trying to reproduce the EJB tutorial on a fresh installation of
> Eclipse 3.2M5 + WTP 1.5M5. I'm using JBoss 4.0.3SP1, JRE 1.5.0 and
> XDoclets 1.2.3.
>
> First of all, I create a new project using JBoss, selection the "create
> EAR project" and then selecting EJBDoclets on the penultimate page.
> Three projects are created (ZooBeansProject, ZBPClient and ZBPEAR) *but*
> there is an error in the ejb-jar.xml file:
>
> cvc-complex-type.2.4.a: Invalid content was found starting with element
> 'ejb-client-jar'. 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.
>
> I worked around this problem by replacing
> xmlns="http://java.sun.com/xml/ns/j2ee" by
> xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" in the ejb-jar element and
> prefixing the display tag by j2ee:.
>
> Next, I'm creating the TigerBean by creating a new XDoclet Entreprise
> JavaBean, renaming the foo method to roar. Everything is OK with JBoss
> but I happen to also have Jonas 4.6.6 and the jonas-ejb-jar.xml file has
> an error after changing the foo method:
>
> The content of element type "jonas-ejb-jar" is incomplete, it must match
> "(jonas-session|jonas-entity|jonas-message-driven)+".
>
> Christophe
Re: WTP 1.5: problems when creating a new project [message #164541 is a reply to message #164465] Tue, 21 March 2006 13:57 Go to previous message
Eclipse UserFriend
>cvc-complex-type.2.4.a: Invalid content was found starting with element
>'ejb-client-jar'. 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.

This error is produced because the deployment descriptor requires that at
least one of display-name, icon or enterprise-bean be declared. Bug 123911
is open with a request to improve this message and other similiar messages
to be clearer and more useful for users.

>Next, I'm creating the TigerBean by creating a new XDoclet Entreprise
>JavaBean, renaming the foo method to roar. Everything is OK with JBoss
>but I happen to also have Jonas 4.6.6 and the jonas-ejb-jar.xml file has
>an error after changing the foo method:
>
>The content of element type "jonas-ejb-jar" is incomplete, it must match
>"(jonas-session|jonas-entity|jonas-message-driven)+".

Sounds like a similar problem although I'm not familiar with the
jonas-ejb-jar element.

Lawrence
Previous Topic:IWAB0002I Tomcat v5.5 does not support port monitoring?!
Next Topic:how to exclude test classes from being included in generated jars?
Goto Forum:
  


Current Time: Sat Nov 08 07:54:14 EST 2025

Powered by FUDForum. Page generated in 1.05498 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top