(no subject)
by Rajagopal_Yendluri
Hi,
I am new to JBoss WS, I just started working on this for a POC, I
successfully installed the WS on JBoss AS.
When I try to run the samples, by using...ant from jbossWS home, am
getting the following exceptions...
I can understand that the junit.jar is missing and something for
assertions, but let me know where can I keep the junit.jar... it exists
in lib directory of JBossWS.
Any Suggestions....
[javac] ^
[javac]
C:\Rajagopal\Softwares\jbossws-native-2.0.2.GA\jbossws-native-2.0.2.GA\t
ests\java\org\jboss\test\ws\jaxws\samples\xop\doclit\XOPHandlerTestCase.
java:58: cannot find symbol
[javac] symbol : class Test
[javac] location: class
org.jboss.test.ws.jaxws.samples.xop.doclit.XOPHandlerTestCase
[javac] public static Test suite()
[javac] ^
[javac]
C:\Rajagopal\Softwares\jbossws-native-2.0.2.GA\jbossws-native-2.0.2.GA\t
ests\java\org\jboss\test\ws\jaxws\samples\xop\doclit\XOPWrappedTestCase.
java:53: cannot find symbol
[javac] symbol : class Test
[javac] location: class
org.jboss.test.ws.jaxws.samples.xop.doclit.XOPWrappedTestCase
[javac] public static Test suite()
[javac] ^
[javac]
C:\Rajagopal\Softwares\jbossws-native-2.0.2.GA\jbossws-native-2.0.2.GA\t
ests\java\org\jboss\test\ws\jaxws\smoke\tools\ScriptTestCase.java:37:
cannot find symbol
[javac] symbol: class TestCase
[javac] public class ScriptTestCase extends TestCase
[javac] ^
[javac]
C:\Rajagopal\Softwares\jbossws-native-2.0.2.GA\jbossws-native-2.0.2.GA\t
ests\java\org\jboss\test\ws\jaxws\smoke\tools\WSConsumerTestCase.java:46
: cannot find symbol
[javac] symbol: class TestCase
[javac] public class WSConsumerTestCase extends TestCase
[javac] ^
[javac]
C:\Rajagopal\Softwares\jbossws-native-2.0.2.GA\jbossws-native-2.0.2.GA\t
ests\java\org\jboss\test\ws\jaxws\samples\serviceref\EJBClient.java:38:
cannot find symbol
[javac] symbol: class RemoteBinding
[javac] @RemoteBinding(jndiBinding = "/ejb/EJBClient")
[javac] ^
[javac]
C:\Rajagopal\Softwares\jbossws-native-2.0.2.GA\jbossws-native-2.0.2.GA\t
ests\java\org\jboss\test\ws\jaxws\samples\webserviceref\EJB3Client.java:
38: cannot find symbol
[javac] symbol: class RemoteBinding
[javac] @RemoteBinding(jndiBinding = "/ejb3/EJB3Client")
[javac] ^
[javac]
C:\Rajagopal\Softwares\jbossws-native-2.0.2.GA\jbossws-native-2.0.2.GA\t
ests\java\org\jboss\test\ws\jaxws\samples\asynchronous\AsynchronousDispa
tchTestCase.java:66: cannot access junit.extensions.TestSetup
[javac] file junit\extensions\TestSetup.class not found
[javac] return new
JBossWSTestSetup(AsynchronousDispatchTestCase.class,
"jaxws-samples-asynchronous.war");
[javac] ^
[javac]
C:\Rajagopal\Softwares\jbossws-native-2.0.2.GA\jbossws-native-2.0.2.GA\t
ests\java\org\jboss\test\ws\jaxws\samples\asynchronous\AsynchronousDispa
tchTestCase.java:100: cannot find symbol
[javac] symbol : method assertTrue(java.lang.String,boolean)
[javac] location: class
org.jboss.test.ws.jaxws.samples.asynchronous.AsynchronousDispatchTestCas
e
[javac] assertTrue("Async handler called", asyncHandlerCalled);
[javac] ^
[javac]
C:\Rajagopal\Softwares\jbossws-native-2.0.2.GA\jbossws-native-2.0.2.GA\t
ests\java\org\jboss\test\ws\jaxws\samples\asynchronous\AsynchronousDispa
tchTestCase.java:105: cannot find symbol
Regards,
Rajagopal Y (Raj)
HCU-Consulting & Enterprise Solutions.
Phone: (C) +91-9986584084 / (W)+91-80-6658 3685.
DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
16 years, 9 months
[JBossWS] - problem with jbossws examples
by b_
Hi all,
I was able to get the jaxrpc-rpc style sample that is shipped with the jbossws 1.0.4.GA up and running. After running the build script in the samples root folder , i grabbed the .jar and .war generated in the samples/output/libs and dropped them into the jboss deploy folder. I also managed to write my own client application that consumes the web service.
I then tried to build the example from scratch myself. I modified and arranged the build.xml file (samples\jaxrpc\rpcstyle\build.xml) for my project. However when running the build file i am getting the following error:
|
| generate-sources:
| [echo] Started target generate-sources
| [wstools] org.jboss.ws.WSException: Endpoint com.thesis.ws.TrivialService cannot be loaded
| [wstools] at org.jboss.ws.tools.helpers.ToolsHelper.handleJavaToWSDLGeneration(ToolsHelper.java:113)
| [wstools] at org.jboss.ws.tools.WSTools.process(WSTools.java:129)
| [wstools] at org.jboss.ws.tools.WSTools.generate(WSTools.java:119)
| [wstools] at org.jboss.ws.tools.ant.wstools.execute(wstools.java:103)
| [wstools] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
| [wstools] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| [wstools] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [wstools] at java.lang.reflect.Method.invoke(Method.java:585)
| [wstools] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
| [wstools] at org.apache.tools.ant.Task.perform(Task.java:348)
| [wstools] at org.apache.tools.ant.Target.execute(Target.java:357)
| [wstools] at org.apache.tools.ant.Target.performTasks(Target.java:385)
| [wstools] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
| [wstools] at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
| [wstools] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
| [wstools] at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
| [wstools] at org.apache.tools.ant.Main.runBuild(Main.java:698)
| [wstools] at org.apache.tools.ant.Main.startAnt(Main.java:199)
| [wstools] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
| [wstools] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
|
|
I also tried adding TrivialService.class to the classpath ... but to no avail.
Any help would be appreciated at this point!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116173#4116173
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116173
16 years, 9 months
[JBossWS] - EntityManager injection in Webservice
by nudelaug
I want an EntityManager to be injected into my WebService but that does not work:
| @WebService
| @SOAPBinding(style = SOAPBinding.Style.RPC)
| @HandlerChain(file = "handler.xml")
| public class DocumentSign
| {
| @PersistenceContext(name = "EF")
| EntityManager em;
|
| @WebResult(name = "signedDocument")
| public byte[] signDocument(@WebParam(name = "document")byte[] data)
| {
| System.out.println("em = " + em);
| //TODO implement signing
| return null;
| }
| }
|
my web.xml:
| <web-app>
| <servlet>
| <servlet-name>DocumentSignService</servlet-name>
| <servlet-class>foo.DocumentSign</servlet-class>
| </servlet>
| <servlet-mapping>
| <servlet-name>DocumentSignService</servlet-name>
| <url-pattern>/sign/*</url-pattern>
| </servlet-mapping>
| </web-app>
|
my persistence.xml in WEB-INF/META-INF:
| <persistence-unit name="EF" transaction-type="JTA">
| <jta-data-source>java:/EfDb.tst</jta-data-source>
| <class>at.oekb.wsportal.sapexportfinance.data.EFImportData</class>
| <properties>
| <property name="hibernate.archive.autodetection" value="class"/>
| <property name="hibernate.session_factory_name" value="java:/hibernate/EFSessionFactory"/>
| <property name="hibernate.show_sql" value="true"/>
| <property name="hibernate.format_sql" value="true"/>
| <property name="use_sql_comments" value="true"/>
| <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/>
| <property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/>
| <property name="com.intellij.javaee.persistence.datasource" value="Datasource"/>
| </properties>
| </persistence-unit>
|
I use jboss-4.2.1.GA.
The EntityManager is not injected.
Can anyone help me with this problem?
Best regards,
Wolf-Dietrich Rettensteiner
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115886#4115886
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115886
16 years, 9 months