Fórumok
Deploy problem after container change (JBOSS for TOMCAT)
Andrey Maurício, módosítva 8 év-val korábban
Deploy problem after container change (JBOSS for TOMCAT)
New Member Bejegyzések: 12 Csatlakozás dátuma: 2015.04.09. Legújabb bejegyzések
Hi,
I dev a portlet using JSF and JBOSS and all running perfect. After a time my team decide to change the container to TOMCAT and my problem begins. My portlet don't deploy anymore and just show me this message during deploy try:
I try to resolve the problem:
Downgrading tomcat to version 7
Downgrading liferay to 6.2 GA3 and GA2
Removing any managed bean calls
Removing all JBOSS configuration from portlet (pom libs and web.xml)
Removing tomcat listeners for MemoryLeak prevention
Help? Thanks :[
I dev a portlet using JSF and JBOSS and all running perfect. After a time my team decide to change the container to TOMCAT and my problem begins. My portlet don't deploy anymore and just show me this message during deploy try:
12:07:35,599 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:204] Processing my-portlet-1.0.war
12:07:35,602 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:79] Copying portlets for /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/deploy/my-portlet-1.0.war
12:07:35,624 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:859] Deploying my-portlet-1.0.war
Expanding: /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/deploy/my-portlet-1.0.war into /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/20150925120735727
Copying 1 file to /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/20150925120735727/WEB-INF/classes
Copying 1 file to /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/20150925120735727/WEB-INF/classes
Copying 1 file to /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/20150925120735727/WEB-INF/jsp
12:07:36,144 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:2383] Modifying Servlet 2.5 /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/20150925120735727/WEB-INF/web.xml
Copying 32 files to /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/webapps/my-portlet-1.0
Copying 1 file to /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/webapps/my-portlet-1.0
Deleting directory /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/20150925120735727
12:07:36,242 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:91] Portlets for /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/deploy/my-portlet-1.0.war copied successfully. Deployment will start in a few seconds.
Set 25, 2015 12:07:42 PM org.apache.catalina.startup.HostConfig deleteRedeployResources
INFORMAÇÕES: Undeploying context [/my-portlet-1.0]
Set 25, 2015 12:07:42 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/my-portlet-1.0] created a ThreadLocal with key of type [com.liferay.portal.kernel.util.CentralizedThreadLocal.ThreadLocalMapThreadLocal] (value [com.liferay.portal.kernel.util.CentralizedThreadLocal$ThreadLocalMapThreadLocal@1848e169]) and a value of type [com.liferay.portal.kernel.util.CentralizedThreadLocal.ThreadLocalMap] (value [com.liferay.portal.kernel.util.CentralizedThreadLocal$ThreadLocalMap@58c6c0f3]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Set 25, 2015 12:07:42 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/my-portlet-1.0] created a ThreadLocal with key of type [com.liferay.portal.kernel.util.CentralizedThreadLocal.ThreadLocalMapThreadLocal] (value [com.liferay.portal.kernel.util.CentralizedThreadLocal$ThreadLocalMapThreadLocal@60a5bf0d]) and a value of type [com.liferay.portal.kernel.util.CentralizedThreadLocal.ThreadLocalMap] (value [com.liferay.portal.kernel.util.CentralizedThreadLocal$ThreadLocalMap@21a2200d]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Set 25, 2015 12:07:43 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMAÇÕES: Deploying web application directory /portal/liferay-core/environment 6.2-ga2/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/webapps/my-portlet-1.0
Set 25, 2015 12:07:43 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFORMAÇÕES: validateJarFile(/portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/2-my-portlet-1.0/WEB-INF/lib/servlet-api-2.4.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
12:07:45,237 INFO [StartupListener:50] Context initialized for contextPath=[/my-portlet-1.0]
12:07:45,247 INFO [StartupListener:77] Copied input-editor.jsp from LiferayFaces JAR to context path file=[/portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/2-my-portlet-1.0/resources/liferay-ui/jsp/input-editor.jsp]
12:07:45,247 INFO [BridgeSessionListener:96] Context initialized for contextPath=[/my-portlet-1.0]
I try to resolve the problem:
Downgrading tomcat to version 7
Downgrading liferay to 6.2 GA3 and GA2
Removing any managed bean calls
Removing all JBOSS configuration from portlet (pom libs and web.xml)
Removing tomcat listeners for MemoryLeak prevention
<listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
<listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
Help? Thanks :[
Juan Gonzalez, módosítva 8 év-val korábban
RE: Deploy problem after container change (JBOSS for TOMCAT)
Liferay Legend Bejegyzések: 3089 Csatlakozás dátuma: 2008.10.28. Legújabb bejegyzések
Hi Andrew,
I think you posted just the less interesting part from the log .
Could you post the error log before that "Error listener start"?
Thanks!
I think you posted just the less interesting part from the log .
Could you post the error log before that "Error listener start"?
Thanks!
Andrey Maurício, módosítva 8 év-val korábban
RE: Deploy problem after container change (JBOSS for TOMCAT)
New Member Bejegyzések: 12 Csatlakozás dátuma: 2015.04.09. Legújabb bejegyzésekJuan Gonzalez:
Hi Andrew,
I think you posted just the less interesting part from the log .
Could you post the error log before that "Error listener start"?
Thanks!
The main post has been updated with all deploy log! TY!
Juan Gonzalez, módosítva 8 év-val korábban
RE: Deploy problem after container change (JBOSS for TOMCAT)
Liferay Legend Bejegyzések: 3089 Csatlakozás dátuma: 2008.10.28. Legújabb bejegyzések
Thanks Andrey,
seems you are adding jar libraries that shouldn't be there.
Can you answer these questions?:
seems you are adding jar libraries that shouldn't be there.
Can you answer these questions?:
- How did you create that WAR? Using default SDK or using Maven?
- Can you post here the jar libraries inside WEB-INF/lib from your deployed (and exploded) WAR?
Andrey Maurício, módosítva 8 év-val korábban
RE: Deploy problem after container change (JBOSS for TOMCAT)
New Member Bejegyzések: 12 Csatlakozás dátuma: 2015.04.09. Legújabb bejegyzések
Juan,
I creating my .war using maven. Inside my WEB-INF/lib we have:
When i remove servlet-api-2.4.jar from exploded war, compress and try a new deploy, works! But, obviously we need to use servlet-api. :[
I creating my .war using maven. Inside my WEB-INF/lib we have:
- /WEB-INF/lib/gson-2.3.1.jar
- /WEB-INF/lib/jodd-core-3.6.3.jar
- /WEB-INF/lib/jodd-http-3.6.3.jar
- /WEB-INF/lib/jodd-upload-3.6.3.jar
- /WEB-INF/lib/jsf-api-2.1.29.jar
- /WEB-INF/lib/jsf-impl-2.1.29.jar
- /WEB-INF/lib/json-simple-1.1.jar
- /WEB-INF/lib/jsp-api-2.0.jar
- /WEB-INF/lib/jsr250-api-1.0.jar
- /WEB-INF/lib/jstl-1.2.jar
- /WEB-INF/lib/liferay-faces-alloy-3.2.4-ga5.jar
- /WEB-INF/lib/liferay-faces-bridge-api-3.2.4-ga5.jar
- /WEB-INF/lib/liferay-faces-bridge-impl-3.2.4-ga5.jar
- /WEB-INF/lib/liferay-faces-portal-3.2.4-ga5.jar
- /WEB-INF/lib/liferay-faces-util-3.2.4-ga5.jar
- /WEB-INF/lib/log4j-1.2.16.jar
- /WEB-INF/lib/portal-service-6.2.1.jar
- /WEB-INF/lib/portlet-api-2.0.jar
- /WEB-INF/lib/servlet-api-2.4.jar
- /WEB-INF/lib/standard-1.1.2.jar
- /WEB-INF/lib/util-java-6.2.1.jar
- /WEB-INF/lib/util-taglib-6.2.1.jar
When i remove servlet-api-2.4.jar from exploded war, compress and try a new deploy, works! But, obviously we need to use servlet-api. :[
Juan Gonzalez, módosítva 8 év-val korábban
RE: Deploy problem after container change (JBOSS for TOMCAT)
Liferay Legend Bejegyzések: 3089 Csatlakozás dátuma: 2008.10.28. Legújabb bejegyzésekAndrey Maurício:
Juan,
I creating my .war using maven. Inside my WEB-INF/lib we have:
- /WEB-INF/lib/gson-2.3.1.jar
- /WEB-INF/lib/jodd-core-3.6.3.jar
- /WEB-INF/lib/jodd-http-3.6.3.jar
- /WEB-INF/lib/jodd-upload-3.6.3.jar
- /WEB-INF/lib/jsf-api-2.1.29.jar
- /WEB-INF/lib/jsf-impl-2.1.29.jar
- /WEB-INF/lib/json-simple-1.1.jar
- /WEB-INF/lib/jsp-api-2.0.jar
- /WEB-INF/lib/jsr250-api-1.0.jar
- /WEB-INF/lib/jstl-1.2.jar
- /WEB-INF/lib/liferay-faces-alloy-3.2.4-ga5.jar
- /WEB-INF/lib/liferay-faces-bridge-api-3.2.4-ga5.jar
- /WEB-INF/lib/liferay-faces-bridge-impl-3.2.4-ga5.jar
- /WEB-INF/lib/liferay-faces-portal-3.2.4-ga5.jar
- /WEB-INF/lib/liferay-faces-util-3.2.4-ga5.jar
- /WEB-INF/lib/log4j-1.2.16.jar
- /WEB-INF/lib/portal-service-6.2.1.jar
- /WEB-INF/lib/portlet-api-2.0.jar
- /WEB-INF/lib/servlet-api-2.4.jar
- /WEB-INF/lib/standard-1.1.2.jar
- /WEB-INF/lib/util-java-6.2.1.jar
- /WEB-INF/lib/util-taglib-6.2.1.jar
Hi Andrey, you should remove these files:
- portal-service
- portlet-api
- servlet-api
portal-service should be located in a server-wide (global) classpath, as it needs a single jar to deploy other plugins too. Same happens to portlet-api.
Additionally, as Neil said, you should remove servlet-api setting it as provided scope, as it already exists in TOMCAT global classpath.
Please, check these demo examples and their parent pom.xml to see how to build the plugins properly.
You can take the Liferay Faces Maven archetype for building from scratch too.
Hope it helps.
Andrey Maurício, módosítva 8 év-val korábban
RE: Deploy problem after container change (JBOSS for TOMCAT)
New Member Bejegyzések: 12 Csatlakozás dátuma: 2015.04.09. Legújabb bejegyzések
Hi Juan,
I make changes and didn't work.
Here is my pom.xml
Here is the log from deploy try:
The problem continues... :[
I make changes and didn't work.
Here is my pom.xml
<!--?xml version="1.0"?-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelversion>4.0.0</modelversion>
<groupid>br.com.portal</groupid>
<artifactid>my-portlet</artifactid>
<packaging>war</packaging>
<name>my-portlet Portlet</name>
<version>1.0</version>
<properties>
<jsf.version>2.1.29</jsf.version>
<liferay.version>6.2.1</liferay.version>
<liferay.faces.version>3.2.4-ga5</liferay.faces.version>
<portlet.version>2.0</portlet.version>
<javax.version>1.0</javax.version>
<jstl.version>1.2</jstl.version>
<jsp.api.version>2.0</jsp.api.version>
<log4j.version>1.2.16</log4j.version>
<servlet.api.version>2.5</servlet.api.version>
<taglib.version>1.1.2</taglib.version>
</properties>
<build>
<plugins>
<plugin>
<groupid>com.liferay.maven.plugins</groupid>
<artifactid>liferay-maven-plugin</artifactid>
<version>${liferay.version}</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>build-css</goal>
</goals>
</execution>
</executions>
<configuration>
<autodeploydir>${liferay.auto.deploy.dir}</autodeploydir>
<appserverdeploydir>${liferay.app.server.deploy.dir}</appserverdeploydir>
<appserverlibglobaldir>${liferay.app.server.lib.global.dir}</appserverlibglobaldir>
<appserverportaldir>${liferay.app.server.portal.dir}</appserverportaldir>
<liferayversion>${liferay.version}</liferayversion>
<plugintype>portlet</plugintype>
</configuration>
</plugin>
<plugin>
<artifactid>maven-compiler-plugin</artifactid>
<version>2.5</version>
<configuration>
<encoding>UTF-8</encoding>
<source>1.7
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<artifactid>maven-resources-plugin</artifactid>
<version>2.5</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupid>com.liferay.portal</groupid>
<artifactid>util-taglib</artifactid>
<version>${liferay.version}</version>
</dependency>
<dependency>
<groupid>javax.servlet</groupid>
<artifactid>jsp-api</artifactid>
<version>${jsp.api.version}</version>
</dependency>
<dependency>
<groupid>com.liferay.faces</groupid>
<artifactid>liferay-faces-bridge-api</artifactid>
<version>${liferay.faces.version}</version>
</dependency>
<dependency>
<groupid>com.liferay.faces</groupid>
<artifactid>liferay-faces-alloy</artifactid>
<version>${liferay.faces.version}</version>
</dependency>
<dependency>
<groupid>com.liferay.faces</groupid>
<artifactid>liferay-faces-bridge-impl</artifactid>
<version>${liferay.faces.version}</version>
</dependency>
<dependency>
<groupid>com.liferay.faces</groupid>
<artifactid>liferay-faces-portal</artifactid>
<version>${liferay.faces.version}</version>
</dependency>
<dependency>
<groupid>com.liferay.portal</groupid>
<artifactid>portal-service</artifactid>
<version>${liferay.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupid>com.liferay.portal</groupid>
<artifactid>util-java</artifactid>
<version>${liferay.version}</version>
</dependency>
<dependency>
<groupid>com.sun.faces</groupid>
<artifactid>jsf-api</artifactid>
<version>${jsf.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupid>com.sun.faces</groupid>
<artifactid>jsf-impl</artifactid>
<version>${jsf.version}</version>
</dependency>
<dependency>
<groupid>javax.portlet</groupid>
<artifactid>portlet-api</artifactid>
<version>${portlet.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupid>javax.annotation</groupid>
<artifactid>jsr250-api</artifactid>
<version>${javax.version}</version>
</dependency>
<dependency>
<groupid>javax.servlet</groupid>
<artifactid>jstl</artifactid>
<version>${jstl.version}</version>
</dependency>
<dependency>
<groupid>org.jodd</groupid>
<artifactid>jodd-core</artifactid>
<version>3.6.3</version>
<type>jar</type>
</dependency>
<dependency>
<groupid>org.jodd</groupid>
<artifactid>jodd-http</artifactid>
<version>3.6.3</version>
<type>jar</type>
</dependency>
<dependency>
<groupid>taglibs</groupid>
<artifactid>standard</artifactid>
<version>${taglib.version}</version>
</dependency>
<dependency>
<groupid>log4j</groupid>
<artifactid>log4j</artifactid>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupid>com.google.code.gson</groupid>
<artifactid>gson</artifactid>
<version>2.3.1</version>
</dependency>
<dependency>
<groupid>com.googlecode.json-simple</groupid>
<artifactid>json-simple</artifactid>
<version>1.1</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>desenvolvimento</id>
<activation>
<activebydefault>true</activebydefault>
</activation>
<build>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources/desenvolvimento</directory>
</resource>
</resources>
</build>
</profile>
<profile>
<id>testes</id>
<activation>
<activebydefault>false</activebydefault>
</activation>
<build>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources/testes</directory>
<includes>
<include>**/*</include>
</includes>
</resource>
<resource>
<directory>${project.basedir}/src/main/resources/</directory>
<includes>
<include>resource-actions/**/*.*</include>
</includes>
</resource>
</resources>
</build>
</profile>
<profile>
<id>preproducao</id>
<activation>
<activebydefault>false</activebydefault>
</activation>
<build>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources/preproducao</directory>
<includes>
<include>**/*</include>
</includes>
</resource>
<resource>
<directory>${project.basedir}/src/main/resources/</directory>
<includes>
<include>resource-actions/**/*.*</include>
</includes>
</resource>
</resources>
</build>
</profile>
<profile>
<id>producao</id>
<activation>
<activebydefault>false</activebydefault>
</activation>
<build>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources/producao</directory>
<includes>
<include>**/*</include>
</includes>
</resource>
<resource>
<directory>${project.basedir}/src/main/resources/</directory>
<includes>
<include>resource-actions/**/*.*</include>
</includes>
</resource>
</resources>
</build>
</profile>
</profiles>
</project>
Here is the log from deploy try:
13:45:44,468 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:204] Processing my-portlet-1.0.war
13:45:44,469 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:79] Copying portlets for /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/deploy/my-portlet-1.0.war
13:45:44,492 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:859] Deploying my-portlet-1.0.war
Expanding: /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/deploy/my-portlet-1.0.war into /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/20150929134544493
Copying 1 file to /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/20150929134544493/WEB-INF/classes
Copying 1 file to /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/20150929134544493/WEB-INF/classes
Copying 1 file to /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/20150929134544493/WEB-INF/jsp
13:45:44,641 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:2383] Modifying Servlet 2.5 /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/20150929134544493/WEB-INF/web.xml
Copying 22 files to /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/webapps/my-portlet-1.0
Copying 1 file to /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/webapps/my-portlet-1.0
Deleting directory /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/20150929134544493
13:45:44,679 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:91] Portlets for /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/deploy/my-portlet-1.0.war copied successfully. Deployment will start in a few seconds.
Set 29, 2015 1:45:50 PM org.apache.catalina.startup.HostConfig deleteRedeployResources
INFORMAÇÕES: Undeploying context [/my-portlet-1.0]
Set 29, 2015 1:45:50 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/my-portlet-1.0] created a ThreadLocal with key of type [com.liferay.portal.kernel.util.CentralizedThreadLocal.ThreadLocalMapThreadLocal] (value [com.liferay.portal.kernel.util.CentralizedThreadLocal$ThreadLocalMapThreadLocal@51b20ab1]) and a value of type [com.liferay.portal.kernel.util.CentralizedThreadLocal.ThreadLocalMap] (value [com.liferay.portal.kernel.util.CentralizedThreadLocal$ThreadLocalMap@7fdc145d]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Set 29, 2015 1:45:50 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/my-portlet-1.0] created a ThreadLocal with key of type [com.liferay.portal.kernel.util.CentralizedThreadLocal.ThreadLocalMapThreadLocal] (value [com.liferay.portal.kernel.util.CentralizedThreadLocal$ThreadLocalMapThreadLocal@215bbeeb]) and a value of type [com.liferay.portal.kernel.util.CentralizedThreadLocal.ThreadLocalMap] (value [com.liferay.portal.kernel.util.CentralizedThreadLocal$ThreadLocalMap@e534769]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Set 29, 2015 1:45:50 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMAÇÕES: Deploying web application directory /portal/liferay-core/environment 6.2-ga2/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/webapps/my-portlet-1.0
Set 29, 2015 1:45:50 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFORMAÇÕES: validateJarFile(/portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/3-my-portlet-1.0/WEB-INF/lib/servlet-api-2.4.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Set 29, 2015 1:45:50 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFORMAÇÕES: validateJarFile(/portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/3-my-portlet-1.0/WEB-INF/lib/servlet-api-3.0-alpha-1.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
13:45:52,248 INFO [BridgeSessionListener:96] Context initialized for contextPath=[/my-portlet-1.0]
13:45:52,775 INFO [StartupListener:50] Context initialized for contextPath=[/my-portlet-1.0]
13:45:52,780 INFO [StartupListener:77] Copied input-editor.jsp from LiferayFaces JAR to context path file=[/portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/3-my-portlet-1.0/resources/liferay-ui/jsp/input-editor.jsp]
The problem continues... :[
Juan Gonzalez, módosítva 8 év-val korábban
RE: Deploy problem after container change (JBOSS for TOMCAT)
Liferay Legend Bejegyzések: 3089 Csatlakozás dátuma: 2008.10.28. Legújabb bejegyzések
There are still libraries that should be removed from the generated WAR, like
Please, recreate the WAR and undeploy first to ensure there are no old libraries deployed in your WAR (this usually happens when redeploying in Tomcat).
BTW I saw you set jsf-api as "provided" but not jsf-impl, is there any reason for that?
<groupid>javax.servlet</groupid>
<artifactid>jsp-api</artifactid>
<groupid>javax.annotation</groupid>
<artifactid>jsr250-api</artifactid>
<groupid>javax.servlet</groupid>
<artifactid>jstl</artifactid>
Please, recreate the WAR and undeploy first to ensure there are no old libraries deployed in your WAR (this usually happens when redeploying in Tomcat).
BTW I saw you set jsf-api as "provided" but not jsf-impl, is there any reason for that?
Andrey Maurício, módosítva 8 év-val korábban
RE: Deploy problem after container change (JBOSS for TOMCAT)
New Member Bejegyzések: 12 Csatlakozás dátuma: 2015.04.09. Legújabb bejegyzések
Juan,
He is my new pom.xml configuration:
When i'm trying a new deploy, this is de console output:
He is my new pom.xml configuration:
<!--?xml version="1.0"?-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelversion>4.0.0</modelversion>
<groupid>br.com.portal</groupid>
<artifactid>my-portlet</artifactid>
<packaging>war</packaging>
<name>my-portlet Portlet</name>
<version>1.0</version>
<properties>
<jsf.version>2.1.29</jsf.version>
<liferay.version>6.2.1</liferay.version>
<liferay.faces.version>3.2.4-ga5</liferay.faces.version>
<portlet.version>2.0</portlet.version>
<javax.version>1.0</javax.version>
<jstl.version>1.2</jstl.version>
<jsp.api.version>2.0</jsp.api.version>
<log4j.version>1.2.16</log4j.version>
<servlet.api.version>2.5</servlet.api.version>
<taglib.version>1.1.2</taglib.version>
</properties>
<build>
<plugins>
<plugin>
<groupid>com.liferay.maven.plugins</groupid>
<artifactid>liferay-maven-plugin</artifactid>
<version>${liferay.version}</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>build-css</goal>
</goals>
</execution>
</executions>
<configuration>
<autodeploydir>${liferay.auto.deploy.dir}</autodeploydir>
<appserverdeploydir>${liferay.app.server.deploy.dir}</appserverdeploydir>
<appserverlibglobaldir>${liferay.app.server.lib.global.dir}</appserverlibglobaldir>
<appserverportaldir>${liferay.app.server.portal.dir}</appserverportaldir>
<liferayversion>${liferay.version}</liferayversion>
<plugintype>portlet</plugintype>
</configuration>
</plugin>
<plugin>
<artifactid>maven-compiler-plugin</artifactid>
<version>2.5</version>
<configuration>
<encoding>UTF-8</encoding>
<source>1.7
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<artifactid>maven-resources-plugin</artifactid>
<version>2.5</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupid>com.liferay.portal</groupid>
<artifactid>util-taglib</artifactid>
<version>${liferay.version}</version>
</dependency>
<!-- <dependency> -->
<!-- <groupId>javax.servlet</groupId> -->
<!-- <artifactId>jsp-api</artifactId> -->
<!-- <version>${jsp.api.version}</version> -->
<!-- </dependency> -->
<dependency>
<groupid>com.liferay.faces</groupid>
<artifactid>liferay-faces-bridge-api</artifactid>
<version>${liferay.faces.version}</version>
</dependency>
<dependency>
<groupid>com.liferay.faces</groupid>
<artifactid>liferay-faces-alloy</artifactid>
<version>${liferay.faces.version}</version>
</dependency>
<dependency>
<groupid>com.liferay.faces</groupid>
<artifactid>liferay-faces-bridge-impl</artifactid>
<version>${liferay.faces.version}</version>
</dependency>
<dependency>
<groupid>com.liferay.faces</groupid>
<artifactid>liferay-faces-portal</artifactid>
<version>${liferay.faces.version}</version>
</dependency>
<dependency>
<groupid>com.liferay.portal</groupid>
<artifactid>portal-service</artifactid>
<version>${liferay.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupid>com.liferay.portal</groupid>
<artifactid>util-java</artifactid>
<version>${liferay.version}</version>
</dependency>
<dependency>
<groupid>com.sun.faces</groupid>
<artifactid>jsf-api</artifactid>
<version>${jsf.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupid>com.sun.faces</groupid>
<artifactid>jsf-impl</artifactid>
<version>${jsf.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupid>javax.portlet</groupid>
<artifactid>portlet-api</artifactid>
<version>${portlet.version}</version>
<scope>provided</scope>
</dependency>
<!-- <dependency> -->
<!-- <groupId>javax.annotation</groupId> -->
<!-- <artifactId>jsr250-api</artifactId> -->
<!-- <version>${javax.version}</version> -->
<!-- </dependency> -->
<!-- <dependency> -->
<!-- <groupId>javax.servlet</groupId> -->
<!-- <artifactId>jstl</artifactId> -->
<!-- <version>${jstl.version}</version> -->
<!-- </dependency> -->
<dependency>
<groupid>org.jodd</groupid>
<artifactid>jodd-core</artifactid>
<version>3.6.3</version>
<type>jar</type>
</dependency>
<dependency>
<groupid>org.jodd</groupid>
<artifactid>jodd-http</artifactid>
<version>3.6.3</version>
<type>jar</type>
</dependency>
<dependency>
<groupid>taglibs</groupid>
<artifactid>standard</artifactid>
<version>${taglib.version}</version>
</dependency>
<dependency>
<groupid>log4j</groupid>
<artifactid>log4j</artifactid>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupid>com.google.code.gson</groupid>
<artifactid>gson</artifactid>
<version>2.3.1</version>
</dependency>
<dependency>
<groupid>com.googlecode.json-simple</groupid>
<artifactid>json-simple</artifactid>
<version>1.1</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>desenvolvimento</id>
<activation>
<activebydefault>true</activebydefault>
</activation>
<build>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources/desenvolvimento</directory>
</resource>
</resources>
</build>
</profile>
<profile>
<id>testes</id>
<activation>
<activebydefault>false</activebydefault>
</activation>
<build>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources/testes</directory>
<includes>
<include>**/*</include>
</includes>
</resource>
<resource>
<directory>${project.basedir}/src/main/resources/</directory>
<includes>
<include>resource-actions/**/*.*</include>
</includes>
</resource>
</resources>
</build>
</profile>
<profile>
<id>preproducao</id>
<activation>
<activebydefault>false</activebydefault>
</activation>
<build>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources/preproducao</directory>
<includes>
<include>**/*</include>
</includes>
</resource>
<resource>
<directory>${project.basedir}/src/main/resources/</directory>
<includes>
<include>resource-actions/**/*.*</include>
</includes>
</resource>
</resources>
</build>
</profile>
<profile>
<id>producao</id>
<activation>
<activebydefault>false</activebydefault>
</activation>
<build>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources/producao</directory>
<includes>
<include>**/*</include>
</includes>
</resource>
<resource>
<directory>${project.basedir}/src/main/resources/</directory>
<includes>
<include>resource-actions/**/*.*</include>
</includes>
</resource>
</resources>
</build>
</profile>
</profiles>
</project>
When i'm trying a new deploy, this is de console output:
16:53:31,248 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:204] Processing my-portlet-1.0.war
16:53:31,252 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:79] Copying portlets for /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/deploy/my-portlet-1.0.war
16:53:31,277 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:859] Deploying my-portlet-1.0.war
Expanding: /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/deploy/my-portlet-1.0.war into /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/20150929165331308
Copying 1 file to /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/20150929165331308/WEB-INF/classes
Copying 1 file to /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/20150929165331308/WEB-INF/classes
Copying 1 file to /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/20150929165331308/WEB-INF/jsp
16:53:31,579 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:2383] Modifying Servlet 2.5 /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/20150929165331308/WEB-INF/web.xml
Copying 56 files to /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/webapps/my-portlet-1.0
Copying 1 file to /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/webapps/my-portlet-1.0
Deleting directory /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/20150929165331308
16:53:31,698 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:91] Portlets for /portal/liferay-sdk/liferay-portal-6.2-ce-ga2/deploy/my-portlet-1.0.war copied successfully. Deployment will start in a few seconds.
Set 29, 2015 4:53:39 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMAÇÕES: Deploying web application directory /portal/liferay-core/environment 6.2-ga2/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/webapps/my-portlet-1.0
Set 29, 2015 4:53:40 PM org.apache.catalina.core.StandardContext listenerStart
GRAVE: Error configuring application listener of class org.apache.catalina.deploy.ApplicationListener@35071fe5
java.lang.NoClassDefFoundError: javax/faces/FacesException
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2895)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1173)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1681)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
at java.lang.Class.getConstructor0(Class.java:2842)
at java.lang.Class.newInstance(Class.java:345)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:138)
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)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: javax.faces.FacesException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
... 25 more
Set 29, 2015 4:53:40 PM org.apache.catalina.core.StandardContext listenerStart
GRAVE: Skipped installing application listeners due to previous error(s)
Set 29, 2015 4:53:40 PM org.apache.catalina.core.StandardContext startInternal
GRAVE: Error listenerStart
Set 29, 2015 4:53:40 PM org.apache.catalina.core.StandardContext startInternal
GRAVE: Context [/my-portlet-1.0] startup failed due to previous errors
Juan Gonzalez, módosítva 8 év-val korábban
RE: Deploy problem after container change (JBOSS for TOMCAT)
Liferay Legend Bejegyzések: 3089 Csatlakozás dátuma: 2008.10.28. Legújabb bejegyzések
Oh sorry! I don't know why I thought you were deploying in JBOSS.
Ok, jsf-api and jsf-impl should be in WAR file so either remove the <scope/> element on those or change the scope to "runtime".
Ok, jsf-api and jsf-impl should be in WAR file so either remove the <scope/> element on those or change the scope to "runtime".
Andrey Maurício, módosítva 8 év-val korábban
RE: Deploy problem after container change (JBOSS for TOMCAT) (Válasz)
New Member Bejegyzések: 12 Csatlakozás dátuma: 2015.04.09. Legújabb bejegyzések
YAY! Using this pom.xml configuration my deploy works:
Resuming... my problem it's just pom.xml configuration. Obviously we need to remove jboss configurations from project too.
Thanks for the support!
<!--?xml version="1.0"?-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelversion>4.0.0</modelversion>
<groupid>br.com.portal</groupid>
<artifactid>my-portlet-portlet</artifactid>
<packaging>war</packaging>
<name>my-portlet Portlet</name>
<version>1.0</version>
<properties>
<jsf.version>2.1.29</jsf.version>
<liferay.version>6.2.1</liferay.version>
<liferay.faces.version>3.2.4-ga5</liferay.faces.version>
<portlet.version>2.0</portlet.version>
<javax.version>1.0</javax.version>
<jstl.version>1.2</jstl.version>
<jsp.api.version>2.0</jsp.api.version>
<log4j.version>1.2.16</log4j.version>
<servlet.api.version>2.5</servlet.api.version>
<taglib.version>1.1.2</taglib.version>
</properties>
<build>
<plugins>
<plugin>
<groupid>com.liferay.maven.plugins</groupid>
<artifactid>liferay-maven-plugin</artifactid>
<version>${liferay.version}</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>build-css</goal>
</goals>
</execution>
</executions>
<configuration>
<autodeploydir>${liferay.auto.deploy.dir}</autodeploydir>
<appserverdeploydir>${liferay.app.server.deploy.dir}</appserverdeploydir>
<appserverlibglobaldir>${liferay.app.server.lib.global.dir}</appserverlibglobaldir>
<appserverportaldir>${liferay.app.server.portal.dir}</appserverportaldir>
<liferayversion>${liferay.version}</liferayversion>
<plugintype>portlet</plugintype>
</configuration>
</plugin>
<plugin>
<artifactid>maven-compiler-plugin</artifactid>
<version>2.5</version>
<configuration>
<encoding>UTF-8</encoding>
<source>1.7
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<artifactid>maven-resources-plugin</artifactid>
<version>2.5</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupid>javax.mail</groupid>
<artifactid>javax.mail-api</artifactid>
<version>1.5.4</version>
</dependency>
<dependency>
<groupid>com.liferay.portal</groupid>
<artifactid>util-taglib</artifactid>
<version>${liferay.version}</version>
</dependency>
<dependency>
<groupid>javax.servlet</groupid>
<artifactid>jsp-api</artifactid>
<version>${jsp.api.version}</version>
</dependency>
<dependency>
<groupid>com.liferay.faces</groupid>
<artifactid>liferay-faces-bridge-api</artifactid>
<version>${liferay.faces.version}</version>
</dependency>
<dependency>
<groupid>com.liferay.faces</groupid>
<artifactid>liferay-faces-alloy</artifactid>
<version>${liferay.faces.version}</version>
</dependency>
<dependency>
<groupid>com.liferay.faces</groupid>
<artifactid>liferay-faces-bridge-impl</artifactid>
<version>${liferay.faces.version}</version>
</dependency>
<dependency>
<groupid>com.liferay.faces</groupid>
<artifactid>liferay-faces-portal</artifactid>
<version>${liferay.faces.version}</version>
</dependency>
<dependency>
<groupid>com.liferay.portal</groupid>
<artifactid>portal-service</artifactid>
<version>${liferay.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupid>com.liferay.portal</groupid>
<artifactid>util-java</artifactid>
<version>${liferay.version}</version>
</dependency>
<dependency>
<groupid>com.sun.faces</groupid>
<artifactid>jsf-api</artifactid>
<version>${jsf.version}</version>
</dependency>
<dependency>
<groupid>com.sun.faces</groupid>
<artifactid>jsf-impl</artifactid>
<version>${jsf.version}</version>
</dependency>
<dependency>
<groupid>javax.portlet</groupid>
<artifactid>portlet-api</artifactid>
<version>${portlet.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupid>javax.annotation</groupid>
<artifactid>jsr250-api</artifactid>
<version>${javax.version}</version>
</dependency>
<dependency>
<groupid>javax.servlet</groupid>
<artifactid>jstl</artifactid>
<version>${jstl.version}</version>
</dependency>
<dependency>
<groupid>org.jodd</groupid>
<artifactid>jodd-core</artifactid>
<version>3.6.3</version>
<type>jar</type>
</dependency>
<dependency>
<groupid>org.jodd</groupid>
<artifactid>jodd-http</artifactid>
<version>3.6.3</version>
<type>jar</type>
</dependency>
<dependency>
<groupid>taglibs</groupid>
<artifactid>standard</artifactid>
<version>${taglib.version}</version>
</dependency>
<dependency>
<groupid>log4j</groupid>
<artifactid>log4j</artifactid>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupid>com.google.code.gson</groupid>
<artifactid>gson</artifactid>
<version>2.3.1</version>
</dependency>
<dependency>
<groupid>com.googlecode.json-simple</groupid>
<artifactid>json-simple</artifactid>
<version>1.1</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>desenvolvimento</id>
<activation>
<activebydefault>true</activebydefault>
</activation>
<build>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources/desenvolvimento</directory>
</resource>
</resources>
</build>
</profile>
<profile>
<id>testes</id>
<activation>
<activebydefault>false</activebydefault>
</activation>
<build>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources/testes</directory>
<includes>
<include>**/*</include>
</includes>
</resource>
<resource>
<directory>${project.basedir}/src/main/resources/</directory>
<includes>
<include>resource-actions/**/*.*</include>
</includes>
</resource>
</resources>
</build>
</profile>
<profile>
<id>preproducao</id>
<activation>
<activebydefault>false</activebydefault>
</activation>
<build>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources/preproducao</directory>
<includes>
<include>**/*</include>
</includes>
</resource>
<resource>
<directory>${project.basedir}/src/main/resources/</directory>
<includes>
<include>resource-actions/**/*.*</include>
</includes>
</resource>
</resources>
</build>
</profile>
<profile>
<id>producao</id>
<activation>
<activebydefault>false</activebydefault>
</activation>
<build>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources/producao</directory>
<includes>
<include>**/*</include>
</includes>
</resource>
<resource>
<directory>${project.basedir}/src/main/resources/</directory>
<includes>
<include>resource-actions/**/*.*</include>
</includes>
</resource>
</resources>
</build>
</profile>
</profiles>
</project>
Resuming... my problem it's just pom.xml configuration. Obviously we need to remove jboss configurations from project too.
Thanks for the support!
Juan Gonzalez, módosítva 8 év-val korábban
RE: Deploy problem after container change (JBOSS for TOMCAT)
Liferay Legend Bejegyzések: 3089 Csatlakozás dátuma: 2008.10.28. Legújabb bejegyzések
Glad you got it working!
Olaf Kock, módosítva 8 év-val korábban
RE: Deploy problem after container change (JBOSS for TOMCAT)
Liferay Legend Bejegyzések: 6403 Csatlakozás dátuma: 2008.09.23. Legújabb bejegyzések
Andrey Maurício, módosítva 8 év-val korábban
RE: Deploy problem after container change (JBOSS for TOMCAT)
New Member Bejegyzések: 12 Csatlakozás dátuma: 2015.04.09. Legújabb bejegyzések
Here is better. No? I'm just paste error in stack for other opinions. :[
Neil Griffin, módosítva 8 év-val korábban
RE: Deploy problem after container change (JBOSS for TOMCAT)
Liferay Legend Bejegyzések: 2655 Csatlakozás dátuma: 2005.07.27. Legújabb bejegyzések
The following jars should have <scope>provided</scope>, meaning since they live in the Tomcat global classpath, you should not include them in WEB-INF/lib:
- jsp-api-2.0.jar
- portal-service-6.2.1.jar
- portlet-api-2.0.jar
- servlet-api-2.4.jar
Note that Liferay will automatically copy the following into WEB-INF/lib when you deploy your portlet WAR:
- util-java-6.2.1.jar
- util-taglib-6.2.1.jar
- jsp-api-2.0.jar
- portal-service-6.2.1.jar
- portlet-api-2.0.jar
- servlet-api-2.4.jar
Note that Liferay will automatically copy the following into WEB-INF/lib when you deploy your portlet WAR:
- util-java-6.2.1.jar
- util-taglib-6.2.1.jar