NetBeans Forums

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

Jboss 5.0.1 integration

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



Joined: 26 Feb 2009
Posts: 2

PostPosted: Thu Feb 26, 2009 6:08 pm    Post subject: Jboss 5.0.1 integration Reply with quote

Hi,
I have added Jboss 5 server to Netbeans 6.1 for developing a webapp. When I try to compile it is not able to find javax.servlet package.

What I think is as below...

With the new jboss 5 server there is a slight change in directory structure. Now libraries common to the different configurations in jboss are kept under JBOSS_HOME/common/lib. So servlet-api.jar (which has javax.servlet package) is under JBOSS_HOME/common/lib. And when I added jboss server to netbeans, ide is not picking libraries under JBOSS_HOME/common/lib.

I can add this jar to the classpath and solve my issue but is this something to be added to Netbeans 6.1? My feeling is when we add a server to Netbeans IDE should bring all libraries for that server automatically.

Appreciate your help

Thanks,
Back to top
Dieter Tremel
Posted via mailing list.





PostPosted: Fri Feb 27, 2009 8:21 am    Post subject: Jboss 5.0.1 integration Reply with quote

Jinzzz schrieb:
Quote:
I have added Jboss 5 server to Netbeans 6.1 for developing a webapp. When I try to compile it is not able to find javax.servlet package.

I don't know if this helps, but JBoss 5 integration is fixed in 6.5
patch 2, see http://www.netbeans.org/issues/show_bug.cgi?id=154800

Dieter
Back to top
Jinzzz



Joined: 26 Feb 2009
Posts: 2

PostPosted: Fri Feb 27, 2009 11:47 pm    Post subject: Reply with quote

Thanks for the response. This is related to that. That time we were not able to select default configuration of jboss 5 in Netbeans IDE. That is already fixed too.
Back to top
BjPenn



Joined: 19 Mar 2009
Posts: 6

PostPosted: Thu Mar 19, 2009 11:28 am    Post subject: Reply with quote

hey jinzzz i have the same probleme , was you able to resolve it finally?? .

thanks you dude.
Back to top
BjPenn



Joined: 19 Mar 2009
Posts: 6

PostPosted: Thu Mar 19, 2009 11:34 am    Post subject: Reply with quote

mmmmmmmm i have read in other forums that i shouldn't add no jars that contain any javax.* classes or xercesxml.* classes too, but as you said when i change form glassfish to jboss 5.0.1GA the netbeans is not able to import those libraries.
Back to top
BjPenn



Joined: 19 Mar 2009
Posts: 6

PostPosted: Thu Mar 19, 2009 11:41 am    Post subject: Reply with quote

the error i am getting from the jboss server is : error determining the structure:myWar.WAR
(sorry for the multiple replies).
Back to top
BjPenn



Joined: 19 Mar 2009
Posts: 6

PostPosted: Wed Mar 25, 2009 10:52 am    Post subject: Reply with quote

ok well i got it resolved, just make your classpath point to JBOSS_HOME/common/lib/ and if you are using javaserverfaces to
JBOSS_HOME/server/xxx/deploy/jbossweb.sar/jsf-libs/
Back to top
András Csányi
Posted via mailing list.





PostPosted: Tue Apr 07, 2009 7:41 am    Post subject: Jboss 5.0.1 integration Reply with quote

2009/2/26 Jinzzz <address-removed>:
Quote:

With the new jboss 5 server there is a slight change in directory structure. Now libraries common to the different configurations in jboss are kept under JBOSS_HOME/common/lib. So servlet-api.jar (which has javax.servlet package) is under JBOSS_HOME/common/lib. And when I added jboss server to netbeans, ide is not picking libraries under JBOSS_HOME/common/lib.

I can add this jar to the classpath and solve my issue but is this something to be added to Netbeans 6.1? My feeling is when we add a server to Netbeans IDE should bring all libraries for that server automatically.

Hi Jinzzz!

I have the same problem too with .jars under $jboss_home/common/lib.
How did you add these directory or jars to classpath? My resolve is I
copied the jars under the $jboss_homoe/lib directory.

Appreciate you help!

András

--
- -
-- Csanyi Andras -- http://sayusi.hu -- Sayusi Ando
-- "Bízzál Istenben és tartsd szárazon a puskaport!".-- Cromwell
Back to top
nghia_nguyen



Joined: 24 May 2009
Posts: 1

PostPosted: Sun May 24, 2009 7:38 am    Post subject: Reply with quote

Point your project to the coorect library where javax resides. It will resolve the error message.
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