glassfish - admin console doesn't start anymore - - linux

I am trying to start glassfish 3.1.2 with eclipse 3.7; Previously it was starting fine (I enter login/psw) but I tried to start it today, entered the login and password and that what I've got in my console :
Info: JMX005: JMXStartupService had Started JMXConnector on JMXService URL service:jmx:rmi://x.xx.xx.xx:8686/jndi/rmi://x.xx.xx.xx:8686/jmxrmi
...
Info: User [] from host x.xx.xx.xx does not have administration access
...
Severe: PWC6117: File "/.../glassfish3/glassfish/lib/install/applications/__admingui/login.jsp" not found
If not to delete expired cert as said here I can see this exception :
Severe: SEC5054: Certificate has expired:
I tried http://localhost:4848/common/index.jsf but still I have 404 error :(
So my question is... how to find out why admin console doesn't start and how to fix that?
Thanks

The solution for my standalone glassfish 3.1.2 was to select jdk 1.7 instead of jdk 1.6;
p.s. I am still not sure why cause basically it should work on 1.6; its working but I am still searching the reason;

There is a similar question:
Glassfish 3.1 says "admingui login.jsp" not found
Re-installing the server was the proposed solution there.
Could be worth a try if it is an option for you.

Related

Symfony3: Developing in Windows, Deploying in Linux. DIRECTORY-SEPARATOR

I have following problem:
I wrote a little homepage under Win10. All is fine but when I deploy my work in a Linux system I get the following message:
[2015-12-17 09:28:41] request.CRITICAL: Uncaught PHP Exception Twig_Error_Loader:
"The "/info/wwv/data/someone\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle/Resources/views" directory does not exist."
at /info/wwv/data/someone/vendor/twig/twig/lib/Twig/Loader/Filesystem.php line 94 [...]
I think there is some problem with the DIRECTORY_SEPARATOR or similar. The path exists and I can access it when I replace the backslashes with slashes.
Also my log is written in the directory app\logs instead real subdirectory app/logs.
Are you generating the cache on Windows and deploying the cache too instead of building it on the Linux server ? This is indeed not meant to work properly, due to differences between the OS.
Recent versions of Symfony allow to build the cache before deployment and copy it to the other server, but this does not work with Windows on one side and Linux on the other.
I had a similar issue. One day symfony 3.4 (on php7.2.16) stops working. After changing some path settings in AppKernel.php from '/' to '\\', everything works fine.
e.g.
public function getLogDir()
{
return dirname(__DIR__).'\\var\\logs';
}
It seems to be a windows-related issue with path-settings.
I had the same problem as my production server did not let me allocate enough ram to run composer and I had to run it locally.
Afterwards I got similar error (having wrong access path \ instead of / for linux)
Steps I took:
Replacing \\ with / in composer.json and composer.lock
Clearing the var/cache/*

Error opening zip file or JAR manifest missing : jrebel.jar

When configuring JRebel on my remote server (JBoss on linux) I have configured the JVM arg as
-javaagent:/home/user/jrebel.jar" -Drebel.remoting_plugin=true
The jrebel.jar is absolutely definitely in that location, yet the server fails to start with the error:
Error opening zip
file or JAR manifest missing : /home/user/jrebel.jar Error occurred
during initialization of VM agent library failed to init: instrument
So the arg is oviously being passed to the JVM correctly, but for the life of me I can't work out why it can't find the jar. I've been through every Zero Turnaround article I can find + looked at the solutions that have resolved it for other people, but no luck. Any ideas?
Turned out to be a permissions problem - the JBoss user didn't have the permissions to access the directory that I had placed jrebel.jar into.
Would have been nice to have a more meaningfull error - e.g. 'permissions denied'. Shows my lack of Linux knowledge though I guess.
After the jar was moved to a directory within the JBoss installation + the jar owner was changed to the JBoss user and Read/Write/Execute permissions added, all is well.
Yes , the permission is the reason that this error happens to me when I tried to open PHPSTORM and that error was :
Error opening zip file or JAR manifest missing : ${JetbrainsIdesCrackPath}
Error occurred during initialization of VM
agent library failed to init: instrument
so before running PHPSTORM I had to run the command : sudo -i to get the root permission to run the program.

Error: password_hash(): Password must be a string in laravel

An ErrorException occurred in my code $user->password = Hash::make(Input::get('password'));
saying password_hash(): Password must be a string. I am using laravel framework
$user = new User();
$user->username = Input::get('username');
$user->password = Hash::make(Input::get('password'));
if($user->save())
{
return Redirect::route('home')->with('success','You register successfully. You can now login');
} else {
return Redirect::route('home')->with('fail','An error occurred while creating user. Please try again.');
}
I experienced the same issue, using wamp 2.4 which comes with PHP 5.4, but after upgrading to wamp 2.5 which comes with php 5.5, it was solved so thats solution number 1:
If you are running a lower version of php then you might want to upgrade.
Still looking for a solution that doesnt require an upgrade because on Laravel's documentation, it mentions that 5.4+ is supported for Laravel 4.2
I had similar issue on a Linux machine which threw in
ErrorException
password_hash(): Password must be a string
By upgrading PHP from PHP 5.4 to PHP 5.5 it solved it on my Laravel environment.

Error 'result::failure -9' when porting android app to BlackBerry 10

I am trying to deploy my android app from eclipse on to my blackberry Z10 running 10.0.9.422 and i am unsuccessfull at it.
Here is the actual error that i am receiving.
Failed to deploy project XXXX
Info: Sending request: Install
Info: Action: Install
Info: File size: 8659959
Info: Installing ...
Info: Processing 8659959 bytes
Info: Progress 0%...
Info: Progress 49%...
Info: Progress 50%...
Info: Progress 100%...
actual_dname::com.xxx.xxxx.testEPPwDTJahv0UbAeaecXksgI
actual_id::testEPPwDTJahv0UbAeaecXksgI
actual_version::1.0.3.0
result::failure -9
After this error, I could see the app icon on my Z10, but when i try to access it, it says' Initializing. Please wait...' and the app crashes thereafter.
What does failure -9 indicate and any idea on what's the issue/resolution might be?
Any help is greatly appreciated.
I was able to fix my problem after doing little research and finding the unsupported libraries for my app. I figured out the unsupported libraries using the apkbarVerifier tool.
My app was using com.google.android.maps package. So, I edited the android manifest file to reflect the below line.
<uses-library android:name="com.google.android.maps" android:required="false" />
After this change, even though the 'Verify apk' option from eclipse is showing me the same warnings, I was able to deploy the app to my Z10 and had it to work.
Basically, failure -9 on deployment means that the app contains an unsupported library.

Nutch 2.1 cannot setup in Mac

Trying to set up the new Nutch 2.1 in local environments. With the fresh download, then "ant build". Following the document from wiki http://wiki.apache.org/nutch/Nutch2Tutorial however, it seems that no luck
I got the following errors:
java[1815:1903] Unable to load realm info from SCDynamicStore
InjectorJob: org.apache.gora.util.GoraException: org.apache.hadoop.hbase.MasterNotRunningException
at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:167)
at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:135)
at org.apache.nutch.storage.StorageUtils.createWebStore(StorageUtils.java:75)
at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:214)
at org.apache.nutch.crawl.InjectorJob.inject(InjectorJob.java:228)
at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:248)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.nutch.crawl.InjectorJob.main(InjectorJob.java:258)
Caused by: org.apache.hadoop.hbase.MasterNotRunningException
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:394)
at org.apache.hadoop.hbase.client.HBaseAdmin.(HBaseAdmin.java:94)
at org.apache.gora.hbase.store.HBaseStore.initialize(HBaseStore.java:108)
at org.apache.gora.store.DataStoreFactory.initializeDataStore(DataStoreFactory.java:102)
at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:161)
... 7 more
Your help is highly appreciated. thanks
Caused by: org.apache.hadoop.hbase.MasterNotRunningException
this indicates that the clsuter setup is not done correctly. The nutch tutorial page mentions this:
Install and configure HBase. You can get it here (N.B. Gora 0.2 uses
HBase 0.90.4, however the setup is known to work with more recent
versions of the HBase 0.90.x branch)
Have you performed this step correctly ?

Resources