留言板

Tomcat not running properly

amol sarang,修改在12 年前。

Tomcat not running properly

New Member 帖子: 10 加入日期: 12-2-29 最近的帖子
Hi Everyone,

I am new in Liferay Portal. I have set environment variable properly .I have liferay tomacat bundle installed .But when i start the tomcat(double click on startup.bat) window opens and closes immadiately. Tomcat is not starting properly.
I am confused why this happens?

please guide me to start the tomcat server.

Thanks,
Amol
thumbnail
David H Nebinger,修改在12 年前。

RE: Tomcat not running properly

Liferay Legend 帖子: 14914 加入日期: 06-9-2 最近的帖子
Open a command prompt and manually start the startup.bat. Any errors will be displayed and the window will not close automatically.
amol sarang,修改在12 年前。

RE: Tomcat not running properly

New Member 帖子: 10 加入日期: 12-2-29 最近的帖子
Thanks a lot for quick reply David.I tried using command prompt . but i am facing the same problem.Tomcat window is closing immeadiately. still not able to start Tomcat.
i have to set.I have set:

Variable: JAVA_HOME
Value:C:\Program Files\Java\jdk1.6.0_13

does we need to set the Classpath?or if what the value of Classpath?
or any other variables required.

Thanks in advance,
Amol
thumbnail
Hitoshi Ozawa,修改在12 年前。

RE: Tomcat not running properly

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
Check catalina.xxxx-xx-xx.log files under liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\logs

See if there is any errors there.
amol sarang,修改在12 年前。

RE: Tomcat not running properly

New Member 帖子: 10 加入日期: 12-2-29 最近的帖子
Hi Hitoshi,

Sorry For late Reply.I have checked the logs directory but its empty.
and problem is still there.Not getting what the problem is.emoticon


Thanks,
Amol
thumbnail
Hitoshi Ozawa,修改在12 年前。

RE: Tomcat not running properly

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
Which version of Windows are you using? Are you running console in Administration mode?

Are you starting up Liferay by %tomcat%\bin\startup.bat
thumbnail
Hitoshi Ozawa,修改在12 年前。

RE: Tomcat not running properly

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
From the command prompt, enter the following:
java -version

If the version of java displays property, type the following:
echo %JAVA_HOME%
thumbnail
afreen shaik,修改在9 年前。

RE: Tomcat not running properly

New Member 帖子: 7 加入日期: 15-2-17 最近的帖子
hi everyone,
Iam new to liferay field..i installed liferay6.2. in Windows8.1(64bits)
my error is when i used to run the "startup.bat" cmd the window is opened and closed immediately...
firstly i set the environment variable to var-name="JAVA_HOME" and value="C:\Program Files\Java\jdk1.6.0_43\bin"
then i got error is JRE_HOME environment variable is not defined correctly.this environment var is needed to run the program....

now i changed to var-name="CATALINA_HOME" and value="C:\Program Files\Java\jdk1.6.0_43\bin"
then i got error is CATALINA_HOME environment variable is not defined correctly.this environment var is needed to run the program....

now please help me to sort the issue...
Thanks in advance
Afreen.shaik
thumbnail
David H Nebinger,修改在9 年前。

RE: Tomcat not running properly

Liferay Legend 帖子: 14914 加入日期: 06-9-2 最近的帖子
JAVA_HOME should not point to the bin directory, it should be the home of the installation. Same with CATALINA_HOME.
thumbnail
afreen shaik,修改在9 年前。

RE: Tomcat not running properly

New Member 帖子: 7 加入日期: 15-2-17 最近的帖子
thanks for reply....but still it is not working
thumbnail
David H Nebinger,修改在9 年前。

RE: Tomcat not running properly

Liferay Legend 帖子: 14914 加入日期: 06-9-2 最近的帖子
the next step would be to open a command prompt in the CATALINA_HOME\bin directory and from there do a ".\startup.bat" command. Instead of flashing and going away you should see whatever message is blocking you.
thumbnail
afreen shaik,修改在9 年前。

RE: Tomcat not running properly

New Member 帖子: 7 加入日期: 15-2-17 最近的帖子
thanks for reply.......please find the attachment and sort the issue
thumbnail
David H Nebinger,修改在9 年前。

RE: Tomcat not running properly

Liferay Legend 帖子: 14914 加入日期: 06-9-2 最近的帖子
sorry, docx is a private format prone to virus distribution. Please repost as text or something.
thumbnail
Olaf Kock,修改在9 年前。

RE: Tomcat not running properly

Liferay Legend 帖子: 6396 加入日期: 08-9-23 最近的帖子
David H Nebinger:
the next step would be to open a command prompt in the CATALINA_HOME\bin directory and from there do a ".\startup.bat" command. Instead of flashing and going away you should see whatever message is blocking you.


Does "startup.bat" do this or rather "catalina.bat run"?

+1 for pure text requirement. It's most likely just a few lines that could easily be pasted in the message body anyway
thumbnail
David H Nebinger,修改在9 年前。

RE: Tomcat not running properly

Liferay Legend 帖子: 14914 加入日期: 06-9-2 最近的帖子
Olaf Kock:
Does "startup.bat" do this or rather "catalina.bat run"?


I think it's 6 of one, a half dozen of the other in most cases.

For the OP's case she has JAVA_HOME mapped to all the wrong places, CATALINA_HOME also mapped incorrectly, so those are my guess as to what's wrong.

When those work it's typically JVM related (i.e. wanting more memory than available, those kinds of things) and when startup.bat is used you just get the flashing window and need to switch to "catalina.bat run".

For those unaware, basically startup.bat invokes the command "catalina.bat start".

The difference between the start and run arguments, start is used to launch the background Tomcat process whereas run will launch the foreground Tomcat process that outputs within the console.

The second makes it easy to see the transition from windows issues into java issues without the flashing window, but it's sometimes more than what a newbie needs to understand.
thumbnail
afreen shaik,修改在9 年前。

RE: Tomcat not running properly

New Member 帖子: 7 加入日期: 15-2-17 最近的帖子
thanks for reply,,,,,,,but still it is not working.....same error was repeated
thumbnail
David H Nebinger,修改在9 年前。

RE: Tomcat not running properly

Liferay Legend 帖子: 14914 加入日期: 06-9-2 最近的帖子
what error? no error was listed? If you're talking about the one in the word doc, well then strip it out and paste it here...
thumbnail
afreen shaik,修改在9 年前。

RE: Tomcat not running properly

New Member 帖子: 7 加入日期: 15-2-17 最近的帖子
hi....,
now my liferay is working.....
my problem was i didnt set the environment variable path...i rectified my error...
thanks for helping me...


please suggest me the links to develop the applications in liferay....
thanks in advance
Afreen.Shaik
thumbnail
David H Nebinger,修改在9 年前。

RE: Tomcat not running properly

Liferay Legend 帖子: 14914 加入日期: 06-9-2 最近的帖子
Purchase and read Liferay in Action.
thumbnail
Wilson Man,修改在9 年前。

RE: Tomcat not running properly

Liferay Master 帖子: 581 加入日期: 06-6-21 最近的帖子
afreen shaik:
now i changed to var-name="CATALINA_HOME" and value="C:\Program Files\Java\jdk1.6.0_43\bin"
then i got error is CATALINA_HOME environment variable is not defined correctly.this environment var is needed to run the program....


Not sure if this is just a typo, or that you've already fixed, but CATALINA_HOME should not be set to your JDK bin.

CATALINA_HOME should point to your top level tomcat home directory (for most cases).
thumbnail
afreen shaik,修改在9 年前。

RE: Tomcat not running properly

New Member 帖子: 7 加入日期: 15-2-17 最近的帖子
Wilson Man:
afreen shaik:
now i changed to var-name="CATALINA_HOME" and value="C:\Program Files\Java\jdk1.6.0_43\bin"
then i got error is CATALINA_HOME environment variable is not defined correctly.this environment var is needed to run the program....


Not sure if this is just a typo, or that you've already fixed, but CATALINA_HOME should not be set to your JDK bin.

CATALINA_HOME should point to your top level tomcat home directory (for most cases).



hi,,
while setting environment variable path->
in user variable window->
after clicking add button.Var name="JAVA_HOME" and value="C:\Java\jdk1.7.0_75"and again adds
var-name="PATH" and value="C:\Java\jdk1.7.0_75\bin" saved
then,
i run the startup.bat file
now it is working.....

nw iam looking for the developer links....please suggest me the links

thanks in advance
Afreen.shaik
thumbnail
Wilson Man,修改在9 年前。

RE: Tomcat not running properly

Liferay Master 帖子: 581 加入日期: 06-6-21 最近的帖子
Take a look here first: dev.liferay.com
thumbnail
afreen shaik,修改在9 年前。

RE: Tomcat not running properly

New Member 帖子: 7 加入日期: 15-2-17 最近的帖子
thanq wilson........
thumbnail
Anil Sunkari,修改在12 年前。

RE: Tomcat not running properly

Expert 帖子: 427 加入日期: 09-8-12 最近的帖子
Not a good idea .. but just try wether you are able to start the app after doing the below steps.

1) Goto environment variables
2) create "CATALINA_HOME" & set the path till tomcat folder
3) try it now.

Thanks,
Anil Sunkari
amol sarang,修改在12 年前。

RE: Tomcat not running properly

New Member 帖子: 10 加入日期: 12-2-29 最近的帖子
Hi Anil,

Thank you very much for your reploy.
I already set CATALINA_HOME variable.But now the interesting thing is my Laptop had 512MB RAM.And when I run the startup.bat server was running for a while and system get restarted(some blue screen coming).So i have changed RAM to 2GB. And then when i run startup.bat its not starting the server.
So i reinserted 512MB of RAM and i have deleted sevencogs-hook folder from web-apps directory of tomcat.
And finally its starting the server properly.and I am able to see the Liferays home page.
But its too slow.I dont know whats the problem is(whether it is because of RAM or something else)

Anyway its working now.
Thanks a lot to all of you.

Thanks,
Amol
thumbnail
Anil Sunkari,修改在12 年前。

RE: Tomcat not running properly

Expert 帖子: 427 加入日期: 09-8-12 最近的帖子
Cool .. good to here this news & congratess .Yes you should have better ram configuration.Please refer the below url for exact requirements to work on liferay.

http://www.liferay.com/services/training/topics/portal-administrator-training (Look at bottome right corner box named as "Requirements")

I mean to say you can take this as reference atleast.
Regards,
Anil Sunkari
thumbnail
Hitoshi Ozawa,修改在12 年前。

RE: Tomcat not running properly

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
Open up Task Manager and look at the total physical memory to make sure you really have that much memory.
Sanjay Bandhnaiya,修改在4 年前。

RE: Tomcat not running properly

New Member 帖子: 5 加入日期: 19-12-24 最近的帖子
I have solve it by removing JAVA_OPTS.