JBoss.3.0TemplateAndExamples on JBoss 3.2
cash Aug 25, 2003 8:51 PMDear JBoss community,
I'm having deep trouble with JBoss.3.0TemplateAndExamples on JBoss 3.2, running on Windows 2000 Adv. Server. OS,
using guidelines in Jboss QuickStart-30x.pdf.
**************************
have instaled Java2SDK 1.4.2 in
C:/j2sdk1.4.2/
I have installed JBoss 3.2.1 with Tomcat4.1.24
c:/jboss-3.2.1_tomcat-4.1.24/
And created a JavaService using JavaService.exe from Alexandrias.
http://localhost:8080/jmx-console
shows the JMX Agent View just fine !
I have installed the following:
JBoss.3.0TemplateAndExamples downloaded from http://sourceforge.net/project/jboss (dated 25-08-2002)
in d:\JBoss.3.0TemplateAndExamples
XDoclet 1.1.2 in
c:\xdoclet-1.1.2
JUnit 3.8.1 in
c:\junit3.8.1
Jakarta Ant 1.5.3-1 in
c:\ant-1.5.3-1
************************************
My .ant.properties file has been edited to reflect the above installations as shown below
# ATTENTION: this is an example file how to overwrite settings in this project
# Please rename it to ".ant.properties" and adjust the settings to your needs
# Set the path to the runtime JBoss directory containing the JBoss application server
# ATTENTION: the one containing directories like "bin", "client", "server" etc.
jboss.home=C:/jboss-3.2.1_tomcat-4.1.24
# Set the configuration name that must have a corresponding directory under
# <jboss.home>/server
jboss.configuration=default
# Set the path to the root directory of the XDoclet distribution (see
# http://www.sf.net/projects/xdoclet)
xdoclet.home=C:/xdoclet-1.1.2
# Set the path to the JUnit directory
junit.home=C:/junit3.8.1
# Set this to "true" when you want to force the rebuild of the XDoclet generated
# files (see XDoclet's attribute "force")
xdoclet.force=true
# Set the EJB version you want to use (1.1 or 2.0, see XDoclet's attribute "ejbspec")
ejb.version=2.0
# Set the JBoss version you want to use (2.4, 3.0 etc., see XDoclet's attribute "version")
jboss.version=3.2
# Set the DB type mapping (Hypersonic SQL, PostgreSQL etc., see XDoclet's attribute "typemapping")
type.mapping=Hypersonic SQL
# Set the DataSource name your are going to use (java:/DefaultDS etc., see XDoclet's attribute "datasource")
datasource.name=java:/DefaultDS
# Uncomment this and adjust the path to point directly to JAR file containing the servlet classes
# Attention: By uncommenting this line you start the creation of a WAR file
servlet-lib.path=C:/jboss-3.2.1_tomcat-4.1.24/lib/javax.servlet.jar
******************************
I already copied this javax.servlet.jar file into given folder
when i try to built and debloy a templacte project it gives the result like this...
*************************
C:\JBoss.3.0TemplateAndExamples\template>ant main
Buildfile: build.xml
check-environment:
check-jboss:
wrong-jboss:
check-xdoclet:
wrong-xdoclet:
check-junit:
wrong-junit:
init:
[echo] build.compiler = ${build.compiler}
[echo] user.home = C:\Documents and Settings\Prakash
[echo] java.home = C:\j2sdk1.4.2\jre
[echo] ant.home = C:\ant-1.5.3-1
[echo] jboss.home = C:/jboss-3.2.1_tomcat-4.1.24
[echo] xdoclet.home = C:/xdoclet-1.1.2
[echo] junit.home = C:/junit3.8.1
[echo] java.class.path = C:\j2sdk1.4.2\lib\tools.jar;C:\ant-1.5.3-1\lib\xml
-apis.jar;C:\ant-1.5.3-1\lib\xercesImpl.jar;C:\ant-1.5.3-1\lib\optional.jar;C:\a
nt-1.5.3-1\lib\ant.jar;C:\j2sdk1.4.2\lib;C:\j2sdk1.4.2\lib\tools.jar;C:\ant-1.5.
3-1\lib;C:\junit3.8.1;C:\junit3.8.1\junit.jar;C:\xdoclet-1.1.2\lib\xdoclet.jar;
xdoclet-generate:
BUILD FAILED
file:C:/JBoss.3.0TemplateAndExamples/template/build.xml:168: java.lang.NoClassDe
fFoundError: org/apache/log4j/Category
Total time: 2 seconds
C:\JBoss.3.0TemplateAndExamples\template>
*********************************
I cannot currently figure out how to fix it.
Please give me some guidance on this. I'm not a deployment expert, but willing to learn ;-)
I am guessing it has to do with my XDoclet setup.
Any ideas on this ?
Kind regards,
Cash.