HELP!!! I feel like i'm in hell
rdomingo May 14, 2003 3:55 PMHi All,
(Isn't there juse a simple example, just saying hello world (session/entity beans), like on http://developer.java.sun.com/developer/onlineTraining/J2EE/Intro2/j2ee.html
An example which just occasionally generates 1 or 2 erros, but not a damn list of 91 and an additionally 60 when there is some miny, tiny detail missing.
Why this big pain in the ass example ??? or is it just me ???)
Is it just me or is that hard to get the template projects (sample project of quick start guide) that hard to get up and running. Im getting al little bit frustrated here.... please give me a hand.
Normally I'm developing on Linux, but for this occasion I'm developing on windowsXP. There are that many compiling erros that I can't figure out where to start.... i'm browsing for hours and looking through all of the config files, but I can't get the endless list of compiling erros to disappear.
It seems the build.properties isn't correctly used... It seems to be ignored by ant... If anyone out there did make it, to get the sample project up and running on windows (xp) It would mean a lot to me if you could point me out some directions... or come by and fix the *()&*(&) errors :-)
See below for details.... (I just putted everything in my env... but it seems it doesn't matter at all....)
first the ejbdoclet generates about 91 warning messages about not being able to find some classes, see example below:
[ejbdoclet] D:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\session\S
equenceGeneratorBean.java:15: package javax.ejb does not exist
[ejbdoclet] import javax.ejb.CreateException;
[ejbdoclet] ^
[ejbdoclet] D:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\session\S
equenceGeneratorBean.java:16: package javax.ejb does not exist
[ejbdoclet] import javax.ejb.EJBException;
[ejbdoclet] ^
[ejbdoclet] D:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\session\S
equenceGeneratorBean.java:17: package javax.ejb does not exist
[ejbdoclet] import javax.ejb.SessionBean;
[ejbdoclet] ^
[ejbdoclet] D:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\session\S
equenceGeneratorBean.java:18: package javax.ejb does not exist
[ejbdoclet] import javax.ejb.SessionContext;
[ejbdoclet]
Then 60 compiling errors are popping up, like illustrad in samples below:
compile:
[echo] build.classes.dir -> D:\JBoss.3.0TemplateAndExamples\template/bui
ld/classes
[echo] base.path -> D:\JBoss.3.0TemplateAndExamples\template/build
[echo] src.ejb.dir -> D:\JBoss.3.0TemplateAndExamples\template/src/m
ain/ejb
[echo] build.generate.dir -> D:\JBoss.3.0TemplateAndExamples\template/build
/generate
[echo] src.client.dir -> D:\JBoss.3.0TemplateAndExamples\template/src/m
ain/client
[javac] Compiling 8 source files to D:\JBoss.3.0TemplateAndExamples\template
\build\classes
[javac] D:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\session\T
estSessionBean.java:22: cannot resolve symbol
[javac] symbol : class TestEntity
[javac] location: package interfaces
[javac] import test.interfaces.TestEntity;
[javac] ^
[javac] D:\JBoss.3.0TemplateAndExamples\template\src\main\ejb\test\session\T
estSessionBean.java:23: cannot resolve symbol
[javac] symbol : class TestEntityData
[javac] location: package interfaces
[javac] import test.interfaces.TestEntityData;
My JBoss server installed and started without any errors. So why doesn't the example work out of the box ???
PLEEAAAASEEE, help!!!
Raymond
Some environment details
[echo] build.compiler = ${build.compiler}
[echo] user.home = C:\Documents and Settings\raymond
[echo] java.home = C:\j2sdk1.4.1_02\jre
[echo] ant.home = C:\apache-ant-1.5.2\bin\..
[echo] jboss.home = D:\jboss-3.2.1_tomcat-4.1.24
[echo] xdoclet.home = D:\xdoclet-1.1.2
[echo] java.class.path = C:\j2sdk1.4.1_02\lib\tools.jar;C:\apache-ant-1.5.2
\bin\..\lib\xml-apis.jar;C:\apache-ant-1.5.2\bin\..\lib\xercesImpl.jar;C:\apache
-ant-1.5.2\bin\..\lib\xdoclet.jar;C:\apache-ant-1.5.2\bin\..\lib\optional.jar;C:
\apache-ant-1.5.2\bin\..\lib\log4j-boot.jar;C:\apache-ant-1.5.2\bin\..\lib\junit
.jar;C:\apache-ant-1.5.2\bin\..\lib\j2ee.jar;C:\apache-ant-1.5.2\bin\..\lib\ant.
jar;D:\junit3.8.1\junit.jar;D:\xdoclet-1.1.2\lib\xdoclet.jar;D:\junit3.8.1\junit
.jar;D:\jboss-3.2.1_tomcat-4.1.24\lib\log4j-boot.jar;C:\j2sdkee1.4\lib\j2ee.jar;
.