weblogic-application.xml and prefer-application-packages tag issue. - weblogic.developer.interest.webservices.general(Archived)

Hi All,
To solve one of the issue I have mentioned already in
http://forums.bea.com/bea/thread.jspa?threadID=300000394 post.
I am planning to use prefer-application-packages tag in weblogic-application.xml but it says XML is invalid and shows following error in workshop 9.2.1.
Severity     Description     Resource     In Folder     Location     Creation Time     Id
2     cvc-complex-type.2.4.a: Invalid content was found starting with element 'wls:prefer-application-packages'. One of '{"http://www.bea.com/ns/weblogic/90":library-ref, "http://www.bea.com/ns/weblogic/90":fair-share-request, "http://www.bea.com/ns/weblogic/90":response-time-request, "http://www.bea.com/ns/weblogic/90":context-request, "http://www.bea.com/ns/weblogic/90":max-threads-constraint, "http://www.bea.com/ns/weblogic/90":min-threads-constraint, "http://www.bea.com/ns/weblogic/90":capacity, "http://www.bea.com/ns/weblogic/90":work-manager, "http://www.bea.com/ns/weblogic/90":application-admin-mode-trigger, "http://www.bea.com/ns/weblogic/90":session-descriptor, "http://www.bea.com/ns/weblogic/90":library-context-root-override}' is expected.     weblogic-application.xml     wivApp/EarContent/META-INF     line 22     June 13, 2007 9:12:51 AM     191
This is my weblogic-application.xml
<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wls="http://www.bea.com/ns/weblogic/90" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/j2ee_1_4.xsd http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-application.xsd">
<wls:application-param>
<wls:param-name>webapp.encoding.default</wls:param-name>
<wls:param-value>UTF-8</wls:param-value>
</wls:application-param>
<wls:library-ref>
<wls:library-name>beehive-controls-1.0</wls:library-name>
<wls:specification-version>1.0</wls:specification-version>
<wls:implementation-version>1.0</wls:implementation-version>
</wls:library-ref>
<wls:library-ref>
<wls:library-name>wls-commonslogging-bridge</wls:library-name>
<wls:specification-version>1.0</wls:specification-version>
<wls:implementation-version>1.0</wls:implementation-version>
</wls:library-ref>
<wls:library-ref>
<wls:library-name>weblogic-controls-1.0</wls:library-name>
<wls:specification-version>1.0</wls:specification-version>
<wls:implementation-version>1.0</wls:implementation-version>
</wls:library-ref>
<wls:prefer-application-packages>
     <wls:package-name>org.apache.log4j.*</wls:package-name>
</wls:prefer-application-packages>
</wls:weblogic-application> 

Hi Hitesh,
Got the same problem.
What I did to fix it was to switch both declarations :
Before :
http://www.bea.com/ns/weblogic/90
http://www.bea.com/ns/weblogic/90/weblogic-application.xsd
After :
http://www.bea.com/ns/weblogic/90/weblogic-application.xsd http://www.bea.com/ns/weblogic/90
And the Workshop error's gone.
Note that I don't think it would have prevented your filtering class loader from working.
Regards

Related

Unable to "Create a Portal and Desktop" into Weblogic Portal Administration

Using the following tutorial : http://download.oracle.com/docs/cd/E13218_01/wlp/docs92/tutorials/create_desktop.html
When I arrive to step "Create a Portal and Desktop"
In my case the structure under Portal Ressources are empty not like :
http://download.oracle.com/docs/cd/E13218_01/wlp/docs92/tutorials/wwimages/ss_adm_portal_res_tree.gif
When i open my console I got this :
<8 sept. 2010 11.10. h CEST> <Error> <PortalAdminTools> <BEA-415083> <No web application was found.>
<8 sept. 2010 11.10. h CEST> <Warning> <PortalAdminTools> <BEA-415154> <There are no portal applications available to manage.>
Some help will be welcome :) 
Hi
1. In the image you pasted, right above Portal Resources, there is a button called Update WebApp. Right above it shows the name of your PortalWebProject. Now DO YOU see name of your portal web project?
a) YES, then you are good so far. Basically you see items under Portal Resources only after you create a Desktop. These items are shown by pulling all the items from the Portal DB Schema tables and NOT .portal file. When you create a Desktop, internally .portal xml file is parsed, and all the Books, Pages, Portlets, LookFeels etc etc is saved across multiple Portal DB Schema tables. Only this is what is shown under the Resources node.
b) NO. Means if you do not see your portalWeb project in the top, you need to go back. See if your portalWeb is associated with portalEAR or not. If yes, undeploy everything and rebuild and redeploy. The default behavior is create portalEAR, create portalWeb and link this to EAR. Deploy EAR. 100% of the times, I have see my portalWeb project in portal admin console.
Thanks
Ravi Jegga 
Thanks for you reply obviously I made a Update ;) NO RESULT
and I've create a new basic project EAR and WebPortal, associate both, and redeploy again! and nothing :(
"Now DO YOU see name of your portal web project?" - NO
My webportal are associate with portalEAR, i try to rebuild everything lots of times!
This is my weblogic.xml
<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-web-app xmlns:wls="http://www.bea.com/ns/weblogic/weblogic-web-app" 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 http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
<wls:weblogic-version>10.3</wls:weblogic-version>
<wls:context-root>Rolex-WebPortal</wls:context-root>
<wls:library-ref>
<wls:library-name>jstl</wls:library-name>
<wls:specification-version>1.1</wls:specification-version>
<wls:exact-match>true</wls:exact-match>
</wls:library-ref>
<wls:library-ref>
<wls:library-name>wlp-tools-visitor-web-lib</wls:library-name>
<wls:specification-version>10.3.0</wls:specification-version>
<wls:implementation-version>10.3.0</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-tools-framework-web-lib</wls:library-name>
<wls:specification-version>10.3.0</wls:specification-version>
<wls:implementation-version>10.3.0</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-commonui-web-lib</wls:library-name>
<wls:specification-version>10.3.0</wls:specification-version>
<wls:implementation-version>10.3.0</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-framework-full-web-lib</wls:library-name>
<wls:specification-version>10.3.0</wls:specification-version>
<wls:implementation-version>10.3.0</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-clipper-web-lib</wls:library-name>
<wls:specification-version>10.3.0</wls:specification-version>
<wls:implementation-version>10.3.0</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-lookandfeel-web-lib</wls:library-name>
<wls:specification-version>10.3.0</wls:specification-version>
<wls:implementation-version>10.3.0</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-rest-full-web-lib</wls:library-name>
<wls:specification-version>10.3.0</wls:specification-version>
<wls:implementation-version>10.3.0</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-framework-rest-web-lib</wls:library-name>
<wls:specification-version>10.3.0</wls:specification-version>
<wls:implementation-version>10.3.0</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-rest-web-lib</wls:library-name>
<wls:specification-version>10.3.0</wls:specification-version>
<wls:implementation-version>10.3.0</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-light-web-lib</wls:library-name>
<wls:specification-version>10.3.0</wls:specification-version>
<wls:implementation-version>10.3.0</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-wsrp-producer-web-lib</wls:library-name>
<wls:specification-version>10.3.0</wls:specification-version>
<wls:implementation-version>10.3.0</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-framework-common-web-lib</wls:library-name>
<wls:specification-version>10.3.0</wls:specification-version>
<wls:implementation-version>10.3.0</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-framework-struts-1.2-web-lib</wls:library-name>
<wls:specification-version>10.3.0</wls:specification-version>
<wls:implementation-version>10.3.0</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>struts-1.2</wls:library-name>
<wls:specification-version>1.2</wls:specification-version>
<wls:exact-match>true</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-services-web-lib</wls:library-name>
<wls:specification-version>10.3.0</wls:specification-version>
<wls:implementation-version>10.3.0</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>content-management-web-lib</wls:library-name>
<wls:specification-version>10.3.0</wls:specification-version>
<wls:implementation-version>10.3.0</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref>
<wls:library-ref>
<wls:library-name>beehive-netui-1.0.1-10.0</wls:library-name>
<wls:specification-version>1.0</wls:specification-version>
<wls:exact-match>true</wls:exact-match>
</wls:library-ref>
<wls:library-ref>
<wls:library-name>beehive-netui-resources-1.0.1-10.0</wls:library-name>
<wls:specification-version>1.0</wls:specification-version>
<wls:exact-match>true</wls:exact-match>
</wls:library-ref>
<wls:library-ref>
<wls:library-name>p13n-web-lib</wls:library-name>
<wls:specification-version>10.3.0</wls:specification-version>
<wls:implementation-version>10.3.0</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref>
</wls:weblogic-web-app> 
Hi
"Now DO YOU see name of your portal web project?" - NO
This means, we need to take some steps back. For some reasons your portalWeb is still not associated with the portalEAR.
Under portalEAR meta-inf/application.xml file, see if you have this section:
<module>
<web>
<web-uri>yourPortalWeb</web-uri>
<context-root>yourPortalWeb</context-root>
</web>
</module>
If its there, export your portal ear as EAR file. And open this .ear file in winzip and see that it is having your portalWeb.war file. Also above section. Then you can deploy this .EAR file from weblogic console, instead of direct deploy from IDE.
After portal is deployed are you able to test it in .portal mode like using http://yourhost:yourport/yourPortalWeb/yourtest.portal. If this DO NOT work this means defiently you do not have portal web project. But if this works, but not from Portal admin console not listing it, then mostly your installation may be corrupted for some reasons. ReInstall and try and may be its worth of time.
Thanks
Ravi Jegga

Error 405: file not found displayed when trying to run a process on server

Iam trying to run a "weblogic integration-process application" on server to test the application.
It is giving me the below error:
-----------------------------------------
Error 404--Not Found
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.5 404 Not Found
The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address
--------------------------------------------------------
File iam trying to run is RequestQuote.java
The file is in Tutorial_process_application_web/src/requestquote/
In the browser it is opening the below link:
http://localhost:7051/Tutorial_Process_Application_Web/requestquote/RequestQuote.java
I tried adding "src" in between but still same error is coming. I tried running just http://localhost:7051/, it is opening the weblogic integration window.
I have pasted the web.xml and all other configuration files below. Please let me know what changes i have to make to get the testing window.
Thanks,
Vishu.
---------------------------------------------------------
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
     <display-name>
     Tutorial_Process_Application_Web</display-name>
     <listener>
          <listener-class>com.bea.wli.management.WliWebAppListener</listener-class>
     </listener>
     <welcome-file-list>
          <welcome-file>index.html</welcome-file>
          <welcome-file>index.htm</welcome-file>
          <welcome-file>index.jsp</welcome-file>
          <welcome-file>default.html</welcome-file>
          <welcome-file>default.htm</welcome-file>
          <welcome-file>default.jsp</welcome-file>
     </welcome-file-list>
</web-app>
-----------------------------------
weblogic.xml
<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wls="http://www.bea.com/ns/weblogic/90" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd">
<wls:context-root>Tutorial_Process_Application_Web</wls:context-root>
<wls:library-ref>
<wls:library-name>struts-1.2</wls:library-name>
<wls:specification-version>1.2</wls:specification-version>
<wls:implementation-version>1.0</wls:implementation-version>
</wls:library-ref>
<wls:library-ref>
<wls:library-name>jstl</wls:library-name>
<wls:specification-version>1.1</wls:specification-version>
<wls:implementation-version>1.1.2</wls:implementation-version>
</wls:library-ref>
<wls:url-match-map>weblogic.servlet.utils.SimpleApacheURLMatchMap</wls:url-match-map>
</wls:weblogic-web-app>
----------------------------------------
application.xml
<?xml version="1.0" encoding="UTF-8"?>
<application id="Application_ID" version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
     <display-name>
     Tutorial_Process_Application_Ear</display-name>
     <module id="WebModule_1180909671484">
          <web>
               <web-uri>Tutorial_Process_Application_Web.war</web-uri>
               <context-root>Tutorial_Process_Application_Web</context-root>
          </web>
     </module>
     <module>
          <ejb>Tutorial_Process_Application_Web_WLI_ProjectBeans</ejb>
     </module>
     <module>
          <ejb>Tutorial_Process_Application_Web_WLI_ComponentBeans</ejb>
     </module>
</application>
-----------------------------------------------------
weblogic-application.xml
<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wls="http://www.bea.com/ns/weblogic/90" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/j2ee_1_4.xsd http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-application.xsd">
<wls:ejb>
<wls:start-mdbs-with-application>false</wls:start-mdbs-with-application>
</wls:ejb>
<wls:application-param>
<wls:param-name>webapp.encoding.default</wls:param-name>
<wls:param-value>UTF-8</wls:param-value>
</wls:application-param>
<wls:classloader-structure>
<wls:classloader-structure>
<wls:module-ref>
<wls:module-uri>Tutorial_Process_Application_Web.war</wls:module-uri>
</wls:module-ref>
<wls:classloader-structure>
<wls:module-ref>
<wls:module-uri>Tutorial_Process_Application_Web_WLI_ProjectBeans</wls:module-uri>
</wls:module-ref>
</wls:classloader-structure>
<wls:classloader-structure>
<wls:module-ref>
<wls:module-uri>Tutorial_Process_Application_Web_WLI_ComponentBeans</wls:module-uri>
</wls:module-ref>
</wls:classloader-structure>
</wls:classloader-structure>
</wls:classloader-structure>
<wls:listener>
<wls:listener-class>com.bea.wli.management.WLIAppListener</wls:listener-class>
</wls:listener>
<wls:library-ref>
<wls:library-name>beehive-controls-1.0</wls:library-name>
<wls:specification-version>1.0</wls:specification-version>
<wls:implementation-version>1.0</wls:implementation-version>
</wls:library-ref>
<wls:library-ref>
<wls:library-name>wls-commonslogging-bridge</wls:library-name>
<wls:specification-version>1.0</wls:specification-version>
<wls:implementation-version>1.0</wls:implementation-version>
</wls:library-ref>
<wls:library-ref>
<wls:library-name>weblogic-controls-1.0</wls:library-name>
<wls:specification-version>1.0</wls:specification-version>
<wls:implementation-version>1.0</wls:implementation-version>
</wls:library-ref>
</wls:weblogic-application>
----------------------------------------------- 
sorry i didnt mention the weblogic workshop version, it is weblogic workshop 9.2.
Thanks,
vishu

Unable to lookup local EJB reference (ejb 2.1)

Hi All,
I am trying to do a simple local EJB lookup of ejb2(XDCGIVTCursorHoldableJDBCReader) from ejb1(XDCGIVTBatchController), Both the ejbs are located in the same EAR. This is weblogic 10
I am running into name-not-found exceptions.
Here is my ejb-jar.xml
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar version="3.0" 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/ejb-jar_3_0.xsd">
     <enterprise-beans>
          <session>
               <ejb-name>XDCGIVTBatchController</ejb-name>
               <home>xxx.BatchJobControllerHome</home>
               <remote>xxx.BatchJobController</remote>
               <ejb-class>xxx.BatchJobControllerBean</ejb-class>
               <session-type>Stateless</session-type>
               <transaction-type>Container</transaction-type>
               <ejb-local-ref>
                    <ejb-ref-name>ejb/local/XDCGIVTCursorHoldableJDBCReader</ejb-ref-name>
                    <ejb-ref-type>Session</ejb-ref-type>
                    <local-home>xxx.CursorHoldableJDBCReaderLocalHome</local-home>
                    <local>xxx.CursorHoldableJDBCReaderLocal</local>
                    <ejb-link>XDCGIVTCursorHoldableJDBCReader</ejb-link>
               </ejb-local-ref>
               <resource-ref>
                    <res-ref-name>wm/BatchWorkManager</res-ref-name>
                    <res-type>commonj.work.WorkManager</res-type>
                    <res-auth>Container</res-auth>
                    <res-sharing-scope>Shareable</res-sharing-scope>
               </resource-ref>
          </session>
          <session>
               <ejb-name>XDCGIVTCursorHoldableJDBCReader</ejb-name>
               <local-home>xxx.CursorHoldableJDBCReaderLocalHome</local-home>
               <local>xxx.CursorHoldableJDBCReaderLocal</local>
               <ejb-class>xxx.CursorHoldableJDBCReaderBean</ejb-class>
               <session-type>Stateful</session-type>
               <transaction-type>Bean</transaction-type>
               <resource-ref>
                    <res-ref-name>jdbc/IVTdb</res-ref-name>
                    <res-type>javax.sql.DataSource</res-type>
                    <res-auth>Container</res-auth>
                    <res-sharing-scope>Unshareable</res-sharing-scope>
               </resource-ref>
          </session>
     </enterprise-beans>
</ejb-jar>
and here is my weblogic-ejb-jar.xml
--------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!--
** This file was automatically generated by
** EJBGen WebLogic Server 10.3 SP0 Fri Jul 25 16:30:05 EDT 2008 1137967
-->
<weblogic-ejb-jar
xmlns="http://www.bea.com/ns/weblogic/90" xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-ejb-jar.xsd">
<weblogic-enterprise-bean>
<ejb-name>XDCGIVTBatchController</ejb-name>
<stateless-session-descriptor>
</stateless-session-descriptor>
     <jndi-name>ejb/XDCGIVTBatchController</jndi-name>
</weblogic-enterprise-bean>
<weblogic-enterprise-bean>
     <ejb-name>XDCGIVTCursorHoldableJDBCReader</ejb-name>
     <local-jndi-name>XDCGIVTCursorHoldableJDBCReader</local-jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
---------------------------------------------------------------------------------------------------------
I am using the following code to do the lookup
Object hm = new InitialContext().lookup("java:comp/env/ejb/local/XDCGIVTCursorHoldableJDBCReader);
I have also tried looking up with
java:comp/env/ejb/XDCGIVTCursorHoldableJDBCReader with no success.
Any ideas? suggestions? what am I doing wrong?
Thanks in advance!!
Neeraj 
Hi Neeraj,
It don't see any obvious problems. Looking up "java:comp/env/ejb/local/XDCGIVTCursorHoldableJDBCReader" from the BatchJobControllerBean should work unless I'm missing something. It might be worth trying to have the EJB container inject the reference to the XDCGIVTCursorHoldableJDBCReader bean for you using the #EJB annotation.
- Matt 
Hi Matt,
Thanks for your suggestion, unfortunately I cannot use EJB 3.0 yet for backward compatibility reasons. Do you know of any mechanism in weblogic to dump the namespace for a given application ? I tried doing a new InitialContext().list("java:comp/env") and it threw an exception saying that 'env' could not be found.
Thank you for your help
Neeraj 
Hi Neeraj,
I don't know of a mechanism to dump the namespace. Trying to list the bindings, as you currently are, seems fine to me. Something funny is going on if it's not finding the env context. What EJB method are you trying to do the lookup from?
- Matt 
Hey Matt,
So the flow is as follows
1. Servlet looks up EJB1
2. EJB1 starts a commonj.work using the commonj.WorkManager
3. The worker tries to lookup EJB2 using java:comp/env (and thats the same place I tried to dump the namespace)
Could it be that I am getting a new namespace in the commonj worker ? This doesn't seem to be the case in IBM WebSphere.
Thanks for your help!
Neeraj 
Hi Neeraj,
Your commonj worker should inherit the java:comp/env namespace from the component in which you scheduled it (as you experienced with WebSphere). If you dump the namespace from EJB1, are you able to see the EJB2 binding?
- Matt

Newbie Question : Portal Content Repository

Im assigned teh task of installing a third party app on our newly configured weblogic portal installation ( 10.3.2 )
This third party app comes as an ear. But it doesnt have any .portal files inside it.
We were told that it uses weblogic portal content repository.
1. I installed WLP and configured teh new domain. Does it mean that the default portal content repository is installed.
2. How can I browse the settings and data of default portal content repository ?
( Documentation talks about 'Portal Admin console'. But my understanding is that Portal Admin console is only available in relation with an existing portal application.
Since our app doesnt contain a .portal file, it is not technically a portal application
)
3. Am I supposed to get any setup scripts from this third party application, so as to customize the content repository with the types etc, they need.
Thank you 
Just because the EAR does not contain a .portal file does not mean that the EAR is not a Portal EAR. You need to look at the registered library modules in the EAR. If it contains some of the WLP library modules, it's a WLP app. Assuming it has all of the library modules that represent the Portal Admin Console, you might even be able to run it from that third party ear deployment. Once deployed, look for a webapp in the EAR that is the Portal Admin.
Otherwise, you can create and deploy a peer WLP app to the same domain/server and access the CM Tools through the Portal Admin Console in that application. Just ensure that the Content Repository name is the same between your app and the third party app.
Brad 
Thanks a lot Brad.
I have not deployed teh ear file yet.
Im afraid that it will not deploy successfully, since it needs a content repository, and since my content repository doesnt have the types or contents defined yet. ( Sort of like a chicken-egg problem )
Sorry to ask : How will I look at the registered library modules ?
My weblogic-application.xml is as below
<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-application xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-application" 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/javaee_5.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.0/weblogic-application.xsd">
<!--weblogic-version:10.3.2-->
<wls:application-param>
<wls:param-name>webapp.encoding.default</wls:param-name>
<wls:param-value>UTF-8</wls:param-value>
</wls:application-param>
<wls:library-ref>
<wls:library-name>wlp-tools-admin-app-lib</wls:library-name>
<wls:specification-version>10.3.2</wls:specification-version>
<wls:implementation-version>10.3.2</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-propagation-app-lib</wls:library-name>
<wls:specification-version>10.3.2</wls:specification-version>
<wls:implementation-version>10.3.2</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-tools-full-console-app-lib</wls:library-name>
<wls:specification-version>10.3.2</wls:specification-version>
<wls:implementation-version>10.3.2</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-tools-analytics-app-lib</wls:library-name>
<wls:specification-version>10.3.2</wls:specification-version>
<wls:implementation-version>10.3.2</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-tools-serviceadmin-app-lib</wls:library-name>
<wls:specification-version>10.3.2</wls:specification-version>
<wls:implementation-version>10.3.2</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-tools-ugm-app-lib</wls:library-name>
<wls:specification-version>10.3.2</wls:specification-version>
<wls:implementation-version>10.3.2</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-tools-portal-app-lib</wls:library-name>
<wls:specification-version>10.3.2</wls:specification-version>
<wls:implementation-version>10.3.2</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-tools-im-app-lib</wls:library-name>
<wls:specification-version>10.3.2</wls:specification-version>
<wls:implementation-version>10.3.2</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-tools-content-app-lib</wls:library-name>
<wls:specification-version>10.3.2</wls:specification-version>
<wls:implementation-version>10.3.2</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-tools-common-app-lib</wls:library-name>
<wls:specification-version>10.3.2</wls:specification-version>
<wls:implementation-version>10.3.2</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-tools-framework-app-lib</wls:library-name>
<wls:specification-version>10.3.2</wls:specification-version>
<wls:implementation-version>10.3.2</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-tools-app-lib</wls:library-name>
<wls:specification-version>10.3.2</wls:specification-version>
<wls:implementation-version>10.3.2</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-tools-support-app-lib</wls:library-name>
<wls:specification-version>10.3.2</wls:specification-version>
<wls:implementation-version>10.3.2</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>webdav-app-lib</wls:library-name>
<wls:specification-version>10.3.2</wls:specification-version>
<wls:implementation-version>10.3.2</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>content-management-cmis-rest-app-lib</wls:library-name>
<wls:specification-version>10.3.2</wls:specification-version>
<wls:implementation-version>10.3.2</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref>
<wls:library-ref>
<wls:library-name>wlp-framework-full-app-lib</wls:library-name>
<wls:specification-version>10.3.2</wls:specification-version>
<wls:implementation-version>10.3.2</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref>
<wls:library-ref>
<wls:library-name>content-management-app-lib</wls:library-name>
<wls:specification-version>10.3.2</wls:specification-version>
<wls:implementation-version>10.3.2</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>wlp-services-app-lib</wls:library-name>
<wls:specification-version>10.3.2</wls:specification-version>
<wls:implementation-version>10.3.2</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>vcr-app-lib</wls:library-name>
<wls:specification-version>10.3.2</wls:specification-version>
<wls:implementation-version>10.3.2</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>p13n-app-lib</wls:library-name>
<wls:specification-version>10.3.2</wls:specification-version>
<wls:implementation-version>10.3.2</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref><wls:library-ref>
<wls:library-name>p13n-app-lib-base</wls:library-name>
<wls:specification-version>10.3.2</wls:specification-version>
<wls:implementation-version>10.3.2</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref>
<wls:library-context-root-override>
<wls:context-root>cmisrest</wls:context-root>
<wls:override-value>LrpmlEARCMISRest</wls:override-value>
</wls:library-context-root-override>
<wls:library-context-root-override>
<wls:context-root>webdav</wls:context-root>
<wls:override-value>LrpmlEARWebdav</wls:override-value>
</wls:library-context-root-override>
<wls:library-context-root-override>
<wls:context-root>wpsToolsSupport</wls:context-root>
<wls:override-value>LrpmlEARToolSupport</wls:override-value>
</wls:library-context-root-override>
<wls:library-context-root-override>
<wls:context-root>tools</wls:context-root>
<wls:override-value>LrpmlEARAdmin</wls:override-value>
</wls:library-context-root-override>
<wls:library-context-root-override>
<wls:context-root>propagation</wls:context-root>
<wls:override-value>LrpmlEARPropagation</wls:override-value>
</wls:library-context-root-override>
</wls:weblogic-application> 
The contents of the weblogic-application.xml indicates that the EAR is at least trying to be a WLP application. Who constructed the EAR? Did it not come with instructions? What is the deployment exception?
Brad 
I got the error in the log and my ear app failed to deploy
Caused By: weblogic.management.DeploymentException: Error: Unresolved Webapp Library references for "ServletContext#5878066[app:MyApp module:MyAppCMISRest path:/MyAppCMISRest spec-version:2.5]", defined in weblogic.xml [Extension-Name: content-management-cmis-base-web-lib, Specification-Version: 10.3.4, Implementation-Version: 10.3.4, exact-match: true]

[TOPLINK-9003]

I tried to do it like the OC4J examples (OC4JSessionBeanSessions.xml) but it doesn't work. Anybody an idea why it doesn't work.
Why does the session editor allows to create session files not loadable. Isn't it the job of such a tool to avoid that?
Regards, Haug
Exception [TOPLINK-9003] (OracleAS TopLink - 10g (10.0.3) Developer Preview (Build 040222)): oracle.toplink.exceptions.SessionLoaderException
Exception Description: Unable to process XML tag [external-transaction-controller-class] with value [oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController].
Internal Exception: java.lang.ClassCastException
<?xml version = '1.0' encoding = 'UTF-8'?>
<!DOCTYPE toplink-configuration PUBLIC "-//Oracle Corp.//DTD TopLink Sessions 10.0.3 Developer Preview//EN" "sessions_10_0_3.dtd">
<toplink-configuration>
<session>
<name>ToplinkClient</name>
<project-xml>ToplinkClient.xml</project-xml>
<session-type>
<server-session/>
</session-type>
<login>
<type>oracle.toplink.sessions.DatabaseLogin</type>
<datasource>jdbc/J2EEDS</datasource>
<uses-external-connection-pool>true</uses-external-connection-pool>
<uses-external-transaction-controller>true</uses-external-transaction-controller>
<platform-class>oracle.toplink.internal.databaseaccess.OraclePlatform</platform-class>
<external-transaction-controller-class>oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController</external-transaction-controller-class>
<non-jts-datasource>jdbc/J2EECoreDS</non-jts-datasource>
</login>
<enable-logging>true</enable-logging>
<logging-options>
<log-debug>true</log-debug>
</logging-options>
</session>
</toplink-configuration>
<?xml version="1.0" standalone='yes'?>
<!--<!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://xmlns.oracle.com/ias/dtds/data-sources.dtd">-->
<data-sources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/data-sources-10_0.xsd"
schema-major-version="10"
schema-minor-version="0">
     <data-source
          class="com.evermind.sql.DriverManagerDataSource"
          name="J2EEDS"
          location="jdbc/J2EECoreDS"
          xa-location="jdbc/xa/J2EEXADS"
          ejb-location="jdbc/J2EEDS"
          connection-driver="oracle.jdbc.driver.OracleDriver"
          username="j2ee"
          password="geheim"
          url="jdbc:oracle:thin:#vilsg-ora9-dev:1521:ORCL"
          inactivity-timeout="30"
     />
</data-sources>
<external-transaction-controller-class> element should be not inside <login> element, but rather after it:
<login>....</login>
<external-transaction-controller-class>oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController</external-transaction-controller-class>

Categories

Resources