I am trying to run an application using maven. I am very new to it. I got it installed and it is working properly. i am not able to run it. i am getting the following errors in the console: -
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retrieved from repository: central due to an error: Error transferring file: Connection timed out: connect
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-resources-plugin:pom:2.3' from repository central (http://repo1.maven.org/maven2): Error transferring file: Connection timed out: connect`
What can i do to run my app? where am I lacking?
Most likely your system is behind a proxy server. If so, create or update settings.xml in the .m2 subfolder of your home directory and add the proxy section as documented here.
You can use the proxy settings, which is likely to be present in your browser configuration. (In case of Internet Explorer : Tools -> Internet Options -> Connections -> LAN Settings)
Related
Today when using IntelliJ (MacOS) & Spring Boot to create a new project, I started seeing this error:
"
Initialization failed for 'https://start.spring.io' Please check URL, network and proxy settings
Error Message:
Error parsing JSON response
"
My home network has no HTTP proxy settings, just plain vanilla Internet.
IntelliJ / Preferences / System Settings / HTTP Proxy / Check Network Settings: says network connection is ok. And this same setup worked here 2 days ago.
Browser connection to https://start.spring.io also works.
I tried Googling this issue, but mostly found HTTP Proxy setting issues that I don't have (I am typing this w/o HTTP Proxy settings in browser :-)).
Maybe this is just a transient issue with start.spring.io? or ... ?
Anyways confusing.
If your r able to open the same url in your browser then the issue is with the proxy settings on the IDE.
In that case, we can define the existing browser proxy settings to the intelliJ as below-
On the IDE, Open --> File -> Settings -> Appearance and Behavior ->System Settings -> HTTP Proxy --> Select Auto-detect proxy settings and set the Automatic proxy configuration URL.
Then we can able to connect to spring initializer through intelliJ IDE
try to use 'http://start.spring.io' instead of 'https://start.spring.io'.
it works for me.
It looks like Spring Initializr is broken for both IntelliJ IDEA and Spring Tools Suite, I reported this to the initialzr project:
https://github.com/spring-io/initializr/issues/267
If you use VPN this can cause trouble with the connection.
Switching VPN off can help.
I created this simple dynamic web project (glassfish 4.1.1 latest atm) using eclipse java ee Mars.2 that I installed 2 days ago.
Checking on the admin, the app is deployed and running fine. I could not access the web app using the localhost:8080 url but it works when I use <computername>:8080.
I could access the admin using localhost:4848.
I tried disabling the firewall but the problem persists. What could be the problem?
The error is:
404 Not Found
No context found for request
In eclipse I see the log int he console that says: Automatic timeout occurred
As I pointed out in comments, you can configure listeners in Configuration -> needed configuration -> Network Config -> Network Listeners. However, it is still rather strange that your localhost doesn't work with 0.0.0.0 IP address, since it is a special address which means "listen on all available IPs on given port". Perhaps your network is somehow misconfigured.
I am trying OO on a RHEL Atomic Host. I spun up OO master as a container following this guide https://docs.openshift.org/latest/getting_started/administrators.html
After attaching a shell to the Master Container, I cannot deploy an app.
# oc new-app openshift/deployment-example
error: can't look up Docker image "openshift/deployment-example": Internal error occurred: Get https://registry-1.docker.io/v2/: net/htt p: request canceled while waiting for connection error: no match for "openshift/deployment-example"
The 'oc new-app' command will match arguments to the following types:
1. Images tagged into image streams in the current project or the 'openshift' project
- if you don't specify a tag, we'll add ':latest'
2. Images in the Docker Hub, on remote registries, or on the local Docker engine
3. Templates in the current project or the 'openshift' project
4. Git repository URLs or local paths that point to Git repositories
--allow-missing-images can be used to point to an image that does not exist yet.
See 'oc new-app -h' for examples.
The host needs proxy to access Internet. I have configured proxy in /etc/sysconfig/docker and that is how I could pull the origin image in the same place.
I have tried setting proxy for master and node with luck
https://docs.openshift.org/latest/install_config/http_proxies.html
It is possible that your proxy is terminating the connection. you can test by creating an internal registry, push image to that and then use
"oc new-app your.internal.registry/openshift/deployment-example"
I deleted the content of the project's artifacts folder and now the server throws a configuration error:
deployment source 'Hello World IDEA JETTY:war exploded2' is not valid
How can I redeploy the web server module onto the server?
i have EAR file contains jar and war packages.this ear file deploy on glassfish correctly but when deploy this ear file on weblogic 12c, get this error :
Unable to access the selected application.
Error Exception in AppMerge flows' progression
Error Exception in AppMerge flows' progression
Error Unable to resolve deadlock in factory claims
Error Unable to resolve deadlock in factory claims
i check application.xml and name of jar and war packages are correct.anybody have idea for solving this issue ?
I too had this problem and tried everything (schemas, project structure, dependant libs, etc). Finally compared my domain with the sample "medrec", the only difference was that I had added SIP support. After removing this support, I can now deploy my EAR with included WAR and EJBs. I assume this is a bug in 12c...
I too had the same problem and I had to create another domain to resolve the issue.The key here is not to use the eclipse tool to create the the domain as the option to create "Basic Weblogic Domain" is not presented.
The option to create a basic weblogic domain is presented when you launch the weblogic domain creation wizard.
I had faced the exact same problem today. This problem is associated with the way the Domain was created. If you have used "Basic WebLogic SIP Server Domain" then it would occur while installing an ear. You can double check if the Domain is created with Basic SIP or not, go to your Weblogic Server Domain >> bin >> setDomainEnv (cmd or sh) file and check if you have the below properties defined.
-- set WLSS_HOME=C:\Oracle\Middleware\wlserver_12.1\sip
-- set SIP_ENABLED=true
I tried to create the Domain again with JAX-RPC extension instead of Basic SIP and got this problem resolved.