Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » open up faces-config.xml throws exception
open up faces-config.xml throws exception [message #475008] Tue, 07 August 2007 19:29 Go to next message
Marius Adamut is currently offline Marius AdamutFriend
Messages: 2
Registered: July 2009
Junior Member
I'm getting this exception when trying to open faces-config.xml:

!ENTRY org.eclipse.core.jobs 4 2 2007-08-07 12:12:09.571
!MESSAGE An internal error occurred during: ""Loading faces-config model"".
!STACK 0
org.eclipse.core.runtime.AssertionFailedException: assertion failed:
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:109)
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:95)
at
org.eclipse.jst.jsf.facesconfig.ui.ModelLoader$ModelLoaderJo b.loadModel(ModelLoader.java:165)
at
org.eclipse.jst.jsf.facesconfig.ui.ModelLoader$ModelLoaderJo b.run(ModelLoader.java:122)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

It started happening after I switched to Eclipse 3.3 with WTP 2.0

I've noticed the problem is caused by the fact that in the
..settings/org.eclipse.wst.common.component file in the following line:
<wb-resource deploy-path="/" source-path="/x/y"/> the source-path attribute
is a subdirectory. If I have use this:
<wb-resource deploy-path="/" source-path="/x"/> then I get no problem.

Did anybody encouter this problem? Is this the normal behaviour?

Thanks,

Marius.
Re: open up faces-config.xml throws exception [message #475010 is a reply to message #475008] Wed, 08 August 2007 17:45 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
This is definitely not expected behaviour. It appears as though the web
content folder doesn't exist even though the project is faceted as a
dynamic web project.

Would it be possible to open a bug and either post the project that is
failing as an attachment or post a simple project that reproduces the
problem?


--Cam
Re: open up faces-config.xml throws exception [message #475011 is a reply to message #475008] Wed, 08 August 2007 18:27 Go to previous message
Ian Trimble is currently offline Ian TrimbleFriend
Messages: 137
Registered: July 2009
Senior Member
This is due to a bug
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=199304). Currently, the
"WebContent" folder is incorrectly assumed to be a direct child of the
project folder (i.e. it cannot be nested deeper than one level for certain
functionality to work correctly).

I apologize for the inconvenience, and I thank you for bringing it to our
attention.

- Ian Trimble (Oracle), JSF Tools Project
Re: open up faces-config.xml throws exception [message #613868 is a reply to message #475008] Wed, 08 August 2007 17:45 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
This is definitely not expected behaviour. It appears as though the web
content folder doesn't exist even though the project is faceted as a
dynamic web project.

Would it be possible to open a bug and either post the project that is
failing as an attachment or post a simple project that reproduces the
problem?


--Cam
Re: open up faces-config.xml throws exception [message #613869 is a reply to message #475008] Wed, 08 August 2007 18:27 Go to previous message
Ian Trimble is currently offline Ian TrimbleFriend
Messages: 137
Registered: July 2009
Senior Member
This is due to a bug
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=199304). Currently, the
"WebContent" folder is incorrectly assumed to be a direct child of the
project folder (i.e. it cannot be nested deeper than one level for certain
functionality to work correctly).

I apologize for the inconvenience, and I thank you for bringing it to our
attention.

- Ian Trimble (Oracle), JSF Tools Project
Previous Topic:Servlet FacesServlet Exception
Next Topic:WTP 3.0 Requirements document ready for review and first public meeting...
Goto Forum:
  


Current Time: Thu Apr 25 10:08:23 GMT 2024

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

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

Back to the top