TYPES.XML for client generated stubs?
Hello!
Does the types.xml file, generated by 'autotype' when the web service is created,
need to be bundled with the client? If so, where should it go? I tried placing
into the same package path as the generated client stubs, but that didn't have
an effect.
When I generate the web service, the type.xml shows up in WEB-INF/classes ...
so does that mean the client should have it in the root package?
Thanks
-- Jake
Hi Jacob,
There are no types generated, because the method of your "backend" component,
accepts (or returns) an org.w3c.dom.Document. Correct? This basically means that
the input argument (or return type) can be any XML document, which is why the
WSDL uses an xsd:anyType :-)
I don't know about WLS 8.1 SP2, but you will need weblogic.jar in the client's
CLASSPATH to call a WebLogic Web Service operation, which accepts or returns an
object that implements the org.w3c.dom.Document interface. This is because the
webserviceclient.jar (or webserviceclient+ssl.jar) file does not contain all the
classes needed to marshall/unmarshall an org.w3c.dom.Document. You may also have
some problems getting a "static" (i.e. stub) JAX-RPC client working. The JAX-RPC
"dynamic" (i.e. dii) JAX-RPC client will work, "out-of-the-box", if you load the
type mapping registry with the correct info from the WorkflowService.xml file.
I have attached a code extract that shows what the DII code should look like :-)
For the record, the org.w3c.dom.Document object does not travel over the wire
to the target web service. Just the XML inside it :-) This means that the target
web service implementation does not need to know that you use an org.w3c.dom.Document
object to marshall/unmarshall the arguments (or return value).
Regards,
Mike Wooten
"Jacob Anderson" <[email protected]> wrote:
>
I tried building the client classes using the web service EAR file, thinking
that
it would embed the type information into the client JAR file. Unfortunately,
no, that did not occur. The type mapping data in the WorkflowService.xml
found
in the generated client JAR file contains nothing:
<wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
</wsdd:type-mapping>
On the console, when running the client, I see:
[java] javax.xml.rpc.JAXRPCException: web service invoke failed:
javax.xml.soap.SOAPException:
failed to serialize interface org.w3c.dom.Documentweblogic.xml.schema.binding.SerializationException:
mapping lookup failure. class=interface org.w3c.dom.Document class context=TypedClassContext{schemaType=['http://www.w3.org/2001/XMLSchema']:anyType}
Clearly the client is not able to understand the "anyType" that is used
in the
service WSDL to denote the org.w3c.dom.Document type.
Does the classpath have an impact here? I noticed that the webserviceclient.jar
is supposedly the only jar needed to run WS clients. Well, I call "setEnv.cmd"
before I run the ant task to build and test my web service - does that
have an
effect? It didn't seem to affect tutorial31 when I ran it this way.
Any help is greatly appreciated
-- Jake
"Jacob Anderson" <[email protected]> wrote:
Hello!
Does the types.xml file, generated by 'autotype' when the web service
is created,
need to be bundled with the client? If so, where should it go? I tried
placing
into the same package path as the generated client stubs, but that didn't
have
an effect.
When I generate the web service, the type.xml shows up in WEB-INF/classes
so does that mean the client should have it in the root package?
Thanks
-- Jake
[jacob-dii.txt]
Similar Messages
-
Document type selection for MRP generated Purchase Requisition
Hi,
when I run MRP ,for externlal procurement items system is creating Purchase Requisition with Document type NB.How to make system to take different Document type automatically with MRP.
Thanks and Regards
Raghavendra PaiDear,
Go to SPRO-Materials Management--Purchasing Purchase RequisitionDefine Document types
Copy the NB and create and New Document type
You can default the document type from the MRP group.
Customizing is done in OPPZ transaction.
Once you have entered the MRP group to your material master MRP view, then next MRP run will create the requistions using the document types maintained to the MRP group.
Please refer the OSS Notes- 46919 and this thread,
Purchase req doc type in MRP
Regards,
R.Brahmankar -
Generating XML for an instance of a custom type
I apologize for a silly question...
How do I use the codec object that <autotype> generates for a custom type?
The schema and WSDL files are written by hand, <autotype> generates java representation
of the types along with serializer/deserializer classes for nested types and the
main codec class fine. Now I need to manually generate XML for a particular instance
of my custom type (at runtime). The codec class declares XML_TYPE as a private
variable while it seems to be exactly what needs to be passed to codec’s serialize(),
and the codec class is a final class... so how’s this class supposed to be used?
Same with de-serialization.
Any help will be greatly appreciated!
Dmitriyalso see http://edocs.bea.com/wls/docs81/webserv/customdata.html#1052981
Bruce Stephens wrote:
>
Hi Dimtriy,
I've attached an example using a custom codec with clientgen. If you
could take a look and see if this ser/deser can provide you with some
guidelines on what is required. Also, if you could bundle a small
example that illustrates your custom type, it would be helpful.
Thanks,
Bruce
Dmitriy Myaskovskiy wrote:
I apologize for a silly question...
How do I use the codec object that <autotype> generates for a custom type?
The schema and WSDL files are written by hand, <autotype> generates java representation
of the types along with serializer/deserializer classes for nested types and the
main codec class fine. Now I need to manually generate XML for a particular instance
of my custom type (at runtime). The codec class declares XML_TYPE as a private
variable while it seems to be exactly what needs to be passed to codec’s serialize(),
and the codec class is a final class... so how’s this class supposed to be used?
Same with de-serialization.
Any help will be greatly appreciated!
Dmitriy------------------------------------------------------------------------
Name: custom_codec.zip
custom_codec.zip Type: Zip Compressed Data (application/x-zip-compressed)
Encoding: base64 -
I am getting the following error message when I try invoking
a webservice.
Could not generate stub objects for web service invocation.
Name: ProgrammePrivilege. WSDL:
https://clientaccweb.reseaudistinction.com/CardHolderInfo.asmx?WSDL.
org.xml.sax.SAXException: Fatal Error: URI=null Line=11: The
element type "META" must be terminated by the matching end-tag "".
It is recommended that you use a web browser to retrieve and
examine the requested WSDL document for correctness. If the
requested WSDL document can't be retrieved or it is dynamically
generated, it is likely that the target web service has programming
errors.
The problem is, the webservice is working fine, the
application was working yesterday, the error message just appears
after a couple of days and I have to refresh the service in the CF
Administrator. Once I refresh it, everything starts working again.
Anyone else got this problem? ANY help would be appreciated!
If you guys need my code anyway, I can attach it but like I
said, everything works for a couple of days, then, out of the blue,
it stops working so I doubt that it's my CFINVOKE that's the
problem...Similar kind of problems here - reported back to Adobe a
couple of months ago, so let's wait and hope for the best. My
problems have related to registering multiple web services and
executing them. One problem is that, If I register two identical
(and quite complex) web services, I can only execute either of
them. After CF restart, either of them works, but invoking the
other doesn't work.
For example; CF_Restart -> Try A first, A works -> B
doesn't. Also, CF_Restart -> Try B first, B works -> A
doesn't.
CFMX7.0.2, Apache 2.2, WinXP -
Webapp client using weblogic-generated stubs
Hi,
I have a simple webservice that has been tested for a while and works without
any trouble when
accessed from a standalone java client using the weblogic-generated webservice
stubs.
I am trying to code a webapp client (using jsp/struts) using the same stubs, and
seem to keep
getting this error. It appears on the client side, doesn't even reach the server
side.
I am using weblogic 8.1 SP1. (It is interesting that even though everything was
compiled and
deployed with weblogic 8.1, there is some reference to 7.0-- which is not even
installed on the
system, so I don't know where it is coming from.)
<May 7, 2004 12:58:23 PM EDT> <Info> <WebService> <BEA-220025> <Handler weblogic.webservice.core.handler.ClientHandler
threw an exception from its handleResponse method. The exception was:
java.lang.IllegalAccessError: Already connected.>
java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: Exception
during processing: java.lang.IllegalAccessError: Already connected (see Fault
Detail for stacktrace)
Detail:
<detail>
<bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">
</bea_fault:stacktrace>java.lang.IllegalAccessError: Already connected
at weblogic.net.http.HttpURLConnection.setRequestProperty(Ljava.lang.String;Ljava.lang.String;)V(HttpURLConnection.java:570)
at com.hp.ov.ipa.instr.bip.HttpURLConnectionArmInstrumentation.methodEntry(Ljava.lang.Object;Ljava.lang.Object;Ljava.lang.Object;I)Ljava.lang.Object;(HttpURLConnectionArmInstrumentation.java:98)
at weblogic.net.http.HttpURLConnection.getInputStream()Ljava.io.InputStream;(HttpURLConnection.java:???)
at weblogic.net.http.HttpURLConnection.getHeaderField(Ljava.lang.String;)Ljava.lang.String;(HttpURLConnection.java:542)
at java.net.URLConnection.getContentType()Ljava.lang.String;(URLConnection.java:381)
at weblogic.webservice.binding.http11.Http11ClientBinding.receive(Ljavax.xml.rpc.handler.MessageContext;)V(Http11ClientBinding.java:202)
at weblogic.webservice.core.handler.ClientHandler.handleResponse(Ljavax.xml.rpc.handler.MessageContext;)Z(ClientHandler.java:63)
at weblogic.webservice.core.HandlerChainImpl.handleResponse(Ljavax.xml.rpc.handler.MessageContext;)Z(HandlerChainImpl.java:230)
at weblogic.webservice.core.ClientDispatcher.receive(Lweblogic.webservice.WLMessageContext;)Ljava.lang.Object;(ClientDispatcher.java:229)
at weblogic.webservice.core.ClientDispatcher.dispatch([Ljava.lang.Object;)Ljava.lang.Object;(ClientDispatcher.java:144)
at weblogic.webservice.core.DefaultOperation.invoke(Ljava.util.Map;[Ljava.lang.Object;Ljava.io.PrintStream;)Ljava.lang.Object;(DefaultOperation.java:444)
at weblogic.webservice.core.DefaultOperation.invoke(Ljava.util.Map;[Ljava.lang.Object;)Ljava.lang.Object;(DefaultOperation.java:430)
at weblogic.webservice.core.rpc.StubImpl._invoke(Ljava.lang.String;Ljava.util.Map;)Ljava.lang.Object;(StubImpl.java:270)
Thanks in advance,
EHi,
Thanks for your help with this. As it turns out, I received this message from
the weblogic team here:
=======
All,
The J2EE monitoring tool OVTA rolled out to Weblogic Farm Linux QA and Stage environment
had a bug in the instrumentation. The bug induces a java.lang.IllegalAccessError.
A patch as been rolled out to fix this issue.
=======
Once the patch was rolled out and weblogic was restarted, the issue disappeared.
Thanks again for your help!
E
Bruce Stephens <[email protected]> wrote:
Hello,
What is
com.hp.ov.ipa.instr.bip.HttpURLConnectionArmInstrumentation.methodEntry
at the time of failure?
If you could provide a short reproducer, we could give it a spin; or
open a dialog with our support team.
Thanks,
Bruce
Elisheva G wrote:
Hi, thanks for responding.
I have precisely the same client jsp running without any errors onapache tomcat
accessing
webservices residing in weblogic 8.1 It's only when I try to migratethe client
code from tomcat
to weblogic that I see this "already connected" exception being thrownfrom within
the weblogic-
generated stubs.
I successfully get a port from the service, but when I try to executethe business
method in the
port, that is where the exception is thrown -- consistently.
Any ideas? I am seeing identical behavior on 2 different applications.
Thanks in advance,
E
Bruce Stephens <[email protected]> wrote:
Hello,
The 7.0 reference is a namespace and not a problem and not associated
with your issue. I think you are seeing normal process threading
issues
with jsp sessions. There is an example using a jsp [1] and one with
SSL
[2] that you might want to examine.
HTH,
Bruce
[1]
http://manojc.com/?sample28
[2]
http://webservice.bea.com/clientauth.zip
Elisheva G wrote:
Hi,
I have a simple webservice that has been tested for a while and
works
without
any trouble when
accessed from a standalone java client using the weblogic-generatedwebservice
stubs.
I am trying to code a webapp client (using jsp/struts) using the
same
stubs, and
seem to keep
getting this error. It appears on the client side, doesn't even
reach
the server
side.
I am using weblogic 8.1 SP1. (It is interesting that even though
everything
was
compiled and
deployed with weblogic 8.1, there is some reference to 7.0-- whichis not even
installed on the
system, so I don't know where it is coming from.)
<May 7, 2004 12:58:23 PM EDT> <Info> <WebService> <BEA-220025> <Handlerweblogic.webservice.core.handler.ClientHandler
threw an exception from its handleResponse method. The exception
was:
java.lang.IllegalAccessError: Already connected.>
java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException:Exception
during processing: java.lang.IllegalAccessError: Already connected(see Fault
Detail for stacktrace)
Detail:
<detail>
<bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">
</bea_fault:stacktrace>java.lang.IllegalAccessError: Already connected
at weblogic.net.http.HttpURLConnection.setRequestProperty(Ljava.lang.String;Ljava.lang.String;)V(HttpURLConnection.java:570)
at com.hp.ov.ipa.instr.bip.HttpURLConnectionArmInstrumentation.methodEntry(Ljava.lang.Object;Ljava.lang.Object;Ljava.lang.Object;I)Ljava.lang.Object;(HttpURLConnectionArmInstrumentation.java:98)
at weblogic.net.http.HttpURLConnection.getInputStream()Ljava.io.InputStream;(HttpURLConnection.java:???)
at weblogic.net.http.HttpURLConnection.getHeaderField(Ljava.lang.String;)Ljava.lang.String;(HttpURLConnection.java:542)
at java.net.URLConnection.getContentType()Ljava.lang.String;(URLConnection.java:381)
at weblogic.webservice.binding.http11.Http11ClientBinding.receive(Ljavax.xml.rpc.handler.MessageContext;)V(Http11ClientBinding.java:202)
at weblogic.webservice.core.handler.ClientHandler.handleResponse(Ljavax.xml.rpc.handler.MessageContext;)Z(ClientHandler.java:63)
at weblogic.webservice.core.HandlerChainImpl.handleResponse(Ljavax.xml.rpc.handler.MessageContext;)Z(HandlerChainImpl.java:230)
at weblogic.webservice.core.ClientDispatcher.receive(Lweblogic.webservice.WLMessageContext;)Ljava.lang.Object;(ClientDispatcher.java:229)
at weblogic.webservice.core.ClientDispatcher.dispatch([Ljava.lang.Object;)Ljava.lang.Object;(ClientDispatcher.java:144)
at weblogic.webservice.core.DefaultOperation.invoke(Ljava.util.Map;[Ljava.lang.Object;Ljava.io.PrintStream;)Ljava.lang.Object;(DefaultOperation.java:444)
at weblogic.webservice.core.DefaultOperation.invoke(Ljava.util.Map;[Ljava.lang.Object;)Ljava.lang.Object;(DefaultOperation.java:430)
at weblogic.webservice.core.rpc.StubImpl._invoke(Ljava.lang.String;Ljava.util.Map;)Ljava.lang.Object;(StubImpl.java:270)
Thanks in advance,
E -
Generate Photo Gallery XML for Spry with Adobe Bridge
Wanted to post a note to what I've discovered/worked out -- a
way to
generate a very useful photos.xml from Adobe Bridge. If you
use Bridge,
it's very easy to add titles, keywords, ratings -- all kinds
of metadata
that one might use in a photo gallery. Here it is in case
anyone wants
to use.
The script is based on one I found at the Adobe User to User
Bridge
Scripting Forum for exporting a CSV file.
Note 1: this particular script doesn't take into account
CDATA that
might exist in your metadata, like ampersands in your title.
I've just
avoided using those, but you could also have the script write
out a
CDATA node for that info instead.
Note 2: this script does not write out a thumbpath,
thumbwidth or
thumbheight attribute. But usually the thumbpath is the exact
same as
the regular "path" attribute, and the thumbwidth and
thumbheight are
just a ratio of the regular "width" and "height" attributes.
I added a
bit of JS to the gallery.js file to calculate those before
growing the
thumbnail on rollover.
Personally I'm using keywords as categories and titles as
captions and
sorting by rating (stars in Bridge), so here's the .jsx file
I created.
The script should be saved to the folder "StartupScripts" in
Program
Files/Common Files/Adobe.
Hope this is useful for others too!
#target bridge
if (BridgeTalk.appName == "bridge" ) {
// create menu
var menu = MenuElement.create( "command", "Export XML File",
"at the end
of Tools");
menu.onSelect = function(m) {
try {
// ask for the name of the output file
var f = File.saveDialog("Export XML file to:", "XML
File:*.XML");
if ( !f ) { return; }
// open filestream and write first line
f.open("w");
f.writeln("\<photos\>\r\r");
// get a list of all the visible thumbnails in Bridge
var items = app.document.visibleThumbnails;
for (var i = 0; i < items.length; ++i) { var item = items
f.writeln("\<photo path = \"" + item.name + "\"" + "\r" +
"width = " +
"\""+ getWidth(item) + "\"" + "\r" + "height = " + "\""+
getHeight(item)
+ "\"" + "\r" + "rating = " + "\""+ getRating(item) + "\"" +
"\r" +
"categories = " + "\""+ listKeywords(item) + "\"" + "\r" +
"caption = "
+ "\""+ getTitle(item) + "\"" + " \>" + "\r" +
"\<\/photo\>\r\r" ); }
f.writeln("\<\/photos\>");
f.close();
} catch(e) {
function getTitle(tn) {
md = tn.metadata;
md.namespace = "
http://purl.org/dc/elements/1.1/";
var varTitle = md.title;
return varTitle;
function getWidth(tn) {
md = tn.metadata;
md.namespace = "
http://ns.adobe.com/tiff/1.0/"
var varWidth = md.ImageWidth;
return varWidth;
function getHeight(tn) {
md = tn.metadata;
md.namespace = "
http://ns.adobe.com/tiff/1.0/"
var varHeight = md.ImageLength;
return varHeight;
function getRating(tn) {
md = tn.metadata;
md.namespace = "
http://ns.adobe.com/xap/1.0/"
var varRating = md.Rating;
return varRating;
function listKeywords(tn) {
md = tn.metadata;
md.namespace = "
http://ns.adobe.com/photoshop/1.0/";
var Keywords = md.Keywords;
var varKeywords = "" ;
for ( var i = 0; i < Keywords.length; ++i ) { varKeywords
= varKeywords
+ Keywords + ","; }
return varKeywords;I updated the script so it exports an XML file from Bridge
with full
compatibility with the Spry Demo Photo Gallery, to use as
photos.xml.
It's at the same address:
http://www.imagicdigital.com/spry/bridge_export_xml.zip
To Use:
The script goes in the folder "StartupScripts" in Program
Files/Common
Files/Adobe.
Launch Bridge and browse to a folder that contains the files
you want in
your gallery -- the "source" folder, as it were.
Choose the menu command "Tools > Export XML for Spry
Gallery".
Type a name for your XML file in the Save dialog box, choose
a location,
and hit "Save".
In the dialog box that pops up, enter a max length/width for
your
thumbnails, in pixels. Some common sizes are "75" , "100" or
"125".
Hit "OK". You should see an alert pop up telling you "XML
file
successfully created!" -
Problem generating stubs for Java EJB web service deployed in OAS
I created an EJB web service and I've successfully deployed it in my Oracle App Server. Some of the methods work fine but others produce the ff error:
org.apache.soap.SOAPException - java.lang.IllegalArgumentException: No Serializer found to serialize [classname] using encoding style [encoding]It seems that the objects specified as parameters in the web service methods exposed are the only ones that had stubs generated for them. Other objects I use, which are usually wrapped inside a Vector, did not have generated stubs.
Example:
public String loginUser(UserDTO userDTO) throws RemoteException, NamingException, SQLException;
public String addItems (Vector vecItems) throws RemoteException, NamingException, SQLException; // where vecItems is a collection of ItemDTO objects In this scenario, stubs were generated for the UserDTO class, but not for the ItemDTO class. In effect, calling the addItems method resulted to the exception I mentioned above.
I did a workaround wherein I declared a dummy method which accepted all the types of objects I needed as parameters so all the necessary stubs can be generated, but this fix doesn't feel like it's the proper solution to my problem.
If anyone can help me, it would be greatly appreciated. Thanks!Crossposted:
Problem generating stubs for Java EJB web service deployed in OAS -
Realize a J2ME reporting thin client (for PDA) with XML for Analysis
I'd create a reporting thin client (on PDA or smartphone) that uses the web service XMLA. How I can implement it? Can I use J2ME ?
Can i have more informations ??I haven't tried generating stubs from WTK, but you could also try to access your WS by programming it. One of the solutions available for most of J2ME devices (MIDP/CLDC) is kSOAP (<a href="http://www.ksoap.org">www.ksoap.org</a>). I've tested it with Apache Axis and .NET-based WS servers - it works just fine, so I assume it should be working with SAP as well. This two articles might be valuable for you:
http://www.javaworld.com/javaworld/jw-08-2002/jw-0823-wireless.html
http://java.sys-con.com/read/37193.htm?CFID=671691&CFTOKEN=A29B9B9F-EE05-1072-E2866AEB2CFB4A79 -
Connection has no password, -jdbc.xml file not generated for connection
Hi,
I'm migrating a jdev 10g web application (with EJB) to 11g, i did the automatic migration tool offred by 11g, i'm using the integrated weblogic server but it seems there is a *-jdbc.xml file missed, and it must be generated, this is the log file of the start of server :
IntegratedWebLogicServer started.
[Running application SAB_ADMIN on Server Instance IntegratedWebLogicServer...]
[09:14:15 AM] ---- Deployment started. ----
[09:14:15 AM] Target platform is (Weblogic 10.3).
[09:14:18 AM] Retrieving existing application information
[09:14:19 AM] Running dependency analysis...
[09:14:19 AM] Deploying 4 profiles...
[09:14:21 AM] Wrote Web Application Module to C:\Users\Moshe\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\SAB_ADMIN\ViewControllerWebApp.war
[09:14:21 AM] Wrote Web Application Module to C:\Users\Moshe\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\SAB_ADMIN\ModelWebApp.war
[09:14:25 AM] Wrote EJB Module to C:\Users\Moshe\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\SAB_ADMIN\ModelEJB.jar
[09:14:25 AM] WARNING: Connection DBConnectionSAB has no password. DBConnectionSAB-jdbc.xml file not generated for connection DBConnectionSAB.
[09:14:26 AM] Wrote Enterprise Application Module to C:\Users\Moshe\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\SAB_ADMIN
[09:14:26 AM] Deploying Application...
<14 oct. 2010 09 h 14 GMT+01:00> <Notice> <EclipseLink> <BEA-2005000> <2010-10-14 09:14:28.065--ServerSession(40464643)--property eclipselink.jdbc.user is deprecated, property javax.persistence.jdbc.user should be used instead.>
<14 oct. 2010 09 h 14 GMT+01:00> <Notice> <EclipseLink> <BEA-2005000> <2010-10-14 09:14:28.299--ServerSession(40464643)--property eclipselink.jdbc.driver is deprecated, property javax.persistence.jdbc.driver should be used instead.>
<14 oct. 2010 09 h 14 GMT+01:00> <Notice> <EclipseLink> <BEA-2005000> <2010-10-14 09:14:28.299--ServerSession(40464643)--property eclipselink.jdbc.url is deprecated, property javax.persistence.jdbc.url should be used instead.>
<14 oct. 2010 09 h 14 GMT+01:00> <Notice> <EclipseLink> <BEA-2005000> <2010-10-14 09:14:28.299--ServerSession(40464643)--property eclipselink.jdbc.password is deprecated, property javax.persistence.jdbc.password should be used instead.>
<14 oct. 2010 09 h 14 GMT+01:00> <Warning> <EJB> <BEA-012035> <The Remote interface method: 'public abstract java.lang.Object oracle.user.Session_user.mergeEntity(java.lang.Object)' in EJB 'SessionEJB' contains a parameter of type: 'java.lang.Object' which is not Serializable. Though the EJB 'SessionEJB' has call-by-reference set to false, this parameter is not Serializable and hence will be passed by reference. A parameter can be passed using call-by-value only if the parameter type is Serializable.>
<14 oct. 2010 09 h 14 GMT+01:00> <Warning> <EJB> <BEA-012035> <The Remote interface method: 'public abstract java.lang.Object oracle.user.Session_user.persistEntity(java.lang.Object)' in EJB 'SessionEJB' contains a parameter of type: 'java.lang.Object' which is not Serializable. Though the EJB 'SessionEJB' has call-by-reference set to false, this parameter is not Serializable and hence will be passed by reference. A parameter can be passed using call-by-value only if the parameter type is Serializable.>
<14 oct. 2010 09 h 14 GMT+01:00> <Warning> <EJB> <BEA-012035> <The Remote interface method: 'public abstract java.lang.Object oracle.bouton.Session_bouton.mergeEntity(java.lang.Object)' in EJB 'Session_bouton' contains a parameter of type: 'java.lang.Object' which is not Serializable. Though the EJB 'Session_bouton' has call-by-reference set to false, this parameter is not Serializable and hence will be passed by reference. A parameter can be passed using call-by-value only if the parameter type is Serializable.>
<14 oct. 2010 09 h 14 GMT+01:00> <Warning> <EJB> <BEA-012035> <The Remote interface method: 'public abstract java.lang.Object oracle.bouton.Session_bouton.persistEntity(java.lang.Object)' in EJB 'Session_bouton' contains a parameter of type: 'java.lang.Object' which is not Serializable. Though the EJB 'Session_bouton' has call-by-reference set to false, this parameter is not Serializable and hence will be passed by reference. A parameter can be passed using call-by-value only if the parameter type is Serializable.>
<14 oct. 2010 09 h 14 GMT+01:00> <Warning> <EJB> <BEA-012035> <The Remote interface method: 'public abstract java.lang.Object oracle.operation.Session_operation.mergeEntity(java.lang.Object)' in EJB 'Session_operation' contains a parameter of type: 'java.lang.Object' which is not Serializable. Though the EJB 'Session_operation' has call-by-reference set to false, this parameter is not Serializable and hence will be passed by reference. A parameter can be passed using call-by-value only if the parameter type is Serializable.>
<14 oct. 2010 09 h 14 GMT+01:00> <Warning> <EJB> <BEA-012035> <The Remote interface method: 'public abstract java.lang.Object oracle.operation.Session_operation.persistEntity(java.lang.Object)' in EJB 'Session_operation' contains a parameter of type: 'java.lang.Object' which is not Serializable. Though the EJB 'Session_operation' has call-by-reference set to false, this parameter is not Serializable and hence will be passed by reference. A parameter can be passed using call-by-value only if the parameter type is Serializable.>
<14 oct. 2010 09 h 14 GMT+01:00> <Notice> <EclipseLink> <BEA-2005000> <2010-10-14 09:14:29.656--ServerSession(42285779)--property eclipselink.jdbc.user is deprecated, property javax.persistence.jdbc.user should be used instead.>
<14 oct. 2010 09 h 14 GMT+01:00> <Notice> <EclipseLink> <BEA-2005000> <2010-10-14 09:14:29.656--ServerSession(42285779)--property eclipselink.jdbc.driver is deprecated, property javax.persistence.jdbc.driver should be used instead.>
<14 oct. 2010 09 h 14 GMT+01:00> <Notice> <EclipseLink> <BEA-2005000> <2010-10-14 09:14:29.656--ServerSession(42285779)--property eclipselink.jdbc.url is deprecated, property javax.persistence.jdbc.url should be used instead.>
<14 oct. 2010 09 h 14 GMT+01:00> <Notice> <EclipseLink> <BEA-2005000> <2010-10-14 09:14:29.656--ServerSession(42285779)--property eclipselink.jdbc.password is deprecated, property javax.persistence.jdbc.password should be used instead.>
<14 oct. 2010 09 h 14 GMT+01:00> <Error> <HTTP> <BEA-101371> <There was a failure when processing annotations for application C:\Users\Moshe\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\SAB_ADMIN\ModelWebApp.war. Please make sure that the annotations are valid. The error is oracle.adf.view.faces.webapp.ResourceServlet>
<14 oct. 2010 09 h 14 GMT+01:00> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1287044066833' for task '0'. Error is: 'weblogic.application.ModuleException: Failed to load webapp: 'SAB_CRUD-Model-context-root''
weblogic.application.ModuleException: Failed to load webapp: 'SAB_CRUD-Model-context-root'
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:404)
at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:180)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:508)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: oracle.adf.view.faces.webapp.ResourceServlet
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:280)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:253)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Truncated. see log file for complete stacktraceThis is the content of my web.xml file where i found the markup <servlet> and i tried to run without the first one but the error still like it was :
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>resources</servlet-name>
<servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>resources</servlet-name>
<servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
</servlet>
<servlet>
<description>Web Service MyConnexionServiceSoapHttpPort</description>
<display-name>Web Service MyConnexionServiceSoapHttpPort</display-name>
<servlet-name>MyConnexionServiceSoapHttpPort</servlet-name>
<servlet-class>oracle.controll.ConnexionBaseDeDonnees</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>ResultatRequetePort</servlet-name>
<servlet-class>oracle.controll.ResultatRequete</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>resources</servlet-name>
<url-pattern>/adf/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>MyConnexionServiceSoapHttpPort</servlet-name>
<url-pattern>MyConnexionServiceSoapHttpPort</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ResultatRequetePort</servlet-name>
<url-pattern>/ResultatRequetePort</url-pattern>
</servlet-mapping>
Thanks... -
Object key for object type WORKITEM is not generated
Hi experts,
I have a problem when I create a purchase requisition by workflow. This problem happens a client copy from production to quality system has been done.
The problem is that the object key for the object type WORKITEM is not generated. I check in transaction SWEL in quality system it displays the following data:
For the event data I have the following data:
Event Instance ID - 1099124
Object Type - BUS2105
Object key - 0120001588 (purchase requisition number)
Event - criadaoumodificada (createdorchanged)
For the Receiver Data I have the following data:
Receiver Type - WS99900003
Object Type (is not displayed)
Object Key (is empty)
Receiver FM - SWW_WI_CREATE_VIA_EVENT_IBF
RFC Destination - WORKFLOW_LOCAL_010
In the Receiver Data the object type is not displayed and the object key is not generated. In production system the object type is WORKITEM, and the object key is filled by a number of workitem.
Can anyone tell me why this happens?
Best regards,
LeonelHi Leonel,
as far as I remember, those fields are updated once the receiver function module was successfully processed. In your case, I'd suggest, that you ...
- Check the workflow local RFC destination (SM59, WORKFLOW_LOCAL_<client>)
- Check the workflow-user (SU01, User-ID WF-BATCH normally),
- Check for entries that stuck in the event processing (tRFC queue, transaction SM58).
- To verify the complete system, execute transaction SWU3. The section under "Runtime environment" should be marked green. (Ignore the red sign on definition environment).
- For a more extensive workflow runtime check, use the transaction SWUD (workflow diagnosis).
After all that, your problem might be solved, or at least you know, what's all okay
Best wishes,
Florin -
Separate Doc.Type for MRP generated PRs
Dear All
We are facing an issue with MRP process where we want to automate the process from MRP run to PO creation.
In source list we will add the existing contracts and make it relevant to MRP so that after MRP run we will get source (vendor defined in the contract) assigned purchase requisitions. After that, we will create a background job for ME59n in order to get the POs automatically after MRP run.
In this process we are facing issue with the auto PO generation through ME59n as funds management (FM) related parameters such as Fund and Fund center need to be enetered manually at the time of PO creation in our system. So in order to avoid this manual entry we want to define FM derivation which automatically populate the fund & fund center in the MRP generated PRs.
Further, we have two options for FM derivation one is valuation class and the second one is Document type. If we define the FM derivation based on the valuation class we cannot only restrict to MRP generated PRs. Second option is separate document type for MRP generated PRs.
Please provide pros and cons regarding the creation of new document type for MRP. Also, please provide your suggestions or any work arounds for the above discussed scenario. Your inputs are highly appreciated.
Thanks in advance.
PrabhasHi nagaraj
it makes sense . i will explore and tell you.
what about your source assignment standard program. hope it will assign source of supply if it is a valid unique source of supply else it will assign eprofile to your purcase request. check with technical resource how the satndard program behaves.
i will also explore my side again. check mm forum too on your purchase organisation assignment for your userexists.
one question to you.
when you create a PR for material and go to source of supply .why do we get many fixed vendors like contracts,info record if we have valid fixed vendors as sap ecc standard.but in my PR i may not have Purchase organisation information.
muthu -
I have 100 groups in planning for those 100 groups i want to build roles like interactive,view user,planner etc.for those how to change in export -import folder .xml file in that edit how to change user roles in that xml it will generate automatic id.how to do that in xml file ?
Thanks john for you are reply.
I had tried what you sad.I open shared service in that foundation project i had export shared service.after that in import-export file.In that role.csv,user.csv,group.csv.Like this file have.When i open user file added some users after i trying save in excel it shown messgse
I click yes and save the .csv file and import from share servie. i got error like this
am i doing right way john.or explain clearly -
What kind of approach for new XML-based clients
Hi.
Our firm is using Oracle-technology everywhere, and now we would
like to find out what kind of XML-based technology would suit us
best for a new generation of our products.
Our products are now using old Forms 3-clients and we're doing a
research on replacing this technology with Internet-based
clients. Java-clients are one option, but now we'd really like
to know about thin-clients which wouldn't have much code run on
the server. We have already done extranet-clients with OAS
PL/SQL-cartridges and have found out that HTML-clients require
much work and can't have too much logic on them.
So, we have already OAS running on Oracle 8.0.5.1.0 -server and
would like to know what kind of XML-strategy would be a
reasonable solution. I know about these tools: XML Parser for
xx, XML SQL Utility for Java, XSQL Servlet.
-But what would be a reasonable combination of these and what
kind of thin-client could we use? XSL?
-What kind of development tools could we use for clients (or do
we have to use text-editors)?
-Which of these tools require Oracle 8i and is it stupid to even
think about XML-based applications without Oracle 8i?
Thanks,
Perttu Auramo, Network Banking Systems Oy
nullNO. Have you taken a look at the specs page for Mac Pro?
Or when you go to OWC for Mac Pro Memory.
http://eshop.macsales.com/shop/memory/Mac-Pro-Memory
2GB modules are better, especially if you need more than 4GB, but you want to have 4 DIMMs, 4 x 2GB or 4 x 1GB.
http://docs.info.apple.com/article.html?artnum=304492
TechWorks:
http://www.shopatbuffalotech.com/cart/product.php?productid=16655&cat=42077&page =1 -
The type initializer for 'Oracle.DataAccess.Client.OracleClientFactory'
Hi
Microsoft Visual Studio 2008
Version 9.0.21022.8 RTM
Microsoft .NET Framework
Version 3.5 SP1
Oracle Developer Tools for Visual Studio 11.1.0.7.20
I have DB 11.2.0.1 installed on my machine ( OraDb11g_home1 ) and ODT in another home OraClient11g_home1 on my Windows 7 32-bits
After installing ODT I tried to create a new DataSource, it succeeded (test connection is succesful) but while saving I get
"The type initializer for 'Oracle.DataAccess.Client.OracleClientFactory' threw an exception." messagebox.
In registry I have both keys
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\ODP.NET\2.111.7.20
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\ODP.NET\2.112.1.0
of course I can connect to db from both homes.
I've been searching for simmilar issues but have not found something that would help me solve this one.ODP.NET actually consists of several DLLs, some managed, some not. If you are missing one of the DLLs in the chain or it somehow picks up mismatched DLLs from several different versions then you will get this error. So if you hand copied DLL's rather than using an installer, this might be the cause.
Another typical cause of this error is that you deployed your application to another machine (web server) and did not properly install ODP.NET over there.
The best solution is to reinstall ODP.NET using the installer on the machine where you will run your application. If you already have ODP.NET there, make sure it is the right version and perform a clean up to make sure old versions are not lying around. -
Where are the xml files for code generator of MSAHH5?
I'm generating source files for MSAHH5 and in the source code I can find xml files for generating all entities and DAL for those entities but I can't find anywhere files for MSATableConstants.xsl and MSAPersistanceManager.xsl and if I leave them alone they don't generate any class. I tried all xml in the code-generator folder without luck. What files should I use?
Thanks in advance.Hi,
I will answer your question in 2 parts.
1. Which files are used to generate what?????????
For entities: Entity.xslt+ Entity.xml
For MSATablesContants: MSATableConstants.xslt+
Entity.xml
For MSAPackageManager: MSAPackageManager.xslt+
Entity.xml
For DAL Generation: DAL.xslt+DAL.xml
2. Where these will be generated?????????
It depends on the path of the project that you are giving. If in the code generator tool when u make a new project give the path as the path of your project in eclipse.
Otherwise if you give path as ./ means the current folder from where you r running classgenerator.jar
you have to manually create folders like
C:\classgenerator\com\sap\crm\handheld\db\dataaccess for DAL classes and similarly for entities etc.
Hope this is clear
anubhav
Maybe you are looking for
-
How do I fix duplicates on a NAS server for itunes?
I have a dlink NAS server that I'd like to use as a network itunes server. Problem is that it seems to create multiple duplicates of just about everything I have. As a result I'll have 3 - 4 of everything. Question - is there a way, or an applicat
-
Why do I have to reinstall InDesign CS5.5 at every start-up?
I've had InDesign CS5.5 only a few days and have had to reinstall it everyday. It installed fine from the disk the first time. I used it for a couple hours, ran perfectly. I turned off my laptop that night and the next morning when I went to use InDe
-
Using my website, but i cant log in using mozilla firefox,
-
Server state saving restores view even request params changed for same page
hi all, i've a problem with the state saving method of JSF... environment: JSF1.1, WAS6, Spring2.0.. i have two buttons those POP UP an IFRAME inside with a details page.. <input type="button" onclick="openDetailsPage('detailsPage.jsp?id=1');" value=
-
Looking for a little more info on Playstation 3 on Apple 20" display
Sorry to ask for more info on this. I did find some other threads, but looking for a bit more direction. First, let me say I have a bunch of old tube TV's and am looking to purchase a Playstation 3. Using Playstation 3 on a tube TV seems kind of stup