Fórum

DB connection for my portlet in Liferay 6.2

Shashi D, modificado 9 Anos atrás.

DB connection for my portlet in Liferay 6.2

New Member Postagens: 19 Data de Entrada: 07/07/14 Postagens Recentes
Hi,

I have deploying my ABC portlet in Liferay 6.2 version. I used to connect to DB through portlat-ext.properties file (webapps /ROOT/WEB-INF/classes/portal-ext.properties with the key like obs.environment.corbaloc=corbaname) in Liferay 5.2 version. But in Liferay 6.2 i dont find portal-ext file . How do i connect to DB. Any hints about this?

Regards,
Shashi
thumbnail
David H Nebinger, modificado 9 Anos atrás.

RE: DB connection for my portlet in Liferay 6.2

Liferay Legend Postagens: 14915 Data de Entrada: 02/09/06 Postagens Recentes
portal-ext.properties still exists, but it should be in $LIFERAY_HOME, which is the same place you find the deploy folder, the data folder, ...

Note that Liferay itself does not come with a portal-ext.properties file, so you won't find an initial file for you to edit.
Shashi D, modificado 9 Anos atrás.

RE: DB connection for my portlet in Liferay 6.2

New Member Postagens: 19 Data de Entrada: 07/07/14 Postagens Recentes
in addition to the above thread , i have run some installation scripts through ahead-setup and db is connected through portal-ext file.

Thanks,
Regards,
Shashi D, modificado 9 Anos atrás.

RE: DB connection for my portlet in Liferay 6.2

New Member Postagens: 19 Data de Entrada: 07/07/14 Postagens Recentes
I have downloaded liferay-portal-6.2-ce-ga2 not ee edition. And placed portal-ext.properties file under ..tomcat-7.0.42\webapps\ROOT\WEB-INF\classes And my portal-local.properties file is in conf folder where data,deploy folders are there. I ran ahead 5.2.9.1 installation scripts and got wars under deploy folder after running the scripts successfully. But when i run the tomcat server, i am getting below error

Sep 24, 2014 11:51:45 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\jdk1.7.0_51\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windo
ogram Files (x86)\IXOS\bin;C:\Program Files (x86)\IBM\Informix\Client-SDK\bin;C:\Program Files (x86)\ibm\gsk7\bin;C:\Program Files (x86)\ibm\gsk7\lib;C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin;C:\Program Files
Sep 24, 2014 11:51:45 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'hostConfigClass' to 'de.silpion.ahead.tomcat.RootFirstHostConfig' did not find a matching property.
Sep 24, 2014 11:51:45 AM org.apache.catalina.realm.JAASRealm setUseContextClassLoader
INFO: Setting useContextClassLoader = false
Sep 24, 2014 11:51:45 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Sep 24, 2014 11:51:45 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Sep 24, 2014 11:51:45 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 481 ms
Sep 24, 2014 11:51:45 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Sep 24, 2014 11:51:45 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.42
Sep 24, 2014 11:51:46 AM org.apache.catalina.realm.JAASRealm parseClassNames
SEVERE: Class com.liferay.portal.security.jaas.PortalPrincipal not found! Class not added.
Sep 24, 2014 11:51:46 AM org.apache.catalina.realm.JAASRealm parseClassNames
SEVERE: Class com.liferay.portal.security.jaas.PortalRole not found! Class not added.
Custom InstancePool is in place
Sep 24, 2014 11:51:55 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Sep 24, 2014 11:51:55 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [] startup failed due to previous errors
Sep 24, 2014 11:51:55 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\DB2\liferay-portal-6.2-ce-ga2\tomcat-7.0.42\webapps\ObsPortlet
Sep 24, 2014 11:51:59 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class org.apache.catalina.deploy.ApplicationListener@14acbd9
java.lang.ClassNotFoundException: com.liferay.portal.kernel.servlet.PluginContextListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:527)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:509)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:137)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4854)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)

please let me know whether i am missing anything or doing wrong.

Regards,
Shashi
thumbnail
David H Nebinger, modificado 9 Anos atrás.

RE: DB connection for my portlet in Liferay 6.2

Liferay Legend Postagens: 14915 Data de Entrada: 02/09/06 Postagens Recentes
Did you manually deploy the war file or use a bundle?
thumbnail
Andew Jardine, modificado 9 Anos atrás.

RE: DB connection for my portlet in Liferay 6.2

Liferay Legend Postagens: 2416 Data de Entrada: 22/12/10 Postagens Recentes
What's inside your portal-local.properties file? Are you sure that it is being loaded at startup? That isn't one of the names that Liferay normally looks for so you would have to pass an argument to the JVM to tell it to load it.
thumbnail
David H Nebinger, modificado 9 Anos atrás.

RE: DB connection for my portlet in Liferay 6.2

Liferay Legend Postagens: 14915 Data de Entrada: 02/09/06 Postagens Recentes
Well, it could also be referenced in portal-ext.properties as an "include-and-override" line... But those class not found guys are more indicative of a missing portal-service.jar than it is of some property file name...
thumbnail
Kyle Joseph Stiemann, modificado 9 Anos atrás.

Moved.

Liferay Master Postagens: 760 Data de Entrada: 14/01/13 Postagens Recentes
Moved to the Liferay Portal - English - 1. Installation / Deployment / Setup section.