Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss and Netbeans 6.5 workaround is not working

 
Varun Nayudu
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Varun Nayudu
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sending you the site from where i got this!

http://forums.netbeans.org/topic6159.html
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks man you are a life saver
 
Varun Nayudu
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like you included the JSF JAR file in your app - remove it, JBoss AS already provides that JAR.
 
Varun Nayudu
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic