tag:blogger.com,1999:blog-13556721.post1894658259090147663..comments2023-05-29T18:53:18.727+09:30Comments on The Buttso Blathers: Using JAXB 2.0 with OC4J 10.1.3.xButtsohttp://www.blogger.com/profile/03968454565733104381noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-13556721.post-11557269929859214672010-05-26T11:34:54.278+09:302010-05-26T11:34:54.278+09:30In a oc4j, I have multiple service appliction depl...<i>In a oc4j, I have multiple service appliction deplyed. Only one of them needs to use jaxb2.0 Rest of them are fine with default jaxb which comes with oc4j.</i><br /><br />The level of granularity for shared-library manipulation is at the application level, accomplished via the orion-application.xml file. <br /><br />Therefore I think you'd need to model your service packaging/deployment around that concept, so that for the service which required JAXB 2.0, you could perform the necessary configuration changes to import the JAXB 2.0 implementation, leaving the remainder of your services with the default implementation the container provides.Buttsohttps://www.blogger.com/profile/03968454565733104381noreply@blogger.comtag:blogger.com,1999:blog-13556721.post-70346076590524519982009-06-26T04:14:09.293+09:302009-06-26T04:14:09.293+09:30In a oc4j, I have multiple service appliction depl...In a oc4j, I have multiple service appliction deplyed. Only one of them needs to use jaxb2.0 Rest of them are fine with default jaxb which comes with oc4j.<br /><br />How and where should I model my shared library entry.Archanahttps://www.blogger.com/profile/09950528969608714172noreply@blogger.comtag:blogger.com,1999:blog-13556721.post-8452438355556396312008-07-10T11:52:00.000+09:302008-07-10T11:52:00.000+09:30Here's what I'd try:From wherever you run your pro...Here's what I'd try:<BR/><BR/>From wherever you run your project -- and I get confused with the model/view content separation JDeveloper uses -- you can add the OC4J orion-application.xml deployment descriptor directly to the project -- JDeveloper should use this in conjunction with its own requirements when running the application. You add a new orion-application.xml using the File > New > General > Deployment Descriptors > OC4J Deployment Descriptor Wizard.<BR/><BR/>If that doesn't work, then you can work out where JDeveloper launches the application from by examining how it runs the application.<BR/><BR/>On the "Embedded OC4J Server Log" window, you should see a portion that looks like this:<BR/><BR/>-config D:\java\jdev-10133\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config\server.xml<BR/><BR/>Go and look in this file and you should then see the path to the orion-application.xml that JDeveloper is using:<BR/><BR/>application name="current-workspace-app" path="D:\java\jdev-10133\jdev\mywork\war-manifest-example\war-manifest-example-oc4j-app.xml" start="true" <BR/><BR/>Looking at this file, you'll then see its actually an orion-application.xml file -- which you could edit. <BR/><BR/><B>But</B> I suspect JDeveloper will overwrite this file each time you run the application so its current -- so first I'd investigage adding the orion-application.xml file directly to the project.<BR/><BR/>If all that fails, install OC4J standalone and deploy from JDeveloper to it when you need to test the application. The clean separation I find, personally speaking, to be a better option since you can more easily control the config.Buttsohttps://www.blogger.com/profile/03968454565733104381noreply@blogger.comtag:blogger.com,1999:blog-13556721.post-26018199274158811572008-07-09T18:28:00.000+09:302008-07-09T18:28:00.000+09:30HI,I executed all the steps for embedded oc4j. How...HI,<BR/><BR/>I executed all the steps for embedded oc4j. However, I do not know in which directory to add the orion-application.xml file. I tried to add it in WEB-INF, then I manually created META-INF under classes in both Model AND ViewContent project but the problem persists.<BR/>Please help.<BR/><BR/>Thanks<BR/>MiklosAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-13556721.post-79987977449131509212007-10-22T11:04:00.000+09:302007-10-22T11:04:00.000+09:30The embedded JDeveloper server does not have the G...The embedded JDeveloper server does not have the GUI ASC to enable the shared-libraries to be so easily manipulated. Therefore, to do this, you'd need to perform a few manual steps to get the same configuration.<BR/><BR/>As a rough starter, here's what I'd start with.<BR/><BR/>1. In your JDeveloper home, do a search for the server.xml files. You'll probably see 2 of them. One of them should reside in a directory path that contains the text "embedded-oc4j". <BR/><BR/>Edit that server.xml (backup first of course) and add in a new shared-library definition that points to your JAXB 2.0 library set.<BR/><BR/><shared-library name="jaxb" version="2.0" library-compatible="true"><BR/> <code-source path="D:\java\jaxb-ri-20070122\lib\jaxp-api.jar"/><BR/> ...<BR/></shared-library><BR/><BR/>What you could do to prove the existence of the shared-library is to use the admin_client.jar utility and execute the -listSharedLibraries command to list all the known shared-libraries. <BR/><BR/>To do this, start the embedded OC4J instance from within JDeveloper and take note of the RMI port value. Then use this in the connect URL.<BR/><BR/>D:\java\jdev-10131-studio\j2ee\home>java -jar admin_client.jar deployer:oc4j:loc<BR/>alhost:23891 oc4jadmin welcome -listSharedLibraries<BR/><BR/>Found 28 shared libraries:<BR/><BR/>Modifiable libraries:<BR/> jaxb version 2.0<BR/> global.libraries version 1.0<BR/> global.tag.libraries version 1.0<BR/> oracle.persistence version 1.0<BR/> oracle.expression-evaluator version 10.1.3.1<BR/> adf.oracle.domain version 10.1.3.1<BR/> adf.generic.domain version 10.1.3.1<BR/><BR/>Non-modifiable (system) libraries:<BR/> oracle.dms version 3.0<BR/> oracle.gdk version 10.1.0_2<BR/> oracle.jdbc version 10.1.0_2<BR/> oracle.xml version 10.1.0_2<BR/> oracle.cache version 10.1.3<BR/> oracle.sqlj version 10.1.3<BR/> oracle.http.client version 10.1.3<BR/> soap version 10.1.3<BR/> oracle.jwsdl version 10.1.3<BR/> apache.commons.logging version 1.0.4<BR/> util.concurrent version 1.3.2<BR/> org.jgroups version 2.3<BR/> oracle.ws.client version 10.1.3<BR/> oracle.xml.security version 10.1.3<BR/> oracle.ws.security version 10.1.3<BR/> oracle.toplink version 10.1.3<BR/> oracle.ws.reliability version 10.1.3<BR/> oracle.ws.testpage version 10.1.3<BR/> oracle.ws.core version 10.1.3<BR/> oracle.wsm version 10.1.3<BR/> xqs.d3l version 10.1.3.1.0<BR/><BR/>2. Now for your application to make use of this, you need to manually add an orion-application.xml file and specify the import-shared-library statement to pull in the JAXB 2.0. library.<BR/><BR/><imported-shared-libraries><BR/> <import-shared-library name="jaxb"/><BR/></imported-shared-libraries><BR/><BR/>That should get you by or at least on the right path. If I get time this week, I'll it up in more detail and put it on the blog site.Buttsohttps://www.blogger.com/profile/03968454565733104381noreply@blogger.comtag:blogger.com,1999:blog-13556721.post-7715518317667133122007-10-17T15:23:00.000+09:302007-10-17T15:23:00.000+09:30How can I accomplish the same with my internal OC...How can I accomplish the same with my internal OC4J server that comes bundled with JDeveloper 10.3.1.It would be really helpful if you could give me the setup steps. I had posted a query in the oracle forums<BR/>http://forums.oracle.com/forums/thread.jspa?threadID=573927&tstart=0<BR/><BR/><BR/>Thanksordinaryspeakhttps://www.blogger.com/profile/10637089482102184994noreply@blogger.comtag:blogger.com,1999:blog-13556721.post-55655817081834704322007-10-15T19:51:00.000+09:302007-10-15T19:51:00.000+09:30Can you do the same, but in a jdev embebbed oc4j?Can you do the same, but in a jdev embebbed oc4j?Daniel aka DnlCYhttps://www.blogger.com/profile/01848875429462224313noreply@blogger.comtag:blogger.com,1999:blog-13556721.post-63284251004955307002007-10-02T15:14:00.000+09:302007-10-02T15:14:00.000+09:30Thanks, been looking for some information on how t...Thanks, been looking for some information on how this can be done. Will try it out.Anonymousnoreply@blogger.com