Problem using Eclipse with Sun App Server [message #163499] |
Thu, 09 March 2006 16:51  |
Eclipse User |
|
|
|
Originally posted by: darrinps.comcast.net
First off, there is no support built in
(Window->Preferences->Server->Installed Runtimes->Add).
Secondly, if you do create your own generic, then when you try to create
an EJB project you get this:
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.
I saw where someone said that you have to specify Java 5.0, but I already
do that.
Can someone just tell me what the line needs to look like please? I can
just edit in manually. Right now it shows this:
<?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>
ImageScanningEJB</display-name>
</ejb-jar>
Thanks!
|
|
|
|
Re: Problem using Eclipse with Sun App Server [message #163659 is a reply to message #163499] |
Sat, 11 March 2006 13:41  |
Eclipse User |
|
|
|
Originally posted by: ludovic.champenois.sun.com
> First off, there is no support built in
> (Window->Preferences->Server->Installed
> Runtimes->Add).
Download and install the Sun App Server plugin available at
http://glassfishplugins.dev.java.net/
>
> Secondly, if you do create your own generic, then
> when you try to create
> an EJB project you get this:
>
> 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.
>
> I saw where someone said that you have to specify
> Java 5.0, but I already
> do that.
>
> Can someone just tell me what the line needs to look
> like please? I can
> just edit in manually. Right now it shows this:
>
>
> <?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>
> ImageScanningEJB</display-name>
> </ejb-jar>
>
>
this is not a valid xml according to the schema. You need to have or or more enterprise-beans in your ejb module in order to be valid.
> Thanks!
>
|
|
|
Powered by
FUDForum. Page generated in 0.03375 seconds