BeanLocator has not been set (Installing Liferay on Tomcat 7.0) - java

I'm looking to install the Liferay portal on Tomcat without using the bundle.
Here a link to the tutorial I'm following:
https://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/lp-6-1-ugen11-installing-liferay-on-tomcat-7-0
Tomcat is running at localhost:8080 as expected, but the Liferay portal is throwing an error. I've followed these directions twice now and can't find a way around it:
HTTP Status 500 - com.liferay.portal.kernel.bean.BeanLocatorException: BeanLocator has not been set
When I navigate to index.jsp (in the webapps/root folder) the line at fault is line #57.
56 else {
57 redirect = PortalUtil.getHomeURL(request);
58 }
According to the Liferay forums, I'm not the first to run into this error, but I wasn't able to find a solution. Thoughts?
Additional Notes:
Operating System: Windows 7
Liferay Portal Source: liferay-portal-src-6.2-ce-ga2
Liferay Portal War: liferay-portal-6.2.0-ce-ga1-20131101192857659.war
Apache Tomcat Version 7.0.53: apache-tomcat-7.0.53

Related

Tomcat versione 8.5.69 and sameSiteCookies=lax doesnt work with saml/onelogin

I have a web application that run on tomcat 8.5.34 and use the single sign on login with saml/onelogin api.
Here the specifications:
Amazon corretto Jdk 1.8.0_252
Apache tomcat 8.5.34
OS Windows 10
java-saml-2.4.0.jar and java-saml-core-2.4.0.jar
Everithing was fine until we upgrade the tomcat version to 8.5.69, from that version the redirect to our application stopped to work.
Here every attempt to fix the issue:
Upgrade the java-saml api --> fail
Upgrade the tomcat version till the last 9 release --> fail
Change the attribute classname in the tag CookieProcessor to the org.apache.tomcat.util.http.LegacyCookieProcessor --> fail
After all we found two solutions:
Downgrade the tomcat version (that is not possible in production server, we are migrating to tomcat 9)
Change the attribute sameSiteCookies in this configuration in context.xml <CookieProcessor sameSiteCookies="lax"/> from lax to unset, but this configuration involve my application in a security problem named CSRF attacks so i cant pass VAPT tests.
Now i am in a bottleneck, any suggestions?
Thanks to the all community.

Activiti Explorer - Request resource is not available

I have big problem to run activiti-explorer when i try access: http://localhost:8080/activiti-explorer/ tomcat shows me HTTP Status 404 - The requested resource is not available. I'm really don't have any idea why that dosen't work. Can you help me?
This what have I done on my PC:
I'm using 5.19.0 version of activiti-explorer
7.0.63 tomcat
JDK 1.8.0.77 (i think there is no point to downgrade java to previous versions (<=1.7) becouse my main application using this version)
I'm sure I have correctly configured environment variables (JAVA_HOME,JRE_HOME,PATH,CATALINA_HOME)
I configured data base connection (db.properties, context.xml) in activiti-explorer.war and i moved this file to tomcat/webapps
I don't have any errors about activiti during tomcat start
Check if activiti explorer is deployed to tomcat in manager.
http://{host}:{port}/manager/html
More info in https://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html
Check the catalina.out log. There will be something in there that leads you to the solution.
Check Admin Console (cmd that runs behind) after hitting the link. most recent exception occurred will be displayed there.

Netbeans can´t deploy a Java web application with TomEE plus 1.7.1 on windows 10

I have this problem and I can´t solve it.. netbeans 8.0.2 can´t deploy a Java Web Application with TomEE Plus 1.7.1 server. I´ve tried with another server and it works (Tomcat 8.0.15.0 for example) but I can´t use it because I need TomEE for RESTful web services.
The problem when I try to run the applicaction the error is the next:
Starting Tomcat process...
Waiting for Tomcat...
Tomcat server started.
In-place deployment at C:\Users\Gilbert\Documents\NetBeansProjects\Prem\build\web
deploy?config=file%3A%2FC%3A%2FUsers%2FGilbert%2FAppData%2FLocal%2FTemp%2Fcontext644445905444534523.xml&path=/Prem
http://localhost:80/manager/text/deploy?config=file%3A%2FC%3A%2FUsers%2FGilbert%2FAppData%2FLocal%2FTemp%2Fcontext644445905444534523.xml&path=/Prem
C:\Users\Gilbert\Documents\NetBeansProjects\Prem\nbproject\build-impl.xml:1046: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 45 seconds)
Note, apparently the server is running but when I go to localhost:80/ (this is the port I choose) it shows an error 404.
help me please, thanks

java 8 with Glassfish 4.1 Artifact HelloWorld:war exploded: Server is not connected. Deploy is not available

I create a simple java web service project in intellij idea and configured the glassfish 4.1 server. and just run the application. output window shows the following messages
C:\glassfish4\glassfish\bin\asadmin.bat start-domain domain1
Attempting to start domain1.... Please look at the server log for more details.....
[2015-06-10 01:35:00,667] Artifact HelloWorld:war exploded: Server is not connected. Deploy is not available.
Detected server admin port: 4848
Detected server http port: 8080
server is running fine. but webservice is not deployed. can anyone help me.
I use java 8. intellij 14, glassfish 4.1 and windows 8.1
I followed following posts, but none of these are helps me.
post one , post two , post 03, post 04
I spend last two day to find an answer, please help me.
Check your Facets and your Artifacts are all right. Facets must have web deployment description and Web Resource description, the absolute path is all right.
Check the Artifact output directory, make directories:
WEB-INF/class/{your compile output},
the resource directory for example web app directory content.
I think the IntelliJ use ant as it's deployment tools, then you can image how it work, just denote the path the project need

Facing 404 error after upgraded to Tomcat 7.0.54

Recently I have upgraded the tomcat version from 7.0.26 to 7.0.54, and now I am facing 404 error with tomcat 7.0.54 version.
I have tested with most of the version, till tomcat 7.0.53 my product help link works fine. I am not sure what change had made in 7.0.54 version.
Actual Issue:
We have simple main_help.war file which is integrated in my product and on click on help link it launches new tab and shows html page runs on java.
This is the actual URL - https://hostname.com:8444/main_help/help_services/html/admin_en_usa/index.htm?URL=admin_1_0_0/help_wrapper_topic.html&SHOWTOC=1&CHROME=false
with no change in our product and just updated tomcat to 7.0.54 version, the URL is not coming properly. main_help (which is the main war deployed in server (main_help.war)) string is missing in the URL.
This is the URL after upgraded to tomcat 7.0.54 - https://hostname.com:8444//help_services/html/admin_en_usa/index.htm?URL=admin_1_0_0/help_wrapper_topic.html&SHOWTOC=1&CHROME=false
OS Detail:
- Windows 7 64bit.
- Java 7
- All browser type (same issue)
Could someone please help me what is the change that Apache made? And how can I modify my application accordingly.
Regards
Thiru

Categories

Resources