Message Boards

Problem starting liferay tomcat in liferay developer studio 7 comunity

Alex Cervantes, modified 4 Years ago.

Problem starting liferay tomcat in liferay developer studio 7 comunity

New Member Posts: 6 Join Date: 10/11/19 Recent Posts
Hi everyone, i have a problem starting the tomcat server in liferay developer studio 7 comunity, the first time that i deploy the server works fine but after trying to stop it i got an error like this:  "Error: main class not found or loaded files" and is the same message  when i trying to start again the server.it looks like the server deployment just works fine the first time, but my problem begins in the moment that i wants to stop it.i hope you can help me  =)thank you so much
Regards.
thumbnail
Christoph Rabel, modified 4 Years ago.

RE: Problem starting liferay tomcat in liferay developer studio 7 comunity

Liferay Legend Posts: 1554 Join Date: 9/24/09 Recent Posts
Can you please post the logfile?
Also: Did you deploy some of your own modules? Have you tried to undeploy them?
Alex Cervantes, modified 4 Years ago.

RE: Problem starting liferay tomcat in liferay developer studio 7 comunity

New Member Posts: 6 Join Date: 10/11/19 Recent Posts
Hi friend i deploy the server for first time without any proyect and the console show this:
14-Oct-2019 23:28:35.224 INFORMACIÓN [main] org.apache.catalina.startup.Catalina.load Server initialization in [1.889] milliseconds
Loading jar:file:/C:/Program%20Files%20(x86)/liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761/liferay-ce-portal-7.2.0-ga1/tomcat-9.0.17/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
Loading jar:file:/C:/Program%20Files%20(x86)/liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761/liferay-ce-portal-7.2.0-ga1/tomcat-9.0.17/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
Loading file:/C:/Program%20Files%20(x86)/liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761/liferay-ce-portal-7.2.0-ga1/portal-ext.properties
Loading file:/C:/Program%20Files%20(x86)/liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761/liferay-ce-portal-7.2.0-ga1/tomcat-9.0.17/webapps/ROOT/WEB-INF/classes/portal-developer.properties
Loading file:/C:/Program%20Files%20(x86)/liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761/liferay-ce-portal-7.2.0-ga1/portal-setup-wizard.properties
2019-10-14 23:29:16.294 INFO  [main][PortalContextLoaderListener:139] JVM arguments: -Xmx1024m -Dcatalina.base=C:/Program Files (x86)/liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761/liferay-ce-portal-7.2.0-ga1/tomcat-9.0.17 -Dcatalina.home=C:/Program Files (x86)/liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761/liferay-ce-portal-7.2.0-ga1/tomcat-9.0.17 -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=8099 -Dcom.sun.management.jmxremote.ssl=false -Dfile.encoding=UTF8 -Djava.endorsed.dirs=C:/Program Files (x86)/liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761/liferay-ce-portal-7.2.0-ga1/tomcat-9.0.17/endorsed -Djava.io.tmpdir=C:/Program Files (x86)/liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761/liferay-ce-portal-7.2.0-ga1/tomcat-9.0.17/temp -Djava.net.preferIPv4Stack=true -Djava.util.logging.config.file=C:/Program Files (x86)/liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761/liferay-ce-portal-7.2.0-ga1/tomcat-9.0.17/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Duser.timezone=GMT
2019-10-14 23:33:08.446 WARN  [main][DialectDetector:101] Liferay is configured to use Hypersonic as its database. Do NOT use Hypersonic in production. Hypersonic is an embedded database useful for development and demonstration purposes. The database settings can be changed in portal-ext.properties.
2019-10-14 23:33:08.457 INFO  [main][DialectDetector:159] Using dialect com.liferay.portal.dao.orm.hibernate.HSQLDialect for HSQL Database Engine 2.3
2019-10-14 23:33:15.103 INFO  [main][ModuleFrameworkImpl:1319] Starting initial bundles
2019-10-14 23:34:48.794 INFO  [main][ModuleFrameworkImpl:1596] Started initial bundles
2019-10-14 23:34:48.796 INFO  [main][ModuleFrameworkImpl:1631] Starting dynamic bundles
2019-10-14 23:35:15.810 INFO  [main][ModuleFrameworkImpl:1728] Started dynamic bundles
2019-10-14 23:35:15.810 INFO  [main][ModuleFrameworkImpl:398] Navigate to Control Panel > Configuration > Gogo Shell and enter "lb" to see all bundles
2019-10-14 23:35:26.964 WARN  [Elasticsearch initialization thread][EmbeddedElasticsearchConnection:288] Liferay is configured to use embedded Elasticsearch as its search engine. Do NOT use embedded Elasticsearch in production. Embedded Elasticsearch is useful for development and demonstration purposes. Refer to the documentation for details on the limitations of embedded Elasticsearch. Remote Elasticsearch connections can be configured in the Control Panel.    __    ____________________  _____  __
   / /   /  _/ ____/ ____/ __ \/   \ \/ /
  / /    / // /_  / __/ / /_/ / /| |\  /
 / /____/ // __/ / /___/ _, _/ ___ |/ /
/_____/___/_/   /_____/_/ |_/_/  |_/_/Starting Liferay Community Edition Portal 7.2.0 CE GA1 (Mueller / Build 7200 / June 4, 2019)2019-10-14 23:35:56.601 INFO  [main][StartupHelper:72] There are no patches installed
Loading jar:file:/C:/Program%20Files%20(x86)/liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761/liferay-ce-portal-7.2.0-ga1/tomcat-9.0.17/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
Loading file:/C:/Program%20Files%20(x86)/liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761/liferay-ce-portal-7.2.0-ga1/portal-ext.properties
Loading file:/C:/Program%20Files%20(x86)/liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761/liferay-ce-portal-7.2.0-ga1/tomcat-9.0.17/webapps/ROOT/WEB-INF/classes/portal-developer.properties
Loading file:/C:/Program%20Files%20(x86)/liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761/liferay-ce-portal-7.2.0-ga1/portal-setup-wizard.properties
2019-10-14 23:35:59.975 INFO  [main][AutoDeployDir:193] Auto deploy scanner started for C:\Program Files (x86)\liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761\liferay-ce-portal-7.2.0-ga1\deploy
2019-10-14 23:36:17.758 INFO  [main][ThemeHotDeployListener:108] 1 theme for classic-theme is available for use
2019-10-14 23:36:18.990 INFO  [main][ThemeHotDeployListener:108] 1 theme for admin-theme is available for use
2019-10-14 23:37:09.630 INFO  [main][SystemCheckOSGiCommands:54] System check is enabled. You can run a system check with the command "system:check" in Gogo shell.
2019-10-14 23:37:09.632 INFO  [main][SystemCheckOSGiCommands:64] Running system check
2019-10-14 23:37:09.633 INFO  [main][SystemCheckOSGiCommands:95] Available checkers :[Declarative Service Soft Circular Dependency Checker, Declarative Service Unsatisfied Component Checker, Spring Extender Unavailable Component Checker]
2019-10-14 23:37:09.635 INFO  [main][SystemCheckOSGiCommands:111] Running "Declarative Service Soft Circular Dependency Checker". You can run this by itself with command "ds:softCircularDependency" in gogo shell.
2019-10-14 23:37:12.838 INFO  [main][SystemCheckOSGiCommands:123] Declarative Service Soft Circular Dependency Checker check result: No issues were found.
2019-10-14 23:37:12.839 INFO  [main][SystemCheckOSGiCommands:111] Running "Declarative Service Unsatisfied Component Checker". You can run this by itself with command "ds:unsatisfied" in gogo shell.
2019-10-14 23:37:23.141 INFO  [main][SystemCheckOSGiCommands:123] Declarative Service Unsatisfied Component Checker check result: No issues were found.
2019-10-14 23:37:23.142 INFO  [main][SystemCheckOSGiCommands:111] Running "Spring Extender Unavailable Component Checker". You can run this by itself with command "dm na" in gogo shell.
2019-10-14 23:37:23.144 INFO  [main][SystemCheckOSGiCommands:123] Spring Extender Unavailable Component Checker check result: No issues were found.
14-Oct-2019 23:37:26.075 INFORMACIÓN [main] org.apache.catalina.startup.Catalina.start Server startup in [530.835] milliseconds
 How i see, at this moment there is no problem but when i try to stop i got the "Error: main class not found or loaded files" message again
  i check the logs but i cant find any more message, jut the similar printed in the console that everything is fine, i cant see any error. before deploy the server i set jdk resource as configuration window recommend instead of jre resource. thanks friend i hope you can help me again. Best regards.
thumbnail
Jiang Simon, modified 4 Years ago.

RE: Problem starting liferay tomcat in liferay developer studio 7 comunity

New Member Posts: 8 Join Date: 10/16/13 Recent Posts
I reproduced it and created jira ticket(https://issues.liferay.com/browse/IDE-4695)
Alex Cervantes, modified 4 Years ago.

RE: Problem starting liferay tomcat in liferay developer studio 7 comunity

New Member Posts: 6 Join Date: 10/11/19 Recent Posts
thank you very much Jiang, i hope the problem could be fixed shortly.Do you know how long it takes? or do you know about some liferay version that i can use for  the moment?.
I need to work with java 8  and i guess the liferay tomcat server that works with this version is  the 9, in my case i have the 9.0.17 exactly.thanks.
thumbnail
Yanan Yuan, modified 4 Years ago.

RE: Problem starting liferay tomcat in liferay developer studio 7 comunity

Junior Member Posts: 89 Join Date: 10/8/11 Recent Posts
Hello Alex,Thanks for bringing in this problem. Yours should work if using a location without space, I mean not using "Program%20Files%20(x86)" folder. Also, the ticket has already been fixed by Simon Jiang. The new release should be ready tomorrow. Please try to update using the latest updatesite file if you would like to have a try. Thanks.
thumbnail
Yanan Yuan, modified 4 Years ago.

RE: Problem starting liferay tomcat in liferay developer studio 7 comunity

Junior Member Posts: 89 Join Date: 10/8/11 Recent Posts
Hello, please try to download the new releases here https://liferay.dev/project/-/asset_publisher/TyF2HQPLV1b5/content/ide-installation-instructions, thanks.