-
1. Re: xdoclet.ejb.EjbDocletTask
dotskills Oct 9, 2002 1:12 PM (in response to dotskills)this is my .ant.properties file
# 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.0.3
# 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-bin-1.2.0
# Set this to "true" when you want to force the rebuild of the XDoclet generated
# files (see XDoclet's attribute "force")
xdoclet.force=false
# 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.0
# 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-all/build/output/jboss-3.1.0alpha/lib/javax.servlet.jar -
2. Re: xdoclet.ejb.EjbDocletTask
schaefera Oct 9, 2002 9:41 PM (in response to dotskills)When you are going to use BETA software you don't have to complain about problems.
Use XDoclet 1.1.2 otherwise consult the XDoclet 1.2 docu maybe the path changed.
Andy -
3. Re: xdoclet.ejb.EjbDocletTask
guydaniel Oct 31, 2002 7:31 PM (in response to dotskills)This is a bug in ant ... :)
Or maybe it's a problem with the class loader ?
Anyway, delete the file options.jar from c:\ant-1.5.1\lib and it will get past that error.
If you use any of ant's optional tasks (I didn't take a good look at your script) then you'll have to created a task for it and include wherever you put the options.jar in a nested classpath. -
4. Re: xdoclet.ejb.EjbDocletTask
zhenbi Nov 4, 2002 5:51 AM (in response to dotskills)i think try xdoclet 1.1.2 is right. i had the same problem, now i use xdoclet 1.1.2 is working.
-
5. Re: xdoclet.ejb.EjbDocletTask
henrikwh Nov 5, 2002 4:56 PM (in response to dotskills)Hello
I was trying to get the JBoss.3.0TemplateAndExamples to work.
But I cant seem to compile the "Template". I get the following message:
----
init:
[echo] build.compiler = ${build.compiler}
[echo] user.home = /home/henrikwh
[echo] java.home = /usr/java/j2sdk1.4.1/jre
[echo] ant.home = /usr
[echo] jboss.home = /usr/java/jboss-3.0.4_tomcat-4.1.12
[echo] xdoclet.home = /home/henrikwh/dev/xdoclet1.1.2
[echo] java.class.path = /usr/share/java/xml-commons-apis.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/share/java/ant-optional.jar:/usr/share/java/ant.jar:/usr/java/j2sdk1.4.1/lib/tools.jar
xdoclet-generate:
[ejbdoclet] Generating Javadoc
[ejbdoclet] Javadoc execution
[ejbdoclet] Loading source file /home/henrikwh/dev/template/src/main/ejb/test/session/SequenceGeneratorBean.java...
[ejbdoclet] Loading source file /home/henrikwh/dev/template/src/main/ejb/test/session/TestSessionBean.java...
[ejbdoclet] Loading source file /home/henrikwh/dev/template/src/main/ejb/test/message/TestMessageDrivenBean.java...
[ejbdoclet] Loading source file /home/henrikwh/dev/template/src/main/ejb/test/entity/TestBMPEntityBean.java...
[ejbdoclet] Loading source file /home/henrikwh/dev/template/src/main/ejb/test/entity/TestEntityBean.java...
[ejbdoclet] Constructing Javadoc information...
[ejbdoclet] /home/henrikwh/dev/template/src/main/ejb/test/session/TestSessionBean.java:22: cannot resolve symbol
[ejbdoclet] symbol : class TestEntity
[ejbdoclet] location: package interfaces
[ejbdoclet] import test.interfaces.TestEntity;
[ejbdoclet] ^
[ejbdoclet] /home/henrikwh/dev/template/src/main/ejb/test/session/TestSessionBean.java:23: cannot resolve symbol
[ejbdoclet] symbol : class TestEntityData
[ejbdoclet] location: package interfaces
[ejbdoclet] import test.interfaces.TestEntityData;
[-----
I goes on and on about the missing interfaces. I thought xdoclot would generate them so it could compile.
I havent changed build.xml.
Any suggestions?
Best regards
Henrik -
6. Re: xdoclet.ejb.EjbDocletTask
gksands Nov 16, 2002 1:56 PM (in response to dotskills)Hi,
I use the correct version of the xdoclet, ant and jboss, still i get the same problem.
D:\jboss-3.0.4\docs\templateNExamples\template>ant
Buildfile: build.xml
check-environment:
check-jboss:
wrong-jboss:
check-xdoclet:
wrong-xdoclet:
init:
[echo] build.compiler = ${build.compiler}
[echo] user.home = C:\Documents and Settings\skota
[echo] java.home = C:\bea\jdk131\jre
[echo] ant.home = d:\jakarta-ant-1.4.1\bin\\..
[echo] jboss.home = D:jboss-3.0.4
[echo] xdoclet.home = D:xdoclet-1.1.2
[echo] java.class.path = C:\bea\jdk131\lib\tools.jar;d:\jakarta-ant-1.4.1\b
in\\..\lib\jaxp.jar;d:\jakarta-ant-1.4.1\bin\\..\lib\crimson.jar;d:\jakarta-ant-
1.4.1\bin\\..\lib\ant.jar;
[echo]
xdoclet-generate:
BUILD FAILED
D:\jboss-3.0.4\docs\templateNExamples\template\build.xml:135: taskdef class xdoc
let.ejb.EjbDocletTask cannot be found
Total time: 0 seconds -
7. Re: xdoclet.ejb.EjbDocletTask
ldgcq Nov 20, 2002 1:34 AM (in response to dotskills)You must add E:\xdoclet-1.1.2\lib\xdoclet.jar;E:\JBoss_Tomcat\lib\log4j-boot.jar to your CLASSPATH.
-
8. Re: xdoclet.ejb.EjbDocletTask
dnoyeb Dec 4, 2002 11:02 PM (in response to dotskills)You do not seem to have the xdoclet jar in your class path.
You need one of these
Where the ${XDOCLET_LIBS} refers the the class path to xdoclet jar and any files it might use. (like log4j)
you also need one of these
note the xdoclet jar path appears once again.