Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
maryam maryam masoudy
how can i see content of console ?window of console by itself is closed
December 30, 2012 1:50 AM
Answer

maryam maryam masoudy

Rank: Regular Member

Posts: 149

Join Date: October 30, 2011

Recent Posts

hi all friends
i am up grade liferay5 to liferay 6.0 from this link
http://www.liferay.com/community/wiki/-/wiki/Main/Upgrade+Instructions+from+5.2+to+6.0
when i startup liferay 6.0 whit database 5 after some times console close automatic and i i can not see exception or errors
how can i see content of console ? Window by itself is closed
i startup liferay in windows i have not catalina.out in folder 's logs
Hitoshi Ozawa
RE: how can i see content of console ?window of console by itself is clos
December 30, 2012 2:42 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Have you checked \liferay-portal-6.1.0-ce-ga1\logs folder to see if there's any liferay-.log files?
Jelmer Kuperus
RE: how can i see content of console ?window of console by itself is clos
December 30, 2012 2:44 AM
Answer

Jelmer Kuperus

Rank: Liferay Legend

Posts: 1192

Join Date: March 10, 2010

Recent Posts

If you start with

1./catalina.sh run


The window won't close

also there's the log files in tomcat/log
maryam maryam masoudy
RE: how can i see content of console ?window of console by itself is clos
December 30, 2012 10:20 PM
Answer

maryam maryam masoudy

Rank: Regular Member

Posts: 149

Join Date: October 30, 2011

Recent Posts

i work with windows 7 i can do ./catalina.sh run !!
files in folder log is not complete for me
i want content of console like catalina.out when we run liferay in server linux
Hitoshi Ozawa
RE: how can i see content of console ?window of console by itself is clos
December 31, 2012 12:35 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

If you're running on Windows 7 (I'm typing this now running on Windows 7 64 bit machine), just go to the tomcat bin folder and press the Shift key and right click the mouse button. A context menu should appear with "Open command window here". Select that. Type "startup.bat" without the quotes.
Jelmer Kuperus
RE: how can i see content of console ?window of console by itself is clos
December 31, 2012 1:39 AM
Answer

Jelmer Kuperus

Rank: Liferay Legend

Posts: 1192

Join Date: March 10, 2010

Recent Posts

on windows you use

1catalina.bat run
maryam maryam masoudy
RE: how can i see content of console ?window of console by itself is clos
December 31, 2012 2:18 AM
Answer

maryam maryam masoudy

Rank: Regular Member

Posts: 149

Join Date: October 30, 2011

Recent Posts

thanks Hitoshi and Jemler
your guidance was very good and particular
maryam maryam masoudy
RE: how can i see content of console ?window of console by itself is clos
December 31, 2012 4:33 AM
Answer

maryam maryam masoudy

Rank: Regular Member

Posts: 149

Join Date: October 30, 2011

Recent Posts

hi
i do your coammand but
catalina.2012-12-31.log have not good content , i leave this for u

tomacat window has very error but i can not save completely this
emoticon
emoticon
Attachments: catalina.2012-12-31.log (3.7k)
Jelmer Kuperus
RE: how can i see content of console ?window of console by itself is clos
December 31, 2012 5:28 AM
Answer

Jelmer Kuperus

Rank: Liferay Legend

Posts: 1192

Join Date: March 10, 2010

Recent Posts

java.net.BindException: Address already in use: JVM_Bind <null>:8080


means you still have another instance running in the background
Sushil Saini
RE: how can i see content of console ?window of console by itself is clos
December 31, 2012 5:34 AM
Answer

Sushil Saini

Rank: Regular Member

Posts: 104

Join Date: July 27, 2011

Recent Posts

Hi Maryam,

Your log file is showing the error of port 8080 is already in use. Means in you windows machine some other process is using the 8080 port.

There are two ways to solve this process. Either kill the process running on the port 8080 or change the port of the liferay server to some other port.

To find which process is running on 8080 port in window machine you can use following command
netstat -ab

And then you can kill the process by going in the task manager or by taskkill command.


Second thing for changing the port of the liferay-tomcat bundle, you can change it in the server.xml.
Hitoshi Ozawa
RE: how can i see content of console ?window of console by itself is clos
December 31, 2012 5:38 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

You really should study MS Windows because this is a very basic MS Windows command operation.

Just redirect the output. Following will redirect the output to the file liferay.log file. You'll need to check the content of this file and use Ctrl + C to terminate liferay.
catalina.bat run 1>liferay.log 2>&1
Hitoshi Ozawa
RE: how can i see content of console ?window of console by itself is clos
December 31, 2012 4:24 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

on windows you use

catalina.bat run


Thanks jelmer. startup.bat will open a new window. To execute within the same window, use "catalina.bat run". emoticon