• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JBoss4.0 Server,Project,Client classpath jar files

 
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Can someone please help about:

- which jar files to include in JBoss4.0 Server,Client and Project classpath. I am configuring JBoss4.0 in Eclipse3.0.1 using Lomboz3.0.1

 
Damanjit Kaur
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I found the solution to my problem. The server file in lomboz plugin has to be like :


<serverDefinition
name="JBOSS 4.0 ALL"
ejbModules="true"
webModules="true"
earModules="true">
<property id="serverRootDirectory"
label="Application Server Directory:"
type="directory"
default="C:/jboss-4.0.0" />
<property id="serverAddress"
label="Address:"
type="string"
default="127.0.0.1" />
<property id="serverPort"
label="Port:"
type="string"
default="8080" />
<property id="classPathVariableName"
label="Classpath Variable Name:"
type="string"
default="JBOSS_HOME" />
<property id="classPath"
label="Classpath Variable:"
type="directory"
default="C:/jboss-4.0.0" />
<serverHome>${serverRootDirectory}</serverHome>
<webModulesDeployDirectory>${serverRootDirectory}/server/all/deploy</webModulesDeployDirectory>
<ejbModulesDeployDirectory>${serverRootDirectory}/server/all/deploy</ejbModulesDeployDirectory>
<earModulesDeployDirectory>${serverRootDirectory}/server/all/deploy</earModulesDeployDirectory>
<jndiInitialContextFactory>org.jnp.interfaces.NamingContextFactory</jndiInitialContextFactory>
<jndiProviderUrl>jnp://${serverAddress}:1099</jndiProviderUrl>;
<startClass>org.jboss.Main</startClass>
<startWorkingDirectory>${serverRootDirectory}/bin</startWorkingDirectory>
<startVmParameters>-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=n,suspend=y -Xms128m -Xmx512m</startVmParameters>
<startProgramArguments>-c all</startProgramArguments>
<stopClass>org.jboss.Shutdown</stopClass>
<stopWorkingDirectory>${serverRootDirectory}/bin</stopWorkingDirectory>
<stopVmParameters></stopVmParameters>
<stopProgramArguments>-S</stopProgramArguments>
<serverClassPath>
<jar type="variable">JDK_TOOLS</jar>
<jar type="variable">${classPathVariableName}/bin/run.jar</jar>
<jar type="variable">${classPathVariableName}/bin/shutdown.jar</jar>
<jar type="variable">${classPathVariableName}/client/jboss-j2ee.jar</jar>
<jar type="variable">${classPathVariableName}/server/all/lib/javax.servlet.jar</jar>
<jar type="variable">${classPathVariableName}/lib/jboss-system.jar</jar>
<jar type="variable">${classPathVariableName}/lib/concurrent.jar</jar>
<jar type="variable">${classPathVariableName}/server/all/lib/jboss.jar</jar>
<jar type="variable">${classPathVariableName}/server/all/lib/jnpserver.jar</jar>
<jar type="variable">${classPathVariableName}/server/all/lib/jpl-pattern.jar</jar>
<jar type="variable">${classPathVariableName}/server/all/lib/jpl-util.jar</jar>
<jar type="variable">${classPathVariableName}/server/all/lib/jboss-transaction.jar</jar>
<jar type="variable">${classPathVariableName}/server/all/lib/bcel.jar</jar>
<jar type="variable">${classPathVariableName}/lib/dom4j.jar</jar>
<jar type="variable">${classPathVariableName}/lib/gnu-regexp.jar</jar>
<jar type="variable">${classPathVariableName}/lib/getopt.jar</jar>
<jar type="variable">${classPathVariableName}/lib/endorsed/xercesImpl.jar</jar>
<jar type="variable">${classPathVariableName}/lib/endorsed/xml-apis.jar</jar>
<jar type="variable">${classPathVariableName}/server/all/lib/jgroups.jar</jar>
<jar type="variable">${classPathVariableName}/server/all/lib/jboss-iiop.jar</jar>
<jar type="variable">${classPathVariableName}/lib/commons-logging.jar</jar>
<jar type="variable">${classPathVariableName}/server/all/lib/avalon-framework.jar</jar>
<jar type="variable">${classPathVariableName}/server/all/lib/jacorb.jar</jar>
<jar type="variable">${classPathVariableName}/server/all/lib/jboss-jca.jar</jar>
<jar type="variable">${classPathVariableName}/server/all/lib/jbosssx.jar</jar>
</serverClassPath>
<clientClassPath>
<jar type="variable">${classPathVariableName}/client/jboss-j2ee.jar</jar>
<jar type="variable">${classPathVariableName}/client/jnp-client.jar</jar>
<jar type="variable">${classPathVariableName}/client/jboss-client.jar</jar>
<jar type="variable">${classPathVariableName}/client/jboss-common-client.jar</jar>
<jar type="variable">${classPathVariableName}/client/jbosssx-client.jar</jar>
<jar type="variable">${classPathVariableName}/client/log4j.jar</jar>
<jar type="variable">${classPathVariableName}/server/all/lib/jnpserver.jar</jar>
</clientClassPath>
<projectClassPath>
<jar type="variable">JDK_TOOLS</jar>
<jar type="variable">${classPathVariableName}/bin/run.jar</jar>
<jar type="variable">${classPathVariableName}/bin/shutdown.jar</jar>
<jar type="variable">${classPathVariableName}/client/jboss-j2ee.jar</jar>
<jar type="variable">${classPathVariableName}/server/all/lib/javax.servlet.jar</jar>
<jar type="variable">${classPathVariableName}/lib/jboss-system.jar</jar>
<jar type="variable">${classPathVariableName}/lib/concurrent.jar</jar>
<jar type="variable">${classPathVariableName}/server/all/lib/jboss.jar</jar>
<jar type="variable">${classPathVariableName}/server/all/lib/jnpserver.jar</jar>
<jar type="variable">${classPathVariableName}/server/all/lib/jpl-pattern.jar</jar>
<jar type="variable">${classPathVariableName}/server/all/lib/jpl-util.jar</jar>
<jar type="variable">${classPathVariableName}/server/all/lib/jboss-transaction.jar</jar>
<jar type="variable">${classPathVariableName}/server/all/lib/bcel.jar</jar>
</projectClassPath>
</serverDefinition>

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you for your advice
but i still have some question
i program with jdk1.5+lomboz+jboss4.0
when i debug the j2ee project
it show me :
ERROR: JDWP unable to get necessary JVMTI capabilities. ["debugInit.c",L279]
can anybody tell me how can i get rid of it ?

thanks a lot!
 
Damanjit Kaur
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I also got the same error when running with eclipse3.01 with versions of jboss and lomboz as you mentioned. I read the Eclipse readme documentation which says it does notsupport jdk1.5 as yet.

The problem was because of -Xrunjdwp which is mentioned in server file in lomboz plugin above. If you read JDWP and VM parameters of jdk1.5, it specifies -Xms and -Xmx paprameters are higher than the one as specified here and also there are changes in -Xrunjdwp for specifying transport. I could not understand the whole thing proplerly and had posted my problem in Eclipse section but no one replied.

I solved this problem by just removing this -Xrunjdwp line and rest remaining the same and was able to start Jboss from Eclipse in debug mode.

<startVmParameters>-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=n,suspend=y -Xms128m -Xmx512m</startVmParameters>



The new line I wrote like this:

<startVmParameters>-Xdebug -Xnoagent -Djava.compiler=NONE </startVmParameters>
 
chen tao
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
thank you for your reply! i changed my jboss.server and reinstalled jdk1.4.2,but something is still wrong! when i start jboss4 in eclipse3 using lomboz3,it show me :

2004-12-16 21:12:47,984 ERROR [org.jboss.naming.NamingService]
Starting failed jboss:service=Naming
java.lang.ClassCastException

when i start jboss using run.bat and deploy my ejb with lomboz directly (not start debug), everything performs well.

would you please give me some advice? thanks again!


chentao
 
Damanjit Kaur
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have no idea about this problem.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by chen tao:
hi
thank you for your reply! i changed my jboss.server and reinstalled jdk1.4.2,but something is still wrong! when i start jboss4 in eclipse3 using lomboz3,it show me :

2004-12-16 21:12:47,984 ERROR [org.jboss.naming.NamingService]
Starting failed jboss:service=Naming
java.lang.ClassCastException

when i start jboss using run.bat and deploy my ejb with lomboz directly (not start debug), everything performs well.

would you please give me some advice? thanks again!


chentao

 
reply
    Bookmark Topic Watch Topic
  • New Topic