[JBossWS] - Re: Where do I have to *.jws web service files in JBoss ?
by thoste
"richard.opalka(a)jboss.com" wrote : Please, read our documentation first.
| If still confused download source distribution and try to find the example that fits your needs.
| If still confused post to user forum ;)
Yes, I read the documentation and I thought this is the user forum.
Ok, lets explain the problem in more detail:
I tried out the deployment as you suggested. When I put the *.jws and web.xml (see both below)
into the deployment directory I got the error shown at the bottom.
So what wrong?
MyWebServiceClass.jws:
@WebService( name="Sum", targetNamespace = "http://sumtest.ws.ptest/", serviceName = "aaa" )
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE, style = SOAPBinding.Style.DOCUMENT)
public class MyWebServiceClass {
@WebMethod
public double myWebServiceMethod( String job, double x ) {
if ("square".equalsIgnoreCase(job) )
return x * x;
if ("root".equalsIgnoreCase(job) )
return Math.sqrt( x );
return 0.; }
}
web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<servlet-name>MyWebServiceClass</servlet-name>
<servlet-class>MyWebServiceClass</servlet-class>
<servlet-mapping>
<servlet-name>MyWebServiceClass</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
Result in JBoss:
14:34:25,640 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo@e95e7022 { url=file:/D:/java/JBoss/v4.2.2/server/default/deploy/MyWebServiceClass.jws }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/D:/java/JBoss/v4.2.2/server/default/deploy/MyWebServiceClass.jws
altDD: null
lastDeployed: 1209385176890
lastModified: 1209385176890
mbeans:
org.jboss.deployment.DeploymentInfo@dc36ff7c { url=file:/D:/java/JBoss/v4.2.2/server/default/deploy/web.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/D:/java/JBoss/v4.2.2/server/default/deploy/web.xml
altDD: null
lastDeployed: 1209385865421
lastModified: 1209385865421
mbeans:
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@e95e7022 { url=file:/D:/java/JBoss/v4.2.2/server/default/deploy/MyWebServiceClass.jws }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/D:/java/JBoss/v4.2.2/server/default/deploy/MyWebServiceClass.jws
altDD: null
lastDeployed: 1209385176890
lastModified: 1209385176890
mbeans:
org.jboss.deployment.DeploymentInfo@dc36ff7c { url=file:/D:/java/JBoss/v4.2.2/server/default/deploy/web.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/D:/java/JBoss/v4.2.2/server/default/deploy/web.xml
altDD: null
lastDeployed: 1209385865421
lastModified: 1209385865421
mbeans:
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147350#4147350
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147350
16 years, 8 months
[JBossWS] - POP Attachment
by safetytrick
I'm supporting a JBoss application that implements mail-ra.rar to pull down pop emails, this works great except in one case, I have a client that is sending emails to his pop account using c#.
for (i = 0; i < list.Items.Count; i++)
|
| {
|
| cst = list.Items.ToString();
|
| Attachment att = new Attachment(cst);
|
| MailMsg.Attachments.Add(att);
|
| }
When he checks this email with any old pop client, say, Outlook the attachment is there however JBoss doesn't seem to see this attachment. I've suggested that C# is probably not attaching necessary headers but I don't know if that is correct? What would you do next to troubleshoot this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147229#4147229
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147229
16 years, 8 months
[JBossWS] - Re: Cannot expose EJB 3 as WS
by richard.opalka@jboss.com
Strange, it works for me.
Here's my EJB3 archive content:
| jar -tvf jaxws.jar
| 0 Mon Apr 28 08:17:42 CEST 2008 META-INF/
| 106 Mon Apr 28 08:17:40 CEST 2008 META-INF/MANIFEST.MF
| 0 Mon Apr 28 08:20:04 CEST 2008 org/
| 0 Mon Apr 28 08:20:04 CEST 2008 org/jboss/
| 0 Mon Apr 28 08:20:04 CEST 2008 org/jboss/ws/
| 0 Mon Apr 28 08:20:04 CEST 2008 org/jboss/ws/hello/
| 290 Mon Apr 28 08:20:04 CEST 2008 org/jboss/ws/hello/Hello.class
| 834 Mon Apr 28 08:20:04 CEST 2008 org/jboss/ws/hello/HelloBean.class
Here's my server console output:
| 08:22:02,562 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
| 08:22:02,577 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=jaxws.jar,name=HelloBean,service=EJB3 with dependencies:
| 08:22:02,854 INFO [EJBContainer] STARTED EJB: org.jboss.ws.hello.HelloBean ejbName: HelloBean
| 08:22:02,982 INFO [EJB3Deployer] Deployed: file:/opt/svn/jbossas/tags/JBoss_4_2_2_GA/build/output/jboss-4.2.2.GA/server/default/deploy/jaxws.jar
| 08:22:03,161 INFO [DefaultEndpointRegistry] register: jboss.ws:context=jaxws,endpoint=HelloBean
| 08:22:06,156 INFO [WSDLFilePublisher] WSDL published to: file:/opt/svn/jbossas/tags/JBoss_4_2_2_GA/build/output/jboss-4.2.2.GA/server/default/data/wsdl/jaxws.jar/HelloBeanService9073.wsdl
| 08:22:06,504 INFO [TomcatDeployer] deploy, ctxPath=/jaxws, warUrl=.../tmp/deploy/jaxws.jar9072.war/
and I'm able to access WSDL here:
http://127.0.0.1:8080/jaxws/HelloBean?wsdl
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147110#4147110
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147110
16 years, 8 months