Liferay restart issue - java

I am a noob. I just downloaded the liferay with jboss 7.0.2. I had it installed on mt laptop by watching the youtube. I got it started by just using command line console. I successfully got it setup and running on the localhost. I turned off the command line console after I got it done.
Then I tried to open it one the browser by the localhost and it is not working now. Now I cant go back to the platform.
I tried to go under the cmd again and enter
{the folder}\jboss-7.0.2\bin\standalone.bat
It shows me that it was calling another file called "standalone.conf.bat"
Now my environmental variables are
JAVA_HOME C:\Program Files\Java\jdk1.7.0_04\bin
JAVA C:\Program Files\Java\jdk1.7.0_04\bin
I need to start the thing start.. please help me

If you working with Tomcat (as per your last comment), then you should go to bin/startup.bat file (windows) or startup.sh (linux).
Now :
1) If your console does not start, that means, either some problem with tomcat configuration (CATALINA_HOME variable) or java configuration (JAVA_HOME)
2) If it starts, but hangs when configuration of data (default sql scripts), then there is a problem with database configuration that you did in portal.properties file, or default HS SQL DB.
3) If it hangs somewhere else, there must be some issue with the default port of the server.
Hope this helps.

Related

Apache Tomcat will not start on Mac

I cannot get Apache Tomcat to start. I followed the instructions for installing Tomcat on the Mac found at https://www.dev2qa.com/how-to-install-tomcat-in-macos/.
After I type the command to start Tomcat, the response from the command line is that Tomcat has started.
However, when I go to the browser, the default page is not showing up. I further checked to see if the port was being used by using the command
lsof -nP -i4TCP:8080 | grep LISTEN
which showed that no program is using the port. I also read the 'RUNNING.txt' that instructed me on setting the environmental variables, which I did. Any suggestions on why Tomcat is not starting up.
I'm using jdk 1.8.0_202 and Apache Tomcat 9.0.14 that is running of Mac OS High Sierra.
BatChmod
After downloading a fresh version of Tomcat, I use the BatChmod app to alter the file permissions. Tomcat will not launch properly without altering the permissions.
I do not know the command-line equivalent, but here is a screenshot of the settings I have used for years successfully.
Plea for help
If anyone can write the equivalent as a shell script for macOS, please post!
Even better, explain how to wrap such a script as an AppleScript for drag-and-drop execution in Finder.
The problem turned out to be a permissions problem. When I installed Tomcat, I put the folder in the '/Library/Tomcat' directory. Even though the Tomcat files were changed to be executable, the user and group ownership remained the same. To get Tomcat to run, I moved the directory to 'Users/MyUserName/Tomcat'. Once I did that, the default Tomcat page ran.

Weblogic configuration wizard fails to start

I have the Oracle Weblogic 12.1.3 and the installation went well and the server was starting successfully. But now It fails to start for some unknown reason. It had problems with the base domain that I created in the setup. So now I'm trying to set up a new domain. But the problem is that the configuration wizard fails to start. I've tried running it with Run as Administrator but the cmd just pops up and disappears. I tried to reinstall the Weblogic server from start and even that didn't solve the problem. The part where the configuration wizard starts I got the same issue. I've also tried running it from command prompt itself but the same thing happens. I have also tried this:
config.cmd -mode=console
and in the cmd it says
Files/Microsoft went wrong this time
and also running it in "text" mode like this
config.sh -mode=console
but it fails to start. and shows the following:
What could be the problem and the fix for this? I'm running Windows 7
There was some discrepancy in the path variable of the environmental variables. Re-arranged the path values and inserted/removed quotes from some values and added that path value containing Files/Microsoft int the end(which was added by Microsoft VS Code). This solved the problem.

HTTP Status 500 - Could not get next sequenced ID for sequence name: Visitor

I am trying to run ofbiz on by local machine(localhost) and my operating system is ubuntu 14.04. Till now I have installed JRE, JDK and apache ant and my system also contains apache server and running.Then went to directory contains build.xml and run following command
sudo ant run-install
Then replace new build.xml file and run following command
ant load-demoant start
Then server will starts and code is accessible with url https://localhost:8443/ecommerce/control/checkLogin and everything is working fine.Now issue is on next day when i start server with same ant start command server starts fine but on accessing it starts giving me error likeHTTP Status 500 - Could not get next sequenced ID for sequence name: Visitor. Screen shot of error is added below:
I am new to ofbiz please help me find:
1.Why this is error coming on previously worked code?
2.How to solve this issue?
Thank you in advance.
I got same issue when i tried to run ofbiz with ant on ubuntu.Ofbiz uses derby as database by default and connection files are available in your project directory. This issue comes when code not able to connect with database because inaccessibility of connection file.In my case, It is due to file permission. Check if you have file permission to all your files as it solves mine.
cd path/to/your/ofbiz/foldersudo chmod 777 -R your project name
You can change permissions from above according to your need and security.
Maybe late to the game, but for a better experience ask such questions in the user ml of the Apache OFBiz project, see here how to connect to more OFBiz experts: https://ofbiz.apache.org/mailing-lists.html

My Tomcat is not running it just open and close when I click on tomcat7.exe [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 2 years ago.
Improve this question
I am installing Tomcat 7 in my PC it works in Eclipse but when I try to open in bin/ tomcat7.exe it just open and closes, (I am stopping the server in Eclipse). Also, in Eclipse I'am trying to open admin console like URL:(localhost:1234/admin) it shows 404 error. Can anyone who knows this problem explain a solution?
If you are using Windows, you can follow the following to run tomcat7.exe :
Open your Command prompt (cmd)
Set your JAVA_HOME or JRE_HOME. Eg. set JRE_HOME=C:\Program Files\Java\jre7
Go to the directory of your tomcat. Eg. cd C:\Program Files\apache-tomcat-7.0.35\bin
Run startup.bat file. Eg. startup.
This should start your tomcat server without using Eclipse.
First Set JAVA_HOME and CLASSPath path
For Windows Java Path Settings
Right click on Computer and open Properties.
In Windows Vista or Windows 7, go to Advanced System Settings.
Else go to next step. Go to Advanced Tab and click on Environment
Variables button.
Select CLASSPath under the list of System Variables, and press Edit and add If CLASSPath not available there click New button add
C:\Program Files\java\jre 1.x.x_xx\bin
after a semicolon.
Now click on New' button under system variables and enter
JAVA_HOME as variable name and path to jdk home directory (ex.
C:\Program Files\Java\jdk1.x.x_xx
After Completing Java Path Settings
Go to the directory of your Tomcat. Eg. cd C:\Program
Files\apache-tomcat-7.0.35\bin
Run startup.bat file
To start your application server in Windows :
Open command prompt .(Run as Administrator).
Go to the path (..\apache-tomcat-8.0.27\bin) and run startup.bat
A new command prompt opens up and should stay unclosed to tell your server is in running state.
If command prompt opens and closes automatically, then the reason can be as below.
tomcat is already in started state in Eclipse.
Check the connector port configured in server.xml file and check if that port is free in your local machine. [netstat command]
Change the connector port to some unused port, preferably in 80XX series.
Let me know if you are able to invoke localhost:(the http connector port) you have configured in server.xml through you web browser.
You don't start Tomcat by double clicking the exe, use the batch files instead.
startup.bat starts the server, shutdown.bat stops it again.
And ignore the advise to get the service installer. You don't need those unless you want the server to start on system boot and run in the background. Which you don't want unless you're going to configure a production server, which you aren't here.
The batch files are in the same directory on your computer as the exe.
you have to set JAVA_HOME and JRE_HOME in System environment.while setting the JAVA_HOME and JRE_HOME, you should assure that JRE path that you are setting is corresponding to the JDK whose path you have set in JAVA_HOME. some time what happens that there may be more than one JDK in the system so conflict occurs. better to have only one JDK and corresponding JRE.
This is probably due to a bad setup of an environment variable.
For example, if you setup incorrect JAVA_OPTS, tomcat startup will fail.
You can check your configuration by calling : catalina configtest
Here an example of the output for bad setup of JAVA_OPTS :
Error occurred during initialization of VM Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
It works for me after updating the jdk path in JAVA_HOME compatible to your tomcat version in user Variables.
the JAVA_HOME and JRE_HOME environment variables set should not have semicolon or ; at the end...I was facing similar problem...removed semi-colon or ; from the end and tomcat server started from cmd screen after running startup command(of tomcat..bin folder).
I checked environment variables and compiler version everything was fine, deleting junk files from work folder worked for me.
Just download the tomcat 32-bit/64-bit Windows Service Installer (pgp, md5) as in this set up is given which will install tomcat on your PC and you can also start and stop tomcat using the tomcat service.
In my experience tomcat7 might not like it if JAVA_PATH or JDK_PATH contain bracket symbols like in "Program Files (x86)". Make sure you format path in your environmental variables correctly or move your JDK to another folder.
In my case, I had some reference to a jar file in catilana.bat, but the jar I had removed from my system. Tomcat started successfully once I removed that reference from catilana.bat
Check your JRE_HOME location in environment variables. if it didn't work then try
1). Open CMD in administration mode.
2). locate to your tomcat directory.
3). run startup.bat --->> It will show your problem.
Had the same problem with Apache Tomcat 9 version.
Solution is very simple.
Apache Tomcat 9 is supported by Java 8 and later versions. So, I had JRE_HOME with JRE7 path, I binded it to new JRE8 and everything works fine.
Different versions of Apache Tomcat are available for different versions of the Servlet and JSP specifications. The mapping between the specifications and the respective Apache Tomcat versions is:

Glassfish timeout

When a try to start glassfish from within Eclipse the following error occurs:
Unable to start server on time. java.util.concurrent.TimeoutException
And when a try to start via asadmin start-domain or asadmin start-domain domain1 it remains loading and never stops.
Anyone can help me?
Perform the following two steps:
Go to the folder where you store the Glasfish.
Example: My folder is C:\Program Files (x86)\glassfish-4.0\glassfish\bin.
Double click on startserv.bat and wait a few seconds and it will work.
I had the same problem and I solved it like the following :
try to update the GlassFish tools from the Eclipse MarketPlace, and
get the latest update , and check eclipse for any updates .
restart Eclipse , "I don't know why , but it works " .
I was facing the same issue with my Glassfish 4.0 server, I did googled but didn't worked out for me.
You can manually deploy your web application by exporting your project as .war file and then using Glassfish GUI (http://localhost:4848) deploy your application and then access it.
Open the GlassFish Server configuration by double clicking on your server instance in your server windows. You shall find a Timeout section. Expand it and increase the time limit to complete server operations in the Start section. This should work.

Categories