NetBeans Forums

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

Unable to run web app using netbeans and jboss

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



Joined: 20 Jan 2009
Posts: 1

PostPosted: Tue Jan 20, 2009 5:05 am    Post subject: Unable to run web app using netbeans and jboss Reply with quote

I am using netbeans 6.5 and jboss 5.0.0 GA and have been able to configure and start the jboss server but am still facing difficulties running the application .

I had build a small test app for testing if the server is working properly or not . I had used Visual web JSF ,but when i try to run it it shows the following error .

09:48:08,741 ERROR [application] JSF1029: The specified InjectionProvider implementation 'org.jboss.web.jsf.integration.injection.JBossDelegatingInjectionProvider' does not implement the InjectionProvider interface.
09:48:08,742 INFO [application] JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed.
09:48:10,036 ERROR [[/WebApplication1]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
java.lang.ClassCastException: com.sun.faces.config.WebConfiguration cannot be cast to com.sun.faces.config.WebConfiguration
at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:154)
....
....
....
....
....
....

Please if some body has some idea please let me know.
I am also attaching the full error which i got on my server.



AppError.txt
 Description:

Download
 Filename:  AppError.txt
 Filesize:  101.92 KB
 Downloaded:  817 Time(s)

Back to top
luislobo



Joined: 04 Feb 2009
Posts: 21

PostPosted: Wed Feb 04, 2009 10:22 pm    Post subject: Reply with quote

Hi,

I have the same error, were you able to fix it?
I am still wondering how to make it work.

Thank you,
Luis
Back to top
sangireddi@gmail.com



Joined: 05 Mar 2009
Posts: 3

PostPosted: Thu Mar 05, 2009 12:35 pm    Post subject: Hi Reply with quote

Hi i am also struggling with same issue ...did you resolved please let me know ..
Thanks in advance
Back to top
BjPenn



Joined: 19 Mar 2009
Posts: 6

PostPosted: Fri Mar 20, 2009 12:36 pm    Post subject: Reply with quote

anyone resolved it????
Back to top
zxeem



Joined: 31 Mar 2009
Posts: 1
Location: Egypt

PostPosted: Tue Mar 31, 2009 2:24 am    Post subject: This Link will Help Reply with quote

http://dushyants.blogspot.com/2009/01/error-running-jsf-with-jboss.html


-----
This is the original post
----


Error running JSF with Jboss
Error: The specified InjectionProvider implementation 'org.jboss.web.jsf.integration.injection.JBossDelegatingInjectionProvider' does not implement the InjectionProvider interface.

Solution:
You need to remove the bundled JSF implementation. To do so you need to comment/remove the following from the web.xml found under jboss-4.2.0.GA\server\\deploy\jboss-web.deployer\conf.

Under jboss 5.0.0GA jboss-5.0.0.GA\server\default\deployers\jbossweb.deployer\web.xml

<!-- Comment/Remove this -->
<!-- Configures JSF for a web application if the javax.faces.webapp.FacesServlet is declared -->
<!-- in web.xml. -->
<!--
<listener>
<listener-class>org.jboss.web.jsf.integration.config.JBossJSFConfigureListener </listener-class>
</listener>
-->
<!-- Comment/Remove this -->
<!-- Listens to all web app lifecycle events so that @PreDestroy can be called on -->
<!-- JSF managed beans that go out of scope. You can comment this out if you -->
<!-- don't use JSF or you don't use annotations on your managed beans. -->
<!--
<listener>
<listener-class>com.sun.faces.application.WebappLifecycleListener</listener-class>
</listener>
-->


----------
I wish this helps
Back to top
mmanna



Joined: 03 Apr 2009
Posts: 1
Location: Dhaka

PostPosted: Fri Apr 03, 2009 8:39 pm    Post subject: Reply with quote

Excellent, Thanks Smile zxeem.
Back to top
netmackan



Joined: 12 May 2009
Posts: 3
Location: Swe

PostPosted: Tue May 12, 2009 9:41 pm    Post subject: Re: This Link will Help Reply with quote

Doing the changes to JBoss fixed the problem for my application but broke other applications using JSF on the server so doing the change is not really an option for me.

Anyone knows why we need this change or if there is some other way to fix it? I still want to use NetBeans and JSF and deploy to JBoss 5.

Thanks,
Markus
Back to top
dchester11



Joined: 15 May 2010
Posts: 1

PostPosted: Sat May 15, 2010 10:51 pm    Post subject: Remove JSF from Net bean project Reply with quote

I removed the JSF implementation from my NetBeans project and it worked fine. Right clicked the project, selected properties and clicked the Libraries link. I unchecked the JSF box but did not select 'Remove'; just unchecked the box. It compiled in NetBeans 6.8 and deployed on JBoss AS 5
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE 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