Foren

Class file not copied during deployment - why?

Robert Kendall, geändert vor 12 Jahren.

Class file not copied during deployment - why?

New Member Beiträge: 2 Beitrittsdatum: 21.09.10 Neueste Beiträge
I am new to liferay. I've tried both 6.1 and 6.0.6 with the Eclipse IDE plugins and have the same problem with both of them.....
When I drag a project to the liferay server within the eclipse IDE, it tries to deploy - but it doesn't copy the class file from C:\liferay-plugins-sdk-6.0.6-20110225\portlets\MyHW6-portlet\build\classes\com\test to C:\liferay-portal-6.0.6\tomcat-6.0.29\webapps\MyHW6-portlet\WEB-INF\src\com\test (this is my 6th attempt at Hello World ... hence HW6). Then the console log shows that it can't find the class file. If I manually copy the class file to the destination, I am able to access and run the portlet from within Liferay.

Below is the log of an attempt to deploy the portlet in a freshly started instance of liferay (interesting part is bold red). Can anyone more experience than I spot what's wrong? If not, can you suggest how to attack the problem?

Thanks,
Bob

Feb 29, 2012 11:40:11 PM 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:\liferay-portal-6.0.6\tomcat-6.0.29\jre1.6.0_20\win\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:/Program Files/Java/jre6/lib/i386;C:\PROGRA~1\MKSTOO~1\mksnt;C:\PROGRA~1\MKSTOO~1\bin;C:\PROGRA~1\MKSTOO~1\bin\X11;C:\PROGRA~1\MKSTOO~1\mksnt;C:\IBM\InformationServer\ASBNode\lib\cpp;C:\IBM\InformationServer\ASBNode\apps\proxy\cpp\vc60\MT_dll\bin;C:\Program Files\ImageMagick-6.6.9-Q16;C:\Perl\site\bin;C:\Perl\bin;C:\Oracle\Oracle11\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Windows Imaging\;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\AMCC\CLI;C:\Program Files\Common Files\Acronis\SnapAPI\;C:\Program Files\Java\jdk1.5.0_22\bin;C:\Program Files\ant\apache-ant-1.8.2\bin;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files\Perforce;C:\Program Files\Zend\MySQL51\bin;"C:\Program Files\Zend\ZendServer\bin";"C:\Program Files\Zend\ZendServer\share\ZendFramework\bin";C:\apache-maven-3.0.3\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\IDM Computer Solutions\UltraCompare\;C:\Program Files\IDM Computer Solutions\UltraEdit\;C:\apache-maven-3.0.3\bin;G:\PBDK;;C:\liferay-eclipse;
Feb 29, 2012 11:40:11 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 29, 2012 11:40:11 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 380 ms
Feb 29, 2012 11:40:11 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 29, 2012 11:40:11 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
Feb 29, 2012 11:40:11 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor ROOT.xml
Loading jar:file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
Loading jar:file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
Loading file:/C:/liferay-portal-6.0.6/portal-ide.properties
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/ROOT/WEB-INF/classes/portal-developer.properties
23:40:24,855 INFO [DialectDetector:69] Determining dialect for HSQL Database Engine 1
23:40:24,855 WARN [DialectDetector:84] Liferay is configured to use Hypersonic as its database. Do NOT use Hypersonic in production. Hypersonic is an embedded database useful for development and demo'ing purposes. The database settings can be changed in portal.properties.
23:40:25,058 INFO [DialectDetector:49] Using dialect org.hibernate.dialect.HSQLDialect
23:40:32,056 INFO [PortalImpl:278] Global lib directory /C:/liferay-portal-6.0.6/tomcat-6.0.29/lib/ext/
23:40:32,056 INFO [PortalImpl:298] Portal lib directory /C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/ROOT/WEB-INF/lib/
Starting Liferay Portal Community Edition 6.0.6 CE (Bunyan / Build 6006 / February 17, 2011)
23:41:00,017 INFO [BaseDB:400] Database supports case sensitive queries
23:41:06,796 INFO [PluginPackageUtil:1109] Reloading repositories
23:41:11,795 INFO [HotDeployUtil:69] Initializing hot deploy manager 376176
23:41:12,045 INFO [AutoDeployDir:105] Auto deploy scanner started for C:\liferay-portal-6.0.6\deploy
Feb 29, 2012 11:41:12 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory chat-portlet
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/chat-portlet/WEB-INF/classes/service.properties
23:41:13,638 INFO [DialectDetector:69] Determining dialect for HSQL Database Engine 1
23:41:13,638 WARN [DialectDetector:84] Liferay is configured to use Hypersonic as its database. Do NOT use Hypersonic in production. Hypersonic is an embedded database useful for development and demo'ing purposes. The database settings can be changed in portal.properties.
23:41:13,638 INFO [DialectDetector:49] Using dialect org.hibernate.dialect.HSQLDialect
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/chat-portlet/WEB-INF/classes/service.properties
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/chat-portlet/WEB-INF/classes/service.properties
23:41:14,591 INFO [PortletHotDeployListener:220] Registering portlets for chat-portlet
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/chat-portlet/WEB-INF/classes/portlet.properties
23:41:15,263 INFO [PortletHotDeployListener:369] 1 portlet for chat-portlet is available for use
Feb 29, 2012 11:41:15 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory default-site-templates-hook
23:41:16,059 INFO [HookHotDeployListener:394] Registering hook for default-site-templates-hook
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/default-site-templates-hook/WEB-INF/classes/portal.properties
23:41:16,294 INFO [HookHotDeployListener:649] Hook for default-site-templates-hook is available for use
Feb 29, 2012 11:41:16 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory google-maps-portlet
23:41:16,559 INFO [PortletHotDeployListener:220] Registering portlets for google-maps-portlet
23:41:16,684 INFO [PortletHotDeployListener:369] 1 portlet for google-maps-portlet is available for use
Feb 29, 2012 11:41:16 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory kaleo-web
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/kaleo-web/WEB-INF/classes/service.properties
23:41:17,559 ERROR [PluginPackageUtil:1127] Unable to load repository http://plugins.liferay.com/official com.liferay.portal.plugin.PluginPackageException: Unable to communicate with repository http://plugins.liferay.com/official
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/kaleo-web/WEB-INF/classes/service.properties
23:41:17,887 INFO [DialectDetector:69] Determining dialect for HSQL Database Engine 1
23:41:17,887 WARN [DialectDetector:84] Liferay is configured to use Hypersonic as its database. Do NOT use Hypersonic in production. Hypersonic is an embedded database useful for development and demo'ing purposes. The database settings can be changed in portal.properties.
23:41:17,887 INFO [DialectDetector:49] Using dialect org.hibernate.dialect.HSQLDialect
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/kaleo-web/WEB-INF/classes/service.properties
23:41:24,276 INFO [HookHotDeployListener:394] Registering hook for kaleo-web
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/kaleo-web/WEB-INF/classes/portal.properties
23:41:24,604 INFO [HookHotDeployListener:649] Hook for kaleo-web is available for use
Feb 29, 2012 11:41:24 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory mail-portlet
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/mail-portlet/WEB-INF/classes/service.properties
23:41:25,291 INFO [DialectDetector:69] Determining dialect for HSQL Database Engine 1
23:41:25,291 WARN [DialectDetector:84] Liferay is configured to use Hypersonic as its database. Do NOT use Hypersonic in production. Hypersonic is an embedded database useful for development and demo'ing purposes. The database settings can be changed in portal.properties.
23:41:25,291 INFO [DialectDetector:49] Using dialect org.hibernate.dialect.HSQLDialect
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/mail-portlet/WEB-INF/classes/service.properties
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/mail-portlet/WEB-INF/classes/service.properties
23:41:27,494 INFO [HookHotDeployListener:394] Registering hook for mail-portlet
23:41:28,259 ERROR [PluginPackageUtil:1127] Unable to load repository http://plugins.liferay.com/community com.liferay.portal.plugin.PluginPackageException: Unable to communicate with repository http://plugins.liferay.com/community
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/mail-portlet/WEB-INF/classes/portal.properties
23:41:28,415 INFO [HookHotDeployListener:649] Hook for mail-portlet is available for use
23:41:28,415 INFO [PortletHotDeployListener:220] Registering portlets for mail-portlet
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/mail-portlet/WEB-INF/classes/portlet.properties
23:41:28,978 INFO [PortletHotDeployListener:374] 2 portlets for mail-portlet are available for use
Feb 29, 2012 11:41:29 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory opensocial-portlet
23:41:29,665 WARN [SAXReaderImpl:429] XSD validation is diasabled because org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/opensocial-portlet/WEB-INF/classes/service.properties
23:41:29,931 WARN [SAXReaderImpl:429] XSD validation is diasabled because org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
23:41:31,102 INFO [PortletHotDeployListener:220] Registering portlets for opensocial-portlet
23:41:31,102 WARN [SAXReaderImpl:429] XSD validation is diasabled because org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
23:41:31,102 WARN [SAXReaderImpl:429] XSD validation is diasabled because org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
23:41:31,227 WARN [SAXReaderImpl:429] XSD validation is diasabled because org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
23:41:31,274 WARN [SAXReaderImpl:429] XSD validation is diasabled because org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/opensocial-portlet/WEB-INF/classes/portlet.properties
23:41:31,290 INFO [PortletHotDeployListener:374] 2 portlets for opensocial-portlet are available for use
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/opensocial-portlet/WEB-INF/classes/service.properties
23:41:31,508 INFO [DialectDetector:69] Determining dialect for HSQL Database Engine 1
23:41:31,508 WARN [DialectDetector:84] Liferay is configured to use Hypersonic as its database. Do NOT use Hypersonic in production. Hypersonic is an embedded database useful for development and demo'ing purposes. The database settings can be changed in portal.properties.
23:41:31,508 INFO [DialectDetector:49] Using dialect org.hibernate.dialect.HSQLDialect
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/opensocial-portlet/WEB-INF/classes/service.properties
23:41:38,256 WARN [PluginPackageUtil:312] Unable to communicate with repository http://plugins.liferay.com/official
23:41:48,254 WARN [PluginPackageUtil:312] Unable to communicate with repository http://plugins.liferay.com/community
Feb 29, 2012 11:41:51 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory sevencogs-hook
23:41:51,378 INFO [HotDeployEvent:95] Plugin sevencogs-hook requires google-maps-portlet, kaleo-web, mail-portlet, sevencogs-mobile-theme, sevencogs-theme, social-networking-portlet, web-form-portlet
23:41:51,378 INFO [HotDeployUtil:137] Queueing sevencogs-hook for deploy because it is missing sevencogs-mobile-theme, sevencogs-theme, social-networking-portlet, web-form-portlet
Feb 29, 2012 11:41:51 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory sevencogs-mobile-theme
23:41:51,550 INFO [ThemeHotDeployListener:78] Registering themes for sevencogs-mobile-theme
23:41:51,737 INFO [ThemeHotDeployListener:89] 1 theme for sevencogs-mobile-theme is available for use
23:41:51,737 INFO [HotDeployUtil:153] sevencogs-hook is still in queue because it is missing sevencogs-theme, social-networking-portlet, web-form-portlet
Feb 29, 2012 11:41:51 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory sevencogs-theme
23:41:52,253 INFO [ThemeHotDeployListener:78] Registering themes for sevencogs-theme
23:41:52,581 INFO [ThemeHotDeployListener:89] 1 theme for sevencogs-theme is available for use
23:41:52,596 INFO [HotDeployUtil:153] sevencogs-hook is still in queue because it is missing social-networking-portlet, web-form-portlet
Feb 29, 2012 11:41:52 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory social-networking-portlet
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/social-networking-portlet/WEB-INF/classes/service.properties
23:41:53,815 INFO [DialectDetector:69] Determining dialect for HSQL Database Engine 1
23:41:53,815 WARN [DialectDetector:84] Liferay is configured to use Hypersonic as its database. Do NOT use Hypersonic in production. Hypersonic is an embedded database useful for development and demo'ing purposes. The database settings can be changed in portal.properties.
23:41:53,815 INFO [DialectDetector:49] Using dialect org.hibernate.dialect.HSQLDialect
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/social-networking-portlet/WEB-INF/classes/service.properties
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/social-networking-portlet/WEB-INF/classes/service.properties
23:41:54,908 INFO [HookHotDeployListener:394] Registering hook for social-networking-portlet
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/social-networking-portlet/WEB-INF/classes/portal.properties
23:41:55,142 INFO [HookHotDeployListener:649] Hook for social-networking-portlet is available for use
23:41:55,142 INFO [PortletHotDeployListener:220] Registering portlets for social-networking-portlet
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/social-networking-portlet/WEB-INF/classes/portlet.properties
23:41:55,533 INFO [PortletHotDeployListener:374] 8 portlets for social-networking-portlet are available for use
23:41:55,533 INFO [HotDeployUtil:153] sevencogs-hook is still in queue because it is missing web-form-portlet
Feb 29, 2012 11:41:55 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory tunnel-web
Feb 29, 2012 11:41:59 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory web-form-portlet
23:41:59,782 INFO [PortletHotDeployListener:220] Registering portlets for web-form-portlet
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/web-form-portlet/WEB-INF/classes/portlet.properties
23:42:00,063 INFO [PortletHotDeployListener:369] 1 portlet for web-form-portlet is available for use
23:42:00,063 INFO [HotDeployUtil:101] Deploying sevencogs-hook from queue
23:42:00,172 INFO [HookHotDeployListener:394] Registering hook for sevencogs-hook
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/sevencogs-hook/WEB-INF/classes/portal.properties
23:42:00,235 INFO [HookHotDeployListener:649] Hook for sevencogs-hook is available for use
Feb 29, 2012 11:42:00 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory wsrp-portlet
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/wsrp-portlet/WEB-INF/classes/service.properties
23:42:01,156 INFO [PortletHotDeployListener:220] Registering portlets for wsrp-portlet
23:42:01,859 INFO [PortletHotDeployListener:374] 2 portlets for wsrp-portlet are available for use
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/wsrp-portlet/WEB-INF/classes/service.properties
23:42:02,094 INFO [DialectDetector:69] Determining dialect for HSQL Database Engine 1
23:42:02,094 WARN [DialectDetector:84] Liferay is configured to use Hypersonic as its database. Do NOT use Hypersonic in production. Hypersonic is an embedded database useful for development and demo'ing purposes. The database settings can be changed in portal.properties.
23:42:02,094 INFO [DialectDetector:49] Using dialect org.hibernate.dialect.HSQLDialect
Loading file:/C:/liferay-portal-6.0.6/tomcat-6.0.29/webapps/wsrp-portlet/WEB-INF/classes/service.properties
Feb 29, 2012 11:42:07 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Feb 29, 2012 11:42:07 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Feb 29, 2012 11:42:07 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47 config=null
Feb 29, 2012 11:42:08 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 115937 ms
23:42:15,840 INFO [AutoDeployDir:167] Processing MyHW6-portlet.xml
23:42:15,855 INFO [PortletExplodedTomcatListener:59] Modifying portlets for C:\liferay-portal-6.0.6\deploy\MyHW6-portlet.xml
Copying 1 file to C:\liferay-portal-6.0.6\tomcat-6.0.29\webapps\MyHW6-portlet\WEB-INF\classes
Copying 1 file to C:\liferay-portal-6.0.6\tomcat-6.0.29\webapps\MyHW6-portlet\WEB-INF\classes
Copying 1 file to C:\liferay-portal-6.0.6\tomcat-6.0.29\webapps\MyHW6-portlet\META-INF
23:42:16,465 INFO [PortletExplodedTomcatListener:65] Portlets for C:\liferay-portal-6.0.6\deploy\MyHW6-portlet.xml modified successfully
23:42:16,465 INFO [BaseExplodedTomcatListener:45] Copying file C:\liferay-portal-6.0.6\deploy\MyHW6-portlet.xml to C:\liferay-portal-6.0.6\tomcat-6.0.29\conf\Catalina\localhost
Feb 29, 2012 11:42:17 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor MyHW6-portlet.xml
Feb 29, 2012 11:42:17 PM org.apache.catalina.startup.HostConfig deployDescriptor
WARNING: A docBase C:\liferay-portal-6.0.6\tomcat-6.0.29\webapps\MyHW6-portlet inside the host appBase has been specified, and will be ignored
23:42:17,933 INFO [PortletHotDeployListener:220] Registering portlets for MyHW6-portlet
23:42:18,011 ERROR [PortletBagFactory:115] java.lang.ClassNotFoundException: com.test.MyHW6
java.lang.ClassNotFoundException: com.test.MyHW6

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)
at com.liferay.portlet.PortletBagFactory.create(PortletBagFactory.java:112)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.initPortlet(PortletHotDeployListener.java:456)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:253)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:101)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._doFireDeployEvent(HotDeployUtil.java:109)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(HotDeployUtil.java:182)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:38)
at com.liferay.portal.kernel.servlet.PortletContextListener.doPortalInit(PortletContextListener.java:99)
at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)
at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:52)
at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:50)
at com.liferay.portal.kernel.servlet.PortletContextListener.contextInitialized(PortletContextListener.java:55)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1345)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at java.lang.Thread.run(Thread.java:619)
23:42:18,027 INFO [PortletHotDeployListener:374] 0 portlets for MyHW6-portlet are available for use
thumbnail
David H Nebinger, geändert vor 12 Jahren.

RE: Class file not copied during deployment - why?

Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
Robert Kendall:
When I drag a project to the liferay server within the eclipse IDE, it tries to deploy - but it doesn't copy the class file from C:\liferay-plugins-sdk-6.0.6-20110225\portlets\MyHW6-portlet\build\classes\com\test to C:\liferay-portal-6.0.6\tomcat-6.0.29\webapps\MyHW6-portlet\WEB-INF\src\com\test.

Can anyone more experience than I spot what's wrong?


Yes, your process is wrong.

You should be using the ant build script within the portlet project to do all deployments. Dragging the project does not actually invoke the build script so the actual deployment artifact (the war) is not created. The deployment artifact is never copied directly to the tomcat webapps, it is always dropped in the deploy folder for Liferay to deploy on it's own. The build script will do this.
thumbnail
Hitoshi Ozawa, geändert vor 12 Jahren.

RE: Class file not copied during deployment - why? (Antwort)

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
David, this is the Liferay IDE forum. Developers don't run ant scripts from Liferay IDE. I usually just click on the project and select Liferay -> Deploy
thumbnail
David H Nebinger, geändert vor 12 Jahren.

RE: Class file not copied during deployment - why?

Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
That's what I get for just cruising the 'recent posts' button emoticon

With the "two steps forward, one step back" moves that the IDE has been taking, I guess I still stick w/ the basics, the stuff I know will work every time...
Robert Kendall, geändert vor 12 Jahren.

RE: Class file not copied during deployment - why?

New Member Beiträge: 2 Beitrittsdatum: 21.09.10 Neueste Beiträge
Hitoshi Ozawa:
David, this is the Liferay IDE forum. Developers don't run ant scripts from Liferay IDE. I usually just click on the project and select Liferay -> Deploy


The tip to use Liferay-->deploy worked, even though dragging the project to the server didn't. That is a perfectly acceptable solution.

Here's a snippet from the log that shows more files being copied than my previous log

16:03:04,548 INFO [AutoDeployDir:167] Processing MyHW7-portlet-6.0.6.1.war
16:03:04,548 INFO [PortletAutoDeployListener:71] Copying portlets for C:\liferay-portal-6.0.6\deploy\MyHW7-portlet-6.0.6.1.war
Expanding: C:\liferay-portal-6.0.6\deploy\MyHW7-portlet-6.0.6.1.war into C:\liferay-portal-6.0.6\tomcat-6.0.29\temp\20120301160304594
Copying 1 file to C:\liferay-portal-6.0.6\tomcat-6.0.29\temp\20120301160304594\WEB-INF
Copying 1 file to C:\liferay-portal-6.0.6\tomcat-6.0.29\temp\20120301160304594\WEB-INF\classes
Copying 1 file to C:\liferay-portal-6.0.6\tomcat-6.0.29\temp\20120301160304594\WEB-INF\classes
Copying 1 file to C:\liferay-portal-6.0.6\tomcat-6.0.29\temp\20120301160304594\META-INF
Copying 28 files to C:\liferay-portal-6.0.6\tomcat-6.0.29\webapps\MyHW7-portlet
Copying 1 file to C:\liferay-portal-6.0.6\tomcat-6.0.29\webapps\MyHW7-portlet

Deleting directory C:\liferay-portal-6.0.6\tomcat-6.0.29\temp\20120301160304594
16:03:06,045 INFO [PortletAutoDeployListener:81] Portlets for C:\liferay-portal-6.0.6\deploy\MyHW7-portlet-6.0.6.1.war copied successfully. Deployment will start in a few seconds.
Mar 1, 2012 4:03:10 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory MyHW7-portlet
16:03:10,194 INFO [PortletHotDeployListener:220] Registering portlets for MyHW7-portlet
16:03:10,287 INFO [PortletHotDeployListener:369] 1 portlet for MyHW7-portlet is available for use

Thank you!!
-Bob
thumbnail
Hitoshi Ozawa, geändert vor 12 Jahren.

RE: Class file not copied during deployment - why?

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
I think dragging to the server is still an unsupported feature. I didn't even know about it. emoticon