[JBossWS] - Re: jbossws4ee call gsoap's webservice problem
by peixubin
1.
|
| ns__getGsb(char *dwdm,struct ns__csbArray *_input,struct ns__csbArray * _return) ;
| ns__getSb(char *dwdm,struct ns__csbArray *_input,struct ns__csbArray * _return) ;
|
|
I replace "_return" with result, "_input" with input, the testcase runs successly!!! why?
2.
but when the jbossws4ee client processes null number value,jboss reported error:
09:47:58,246 DEBUG [HandlerChainBaseImpl] init: [config=null]
09:47:58,246 DEBUG [HandlerChainBaseImpl] Enter: doHandleRequest
09:47:58,246 DEBUG [HandlerChainBaseImpl] Exit: doHandleRequest with status: true
09:47:58,254 DEBUG [HandlerChainBaseImpl] Enter: handleResponse
09:47:58,254 DEBUG [HandlerChainBaseImpl] Exit: handleResponse with status: true
09:47:58,330 ERROR [Call] Exception:
java.lang.NumberFormatException: empty String
at org.jboss.axis.encoding.ser.SimpleDeserializer.onEndElement(Ljava.lang.String;Ljava.lang.String;Lorg.jboss.axis.encoding.DeserializationContext;)V(SimpleDeserializer.java:242)
at org.jboss.axis.encoding.DeserializerImpl.endElement(Ljava.lang.String;Ljava.lang.String;Lorg.jboss.axis.encoding.DeserializationContext;)V(DeserializerImpl.java:582)
at org.jboss.axis.encoding.DeserializationContextImpl.endElement(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)V(DeserializationContextImpl.java:1249)
at org.jboss.axis.message.SAX2EventRecorder.replay(IILorg.xml.sax.ContentHandler;)V(SAX2EventRecorder.java:252)
at org.jboss.axis.message.SOAPElementAxisImpl.publishToHandler(Lorg.xml.sax.ContentHandler;)V(SOAPElementAxisImpl.java:1389)
at org.jboss.axis.message.RPCElement.deserialize()V(RPCElement.java:262)
at org.jboss.axis.message.RPCElement.getParams()Ljava.util.Vector;(RPCElement.java:396)
...
jbossWS can process null number correctly.no problem.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986729#3986729
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986729
19Â years, 7Â months
[JBossWS] - Re: jbossws4ee call gsoap's webservice problem
by peixubin
"peixubin" wrote :
|
| |
| | ns__getGsb(char *dwdm,struct ns__csbArray *_input,struct ns__csbArray * _return) ;
| | ns__getSb(char *dwdm,struct ns__csbArray *_input,struct ns__csbArray * _return) ;
| |
| |
|
| I replace "_return" with result, "_input" with input, the testcase runs successly!!! why?
|
|
| but when the jbossws4ee client processes null number value,jboss reported error:
| 09:47:58,246 DEBUG [HandlerChainBaseImpl] init: [config=null]
| 09:47:58,246 DEBUG [HandlerChainBaseImpl] Enter: doHandleRequest
| 09:47:58,246 DEBUG [HandlerChainBaseImpl] Exit: doHandleRequest with status: true
| 09:47:58,254 DEBUG [HandlerChainBaseImpl] Enter: handleResponse
| 09:47:58,254 DEBUG [HandlerChainBaseImpl] Exit: handleResponse with status: true
| 09:47:58,330 ERROR [Call] Exception:
| java.lang.NumberFormatException: empty String
| at org.jboss.axis.encoding.ser.SimpleDeserializer.onEndElement(Ljava.lang.String;Ljava.lang.String;Lorg.jboss.axis.encoding.DeserializationContext;)V(SimpleDeserializer.java:242)
| at org.jboss.axis.encoding.DeserializerImpl.endElement(Ljava.lang.String;Ljava.lang.String;Lorg.jboss.axis.encoding.DeserializationContext;)V(DeserializerImpl.java:582)
| at org.jboss.axis.encoding.DeserializationContextImpl.endElement(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)V(DeserializationContextImpl.java:1249)
| at org.jboss.axis.message.SAX2EventRecorder.replay(IILorg.xml.sax.ContentHandler;)V(SAX2EventRecorder.java:252)
| at org.jboss.axis.message.SOAPElementAxisImpl.publishToHandler(Lorg.xml.sax.ContentHandler;)V(SOAPElementAxisImpl.java:1389)
| at org.jboss.axis.message.RPCElement.deserialize()V(RPCElement.java:262)
| at org.jboss.axis.message.RPCElement.getParams()Ljava.util.Vector;(RPCElement.java:396)
| ...
|
jbossWS can process this correctly.no problem.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986728#3986728
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986728
19Â years, 7Â months
[EJB 3.0] - Can't get a stateless session bean to work - JNDI can't find
by Azavia
Hi,
I've been trying to create a very simple example of a stateless session bean in EJB3. I get the following error:
exception
|
| org.apache.jasper.JasperException: Exception in JSP: /index.jsp:14Â
| 11: <body>
| 12: <%
| 13: InitialContext context = new InitialContext();
| 14: Math math = (Math)context.lookup("Math/MathBean/remote");
| 15: %>
| 16: <p>2 + 2: <%=math.add(2, 2) %>.</p>
| 17: </body>Â Â
| Stacktrace:
| org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:506)
| org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
| org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
| org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
| root cause
|
| javax.servlet.ServletException: remote not bound
| org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:843)
| org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:776)
| org.apache.jsp.index_jsp._jspService(index_jsp.java:69)
| org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
| org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
| org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
| root cause
|
| javax.naming.NameNotFoundException: remote not bound
| org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
| org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
| org.jnp.server.NamingServer.getObject(NamingServer.java:543)
| org.jnp.server.NamingServer.lookup(NamingServer.java:296)
| org.jnp.server.NamingServer.lookup(NamingServer.java:270)
| org.jnp.server.NamingServer.lookup(NamingServer.java:270)
| org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
| org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
| javax.naming.InitialContext.lookup(Unknown Source)
| org.apache.jsp.index_jsp._jspService(index_jsp.java:56)
| org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
| org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
| org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
JDK version is 1.6, working with JBoss 4.0.5, JBoss EJB3 RC9, and the JBoss Eclipse IDE.
I've deployed the ear and war files. When that didn't work, I also deployed the jar file. I have MathEJB.jar containing the bean, MathWeb.war containing the web files (index.jsp), and Math.ear containing MathEJB.jar, MathWeb.war, and application.xml.
I've been somewhat following http://docs.jboss.org/ejb3/app-server/tutorial/stateless/stateless.html.
I should also note that JBoss Eclipse IDE won't automatically deploy the files; I have to manually copy them. When I try to "run" them, it says those type of modules can't run.
Apparently I can't attach files, so I'll copy the code.
Math/src/com/azavia/math/Math.java:
package com.azavia.math;
|
| import javax.ejb.Remote;
|
| @Remote
| public interface Math {
|
| int add(int a, int b);
|
| }
|
Math/src/com/azavia/math/MathBean.java:
package com.azavia.math;
|
| import java.io.Serializable;
|
| import javax.ejb.Stateless;
|
| @Stateless
| public class MathBean implements Math, Serializable {
|
| /**
| * Serial version UID
| *
| * Field used for serialization
| */
| private static final long serialVersionUID = 2976407238222758431L;
|
| public int add(int a, int b) {
| return a + b;
| }
|
| }
|
Math/docroot/index.jsp:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
| pageEncoding="ISO-8859-1"%>
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
| <%@page import="javax.naming.InitialContext"%>
| <%@page import="com.azavia.math.Math"%>
| <html>
| <head>
| <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
| <title>Math</title>
| </head>
| <body>
| <%
| InitialContext context = new InitialContext();
| Math math = (Math)context.lookup("Math/MathBean/remote");
| %>
| <p>2 + 2: <%=math.add(2, 2) %>.</p>
| </body>
| </html>
Math/src/META-INF/application.xml:
<?xml version="1.0" encoding="UTF-8"?>
| <application version="1.4"
| xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
| http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
| <display-name>Math</display-name>
| <module>
| <ejb>MathEJB.jar</ejb>
| </module>
| <module>
| <web>
| <web-uri>MathWeb.war</web-uri>
| <context-root>/math</context-root>
| </web>
| </module>
| </application>
|
Thanks for any help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986727#3986727
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986727
19Â years, 7Â months
[JBossWS] - Re: jbossws4ee call gsoap's webservice problem
by peixubin
|
| ns__getGsb(char *dwdm,struct ns__csbArray *_input,struct ns__csbArray * _return) ;
| ns__getSb(char *dwdm,struct ns__csbArray *_input,struct ns__csbArray * _return) ;
|
|
I replace "_return" with result, "_input" with input, the testcase runs successly!!! why?
but when the jbossws4ee client processes null number value,jboss reported error:
09:47:58,246 DEBUG [HandlerChainBaseImpl] init: [config=null]
09:47:58,246 DEBUG [HandlerChainBaseImpl] Enter: doHandleRequest
09:47:58,246 DEBUG [HandlerChainBaseImpl] Exit: doHandleRequest with status: true
09:47:58,254 DEBUG [HandlerChainBaseImpl] Enter: handleResponse
09:47:58,254 DEBUG [HandlerChainBaseImpl] Exit: handleResponse with status: true
09:47:58,330 ERROR [Call] Exception:
java.lang.NumberFormatException: empty String
at org.jboss.axis.encoding.ser.SimpleDeserializer.onEndElement(Ljava.lang.String;Ljava.lang.String;Lorg.jboss.axis.encoding.DeserializationContext;)V(SimpleDeserializer.java:242)
at org.jboss.axis.encoding.DeserializerImpl.endElement(Ljava.lang.String;Ljava.lang.String;Lorg.jboss.axis.encoding.DeserializationContext;)V(DeserializerImpl.java:582)
at org.jboss.axis.encoding.DeserializationContextImpl.endElement(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)V(DeserializationContextImpl.java:1249)
at org.jboss.axis.message.SAX2EventRecorder.replay(IILorg.xml.sax.ContentHandler;)V(SAX2EventRecorder.java:252)
at org.jboss.axis.message.SOAPElementAxisImpl.publishToHandler(Lorg.xml.sax.ContentHandler;)V(SOAPElementAxisImpl.java:1389)
at org.jboss.axis.message.RPCElement.deserialize()V(RPCElement.java:262)
at org.jboss.axis.message.RPCElement.getParams()Ljava.util.Vector;(RPCElement.java:396)
...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986726#3986726
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986726
19Â years, 7Â months
[JBoss jBPM] - Re: CVS?
by janice82
Dear Mr Cocampo,
Thank you for your fast reply. I am grateful. How can we actually modify timer in the starter kit. In the websale. par, i have located process definition.xml. I have modified the code as according to the chapter 12 in the user guide but i coudlnt get it done.
In the starter kit examples, the console will call for Ernie that a task 'evaluate web order' is waiting for you. The guide in the the JbpmGettingStarted guide us on how to manage a process that is being executed, we need to move the process forward outselves since 'Ernie" is unavailable. So is it possible to escalate the the task to Ernie instead of manually move it when the times goes off.
Thank you in advance.
With regards,
Janice
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986723#3986723
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986723
19Â years, 7Â months
[Beginners Corner] - Problems with JBoss to deploy
by L_amaya
Hi !!!
Could someone help me with this problem...
I had an error to deploy the time tracker application.. in the jboss console.. the error says: Could not create deployment... Do you know why?
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
run(AbstractDeploymentScanner.java:225)
10:18:18,562 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.
0.4/server/default/tmp/deploy/tmp9294timetracker-1.0-SNAPSHOT.ear-contents/timet
racker-core-1.0-SNAPSHOT.jar
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans faile
d, see above for error messages.
at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:610)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
Thanks in advanced!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986720#3986720
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986720
19Â years, 7Â months