I've been looking and looking for information about how to correctly install this three 'things'... Becoming really tired of the lack of information that there is through the net and all the problems I've been having for thelast 3 days with Eclipse..
So now that it is all working I'm going to write here what I've followed.
First of all, what had I installed?
J2sdk 1.4.2
JBoss 4.0.1
apache
ant 1.6.2
( Working correctly to do my
j2ee project.)
And now, what have I installed?
Eclipse 3.0.2
Lomboz 3.0.1
EMF 2.0.2
Everybody trys to follow this tutorial:
http://www.tusc.com.au/tutorial/html/ And I've had a lot of problems doing it... More over it's not updated.
So I recommend this one:
http://weblogs.asp.net/jdanforth/articles/149111.aspx wich it explains everything really clear and make you notice that if you are installing Eclipse 3.0.x and you also want to install Lomboz you need EMF.
Once you have installed your Eclipse + Lomboz + EMF, configurated and checked it all works ok, you still will need a server definition for the Jboss version you are using. Lomboz 3.0.1 only have server definitions for jboss 3.2.x and older ones.
So the big problem at the end will be find this. I'm using jboss 4.0.1 and where can I find the server definition I need for Lomboz??
http://blog.csdn.net/javamxj/archive/2005/04/11/342990.aspx A japanese webpage! How can be possible that only 2 or 3 webpages have this file? And are japanese, so there is no other webpage in english or other language with this information...
As it has been said in this site, when you get the server definition for the Jboss version you are using, you have to save it as jboss<version>.server (in this case, jboss401.server) and put it on this directory: <eclipse_home>/plugins/com.objectlearn.jdt.j2ee_3.0.1/servers
The rest it is explained in the tutorial I've recommended here.
It is all working right now.
I'm sorry, I know I'm probably not explaining this too much clear, but I hope this help at least someone.
It would have helped me if I had found it ago...
Nothing more to say,
good luck with this....
P.S. This is the server definition for jboss 4.0.1 found in that webpage:
<serverDefinition
name="JBOSS 4.0.1"
ejbModules="true"
webModules="true"
earModules="true">
<property id="serverRootDirectory"
label="Application Server Directory:"
type="directory"
default="I:/Software/jboss-4.0.1" />
<property id="serverAddress"
label="Address:"
type="string"
default="127.0.0.1" />
<property id="serverPort"
label="Port:"
type="string"
default="8080" />
<property id="serverConfig"
label="Server Configuration (minimal/default/all):"
type="string"
default="default" />
<property id="classPathVariableName"
label="Classpath Variable Name:"
type="string"
default="JBOSS4.0.1" />
<property id="classPath"
label="Classpath Variable:"
type="directory"
default="I:/Software/jboss-4.0.1" />
<serverHome>${serverRootDirectory}</serverHome>
<webModulesDeployDirectory>${serverRootDirectory}/server/${serverConfig}/deploy</webModulesDeployDirectory>
<ejbModulesDeployDirectory>${serverRootDirectory}/server/${serverConfig}/deploy</ejbModulesDeployDirectory>
<earModulesDeployDirectory>${serverRootDirectory}/server/${serverConfig}/deploy</earModulesDeployDirectory>
<jndiInitialContextFactory>org.jnp.interfaces.NamingContextFactory</jndiInitialContextFactory>
<jndiProviderUrl>
jnp://${serverAddress}:1099</jndiProviderUrl>
<startClass>org.jboss.Main</startClass>
<startWorkingDirectory>${serverRootDirectory}/bin</startWorkingDirectory>
<startVmParameters>-Dprogram.name=run.bat -Djava.endorsed.dirs=${serverRootDirectory}/bin/../lib/endorsed -Xms128m -Xmx512m</startVmParameters>
<startProgramArguments>-c ${serverConfig}</startProgramArguments>
<stopClass>org.jboss.Shutdown</stopClass>
<stopWorkingDirectory>${serverRootDirectory}/bin</stopWorkingDirectory>
<stopVmParameters>-cp ${classPathVariableName}/bin/shutdown.jar -Djboss.boot.loader.name=shutdown.bat</stopVmParameters>
<stopProgramArguments>-S</stopProgramArguments>
<serverClassPath>
<jar type="variable">JDK_TOOLS</jar>
<jar type="variable">${classPathVariableName}/bin/run.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/jbossall-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/default/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/${serverConfig}/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/${serverConfig}/lib/jboss.jar</jar>
<jar type="variable">${classPathVariableName}/server/${serverConfig}/lib/jnpserver.jar</jar>
<jar type="variable">${classPathVariableName}/server/${serverConfig}/lib/jpl-pattern.jar</jar>
<jar type="variable">${classPathVariableName}/server/${serverConfig}/lib/jpl-util.jar</jar>
<jar type="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss-transaction.jar</jar>
<jar type="variable">${classPathVariableName}/server/${serverConfig}/lib/bcel.jar</jar>
</projectClassPath>
<adminTool>
<web><deploy /><undeploy />
</web>
<ejb><deploy /><undeploy />
</ejb>
<ear><deploy /><undeploy />
<webModule><deploy /><undeploy />
</webModule>
<ejbModule><deploy /><undeploy />
</ejbModule>
</ear>
</adminTool>
<adminToolPath>
</adminToolPath>
</serverDefinition>
Thanks to whoever wrote it...
If you need any other server definition, just look for it in google, searching for jboss<version>.server