NoSuchMethodError: weblogic.webservice.core.rpc.ServiceImpl
I developed webservices and jsp client on my local copy of weblogic - everything works perfectly fine.. I moved the webservices and jspclient to work's developement weblogic server.. Webservices works fine but the jspclient is throwing an exception as sooon as i try to get the service.
Webservices Local Machine & Client Local -> Works.
Webservices DevServer & Client Local --> Works
Webservices DevServer & Client DevServer --> Client throws exception!!
Throwing following exception on this line: MyWebServices service = new MyWebServices_Impl();
Error 500--Internal Server Error
java.lang.NoSuchMethodError: weblogic.webservice.core.rpc.ServiceImpl.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
at jspclient.MyWebServices_Impl.(MyWebServices_Impl.java:22)
at jspclient.MyWebServices_Impl.(MyWebServices_Impl.java:16)
at jsp_servlet.__Mydb._jspService(__Mydb.java:128)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
This problem was due to the fact that my local machine had weblogic 8.1SP3 installed and dev server had SP2 installed.
I moved to a server with SP3 and everything worked smoothly.
Thanks.
Similar Messages
-
Weblogic70.webservice.core.rpc - ???
For 6.0SP1 client to work with 7.0SP1 (fix for NoSuchMethodError exception)-
I am trying to generate a re-versioned classes using VersionMaker utility (using
CR080927_70SP1.jar) and it is rewriting the client stubs. It has regenerated client
stubs whose parent classes are not there in any of the jar files. Prior to reversioning
it used to be weblogic.webservice.core.rpc.StubImpl, after reversioning it is
weblogic70.webservice.core.rpc.StubImpl.
I am including webserviceclient.jar in the class path of 6.0 client, but weblogic70
package does not exist anywhere?
any idea where I can find weblogic70.webservice.core.rpc package?Pls use SP2. You dont need the patch with SP2. weblogic70.* classes are
in wsclient70.jar.
You need to use wsclient70.jar instead of webserviceclient.jar.
HTHs,
manoj
"Prasanna Waranashiwar" <[email protected]> wrote in message
news:[email protected]..
>
For 6.0SP1 client to work with 7.0SP1 (fix for NoSuchMethodErrorexception)-
I am trying to generate a re-versioned classes using VersionMaker utility(using
CR080927_70SP1.jar) and it is rewriting the client stubs. It hasregenerated client
stubs whose parent classes are not there in any of the jar files. Prior toreversioning
it used to be weblogic.webservice.core.rpc.StubImpl, after reversioning itis
weblogic70.webservice.core.rpc.StubImpl.
I am including webserviceclient.jar in the class path of 6.0 client, butweblogic70
package does not exist anywhere?
any idea where I can find weblogic70.webservice.core.rpc package? -
Hello Gurus,
Can you please help me with following issue--
I have created a secured web service's client from netbeans 6.8.Then I made a jar file of it.Then I have integrated that jar in my ADF application's viewcontroller project .I have used the jar from backing bean of a jspx page.
If I create a main method in the bean and call the service from inside main method then everything works fine but if i remove the main method and call the service from a button click of the jspx page then i get the following error.
<Jan 7, 2012 11:01:34 AM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=KEYNECTIS ROOT CA,OU=ROOT,O=KEYNECTIS,C=FR". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
<ActionListenerImpl><processAction> java.lang.ClassCastException: weblogic.webservice.core.soap.SOAPMessageImpl cannot be cast to com.sun.xml.messaging.saaj.soap.MessageImpl
javax.faces.el.EvaluationException: java.lang.ClassCastException: weblogic.webservice.core.soap.SOAPMessageImpl cannot be cast to com.sun.xml.messaging.saaj.soap.MessageImpl
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:698)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:285)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:62)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.ClassCastException: weblogic.webservice.core.soap.SOAPMessageImpl cannot be cast to com.sun.xml.messaging.saaj.soap.MessageImpl
at com.sun.xml.rpc.client.StubBase._postSendingHook(StubBase.java:231)
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:324)
at com.sahaj.billDetails.NotifySREIBilling_OB_Stub.notifySREIBilling_OB(NotifySREIBilling_OB_Stub.java:67)
at com.sahaj.tester.Tester.getBillDetails(Tester.java:94)
at Test.cb1_action(Test.java:19)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
... 36 more
My bean class looks as follows--
public class Test {
public Test() {
*public String cb1_action() {//does not work*
HashMap billDetails = new Tester().getBillDetails("212078438");
System.out.println(billDetails.size());
return null;
*public static void main(String[] args) {//works*
HashMap billDetails = new Tester().getBillDetails("212078438");
System.out.println(billDetails.size());
}Hi Mike,
Support for SAAJ was added in WLS 8.1, see:
http://edocs.bea.com/wls/docs81/webserv/interceptors.html#1058444
Can you try your code on the latest release?
Thanks,
Bruce
Mike Reiche wrote:
>
What do I need to fix this?
WLS 7.0 sp2
- Mike
java.lang.Error: NYI
at
weblogic.webservice.core.soap.SOAPMessageImpl.saveRequired(SOAPMessageImpl.j
ava:360)
at
com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnec
tion.java:228)
at
com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run
(HttpSOAPConnection.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at
com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnec
tion.java:126) -
Hi, I am debugging a Web Service. It sometimes throws an exception while deserializing the input. But when I look through the log all I see is:
####<Jul 27, 2010 9:20:43 AM EDT> <Info> <WebService> <myhost.net> <prodServer114> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1280236843573> <BEA-220024> <Handler weblogic.webservice.core.handler.InvokeHandler threw an exception from its handleRequest method. The exception was:
java.lang.NumberFormatException: For input string: "".>
How do I make weblogic spit out the exception stacktrace?
I am using Weblogic 9.2.
Thanks in advance!Hi, I am debugging a Web Service. It sometimes throws an exception while deserializing the input. But when I look through the log all I see is:
####<Jul 27, 2010 9:20:43 AM EDT> <Info> <WebService> <myhost.net> <prodServer114> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1280236843573> <BEA-220024> <Handler weblogic.webservice.core.handler.InvokeHandler threw an exception from its handleRequest method. The exception was:
java.lang.NumberFormatException: For input string: "".>
How do I make weblogic spit out the exception stacktrace?
I am using Weblogic 9.2.
Thanks in advance! -
Where is the stack trace weblogic.webservice.core.handler.InvokeHandler
Hi, I am debugging a Web Service. It sometimes throws an exception while deserializing the input. But when I look through the log all I see is:
####<Jul 27, 2010 9:20:43 AM EDT> <Info> <WebService> <myhost.net> <prodServer114> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <1280236843573> <BEA-220024> <Handler weblogic.webservice.core.handler.InvokeHandler threw an exception from its handleRequest method. The exception was:
java.lang.NumberFormatException: For input string: "".>
How do I make weblogic spit out the exception stacktrace?
I am using Weblogic 9.2.
Thanks in advance!Hi, I am debugging a Web Service. It sometimes throws an exception while deserializing the input. But when I look through the log all I see is:
####<Jul 27, 2010 9:20:43 AM EDT> <Info> <WebService> <myhost.net> <prodServer114> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <1280236843573> <BEA-220024> <Handler weblogic.webservice.core.handler.InvokeHandler threw an exception from its handleRequest method. The exception was:
java.lang.NumberFormatException: For input string: "".>
How do I make weblogic spit out the exception stacktrace?
I am using Weblogic 9.2.
Thanks in advance! -
What do I need to fix this?
WLS 7.0 sp2
- Mike
java.lang.Error: NYI
at
weblogic.webservice.core.soap.SOAPMessageImpl.saveRequired(SOAPMessageImpl.j
ava:360)
at
com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnec
tion.java:228)
at
com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run
(HttpSOAPConnection.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at
com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnec
tion.java:126)Hi Mike,
Support for SAAJ was added in WLS 8.1, see:
http://edocs.bea.com/wls/docs81/webserv/interceptors.html#1058444
Can you try your code on the latest release?
Thanks,
Bruce
Mike Reiche wrote:
>
What do I need to fix this?
WLS 7.0 sp2
- Mike
java.lang.Error: NYI
at
weblogic.webservice.core.soap.SOAPMessageImpl.saveRequired(SOAPMessageImpl.j
ava:360)
at
com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnec
tion.java:228)
at
com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run
(HttpSOAPConnection.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at
com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnec
tion.java:126) -
I was using SAAJ 1.3 initially in WEBINF/lib and my code erred with
java.lang.NoSuchMethodError: newInstance at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection
Error Location:
SOAPConnectionFactory factory = SOAPConnectionFactory.newInstance();
SOAPConnection connection = factory.createConnection();
It erred on the above highlighted line. After some searching, I found that it could be because of Weblogic Server 9.2 not compatible with SAAJ 1.3. So I used SAAJ 1.2 and this error got solved. Now I am stuck up with the following error.
java.lang.UnsupportedOperationException: This class does not support SAAJ 1.1
at weblogic.webservice.core.soap.SOAPMessageImpl.getSOAPBody(SOAPMessageImpl.java:634)
Error Location:
SOAPElement attachmentElement = (SOAPElement)message.getSOAPBody().getElementsByTagNameNS(ws, "Attachment").item(0);
I am using SAAJ 1.2 but it says the class does not support SAAJ 1.1.
Again after some googling, I found that the error is due to some bug in Weblogic 9.2 when it is used with SAAJ 1.2. It was mentioned that following steps can be used to overcome this error.
1. Set classpath to latest saaj-impl.jar in startweblogic.cmd
2. Set the below 2 system properties in code.
System.setProperty("javax.xml.soap.MessageFactory","com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl");
System.setProperty("javax.xml.soap.SOAPConnectionFactory","weblogic.wsee.saaj.SOAPConnectionFactoryImpl");
I tried this too but it didnt work.
How can i get rid of this error? Also if i m going to set the classpath to SAAJ 1.3 in startweblogic.cmd, will it not result in the first error i got i.e java.lang.NoSuchMethodError: newInstance at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.
If my question is not very clear, please bear with me. I am pretty new to Webservice.
Can someone tell me how can i overcome this problem.Have you included the IP addresses of the managed servers into the cluster address like for eg 192.127.1.2,192.127.1.2 in the cluster address field in the administration console? include it if not included that will fix the issue.
Regards,
Dinesh -
Hi,
I am getting the following error while calling the webservice deployed in Weblogic 8.1sp5 version: Please help:
SEVERE: caught throwable
java.lang.AbstractMethodError: weblogic.webservice.core.soap.SOAPEnvelopeImpl.normalize()V
at com.sun.xml.rpc.streaming.XmlTreeReader.parse(XmlTreeReader.java:133)
at com.sun.xml.rpc.streaming.XmlTreeReader.next(XmlTreeReader.java:103)
at com.sun.xml.rpc.streaming.XMLReaderBase.nextContent(XMLReaderBase.java:23)
at com.sun.xml.rpc.streaming.XMLReaderBase.nextElementContent(XMLReaderBase.java:41)
at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:154)
at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate.java:443)
at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1072)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6981)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)Where you ever able to get this working on WLS? I am dealing with the same problem on WLS 8.1 sp2
-
Hi Guys,
I'm playing with the new SOAP reliable message transport in WL 8.1 SP 1.
I have configured a simple web service, with void return, configured for
reliable messaging. I deploy the client to the same server as the server
hosting the webservice, and it uses the async invocation etc.
It wasn't obvious how to throw the exception in the backend implementation.
I simply grab the usertransaction
and call ut.setRollbackOnly(). Hope that's correct..
Whenever I invoke the operation, I get this:
weblogic.webservice.saf.StoreForwardException: Could not find MessageData
header in aknowledgement
I have a JMS file store setup, and I have it assigned to the server via the
services/webservice tab, and I do see some activity in the file store.
My client looks like this:
AsyncInfo asyncInfo = new AsyncInfo();
asyncInfo.setReliableDelivery(true);
FutureResult fr = port.startReliableOperation("hello World", asyncInfo);
System.err.println("Client: Made invocation, invoking async end now");
port.endReliableOperation(fr);
Any ideas?
Regards,
Jon
PS. [As an aside, aknowledgement needs a 'c']
Client: port.StartReliableOperation()
--S:In reliable TX operation
--S:Going to roll back
--S: Set setRolbackOnly()
--S: Finished Reliable operation
Client: Made invocation, invoking async end now
<26-Aug-2003 18:39:31 o'clock BST> <Info> <WebService> <BEA-220025> <Handler
web
logic.webservice.saf.SAFHandler threw an exception from its handleResponse
metho
d. The exception was:
javax.xml.rpc.JAXRPCException: Failed to handle the response.>
myserver:Info:Handler weblogic.webservice.saf.SAFHandler threw an exception
from
its handleResponse method. The exception was:
javax.xml.rpc.JAXRPCException: Failed to handle the response.
<26-Aug-2003 18:39:31 o'clock BST> <Info> <WebService> <BEA-220047> <A
exception
was thrown from callReceive in the Client Dispatcher.>
myserver:Info:A exception was thrown from callReceive in the Client
Dispatcher.
<26-Aug-2003 18:39:31 o'clock BST> <Info> <WebService> <BEA-220034> <A stack
tra
ce associated with message 220047 follows:
javax.xml.rpc.soap.SOAPFaultException: Exception during processing:
weblogic.web
service.saf.StoreForwardException: Could not find MessageData header in
aknowled
gement. (see Fault Detail for stacktrace)
at
weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.ja
va:285)
at
weblogic.webservice.core.ClientDispatcher.callReceive(ClientDispatche
r.java:119)
at
weblogic.webservice.saf.ConversationAssembler.getResponse(Conversatio
nAssembler.java:302)
at
weblogic.webservice.saf.ConversationAssembler.execute(ConversationAss
embler.java:536)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>Hi Jon,
I've asked our WS RM guru to comment on your question, but I believe the
answer is going to be that you can explicitly roll back the transaction,
however only from the EJB application method, using the
EJBContext.setRollbackOnly() method.
Regards,
Bruce
Jon Mountjoy wrote:
>
Hi Bruce,
I looked at the example you pointed to, and it does what it says it does.
However, it doesn't attempt to rollback a transaction, which is what I am
doing.
The docs for reliable messaging say:
" If you want to roll back the transaction from the Java method, use the
Java Transaction API (JTA) to get the transaction object and then explicitly
roll back the transaction. "
They also indicate that the receiver executes in the context of a
transaction, which you may rollback.
For example, when the server is down, the transaction doesn't commit. This
behaviour is tested by your example, and it works.
However, when I modify your example to roll back the transaction in the web
service operation backend implementation,
then it doesn't. It yields the same exception that mine does.
For example, I modified your MarketService.java as indicated below to grab
the initial context and then during the operation grab the usertransaction
and call setRollbackOnly(). This causes WebLogic to throw a
weblogic.webservice.saf.StoreForwardException.
Any ideas?
Regards,
Jon
public final class MarketService {
private static boolean mustThrow = true;
InitialContext ctx = null;
public MarketService() {
try {
ctx = new InitialContext();
System.err.println("---InitialContext is set");
} catch (Exception e) {
System.err.println("---InitialContext is not set: " + e);
public void placeOrder(OrderInfo o) {
System.out.println("[MarketService] placing order: " + o);
mustThrow = !mustThrow;
if (mustThrow) {
System.out.println("--S:Going to roll back");
UserTransaction ut = null;
try {
ut = (UserTransaction) ctx.lookup(
"javax.transaction.UserTransaction");
System.out.println("--S: Set setRolbackOnly()");
ut.setRollbackOnly();
// <------------------------------------------
} catch (Exception e) {
System.err.println("--S: UT transaction error:" + e);
} else {
System.out.println("--S: -Not rolling back");
--S:In reliable TX operation
--S:Going to roll back
--S: Set setRolbackOnly()
--S: Finished Reliable operation
<29-Aug-2003 15:48:24 o'clock BST> <Info> <WebService> <BEA-220025> <Handler
weblogic.webservice.saf.SAFHandler threw an
exception from its handleResponse method. The exception was:
javax.xml.rpc.JAXRPCException: Failed to handle the response.>
myserver:Info:Handler weblogic.webservice.saf.SAFHandler threw an exception
from its handleResponse method. The exceptio
n was:
javax.xml.rpc.JAXRPCException: Failed to handle the response.
<29-Aug-2003 15:48:25 o'clock BST> <Info> <WebService> <BEA-220047> <A
exception was thrown from callReceive in the Clie
nt Dispatcher.>
myserver:Info:A exception was thrown from callReceive in the Client
Dispatcher.
<29-Aug-2003 15:48:25 o'clock BST> <Info> <WebService> <BEA-220034> <A stack
trace associated with message 220047 follow
s:
javax.xml.rpc.soap.SOAPFaultException: Exception during processing:
weblogic.webservice.saf.StoreForwardException: Could
not find MessageData header in aknowledgement. (see Fault Detail for
stacktrace)
at
weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:285)
at
weblogic.webservice.core.ClientDispatcher.callReceive(ClientDispatcher.java:
119)
at
weblogic.webservice.saf.ConversationAssembler.getResponse(ConversationAssemb
ler.java:302)
at
weblogic.webservice.saf.ConversationAssembler.execute(ConversationAssembler.
java:536)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
myserver:Info:A stack trace associated with message 220047 follows: -
hi,
I want weblogic webservice with DIME.
I not know weblogic 8.1 webservice support DIME type.
Please asked me this qustion and i'm not achivement this goal.
Some hint, some reference document or some source file send to me.
thank your advice.Hi Shon,
A word of caution:
DIME is not a widely-adopted encoding format for doing SwA (SOAP with Attachments).
This fact is somewhat borne out by how Microsoft has positioned it as "one of
the encoding formats" supported with their WS-Attachment note (or recommendation,
or whatever).
That said, you may be able to use a JAX-RPC Handler to create/process DIME attachments,
with WLS and WLW web services. If not, the next best bet is to use a Servlet filter,
in front of the Servlet that serves as the router for a WebLogic Web Service.
Neither of these approaches is "simple", but they aren't "rocket science" either.
You'll need to download the Java DIME Library from Onion Networks (http://onionnetworks.com/downloads/dime-1.0.3.zip),
to do either of these.
Regards,
Mike Wooten
shon <[email protected]> wrote:
Hi Bruce Stephens.
Thank your advice.
I visited advice url, But i'm not understand that how to use Java Dime
Libray v1.0.3. If you have some example source or some reference file,
send to my e-mail address.
Thank your advice -
Hi,
I am facing a problem deploying a Web-Application in Weblogic containing SOAP related code.
My environment is as below:
1) Weblogic 8.1 SP2 server
2) Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
3) A method is exposed as web-service
4) A client program(which is a part of Action class of Webb-app) written with SOAP APIs containing the following section:
MessageFactory mf = MessageFactory.newInstance();
SOAPMessage sm = mf.createMessage();
SOAPPart sp = sm.getSOAPPart();
sp.setPrefix("soapenv");
SOAPEnvelope se = sp.getEnvelope();
se.addNamespaceDeclaration("soapenv","http://orion:7001");
giving the following error at runtime:
Exception in thread "main" java.lang.AbstractMethodError:
weblogic.were.soap.SOAPEnvelopeImpl.setPrefix(Ljava/lang/String;)V
at Client.main(Client.java:39)
I am able to compile without any error/warning all the time.
This is giving only when putting the saaj(jwsdp-1.4) jars along with weblogic/webservices jars in classpath.
I am able to run the same application(outside Web-application as a stand-alone java program) without
any error while not using weblogic/webservices jar in the classpath.
The saaj jars needed to run without any error are:
saaj-api.jar
saaj-impl.jar
mailapi.jar
activation.jar
xercesImpl.jar
xalan.jar
dom.jar
jdom.jar
I thinks this is a compatibility issue. Please suggest to resolve it.
Thanks in advance,
pal_skHi,
I am facing a problem deploying a Web-Application in Weblogic containing SOAP related code.
My environment is as below:
1) Weblogic 8.1 SP2 server
2) Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
3) A method is exposed as web-service
4) A client program(which is a part of Action class of Webb-app) written with SOAP APIs containing the following section:
MessageFactory mf = MessageFactory.newInstance();
SOAPMessage sm = mf.createMessage();
SOAPPart sp = sm.getSOAPPart();
sp.setPrefix("soapenv");
SOAPEnvelope se = sp.getEnvelope();
se.addNamespaceDeclaration("soapenv","http://orion:7001");
giving the following error at runtime:
Exception in thread "main" java.lang.AbstractMethodError:
weblogic.were.soap.SOAPEnvelopeImpl.setPrefix(Ljava/lang/String;)V
at Client.main(Client.java:39)
I am able to compile without any error/warning all the time.
This is giving only when putting the saaj(jwsdp-1.4) jars along with weblogic/webservices jars in classpath.
I am able to run the same application(outside Web-application as a stand-alone java program) without
any error while not using weblogic/webservices jar in the classpath.
The saaj jars needed to run without any error are:
saaj-api.jar
saaj-impl.jar
mailapi.jar
activation.jar
xercesImpl.jar
xalan.jar
dom.jar
jdom.jar
I thinks this is a compatibility issue. Please suggest to resolve it.
Thanks in advance,
pal_sk -
Hi!
We need to implement authentication using our own methods, and the authentication
information is provided to the web service implementation in a basic authentication
header. The problem is, that the servlet
weblogic.webservice.server.servlet.WebServiceServlet, which handles web services
in
wls 7.0.sp2, always attempts to perform authentication, if the header is present.
Is there any way to circumvent this, because we want to implement authentication
on our own?
I already know two workarounds:
The best would of course be to implement a custom security realm for our own
authentication system. This is not an option, implementing an own security
realm is overkill for this specific web service.
The other way would be to route the requests by way of a custom servlet, which
would
remove the basic authentication header, and put the authentication info in custom
headers, such as x-auth: <user:password>, or smthng similar, and after successful
authentication, make a call to bea's servlet weblogic.webservice.server.servlet.WebServiceServlet.
But still, I'd like to know if there is any way to tell bea's servlet to ignore
the basic
authentication header?
Oh yeah, by the way, this is URGENT, as always. (really!! ;)
Toni NykanenCurrently there is no option to turn off security check.
I think you can use a servlet filter mapped to the URL
of your service, instead of a proxy servlet?
Regards,
-manoj
http://manojc.com
"Toni Nykanen" <[email protected]> wrote in message
news:3ef1577b$[email protected]..
>
Hi!
We need to implement authentication using our own methods, and theauthentication
information is provided to the web service implementation in a basicauthentication
header. The problem is, that the servlet
weblogic.webservice.server.servlet.WebServiceServlet, which handles webservices
in
wls 7.0.sp2, always attempts to perform authentication, if the header ispresent.
Is there any way to circumvent this, because we want to implementauthentication
on our own?
I already know two workarounds:
The best would of course be to implement a custom security realm for ourown
authentication system. This is not an option, implementing an own security
realm is overkill for this specific web service.
The other way would be to route the requests by way of a custom servlet,which
would
remove the basic authentication header, and put the authentication info incustom
headers, such as x-auth: <user:password>, or smthng similar, and aftersuccessful
authentication, make a call to bea's servletweblogic.webservice.server.servlet.WebServiceServlet.
>
But still, I'd like to know if there is any way to tell bea's servlet toignore
the basic
authentication header?
Oh yeah, by the way, this is URGENT, as always. (really!! ;)
Toni Nykanen -
Call Weblogic WebService in Delphi
Hi, I'm a newbie in WebService. I use Weblogic servicegen ant task wrap a stateless
EJB to webservice. The bean has a method with a string input parameter as follow:
String Test(String inputParam);
The WSDL generated by Weblogic WebService is like follow:
- <message name="Test">
<part name="string" xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:string"
/>
I use Delphi as Webservice client. When I use Delphi's WSDL Import Wizard, it
renamed parameter "string" to "string_" because of "string" is a reserved word
in Delphi. So when I invoked the Webservice, an exception was thrown:
Found SOAPElement [<string_ xsi:type="xsd:string>test</string_>]. But was not
able to find Part that is registered with this Message which corresponds to this
SOAPElement
How can I solve this problem? On the another word, Can I control the parmater
name generate by Weblogic Webservice ant task?
thanks very much!Please post web services issues in the webservices newsgroup.
Vimala wrote:
You can define the parameter name to the method and return parameter name with
a web-services.xml.
The link below should give a good start:
http://e-docs.bea.com/wls/docs70/webserv/dd.html#1057960
Vimala
"Dumack Wu" <[email protected]> wrote:
Hi, I'm a newbie in WebService. I use Weblogic servicegen ant task wrap
a stateless
EJB to webservice. The bean has a method with a string input parameter
as follow:
String Test(String inputParam);
The WSDL generated by Weblogic WebService is like follow:
- <message name="Test">
<part name="string" xmlns:partns="http://www.w3.org/2001/XMLSchema"
type="partns:string"
/>
I use Delphi as Webservice client. When I use Delphi's WSDL Import Wizard,
it
renamed parameter "string" to "string_" because of "string" is a reserved
word
in Delphi. So when I invoked the Webservice, an exception was thrown:
Found SOAPElement [<string_ xsi:type="xsd:string>test</string_>]. But
was not
able to find Part that is registered with this Message which corresponds
to this
SOAPElement
How can I solve this problem? On the another word, Can I control the
parmater
name generate by Weblogic Webservice ant task?
thanks very much!
Rajesh Mirchandani
Developer Relations Engineer
BEA Support -
We have Weblogic 8.1 SP2. The application has several entity beans. I just upgraded it from SP2 to SP3 and when I try to use these ejb's I am getting the following exception:
Root cause of ServletException.
java.lang.NoSuchMethodError: weblogic.ejb20.internal.EntityEJBObject_Activatable.preInvoke(Lweblogic/ejb20/
internal/MethodDescriptor;Lweblogic/security/service/ContextHandler;)Lweblogic/ejb20/interfaces/InvocationWrapper;
Note that these ejb's worked fine in SP2.
Now, just to test, I redeployed some of these ejb's and then these redeployed ejb's worked fine.
My question is, is it required to redeploy all ejb's to upgrade from SP2 to SP3?
Thanks.redeploying the beans had the upgraded server recompile them which (probably), updated any internal references to methods. I don't quite understand one can run the beans that were compiled on SP2, on an upgraded SP3 server without having deployed (and therefore recompiled) them on the upgraded SP3 server.
-
Weblogic-webservices-policy.xml
hi,
iam getting the following error in weblogic-webservices-policy.xml
Referenced file (weblogic-webservices-policy.xml) contains errors (http://www.bea.com/ns/weblogic/webservice-policy-ref/1.0/webservice-policy-ref.xsd).
weblogic-webservices-policy.xml containts the following lines of code:
<?xml version='1.0' encoding='UTF-8'?>
<webservice-policy-ref xmlns="http://www.bea.com/ns/weblogic/webservice-policy-ref" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/webservice-policy-ref http://www.bea.com/ns/weblogic/webservice-policy-ref/1.0/webservice-policy-ref.xsd"></webservice-policy-ref>
can anybody suggest how to fix this error?
thanks
johnHi!
I was looking for some information regarding the weblogic-webservices-policy.xml file and founf your post. Did you success to solve the problem with it?
Greatly appreciate any inputs
Sincerely
J.
Maybe you are looking for
-
Aceder a variáveis de sistema Recibos
Boa tarde, Estou a fazer um template para recibos e necessitava de aceder a um campo mas não sei como o fazer. No form dos recibos, aparecem todas as facturas que um determinado cliente possui em dívida. Um dos primeiros campos que aparece é Nº do do
-
Hp photosmart 5510 won't scan in colour on my mac
My HP Photosmart 5510 will not print in colour to my mac documentary page.
-
I just bought an absolutely brand new ipod touch 5th generation and it wont charge
With my computer or with my wall charger. I cant put it into DFU mode because its dead and I have no clue how to turn it back on if it wont charge.. Please help.
-
Display custom Subview in completed tasks
Hi, Is it possible to display custom subview in "Completed Tasks" in UWL? I have a custom subview which is visible for items when "New and In Progress Tasks" dropdown option is selected. Unfortunately this subview is not visible for items when "Co
-
Confirm Goods / Service display delivery date on item level
Hello all, in transaction Confirm Goods / Service user can see creation date of the purchase order. Is it possible to somehow display required delivery date on item level. Field "Required on" which is visible in Basic data of the item. Would like to