EJB in portlet

Hello,
I would like to use an EJB (session bean) in a jsp of a portlet. (View.jsp). does somebody know the process to follow ?
I have processed with the same way that classical Web application but I have errors :-(
Thank you very much.
Sev2004

Invoking the ejb is no different for any client as long as the code is in Java (Of course if you have wrapped the EJB in web services then any client suitable of invoking thru SOAP protocol can access the EJB services) and this is true for the JSP too.
However, I would recommend development of some framework for invoking the EJB ( read J2EE patterns).....
What are the problems you faced???

Similar Messages

  • AccessControl Exception when invoking remote ejb from portlet class

    Hi,
    From Portlet class, I am invoking Remote EJB which is deployed in weblogic application server.
    After EJB call it not requst Dispathcer not allowed to include the request ..
    Exception as follows ..
    java.security.AccessControlException: access denied (java.security.SecurityPermission getHttpRequestBase)
    X      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
    X      at java.security.AccessController.checkPermission(AccessController.java:427)
    X      at org.apache.catalina.connector.HttpRequestFacade.getHttpRequestBase(HttpRequestFacade.java:257)
    X      at org.apache.catalina.core.ApplicationDispatcher.getRequestBase(ApplicationDispatcher.java:1115)
    X      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:759)
    X      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:628)
    X      at org.apache.catalina.core.ApplicationDispatcher.access$100(ApplicationDispatcher.java:123)
    X      at org.apache.catalina.core.ApplicationDispatcher$PrivilegedInclude.run(ApplicationDispatcher.java:154)
    X      at java.security.AccessController.doPrivileged(Native Method)
    X      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:528)
    X      at com.sun.portal.portlet.impl.RequestDispatcherImpl.include(RequestDispatcherImpl.java:95)
    X      at com.gm.gc.sample.SamplePortlet.doView(Unknown Source)
    X      at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:235)
    X      at javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
    X      at com.sun.portal.portletappengine.PortletAppEngineServlet.service(PortletAppEngineServlet.java:271)
    X      at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
    X      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:772)
    X      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:628)
    X      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:539)
    X      at com.sun.portal.container.portlet.impl.PortletContainer.invokePAE(PortletContainer.java:409)
    X      at com.sun.portal.container.portlet.impl.PortletContainer.getMarkup(PortletContainer.java:180)
    X      at com.sun.portal.providers.window.WindowProvider.getPortletContent(WindowProvider.java:386)
    X      at com.sun.portal.providers.window.WindowProvider.getContentInternal(WindowProvider.java:239)
    X      at com.sun.portal.providers.window.WindowProvider.getContent(WindowProvider.java:204)
    X      at com.sun.portal.desktop.context.ReusableProviderCaller.run(ReusableProviderCaller.java:160)
    Source Code
    ===========
    SamplePortlet Class
    protected void doView(RenderRequest request, RenderResponse response)
                   throws PortletException, IOException {
              PortletRequestDispatcher prDispatcher = null;
              String helloString=null;
              SamplePortletHandler spHandler=null;
              response.setContentType(request.getResponseContentType());
              try {
                   spHandler=new SamplePortletHandler();               
                   prDispatcher = pContext.getRequestDispatcher("/jsp/SampleView.jsp");                         
                   helloString=spHandler.getHelloString();
                   prDispatcher.include(request, response);
              } catch (Exception e) {
                   e.printStackTrace();
                   request.setAttribute("ERROR_MSG", e.getMessage());
                   prDispatcher = pContext.getRequestDispatcher("/jsp/Error.jsp");
                   prDispatcher.include(request, response);
    Handler Class
    is there any solution?
    Thanks in Advance ...

    Hi,
    I didn't configure the JNDI stuff in WLS per se. I created a simple session bean and the meta data in the jar of this determined the JNDI setup.
    Once this is deployed on either WLS it can then be seen in Weblogic Console by clicking on View JNDI Tree. The full JNDI name is present and correct on both WLS to which it is deployed.
    Does that answer your questions or are you asking how I configured the SOA Suite composite? In which case I selected the EJB in the Partner Link swimlane. Viewed the properties and added
    java.naming.provider.url
    t3://myremotehost:7001

  • Calling EJB inside Portlet (JSR168)

    How to write EJB inside portal project?
    Do I have to create EJB Project?
    How can I integrate 2 Projects?
    Is there another way?

    EJBs are a peer to webapps (which a portal project is), so you don't
    write an EJB inside a portal project.
    If you are creating a new EJB, an EJB project is definitely the best way
    to go.
    If you already have a packaged up EJB jar file, you can just use Import
    Module... in the portal application and point it to the jar file; this
    will add it to the application. Then, the EJB classes should available
    for your java portlet to reference (and to any other projects as well).
    Greg
    Prakash Malani wrote:
    How to write EJB inside portal project?
    Do I have to create EJB Project? Yes...
    How can I integrate 2 Projects?The simplest thing to do is to make them part of the same application.
    Is there another way?

  • Portlets to JCA/EJB or Portlets via WLI to EJB/JCA

    I think the answer to this is quite simple but I just want to ensure I'm not missing
    something.
    Portlets can access the usual suspects, EJB, JCA, Web Services, JMS etc. WLI is
    also an option and this itself can also talk to JMS, JCA and Web Serviices.
    Would I go through WLI solely for the purpose of having the business logic in
    these calls partake in a business process (BPM) or is there more to it?
    Thanks in advance
    Aaron

    This is a interesting solution. Did you get any answer?
    regards,
    Kristoffer

  • JDeveloper or Eclipse?

    Hello,
    What is the preferred tool for Oracle 10g? The BPEL dev guide seems to focus mostly on the Eclipse BPEL designer. Does this mean JDeveloper will eventually go away?
    Thanks.

    JDeveloper! It will not disappear, it is one of the core tools to develop applications not only BPEL but also ADF Faces, JSF, Jsp, Java, EJB, WebCenter, Portlets, ESB, Business Rules, XML and many more.

  • Help needed with Sun Java Studio Creator and EJB in a Portlet Project

    Hi
    I have created an web-application with JSF in Sun Java Studio Creator 2. The web application uses a lot of EJB's which acts as the dataProviders. In a typical jsp page i have more that one data providers(the EJB's) getting used. When i run the project everything opens up properly in the browser and the application seems to be fine.
    But when i create a JSP 168 Portlet project and do exactly the same thing for some reason the Apache Pluto(comes as the default Portlet Container with Studio Creator) conks off.
    Then i started going ahead step by step:
    1. First i created a portletpage and added only one dataProvider(EJB) and ran the project...It gets deployed properly in Pluto and the browser comes up and everything shows up fine.
    2. Just to re-confirm i did the same thing with another dataProvider(EJB). So still we have just 1 EJB in the portlet page. As expected it also worked fiine.
    3. Then when I added more that one dataProviders(EJBs) in the porlet page the Apache Pluto conks off(saying that Pluto is not available)
    I tried doing a lot of things but nothing works...Surprisingly the same thing works when u create a JSF web Application project but the same thing does not work when u create a JSR 168 JSF Portlet Project...
    Did anybody face the same problem..Is it a bug in the Studio Creator...Any help would be highly appreciated.

    Hi,
    There are a few discussion threads in the feedbackprograms portal for Creator 2 EA 2. The URL is:
    https://feedbackprograms.sun.com/login.html
    In the EA discussion forum you will find threads which discuss the concerned topic. In specific look for threads titled:
    # Deploying Portlets
    # Taking a JSC Portlet to Tomcat creates a Faces Mapping Error
    # Problem with Pluto when trying to deploy a portlet
    # Request: JSR-168 Portlet Project without JSF
    We kindly request you to post your further queries related to EA in the above mentioned forum.
    Cheers
    Giri

  • Java.rmi.RemoteException: CORBA TRANSIENT 0x49421071 - WPS portlet - EJB Jonas

    Hello,
    I'd like to use EJB session working in Jonas 4.3.4 (jdk 1.4) with a portlet in WPS 5.0 (jdk 1.3) throught iiop protol.
    I succeed to initialized the context, then to lookup the jndiName of the EJB but when I try to instanciate (eJBhome.create()) the EJB the following exception occur :
    java.rmi.RemoteException: CORBA TRANSIENT 0x49421071 No; nested exception is:
    org.omg.CORBA.TRANSIENT: GETCONNECTIONKEY_RETURNED_FALSE minor code: 1229066353 completed: No
    Does someone know the meaning of that corba exception ?
    Does someone already succeed to do such communication ?
    Do you know an other protocol that can help me ?
    Here is my code in the WPS portlet:
         Properties env = new Properties();
         env.put("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");
         env.put("java.naming.provider.url","iiop://XX.XXX.X.XX:YYYY");
         javax.naming.InitialContext initContext = new javax.naming.InitialContext(env);
         String JNDIName = "BestPracticeServiceHome";
              Object obj = initContext.lookup(JNDIName);
              BestPracticeServiceHome myHome = (BestPracticeServiceHome)PortableRemoteObject.narrow(obj,BestPracticeServiceHome.class);
         //Here occur the exception :
              BestPracticeService myService = myHome.create();
    Note: if I use the WPS 5.0 test environment in RAD 6 everything works.
    Thanks in advance,
    Best Regards,
    J�r�me

    Sorry, I forgot to say, the original SunONE 7 works fine
    without this error.

  • EJB Security Volation when access WSRP remote portlet

    I have set up a portal server using Workshop 8.1.3 and made it a producer of an remote portlet. I turn off the registration by setting it in wsrp-producer-config (<registration required="false" secure="false"/>). I have tested this remote portlet by accessing it from another Weblogic portal site.
    What I really want to do is to use this remote portlet on a MS sharepoint portal site (with WSRP Web Part Toolkit for sharepoint, http://www.gotdotnet.com/workspaces/workspace.aspx?id=2e3d8a57-ec9f-4d16-9a81-a395679d6392). I think I can successfully connected to the weblogic portal site, but I get a security volation error:
    Error: [EJB:010160]Security Violation: User: '' has insufficient permission to access EJB: type=, application=Demo, module=netuix.jar, ejb=PortalCustomizationManager, method=createSuccessor, methodInterface=Remote, signature={com.bea.netuix.application.manager.CustomizationContext,com.bea.netuix.application.identifier.DesktopDefinitionId,com.bea.netuix.application.identifier.PortletInstanceId}.
    Can any one tell me what I need to do to pass this security volation??
    Thank you very much.

    Thanks Subbu, this is what I am looking for, a way to get the requests and responses. I got the request/response from SOAP monitor. However I can't tell why it's not working (why the consumer doesn't have insufficient access). From the registration and service description, I can't tell anything wrong as they don't require any addition information for the consumer. I'll paste all the SOAP message between my consumer/producer and please let me know if you notice anything wrong. The SOAP messages are in order. Thanks so much for your help.
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <register xmlns="urn:oasis:names:tc:wsrp:v1:types">
    <consumerName>wsrpConsumer</consumerName>
    <consumerAgent>wsrpConsumer.1.1</consumerAgent>
    <methodGetSupported>false</methodGetSupported>
    </register>
    </soap:Body>
    </soap:Envelope>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
    <urn:registerResponse xmlns:urn="urn:oasis:names:tc:wsrp:v1:types">
    <urn:registrationHandle>28011</urn:registrationHandle>
    </urn:registerResponse>
    </soapenv:Body>
    </soapenv:Envelope>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <getServiceDescription xmlns="urn:oasis:names:tc:wsrp:v1:types">
    <registrationContext>
    <registrationHandle>28011</registrationHandle>
    </registrationContext>
    </getServiceDescription>
    </soap:Body>
    </soap:Envelope>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
    <urn:getServiceDescriptionResponse xmlns:urn="urn:oasis:names:tc:wsrp:v1:types"> <urn:requiresRegistration>true</urn:requiresRegistration>
    <urn:offeredPortlets> <urn:portletHandle>portlet_1</urn:portletHandle>
    <urn:markupTypes>
    <urn:mimeType>text/html</urn:mimeType>
    <urn:modes>wsrp:view</urn:modes>
    <urn:windowStates>wsrp:normal</urn:windowStates>
    <urn:locales>en</urn:locales>
    <urn:locales>en-US</urn:locales>
    </urn:markupTypes>
    <urn:groupID>WSRPDemo</urn:groupID>
    <urn:description xml:lang="en-US">
    <urn:value/>
    </urn:description>
    <urn:shortTitle xml:lang="en-US">
    <urn:value>pageFlowPortlet</urn:value>
    </urn:shortTitle>
    <urn:title xml:lang="en-US">
    <urn:value>pageFlowPortlet</urn:value>
    </urn:title>
    <urn:displayName xml:lang="en-US">
    <urn:value>pageFlowPortlet</urn:value>
    </urn:displayName>
    <urn:usesMethodGet>true</urn:usesMethodGet>
    <urn:templatesStoredInSession>true</urn:templatesStoredInSession> <urn:doesUrlTemplateProcessing>true</urn:doesUrlTemplateProcessing>
    </urn:offeredPortlets> <urn:requiresInitCookie>perGroup</urn:requiresInitCookie>
    <urn:registrationPropertyDescription/>
    <urn:locales>en</urn:locales>
    <urn:locales>en-US</urn:locales>
    </urn:getServiceDescriptionResponse>
    </soapenv:Body>
    </soapenv:Envelope>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <clonePortlet xmlns="urn:oasis:names:tc:wsrp:v1:types">
    <registrationContext>
    <registrationHandle>28011</registrationHandle>
    </registrationContext>
    <portletContext>
    <portletHandle>portlet_1</portletHandle>
    </portletContext>
    <userContext>
    <userContextKey>wsrpConsumer</userContextKey>
    </userContext>
    </clonePortlet>
    </soap:Body>
    </soap:Envelope>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
    <soapenv:Fault xmlns:urn="urn:oasis:names:tc:wsrp:v1:types">
    <faultcode>urn:OperationFailed</faultcode>
    <faultstring>[EJB:010160]Security Violation: User: '<anonymous>' has insufficient permission to access EJB: type=<ejb>, application=Demo, module=netuix.jar, ejb=PortalCustomizationManager, method=createSuccessor, methodInterface=Remote, signature={com.bea.netuix.application.manager.CustomizationContext,com.bea.netuix.application.identifier.DesktopDefinitionId,com.bea.netuix.application.identifier.PortletInstanceId}.</faultstring>
    <detail>
    <urn:OperationFailed/>
    <urn1:FaultDetail xmlns:urn1="urn:bea:wsrp:wlp:v1:types">
    <urn1:created>2004-09-27T11:37:09.648-04:00</urn1:created>
    <urn1:trace>com.bea.wsrp.faults.OperationFailedException: [EJB:010160]Security Violation: User: '<anonymous>' has insufficient permission to access EJB: type=<ejb>, application=Demo, module=netuix.jar, ejb=PortalCustomizationManager, method=createSuccessor, methodInterface=Remote, signature={com.bea.netuix.application.manager.CustomizationContext,com.bea.netuix.application.identifier.DesktopDefinitionId,com.bea.netuix.application.identifier.PortletInstanceId}.
         at com.bea.wsrp.producer.adapter.customization.PortalCustomizationServiceAdapter.clonePortlet(PortalCustomizationServiceAdapter.java:264)
         at com.bea.wsrp.producer.handlers.management.PortletManagementServiceHandler.doClonePortlet(PortletManagementServiceHandler.java:247)
         at com.bea.wsrp.producer.handlers.management.PortletManagementServiceHandler.doService(PortletManagementServiceHandler.java:152)
         at com.bea.wsrp.producer.handlers.AbstractServiceHandler.service(AbstractServiceHandler.java:92)
         at com.bea.wsrp.producer.WsrpServer.processServiceRequest(WsrpServer.java:283)
         at com.bea.wsrp.producer.WsrpServer.service(WsrpServer.java:168)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.wsrp.producer.adapter.pageflow.WsrpPageflowFilter.doFilter(WsrpPageflowFilter.java:73)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:351)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6458)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)</urn1:trace>
    </urn1:FaultDetail>
    </detail>
    </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>

  • HOWTO : Portletizing Faces/EJB/Toplink onto Webcenter. Gotchas&Fixes

    I thought I'd share some helpful links and tips.
    If you develop ADF Faces portlets by the book you'll run into a couple of problems when trying to deploy them on the Standalone OC4J, and a couple more when deploying to Webcenter.
    I followed the ADF tutorial here...
    http://www.oracle.com/technology/obe/ADF_tutorial_1013/10131/index.htm
    Chapter 11 contains info about some extra steps that you need to carry out in order to deploy onto Webcenter.
    That chapter instructs you to create a Deployment Project, within which you create your deployment profile. That works well while you are deploying just the Faces/EJB/Toplink application. When you come to 'portletize' your JSF pages however, the deployment procedure seems to skip the WSRP/WSDL packaging step. You should be seeing this in the deployment output page.
    "Creating WSDLs for the WSRP Application - WSDLs for the WSRP Application have been created"
    It works OK if you create the ear deployment profile within your View Controller project - which contains the portlet.xml file.
    See the Portletizing viewlet here
    http://www.oracle.com/technology/products/webcenter/owcs_10132_demos.html
    - they use the same deployment profile for both Faces and Portlet deployment - stored in the faces project.
    When editing the portlet.xml file DefaultPage.view variable, miss out the "faces" part of the path to your initial JSF page - or you will get this error:-
    "SEVERE: oracle.adf.model.portlet.binding.PortletBindingException"
    See this thread...
    Re: JSF Portlets Bug
    Even if you have successfully deployed to Standalone OC4J, when you deploy to Webcenter you will get an error about "oracle.wsrp" shared library. Follow the advice on this thread to sort things out ...
    Re: PDK with OC4J 10.1.3
    Having successfully run my portletized Faces/Toplink pages served from Webcenter within a client JSF app in Jdeveloper, my next step is to deploy and run that portlet consumer on Webcenter.
    So far I'm getting MDSRuntimeException when I access the expected url.
    I believe I should look here next..
    http://download-uk.oracle.com/docs/cd/B32110_01/webcenter.1013/b31074/jpsdg_deploy.htm#BIHFCJDD
    I'll add more to this thread as I make more progress.
    Good luck everyone!
    Donald.

    In the viewlet
    http://www.oracle.com/technology/products/webcenter/owcs_10132_demos.html
    the user is prompted for an 'MDS' location.
    I didn't get that prompt. This problem is mentioned on another thread - the answer was to make sure the deployment profile being used was specifically a WebCenter deployment profile. I'm sure I didn't see that option in my "New..." list - until I shut down and restarted Jdeveloper. Exact name of profile type is "WebCenter Application WAR".
    I have it now. Having been prompted for an MDS location (created an empty folder for this) when I deployed my portlet client to my standalone OC4J, at last the client app runs from standalone!
    I think I still need to carry out some instructions from here
    http://download-uk.oracle.com/docs/cd/B32110_01/webcenter.1013/b31074/jpsdg_deploy.htm#BIHFCJDD
    in order to create a 'targeted EAR file' for deployment to WebCenter itself.
    Message was edited by:
    Mechos

  • EJB Injection into JSR286 Portlet

    I'm currently facing an issue accessing an Stateless EJB from my JSR286 Weblogic 10.3.2 Portal Server. I have 2 ears: 1) PreferencesPortalEAR and 2)PreferencesEJBEar
    PreferencesPortalEAR - contains the web module with jsr286 portlet and the ejb client jar
    PreferencesEJBEar - contains the j2ee module with the ejb and ejb client jar
    When I attempt to access the EJB from the portlet doing a JNDI lookup it works fine but when I try to use DI to get a reference to the bean I get a NullPointerException.
    Here's the code:
    PreferenceBean EJB:
    * Session Bean implementation class PreferencesBean
    @Stateless(mappedName="ejb/Preference")
    public class PreferenceBean implements PreferenceLocal, PreferenceRemote {
         @Override
         public void createPreference(List<PreferenceEntity> preferences) {
              System.out.println("Created Preference");
         @Override
         public void deletePreference(List<PreferenceEntity> preferences) {
              System.out.println("Deleted Preference");
         @Override
         public List<PreferenceEntity> getPreference(PreferenceType prefType) {
              System.out.println("Get Preference");
              ArrayList<PreferenceEntity> peAL = new ArrayList<PreferenceEntity>();
              for (int i=0;i<10;i++) {
                   PreferenceEntity pe = new PreferenceEntity();
                   pe.setId(i);
                   pe.setCreateDate(new Date());
                   pe.setPreferenceName("prefName" + i);
                   pe.setPreferenceValue("prefValue"+i);
                   pe.setUserName("weblogic"+i);
                   peAL.add(pe);
              return peAL;
         @Override
         public void updatePreference(List<PreferenceEntity> preferences) {
              System.out.println("Update Preference");
    Here's the Portlet EJBPortlet:
    public class EJBPortlet extends GenericPortlet {
         @EJB(mappedName="ejb/Preference")
         private Preference preference;
         public void doView(RenderRequest request, RenderResponse response)
                   throws PortletException, IOException {
              response.setContentType("text/html");
    //          Context ctx = null;
    //          Preference preference = null;
    //          try {
    //               /** not needed when running locally **/
    //               Hashtable<String, String> env = new Hashtable<String, String>();
    //               env.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    //               env.put(Context.SECURITY_PRINCIPAL,"weblogic");
    //               env.put(Context.SECURITY_CREDENTIALS,"weblogic123");
    //               env.put(Context.PROVIDER_URL,"t3://localhost:7001");
    //               ctx = new InitialContext();
    //               preference = (Preference) ctx.lookup("ejb/Preference#com.mycompany.preferences.PreferenceRemote");
    //          } catch (Exception e) {
    //               e.printStackTrace();
              preference.createPreference(null);
              preference.deletePreference(null);
              ArrayList<PreferenceEntity> peAL = (ArrayList<PreferenceEntity>)preference.getPreference(PreferenceType.CATEGORY);
              for (PreferenceEntity pe : peAL) {
                   response.getWriter().write(pe.toString() + " ") ;
              response.getWriter().write("<p>Hello World!</p>");
    As previously mentioned, using InitialContext and JNDI lookup in the portlet works fine. When that code is commented and I use @EJB, I get a NullPointerException.
    Thanks for your help.

    We tried almost every permutation and combination, but it did not work without that dummy servlet.
    Then we had to look for a cleaner solution and we found one.
    We are now using spring injection, to get the EJB injection in our session managed bean. This way the code is extensible and cleaner.
    In future if you want something else(other than ejb lets say a web service), you will just change the Spring config file and it would't break anything.
    Edited by: desu on Mar 14, 2008 4:20 AM

  • Portlet EJB JavaCAPS

    Hello members
    Could somebody provide a feasibility of the following scenario and inform How-To (or provide links to How-To):
    Technical scenario:
    1. Portlet calls the Remote method (methodPA) of EJB
    2. methodPA calls methodJC1.
    3. methodJC1 will use JavaCAPS eWay(or any other method) to select records from a table.
    4. methodJC1 will format the received values and return data to methodPA.
    5. methodPA returns a formatted result to the portlet.
    I am stuck regarding the approach to be taken for step # 3.
    Any information will be very much appreciated.
    regards,
    Amitabh.

    1) If I design the app. as a servlet (everything
    deployed on the AS), how can I plug it into the
    Portal? (and get the info about the user from Access
    Manager API)
    So you have one app (the portlet webapp deployed in Sun Web Server) trying to access another app (ejb or web module) deployed in Sun appserver. You can implement your servelt as a web service endpoint.
    2) If I design the app. as EJB (business, database)
    and the presentation layer as a Portlet, how can I
    access the EJB from the portlet?
    Your portlet in web server can lookup the ejb deployed in appserver and invoke its business methods, if the two hosts are in the same intranet. Otherwise, you can implement your stateless session beans as web service endpoint.
    -cheng

  • How to use portlet:namespace in flex files?

    Hi,
    Iam developing a portlet whose UI is flex. using MXML and action script.
    Portlets require that their UI elements be unique to each portlet, so we use <portlet:namespace> for each ID, vars, functions etc..
    My question is how should i use this tag in my UI?
    Is this the right place to ask this question, if NO, the please direct me to the right forum.
    Thank you,

    application-param tag in weblogic-application.xml may be used to define parameters:
    webapp.encoding.default
    webapp.encoding.usevmdefault
    webapp.getrealpath.accept_context_path
    http://e-docs.bea.com/wls/docs81/programming/app_xml.html#1034632
    "Harshad Nanal" <[email protected]> wrote:
    >
    When we build an ear file , Weblogic-application.xml provides application-param
    tag?
    are they similar to env-entry in ejb-jar.xml.
    Can I use application-param tag to define a configurable params
    say myName and value as "Harshad"
    How do i read it in the application say a simple java class that is included
    in
    a jar inside the ear file.

  • Error while registering a WSRP v2 portlet in a Web Center Portal

    I am trying to register WSRP 2 portlet in a WebCenter Application. When I do it I am getting below error:
    #SEARCH_CRITERIA
    #     START_TIME: 2011-11-18T09:05:40.753+05:30
    #     END_TIME: 2011-11-18T10:05:40.753+05:30
    #     MESSAGE_TYPES:INCIDENT_ERROR, ERROR, UNKNOWN
    #SELECTED_TARGETS_LIST
    #     /Farm_base_domain/base_domain/WLS_WC/WCFridayTenClock_application1(V2.0):j2ee_application
    [2011-11-18T10:04:58.506+05:30] [WLS_WC] [ERROR] [] [oracle.wsm.policymanager.bean.util.PolicySetBuilder] [host: STN136B] [nwaddr: 127.0.0.1] [tid: [ACTIVE].ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] [ecid: 11d1def534ea1be0:1cae2c7:13388b3e331:-8000-000000000000be5f,0] [APP: WCFridayTenClock_application1#V2.0] The policy referenced by URI "oracle/no_authentication_client_policy" could not be retrieved as connection to Policy Manager cannot be established at "t3://STN136B:8890,STN136B:8889,STN136B:8888,STN136B:8895" due to invalid configuration or inactive state.[[
    oracle.wsm.policymanager.PolicyManagerException: WSM-02054 : Failure in looking up EJB component DocumentManager#oracle.wsm.policymanager.bean.ejb.IRemoteDocumentManager.
         at oracle.wsm.policymanager.BeanFactory.getJndiObj(BeanFactory.java:684)
         at oracle.wsm.policymanager.BeanFactory.lookupJndiObj(BeanFactory.java:910)
         at oracle.wsm.policymanager.BeanFactory.getDocumentManagerBeanEJB(BeanFactory.java:567)
         ... 79 more
    Caused by: oracle.fabric.common.PolicyEnforcementException: PolicySet Invalid: WSM-06162 PolicyReference The policy referenced by URI "oracle/no_authentication_client_policy" could not be retrieved as connection to Policy Manager cannot be established at "t3://STN136B:8890,STN136B:8889,STN136B:8888,STN136B:8895" due to invalid configuration or inactive state.
         at oracle.integration.platform.common.InterceptorChainImpl.createPolicyEnforcementException(InterceptorChainImpl.java:282)
    Any hints in solving the same would be helpful. Thanks in advance.

    Want to add some more findings to the above post.
    1) Found that "wsm-pm" was not running on one of the custom created application servers, used for deploying WebCenter Portlets and Application. This app was custom created as we are not supposed to deploy custom portlets to "WC_Collaboration", "WC_Portlet", "WC_Spaces" and "AdminServer".
    2) When I navigate to Oracle EM->base_domain->Web Services->Policy Sets, I get the below error
    Cannot locate policy manager query/update service. Policy manager service look up did not find a valid service, due to: Unable to connect to WS Policy Manager. <- oracle.wsm.policymanager.PolicyManagerException: WSM-02118 : The query service cannot be created. <- javax.naming.NameNotFoundException: While trying to lookup 'QueryService#oracle.wsm.policymanager.ejb.IStringQueryServiceRemote' didn't find subcontext 'QueryService#oracle'. Resolved '' [Root exception is javax.naming.NameNotFoundException: While trying to lookup 'QueryService#oracle.wsm.policymanager.ejb.IStringQueryServiceRemote' didn't find subcontext 'QueryService#oracle'. Resolved '']; remaining name 'QueryService#oracle/wsm/policymanager/ejb/IStringQueryServiceRemote'
    Any hints to solve the same would be helpful

  • Error while looking up EJB

    Hello,
    I'm trying to develop EJBs 2.0 for my company.
    creation and EJB deployment works fine, but when I try to look up my EJB, I get a NamingException.
    EAR is deployed on a Websphere Application Server 5.1, and I would like to communicate with my EJB in a portlet. This portlet is deployed on a Websphere portal Server 5.1. WPS ans WAS servers are on the same system.
    this is my JSP code :
    Context ctx = new InitialContext();
    Object obj = ctx.lookup("ejb/fr/test/ejbtest/EJBTest2Home");
    EJBTest2Home cacheHome = (EJBTest2Home)javax.rmi.PortableRemoteObject.narrow(obj, EJBTest2Home.class);I think my InitialContext is Websphere Portal Server so it cannot access to my EJB interface deployed on the Websphere Application Server 5.1
    Thx for your help !

    Hi,
    I guess u had made 2 mistakes.
    First one as to ur guess, u got the IntialContext wrong and secondly u should lookup the HomeObject using JNDI name instead of the fully qualified classpath.
    I am not so sure of websphere5.1, but for most of the servers have diff context for webcontainer and BeanContainer
    First u try to get it done changing the code to,
    ctx.lookup("ejb/fr/test/ejbtest/EJBTest2Home");
    to
    ctx.lookup("JNDIName");
    if it doesnt workout then do changes to the context as well
    Thanks and Regards
    Srikanth

  • Could not find portlet_xml_ref for portlet key 18011

    Hi,
    I just loaded BEA Portal 7.0.4 and created my domain. copied the portal app from another working machine and started the server. This is what I'm getting:
    <Dec 2, 2004 3:59:34 PM CST> <Warning> <EJB> <010004> <The EJB deployment named: abtServer_b2c_abtMail.jar was compiled by a different
    version of the WebLogic Server.>
    <Dec 2, 2004 3:59:35 PM CST> <Warning> <EJB> <010004> <The EJB deployment named: abtServer_b2c_abtECommerce.jar was compiled by a diffe
    rent version of the WebLogic Server.>
    Exception[com.bea.portal.PortalException: Could not find portlet_xml_ref for portlet key 18011]
    at com.bea.portal.manager.internal.persistence.jdbc.JdbcPortalDeletionHelper.removeEntitlementsForPortletForPortalPageP13n(Jdbc
    PortalDeletionHelper.java:2424)
    at com.bea.portal.manager.internal.persistence.jdbc.JdbcPortalDeletionHelper.removePortletFromPageP13n(JdbcPortalDeletionHelper
    .java:1542)
    at com.bea.portal.manager.internal.persistence.jdbc.JdbcPortalDeletionHelper.deleteRemovedItems(JdbcPortalDeletionHelper.java:9
    31)
    at com.bea.portal.manager.internal.persistence.jdbc.JdbcPortalPersistenceManager.deleteRemovedItems(JdbcPortalPersistenceManage
    r.java:805)
    at com.bea.portal.manager.internal.persistence.MainPersistenceManager.deleteRemovedItems(MainPersistenceManager.java:221)
    at com.bea.portal.manager.internal.PortalPersistenceManager.updatePortalModel(PortalPersistenceManager.java:349)
    at com.bea.portal.manager.internal.PortalPersistenceManager.createDataItem(PortalPersistenceManager.java:199)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.handleDataItemMessage(AbstractDataRepository.java:81
    4)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.onDataSyncMessage(AbstractDataRepository.java:990)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.executeMessage(AbstractDataRepository.java:252)
    at com.bea.p13n.management.data.message.internal.JvmCommunicationPipe.sendMessage(JvmCommunicationPipe.java:116)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.onSyncRequestResultMessage(AbstractDataRepository.ja
    va:1185)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.executeMessage(AbstractDataRepository.java:261)
    at com.bea.p13n.management.data.message.internal.JvmCommunicationPipe.sendMessage(JvmCommunicationPipe.java:116)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.onSyncRequestMessage(AbstractDataRepository.java:108
    6)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.executeMessage(AbstractDataRepository.java:257)
    at com.bea.p13n.management.data.message.internal.JvmCommunicationPipe.sendMessage(JvmCommunicationPipe.java:116)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.notifyDataRepository(AbstractDataRepository.java:706
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.onRefreshMessage(AbstractDataRepository.java:912)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.executeMessage(AbstractDataRepository.java:247)
    at com.bea.p13n.management.data.message.internal.JvmCommunicationPipe.sendMessage(JvmCommunicationPipe.java:116)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.sendRefreshMessageToThis(AbstractDataRepository.java
    :341)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.addNotifiedDataRepository(AbstractDataRepository.jav
    a:324)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.addNotifiedDataRepository(AbstractDataRepository.jav
    a:304)
    at com.bea.portal.manager.internal.DeploymentManager.initializePortal(DeploymentManager.java:142)
    at com.bea.portal.manager.internal.DeploymentManager.initialize(DeploymentManager.java:101)
    at com.bea.portal.manager.internal.PortalManagerDelegateImpl.<init>(PortalManagerDelegateImpl.java:91)
    at com.bea.portal.manager.PortalFactory.createPortalManagerDelegate(PortalFactory.java:248)
    at com.bea.portal.manager.ejb.internal.PortalManagerBean.ejbCreate(PortalManagerBean.java:147)
    at com.bea.portal.manager.ejb.internal.PortalManagerBean_w6xny9_Impl.ejbCreate(PortalManagerBean_w6xny9_Impl.java:133)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:151)
    at weblogic.ejb20.pool.Pool.createInitialBeans(Pool.java:188)
    at weblogic.ejb20.manager.StatelessManager.initializePool(StatelessManager.java:376)
    at weblogic.ejb20.deployer.EJBDeployer.initializePools(EJBDeployer.java:1507)
    at weblogic.ejb20.deployer.EJBDeployer.start(EJBDeployer.java:1392)
    at weblogic.ejb20.deployer.EJBModule.start(EJBModule.java:394)
    at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:1043)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1029)
    at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForAllApplications(SlaveDeployer.java:645)
    at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:394)
    at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:242)
    at weblogic.t3.srvr.ServerLifeCycleList.resume(ServerLifeCycleList.java:65)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:832)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:300)
    at weblogic.Server.main(Server.java:32)
    2004-12-02 16:00:03,046 [main] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ECommerceConstantsCache Size = 152
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.AbtCacheManagerBeanImpl_3xndmm_Impl - AbtCacheManagerBean crea
    ted.
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - INTERNET_PRICE = 10
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - STORE_PRICE = 20
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - INTERNET_PRICE = 10
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - STORE_PRICE = 20
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - INTERNET_PRICE = 10
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - STORE_PRICE = 20
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - INTERNET_PRICE = 10
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - STORE_PRICE = 20
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - INTERNET_PRICE = 10
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - STORE_PRICE = 20
    =============== Initializing Logger ======================
    <Dec 2, 2004 4:00:04 PM CST> <Notice> <Management> <141053> <Application Poller not started for production server.>
    2004-12-02 16:00:05,390 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:RelatedPrdItemTypesCache
    2004-12-02 16:00:05,421 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:RelatedPrdItemTypesCache Size = 8
    2004-12-02 16:00:05,421 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:DiscountTypeCache
    2004-12-02 16:00:05,421 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:DiscountTypeCache Size = 1
    2004-12-02 16:00:05,437 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ReturnTypeCache
    2004-12-02 16:00:05,453 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ReturnTypeCache Size = 3
    2004-12-02 16:00:05,453 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:AffiliateFileFormatCache
    2004-12-02 16:00:05,500 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:AffiliateFileFormatCache Size = 5
    2004-12-02 16:00:05,500 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ProductVisibilityCache
    2004-12-02 16:00:05,515 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ProductVisibilityCache Size = 4
    2004-12-02 16:00:05,515 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ManufacturerCache
    2004-12-02 16:00:05,718 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ManufacturerCache Size = 426
    2004-12-02 16:00:05,718 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:InventoryStatusCache
    2004-12-02 16:00:05,750 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:InventoryStatusCache Size = 9
    2004-12-02 16:00:05,750 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:CategoryTypeCache
    2004-12-02 16:00:05,765 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:CategoryTypeCache Size = 7
    2004-12-02 16:00:05,765 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:CustomerTypeCache
    2004-12-02 16:00:05,812 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:CustomerTypeCache Size = 3
    2004-12-02 16:00:05,812 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:CountryCache
    2004-12-02 16:00:05,843 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:CountryCache Size = 4
    2004-12-02 16:00:05,843 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:SeverityLevelCache
    2004-12-02 16:00:05,875 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:SeverityLevelCache Size = 3
    2004-12-02 16:00:05,875 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:PriceTypeCache
    2004-12-02 16:00:05,906 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:PriceTypeCache Size = 8
    2004-12-02 16:00:05,906 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ECommerceConstantsCache
    2004-12-02 16:00:05,921 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ECommerceConstantsCache Size = 15
    2
    2004-12-02 16:00:05,921 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:OccasionCache
    2004-12-02 16:00:05,953 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:OccasionCache Size = 4
    2004-12-02 16:00:05,953 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ExtranetCache
    2004-12-02 16:00:06,078 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ExtranetCache Size = 2
    2004-12-02 16:00:06,078 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:GersDataSyncStatusCache
    2004-12-02 16:00:06,109 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:GersDataSyncStatusCache Size = 3
    2004-12-02 16:00:06,109 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ProductTypeCache
    2004-12-02 16:00:06,140 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ProductTypeCache Size = 6
    2004-12-02 16:00:06,156 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ColorCache
    2004-12-02 16:00:06,171 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ColorCache Size = 9
    2004-12-02 16:00:06,171 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:StateCache
    2004-12-02 16:00:06,218 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:StateCache Size = 52
    2004-12-02 16:00:06,218 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:OrderStatusCache
    2004-12-02 16:00:06,234 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:OrderStatusCache Size = 12
    2004-12-02 16:00:06,234 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:CreditCardTypeCache
    2004-12-02 16:00:06,265 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:CreditCardTypeCache Size = 5
    2004-12-02 16:00:06,265 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:NewsletterFormatCache
    2004-12-02 16:00:06,296 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:NewsletterFormatCache Size = 4
    2004-12-02 16:00:06,328 [Thread-6] INFO com.abt.servlets.StartDataSyncThreads - startDataSyncThreads = false
    <Dec 2, 2004 4:00:12 PM CST> <Warning> <Security> <090088> <Private key keystore alias is not specified in SSL configuration of server
    abtServer, realm CompatibilityRealm. Assuming 6.x private key configuration. Loading the key from file.>
    <Dec 2, 2004 4:00:20 PM CST> <Warning> <Security> <090120> <Cannot find the file specified by SSL.TrustedCAFileName trusted-ca.pem on s
    erver abtServer.>
    <Dec 2, 2004 4:00:21 PM CST> <Notice> <WebLogicServer> <000354> <Thread "SSLListenThread.Default" listening on port 7502>
    <Dec 2, 2004 4:00:21 PM CST> <Notice> <WebLogicServer> <000354> <Thread "ListenThread.Default" listening on port 7501>
    <Dec 2, 2004 4:00:21 PM CST> <Notice> <WebLogicServer> <000329> <Started WebLogic Admin Server "abtServer" for domain "abtDomain" runni
    ng in Production Mode>
    <Dec 2, 2004 4:00:21 PM CST> <Notice> <WebLogicServer> <000365> <Server state changed to RUNNING>
    <Dec 2, 2004 4:00:21 PM CST> <Notice> <WebLogicServer> <000360> <Server started in RUNNING mode>
    Does anyone have any idea why this is happening?
    Any help is greatly appreciated.
    Thank You,
    Albert

    Hi,
    I just loaded BEA Portal 7.0.4 and created my domain. copied the portal app from another working machine and started the server. This is what I'm getting:
    <Dec 2, 2004 3:59:34 PM CST> <Warning> <EJB> <010004> <The EJB deployment named: abtServer_b2c_abtMail.jar was compiled by a different
    version of the WebLogic Server.>
    <Dec 2, 2004 3:59:35 PM CST> <Warning> <EJB> <010004> <The EJB deployment named: abtServer_b2c_abtECommerce.jar was compiled by a diffe
    rent version of the WebLogic Server.>
    Exception[com.bea.portal.PortalException: Could not find portlet_xml_ref for portlet key 18011]
    at com.bea.portal.manager.internal.persistence.jdbc.JdbcPortalDeletionHelper.removeEntitlementsForPortletForPortalPageP13n(Jdbc
    PortalDeletionHelper.java:2424)
    at com.bea.portal.manager.internal.persistence.jdbc.JdbcPortalDeletionHelper.removePortletFromPageP13n(JdbcPortalDeletionHelper
    .java:1542)
    at com.bea.portal.manager.internal.persistence.jdbc.JdbcPortalDeletionHelper.deleteRemovedItems(JdbcPortalDeletionHelper.java:9
    31)
    at com.bea.portal.manager.internal.persistence.jdbc.JdbcPortalPersistenceManager.deleteRemovedItems(JdbcPortalPersistenceManage
    r.java:805)
    at com.bea.portal.manager.internal.persistence.MainPersistenceManager.deleteRemovedItems(MainPersistenceManager.java:221)
    at com.bea.portal.manager.internal.PortalPersistenceManager.updatePortalModel(PortalPersistenceManager.java:349)
    at com.bea.portal.manager.internal.PortalPersistenceManager.createDataItem(PortalPersistenceManager.java:199)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.handleDataItemMessage(AbstractDataRepository.java:81
    4)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.onDataSyncMessage(AbstractDataRepository.java:990)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.executeMessage(AbstractDataRepository.java:252)
    at com.bea.p13n.management.data.message.internal.JvmCommunicationPipe.sendMessage(JvmCommunicationPipe.java:116)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.onSyncRequestResultMessage(AbstractDataRepository.ja
    va:1185)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.executeMessage(AbstractDataRepository.java:261)
    at com.bea.p13n.management.data.message.internal.JvmCommunicationPipe.sendMessage(JvmCommunicationPipe.java:116)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.onSyncRequestMessage(AbstractDataRepository.java:108
    6)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.executeMessage(AbstractDataRepository.java:257)
    at com.bea.p13n.management.data.message.internal.JvmCommunicationPipe.sendMessage(JvmCommunicationPipe.java:116)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.notifyDataRepository(AbstractDataRepository.java:706
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.onRefreshMessage(AbstractDataRepository.java:912)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.executeMessage(AbstractDataRepository.java:247)
    at com.bea.p13n.management.data.message.internal.JvmCommunicationPipe.sendMessage(JvmCommunicationPipe.java:116)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.sendRefreshMessageToThis(AbstractDataRepository.java
    :341)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.addNotifiedDataRepository(AbstractDataRepository.jav
    a:324)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.addNotifiedDataRepository(AbstractDataRepository.jav
    a:304)
    at com.bea.portal.manager.internal.DeploymentManager.initializePortal(DeploymentManager.java:142)
    at com.bea.portal.manager.internal.DeploymentManager.initialize(DeploymentManager.java:101)
    at com.bea.portal.manager.internal.PortalManagerDelegateImpl.<init>(PortalManagerDelegateImpl.java:91)
    at com.bea.portal.manager.PortalFactory.createPortalManagerDelegate(PortalFactory.java:248)
    at com.bea.portal.manager.ejb.internal.PortalManagerBean.ejbCreate(PortalManagerBean.java:147)
    at com.bea.portal.manager.ejb.internal.PortalManagerBean_w6xny9_Impl.ejbCreate(PortalManagerBean_w6xny9_Impl.java:133)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:151)
    at weblogic.ejb20.pool.Pool.createInitialBeans(Pool.java:188)
    at weblogic.ejb20.manager.StatelessManager.initializePool(StatelessManager.java:376)
    at weblogic.ejb20.deployer.EJBDeployer.initializePools(EJBDeployer.java:1507)
    at weblogic.ejb20.deployer.EJBDeployer.start(EJBDeployer.java:1392)
    at weblogic.ejb20.deployer.EJBModule.start(EJBModule.java:394)
    at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:1043)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1029)
    at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForAllApplications(SlaveDeployer.java:645)
    at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:394)
    at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:242)
    at weblogic.t3.srvr.ServerLifeCycleList.resume(ServerLifeCycleList.java:65)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:832)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:300)
    at weblogic.Server.main(Server.java:32)
    2004-12-02 16:00:03,046 [main] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ECommerceConstantsCache Size = 152
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.AbtCacheManagerBeanImpl_3xndmm_Impl - AbtCacheManagerBean crea
    ted.
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - INTERNET_PRICE = 10
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - STORE_PRICE = 20
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - INTERNET_PRICE = 10
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - STORE_PRICE = 20
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - INTERNET_PRICE = 10
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - STORE_PRICE = 20
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - INTERNET_PRICE = 10
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - STORE_PRICE = 20
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - INTERNET_PRICE = 10
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - STORE_PRICE = 20
    =============== Initializing Logger ======================
    <Dec 2, 2004 4:00:04 PM CST> <Notice> <Management> <141053> <Application Poller not started for production server.>
    2004-12-02 16:00:05,390 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:RelatedPrdItemTypesCache
    2004-12-02 16:00:05,421 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:RelatedPrdItemTypesCache Size = 8
    2004-12-02 16:00:05,421 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:DiscountTypeCache
    2004-12-02 16:00:05,421 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:DiscountTypeCache Size = 1
    2004-12-02 16:00:05,437 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ReturnTypeCache
    2004-12-02 16:00:05,453 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ReturnTypeCache Size = 3
    2004-12-02 16:00:05,453 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:AffiliateFileFormatCache
    2004-12-02 16:00:05,500 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:AffiliateFileFormatCache Size = 5
    2004-12-02 16:00:05,500 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ProductVisibilityCache
    2004-12-02 16:00:05,515 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ProductVisibilityCache Size = 4
    2004-12-02 16:00:05,515 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ManufacturerCache
    2004-12-02 16:00:05,718 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ManufacturerCache Size = 426
    2004-12-02 16:00:05,718 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:InventoryStatusCache
    2004-12-02 16:00:05,750 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:InventoryStatusCache Size = 9
    2004-12-02 16:00:05,750 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:CategoryTypeCache
    2004-12-02 16:00:05,765 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:CategoryTypeCache Size = 7
    2004-12-02 16:00:05,765 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:CustomerTypeCache
    2004-12-02 16:00:05,812 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:CustomerTypeCache Size = 3
    2004-12-02 16:00:05,812 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:CountryCache
    2004-12-02 16:00:05,843 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:CountryCache Size = 4
    2004-12-02 16:00:05,843 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:SeverityLevelCache
    2004-12-02 16:00:05,875 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:SeverityLevelCache Size = 3
    2004-12-02 16:00:05,875 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:PriceTypeCache
    2004-12-02 16:00:05,906 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:PriceTypeCache Size = 8
    2004-12-02 16:00:05,906 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ECommerceConstantsCache
    2004-12-02 16:00:05,921 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ECommerceConstantsCache Size = 15
    2
    2004-12-02 16:00:05,921 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:OccasionCache
    2004-12-02 16:00:05,953 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:OccasionCache Size = 4
    2004-12-02 16:00:05,953 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ExtranetCache
    2004-12-02 16:00:06,078 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ExtranetCache Size = 2
    2004-12-02 16:00:06,078 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:GersDataSyncStatusCache
    2004-12-02 16:00:06,109 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:GersDataSyncStatusCache Size = 3
    2004-12-02 16:00:06,109 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ProductTypeCache
    2004-12-02 16:00:06,140 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ProductTypeCache Size = 6
    2004-12-02 16:00:06,156 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ColorCache
    2004-12-02 16:00:06,171 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ColorCache Size = 9
    2004-12-02 16:00:06,171 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:StateCache
    2004-12-02 16:00:06,218 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:StateCache Size = 52
    2004-12-02 16:00:06,218 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:OrderStatusCache
    2004-12-02 16:00:06,234 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:OrderStatusCache Size = 12
    2004-12-02 16:00:06,234 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:CreditCardTypeCache
    2004-12-02 16:00:06,265 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:CreditCardTypeCache Size = 5
    2004-12-02 16:00:06,265 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:NewsletterFormatCache
    2004-12-02 16:00:06,296 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:NewsletterFormatCache Size = 4
    2004-12-02 16:00:06,328 [Thread-6] INFO com.abt.servlets.StartDataSyncThreads - startDataSyncThreads = false
    <Dec 2, 2004 4:00:12 PM CST> <Warning> <Security> <090088> <Private key keystore alias is not specified in SSL configuration of server
    abtServer, realm CompatibilityRealm. Assuming 6.x private key configuration. Loading the key from file.>
    <Dec 2, 2004 4:00:20 PM CST> <Warning> <Security> <090120> <Cannot find the file specified by SSL.TrustedCAFileName trusted-ca.pem on s
    erver abtServer.>
    <Dec 2, 2004 4:00:21 PM CST> <Notice> <WebLogicServer> <000354> <Thread "SSLListenThread.Default" listening on port 7502>
    <Dec 2, 2004 4:00:21 PM CST> <Notice> <WebLogicServer> <000354> <Thread "ListenThread.Default" listening on port 7501>
    <Dec 2, 2004 4:00:21 PM CST> <Notice> <WebLogicServer> <000329> <Started WebLogic Admin Server "abtServer" for domain "abtDomain" runni
    ng in Production Mode>
    <Dec 2, 2004 4:00:21 PM CST> <Notice> <WebLogicServer> <000365> <Server state changed to RUNNING>
    <Dec 2, 2004 4:00:21 PM CST> <Notice> <WebLogicServer> <000360> <Server started in RUNNING mode>
    Does anyone have any idea why this is happening?
    Any help is greatly appreciated.
    Thank You,
    Albert

Maybe you are looking for

  • Can send pictures to every contact except for one contact ?

    I checked the persons phone and there mms is on and my mms is working so what's the problem???

  • PickCanvas - How to use it...

    Now I've been working through all the Java3D tutorials etc. and it wants me to use PickObject, which has been since deprecated. So I should use PickCanvas. Unfortunately, PickCanvas doesn't have the generatePickRay(x, y) function that I would like. H

  • Safari's "intervention"

    I know a lot of people are having all kinds of problems with the new 3.0 Safari, but I haven't seen a thread about my particular problem, and I'm wondering if anyone can help or if I just have to wait and pray like so many others. My browser quits un

  • Should I shut down my iPoT?

    Normally I just hit the home button to put my iPoT to sleep. Is there any technical reason to fully sut it down once in a while (I don't mean on airplanes). Does doing a complete shut down once in a while provide any benefits for the OS? thx, g

  • Air Update installation error

    Received notice that update was available for Adobe Air. Downloaded update. While installing, I received this 'Application Install' error. Sorry, an error has occurred. This application cannot be installed because this installer has been misconfigure