Foren

Launching Liferay / Tomcat with Eclipse Hangs

thumbnail
Gordon Augat, geändert vor 7 Jahren.

Launching Liferay / Tomcat with Eclipse Hangs

Regular Member Beiträge: 107 Beitrittsdatum: 16.08.06 Neueste Beiträge
I am using Eclipse Neon (4.6.1), Liferay IDE 3.0.1 and the Liferay / Tomcat bundle 6.2.

I can start Liferay / Tomcat from the command line without issues. It starts relatively fast and I can then verify portal is working using the browser and going to http://localhost:8080.

When I try to start the same Liferay / Tomcat bundle from Eclipse it hangs. The console output looks identical to the output when started from the command line, but it seems to be hanging. In the Eclipse progress window, it show that it is "Starting Liferay v6.2 CE Server...Preparing launch delegate..." and stays there at 100%. The console says the server is started, but I am unable to hit it with the browser at http://localhost:8080. The "Preparing launch delegate..." progress never goes away and the server is never started. It eventually times-out according to my timeout setting of 15 minutes.

I have tried everything at the following URL to no avail.

http://stackoverflow.com/questions/11371393/tomcat-not-starting-through-eclipse-timeout

Any solutions would be greatly appreciated.
thumbnail
Andy Wu, geändert vor 7 Jahren.

RE: Launching Liferay / Tomcat with Eclipse Hangs

Regular Member Beiträge: 195 Beitrittsdatum: 05.05.15 Neueste Beiträge
hey Gordon , I can't reproduce your problem, can you post your os version and jdk version here ? or your can try our latest release ide 3.1 m1. or you can move back to ide 2.x it will be ok.
thumbnail
Gordon Augat, geändert vor 7 Jahren.

RE: Launching Liferay / Tomcat with Eclipse Hangs

Regular Member Beiträge: 107 Beitrittsdatum: 16.08.06 Neueste Beiträge
So I was able to get things to work by creating a new eclipse workspace and setting everything up new. This has happened to me before and creating a new eclipse workspace seems to be the only fix.

So here are some info on my environment...

java.runtime.name=Java(TM) SE Runtime Environment
java.runtime.version=1.8.0_112-b15
java.specification.name=Java Platform API Specification
java.specification.vendor=Oracle Corporation
java.specification.version=1.8
java.vendor=Oracle Corporation
java.vendor.url=http://java.oracle.com/
java.vendor.url.bug=http://bugreport.sun.com/bugreport/
java.version=1.8.0_112
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Oracle Corporation
java.vm.specification.version=1.8
java.vm.vendor=Oracle Corporation
java.vm.version=25.112-b15

os.arch=amd64
os.name=Windows 7
os.version=6.1
thumbnail
Andy Wu, geändert vor 7 Jahren.

RE: Launching Liferay / Tomcat with Eclipse Hangs

Regular Member Beiträge: 195 Beitrittsdatum: 05.05.15 Neueste Beiträge
ok , good to know , ide will continue to ping http://localhost:port to check if server started and stop launch job and i think there may be some wrong settings about port , so the launch progress will never stop.
Revathi Vadlamudi, geändert vor 7 Jahren.

RE: Launching Liferay / Tomcat with Eclipse Hangs

Junior Member Beiträge: 82 Beitrittsdatum: 14.11.14 Neueste Beiträge
Same thing is happening with me with Liferay 7 upgraded database. But with lportal database it is working fine. So where is the problem exists?
thumbnail
Andy Wu, geändert vor 7 Jahren.

RE: Launching Liferay / Tomcat with Eclipse Hangs

Regular Member Beiträge: 195 Beitrittsdatum: 05.05.15 Neueste Beiträge
Hey Revathi , what do you mean by saying "upgraded database" , is it working well before you upgrade your database ?
Revathi Vadlamudi, geändert vor 7 Jahren.

RE: Launching Liferay / Tomcat with Eclipse Hangs

Junior Member Beiträge: 82 Beitrittsdatum: 14.11.14 Neueste Beiträge
Hello Andy,

Upgraded database means, I upgraded database from liferay 6.0.5 to 7. When I connected with database, I can not access any util, finder methods, where I get Null Pointer Exception. And problem with tomcat I solved it by upgrading eclipse.
thumbnail
Andy Wu, geändert vor 7 Jahren.

RE: Launching Liferay / Tomcat with Eclipse Hangs

Regular Member Beiträge: 195 Beitrittsdatum: 05.05.15 Neueste Beiträge
did you use any tool to upgrade database to 7 or just connect portal to old database ?
Revathi Vadlamudi, geändert vor 7 Jahren.

RE: Launching Liferay / Tomcat with Eclipse Hangs

Junior Member Beiträge: 82 Beitrittsdatum: 14.11.14 Neueste Beiträge
Yes, used upgrade tool to upgrade database to Liferay 7.
thumbnail
Andy Wu, geändert vor 7 Jahren.

RE: Launching Liferay / Tomcat with Eclipse Hangs

Regular Member Beiträge: 195 Beitrittsdatum: 05.05.15 Neueste Beiträge
ok got it , So it is ok now ? as you upgrade your eclipse. Also if you still want to use your old version of ide , you can delete the server in ide and re-add it and launch again.
Revathi Vadlamudi, geändert vor 7 Jahren.

RE: Launching Liferay / Tomcat with Eclipse Hangs

Junior Member Beiträge: 82 Beitrittsdatum: 14.11.14 Neueste Beiträge
No issue didn't resolve yet. Still getting null pointer exception when I try to call finder methods of service.xml from localserviceutil. When I inspect localserviceutil, getSerivce() is returning null. This issue occurs when I connect with liferay 6.0.5 to 7 upgraded database. But, when I connect with new liferay 7 database, it works fine. With the reference of below link. I tried with @Reference but no use.

https://web.liferay.com/community/forums/-/message_boards/message/82939211
Revathi Vadlamudi, geändert vor 7 Jahren.

RE: Launching Liferay / Tomcat with Eclipse Hangs

Junior Member Beiträge: 82 Beitrittsdatum: 14.11.14 Neueste Beiträge
Can anyone has solution for this?
thumbnail
Cody Burleson, geändert vor 6 Jahren.

RE: Launching Liferay / Tomcat with Eclipse Hangs

New Member Beiträge: 3 Beitrittsdatum: 31.01.17 Neueste Beiträge
I had the same problem and what fixed it for me was:
  • Double-click the server in the Servers view of the IDE to open its editable configuration
  • Make sure the host name is 'localhost'
  • Under Liferay Account, make sure the Username and Password are both set
  • Save the server configuration changes
  • Start the server from within the IDE

In my case, I am not sure whether it was the fact that my host name was not localhost my Liferay Account password was missing, but I suppose it was one of the two (if not just touching the server config file).
thumbnail
Andy Wu, geändert vor 6 Jahren.

RE: Launching Liferay / Tomcat with Eclipse Hangs

Regular Member Beiträge: 195 Beitrittsdatum: 05.05.15 Neueste Beiträge
Thanks for your solution Cody.