aspose file tools*
The moose likes JBoss/WildFly and the fly likes JBoss4.0 Server,Project,Client classpath jar files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss4.0 Server,Project,Client classpath jar files" Watch "JBoss4.0 Server,Project,Client classpath jar files" New topic
Author

JBoss4.0 Server,Project,Client classpath jar files

Damanjit Kaur
Ranch Hand

Joined: Oct 18, 2004
Posts: 346
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

Joined: Oct 18, 2004
Posts: 346
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>

chen tao
Greenhorn

Joined: Dec 15, 2004
Posts: 4
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

Joined: Oct 18, 2004
Posts: 346
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

Joined: Dec 15, 2004
Posts: 4
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

Joined: Oct 18, 2004
Posts: 346
Hi,

I have no idea about this problem.
Giorgio Zanetti
Greenhorn

Joined: Jan 13, 2005
Posts: 1
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss4.0 Server,Project,Client classpath jar files
 
Similar Threads
Compiling on a network.
jboss not able to run BMP Bean
Jboss + Lomboz +Eclipse setup
Error while calling EJB
Jboss4.0 And Axis