wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes JBoss and Netbeans 6.5 workaround is not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss and Netbeans 6.5 workaround is not working" Watch "JBoss and Netbeans 6.5 workaround is not working" New topic
Author

JBoss and Netbeans 6.5 workaround is not working

Varun Nayudu
Ranch Hand

Joined: Jun 26, 2006
Posts: 157
hi,

I am using netbeansIDE 6.5 and jboss5.0.0GA, since netbeans does not support jboss due to some reason. I had come across a site where it had give a way to work around this problem. It had mentioned to copy some files from one direcory of jboss to another. I did as it was told and jboss was installed on netbeans .But now when i try to run the server from netbeans it gives the following error

| was unexpected at this time.

please advice me what is wrong ? :roll:


SCJP 1.5, SCWCD 1.5
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Either the site you found provided incorrect instructions, or you followed the instructions incorrectly. Other than that, I could not make any other guess based the information (or lack of it) you provided.


JBoss In Action
Varun Nayudu
Ranch Hand

Joined: Jun 26, 2006
Posts: 157
I am sending you the site from where i got this!

http://forums.netbeans.org/topic6159.html
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

You'll be happy to know that I got the same problem you did. ;)

I suggest posting this on the same NetBeans thread you mentioned - it is after all a NetBeans issue.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Found the problem. Go into JBoss Application Server properties (in NetBean, in the Services list) and uncheck the "Use IDE Proxy Settings".
Varun Nayudu
Ranch Hand

Joined: Jun 26, 2006
Posts: 157
Thanks man you are a life saver
Varun Nayudu
Ranch Hand

Joined: Jun 26, 2006
Posts: 157
Peter Johnson wrote:Found the problem. Go into JBoss Application Server properties (in NetBean, in the Services list) and uncheck the "Use IDE Proxy Settings".



I still facing problems , I am using JSF and when i try to run the app it gives the following error

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 you have any idea in this matter please let me know.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Sounds like you included the JSF JAR file in your app - remove it, JBoss AS already provides that JAR.
Varun Nayudu
Ranch Hand

Joined: Jun 26, 2006
Posts: 157
Peter Johnson wrote:Sounds like you included the JSF JAR file in your app - remove it, JBoss AS already provides that JAR.


i am using netbeans6.5 in which it provides you with that option whether to use the visual web jsf or no. And i want ot use that option since it enables me to build the web application quicker. Isnt there nother option through which i can use the netbeans jsf jar file and not the jboss one .

Dick Davies
Greenhorn

Joined: Sep 30, 2008
Posts: 4
Varun Nayudu wrote:
Peter Johnson wrote:Sounds like you included the JSF JAR file in your app - remove it, JBoss AS already provides that JAR.


i am using netbeans6.5 in which it provides you with that option whether to use the visual web jsf or no. And i want ot use that option since it enables me to build the web application quicker. Isnt there nother option through which i can use the netbeans jsf jar file and not the jboss one .



You should be able to build against that, but not bundle the jar for deployment.

Better yet, you might want to tell JBoss to let the WAR load its own JSF libraries; no idea how you'd do that on JBoss, I've
done something similar to get Alfresco to run on Glassfish though.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss and Netbeans 6.5 workaround is not working
 
Similar Threads
Java EE 5 Development with NetBeans 6 - features
Netbeans 6 w/ JBoss
Linking Jboss to Netbeans
Integration of JBoss5.0.0.GA with Netbeans6.1
Can't add JBoss server to Netbeans 6.7