Hi,
I am using Liferay with Tomcat 6.0 distribution and am having some issues with deploying a portlet. I believe the issue is related to how Tomcat starts up so am hoping someone on this list can help. I created a Maven archetype based on one of our Liferay projects that uses IceFaces. I created a basic project from the archetype in Eclipse (3.5 with m2eclipse). I started up the Liferay/Tomcat server via Eclipse (liferay-portal-5.2.3-tomcat-6.0), copied the war file to the deploy directory and it deploys fine and I can add the portlet to my Liferay page. However, if I start up Tomcat via the startup.bat script and deploy the war, things go wrong. Either it doesn't deploy the portlet because of errors (see below) or it deploys it and then immediately undeploys (unregisters) it. We tried deploying a portlet built using the same archetype in NetBeans and starting the server via NetBeans and got the same problems. We tried deploying the war built in Eclipse in the server started by NetBeans and got the same problems. So, we're thinking there's something off with the war file but Eclipse does some magic when it starts up Liferay/Tomcat that allow this portlet to be deployed anyway. In Eclipse, the run configuration is set up as: Program arguments: run VM arguments: -Dcatalina.base="C:\Program Files\liferay-portal-5.2.3-tomcat-6.0\tomcat-6.0.18" -Dcatalina.home="C:\Program Files\liferay-portal-5.2.3-tomcat-6.0\tomcat-6.0.18" -Dwtp.deploy="C:\Program Files\liferay-portal-5.2.3-tomcat-6.0\tomcat-6.0.18\webapps" -Djava.endorsed.dirs="C:\Program Files\liferay-portal-5.2.3-tomcat-6.0\tomcat-6.0.18\endorsed" -XX:MaxPermSize=512m -Djava.io.tmpdir="C:\Program Files\liferay-portal-5.2.3-tomcat-6.0\tomcat-6.0.18\temp" No environment variables have been set and everything else is default. Does anyone know what magic Eclipse may be performing on Tomcat startup and/or what the config issue with the war could be? Thanks in advance for any help/direction. Shelli Error deploying portlet: INFO: Initializing Sun's JavaServer Faces implementation (1.2-NIGHTLY_20060407) for context '/IceFacesPortlet-1.0' May 21, 2010 9:29:02 PM com.sun.faces.util.Util createInstance SEVERE: Cant instantiate class: com.icesoft.faces.facelets.D2DFaceletViewHandler.java.lang.ClassNotFound Exception: com.icesoft.faces.facelets.D2DFaceletViewHandler at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1387) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1233) at com.sun.faces.util.Util.loadClass(Util.java:176) at com.sun.faces.util.Util.createInstance(Util.java:606) at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java: 947) at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java: 774) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListe ner.java:535) at com.sun.faces.config.GlassFishConfigureListener.contextInitialized(Glass FishConfigureListener.java:49) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.j ava:3843) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:9 26) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java :889) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:29 3) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:117) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.j ava:1337) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc essChildren(ContainerBase.java:1601) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc essChildren(ContainerBase.java:1610) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run( ContainerBase.java:1590) at java.lang.Thread.run(Thread.java:595) May 21, 2010 9:29:02 PM com.sun.faces.config.ConfigureListener contextInitialized INFO: Completed initializing Sun's JavaServer Faces implementation (1.2-NIGHTLY_20060407) for context '/IceFacesPortlet-1.0' May 21, 2010 9:29:02 PM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart May 21, 2010 9:29:02 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/IceFacesPortlet-1.0] startup failed due to previous errors