| View previous topic :: View next topic |
| Author |
Message |
Jinzzz
Joined: 26 Feb 2009 Posts: 2
|
Posted: Thu Feb 26, 2009 6:08 pm Post subject: Jboss 5.0.1 integration |
|
|
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.
|
Posted: Fri Feb 27, 2009 8:21 am Post subject: Jboss 5.0.1 integration |
|
|
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
|
Posted: Fri Feb 27, 2009 11:47 pm Post subject: |
|
|
| 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
|
Posted: Thu Mar 19, 2009 11:28 am Post subject: |
|
|
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
|
Posted: Thu Mar 19, 2009 11:34 am Post subject: |
|
|
| 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
|
Posted: Thu Mar 19, 2009 11:41 am Post subject: |
|
|
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
|
Posted: Wed Mar 25, 2009 10:52 am Post subject: |
|
|
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.
|
Posted: Tue Apr 07, 2009 7:41 am Post subject: Jboss 5.0.1 integration |
|
|
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
|
Posted: Sun May 24, 2009 7:38 am Post subject: |
|
|
| Point your project to the coorect library where javax resides. It will resolve the error message. |
|
| Back to top |
|
 |
|