ADF/EJB/toplink on websphere 6.0

Hi ,
I am trying to deploy a simple application ADF-JSF calling an EJB and using toplink to map to the database.
This works fine in the jdev env, however iam unable to deploy and run this in websphere.
So i developed a sample hello world jsf page in jdev and tried to deploy the same in the websphere.
I had followed the steps given in the 10.1.3. document on how to deploy to websphere.
Looks like I have issues similar to "http://forums.oracle.com/forums/thread.jspa?messageID=2312499&#2312499"
Does anyone have any idea ?
-TIA

Yes I did.
I changed the "war" class loading policy to "Application" and class loader policy to "server last".
This is the error i got
[2/8/08 0:35:26:422 EST] 00000032 ApplicationMg A WSVR0200I: Starting application: webapp1
[2/8/08 0:35:26:750 EST] 00000032 WebGroup A SRVE0169I: Loading Web Module: webapp1.war.
[2/8/08 0:35:26:812 EST] 00000032 jsp E com.ibm.ws.jsp.taglib.TldParser logParseErrorMessage Failed to parse Tag Library [META-INF/html_basic.tld]: JSPG0235E: The JSP container failed to load the TagExtraInfo class [com.sun.faces.taglib.FacesTagExtraInfo]
[2/8/08 0:35:26:812 EST] 00000032 jsp W com.ibm.ws.jsp.taglib.TagLibraryCache loadTldsFromJar jsp error failed to load tld in jar. uri = [WEB-INF/lib/jsf-impl.jar]
com.ibm.ws.jsp.JspCoreException: org.xml.sax.SAXException: JSPG0235E: The JSP container failed to load the TagExtraInfo class [com.sun.faces.taglib.FacesTagExtraInfo]
     at com.ibm.ws.jsp.taglib.TldParser.parseTLD(TldParser.java:256)
     at com.ibm.ws.jsp.taglib.TagLibraryCache.loadTldsFromJar(TagLibraryCache.java(Compiled Code))
     at com.ibm.ws.jsp.taglib.TagLibraryCache.loadLibJarMap(TagLibraryCache.java:185)
     at com.ibm.ws.jsp.taglib.TagLibraryCache.<init>(TagLibraryCache.java:90)
     at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.<init>(JSPExtensionProcessor.java:143)
     at com.ibm.ws.jsp.webcontainerext.JSPExtensionFactory.createExtensionProcessor(JSPExtensionFactory.java:96)
     at com.ibm.ws.webcontainer.webapp.WebApp.initializeExtensionProcessors(WebApp.java:1068)
     at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:363)
     at com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:114)
     at com.ibm.ws.webcontainer.VirtualHost.addWebApplication(VirtualHost.java:127)
     at com.ibm.ws.webcontainer.WebContainer.addWebApp(WebContainer.java:776)
     at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:729)
     at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:140)
     at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:360)
     at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1019)
     at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1028)
     at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:538)
     at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:724)
     at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:683)
     at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1161)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
[2/8/08 0:35:26:844 EST] 00000032 jsp E com.ibm.ws.jsp.taglib.TldParser logParseErrorMessage Failed to parse Tag Library [META-INF/jsf_core.tld]: JSPG0235E: The JSP container failed to load the TagExtraInfo class [com.sun.faces.taglib.FacesTagExtraInfo]
[2/8/08 0:35:26:844 EST] 00000032 jsp W com.ibm.ws.jsp.taglib.TagLibraryCache loadTldsFromJar jsp error failed to load tld in jar. uri = [WEB-INF/lib/jsf-impl.jar]
com.ibm.ws.jsp.JspCoreException: org.xml.sax.SAXException: JSPG0235E: The JSP container failed to load the TagExtraInfo class [com.sun.faces.taglib.FacesTagExtraInfo]
     at com.ibm.ws.jsp.taglib.TldParser.parseTLD(TldParser.java:256)
     at com.ibm.ws.jsp.taglib.TagLibraryCache.loadTldsFromJar(TagLibraryCache.java(Compiled Code))
my web.xml is listed below.
<?xml version = '1.0' encoding = 'windows-1252'?>
<web-app 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" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
<description>Empty web.xml file for Web Application</description>
<filter>
<filter-name>adfFaces</filter-name>
<filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>adfFaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>resources</servlet-name>
<servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>com.ibm.ws.webcontainer.jsp.servlet.JspServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>resources</servlet-name>
<url-pattern>/adf/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>35</session-timeout>
</session-config>
<mime-mapping>
<extension>html</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>txt</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
</web-app>
`

Similar Messages

  • Does anyone deploy 10.1.3 applications (adf & toplink) in websphere 6.0?

    does anyone deploy 10.1.3 applications (adf & toplink) in websphere 6.0?
    We are migrating the Jdev code to 10.1.3 and make some more development.
    do any of you deploy 10.1.3 in websphere 6.0?
    Thanks

    I am not using the ADF or Toplink.
    Just a simple welcome page. I followed the steps from metalink and downgrade
    Jdeveloper JDK 1.4.2 still doesn't work. any Idea?

  • 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

  • How to call EJB deployed on websphere from JSP running on Tomcat?

    I am trying to establish communication between two app servers. I have a sample EJB deployed on Websphere and wish to call its business methods from a JSP page which is running on Apache Tomcat server. (ie) Tomcat is client to websphere. Is it possible to do? If so, what are the client Jar files of websphere that I should make available to JSP page on Tomcat? Do I need to set any Jars in Tomcat environment variables? Lood forward for your immediate help. Thanks in advance

    Please see the thread
    http://forum.java.sun.com/thread.jspa?threadID=514536.
    Hope that helps..

  • Create-Edit-Delete page using ADF Faces & Toplink

    Hi,
    i want to build simple apps like this one : http://andrejusb.blogspot.com/2007/06/create-edit-and-delete-operations-in.html
    It's using ADF BC. How could it be done using ADF Toplink ?
    Thanks,
    Best Regards,
    Ricky

    Ricky,
    If you're using JDeveloper 10.1.3, take a look at the ADF learning center. Under the heading "Experienced Java Developers", on the right, you'll see a sample, tutorial and developer guide covering the ADF Faces/TopLink technology stack.
    Blaise

  • ADF BC & toplink license

    I understand that ADF BC is currently covered by the jdeveloper license, but toplink is licensed seperately.
    Will the persistance layer of ADF BC be replaced by toplink in the future, and what effect will that have on licenses?

    Morten,
    The TopLink runtime is licensed separately from ADF. If you are using the Oracle Application Server (Enterprise, Standard, or Java Edition) then TopLink is already included. Otherwise it is licensed separately under the same cost and terms as the Java Edition of the application server.
    TopLink is currently a persistence layer option within ADF as an alternative to BC. The ADF model layer is being enhanced to support non-persistence features of BC so that they can be used in conjunction with any persistence layer. Going forward you will have a rich ADF solution with any of the persistence solutions, including EJB 3.0 (which is implemented using TopLink).
    Doug

  • Error in EJB running on WebSphere Application Server v6

    Hi,
    I am getting the following exception when a transaction ends in
    Stateless Session EJB:
    [8/4/05 13:04:00:396 CDT] 0000004d LocalTranCoor W   WLTC0033W: Resource
    imssDS rolled back in cleanup of LocalTransactionContainment.
    [8/4/05 13:04:00:406 CDT] 0000004d LocalTranCoor W   WLTC0032W: One or more
    local transaction resources were rolled back during the cleanup of a
    LocalTransactionContainment.
    [8/4/05 13:04:00:456 CDT] 0000004d SystemOut     O Error en el servlet:
    CORBA TRANSACTION_ROLLEDBACK 0x0 No; nested exception is:
    org.omg.CORBA.TRANSACTION_ROLLEDBACK:
    javax.transaction.TransactionRolledbackException:  ; nested exception is:
    com.ibm.websphere.csi.CSITransactionRolledbackException:   vmcid: 0x0
    minor code: 0  completed: No
    [8/4/05 13:04:00:456 CDT] 0000004d SystemOut     O terminaTransaccion().
    Rollback
    [8/4/05 13:04:00:456 CDT] 0000004d SystemOut     O
    javax.servlet.ServletException: CORBA TRANSACTION_ROLLEDBACK 0x0 No; nested
    exception is:
    org.omg.CORBA.TRANSACTION_ROLLEDBACK:
    javax.transaction.TransactionRolledbackException:  ; nested exception is:
    com.ibm.websphere.csi.CSITransactionRolledbackException:   vmcid: 0x0
    minor code: 0  completed: No
    at HClinicaPPServlet.service(HClinicaPPServlet.java:597)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1
    212)
    at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.
    java:629)
    at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837)
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
    at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
    at
    com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)
    at
    com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(Ht
    tpInboundLink.java:421)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(Ht
    tpInboundLink.java:367)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.j
    ava:276)
    at
    com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscrimin
    aters(NewConnectionInitialReadCallback.java:201)
    at
    com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewCon
    nectionInitialReadCallback.java:103)
    at
    com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManage
    r.java:548)
    at
    com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java
    (Compiled Code))
    at
    com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java
    :934)
    at
    com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.jav
    a:1021)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)The EJB is being invoked from a servlet. The servlet calls three methods
    from the EJB, the first one initializes a database connection, the second
    one executes a query against a SQL Server database and the third method
    closes the connection. The exception occurs while calling the third method.
    The EJB was working fine in WebSphere Application Server 4.0, but we are
    helping this customer migrate to WebSphere Application Server 6, but this
    error arised.
    The EJB is defined as follows in the ejb-jar.xml deployment descriptor:
      <session id="HistClinicaPP">
       <ejb-name>HistClinicaPPEJB</ejb-name>
       <home>HistoriaClinica.HistClinicaPPHome</home>
       <remote>HistoriaClinica.HistClinicaPP</remote>
       <ejb-class>HistoriaClinica.HistClinicaPPBean</ejb-class>
       <session-type>Stateless</session-type>
       <transaction-type>Bean</transaction-type>
       <resource-ref id="ResourceRef_1123110667486">
        <description>
        </description>
        <res-ref-name>imssDS</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Application</res-auth>
        <res-sharing-scope>Shareable</res-sharing-scope>
       </resource-ref>
      </session>The ibm-ejb-jar-ext.xmi files contains the following:
      <ejbExtensions xmi:type="ejbext:SessionExtension"
    xmi:id="SessionExtension_1123174793374">
        <enterpriseBean xmi:type="ejb:Session"
    href="META-INF/ejb-jar.xml#HistClinicaPP"/>
        <beanCache xmi:id="BeanCache_1123175678367" activateAt="ONCE"/>
        <internationalization xmi:id="BeanInternationalization_1123175807173"
    invocationLocale="CALLER"/>
        <localTransaction xmi:id="LocalTransaction_1123174793374"
    boundary="BeanMethod" resolver="Application" unresolvedAction="Rollback"/>
      </ejbExtensions>I tried copying the configuration from WAS 4.0, the only piece of the 4.0.x
    descriptor missing in the ext file is <structure>, since I couldn't find a
    matching property in Rational Application Developer 6.0 for WAS 6.0. This is
    what the ibm-ejb-jar-ext.xmi in WAS 4.0 contains for this bean:
      <ejbExtensions xmi:type="ejbext:SessionExtension"
    xmi:id="SessionExtension_17" timeout="600">
        <enterpriseBean xmi:type="ejb:Session"
    href="META-INF/ejb-jar.xml#Session_9"/>
        <structure xmi:id="BeanStructure_17" inheritenceRoot="false"/>
        <beanCache xmi:id="BeanCache_17" activateAt="ONCE"/>
        <internationalization xmi:id="BeanInternationalization_17"
    invocationLocale="CALLER"/>
        <localTran xmi:id="LocalTran_17" boundary="BEAN_METHOD"
    unresolvedAction="ROLLBACK"/>
      </ejbExtensions>I am not an expert in EJBs, so I don't know how to correct this problem, any
    help would be appreciated.
    Thanks in advance,
    Jorge Gomez

    Hi,
    According to WAS 6 , every opened connection has to be commited (or rolledback) explicitly (didnt try autocommit) before closing. Even if all you have done with that connection is a SELECT Query.
    This has apparently solved the same problem I was getting. implement it and see whether it helps you.

  • Question for Steve Muench - ADF/EJB & Applets?

    Steve or anyone who can help - Do you have any sample demo that can demonstrate how to take advantage of ADF caching technology on the server, or an EJB solution integrated with an applet in a web application?
    It is kind of late in the game, because we are about to roll out an application in our company, nevertheless we are still researching a better way for handling tremendous amount of data by our applet. We are using F1 Formula engine (spreadsheet like tech) in our applet. But, we have severe performance problems, especially in our remote locations trying to load thousands of rows in the applet and on top of that do all kinds of formatting and Excel like functionality in the applet grid at run time.
    We are looking for a way to integrate ADF or EJB caching solution with our applet, so that we can cache the client data on the app server if possible, in order to improve performance.
    Any guidance, suggestion and help is very much appreciated.
    Thanks,
    [email protected]

    Hi,
    my recommendation would be to use JavaWeb Start with BC deployed as EJB to the Application Server. This way you have a real client installation and don't need to download the Applet classes all the time (and JClient, assuming you use JClient, comes with a couple of libraries slowing down the initial application startup). Using EJB on the middle tier allows you to use batch mode, which reduces the number of roundtrips between the client and the server. Note that the default implementation is synchronous, which is more chatty.
    Frank

  • Tutorial on ADF Faces/Toplink

    I'm in the process of evaluating JDev 10.1.3, with particular focus on ADF Faces. I'm not seeing some simple examples that combine the use of ADF Faces and Toplink, and my ignorant attempts to combine the two have resulted only in frustration. Has anybody posted something along those lines out there, or am I just blind?

    Thanks for the link i already read abour but i didn't find any code sample or tutorials for "query by example" and "hierachical query".
    These functionalities are great enhancement for entity bean projects that doesn't offer a way to solve such need easily, isn't.
    Something exists about this in the docs i didn't seen ?
    Here is the select connect by i want to reproduce
    select      level
         , substr( SYS_CONNECT_BY_PATH( parentlabel.label, '/' ) ,0,50 ) "Path"
         , flexitemparent_i
         , flexitemchild_i
         , substr( parentlabel.label, 0, 50 ) "parent.label"
         , substr( childlabel.label, 0, 50 ) "child.label"
    from      flextree
         , flextreenode
         , flexitem parent
         , flextext parentlabel
         , flexitem child
         , flextext childlabel
    where     flextree.flextree_i = 1
    and     flextree.flextree_i = flextreenode.flextree_i
    and     flextreenode.flexitemparent_i = parent.flexitem_i
    and     parent.flexitem_i = parentlabel.flexitem_i
    and     parentlabel.locale = ( select value from sys.v_$nls_parameters where parameter= 'NLS_LANGUAGE' )
    and     flextreenode.flexitemchild_i = child.flexitem_i
    and     child.flexitem_i = childlabel.flexitem_i
    and     childlabel.locale = ( select value from sys.v_$nls_parameters where parameter= 'NLS_LANGUAGE' )
    connect by prior flexitemchild_i = flexitemparent_i
    start with flextree.flexitem_i = flextreenode.flexitemparent_i
    order siblings by childlabel.label
    /

  • Adf ejb jpa persistance problem

    Hi everyone,
    I`m a newbie to adf technology.
    I was trying Build a Web Application with JDeveloper 11g Using EJB, JPA, and JavaServer Faces tutorial
    ([http://www.oracle.com/technology/obe/obe11jdev/11/ejb/ejb.html])
    I have a problem when I try to run it.
    It says;
    javax.ejb.EJBException: EJB Exception: ; nested exception is:
    Exception [EclipseLink-4002|http://forums.oracle.com/forums/] (Eclipse Persistence Services - 1.0.1 (Build 20080905)): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLSyntaxErrorException: ORA-00904: "EMAİL": ge&ccedil;ersiz belirleyici (invalid identifier)
    I thing it`s becouse I use a turkish operating system.
    I tried to change the encoding settings to windows1252 intead of windows 1254 but same problem occures.
    It makes the column EMAIL to EMAİL
    Could you please help me abpout this problem?

    Hi,
    can you print out the value that is received in the session facde to see where the conversion happens?
    Frank

  • Deploying ADF/JDeveloper portlets in WebSphere Portal

    I'd like to use ADF/JDeveloper to build my application, but my customer is already heavily invested on a WebSphere Portal deployment platform.  The JDeveloper/ADF documentation has extensive information on creating portlets in various ways, but they all seem focused exclusively on deploying in an Oracle platform.  I have tried both the "Standards-Based" as well as the "JSF Portlet Bridge".  I have tried to deploy the portlets in WebSphere Portal using both the generated WAR file, as well as by registering the WSRP producer.  None work.
    With the WAR file, WebSphere Portal seems to import the WAR file just fine, and I can add a portlet to a page, but the portlet always shows as "unavaiable"
    With the WSRP producer, I can get something to show in the page, but the functionality within the portlet doesn't seem to work.
    I've searched extensively, but cannot locate any documentation or use cases for deploying portlets from JDeveloper into WebSphere Portal.  Does anyone have any thoughts?

    Dvohra21, again, I apreciate the effort, but I think you're missing the fundamental question.
    You've given me two types of articles/links.  Some are generic WebSphere Portal documentation about deploying a portlet from a WAR file.  Others are Oracle articles about who to generate portlets in JDeveloper, with examples deploying in Oracle/WebLogic servers.   Unfortunately I don't have a problem with either of those.
    I CAN deploy a portlet WAR file in WebSphere Portal, and sucessfully add it to a Portal page.  I have done that with multiple WAR files generated from Rational Application Developer.
    I CAN produce a WAR file from JDeveloper, following the instructions in the same resources you included, plus a few others.
    The problem is, the WAR file from JDeveloper, does not successfully run on WebSphere Portal.  I create a simple Hello World portlet in JDeveloper, and I can generate a WAR file from it, and seemingly deploy to WebSphere Portal.   However when I add it to a Portal page, it always displays only a blank box with the text "This portlet is unavailable".  This is in the same exact portal page, where the portlet created with Rational Application Developer shows up just fine right along side it.
    Bottomline is, although there is a great deal of information an demos about generating portlets from JDeveloper within an Oracle environment, I could not find a SINGLE ONE, that goes through an end to end scenario where it is deployed in WebSphere Portal.  Nothing in this forum, nothing in Oracle docs, and nothing I can find on a Google search.

  • Unable to find Local Ejb home in websphere 6.0

    Its really anoying as am unable to guess . I am invoking an EJB locally using code as below . The Ejb works fine while testing with UniversalTestClient However when i try to invoke it from my Client it gives jndi error.
    Am using RAD 6.0 IDE and WebSphere6.0 and Ejb 2.1
    I tried calling ejb providing different jndi names as below but it doesn't work .
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
    env.put (Context.PROVIDER_URL, "corbaloc:iiop:localhost:2809/");
    try{
    InitialContext icontext = new InitialContext(env);
    // Object result = icontext.lookup("local:ejb/DefaultSession");
    // Object result = icontext.lookup("D7VRC491Node01Cell/nodes/D7VRC491Node01/servers/server1/TestEj b/ejb/com/test/ejbs/DefaultSessionLocalHome");
    // Object result = icontext.lookup("local:ejb/ejb/com/test/ejbs/DefaultSessionLocalHome");
    Object result = icontext.lookup("ejb/com/dhsmv/ejbs/DefaultSessionLocalHome");
    DefaultSessionLocalHome localHome = (DefaultSessionLocalHome) result;
    DefaultSessionLocal localSession = (DefaultSessionLocal) localHome.create();
    String strTest = localSession.welcome(" Hello World ");
    System.out.println(" Retrieved ejb method ..." + strTest);
    I get an exception that first component of jndi name is not available. Please suggets where is the problem hiding. Is there any thing wrong with jndi name .
    Thanks.

    The CORBA error could suggest your bootstrap port is already being used by another process. Try changing it to something else.
    Assuming your webconsole works - its something like this (although off the top of my head can't be sure...)
    Select servers from the menu on the left, then select, your server.
    From the newly loaded page, on the right hand side, you should see a link called "Ports". Modify your bootstrap port, usual value is 2809.
    How does that work?

  • Oracle 11g R1 ADF faces app on Websphere 8

    So I installed websphere 8 on a linux machine. It worked fine.
    I am now trying to install the ADF Libraries 11.1.1.2 onto websphere. I downloaded just the framework from the oracle website. There is no Jdeveloper on the server.
    Anyways Websphere 8 is installed as root
    where as the libraries were downloaded and unziped as Oracle.
    So before signing in as oracle I do
    xhost +
    su oracle
    now I have ran the installer from the Disk1 location and Disk1/linux64 location as well---but I get an error
    [ERROR]: Installer has encountered an interenal Error. Contact Oracle support with details.
    [EXCEPTION]: java.lang.reflect.InvocationTargetException
    The log states
    [2012-03-29T13:52:53.844-06:00] [as] [TRACE:16] [] [oracle.as.install.engine] [tid: 0] [ecid: 0000JPW17ut5YbT5yBP5iW1FTBqH000000,0] [SRC_METHOD: startOperation] [SRC_CLASS: oracle.as.install.engine.InstallEngine] THROW[[
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at oracle.as.install.engine.InstallEngine.launchModule(InstallEngine.java:508)
    at oracle.as.install.engine.InstallEngine.processAndLaunchModules(InstallEngine.java:462)
    at oracle.as.install.engine.InstallEngine.startOperation(InstallEngine.java:415)
    at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstaller.java:446)
    Caused by: java.lang.UnsatisfiedLinkError: oraInstaller (Not found in java.library.path)
    at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1053)
    at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:1017)
    at java.lang.System.loadLibrary(System.java:474)
    at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.loadNativeLib(OiipuUnixOps.java:420)
    at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.<clinit>(OiipuUnixOps.java:125)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:228)
    at oracle.as.install.engine.modules.statistics.util.SysInfo.getAvailableMemory(SysInfo.java:161)
    at oracle.as.install.engine.modules.statistics.element.AvailableMemoryElement.<init>(AvailableMemoryElement.java:39)
    at oracle.as.install.engine.modules.statistics.standard.StandardElementLocator.loadElements(StandardElementLocator.java:63)
    at oracle.as.install.engine.modules.statistics.boot.ProfilerInitializer.initializeProfile(ProfilerInitializer.java:82)
    at oracle.as.install.engine.modules.statistics.Statistics.launchModule(Statistics.java:284)
    ... 8 more
    Any help would be greatly appreciated
    Edited by: Aj05 on Mar 30, 2012 7:58 AM

    I will look into that.
    One more question that I wanted to ask was: When I am instaling the IBM Websphere should I be installing that under the Oracle user or Root. Since the Oracle Universal Installer will only work under Oracle.
    I was thinking Oracle?
    Thanks

  • Problem running Java client of EJB deployed on WebSphere

    Hi,
    I am using websphere studio 5.1.2 with fix pack 3. I have a sample Stateless Session Bean (EJB) deployed and running on websphere.
    I wrote a small Java client program as below.
    import java.util.Hashtable;
    import HelloJavaHome;
    import HelloJava;
    import javax.naming.InitialContext;
    import javax.naming.Context;
    import javax.ejb.EJBHome;
    import javax.ejb.EJBObject;
    public class RemoteConn {
    public static void main(String[] ar) throws Exception{
    String greeting = "";
    try{
    Hashtable env = new Hashtable();
    //env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
    //env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.ejs.ns.jndi.CNInitialContextFactory");
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.ws.naming.util.WsnInitCtxFactory");
    //env.put(Context.PROVIDER_URL, "corbaloc:iiop:myhost.mycompany.com:2809/NameServiceCellPersistentRoot");
    env.put(Context.PROVIDER_URL, "iiop://localhost:2809");
    System.out.println("Before creating context ");
    InitialContext initContext = new InitialContext(env);
    System.out.println("Before looking up HelloJavaHome.");
    //Object obj = initContext.lookup("java:comp/env/ejb/HelloJavaHome");
    Object obj = initContext.lookup("ejb/HelloJavaHome");
    System.out.println("After lookup javahome.");
    HelloJavaHome home = (HelloJavaHome) javax.rmi.PortableRemoteObject.narrow(obj, HelloJavaHome.class);
    HelloJava remote = home.create();
    greeting = remote.getGreeting("John");
    catch(Exception e){
    e.printStackTrace();
    System.out.println("Greeting::"+ greeting);
    I did not have any problem if I write and run this client from Websphere studio environment..
    However its giving lot of compilation and runtime errors when I tried to run from command line.
    I could eliminated compilation errors by setting the below jar files in the classpath.
    testclient.jar; (client jar of my EJB)
    j2ee.jar;
    naming.jar;ras.jar;
    wsexception.jar;
    bootstrap.jar;
    namingclient.jar;
    websphere.jar;server.jar;
    ejbcontainer.jar;
    ecutils.jar;
    Now it is throwing runtime error after the statement, "Before looking up HelloJavaHome.", has printed. Here is the stack trace of exception ..
    Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.CORBA.iiop.GlobalORBFactory
    at com.ibm.ejs.oa.EJSORBImpl.class$(EJSORBImpl.java:44)
    at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:195)
    at com.ibm.ejs.oa.EJSClientORBImpl.(EJSClientORBImpl.java:93)
    at com.ibm.ejs.oa.EJSClientORBImpl.(EJSClientORBImpl.java:65)
    at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:385)
    at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:284)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:369)
    at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:112)
    at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:422)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:143)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at RemoteEJBConn.main(RemoteEJBConn.java:38)
    I appreciate if sombody could help me ASAP fixing this problem.
    Thanks in advance.

    Try using the IBM JVM (theres one shipped with WebSphere in websphere_home\AppServer\java
    Also include idl.jar and ffdc.jar on the classpath

  • Access ejb in another websphere

    I have installed webpshere in 2 machines. How can I access ejb in the second websphere from servlet in the first websphere?
    Thanks in advance

    You would have to read up on JNDI to get the InitialContext from the firstWebsphere to get beans from another. Another solution would be using SOAP or JMS to relay information from one to another.
    Dan

Maybe you are looking for

  • Computer crashed during update and now I can't access iTunes Store!

    Hi! I was going to update my iTunes to the latest version, but my computer crashed halfway through. Ever since then, I can't access the iTunes store! I don't know whether trying to update it again would fix the issue? Also, when choosing to update it

  • Oracle SQL Data Modeler -COMPARE/MERGE

    Hi all, I am trying to compare/merge or just trying to merge a relation model with another in Oracle SQL Developer DATA MODELER. Scenario: I have tried to import from data dictionary the hr schema into 3 parts. Table employee is alone imported in one

  • SAPbouiCOM.DBDataSource.Query and Date fields

    When I try to add a Condition that uses an Alias for a database field of type datetime, the Query method crashes. Is there a specific Date format that I am supposed to use? I am currently using the SAP date format and I also tried the database date f

  • Update item in SharePoint 2010 list when a entry made in SQL server

    Hi there, I have four lists on a SharePoint 2010 site. There is a column - Equipment Name - in each of the lists. I want only this column to be updated in all the lists, when a new entry is made in SQL server. I referred http://oszakiewski.net/eric/c

  • Shared Services Security information not updating in Essbase

    Hi, I have created few users in Shared Services and performed the sync operation. Created users are not reflecting in Essbase server. why? Also tried by externalizing the users... performed sync from shared services and refreshed the shared security