1 Reply Latest reply on Sep 3, 2012 8:20 AM by nikf

    Need help in running contact portlet from webcenter (weblogic) portlet container.

    seshan.k

      Hi,

      I have deployed  JBOSS contact collab portlet (http://anonsvn.jboss.org/repos/portletswap/portlets/bundles/ContactPortlet.zip) to webcenter (weblogic) portlet container, but when portlet is access we see following exception

      Caused by: org.hibernate.HibernateException: Could not find datasource

                at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:56)

                at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)

                at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)

                at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:366)

                at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:60)

                at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1823)

                at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1143)

                at org.jboss.portlet.contacts.ContactsPortlet.init(Unknown Source)

                at javax.portlet.GenericPortlet.init(GenericPortlet.java:107)

                at com.bea.portlet.container.PortletStub.getPortletInstance(PortletStub.java:1112)

                ... 55 more

      Caused by: javax.naming.NameNotFoundException: While trying to look up /PortalDS in /app/webapp/contact/25543236.; remaining name '/PortalDS'

                at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)

                at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:144)

                at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)

                at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:411)

                at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper.java:45)

                at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:130)

                at javax.naming.InitialContext.lookup(InitialContext.java:392)

                at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)

       

      I would higly appreciate any help in resolving this. I understand that it is not able to locate PortalDS. But i have following questions.

       

      1) how do i create this data source.

      2) What DB table should i create in oracle DB that i am going to use.

      3) How to make this work with oracle db.

       

      Thanks in advance,

      Seshan K.