I'm working on the backend for a university app development project and have run into a solid brick wall. I'm a bit of a noob with this stuff.
I've been given access to a gcloud vm instance running ubuntu server 14.04 and have been attempting to setup Sqlite-Sync on tomcat 8. My team is attempting to build Xamarin app with an sqlite DB that will sync with a MySQL remote DB.
Initially I installed LAMP, phpMyAdmin and tomcat on the instance. I spent way to long attempting to access tomcat via ipv4 port 8080 as it only seemed to be listening on ipv6. Once I managed to fix that and deployed the SqliteSync.war I ended up with missing dependency issues, specifically glassfish and it's maven dependencies.
So now, having installed the alleged dependencies and remove and reinstalled tomcat (due it refusing to listen to anything on any protocol). I now can't deploy sqlitesync.war (or the most recent version that the OG dev sent me). I've been told that tomcat can't overwrite old .war and the old versions need to be removed manually, yet they don't seem to exist on my instance. Error logs tell me:
java.io.IOException: java.io.FileNotFoundException: /opt/tomcat/webapps/SqliteSync_307.war (Permission denied)
Caused by: java.io.FileNotFoundException: /opt/tomcat/webapps/SqliteSync_307.war (Permission denied)
18-May-2017 10:05:54.295 SEVERE [http-nio-8080-exec-4] org.apache.catalina.core.ApplicationContext.log HTMLManager: FAIL - Deploy Upload Failed, Exception: java.io.FileNotFoundException: /opt/tomcat/webapps/SqliteSync.war (Permission denied)
I'm seriously stuck and would appreciate any assistance. Do I burn the whole thing down and start again? Is it just some sort of permissions issue?
Related
I am trying to remote debug via ssh on an ubuntu host at Ali with no success. I'm using the the latest Rider, 2022.1 EAP 10.
The error is:
Debugger worker was not initialized within 100,000 ms
I’m running Ubuntu 20.04 64bit on Ali Cloud. And one side note: for the following steps from Jetbrains documents, I wasn’t able to succeed:
cd /[application path]/WebApplication to go to the application root folder.
chmod +x ./WebApplication to add the executable bit if needed.
ASPNETCORE_URLS=http://0.0.0.0:5000 ./WebApplication to run the application
WebApplication is a directory, the OS kept complaining it's a directory even after chmod+x. I managed to run the self-contained executable.
It is always better to ask such questions in JetBrains public issue tracker.
This problem should already be fixed in the next Rider versions:
https://youtrack.jetbrains.com/issue/RIDER-76083
I installed the azure cosmosdb emulator and when I try to open https://localhost:8081/_explorer/index.html I get the following error in Microsoft edge,
This site can’t be reached
localhost refused to connect.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED*
I deleted the data in the AppData\Local\CosmosDBEmulator folder and I tried to start from the command line as follows:
Microsoft.Azure.Cosmos.Emulator.exe /port=8084 /EnableEndPointDiscovery=false
Microsoft.Azure.Cosmos.Emulator.exe /NoFirewall
But still no luck
Any ideas?
I've resolved the issue by running in the command prompt lodctr /R to rebuild performance counter. I had to run it twice. I closed and restarted the emulator and is all working now
I am on Windows 10 18362.356.
After some system update, now it is impossible to access any TLS-enabled site with Java. Both standanlone JRE (jre1.8.0_221) and the JRE bundled in Android Studio 3.5.1 fails with:
javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target
At first I thought that the cacerts file was faulty, but even after replacing them, the problem persists.
Wireshark shows that there is no problem with handshake and they are not blocked by firewall.
Screenshot of Wireshark
Manually add certs is not effective (and not possible as none of the sites work)
JAVA_HOME is pointing to the correct JRE directory.
I am using a computer provided by my work org and I do not have any access to change firewall since I am just a user.
I am trying to install Composer to start on a symfony 2 project. When I try Composer exe file to install, I see this message - The "https://getcomposer.org/versions" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
failed to open stream: Cannot connect to HTTPS server through proxy
I Googled it but the solutions all given are related to firewall and can be solved by an Admin only.
It seems that you have network issues: Cannot connect to HTTPS server through proxy. You probably might want to work this out but since you have no access to network settings then it will be easier just to use Manual Download option from https://getcomposer.org/download/ . Just download composer.phar file from this url
I am able to deploy an adf application to glassfish server from jDeveloper directly (and the application runs fine too), but when I deploy an EAR file and then put it into the autodeploy folder of my glassfish domain I see the following error in my log (FYI: I had undeployed and restarted glassfish before loading the ear file to autodeploy directory)
[#|2013-03-21T06:27:17.104-0400|SEVERE|glassfish3.1.2|org.apache.catalina.core.ContainerBase|_ThreadID=28;_ThreadName=Thread-2;|ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: oracle.adf.share.glassfish.listener.ADFGlassFishAppLifeCycleListener
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5332)
at com.sun.enterprise.web.WebModule.start(WebModule.java:498)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2019)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
According to error message you don't have ADF libraries installed either on your glassfish domain completly or at this server instance.
Check oracle documentation if you need to install full version of ADF to the weblogic server.
Or if you planning to use free version of ADF - ADF Essentials, try to follow this post.