[JBossWS] - missing client libraries when setting up JBossWS Testsuite E
by davidyu8888
Hello,
I am new to JBossWS.
I have installed it successfully on my machine.
I am using jboss-5.0.0.GA and jbossws native 3.0.4 GA. I am trying to set up my Eclipse IDE(3.4.0) with the JBossWS Testsuite Eclispe Project.
>From the root directory for the JBoss WS Native Binary Distributaiton, I run "ant eclipse", for the compiling target, I encountered about 54 compiling errors, most of them a complaining about missing EJB3 related classes/jars/annotations.
When I check the class path for <jbossws root>\tests\ant-import\build-testsuite.xml, I found that several jars needed for compilation are missing from related directories for my jboss AS. Especially from ${jboss.client}.
Not quite sure how to proceed in this case?Where should I find the missing jars? Should I download the right version of JBoss AS so that all EJB3 related jars are included?
See below for examples of the compilation errors:
amples\advanced\retail\OrderAdmin.java:29: cannot find symbol
[javac] symbol: class Remote
[javac] @Remote
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\advanced\retail\OrderMgmt.java:24: cannot find symbol
[javac] symbol : class Remote
[javac] location: package javax.ejb
[javac] import javax.ejb.Remote;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\advanced\retail\OrderMgmt.java:29: cannot find symbol
[javac] symbol: class Remote
[javac] @Remote
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\advanced\retail\OrderMgmtBean.java:25: cannot find symbol
[javac] symbol : class Stateless
[javac] location: package javax.ejb
[javac] import javax.ejb.Stateless;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\advanced\retail\OrderMgmtBean.java:43: cannot find symbol
[javac] symbol: class Stateless
[javac] @Stateless
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\advanced\retail\profile\ProfileMgmt.java:24: cannot find symbol
[javac] symbol : class Remote
[javac] location: package javax.ejb
[javac] import javax.ejb.Remote;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\advanced\retail\profile\ProfileMgmt.java:29: cannot find symbol
[javac] symbol: class Remote
[javac] @Remote
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\advanced\retail\cc\CCVerificationBean.java:24: cannot find symbol
[javac] symbol : class Stateless
[javac] location: package javax.ejb
[javac] import javax.ejb.Stateless;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\advanced\retail\cc\CCVerificationBean.java:31: cannot find symbol
[javac] symbol: class Stateless
[javac] @Stateless
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\advanced\retail\profile\ProfileMgmtBean.java:24: cannot find symbol
[javac] symbol : class Stateless
[javac] location: package javax.ejb
[javac] import javax.ejb.Stateless;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\advanced\retail\profile\ProfileMgmtBean.java:29: cannot find symbol
[javac] symbol: class Stateless
[javac] @Stateless
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\context\EndpointEJB.java:28: package javax.annotation.security does not e
xist
[javac] import javax.annotation.security.RolesAllowed;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\context\EndpointEJB.java:29: cannot find symbol
[javac] symbol : class Stateless
[javac] location: package javax.ejb
[javac] import javax.ejb.Stateless;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\context\EndpointEJB.java:47: cannot find symbol
[javac] symbol: class Stateless
[javac] @Stateless
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\context\EndpointEJB.java:53: cannot find symbol
[javac] symbol: class RolesAllowed
[javac] @RolesAllowed("friend")
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\eardeployment\EJB3Bean.java:24: cannot find symbol
[javac] symbol : class Stateless
[javac] location: package javax.ejb
[javac] import javax.ejb.Stateless;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\eardeployment\EJB3Bean.java:38: cannot find symbol
[javac] symbol: class Stateless
[javac] @Stateless
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\exception\server\ExceptionEndpointEJB3Impl.java:24: cannot find symbol
[javac] symbol : class Stateless
[javac] location: package javax.ejb
[javac] import javax.ejb.Stateless;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\exception\server\ExceptionEndpointEJB3Impl.java:28: cannot find symbol
[javac] symbol: class Stateless
[javac] @Stateless
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\securityDomain\SecureEndpointAS5Impl.java:24: package javax.annotation.se
curity does not exist
[javac] import javax.annotation.security.RolesAllowed;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\securityDomain\SecureEndpointAS5Impl.java:25: cannot find symbol
[javac] symbol : class Stateless
[javac] location: package javax.ejb
[javac] import javax.ejb.Stateless;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\securityDomain\SecureEndpointAS5Impl.java:36: cannot find symbol
[javac] symbol: class Stateless
[javac] @Stateless(name = "SecureEndpoint")
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\securityDomain\SecureEndpointAS5Impl.java:41: cannot find symbol
[javac] symbol: class RolesAllowed
[javac] @RolesAllowed("friend")
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\serviceref\EJBClient.java:26: cannot find symbol
[javac] symbol : class Remote
[javac] location: package javax.ejb
[javac] import javax.ejb.Remote;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\serviceref\EJBClient.java:27: cannot find symbol
[javac] symbol : class Stateless
[javac] location: package javax.ejb
[javac] import javax.ejb.Stateless;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\serviceref\EJBClient.java:36: cannot find symbol
[javac] symbol: class Remote
[javac] @Remote(EJBRemote.class)
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\serviceref\EJBClient.java:37: cannot find symbol
[javac] symbol: class Stateless
[javac] @Stateless
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\swaref\BareEndpointImpl.java:29: cannot find symbol
[javac] symbol : class Stateless
[javac] location: package javax.ejb
[javac] import javax.ejb.Stateless;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\swaref\BareEndpointImpl.java:37: cannot find symbol
[javac] symbol: class Stateless
[javac] @Stateless
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\swaref\RpcLitEndpointImpl.java:26: cannot find symbol
[javac] symbol : class Stateless
[javac] location: package javax.ejb
[javac] import javax.ejb.Stateless;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\swaref\RpcLitEndpointImpl.java:37: cannot find symbol
[javac] symbol: class Stateless
[javac] @Stateless
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\swaref\WrappedEndpointImpl.java:29: cannot find symbol
[javac] symbol : class Stateless
[javac] location: package javax.ejb
[javac] import javax.ejb.Stateless;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\swaref\WrappedEndpointImpl.java:38: cannot find symbol
[javac] symbol: class Stateless
[javac] @Stateless
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\webservice\EJB3Bean01.java:24: cannot find symbol
[javac] symbol : class Remote
[javac] location: package javax.ejb
[javac] import javax.ejb.Remote;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\webservice\EJB3Bean01.java:25: cannot find symbol
[javac] symbol : class Stateless
[javac] location: package javax.ejb
[javac] import javax.ejb.Stateless;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\webservice\EJB3Bean01.java:41: cannot find symbol
[javac] symbol: class Remote
[javac] @Remote(EJB3RemoteInterface.class)
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\webservice\EJB3Bean01.java:42: cannot find symbol
[javac] symbol: class Stateless
[javac] @Stateless
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\webservice\EJB3Bean02.java:25: cannot find symbol
[javac] symbol : class Remote
[javac] location: package javax.ejb
[javac] import javax.ejb.Remote;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\webservice\EJB3Bean02.java:27: cannot find symbol
[javac] symbol : class Stateless
[javac] location: package javax.ejb
[javac] import javax.ejb.Stateless;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\webservice\EJB3Bean02.java:45: cannot find symbol
[javac] symbol: class Remote
[javac] @Remote(EJB3RemoteInterface.class)
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\webservice\EJB3Bean02.java:46: cannot find symbol
[javac] symbol: class Stateless
[javac] @Stateless
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\webservice\EJB3Bean03.java:24: cannot find symbol
[javac] symbol : class Remote
[javac] location: package javax.ejb
[javac] import javax.ejb.Remote;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\webservice\EJB3Bean03.java:25: cannot find symbol
[javac] symbol : class Stateless
[javac] location: package javax.ejb
[javac] import javax.ejb.Stateless;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\webservice\EJB3Bean03.java:38: cannot find symbol
[javac] symbol: class Remote
[javac] @Remote(EJB3RemoteInterface.class)
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\webservice\EJB3Bean03.java:39: cannot find symbol
[javac] symbol: class Stateless
[javac] @Stateless
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\webserviceref\EJB3Client.java:26: cannot find symbol
[javac] symbol : class Remote
[javac] location: package javax.ejb
[javac] import javax.ejb.Remote;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\webserviceref\EJB3Client.java:27: cannot find symbol
[javac] symbol : class Stateless
[javac] location: package javax.ejb
[javac] import javax.ejb.Stateless;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\webserviceref\EJB3Client.java:37: cannot find symbol
[javac] symbol: class Remote
[javac] @Remote(EJB3Remote.class)
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\jaxws\s
amples\webserviceref\EJB3Client.java:38: cannot find symbol
[javac] symbol: class Stateless
[javac] @Stateless
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\managem
ent\recording\EndpointImpl.java:24: cannot find symbol
[javac] symbol : class Stateless
[javac] location: package javax.ejb
[javac] import javax.ejb.Stateless;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\managem
ent\recording\EndpointImpl.java:34: cannot find symbol
[javac] symbol: class Stateless
[javac] @Stateless
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\managem
ent\recording\EndpointWithHandlerImpl.java:24: cannot find symbol
[javac] symbol : class Stateless
[javac] location: package javax.ejb
[javac] import javax.ejb.Stateless;
[javac] ^
[javac] C:\Java\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\managem
ent\recording\EndpointWithHandlerImpl.java:35: cannot find symbol
[javac] symbol: class Stateless
[javac] @Stateless
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 54 errors
BUILD FAILED
C:\Java\jbossws-native-bin-dist\build.xml:88: The following error occurred while
executing this line:
C:\Java\jbossws-native-bin-dist\tests\ant-import\build-testsuite.xml:275: Compil
e failed; see the compiler error output for details.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198668#4198668
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198668
15 years, 12 months
[JBossWS] - Re: can NOT run ant deploy-jboss500
by davidyu8888
Peter,
Thanks a lot for all the tips. The second post really resolved my issue, it seems to JBoss WebService and JBoss AS compatibility is the key. I believe I saw a XREF chart somewhere in the forum, but from the chart, it seems that the original versions I have should be compatible with each other. Anyway, after I change the JBoss WS to native 3.0.4 GA. The ant build file starts to work fine. BTW, I do NOT have any single pass in my JAVA_HOME, JBOSS_HOME or ANT_OPTS.
But something new and interesting happens aftetwards.
After I build JBoss WebService into JBoss AS (the build completed successfully), now I would like to bring up the JBoss AS to view the URL for JBoss Web Service: http://localhost:8080/jbossws/
At this stage, I have the following error to bring up JBoss AS.
"
Error occurred during initialization of VM
java/lang/ClassNotFoundException: error in opening JAR file C:\Java\jboss-5.0.0.
GA\lib\endorsed\junit-4.5.jar
Press any key to continue . . .
"
To keep things moving, I deleted junit-4.5.jar from C:\Java\jboss-5.0.0.
GA\lib\endorsed, and now JBoss AS is brought up successfully, and I can view the homepage for JBoss WS.
While my question is:
In the JBoss WebService Installation Guide, it has: To build the examples you need JUnit. Download junit-4.X.jar from junit.org and copy into ${JBOSS_HOME}/lib/endorsed. I am NOT sure whether my next Ant build will fail because I removed junit-4.5.jar already...
Do you or anyone know why I receive the error message: java/lang/ClassNotFoundException: error in opening JAR file? Is this another compatibility issue? Junit-4.5.jar is too new for this testing?
Thanks a lot and have a great Christmas.
David
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198495#4198495
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198495
16 years