| View previous topic :: View next topic |
| Author |
Message |
varunnayudu
Joined: 20 Jan 2009 Posts: 1
|
Posted: Tue Jan 20, 2009 5:05 am Post subject: Unable to run web app using netbeans and jboss |
|
|
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.
| Description: |
|
 Download |
| Filename: |
AppError.txt |
| Filesize: |
101.92 KB |
| Downloaded: |
817 Time(s) |
|
|
| Back to top |
|
 |
luislobo
Joined: 04 Feb 2009 Posts: 21
|
Posted: Wed Feb 04, 2009 10:22 pm Post subject: |
|
|
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
|
Posted: Thu Mar 05, 2009 12:35 pm Post subject: Hi |
|
|
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
|
Posted: Fri Mar 20, 2009 12:36 pm Post subject: |
|
|
| anyone resolved it????
|
|
| Back to top |
|
 |
zxeem
Joined: 31 Mar 2009 Posts: 1 Location: Egypt
|
Posted: Tue Mar 31, 2009 2:24 am Post subject: This Link will Help |
|
|
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
|
Posted: Fri Apr 03, 2009 8:39 pm Post subject: |
|
|
Excellent, Thanks zxeem.
|
|
| Back to top |
|
 |
netmackan
Joined: 12 May 2009 Posts: 3 Location: Swe
|
Posted: Tue May 12, 2009 9:41 pm Post subject: Re: This Link will Help |
|
|
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
|
Posted: Sat May 15, 2010 10:51 pm Post subject: Remove JSF from Net bean project |
|
|
| 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 |
|
 |
|