eclipse,tomcat,liferay,tomcat7,liferay-6 , Liferay homepage is not found after starting the server in Eclipse


Liferay homepage is not found after starting the server in Eclipse

Question:

Tag: eclipse,tomcat,liferay,tomcat7,liferay-6

I have set up a Liferay Tomcat Server in Eclipse. After the server starts and I go to localhost:8181 (where I configured the server), the page is empty. Also, if I right click the server in Eclipse and select Open Liferay Portal Home, a 404 Page Not Found is displayed.

When I start the server outside Eclipse, with startup.bat, the page loads just fine.

Does anyone have a clue about why this might happen?


Answer:

This answer assumes you're using Liferay IDE in Eclipse. It might be accurate even if you're not.

Try making your edits in the Eclipse workspace's server.xml file. The workspace should have a Servers folder, with your Tomcat Liferay server underneath it. The path in my workspace is as follows:

eclipse-luna-workspace/Servers/Liferay v6.2 CE Server (Tomcat 7) at localhost-config

Underneath the directory for the server are copies of the Tomcat configuration files, including server.xml. Make your edits to this server.xml file, restart your server in Eclipse, and Eclipse should copy it to the Tomcat instance at startup.


Related:


Eclipse Layout: static instead of relative values?


android,eclipse,layout
I have a layout with two Buttons. One button is in the Center of the left half, and the other button is in the Center of the right side. But I use relative values (left="60dp" etc.). How can I have the same result with static values? Because I don't want...

Modify ivy classpath entry


java,eclipse,eclipse-plugin,ivy,ivyde
In the picture below, I want Ivy settings path to NOT include ${ivyproject_loc} Property Files to NOT include ${project_loc} Here is what I have right now. I was thinking it might be easier to remove the ivy library and add it the way I want it. I know how to...

Spring Roo Shell in Eclipse: Could not create sts.roo.ui.rooShellView


eclipse,spring-roo,spring-tool-suite
IDE: springsource-tool-suite-3.6.4.RELEASE-e4.4.2 / eclipse-4.4.2 with sts-3.6.4.201503051146-RELEASE IDE Plugin: Spring IDE Roo Support v3.6.4.201503051146-RELEASE (via Eclipse Marketplace) Maven project configuration for Eclipse AJDT v0.14.0.201302011330 (via http://dist.springsource.org/release/AJDT/configurator/) Spring Roo: spring-roo-1.3.1.RELEASE / spring-roo-2.0.0.M1 Reproduce Step: import project created by Spring-Roo into eclipse right click project choose "Spring Tools" click "Open Roo Shell"...

Compilation Error on maven


java,eclipse,maven,maven-plugin
Working on maven project. I m trying to build using maven but I m getting the following error! I m working on eclipse using JDK 8. Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) I also tried the above solution, but still I m getting error! [INFO] Scanning for projects... [INFO] [INFO]...

Why does Eclipse reference a 1.4 JRE?


java,eclipse
When attempting to create a new Java Project, eclipse is telling me that the workspace is using a 1.4 JRE (see screenshot). Any ideas why it might be saying this? I don't even have a 1.4 JRE installed on my machine. I'm using GGTS 3.5.1 on Juno 3.8.2. My GGTS.ini...

Not Able to consume external RestFul web service from Client in Eclipse or from restclient-ui


java,eclipse,web-services,restful-url,rest-client
I am not able to consume RESTful webservice from client. I have written in eclipse, even not able to consume it from restclient-ui, but can access sample RESTful web service which is running in my location web logic server. I am in Corporate/company Network. Getting error Connection Time out exception....

Scala running issue on eclipse


eclipse,scala
I configured everthing within eclipse for scala. I create a snippet to show you the issue, i can't see in run options run as scala application, i also tried to find my main class under build configuration option but i can't find it. How i can solve it?...

Meaning of connectionTimeout in tomcat


java,eclipse,tomcat
What does that parameter mean for tomcat. It was declared in server.xml as follows: <Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/> So, I tried to change it <Connector connectionTimeout="2" port="8080" protocol="HTTP/1.1" redirectPort="8443"/> and didn't notice any effect. I expected that each page the load takes for more than 2 milliseconds would produce...

Mysterious claim of a missing { in eclipse


java,eclipse
I have a case of a mysterious missing curly brace that I don't see any use for. Eclipse says, "Syntax error on token ";", { expected after this token". Either I am missing something very silly or there is something new I have to learn about Java. This is the...

Tomcat support for HTTP/2.0?


tomcat,https,tomcat7,tomcat8,http2
Does anyone know what is the lowest version of Tomcat that supports HTTP/2.0? I've been looking everywhere on their site and I cannot find any details regarding this.

Java eclipse I want to open the form like tab [on hold]


java,eclipse
Java eclipse: I want to open the form as shown below http://i.stack.imgur.com/U0wT5.png...

Java: unhandled exception


java,eclipse,exception,exception-handling,try-catch
I would like to handle an exception but the Eclipse editor is giving me tips which I'm not understanding. This is the method's code: public Collection<String> listOfFriends(String codePerson) throws NoSuchCodeException { Collection<String> s = new LinkedList<>(); try { people.get(codePerson).getFriendsCodes().forEach( code -> s.add(getPerson(code))); } catch (Exception e) { e.printStackTrace(); } return...

Remote debugging tomcat with OpenShift


eclipse,tomcat,openshift,remote-debugging
I am using openshift for my tomcat webapp. I am able to run the app but unable to debug it. As openshift starts tomcat in debug mode, I was expecting I'll be able to debug. Host: $OPENSHIFT_JBOSSEWS_IP Value of this is 127.5.20.129 for me which I got from command: rhc...

How to use a local tomcat version with maven


java,maven,tomcat
This may have been asked before (if it is please link me), but when I search I'm finding a bunch of how to run maven on tomcat, how to hook up an IDE to do this (nearly all of them are ide / configuration questions), how to use maven plugin...

Eclipse not compiling because of ClassNotFoundException


java,eclipse,amazon-web-services,compilation,aspectj
After following an AWS tutorial for Eclipse, my code no longer compiles and runs. I decided to undo what the tutorial told me, so I may have changed some settings that I forgot to unchanged but I really cannot find the root of my problem. Eclipse seems to be back...

How to shutdown a Tomcat's instance that wont shutdown? [duplicate]


java,tomcat,netbeans,tomee
This question already has an answer here: TomEE starts but Netbeans gives “Failed to start” error 3 answers I'm trying to use a new installation of TomEE as a local server in Netbeans but there's another instance of Tomcat that will never shutdown no matter how many times I...

how to manage multiple war application in tomcat server?


java,maven,tomcat,servlets
I use tomcat as web server,I want to deploy many same war file in tomcat server with different config. How to do this in the best way possible manner? So I want to run tomcat server per each war application, my means is tomcat1 handle the .war1 in webapp and...

How to find references to a class that's referenced indirectly via exported jar in Eclipse?


java,eclipse
I have two Eclipse projects, Project_A and Project_B. Project_B is compiled and exported as a .jar file that's used by Project_A. Is there a way to select a class in Project_B and find all references to it in both Project_A and Project_B? Normally I'd use "Find all References" (Ctrl +...

What are my next steps on finding the cause of this exception?


java,android,eclipse,debugging
I'm fairly new to Eclipse, Java, and Android programming. I've taken over development of an Android application. Someone has made a change several months ago that is causing the application to crash (exception) in code that is not part of the application code. I don't have any idea where or...

Unfortunately, (My app) has stopped. Eclipse Android [duplicate]


java,android,eclipse,adt
This question already has an answer here: What is a Null Pointer Exception, and how do I fix it? 12 answers I'm a beginner in android developing and I'm trying to build a simple app but I'm getting this error in the emulator.(Unfortunately,(App) has unexpectedly stopped). LogCat http://i.stack.imgur.com/VZhuL.png package...

Eclipse CDT - No Console Output on OSX


c++,eclipse,osx,terminal,64bit
New to the C++ world and wanted to fiddle around using Eclipse's IDE for C/C++ called CDT. I am on OSX 10.10.2 using eclipse-cpp-luna-SR2-macosx-cocoa-x86_64. Sadly this simple example is not printing anything in the eclipse terminal. #include <iostream> using namespace std; int main() { cout << "Hello World" << endl;...

one eclipse install not displaying utf8


java,eclipse,svn,utf-8
I have Eclipse installed on an old machine and a new machine. I download from svn repository on old Eclipse, UTF8 character in a java file displays fine. I download onto new Eclipse, UTF8 character displays as "?". I deduce that the file is saved correctly in SVN. I have...

Tomcat 7 PermGen Space or Failed to Create JVM


java,eclipse,tomcat,tomcat7,permgen
I'm currently searching for any help about this. I'm trying to start a Tomcat 7 server, but I only get PermGen Space exception. I tried to change the XXMaxPermSize value, but when I change it, I get a Pop Up at launch of my Eclipse : "Failed to Create the...

Close module in android studio


android,eclipse,android-studio
in eclipse there is simple option to close or open project. How can I do it in android studio to close and open module without import it and delete each time?

apply formatter only on edited code - eclipse [duplicate]


java,eclipse,save,formatter
This question already has an answer here: How to turn off the Eclipse code formatter for certain sections of Java code? 10 answers I have implemented a formatter in eclipse for my code, when I try to save the changes it applies formatting on complete file. Is it possible...

How to save a json file locally with dojo toolkit


javascript,android,json,eclipse,dojo
I'm trying to create a JSON file with dojo toolkit that need to be saved into local memory of the phone. The app need to be valid for android and IOS. I'm using ECLIPSE with ADT as a IDE. My principal issue is that normally the file created with dojo...

Tomcat v7.0 Server at localhost failed to start (Only with specific WebApp)


java,tomcat,tomcat7
I get the above error when I'm trying to start the server. Important note, for any other Web Apps the server starts just fine. It's just this particular Web App that does not work. Here is the complete stack trace: SEVERE: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed...

html form action not working when using eclipse


java,eclipse,jsp,servlets
I am new to JSP and Java Servlet. I was going through this tutorial by Java Brains. In this tutorial get and post method is handled. I wrote my html code under web-content. </head> <body> <form action="http://localhost:8080/SimpleServletProject/hello" method="post"> <input name="userName" /> <input type="submit" /> </form> </body> Following is the hello.java...

guidance needed on using apache commons math


java,eclipse,apache
I am trying to utilize the Apache Commons Math (3.5) library in Eclipse IDE. I have downloaded the JAR file and have added the library to my project correctly. However my problem lies when I actually try using classes from the Apache Commons library. I try to create a new...

Importing Spring MVC Project Manually to Eclipse


java,eclipse,spring,spring-mvc
I have a little problem. I had googled for this problem and I haven't found any solution related. My problem is, my office internet using proxy that banned me to download zip file. I need Spring MVC Project template in Spring Tool Suite (STS). So I downloaded the zip file...

Open a properties file from a class in a Dynamic Web Project


java,eclipse,jsp,properties-file
I'm using Eclipse for EE Developer. I need to access to a properties file (db.properties) from a class's method (DBQuery.java). The class is located inside a package inside the src folder. For the properties file i tried almost everything that i could find over the net to make it work,...

Tomcat servlet the requested resource is unavailable


java,tomcat,servlets
I am very unfamiliar w/ servlets and have been asked to write a simple a simple program on tomcat 7 using java. I wrote a very simple hello world program and haven't been able to get it running and need some help. import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*;...

Disable direct access to application via Tomcat


apache,tomcat
I have a small local (internal to organisation) browser application running on Tomcat. I have inherited an application (also for internal organisation use only) running under PHP server which I have been asked to get running on the same box. I decided the best thing was to get both Tomcat...

Can I install 2 or more Android SDK when using Eclipse


java,android,eclipse,sdk,versions
I am new to android developments. I am setting up my android development environment using Eclipse. I have a test smart phone with Android version 4.2.2. The automatic installation installed the latest Android SDK version, which is 5.1.1. My questions are: 1. Do I have to install the SDK version...

JSF facets not available in Eclipse


java,eclipse,jsf,facets
So I am watching a tutorial about how to configure JSF in eclipse. I understand that you click file -> new -> Dynamic Web Project. And then it gives you a few options. The Target Runtime will be (for me) Apache Tomcat version 8, and dynamic web module version will...

How to change Eclipse IDE GUI icons?


eclipse,user-interface,icons
Elipse icons are ugly. Fact! I would like to replace the icons with more flat, monochromatic and minimalist icons, but I can't find documentation on how to change icons from Eclipse's user interface. How could I do this? It's needed to recompile eclipse?...

Showing previous searches in PyCharm


eclipse,full-text-search,pycharm
Eclipse allows viewing one's previous searches in one's search history even going so far as to show the exact state in which one left a previous search. For example, if one removed (i.e. excluded) a search result from a previous search, that previous search is shown without that search result...

Placing secure data in Java web application


java,security,tomcat
The question is about security in tomcat, but first consider the following example: Suppose you have apache web server. Then, under www folder, create folder named dist, and under folder dist create folder named bdf23b1c-ddd3-4d5b-8fdf-948693674011. Under this folder create some file with secure information. For example, some private picture you...

exec-maven-plugin error, even on working example


java,eclipse,maven
EDIT5 Updated / I'm using Maven 3.3.3. I just create new project and added compile and exec plugin, as examples on web. I tried to execute, but I got error [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project QNAProject: An exception occured while executing the Java class. com.jadex.qna.QNAProject.App ->...

Disable Wrapping Cursor in Eclipse


eclipse,vim,vi
I'm mostly using Vi (edit: Vim) for text editing and the viPlugin for Eclipse Juno. Eclipse seems to have a very annoying behaviour of "wrapping" the cursor to the next/previous line, if yout reach the end/start of a line through cursor keys. (Reproduce by placing the cursor on the first...

Eclipse CDT shows … not resolved errors for ARM neon intrinsics, but produces the binary


c++,eclipse,arm,neon
I develop ARM-Neon based embedded software for Cortex A8 and A9 processors. I use Eclipse CDT Luna for development environment. I opened a project and added #include "arm_neon.h" at the beginning of my main code, and the following flags to both C++ compiler and linker miscellaneous flags part in project...

IntelliJ - use imported modules as dependencies like maven projects in Eclipse


eclipse,scala,maven,intellij-idea,sbt
I've been asking myself this question for a couple of years but never really found the solution. I used to work with eclipse (on maven java projects). I could import a project -let's call it 'proj-A'- and if one of proj-A's dependencies was found in the workspace with the same...

CAS Redirect Loop


java,tomcat,single-sign-on,cas
I am trying to get the CAS setup up and running and I am pretty new to this. I am following through the standard steps similar to this video. I have created keystore file Created a certificate Imported it successfully and add to cacerts file I have made the necessary...

No hello World output for Neo4j


java,eclipse,neo4j
I am just starting out with Neo4j and this is my first stackoverflow question! I tried to run the Hello-World example in Eclipse with the user library of Neo4j. ( https://github.com/neo4j/neo4j/blob/2.2.2/community/embedded-examples/src/main/java/org/neo4j/examples/EmbeddedNeo4j.java) I only changed the DB_PATH='data/graph.db' ( because in my neo4j-server.properties :org.neo4j.server.database.location=data/graph.db) The output I got in the console is:...

Match a pattern preceded by a specific pattern without using a lookbehind


regex,eclipse,lookahead
Is there a way to match a B only if preceded by an A? The A can be at any position behind the B, with any amount of characters between. Examples: A_B (Matches `B`) C_B (No match) I've tried: (?=A)[^B]*B But it matches all the characters preceeding B as well....

How to force team members to comment using eclipse plugin or something else


eclipse,jenkins,eclipse-plugin,coding-style,build-automation
Currently, I am working in a new project and it was difficult for me to understand since there is no comment. I wonder if it is possible to force team members(including me) to add more comments. I would like to automate this ject in jenkins later if possible.

Trying to setup tomcat to use servlets


java,tomcat,servlets,invokerequired
I'm following instructions found in Java All in one for Dummies 3rd edition I downloaded tomcat and followed all the steps for setting it up, step 6 says. "Modify the web.xml file to enable the invoker servlet" It says to find the lines of code for the invoker and then...