Im in the process of evaluating the new interface of Apache Archiva. The user interface is really good and I was able to configure most of the settings.
However, when I try to deploy the artifact through eclipse Im getting the below error.
Error code 405, HTTP method PUT is not supported by this URL
I donot get this when I use the Apache Archiva 1.3.6.
Any idea?
This can happen if your repository URL is incorrect. See GitHub issue 4.
I have setup the new Archiva version 2.0.0. Apparently this issue has been fixed with the latest version.
Related
After upgrade from 2.7.2 to 2.7.3 or 2.7.4 my quarkus project doesn't start anymore. I get following Exception:
Caused by: java.lang.NoSuchFieldError: ACCESS_CONTROL_ALLOW_PRIVATE_NETWORK
at io.vertx.core.http.HttpHeaders.<clinit>(HttpHeaders.java:106)
at io.vertx.core.http.impl.headers.HeadersMultiMap.<clinit>(HeadersMultiMap.java:63)
at io.quarkus.smallrye.openapi.runtime.OpenApiHandler.<clinit>(OpenApiHandler.java:24)
at io.quarkus.smallrye.openapi.runtime.OpenApiRecorder.handler(OpenApiRecorder.java:35)
Maybe it is releated to the upgrade of open api https://github.com/quarkusio/quarkus/pull/23886
When I disable open api it starts
quarkus.smallrye-openapi.enable=false
Your problem seems to be related to this one, So i believe we have 2 workarounds:
First try using different browser than chrome (if you don't, go directly to second step)
Then, try enabling CORS in your application.properties like following :
quarkus.http.cors=true
My problem was caused by a dependency with an older version of netty.
Updating netty fixed the problem.
https://stackoverflow.com/a/71423882/9651670
Thanks, this answer helped me a lot. I had to force a specific netty version on a previous update for azure/microsoft libs to work. Now they work with default managed version from quarkus and i removed netty-bom from dependencymanagement instead of updating it.
I'm using play 2.2 framework, I'm developing the module and defined it as snapshot.
I have published the snapshot to nexus but when I try to deploy the same without changing version or appname redeploy fails with below error:
[info] Done packaging.
java.io.IOException: Access to URL http://mycompany.com/nexus/content/repositories/snapshots/com/mymodule/1.0.1-SNAPSHOT/mymodule-1.0.1-SNAPSHOT.pom was refused by the server: Forbidden at org.apache.ivy.util.url.AbstractURLHandler.validatePutStatusCode(AbstractURLHandler.java:79
at org.apache.ivy.util.url.BasicURLHandler.upload(BasicURLHandler.java:231)
at org.apache.ivy.util.FileUtil.copy(FileUtil.java:150)
at org.apache.ivy.plugins.repository.url.URLRepository.put(URLRepository.java:84)
at org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130)
at org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:234)
at org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:216)
I know the reason for this failure, Nexus is denying the deploy due to the fact that the previous snapshot is also exactly same w/o timestamp.
Question is how to attach timestamp in Build.scala or any configuration in play framework that enable to redeploy of snapshots multiple times to Nexus. This is obviously is not a problem in maven project, but somehow evident in play framework projects.
Thanks in advance.
Thanks
Aravind
Use the aether deploy instead of the sbt/ivy publish. This should create the metadata on the server correctly.
https://github.com/arktekk/sbt-aether-deploy
When I try to add my Mantis-Repository (V1.2.12) to My Eclipse Juno with The Mantis Plugin (org.eclipse.mylyn_feature.feature.group, V3.8.2) my Eclipse shows this error:
Unable to load projects : Failed getting projects : Error Type: SYSTEM
NOTICE, Error Description: Array to string conversion .
If I continue and try to choose a repository from Mantis, the same error is shown.
My URL is directly pointing to the /api/soap/mantisconnect.php file.
How to fix this problem?
It seems that you're running Mantis over PHP 5.4, which is not possible for the SOAP API since our SOAP layer - nusoap - does not support it.
My suggestion is to update the latest git version (master-1.2.x) and also install the php native soap version. This will make sure that Mantis will not use nusoap and will works as expected with PHP 5.4
References:
Mantis SOAP API documentation
Bug report for PHP 5.4 support for the SOAP API
I have created REST services using RESTEasy and generated certificate using openssl and configured with https from this JBoss link. When I try to consume the service like this,
ClientRequest request = new ClientRequest("https://localhost:8443/services/users");
request.accept(MediaType.APPLICATION_XML);
ClientResponse<Result> response = request.post(Status.class);
I got "Peer not authenticated" exception. In google I saw this error and people suggested to use Apache Http Client. But I am using RESTeasy client to consume the service. How I can avoid this error?
The Nexus OSS behavior was inconsistent. First I thought this is due to permission settings. So I ran the tomcat as Admin, but still got the same error. Spent lots of time and no clue. Moved to use Archiva for maven repo. Dont take me wrong, Nexus OSS UI is much much better than Archiva. But Archiva is working without any problem.
After 6 months again tried to setup Nexus OSS with new version. Still same error. This is something how Nexus OSS connects to internet. Finally changed the Nexus OSS network connection settings. Configured the proxy & NTLM authentication. After that it is working fine.
Still its a mistery why nexus oss didnt work with default configuration while archiva works.
I'm trying Windows Azure now.
I have been following instruction from
https://www.windowsazure.com/en-us/develop/java/java-home/download-the-windows-azure-sdk-for-java/
I'm running on eclipse helios, but when i try to install new software and enter url repository :http://dl.windowsazure.com/eclipse
Eclipse always timeout,
message on message box like bellow :
Unable to connect to repository http://dl.windowsazure.com/eclipse/content.xml
Unable to connect to repository http://dl.windowsazure.com/eclipse/content.xml
Connection timed out: connect
How to solve this, i very need it to deploy my first app on Windows Azure platform
Help me to solve this, please
Now i try to runnning azure project on Cloud Azure, but why when i try to upload cspkg file and cscfg file, the process always timeout, whereas connection is running normally when i look on ping -t
this is message when i try upload on azure hosting service :
Uploading the selected package has failed, please verify your network connection and try again.
How to solve this issue ?
it's very strange error. >-<
I think there is some problem with your network connection as I have just tested the same download location and it does work perfectly fine as below:
As you can see below I am using http://dl.windowsazure.com/eclipse URL to download the Java specific Azure components:
After that once I select "Next", the following two components are listed to be installed in my machine:
Microsoft JDBC Drive 3.0 for SQL Server (This will work with SQL Azure)
Windows Azure Plugin for Eclipse with Java
I am sure that the problem is specific to your network connection so please have it corrected.
Yes, it's foolish of me, i forget to shutting down my proxy server on My compute.After i disable it,everything gonna be alright :D
Thanks
surely I haven't meet this situation before , but just for your additional information..
Have you follow this step on installing azure #eclipse? like .net version must be >= 3.5
here are some source link for your help http://www.windowsazure4e.org/download/
I haven’t worked with Windows Azure Java SDK. But the error message is complaining the file C:\Users\workspace\AzureFirst\emulatorTools\ResetEmulator.cmd cannot be found. It would be better if you can check whether the file exists. In addition, the call stack points out you’re using Windows Azure SDK 1.4. Please try to upgrade it to 1.6 to see whether it works fine. You can find SDK 1.6 on http://www.microsoft.com/en-us/download/details.aspx?id=28045. Please install WindowsAzureEmulator and WindowsAzureSDK. The WindowsAzureLibsForNet is not needed if you don’t want to use .NET.
Best Regards,
Ming Xu.