I struggled to find that the ejb symbol is in the jboss-j2ee.jar.but when I use ant to create jar file.And during the period it performed it give a signal that it use CLASSPATH that include jboss-j2ee.jar. And my problem is that it still complain it can not resolve ejbhome.How to fixed it?
H:\boss\examples\build>ant intro-interest-jar
Buildfile: build.xml
validate-servlet:
validate-jboss:
fail_if_not_valid:
init:
[echo] Using JBoss directory=h:\jboss-3.0
/////***** it show that it is already use j2ee**//
[echo] Using base classpath=H:\jboss-3.0\client\jboss-j2ee.jar;H:\jboss-3.0
\client\jaas.jar;H:\jboss-3.0\client\jbosssx-client.jar;H:\jboss-3.0\client\jbos
s-client.jar;H:\jboss-3.0\client\jnp-client.jar;H:\boss\examples\COULD_NOT_FIND_
SERVLET_JAR;H:\jboss-3.0\client\jboss-common-client.jar;H:\jboss-3.0\client\log4
j.jar
[echo] Using Source directory=H:\boss\examples
[echo] Using Build directory=H:\boss\examples/build-examples
intro-interest-jar:
compile:
[javac] Compiling 1 source file to H:\boss\examples\build-examples\interest\
classes
[javac] H:\boss\examples\org\jboss\docs\interest\InterestHome.java:11: canno
t resolve symbol
[javac] symbol : class EJBHome
[javac] location: interface org.jboss.docs.interest.InterestHome
[javac] public interface InterestHome extends EJBHome
[javac] ^
[javac] 1 error
BUILD FAILED
H:\boss\examples\org\jboss\docs\interest\build.xml:17: Compile failed, messages
should have been provided.
Total time: 2 seconds