NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Missing Body Element when adding new Visual Web JSF pages on NB 6.1

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
jcachia



Joined: 12 Oct 2008
Posts: 4

PostPosted: Sun Oct 12, 2008 7:48 pm    Post subject: Missing Body Element when adding new Visual Web JSF pages on NB 6.1 Reply with quote

I have re-installed netbeans 6.1 after uninstalling the netbeans 6.5 beta. Now, each time I add a new Visual Web JavaServerFaces page, I get the message "Missing Body Element" in the Design 'tab' and when selecting the JSP 'tab' I get a warning messagebox stating that "The document Page1 could not be loaded". All I get is the java tab which contains what seems to be a correct Java class pertaining to the JSF page.

Any ideas are welcome!
Back to top
HandyGeek
Posted via mailing list.





PostPosted: Sun Oct 12, 2008 11:09 pm    Post subject: Missing Body Element when adding new Visual Web JSF pages on NB 6.1 Reply with quote

Try repairing your userdir folder:
Userdir located in e.g "C:\Documents and
Settings\Administrator\.netbeans\6.1"
Delete this directory, and the IDE will rescan all sources on next
start up.

Unfortunately upon repoening a project you lose:
Datasource connections
Click the button add connection
Caches are stored in your userdir in folder var/cache/index
Static IDE configurations: mostly stable (new modules installed,
extra files,...)
HTH /David

jcachia wrote:
Quote:
I have re-installed netbeans 6.1 after uninstalling the netbeans 6.5 beta. Now, each time I add a new Visual Web JavaServerFaces page, I get the message "Missing Body Element" in the Design 'tab' and when selecting the JSP 'tab' I get a warning messagebox stating that "The document Page1 could not be loaded". All I get is the java tab which contains what seems to be a correct Java class pertaining to the JSF page.



Any ideas are welcome!






Back to top
Nick Beare
Posted via mailing list.





PostPosted: Mon Oct 13, 2008 10:04 am    Post subject: Missing Body Element when adding new Visual Web JSF pages on NB 6.1 Reply with quote

Sounds like your 'Visual Web JSF Page ...' code template is mucked up!

Mine looks like this:-
<#assign pound = '#'>
<?xml version="1.0" encoding="${encoding}"?>
<!--
Document : ${name}
Created on : ${date}, ${time}
Author : ${user}
-->

<#if j2eePlatformVersion?? && j2eePlatformVersion = "1.5">
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
<jsp:directive.page contentType="text/html;charset=${encoding}"
pageEncoding="${encoding}"/>
<f:view>
<webuijsf:page id="page1">
<webuijsf:html id="html1">
<webuijsf:head id="head1">
<webuijsf:link id="link1"
url="/resources/stylesheet.css"/>
</webuijsf:head>
<webuijsf:body id="body1" style="-rave-layout: grid">
<webuijsf:form id="form1">
</webuijsf:form>
</webuijsf:body>
</webuijsf:html>
</webuijsf:page>
</f:view>
</jsp:root>
<#else>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:ui="http://www.sun.com/web/ui">
<jsp:directive.page contentType="text/html;charset=${encoding}"
pageEncoding="${encoding}"/>
<f:view>
<ui:page id="page1">
<ui:html id="html1">
<ui:head id="head1">
<ui:link id="link1" url="/resources/stylesheet.css"/>
</ui:head>
<ui:body id="body1" style="-rave-layout: grid">
<ui:form id="form1">
</ui:form>
</ui:body>
</ui:html>
</ui:page>
</f:view>
</jsp:root>
</#if>


You could try pasting this into yours and see if that fixes it
(Tools>Templates>JavaServer Faces>Visual Web JSF Page then click Open in
editor, paste the above in and save changes).

I suspect though, that you don't have a clean 6.1 install and other problems
may come to light later. It may be safer to uninstall, clean out your
userdir, then reinstall.

Regards
Nick

-----Original Message-----
From: jcachia [mailto:address-removed]
Sent: 12 October 2008 20:49
To: address-removed
Subject: [nbusers] Missing Body Element when adding new Visual Web JSF pages
on NB 6.1

I have re-installed netbeans 6.1 after uninstalling the netbeans 6.5 beta.
Now, each time I add a new Visual Web JavaServerFaces page, I get the
message "Missing Body Element" in the Design 'tab' and when selecting the
JSP 'tab' I get a warning messagebox stating that "The document Page1 could
not be loaded". All I get is the java tab which contains what seems to be a
correct Java class pertaining to the JSF page.



Any ideas are welcome!
Back to top
roberthook



Joined: 14 Oct 2008
Posts: 35

PostPosted: Tue Oct 14, 2008 11:46 pm    Post subject: Re: Missing Body Element when adding new Visual Web JSF pages on NB 6.1 Reply with quote

jcachia wrote:
I have re-installed netbeans 6.1 after uninstalling the netbeans 6.5 beta. Now, each time I add a new Visual Web JavaServerFaces page, I get the message "Missing Body Element" in the Design 'tab' and when selecting the JSP 'tab' I get a warning messagebox stating that "The document Page1 could not be loaded". All I get is the java tab which contains what seems to be a correct Java class pertaining to the JSF page.

Any ideas are welcome!


I cannot offer any advice, but am having a very similar problem. I followed the instructions at <http://www.netbeans.org/kb/60/web/updatewoodstock.html> to download and install the 4.3 build 6 woodstock, and now EVERY page is throwing this error in the Visual Web designer. That's old pages that were previously fine, and new pages. A new page in a brand new project is fine, though.

This suggests something horribly wrong with either Nebeans or Woodstock in some magic preserved cache, and I only hope that somebody from either project is reading these notes and will actually offer helpful advice other than "reinstall" or "discard your old project".

Yes, I know I sound cranky, that's because I'm cranky, having been fighting with this problem and woodstock problems for three days straight.
Back to top
roberthook



Joined: 14 Oct 2008
Posts: 35

PostPosted: Wed Oct 15, 2008 12:29 am    Post subject: Re: Missing Body Element when adding new Visual Web JSF pages on NB 6.1 Reply with quote

roberthook wrote:
I cannot offer any advice, but am having a very similar problem.


NB, only the designer is barfing for me, the JSP editor is fine. I discovered a barely known log deep in the bowels of my home directory (windows, mea culpa) at

Code:

%HOMEPATH%\.netbeans\6.1\var\log\message.log


which included the following error messages:

Code:

WARNING [org.netbeans.core.modules]: Class-Path value ext/prototype-1.5.0.jar
   from C:\Program Files\NetBeans 6.1\visualweb2\modules\org-netbeans-modules-visualweb-woodstock-webui-jsf.jar
   cannot be found at C:\Program Files\NetBeans 6.1\visualweb2\modules\ext\prototype-1.5.0.jar
WARNING [org.netbeans.core.modules]: Class-Path value ext/dojo-1.0.1.jar
   from C:\Program Files\NetBeans 6.1\visualweb2\modules\org-netbeans-modules-visualweb-woodstock-webui-jsf.jar
   cannot be found at C:\Program Files\NetBeans 6.1\visualweb2\modules\ext\dojo-1.0.1.jar


I strongly suspect that this is the reason the designer is now stuffed. You may like to look in that log for similar problems
Back to top
roberthook



Joined: 14 Oct 2008
Posts: 35

PostPosted: Wed Oct 15, 2008 12:59 am    Post subject: Reply with quote

Continuing on. I have my project libraries copied locally. Realising that it was possible that there were now inconsistencies between local copies of Woodstock and related libraries, I removed those.

I then discovered that there was no simple and obvious way of getting the new versions of the libaries into the project, and had to create a second project just to get the right things copied into the right place, then copied those copies and stuffed around getting all the library pointers back in place. This seems to have resolved the Designer problem.

So. Check to see if you have project-local copies of the libraries, and force the IDE to find and know about the new versions.
Back to top
thompsonwd40
Posted via mailing list.





PostPosted: Wed Oct 15, 2008 1:04 pm    Post subject: Missing Body Element when adding new Visual Web JSF pages on NB 6.1 Reply with quote

Ouch, glad you resolved the problem - unfortunately needing to use brute force.

My solution to my "missing body elements" problem: remove iReports plugin. This occurred a few weeks ago when I installed the iReports plugin along with several other plugins at the same time, I was bug-searching and opening problem reports for several days. Removing iReports solved the Visual JSF problems for me. Hope this helps somebody else some time, AFAIK iReports still blows up Visual JSF in 6.5.

/David

-------------- Original message ----------------------
From: "roberthook" <address-removed>
Quote:
Continuing on. I have my project libraries copied locally. Realising that it was
possible that there were now inconsistencies between local copies of Woodstock
and related libraries, I removed those.



I then discovered that there was no simple and obvious way of getting the new
versions of the libaries into the project, and had to create a second project
just to get the right things copied into the right place, then copied those
copies and stuffed around getting all the library pointers back in place. This
seems to have resolved the Designer problem.



So. Check to see if you have project-local copies of the libraries, and force
the IDE to find and know about the new versions.



Back to top
jcachia



Joined: 12 Oct 2008
Posts: 4

PostPosted: Thu Oct 16, 2008 11:49 am    Post subject: Reply with quote

I tried uninstalling, reming userdir, re-installing and updating plug-ins and the problem remained.
On seeing the iReport plugin suggestion (which plugin I cannot find in the list), I decided to uninstall again netbeans, removed userdir and re-installed but this time WITHOUT updating the latest plug-ins. The problem therefore relates to one of the plug-in updates, by elimitation.

Now when I find some time, I'll try to understand which (out of 27) is the offending one.

Thanks (was expecting some more robustness from such a well publicsed IDE).
Back to top
HandyGeek
Posted via mailing list.





PostPosted: Thu Oct 16, 2008 10:20 pm    Post subject: Missing Body Element when adding new Visual Web JSF pages on NB 6.1 Reply with quote

Glad to hear you isolated the problem, and I feel your pain at having to
manually figure out which plugin is the offending one (been there, done
that myself). When you isolate the offending plugin, please create an
issue to alert the plugin creator of a much-needed fix. You have done
your own homework on your problem, and you are now a contributor to this
"robust" list's growing knowledge base, we are all doing the best we can
with what we got. Best to you! David

jcachia wrote:
Quote:
I tried uninstalling, reming userdir, re-installing and updating plug-ins and the problem remained.

On seeing the iReport plugin suggestion (which plugin I cannot find in the list), I decided to uninstall again netbeans, removed userdir and re-installed but this time WITHOUT updating the latest plug-ins. The problem therefore relates to one of the plug-in updates, by elimitation.



Now when I find some time, I'll try to understand which (out of 27) is the offending one.



Thanks (was expecting some more robustness from such a well publicsed IDE).






Back to top
jcachia



Joined: 12 Oct 2008
Posts: 4

PostPosted: Fri Oct 17, 2008 10:05 am    Post subject: Reply with quote

Definitely. I believe that this and other similar forums are a pearl of knowlegde and dedication which I appreciate and use.

Thanks again.
Back to top
Mordred113



Joined: 14 Apr 2009
Posts: 1

PostPosted: Tue Apr 14, 2009 7:43 pm    Post subject: Fix Visual Web JSF Reply with quote

Yes kill the iReports plugin....that is the fix.
Twisted Evil
Back to top
rochoncuar



Joined: 13 Oct 2009
Posts: 6

PostPosted: Tue Oct 13, 2009 10:40 pm    Post subject: Reply with quote

İ removed the ireport plugin and of course jasperreports plugins likely...
But I have a question, can we still use a .jasper file, with our web applications?
I mean, is adding the required .jar files of jasperreports enough to use a report in our project???
Back to top
Don Millhofer
Posted via mailing list.





PostPosted: Thu Oct 15, 2009 3:26 pm    Post subject: Missing Body Element when adding new Visual Web JSF pages on NB 6.1 Reply with quote

Hi rochoncuar, Yes, we have never used the Jasper plug-in but have used
Jasper reports for a couple years. It works quite well.

Don



rochoncuar wrote:
Quote:
İ removed the ireport plugin and of course jasperreports plugins likely...

But I have a question, can we still use a .jasper file, with our web applications?

I mean, is adding the required .jar files of jasperreports enough to use a report in our project???





Back to top
rochoncuar



Joined: 13 Oct 2009
Posts: 6

PostPosted: Fri Oct 16, 2009 2:00 pm    Post subject: Reply with quote

thanks
Back to top
nastysunil



Joined: 23 Sep 2010
Posts: 1
Location: india

PostPosted: Thu Sep 23, 2010 5:36 am    Post subject: Method not found in Visual web jsf due to ireports Reply with quote


Simply go in Tools>plugins>installed> check in the checkbox of show details..
then select ireports checkbox n simply deactivate ireports n restart ide.. no need to uninstall ireports.. n now Visual web jsf works finer lik b4... enjoy..
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo