OC4J initialization problems
Hi, there:
I got some error message when I tried to deploy my first JSP-struct-EJB application with Jdeveloper 10g 10.1.2.0.0. I follow the same way that tutorial told me, and complied it OK. But I got the error for embeded OC4J server:
[Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
C:\Software\jdev1012\jdev\system10.1.2.0.0.1811\oc4j-config>
C:\OraHome1\jdk\bin\javaw.exe -ojvm -classpath C:\Software\jdev1012\j2ee\home\oc4j.jar;C:\Software\jdev1012\jdev\lib\jdev-oc4j.jar -Xverify:none -Ddisable.checkForUpdate=true -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doracle.dms.sensors=NONE -Doc4j.jms.usePersistenceLockFiles=false com.evermind.server.OC4JServer -config C:\Software\jdev1012\jdev\system10.1.2.0.0.1811\oc4j-config\server.xml
[waiting for the server to complete its initialization...]
05/02/05 15:09:41 Copying default deployment descriptor from archive at C:\OraHome1\jdev\mywork\browseBooksApplication\Model\classes/META-INF/orion-ejb-jar.xml to deployment directory C:\Software\jdev1012\jdev\system10.1.2.0.0.1811\oc4j-config\application-deployments\current-workspace-app\classes...
05/02/05 15:09:41 Auto-deploying - file:/C:/OraHome1/jdev/mywork/browseBooksApplication/Model/classes/ (No previous deployment found)...
05/02/05 15:09:42 Error instantiating application 'current-workspace-app' at file:/C:/OraHome1/jdev/mywork/browseBooksApplication/browseBooksApplication-oc4j-app.xml: Error initializing ejb-module; Exception oracle.i18n.text.converter.CharacterConverter1Byte; Local class not compatible: stream classdesc serialVersionUID=100000000000 local class serialVersionUID=1215752192
Ready message received from Oc4jNotifier.
Embedded OC4J startup time: 5187 ms.
Target URL -- http://192.168.212.83:8988/browseBooksApplication-ViewController-context-root/booksResult.do
05/02/05 15:09:43 Auto-deploying file:/C:/OraHome1/jdev/mywork/browseBooksApplication/ViewController/public_html/ (New server version detected)...
05/02/05 15:09:43 Oracle Application Server Containers for J2EE 10g (10.1.2.0.0) initialized
05/02/05 15:09:43 [INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
05/02/05 15:09:43 [INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
05/02/05 15:09:44 [INFO] PropertyMessageResources - -Initializing, config='view.ApplicationResources', returnNull=true
Could anybody help me for this? Thanks a lot!
Sam
Hi Debu:
Thanks for your response. There is a document saying that
"The current release of OC4J is more stable when used with JDK version 1.2.2_07, or 1.3.xxx" and "You must have a Java2 version Java executable in your $PATH, preferably version 1.2.2_07."
Please see the link --> http://otn.oracle.com/docs/tech/java/oc4j/htdocs/getstart.htm#1020990
So do we need JDK1.3.1 for OC4J 1.0.2 (or 9.0.2)??
Thanks..
Similar Messages
-
GenericServiceFactory initialization problem when trying to load Web servic
Hi,
I am making a Guided procedure that calls a webservice. I have created a new Destination Template and was able to load the webservice definition successfully, but when I test the callable object I created for that same webservice y get the error:
GenericServiceFactory initialization problem when trying to load Web service model for WSDL.
Somehow I think there is something wrong with the user authentication. The Destination template has a user and password but somehow I think the callable object test is not using this information at all.
Can anyone help ?
Thanks in advanceHi Hans,
Have you verified if you can call any external web service calls from your J2EE engine? Go into the SOA Management / Global settings (if you are on CE - if you're on 7.0 it's in manage WS desintations).
Look at your proxy settings and set them like your web browser that enables external calls. For example, in the SAP network I set my global proxy settings on my local J2EE engine to be:
Proxy host: proxy
Proxy port: 8080
Exclude list: *.sap.corp
Does that make sense - have you verified if your settings are correct for your company?
Regards
Ginger -
Unavailable or Initialization problem when viewing the servlets from admin console
Hi
I am on Weblogic 5.1.0. I connect to myServer which comes configured by
default. When i see the
registered servlets inside HTTP, on the console i see Unavailable or
Initialization problem on every
servlet that i select. Also when i try to load the servlet, it gives me the
following error :--
Property Change error for property "Load". Unable to load servlet.
This is happening for all the servlets which are inside the General
application inside HTTP tab.
But when i executing the servlet examples that comes along with Weblogic,
those examples are
working fine.
Also, i started my console and started the "myServer" instance and attached
it to the console. But due to
some reason my console hung. So i closed down the console window by pressing
the browser close button.
The weblogic server instance of "myServer" was still running. Then i started
the console again and attached the
running weblogic server instance of "myServer" to the console and went to
servlets. This time all the servlets
show "Previous Class Load Problem".
Why all this is happening. Has this any where documented how to use the
Weblogic console and Weblogic server
instances. I have gone thru the Installation documentation of Weblogic but
nothing like this has been mentioned over
there.
Thanks for ur help
NiranjanHi,
Try to find which object causing high cpu usage following Oracle Doc ID 779349.1.
by looking into the files then we can find what would be exact cause of this issue.
Regards,
Kalyan -
I get "Export Error - Codec Initialization Problem!" when I try to export a project using Adobe Media Encoder as a Macromeida Flash Video. Premiere Pro 2.0 goes through the rendering process but no file is created; just the Export Error message. What does this mean, and what do I need to do to export a project as a FLV file?
Thanks.Sounds weird... You could try the standard fix for general unexplained behaviour in a document; export it to idml, open that, save as an Indesign file and try exporting again. If that doesn't work try a few different presets, like smallest file size. If that doesn't work try opening your image in Photoshop, resaving as a psd, placing that (delete your old one) and see if that helps. Obviously do this on a copy....
-
Early Chipset Initialization Problem
Hello all,
After reading around this board I havn't found a very good answer for the Early Chipset Initialization problem. (which is the code that D-bracket gives me) Everything is entirely new, Including the new PSU that I bought to try to fix the problem. Any ideas? I know it's not the PSU so don't try telling me that.
The funny thing about this problem...the computer locks up and gives me the Neo Platinum screen, gives one beep to say the POST finished, and then locks up and I can't use the keyboard or get into the BIOS. Oddly enough, if I hit the reset button it boots up just fine. I'm thinking perhaps a faultly reset switch but has anybody else had this problem?Quote
Originally posted by naedaneth
Hello all,
The funny thing about this problem...the computer locks up and gives me the Neo Platinum screen, gives one beep to say the POST finished, and then locks up and I can't use the keyboard or get into the BIOS. Oddly enough, if I hit the reset button it boots up just fine. I'm thinking perhaps a faultly reset switch but has anybody else had this problem?
Yeah try using a USB keyboard instead if you are using a PS2 keyboard.. -
Codec Initialization Problem!
Hi,
I'm trying to use Adobe Media Encoder CS6 to convert a mov file of size 3072 by 768 resolution to f4v of the same attributes.
However, I get the error Codec Initialization Problem!.
I can convert it to f4v at 1920x1080 or other lower resolutions.
Please help.
Thank youThank you!!!!
-
JSPServlet Initialization problem
Sorry for asking such a simple question.
I'm just a notice in WebLogic Server.
When I tried to run JSP pages, I have this problem
"weblogic.servlet.JSPServlet<unavailable or initialization problem>"
I'm using WebLogic 5.1.
weblogic.properties files JSP configuration is as follows
# WEBLOGIC JSP PROPERTIES
# Sets up automatic page compilation for JSP. Adjust init args for
# directory locations and uncomment to use.
weblogic.httpd.register.*.jsp=\
weblogic.servlet.JSPServlet
weblogic.httpd.initArgs.*.jsp=\
pageCheckSeconds=0,\
compileCommand=c:/jdk1.3/bin/javac.exe,\
workingDir=d:/data/program/weblogic/myserver/classfiles,\
verbose=true
I have JDK1.3 installed under C: (Windows NT4.0 w/ Service Pack 4)
Could anyone help me out?
Thanks in advance.
Billy Park
Sorry for asking such a simple question.
I'm just a notice in WebLogic Server.
When I tried to run JSP pages, I have this problem
"weblogic.servlet.JSPServlet<unavailable or initialization problem>"
I'm using WebLogic 5.1.
weblogic.properties files JSP configuration is as follows
# WEBLOGIC JSP PROPERTIES
# Sets up automatic page compilation for JSP. Adjust init args for
# directory locations and uncomment to use.
weblogic.httpd.register.*.jsp=\
weblogic.servlet.JSPServlet
weblogic.httpd.initArgs.*.jsp=\
pageCheckSeconds=0,\
compileCommand=c:/jdk1.3/bin/javac.exe,\
workingDir=d:/data/program/weblogic/myserver/classfiles,\
verbose=true
I have JDK1.3 installed under C: (Windows NT4.0 w/ Service Pack 4)
Could anyone help me out?
Thanks in advance.
Billy Park
-
ConnectionServer cannot started - NT Service Initialization Problem
When I startup a "Connection Server" for "Business Object Enterprise 12.0" under Windows XP Professional machine, following error raised.
Could you tell me what is the problem. Thanks.
Timestamp ProcessID ThreadID Message
[Wed May 20 09:30:21 2009] 6712 8100 Log: level=3 cat=1 msg=35100 p=ConnectionServer started
[Wed May 20 09:30:21 2009] 6712 8100 trace message: Creating controller thread
[Wed May 20 09:30:21 2009] 6712 8100 trace message: Waiting on monitor to initialize
[Wed May 20 09:30:21 2009] 6712 2412 trace message: In service controller thread's run!
[Wed May 20 09:30:21 2009] 6712 8100 trace message: SIServerController::waitingToInitialize
[Wed May 20 09:30:21 2009] 6712 2412 trace message: SINTService::run enter
[Wed May 20 09:30:36 2009] 6712 2412 trace message: SIServerController::initialize
[Wed May 20 09:30:36 2009] 6712 2412 assert failure: (.\siservice.cpp:839). (false : StartServiceCtrlDispatcher: The operation completed successfully.
[Wed May 20 09:30:36 2009] 6712 2412 Log: level=0 cat=14 msg=35500 p=NT Service Initialization Problem
[Wed May 20 09:30:36 2009] 6712 2412 trace message: SINTService::run: Cannot start service control dispatcherHi Thomas,
I am having the same issue...I couldn't able to start CMS (Content Management services ) .
Reducing the tomcat heap size doesn't help in my case....
Regards, Anil -
Early Chipset Initialization problem with K8T Neo 2 - FIS2R
This one has me stumped.
I went to install a new CPU fan earlier today and while I was installing the fan I had to remove my sound card and AGP card so I could screw the fan to the side of the heat sink.
I got all that done and went to start the computer back up and now I get a contineous high pitched sound while at the same time 3 beeps. The D bracket shows a green LED on 1 so this is the "early chipset initialization" problem.
What is causing this and why would this happen after a fan installation?
Specs
A64 3200+ Winchester
1.5 GB RAM (2x 512, 2x 256) DDR 400
MSI K8T Neo 2 - FIS2R
PNY GF 6800
Audigy 2 ZS Gamer
200GB IDE HDD
80 GB IDE HDD
DVD - R/RW
Win XP Pro w/ SP2Okay after a bit of messing around with the problem I discovered what the problem was....
I didn't plug in the power to the video card
Yeah the 6800 uses needs more power from the PSU and I left that little rail unplugged. Maybe some other soul will find this useful in a time of need. -
Eclipse Tomcat Hibernate Struts - JDeveloper OC4J migration problem.
In my current project, everybody uses Eclipse and Tomcat as development environment. I decide to try JDeveloper in this project. Not that this configuration works with eclipse WPT.
When I try to open project, I get an error as below.
Target URL -- http://127.0.0.1:8988/PSSO/index.html
30.Haz.2008 21:50:03 oracle.classloader.util.ClassLoadLogger log
WARNING: Code-source D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\BuildScripts\DirectoryThirdPartyLibraries\jta.jar (from <classpath> in D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\PSSO\WebContent) has the same filename but is not identical to /E:/downloads/tools/jdevstudiobase1111/j2ee/home/lib/jta.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in E:\downloads\tools\jdevstudiobase1111\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.PSSO:0.0.0.
30.Haz.2008 21:50:03 oracle.classloader.util.ClassLoadLogger log
WARNING: Code-source E:\downloads\tools\jdevstudiobase1111\jakarta-struts\lib\struts.jar (from <classpath> in D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\PSSO\WebContent) has the same filename but is not identical to /D:/atilla/projects/javaProjects/meteksan/EclipseWorkspace_RTUK/BuildScripts/DirectoryThirdPartyLibraries/struts.jar (from <classpath> in D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\PSSO\WebContent). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.PSSO:0.0.0.
08/06/30 21:50:17 Hibernate: select t.name, sa.value from RTUK_PSSO.ytk_sistem_attribute sa, RTUK_PSSO.ytk_attribute t where sa.attribute_id = t.id
21:50:20,687 ERROR ActionServlet:364 - Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency.
javax.servlet.ServletException: org.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken [from tr.com.meteksan.genel.gnlKurumOrganizasyon.GnlKurumOrganizasyon ko order by ko.organizasyonKodu]
at tr.com.meteksan.web.plugin.InitSozlukDegerleriPlugIn.init(InitSozlukDegerleriPlugIn.java:49)
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
what is interesting is that
first query with hibernate works, but second query does not works.
My JDeveloper as below
CVS Version Internal to Oracle JDeveloper 11g Technology Preview 4 (client-only)
Java(TM) Platform 1.5.0_15
Oracle IDE 11.1.1.0.22.49.49
Versioning Support 11.1.1.0.22.49.49
I wonder if it is related to struts and jta jars defined twice.There might be a problem with the OC4J not finding the hibernate library you are trying to use.
Try setting the library also in the tools->embedded OC4J preferences. -
I am installing OBIEE on windows server 2003 with java version 1.6.0_12
find below java - version command output
java version"1.6.0_12"
java(TM)SE Runtime Environment (build 1.6.0_12-bo4)
java Hotspot (TM) client VM (build 11.2-b01,mixed mode,sharing)
everything was working fine untill suddenly OC4j failed to start with the following error
Starting oc4j from c:\oracleBi\oc4j_bi\j2ee\home
WARNING:Application.setconfig Application:default is in failed state as initialization failed
java.lang.ClassCastException: B cannot be cast to javax.naming context
Error initializating server:application:default is in failed state as initialization failed
Fatal error server exiting
Thanks in advance
Edited by: user12266474 on Feb 7, 2010 3:26 AMJ Developer 11 is too slow also. Yesterday I have downloaded J developer 10.1.1.3 version and I is really fast. Moreover this version OC4J run faster than Jdev 11. At this point I have one more question, in older version I have tryed to run ADF Faces Rich Client Components demo but I couldn't.
I think it is because the version problem. I want to start a project to use adf faces and I am really beginner and I need to know that if I can use some components from ADF Faces Rich Client Components demo project in the older version of Jdeveloper. (10.1.1.3) thank you my friends. -
Urgent OC4J Application Problem
Hi,
I am deploying application (with only JSP & servlets --> .war) in Oracle 9iAS with OC4J container(2.0.0.0) in Win 2000 Server.
Considering the classloader mechanism of OC4J (I read through this forum and throught this link http://kb.atlassian.com/content/atlassian/howto/classloaders.jsp). This is causing problems. Particularly in my case, where I want that specific classes should actually be loaded from my application and NOT from parent loaders.
I am encountering the following problems when I run the application using command: (java -jar oc4j.jar)
1) Classes in "soap.jar" contained in my application WEB-INF/lib directory clashes with those present in "JD-OC4J\soap\lib" (where JD-OC4J is my Installed location for OC4j container). Hence running my soap application gives error like this
java.lang.NoClassDefFoundError: HTTPClient/CookiePolicyHandler
at org.apache.soap.rpc.Call.invoke(Call.java:213)
at com.mbserver.soap.listener.MBSoapClientListener.doPost(com/mbserver/soap/listener/MBSoapClientListener.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind[Oracle9iAS (2.0.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:667)
at com.evermind[Oracle9iAS (2.0.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
at com.evermind[Oracle9iAS (2.0.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:704)
at com.evermind[Oracle9iAS (2.0.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:250)
at com.evermind[Oracle9iAS (2.0.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:62)
-- This would run in case "soap.jar" is used from my Application lib directory(present in /../j2ee/home/applications/myapp/WEB-INF/lib) BUT this is not the case.
2) I also ran a RMI application INSIDE the web application. Perhaps due to above mechanism of classloading, I get the following error
Exception in binding=java.rmi.ServerException: RemoteException occurred in serve
r thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
tion is:
java.lang.ClassNotFoundException: com.mbconsole.adminui.MBrmiAdminServer_Stub
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
Because the application could NOT load stub class from WEB-INF/classes directory.
-- My problem is I cannot use "specific API" or make any changes for the Container. As the application is sold for other vendors (Tomcat, WebShere...) and it works in those system.
-- I am sure this kind of problem will be encountered earlier (actually I couldn't find out)
- Any idea will be of Great Help!
Thanks in advance
ThyageshThanks Debu for the information.
I indeed was using earlier version. I upgraded to 9.0.3 container and referred to this document
http://otn.oracle.com/tech/java/oc4j/htdocs/how-to-servlet-sysclassloader.html
-- The RMI problem was solved, thanks for that !
But I am still having difficulty. I use XML parsers in $myapp/WEB-INF/lib:
- jaxp.jar - v1.1 specs
- crimson.jar - v1.1 specs
- parser.jar - v1.0 specs
I changed the "orion-web.xml" and included
- "<web-app-class-loader search-local-classes-first="true" />"
When the application started it gave the "sealing violation exception" as follows:
java.lang.SecurityException: sealing violation
at com.evermind.naming.ContextClassLoader.defineClass(ContextClassLoader.java:1076)
at com.evermind.naming.ContextClassLoader.findClass(ContextClassLoader.java:365)
at com.evermind.naming.ContextClassLoader.loadLocalClassFirst(ContextClassLoader.java:150)
at com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.java:129)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:195)
at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:1890)
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4355)
at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4455)
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:662)
at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:435)
at com.evermind.server.Application.getHttpApplication(Application.java:695)
at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:676)
at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:528)
at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:231)
at com.evermind.server.http.HttpServer.setSites(HttpServer.java:247)
at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:150)
at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:1959)
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1294)
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:93)
at java.lang.Thread.run(Thread.java:484)
If the container loads classes from the local path (WEB-INF/classes, WEB-INF/lib) then this should have worked (coz' the application does works on Tomcat, IBM WebShere...) with the same set of parser.
If I remove the above three parsers, then the application initializes BUT the same problems prelude (i.e. Oracle parsers gives problems like: toString() of XML node returns class name, etc).
2) This is another strange problem. I am using apache soap jar (SOAP 1.1 impl) and uses its SOAP deployement tool. Hence I use "soap.jar" in $myapp/WEB-INF/lib/ directory.
But with the above configuration (local=true) the container uses "soap.jar" from location:
-- $OC4J_Home/j2ee/lib
and this causes the "class not found" Exception.
Again help is required specially for the first point.
Thanks,
Thyagesh -
Web service model initialization problem
Hello, every one
I have some trouble in the initialization of web service model.
I tested the web service through web service navigator and it was ok.
My context structure is:
Request_ZBAPIWCALIST_zbapiWcalist(0..n)
--parameters(0..1)
rBdate(0..n)
high(string)
low(string)
option(string)
sign(string)
--Response(0..1)
Result(0..1)
tWca(0..n)
estat(string)
istat(string)
Following is my codes:
Request_ZBAPIWCALIST_zbapiWcalist model = new Request_ZBAPIWCALIST_zbapiWcalist();
ComplexType_ZbapiWcalist parameter = new ComplexType_ZbapiWcalist();
model.setParameters(parameter);
ComplexType_ZbapiRBdate rBdate = new ComplexType_ZbapiRBdate();
ComplexType_ZbapiRResp rResp = new ComplexType_ZbapiRResp();
ComplexType_ZbapiRTplnr rTplnr = new ComplexType_ZbapiRTplnr();
ComplexType_ZbapiRWapinr rWapinr = new ComplexType_ZbapiRWapinr();
ComplexType_ZbapiRWapius rWapius = new ComplexType_ZbapiRWapius();
ComplexType_ZbapiWcalistImport wcaImport = new ComplexType_ZbapiWcalistImport();
rBdate.setLow("2007-7-1");
rBdate.setHigh("2007-7-2");
rBdate.setOption("EQ");
rBdate.setSign("I");
rResp.setLow("");
rResp.setHigh("");
rResp.setOption("");
rResp.setSign("");
rTplnr.setLow("");
rTplnr.setHigh("");
rTplnr.setOption("");
rTplnr.setSign("");
rWapinr.setLow("");
rWapinr.setHigh("");
rWapinr.setOption("");
rWapinr.setSign("");
rWapius.setLow("");
rWapius.setHigh("");
rWapius.setOption("");
rWapius.setSign("");
wcaImport.setAnye("");
wcaImport.setAnyi("");
wcaImport.setSpd("");
wcaImport.setStatu("");
wcaImport.setWerks("");
ZbapiRBdate rBdateBean = rBdate.getOriginalBean();
ZbapiRResp rRespBean = rResp.getOriginalBean();
ZbapiRTplnr rTplnrBean = rTplnr.getOriginalBean();
ZbapiRWapinr rWapinrBean = rWapinr.getOriginalBean();
ZbapiRWapius rWapiusBean = rWapius.getOriginalBean();
ZbapiWcalistImport wcaImportBean = wcaImport.getOriginalBean();
ZbapiRBdate[] rBdateArray = new ZbapiRBdate[1];
rBdateArray[0] = rBdateBean;
ZbapiRResp[] rRespArray = new ZbapiRResp[1];
rRespArray[0] = rRespBean;
ZbapiRTplnr[] rTplnrArray = new ZbapiRTplnr[1];
rTplnrArray[0] = rTplnrBean;
ZbapiRWapinr[] rWapinrArray = new ZbapiRWapinr[1];
rWapinrArray[0] = rWapinrBean;
ZbapiRWapius[] rWapiusArray = new ZbapiRWapius[1];
rWapiusArray[0] = rWapiusBean;
wcalistBean.setRBdate(rBdateArray);
wcalistBean.setRResp(rRespArray);
wcalistBean.setRTplnr(rTplnrArray);
wcalistBean.setRWapinr(rWapinrArray);
wcalistBean.setRWapius(rWapiusArray);
wcalistBean.setWaImport(wcaImportBean);
wdContext.nodeRequest_ZBAPIWCALIST_zbapiWcalist().bind(model);
The exception is:
LocalizedMessage: Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlMarshalException: XML Serialization Error. Property [Low] of class [com.pjs.wcalist.model.wsmodel.proxies.types.p1.ZbapiRWapius] must exist and can not be null. This is required by schema description.
In the test of the web service the Low of the ZbapiRWapius is not needed.
And after setting the value, the exception told me that I must set the tWca, ie the subnode of the result.
The problem is: I do not know why the setter method of the original bean of the "parameters" only accept the parameter of array type .
I think the parameter I set may be wrong.
When I deal with another web service model(the level of the structure is not deep), it is ok.
Could someone give me some suggestion or explanation?
Thanks a lot.
Referring to the link:
Re: HELP for WebDynpro web service model with complex structureHi,
I ahbe set the proxy in webcontainer in configtool,Is there any other thing i need to do?But please tell me what does the error means,<b>GenericServiceFactory error</b>?
waiting for your reply,
Regards,
Ameya -
LDAP Context Initialization Problem in a Servlet's Init method
Hi
I have a servlet where I am using the InitialDirContext to Initialize context to a LDAP Server. I have created the context as a static variable. I am initializing the context in the init method and am using the same reference in the service method of the servlet. But if the context fails (due to naming exception and time out) in the init method all my requests in the service method will fail. Is there any way to validate the reference before using the same in the service method.
Also what is the best approach to initialize the context in a servlet. Whether to initialize in the service method or the init method.
I would appreciate if anyone can answer the above 2 queries.
Thanks in advace,
AshishIf you want to use threadsafe objects in doPost/doGet there are two common ways to do this.
First, create the object in doPost/doGet. This may get expensive depending on the object, but it is 'easy' code and works.
The second option is to create a pool of objects in the servlet's init() method and to just have doPost/doGet get an object from the pool, use it and return it when done. This take a little more work to code, but the overhead of creating objects is almost eliminated. Look at jakarta/apache commons pool for a quick way to do this.
If you create on object in init() and use it in doPost/doGet, any time you get two request for the same servlet at the same time you will have synchronization issues that will usually cause problems. There is one instance of each Servlet, so all request for that servlet go through the single instance. Anything in doPost/doGet must be threadsafe. -
Bc4j/oc4j/petstore problem
After installing BC4J runtime on top of OC4J running on Win2k and Sun JDK1.3.1, bc4j demo is OK. the Sun's J2EE demo petstore stops working. Any idea?
Thx.
Request URI:/apps/petstore/template.jsp
Exception:
oracle.jsp.parse.JspParseException: Line # 8,
Error: oracle.xml.parser.v2.XMLParseException: Invalid element 'servlet' in content of 'web-app', expected elements '[servlet-mapping, session-config, mime-mapping, welcome-file-list, error-page, taglib, resource-ref, security-constraint, login-config, security-role, env-entry, ejb-ref]'.
at oracle.jsp.parse.JspDirectiveTaglib.validateAttributes(JspDirectiveTaglib.java:80)
at oracle.jsp.parse.JspParseTagDirective.validateTagAttributes(JspParseTagDirective.java:107)
at oracle.jsp.parse.JspParseTag.parse(JspParseTag.java:672)
at oracle.jsp.parse.JspParseTagDirective.parse(JspParseTagDirective.java:174)
at oracle.jsp.parse.JspParseTag.parseNextTag(JspParseTag.java:548)
at oracle.jsp.parse.JspParseTagFile.parse(JspParseTagFile.java:100)
at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java:40)
at oracle.jsp.app.JspAppLoader.translatePage(JspAppLoader.java:1513)
at oracle.jsp.app.JspAppLoader.reloadPage(JspAppLoader.java:1146)
at oracle.jsp.app.JspAppLoader.loadPage(JspAppLoader.java:1005)
at oracle.jsp.app.JspAppLoader.getPage(JspAppLoader.java:671)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:337)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
at oracle.jsp.JspServlet.service(JspServlet.java:148)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:339)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:501)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:170)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:141)
at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.java:105)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:198)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:312)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:339)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:501)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:170)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:549)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
nullYes - this was a bug in the first version of the bc4j-oc4j installer. We have a new version of the installer that contains the correct version of orion.jar, and should fix the bug that you found. You can download it from http://otn.oracle.com/products/jdev/howtos/bc4jdeployment.html
My apologies - and please let us know if you continue to have problems.
Blaise
Maybe you are looking for
-
Pse6 won't let me back up my catalog or burn a cd
HELP- I've searched forums and knowledge base but find no solution to the problem that pse6 does not recognize my CD drive on vista so I can't burn any CD or worst yet, back up my catalogue which is huge now. I feel cheated in buying the newer versio
-
Web Service WSDL/URL not seen by Excel
Hello, I have a BW function module with a web service created over it and I am trying to get this to connect to Excel 2003.(The web services tool kit is installed) I can get Excel to see this web service: http://www.webservicex.net/WS/WSDetails.aspx
-
Unable to chage the status of normal correction to confirm successful test
Hello, I am unable to chage the status of normal correction to confirm successful test in solman. Its shows error: Not all test transports are imported . I have imported the test trasnport in to test system successfully but still i am getting this er
-
Proxying to multiple WL servers
I recently read a posting on the weblogic newsgroups about proxying from IIS to WL. I have a particular problem and I was hoping you could tell me how to solve it. We have an IIS box fronting for two different WL boxes. We are usi
-
6822 number pad lights on all the time
On the front number pad of my 6822 are two vertical bars. These stay lit up all the time which is killing the battery life. Its only recently started and I think maybe as a result of a mate putting in a keycode. Can you help please Thanks