Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Building ejbs or servlets - Schema location mapping
Building ejbs or servlets - Schema location mapping [message #121219] Fri, 15 July 2005 17:29 Go to next message
Eclipse User
Originally posted by: peter.thevillage.ie

This is probably the dumbest question, but building and ejb in Eclipse 3.1
with WST installed, and using XDoclet 1.2.3, JBoss 3.2.3,  in ejb-jar.xml 
I get :
  cvc-elt.1: Cannot find the declaration of element
Re: Building ejbs or servlets - Schema location mapping [message #121322 is a reply to message #121219] Fri, 15 July 2005 20:40 Go to previous messageGo to next message
C. Schmidt is currently offline C. Schmidt
Messages: 6
Registered: July 2009
Junior Member
Hello Peter,

uncheck the Option "Window>Preferences>Internet>Cache>Disable caching"
and rebuild your Projects online.

Christof



Peter Harris schrieb:
> This is probably the dumbest question, but building and ejb in Eclipse 3.1
> with WST installed, and using XDoclet 1.2.3, JBoss 3.2.3, in ejb-jar.xml
> I get :
> cvc-elt.1: Cannot find the declaration of element 'ejb-jar'.
>
> Failed to read schema document
> 'http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd', because 1) could not
> find the document; 2) the document could not be read; 3) the root element
> of the document is not <xsd:schema>.
>
> I am not permanently connected to the internet, so it's not surprising it
> can't find this or any of the xmlns, xmlns:xsi or xsi:schemalocation URLs
> it is looking for.
>
> What should I replace these with, or is there a way to alias these
> addresses onto my local file system
>
> Thanks and apologies
> Peter
Re: Building ejbs or servlets - Schema location mapping [message #121382 is a reply to message #121322] Sat, 16 July 2005 07:18 Go to previous messageGo to next message
Eclipse User
Originally posted by: peter.thevillage.ie

Many thanks Christof,
Does this mean I can only do builds on line?? I am at the end of dial-up
line, and that would severely limit Eclipse's usefullness.
Peter
Christof Schmidt [AC] wrote:

> Hello Peter,
>
> uncheck the Option "Window>Preferences>Internet>Cache>Disable caching"
> and rebuild your Projects online.
>
> Christof
>
>
>
> Peter Harris schrieb:
>> This is probably the dumbest question, but building and ejb in Eclipse
>> 3.1
>> with WST installed, and using XDoclet 1.2.3, JBoss 3.2.3, in ejb-jar.xml
>> I get :
>> cvc-elt.1: Cannot find the declaration of element 'ejb-jar'.
>>
>> Failed to read schema document
>> 'http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd', because 1) could not
>> find the document; 2) the document could not be read; 3) the root element
>> of the document is not <xsd:schema>.
>>
>> I am not permanently connected to the internet, so it's not surprising it
>> can't find this or any of the xmlns, xmlns:xsi or xsi:schemalocation URLs
>> it is looking for.
>>
>> What should I replace these with, or is there a way to alias these
>> addresses onto my local file system
>>
>> Thanks and apologies
>> Peter

--
I don't suffer from insanity
I enjoy every minute of it.
Re: Building ejbs or servlets - Schema location mapping [message #121415 is a reply to message #121382] Sat, 16 July 2005 16:23 Go to previous messageGo to next message
C. Schmidt is currently offline C. Schmidt
Messages: 6
Registered: July 2009
Junior Member
Hello Peter,

it could be that with first build all xsd/dtd files are not loaded. You
should repeat it therefore several times.

This is naturally only a fast solution. Better it is to be used
naturally the XML catalog. "Window>Preferences>Web and XML>XML Catalog"
Is however more complex the individual files to be downloaded and
registered.

Christof

Peter Harris schrieb:
> Many thanks Christof,
> Does this mean I can only do builds on line?? I am at the end of dial-up
> line, and that would severely limit Eclipse's usefullness.
> Peter
> Christof Schmidt [AC] wrote:
>
>
>>Hello Peter,
>>
>>uncheck the Option "Window>Preferences>Internet>Cache>Disable caching"
>>and rebuild your Projects online.
>>
>>Christof
>>
>>
>>
Re: Building ejbs or servlets - Schema location mapping [message #121451 is a reply to message #121382] Sun, 17 July 2005 06:23 Go to previous message
Lawrence Mandel is currently offline Lawrence Mandel
Messages: 486
Registered: July 2009
Senior Member
Hi Peter,

No. The idea with the cache is that you do one build while connected to
the internet and then can work disconnected after that. The cache allows
you to quickly add resources to your workspace that the WTP does not have
the rights to redistribute.

Lawrence

>Many thanks Christof,
>Does this mean I can only do builds on line?? I am at the end of dial-up
>line, and that would severely limit Eclipse's usefullness.
>Peter
Previous Topic:JDK version & tutorials
Next Topic:duplicate key value [<namespace>] declared for identity constraint of element "definition
Goto Forum:
  


Current Time: Mon Sep 22 06:24:16 GMT 2014

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

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