oc4j

search for more blogs here

 

"Speed Up JDev 11g Tech Preview Embedded OC4J Startup Time" posted by ~Ray
Posted on 2008-11-13 12:20:19

If you are using JDeveloper 11g Technology Preview 2 release and experiencing slower than desired startup time for embedded OC4J server read on. The developers just passed on this tip you can try to improve the startup time of embedded OC4J to workaround a performance bug we found after shipping the Technology Preview 2 release. Do the following: Ensure you've run the embedded OC4J server at least once after first installing JDeveloper 11g Technology Preview 2 Otherwise it will be in the user profile directory on your operating system under a JDeveloper subdirectory. (On windows this is a directory like C:Documents and Settingsusername)

Forex Groups - Tips on Trading

Related article:
http://radio.weblogs.com/0118231/2007/10/24.html#a874

comments | Add comment | Report as Spam


"Using Dependency Injection from Web Container in OC4J 10.1.3.x" posted by ~Ray
Posted on 2008-03-12 23:12:15

OC4J 10.1.3.1 and later supports dependency injection from web container. I've seen this question from many customers via email or in OTN forum that using dependency injection from web container generates NPE. If you are running into such problems alter sure that you have specified version as "2.5" in your deployment descriptor (web xml) as follows:<?xml version = '1.0'?>?<?web-app version="2.5" xmlns="http://java sun com/xml/ns/javaee"xmlns:xsi="http://www w3 org/2001/XMLSchema-instance"xsi:schemaLocation="http://java sun com/xml/ns/javaee http://java sun com/xml/ns/javaee/web-app_2_5 xsd">?...

Forex Groups - Tips on Trading

Related article:
http://debupanda.blogspot.com/2007/10/using-dependency-injection-from-web.html

comments | Add comment | Report as Spam


"Using Dependency Injection from Web Container in OC4J 10.1.3.x" posted by ~Ray
Posted on 2008-03-12 23:12:15

OC4J 10.1.3.1 and later supports dependency injection from web container. I've seen this question from many customers via email or in OTN forum that using dependency injection from web container generates NPE. If you are running into such problems alter sure that you have specified version as "2.5" in your deployment descriptor (web xml) as follows:<?xml version = '1.0'?>?<?web-app version="2.5" xmlns="http://java sun com/xml/ns/javaee"xmlns:xsi="http://www w3 org/2001/XMLSchema-instance"xsi:schemaLocation="http://java sun com/xml/ns/javaee http://java sun com/xml/ns/javaee/web-app_2_5 xsd">?...

Forex Groups - Tips on Trading

Related article:
http://debupanda.blogspot.com/2007/10/using-dependency-injection-from-web.html

comments | Add comment | Report as Spam


"Using Oracle Ant Tasks within JDeveloper 10g" posted by ~Ray
Posted on 2008-01-01 21:16:15

2. In JDeveloper act a new empty communicate within a workspace3. From the Object gallery add a new empty create xml register4. write the 3 files above into the same directory the build xml was added to in JDeveloper. Basically you are replacing the empty create xml and adding the 2 other files needed for oracle ant tasks.5. Use the Refresh icon on the application navigator to ensure all 3 files appear in the project as shown below.6. Now we need to assemble the ant-oracle properties register to specify our deployment server settings. I am deploying to a OAS 10.1.3.2 instance named pas_oc4j. That said his the settings I am using thats pretty much all you need to set in that file oracleas host=papicell-linux au oracle comoracleas http turn=7779oracleas admin turn=6007oracleas admin user=oc4jadminoracleas admin password=welcome1oracleas binding module=default-web-siteoracleas deployer uri=deployer:oc4j:opmn://${oracleas host}:${oracleas admin port}/${oracleas oc4j instance}oracleas oc4j instance=pas_oc4j7. Now we have an empty project but in order to use this otn how to we need to add a JSP to the project a library and a few deployment descriptor XML files.8. Add the library "Oracle XML Parser v2" to the project using the communicate Properties dialog9. Add a new JSP file called "index jsp" using the new object gallery. I placed it in a folder named "web". What you will find is a web xml is created automatically for you once the JSP was created in the public_html\WEB-INF directory. All we be to do now is copy the files below from the downloaded how to ZIP into that directory on the file system and touch Refresh to show the files in the JDeveloper project 10. Now we are ready to deploy using ant BUT before we do that we need to alter the build xml as the file downloaded from OTN is setup based on the ZIP register but in JDeveloper we have a slightly different directory structure so in the create xml we need to alter the "init" target so it looks as follows which matches our directory structure in the project <aim name="init" depends="common"> <echo communicate="-----> Initializing communicate properties"/> <property name="app label" value="how-to-swapxmlparser"/> <property name="ear name" value="${app name}"/> <property name="web name" value="${ear name}-web"/> <property name="src dir" value="./public_html"/> <property name="bld dir" value="./create"/> <property name="lib dir" determine="D:\jdev\jdevprod\10132\jdev\mywork\OracleAntDemo\OC4JAntDelpoy/lib"/>.

Forex Groups - Tips on Trading

Related article:
http://theblasfrompas.blogspot.com/2007/11/using-oracle-ant-tasks-within.html

comments | Add comment | Report as Spam


"A Seam+JPA/Hibernate on OC4J Maven 2 Archetype" posted by ~Ray
Posted on 2007-12-15 15:04:59

What this gets you is a multi-module project such as what was described in the aforementioned article with (hopefully) working examples of a JPA entity bean a HSQL-based PersistenceUnit and a simple JSF (Facelets) all wired together via bring together. Chances are good that you’ll be to dress the package name and structure to be your communicate and organization’s needs but if you’re desire me having these examples to copy and attach will help when creating a new project. but there’s something more serious to consider at the moment involving OC4J. If you create the project as described above deploy the resulting EAR file and hit the web context you should see that the application works fine. If you try to deploy the application you’ll see an error message desire this in the web console (formatted for readability) oracle oc4j admin internal. DeployerException: java lang. IllegalStateException: ClassLoader "myapp web myapp-web-1.0:0.0.0" (from in /oc4j/j2ee/home/applications/myapp/myapp-web-1.0/): This loader has been closed and should not be in use at org hibernate ejb. Ejb3Configuration configure(Ejb3Configuration java:258) at org hibernate ejb. HibernatePersistence createEntityManagerFactory(HibernatePersistence java:120) at javax persistence. Persistence createEntityManagerFactory(Persistence java:59) at javax persistence. Persistence createEntityManagerFactory(Persistence java:48) at org jboss seam persistence. EntityManagerFactory createEntityManagerFactory(EntityManagerFactory java:81) at org jboss seam persistence. EntityManagerFactory startup(EntityManagerFactory java:50) at sun designate. NativeMethodAccessorImpl invoke0(Native Method) at sun designate. NativeMethodAccessorImpl create(NativeMethodAccessorImpl java:39) at sun designate. DelegatingMethodAccessorImpl invoke(DelegatingMethodAccessorImpl java:25) at java lang reflect. Method create(Method java:585) at org jboss bring together util. Reflections invoke(Reflections java:21) at org jboss seam util. Reflections invokeAndWrap(Reflections java:125) at org jboss seam. Component callComponentMethod(Component java:2095) at org jboss seam. Component callCreateMethod(Component java:2010) at org jboss bring together. Component newInstance(Component java:1981) at org jboss seam contexts. Contexts startup(Contexts java:304) at org jboss bring together contexts. Contexts startup(Contexts java:278) at org jboss seam contexts. ServletLifecycle endInitialization(ServletLifecycle java:95) at org jboss bring together init. Initialization init(Initialization java:554) at org jboss seam servlet. SeamListener contextInitialized(SeamListener java:34) at com evermind server http. HttpApplication initDynamic(HttpApplication java:1130) at com evermind server http. HttpApplication. (HttpApplication java:738) at com evermind server. ApplicationStateRunning getHttpApplication(ApplicationStateRunning java:414) at com evermind server. Application getHttpApplication(Application java:545) at com evermind server http. HttpSite$HttpApplicationRunTimeReference createHttpApplicationFromReference(HttpSite java:1990) at com evermind server http. HttpSite$HttpApplicationRunTimeReference. (HttpSite java:1909) at com evermind server http. HttpSite addHttpApplication(HttpSite java:1606) at oracle oc4j admin internal. WebApplicationBinder bindWebApp(WebApplicationBinder java:238) at oracle oc4j admin internal. WebApplicationBinder bindWebApp(WebApplicationBinder java:99) at oracle oc4j admin internal. ApplicationDeployer bindWebApp(ApplicationDeployer java:547) at oracle oc4j admin internal. ApplicationDeployer doDeploy(ApplicationDeployer java:202) at oracle oc4j admin internal. DeployerBase execute(DeployerBase java:93) at oracle oc4j admin jmx server mbeans deploy. OC4JDeployerRunnable doRun(OC4JDeployerRunnable java:52) at oracle oc4j admin jmx server mbeans deploy. DeployerRunnable run(DeployerRunnable java:81) at com evermind util. ReleasableResourcePooledExecutor$MyWorker run(ReleasableResourcePooledExecutor java:298) at java lang. Thread run(go java:595) The only way I’ve found to fix that is to restart the app server which is of course extremely ugly. Making this work on OC4J has been extremely trying and this is just one more example of the pain I’ve put myself through. Since the contract dictates this container though. I have little choice. At any rate. I’m going to try to work around this by creating one or more shared libraries on the app server and see what that gets me. I’ll report back what I sight. XHTML: You can use these tags: <b> <blockquote have in mind=""> <label> <i> <strike> <em style=""> <strong style=""> <continue style=""> <p reorient="" style=""> <a href="" call="" rel="" rev="" target="" name=""> <div align="" style=""> <font alter="" approach="" coat="" style=""> <u align="" style=""> <li align="" call=""> <ul align="" call=""> <ol align="" call="">

Forex Groups - Tips on Trading

Related article:
http://blogs.steeplesoft.com/2007/10/25/seam-jpa-hibernate-oc4j-maven2-archetype/

comments | Add comment | Report as Spam


"OC4J Seam Archetype Update" posted by ~Ray
Posted on 2007-12-09 13:38:29

Well that wasn’t hard. I think I have the fixed and a shared library was cozen It appeared that the redeployment issue was due to some odd categorise loading issue so I decided to try a shared library. To do that. I create the directory in antlr-2.7.6 jarasm-1.5.3 jarasm-attrs-1.5.3 jarcglib-2.1_3 jarcommons-collections-3.2 jarcommons-logging-1.1 jardom4j-1.6.1-jboss jarhibernate-3.2.4 sp1 jarhibernate-annotations-3.3.0 ga jarhibernate-commons-annotations-3.0.0 ga jarhibernate-entitymanager-3.3.1 ga jarhsqldb-1.8.0.7 jarjavassist-3.3 ga jarjboss-archive-browsing-5.0.0alpha-200607201-119 jarjta-1.0.1B jarlog4j-1.2.14 jar To be candid. I’m not 100% sure that all of these classes be in a Hibernate library but it works and I’m afraid to breathe on it. To describe the shared library to OC4J. I added the following XML to And that’s it. I created the communicate and immediately built and deployed verified that the application worked then repeatedly redeployed and tested the app without failure. That’s not to say that the archetype is end or ameliorate in any way but it’s Good Enough for Now. XHTML: You can use these tags: <b> <blockquote cite=""> <code> <i> <touch> <em call=""> <strong style=""> <span style=""> <p align="" call=""> <a href="" title="" rel="" rev="" target="" label=""> <div align="" style=""> <font alter="" face="" size="" style=""> <u reorient="" call=""> <li align="" style=""> <ul align="" style=""> <ol align="" style=""> There’s a big difference between freelance atheism by "skeptics" and atheism as the fail faith system of a progressive grow largely ignorant of religion. I doubt the most skeptical [Founding Father] would enjoy discussing the affect with say. John Edwards' bloggers.

Forex Groups - Tips on Trading

Related article:
http://blogs.steeplesoft.com/2007/10/25/oc4j-seam-archetype-update/

comments | Add comment | Report as Spam


"OC4J Seam Archetype Update" posted by ~Ray
Posted on 2007-12-09 13:38:29

come up that wasn’t hard. I evaluate I undergo the fixed and a shared library was trick It appeared that the redeployment issue was due to some odd class loading air so I decided to try a shared library. To do that. I act the directory in antlr-2.7.6 jarasm-1.5.3 jarasm-attrs-1.5.3 jarcglib-2.1_3 jarcommons-collections-3.2 jarcommons-logging-1.1 jardom4j-1.6.1-jboss jarhibernate-3.2.4 sp1 jarhibernate-annotations-3.3.0 ga jarhibernate-commons-annotations-3.0.0 ga jarhibernate-entitymanager-3.3.1 ga jarhsqldb-1.8.0.7 jarjavassist-3.3 ga jarjboss-archive-browsing-5.0.0alpha-200607201-119 jarjta-1.0.1B jarlog4j-1.2.14 jar To be candid. I’m not 100% sure that all of these classes belong in a Hibernate library but it works and I’m afraid to exist on it. To describe the shared library to OC4J. I added the following XML to And that’s it. I created the communicate and immediately built and deployed verified that the application worked then repeatedly redeployed and tested the app without failure. That’s not to say that the archetype is end or ameliorate in any way but it’s Good Enough for Now. XHTML: You can use these tags: <b> <blockquote have in mind=""> <code> <i> <touch> <em style=""> <strong style=""> <span style=""> <p align="" style=""> <a href="" title="" rel="" rev="" aim="" name=""> <div align="" style=""> <font alter="" face="" size="" call=""> <u align="" call=""> <li align="" style=""> <ul align="" style=""> <ol align="" call=""> Therefore since we have so great a darken of witnesses surrounding us let us also lay aside every encumbrance and the sin which so easily entangles us and let us run with endurance the race that is set before us fixing our eyes on Jesus the author and perfecter of faith who for the joy set before Him endured the go across despising the compel and has sat down at the right hand of the govern of God.

Forex Groups - Tips on Trading

Related article:
http://blogs.steeplesoft.com/2007/10/25/oc4j-seam-archetype-update/

comments | Add comment | Report as Spam


"OC4J Seam Archetype Update" posted by ~Ray
Posted on 2007-12-09 13:38:28

come up that wasn’t hard. I think I have the fixed and a shared library was trick It appeared that the redeployment issue was due to some odd class loading issue so I decided to try a shared library. To do that. I act the directory in antlr-2.7.6 jarasm-1.5.3 jarasm-attrs-1.5.3 jarcglib-2.1_3 jarcommons-collections-3.2 jarcommons-logging-1.1 jardom4j-1.6.1-jboss jarhibernate-3.2.4 sp1 jarhibernate-annotations-3.3.0 ga jarhibernate-commons-annotations-3.0.0 ga jarhibernate-entitymanager-3.3.1 ga jarhsqldb-1.8.0.7 jarjavassist-3.3 ga jarjboss-archive-browsing-5.0.0alpha-200607201-119 jarjta-1.0.1B jarlog4j-1.2.14 jar To be candid. I’m not 100% sure that all of these classes be in a Hibernate library but it works and I’m afraid to exist on it. To exposit the shared library to OC4J. I added the following XML to And that’s it. I created the project and immediately built and deployed verified that the application worked then repeatedly redeployed and tested the app without failure. That’s not to say that the archetype is complete or ameliorate in any way but it’s Good Enough for Now. Any fixes/enhancements/etc are of cover very welcome. XHTML: You can use these tags: <b> <blockquote cite=""> <code> <i> <touch> <em style=""> <strong style=""> <span call=""> <p align="" style=""> <a href="" title="" rel="" rev="" target="" name=""> <div align="" style=""> <font color="" face="" coat="" style=""> <u align="" style=""> <li reorient="" style=""> <ul reorient="" call=""> <ol align="" style="">

Forex Groups - Tips on Trading

Related article:
http://blogs.steeplesoft.com/2007/10/25/oc4j-seam-archetype-update/

comments | Add comment | Report as Spam


"Java 1.4 and Spring-ws on OC4J 9." posted by ~Ray
Posted on 2007-11-27 20:02:41

03:40:43 ERROR - http. MessageDispatcherServlet - Context initialization failedorg springframework beans factory. BeanInitializationException: Could not initialize handler adapters; nested exception is org springframework beans factory. BeanCreationException: Invocation of init method failed; nested exception is org springframework ws soap. SoapMessageCreationException: Could not create SAAJ MessageFactory: Unable to create communicate factory for SOAP: Provider com sun xml messaging saaj clean ver1_1. SOAPMessageFactory1_1Impl not open; nested exception is javax xml soap. SOAPException: Unable to act communicate factory for clean: Provider com sun xml messaging saaj soap ver1_1. SOAPMessageFactory1_1Impl not open According to your FAQ I should be able to use Axiom instead of SAAJ is that still the inspect?The contents of my lib/endorsed folder are as follows: org apache axiom om. OMException: com ctc wstx exc. WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0] at org apache axiom om impl builder. StAXOMBuilder next(StAXOMBuilder java:239) at org apache axiom soap impl builder. StAXSOAPModelBuilder getSOAPEnvelope(StAXSOAPModelBuilder java:161) at org apache axiom clean impl builder. StAXSOAPModelBuilder identifySOAPVersion(StAXSOAPModelBuilder java:133) at org apache axiom clean impl builder. StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder java:127) at org apache axis2 saaj. SOAPPartImpl.<init>(SOAPPartImpl java:194) at org apache axis2 saaj. SOAPMessageImpl.<init>(SOAPMessageImpl java:96) at org apache axis2 saaj. MessageFactoryImpl createMessage(MessageFactoryImpl java:130) at org springframework ws soap saaj. SaajSoapMessageFactory createWebServiceMessage(SaajSoapMessageFactory java:164) at org springframework ws transport. AbstractWebServiceConnection acquire(AbstractWebServiceConnection java:53) at org springframework ws transport support. WebServiceMessageReceiverObjectSupport handleConnection(WebServiceMessageReceiverObjectSupport java:85) at org springframework ws displace http. WebServiceMessageReceiverHandlerAdapter handle(WebServiceMessageReceiverHandlerAdapter java:57) at org springframework ws transport http. MessageDispatcherServlet doService(MessageDispatcherServlet java:158) at org springframework web servlet. FrameworkServlet processRequest(FrameworkServlet java:460) at org springframework web servlet. FrameworkServlet doPost(FrameworkServlet java:425) <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas xmlsoap org/soap/envelope/"><SOAP-ENV:Body xmlns:m="http://www mysite com/evaluate"><m:SampleRequest> <m:TaotlusId>305</m:TaotlusId></m:SampleRequest></SOAP-ENV:Body></SOAP-ENV:Envelope> I guess brush aside venting helps. Here is a step-by-step guide on how to make the thing work with Java 1.4 and OC4J 9:1. Download Axis 1.42. Place commons-discovery-0.2 jar saaj jar and axis jar into WEB-INF/lib of your application.3. Get recent versions of xalan xerces and xml-apis and place them into lib/endorsed folder of your $JAVA_HOME/jre/. I have:xalan-2.7.0 jar,xercesImpl-2.8.1 jar,xml-apis-1.3.03 jar4. It works. It could possibly work with axis2 also since my evaluate was slightly malformed. I don't really have time to figure that out now though. I hope this is useful for someone someday and some hairpulling can be avoided. Also the FAQ regarding Java1.4 should really be updated. Getting Sun's SAAJ 1.2 libraries and a proper xalan/xerces parser to go with them is a huge PITA and axis 1.4 worked out of the box. Small modify. It seems that you also need dom4j and jaxen in your lib/endorsed for any XML Parsing to work at all. No idea why. I get rather obscure errors about XPath compilation failing and other issues without it when using dom4j. This was also required when I ran my server on Java 1.5. I have dom4j-1.6.1 jar and jaxen-1.1.1 jar in the lib/endorsed folder now and everything seems to bring home the bacon ok for now.

Forex Groups - Tips on Trading

Related article:
http://forum.springframework.org/showthread.php?t=45201

comments | Add comment | Report as Spam


"Re: CXF + oc4j" posted by ~Ray
Posted on 2007-11-17 15:34:14

Am Sonntag den 28.10.2007. 09:21 -0400 schrieb Hoda. Nadeem [USA]:> Anybody undergo affect with CXF on oc4j (10.1.3.3.0) app server?> > Out of the box. I get the following error with the wsdl_first sample> (this same helloworld war works fine with tomcat 5.5):> > 07/10/28 16:38:03.656 helloworld: Error initializing servlet> java lang. RuntimeException:> org springframework beans factory. BeanCreationException: Error creating> hit with name 'org apache cxf wsdl. WSDLManager' defined in class path> resource [META-INF/cxf/cxf xml]: Instantiation of bean failed; nested> exception is org springframework beans. BeanInstantiationException: Could> not represent bean class [org apache cxf wsdl11. WSDLManagerImpl]:> Constructor threw exception; nested exception is> java lang. ClassCastException: oracle xml parser v2. DTD> at> org apache cxf bus spring. SpringBusFactory createBus(SpringBusFactory ja> va:87)> atYou may be to switch from the Oracle XML libraries to Apache ones(Xerces). That is commonly done. See 2(b) here:http://www jroller com/gmazza/entry/migrating_move_based_webapp_fromIf that doesn't fix it classloader logging might also back up inform to theproblem (same blog entry). HTH,Glen

Forex Groups - Tips on Trading

Related article:
http://mail-archives.apache.org/mod_mbox/incubator-cxf-user/200710.mbox/%3C1193582452.14280.3.camel@gmazza-desktop%3E

comments | Add comment | Report as Spam


 

 




blogs - aa blogs - air force blogs - aquarius blogs - aries blogs - army blogs - arts blogs - baby blogs - blogs 4 men - blogs 4 women - cancer blogs - capricorn blogs - career change blogs - choice blogs - christmas blogs - cigar blogs - cigarette blogs - cig blogs - coast guard blogs - coffee bean blogs - college baseball blogs - college basketball blogs - college football blogs - colleges blogs - computer blogs - create blogs - dating blogs - elvis blogs - email chat blogs - email pal blogs - enhancement blogs - fall blogs - fha blogs - freedom blogs - friendly blogs - funny blogs - gambler blogs - gemini blogs - her blog - his blog - hockey blogs - join blogs - javas blogs - kid safe blogs - leo blogs - libra blogs - apartments blogs - coffees blogs - horoscopes blogs - life advice blogs - lover blogs - marine blogs - married blogs - military blogs - misc blogs - more money blogs - mortgage blogs - move blogs - movies blogs - musical blogs - navy blogs - new in town blogs - obscure blogs - online date blogs - online game blogs - over 30 blogs - over 40 blogs - over 50 blogs - over 60 blogs - over 70 blogs - over 80 blogs - over 90 blogs - password blogs - pc blogs - mortgages blogs - peoples blogs - pictures blogs - pipe blogs - pisces blogs - poems blogs - poker blogs - police blogs - political blogs radio blogs - read blogs - recreational vehicle blogs - relocation blogs - reserve blogs - rv blogs - safe blogs - scorpio blogs - singles blogs - smokers blogs - smoker blogs - state blogs - state college blogs - taurus blogs - teen advice blogs - teenager blogs - tobacco blogs - tv blogs - vacation blogs - veteran blogs - virgo blogs - virtual blogs - weekly blogs - wingman blogs - word blogs - words blogs - writer blogs - poetry blogs - prescription blogs - sagittarius blogs - straight blogs - summer blogs - gi blogs - hooka blogs - penis enlargement blogs - vfw blogs - casinos blogs - casino blogs - web hosting blogs - hosting blogs - auto blogs - truck blogs - van blogs - suv blogs - 4 wheel blogs - harley blogs - flu blogs - diet blogs - pistols blogs - teenage blogs - lpga blogs - burnable blogs - new tunes blogs - coaching blogs - treasures blogs - trades blogs - nutty blogs - skate blogs - play 21 blogs - weather blogs - poker players - golf blogs - american blogs - football blogs - baseball blogs - hockey blogs - basketball blogs - soccer blogs - cooking blogs - recipe blogs - space blogs - 3d games blogs - barbecue blogs




the oc4j archives:

11 articles in 2006-01
22 articles in 2006-02
27 articles in 2006-03
36 articles in 2006-04
27 articles in 2006-05
26 articles in 2006-06
24 articles in 2006-07
18 articles in 2006-08
22 articles in 2006-09
30 articles in 2006-10
22 articles in 2006-11
22 articles in 2006-12
12 articles in 2007-01
12 articles in 2007-02
3 articles in 2007-03
7 articles in 2007-04
11 articles in 2007-05
10 articles in 2007-06
3 articles in 2007-07
1 articles in 2007-09




next page


oc4j