Unable to open localhost for AEM in browser - aem

Am trying to install AEM. I can open the quick start where it loads up first. However, when it comes to opening the same in browser(https://localhost:8080) it gives me an error "Unable to compile class for JSP". Please find the complete error:
Unable to compile class for JSP: An error occurred at line: 95 in the jsp
file: /libs/granite/core/components/login/login.jsp
The type java.lang.CharSequence cannot be resolved.
It is indirectly referenced from required .class files
92: ?request.getParameter(PARAM_NAME_REASON)
93: : "";
94:
95: if (!StringUtils.isEmpty(reason)) {
96: if (validReasons.containsKey(reason)) {
97: reason = validReasons.get(reason);
98: } else {
An error occurred at line: 95 in the jsp file:
/libs/granite/core/components/login/login.jsp
The method isEmpty(CharSequence) in the type StringUtils is not applicable for the arguments (String)
92: ? request.getParameter(PARAM_NAME_REASON)
93: : "";
94:
95: if (!StringUtils.isEmpty(reason)) {
96: if (validReasons.containsKey(reason)) {
97: reason = validReasons.get(reason);
98: } else {
Cannot serve request to /libs/granite/core/content/login.html in /libs/granite/core/components/login/login.jsp
Please assist me on the same.

This error usually occurs when you try to run AEM with a higher version of JDK than what it supports (most commonly running your vanilla AEM 6.0 with Java 8).
If that is the case, either revert to JDK7 or install Service Pack 2 for AEM 6.0 which supports JDK 8.
For steps on installing the service pack to fix this issue refer this thread in Adobe Forums.

Related

How to solve error on docker:layers_calculator to compute the Merkle tree on private tangle?

I want to setup a private tangle on my own virtual machine with Ubuntu 18.04, 4GB RAM and 20GB memory.
I have follow this instructions: https://docs.iota.org/docs/compass/0.1/how-to-guides/set-up-a-private-tangle. Every command works fine until reach this one: bazel run //docker:layers_calculator.
It shows an error as follows:
Starting local Bazel server and connecting to it...
ERROR: /home/istabraq/compass/third-party/maven_deps.bzl:3:5: Traceback (most recent call last):
File "/home/istabraq/compass/WORKSPACE", line 42
maven_jars()
File "/home/istabraq/compass/third-party/maven_deps.bzl", line 3, in maven_jars
native.maven_jar(<4 more arguments>)
type 'struct' has no method maven_jar()
ERROR: error loading package '': Encountered error while reading extension file 'protobuf_deps.bzl': no such package '#com_google_protobuf_deps//': error loading package 'external': Could not load //external package
ERROR: error loading package '': Encountered error while reading extension file 'protobuf_deps.bzl': no such package '#com_google_protobuf_deps//': error loading package 'external': Could not load //external package
INFO: Elapsed time: 4.743s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
How can I solve this problem? what I have missed?
read carefully the message given after running bazel installer:
Make sure you have "/home/yourusername/bin" in your path. You can also activate bash completion by adding the following line to your :
source /home/yourusername/.bazel/bin/bazel-complete.bash
You can check with: "bazel info" or "bazel version"
Unfortunately, there are further errors:
https://github.com/iotaledger/compass/issues/142
I have solve this issue by using this commands:
Step 3: Set up your environment
If you ran the Bazel installer with the --user flag as above, the Bazel executable is installed in your $HOME/bin directory. It’s a good idea to add this directory to your default paths, as follows:
export PATH="$PATH:$HOME/bin"
You can also add this command to your ~/.bashrc or ~/.zshrc file to make it permanent.
reference:
https://docs.bazel.build/versions/master/install-ubuntu.html

lvcGame, VBS and HLA setup Error 127 out of LVCGame

I am trying to setup VBS to talk HLA to a legacy app using LVCGame.
I am using openRTI currently in my project. I have LVCGame pointed to a directory with the following dlls:
RTI-NG.dll
OpenRIT.dll (copied from another folder)
libRTI-NG.dll (copy of RTI-NG.dll and renamed)
FedTime.dll
My vbsClient.config relevant lines:
Plugins = HLA-1.3.dll : HLA-1.3\Project\HLA.config
I am getting the following error out of LVCGame:
2014-12-31 10:48:03 INFO (LVCGAME::LVCGame::init) Initialised.
2014-12-31 10:48:03 ERROR (LVCGAME::LVCGame::start) 'class LVCGAME::UTILS::Exception' (src\LVCGame.cpp, line 766): Couldn't load plugin .\lib\HLA-1.3.dll. Error Code: 127
I did send an email to VBS support but it I had any idea what a 127 error was maybe I could get further.
I found that another free RTI Portico implementation is mentioned as working with LVCgame giving that a try has pretty similar results I get and error 126 instead of a 127.
2015-01-02 09:47:47 INFO (LVCGAME::UTILS::IOUtils::extractDllLoadPath) Using DLL path specified as 'D:\Program Files (x86)\Portico\portico-2.0.1\bin\vc10'.
2015-01-02 09:47:47 INFO (LVCGAME::LVCGame::init) Initialised.
2015-01-02 09:47:47 ERROR (LVCGAME::LVCGame::start) 'class LVCGAME::UTILS::Exception' (src\LVCGame.cpp, line 766): Couldn't load plugin .\lib\HLA-1.3.dll. Error Code: 126
2015-01-02 09:47:47 ERROR (LVCGAME::LVCGame::start) LVCGame start failed!
So eventually I found that Portico was creating a log file located in my VBS directory\logs. From there I was able to see that Portico at least was not able to find my .fed file I had the path messed up.

Zend Failed opening Zend/Application.php

Ok, so I am relatively new to Zend. I have created a new application and started to build an authentication system based on a guide. However, the server is kicking out an Internal Server Error.
Upon checking the PHP error logs I have been given the following two errors:
[Thu Jul 19 10:26:40 2012] [error] [client 80.194.255.4] PHP Warning: require_once(Zend/Application.php): failed to open stream: No such file or directory in /home/www-data/zend.danielgroves.net/htdocs/public/index.php on line 18
[Thu Jul 19 10:26:40 2012] [error] [client 80.194.255.4] PHP Fatal error: require_once(): Failed opening required 'Zend/Application.php' (include_path='/home/www-data/zend.danielgroves.net/htdocs/library:.:/usr/share/php:/usr/share/pear') in /home/www-data/zend.danielgroves.net/htdocs/public/index.php on line 18
The controller:-
class Admin_AuthController extends Zend_Controller_Action
{
public function init()
{
/* Initialize action controller here */
}
public function indexAction()
{
$form = new Application_Form_login();
$request = $this->getRequest();
if ($request->isPost()) {
if ($form->isValid($request->getPost())) {
}
}
$this->view->form = $form;
}
}
Any ideas on what the cause of this could be? As I said I am new to Zend so I don't really know where to start when it comes to these errors, especially as this is referencing files that were created by the Zend CLI tool.
Any pointers/suggestions etc would be muchly appriciated.
Dan.
Your application needs to be able to access the Zend Framework classes. Typically you would put these into the library folder in your app (Zend Tool does not do this for you). So from your downloaded copy of ZF, copy the library/Zend folder into your library folder. You should end up with the file it is looking for at /home/www-data/zend.danielgroves.net/htdocs/library/Zend/Application.php, which will fix the error.
I'm having this exact same problem. First I was missing the reference to Zend/Application.php. So I found that, and copied into the Library folder, and changed the code to point at the file in the library folder. Then there was another reference to the same file WITHIN the Application.php file. I fixed that. Now I have a series of other errors like:
Fatal error: Class 'Zend_Loader_Autoloader' not found in C:\Development\PHPSites\testProjectIII\library\Application.php on line 82
So I REM out line 82:
$this->_autoloader = Zend_Loader_Autoloader::getInstance();
And I get THIS error:
Fatal error: Class 'Zend_Config_Ini' not found in C:\Development\PHPSites\testProjectIII\library\Application.php on line 388
So I REM out that line:
$config = new Zend_Config_Ini($file, $environment);
After that, I finally get this error:
Notice: Undefined variable: config in C:\Development\PHPSites\testProjectIII\library\Application.php on line 417 Fatal error: Call to a member function toArray() on a non-object in C:\Development\PHPSites\testProjectIII\library\Application.php on line 417
Now - If I understand what I'm seeing here, it's that the application is looking for libraries that include classes that are not defined. All I'm doing is taking the entire working program (this is right out of the startup wizard, with no changes), which works on the Apache server that Zend installs. But I take it to another folder where the root of my IIS server is, and the libraries cannot be found.
I've been trying to isolate what is what, but nothing is working. The answer directly above my post here is exactly what I tried.

Zend Framework Disapatcher error so suddnly

is about a week I work for an application and now, yesterday i receive this error and than so suddnly has disappeared and I continued to work! now i receive again this error but without any change!
how can i solve it?
thanks
Warning: include_once(/www/zendsvr/htdocs/TassiWeb/application/controllers/LoginController.php) [function.include-once]: failed to open stream: Too many open files in /usr/local/zendsvr/share/ZendFramework/library/Zend/Controller/Dispatcher/Standard.php on line 344
Warning: include_once() [function.include]: Failed opening '/www/zendsvr/htdocs/TassiWeb/application/controllers/LoginController.php' for inclusion (include_path='/www/zendsvr/htdocs/TassiWeb/application/../library:/www/zendsvr/htdocs/TassiWeb/library:.:/usr/local/zendsvr/share/ZendFramework/library:/usr/local/zendsvr/share/pear') in /usr/local/zendsvr/share/ZendFramework/library/Zend/Controller/Dispatcher/Standard.php on line 344
Warning: include_once(/www/zendsvr/htdocs/TassiWeb/application/controllers/ErrorController.php) [function.include-once]: failed to open stream: Too many open files in /usr/local/zendsvr/share/ZendFramework/library/Zend/Controller/Dispatcher/Standard.php on line 344
Warning: include_once() [function.include]: Failed opening '/www/zendsvr/htdocs/TassiWeb/application/controllers/ErrorController.php' for inclusion (include_path='/www/zendsvr/htdocs/TassiWeb/application/../library:/www/zendsvr/htdocs/TassiWeb/library:.:/usr/local/zendsvr/share/ZendFramework/library:/usr/local/zendsvr/share/pear') in /usr/local/zendsvr/share/ZendFramework/library/Zend/Controller/Dispatcher/Standard.php on line 344
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller class ("ErrorController")' in /usr/local/zendsvr/share/ZendFramework/library/Zend/Controller/Dispatcher/Standard.php:352
Stack trace:
/usr/local/zendsvr/share/ZendFramework/library/Zend/Controller/Dispatcher/Standard.php(262): Zend_Controller_Dispatcher_Standard->loadClass('ErrorController')
/usr/local/zendsvr/share/ZendFramework/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
/usr/local/zendsvr/share/ZendFramework/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
/usr/local/zendsvr/share/ZendFramework/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
/www/zendsvr/htdocs/TassiWeb/public/index.php(26): Zend_Application->run()
{main}
thrown in /usr/local/zendsvr/share/ZendFramework/library/Zend/Controller/Dispatcher/Standard.php on line 352
Zend needs a lot of files open. But the 'too many open files' issue is connected with recursion; particularly a loop of files where A includes B includes C includes A (for instance.)
With Zend you shouldn't need to manually include files for the most part, since it uses auto-loading. In that week's time I'm thinking you may have introduced an accidental recursion.
Remove that recursion (or make sure the includes are include_once/require_once) and you will address the issue.
I had a similar 'too many files' open error and it ended up being that I was extending the wrong Bootstrap class in my module. I was using Zend_Application_Bootstrap_Bootstrap instead of Zend_Application_Module_Bootstrap. So check if you have more than one implementation of Zend_Application_Bootstrap_Bootstrap. Hope that applies to your situation.

how to upload linkr button

when I install plg.linkr_button.upgrade-any-to-2.3.7.zip & uplad file it gives error Install plugin error & this message
/home/abc/tmp/install_4d0239a35bd0f/plg.linkr_button/linkr_button.php to /home/abc/plugins/editors-xtd/linkr_button.php
OR when I upload super installer directly then it gives this error
Warning: LinkrInstaller::require_once(/home/abc/administrator/components/com_linkr/defines.php) [function.require-once]: failed to open stream: No such file or directory in /home/abc/administrator/components/com_linkr/install.linkr.php on line 207
Fatal error: LinkrInstaller::require_once() [function.require]: Failed opening required '/home/abc/administrator/components/com_linkr/defines.php' (include_path='.:/usr/local/lib/php') in /home/abc/administrator/components/com_linkr/install.linkr.php on line 207
Either the update is meesed up or you do not have permission to read the uploaded file.