Foren

Bundled Eclipse + Liferay IDE keeps endlessly starting L7.x server

Ra Jo Ga Cha, geändert vor 7 Jahren.

Bundled Eclipse + Liferay IDE keeps endlessly starting L7.x server

Junior Member Beiträge: 77 Beitrittsdatum: 19.01.17 Neueste Beiträge
This is a bit of feedback, server is properly working but it is still marked a "starting", so I can work with it but at the end of the timout it just stops. I can deal with it just giving hours of timeout but this should be fixed.
thumbnail
Andy Wu, geändert vor 7 Jahren.

RE: Bundled Eclipse + Liferay IDE keeps endlessly starting L7.x server

Regular Member Beiträge: 195 Beitrittsdatum: 05.05.15 Neueste Beiträge
yes , thanks for your feedback , We've fixed it and ide 3.1 m2 will be released soon ,just a few days .
Ra Jo Ga Cha, geändert vor 7 Jahren.

RE: Bundled Eclipse + Liferay IDE keeps endlessly starting L7.x server

Junior Member Beiträge: 77 Beitrittsdatum: 19.01.17 Neueste Beiträge
Hi again Andy,

I'm now working with milestone 2 but I'm still getting this problem. I'm able to work during the maximum time of startup (9999 seconds ~ 3.5 hours), but I've noticed other problems probably because of this, like saving a deploy of every plugin every time I restart the server (the L7 Tomcat bundle grow up from 400mb to 2GB in just 2 days of work with a single little plugin).

Ra Jo.
thumbnail
Andy Wu, geändert vor 7 Jahren.

RE: Bundled Eclipse + Liferay IDE keeps endlessly starting L7.x server

Regular Member Beiträge: 195 Beitrittsdatum: 05.05.15 Neueste Beiträge
sorry , I can't reproduce this issue and I guess if you don't deploy any plugin or module , the portal server will also grow up cause it's own cache mechanism.

Could you describe the steps to reproduce the endless starting problem ?
Ra Jo Ga Cha, geändert vor 7 Jahren.

RE: Bundled Eclipse + Liferay IDE keeps endlessly starting L7.x server

Junior Member Beiträge: 77 Beitrittsdatum: 19.01.17 Neueste Beiträge
It's just "creating" and initializing a server using a liferay-ce-portal-7.0-ga3, bundled with Tomcat. My PC is 64 bits capable but I have Java 32 bits (this shouldn't be a problem but...).
thumbnail
Gregory Amerson, geändert vor 7 Jahren.

RE: Bundled Eclipse + Liferay IDE keeps endlessly starting L7.x server

Liferay Legend Beiträge: 1123 Beitrittsdatum: 16.02.10 Neueste Beiträge
Do you have any custom host or custom port configuration in your Tomcat instance?
Ra Jo Ga Cha, geändert vor 7 Jahren.

RE: Bundled Eclipse + Liferay IDE keeps endlessly starting L7.x server

Junior Member Beiträge: 77 Beitrittsdatum: 19.01.17 Neueste Beiträge
Nope, all by default.
thumbnail
Andy Wu, geändert vor 7 Jahren.

RE: Bundled Eclipse + Liferay IDE keeps endlessly starting L7.x server

Regular Member Beiträge: 195 Beitrittsdatum: 05.05.15 Neueste Beiträge
can you share your PC environment here ?
like: os version and bit , jdk verion and bit and any detail that could be the problem.
Ra Jo Ga Cha, geändert vor 7 Jahren.

RE: Bundled Eclipse + Liferay IDE keeps endlessly starting L7.x server

Junior Member Beiträge: 77 Beitrittsdatum: 19.01.17 Neueste Beiträge
Windows 10.0.14393 64bits, java 1.8.0_112 32bits.
thumbnail
Andy Wu, geändert vor 7 Jahren.

RE: Bundled Eclipse + Liferay IDE keeps endlessly starting L7.x server

Regular Member Beiträge: 195 Beitrittsdatum: 05.05.15 Neueste Beiträge
yeah , got it ,I will try.

sorry after tried with liferay-ide-eclipse-windows-x32-3.1.0-m2-201702090100.zip , I still can't reproduce this issue.
thumbnail
Jennis Vaishnav, geändert vor 7 Jahren.

RE: Bundled Eclipse + Liferay IDE keeps endlessly starting L7.x server

Junior Member Beiträge: 59 Beitrittsdatum: 01.02.17 Neueste Beiträge
Andy Wu:
yeah , got it ,I will try.

sorry after tried with liferay-ide-eclipse-windows-x32-3.1.0-m2-201702090100.zip , I still can't reproduce this issue.



I'm not able to figure out whats taking "Ra jo" so long to start the server, I have windows 8 with 4gb of ram and same environment, server takes 4 to 5 minutes maximum to start, the first time installation time was about 73 minutes, including the setup of liferay IDE and tomcat startup. emoticon
Ra Jo Ga Cha, geändert vor 7 Jahren.

RE: Bundled Eclipse + Liferay IDE keeps endlessly starting L7.x server

Junior Member Beiträge: 77 Beitrittsdatum: 19.01.17 Neueste Beiträge
What more info can I sare with you? Some specific logs?

Jennis, the problem isn't server can't start, it's running flawlessly but in Eclipse it's still "starting" so I can use it for the maximum possible startup timeout time. A bit weird emoticon
thumbnail
Jennis Vaishnav, geändert vor 7 Jahren.

RE: Bundled Eclipse + Liferay IDE keeps endlessly starting L7.x server

Junior Member Beiträge: 59 Beitrittsdatum: 01.02.17 Neueste Beiträge
Hi Ra Jo,
If you dont mind then can I ask you, How you are starting the server ? Are you directly running startup.bat in bin folder?

I'm a newbie in liferay so i'm just curious to know how are u starting server other than eclipse, Because as u said eclipse is giving time-out error!
thumbnail
Gregory Amerson, geändert vor 7 Jahren.

RE: Bundled Eclipse + Liferay IDE keeps endlessly starting L7.x server

Liferay Legend Beiträge: 1123 Beitrittsdatum: 16.02.10 Neueste Beiträge
Here is what is going on. When we start the server it launches a new JVM. Then in a background thread we start pinging http://localhost:8080, or actually we read the 'hostname' property of the server and also we read the tomcat port setting in case you have modified it.

So if the server stays in 'starting' mode it is because our 'ping thread' was never able to see a response on 8080.

Some possible reasons are that the hostname is not configured correctly or it isn't finding the right port. You could try changing the hostname to 127.0.0.1 in case java is returning something weird for localhost.

Maybe what we can do is update the status messing to what hostname/port we are pinging so you can tell if we are hitting the wrong one.
thumbnail
Jennis Vaishnav, geändert vor 7 Jahren.

RE: Bundled Eclipse + Liferay IDE keeps endlessly starting L7.x server

Junior Member Beiträge: 59 Beitrittsdatum: 01.02.17 Neueste Beiträge
For the first time when I was setting up the server i was facing the error "server took to long to start up", by making right environment variables and correct setting up of java solved that problem.
Ra Jo Ga Cha, geändert vor 7 Jahren.

RE: Bundled Eclipse + Liferay IDE keeps endlessly starting L7.x server

Junior Member Beiträge: 77 Beitrittsdatum: 19.01.17 Neueste Beiträge
Jennis, I'm starting it by Eclipse. Newbie there too ;)

Gregory, it's returning nullpointers at startup and in the shutdown. I've changed the name from localhost to 127.0.0.1 but it's still returning same errors. I had a machine with a real deploy to work with, so this isn't a problem anymore for me and haven't much time to test more workarounds... If I find a gap I'll keep trying.

Jennis again, I think my environment variables are OK, but what do you refer with "correct setting up of java"? Can you share the environment variables you modified and those settings please?

Thanks to both emoticon
thumbnail
Andy Wu, geändert vor 7 Jahren.

RE: Bundled Eclipse + Liferay IDE keeps endlessly starting L7.x server

Regular Member Beiträge: 195 Beitrittsdatum: 05.05.15 Neueste Beiträge
hey Ra , as you said , it will return null pointer when starting and shutdown, it there any error log created in error log view , can you share it ?
Ra Jo Ga Cha, geändert vor 7 Jahren.

RE: Bundled Eclipse + Liferay IDE keeps endlessly starting L7.x server

Junior Member Beiträge: 77 Beitrittsdatum: 19.01.17 Neueste Beiträge
Hi, sorry for being this late, by any reason I've not been notitificated about new messages.

There aren't errors in the startup, it even shows the message of correct server startup:

15-Mar-2017 07:36:54.547 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 870434 ms
thumbnail
Jennis Vaishnav, geändert vor 7 Jahren.

RE: Bundled Eclipse + Liferay IDE keeps endlessly starting L7.x server

Junior Member Beiträge: 59 Beitrittsdatum: 01.02.17 Neueste Beiträge
Ra Jo Ga Cha:


15-Mar-2017 07:36:54.547 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 870434 ms



What is the default workbench jre in eclipse?
thumbnail
Jennis Vaishnav, geändert vor 7 Jahren.

RE: Bundled Eclipse + Liferay IDE keeps endlessly starting L7.x server

Junior Member Beiträge: 59 Beitrittsdatum: 01.02.17 Neueste Beiträge
Ra Jo Ga Cha:


Jennis again, I think my environment variables are OK, but what do you refer with "correct setting up of java"? Can you share the environment variables you modified and those settings please?



Can you please send the snippet of console, when you start the server.
Ra Jo Ga Cha, geändert vor 7 Jahren.

RE: Bundled Eclipse + Liferay IDE keeps endlessly starting L7.x server

Junior Member Beiträge: 77 Beitrittsdatum: 19.01.17 Neueste Beiträge
As I just said in the other response, it isn't showing anything strange or any error.